@pencil.js/rectangle

1.18.0 • Public • Published

Rectangle

Rectangle shape.

Rectangle example

Installation

npm install @pencil.js/rectangle

Examples

import Rectangle from "@pencil.js/rectangle";

const position = [100, 200];
const width = 200;
const height = 100;
const options = {
    fill: "red",
    stroke: "#000"
};
const rectangle = new Rectangle(position, width, height, options);

RectangleOptions

Inherit from ComponentOptions.

Rectangle have no specific options.

Readme

Keywords

Package Sidebar

Install

npm i @pencil.js/rectangle

Weekly Downloads

56

Version

1.18.0

License

MIT

Unpacked Size

5.91 kB

Total Files

4

Last publish

Collaborators

  • gmartigny