@pencil.js/rectangle
v1.18.0
Published
Rectangle shape for Pencil.js package.
Readme
Rectangle
Rectangle shape.

Installation
npm install @pencil.js/rectangleExamples
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.
