@pencil.js/square

1.18.0 • Public • Published

Square

Square shape.

Square example

Installation

npm install @pencil.js/square

Examples

import Square from "@pencil.js/square";

const position = [100, 200];
const size = 200;
const options = {
    fill: "red",
    stroke: "#000"
};
const square = new Square(position, size, options);

SquareOptions

Inherit from RectangleOptions.

Square have no specific options.

Readme

Keywords

Package Sidebar

Install

npm i @pencil.js/square

Weekly Downloads

49

Version

1.18.0

License

MIT

Unpacked Size

4.48 kB

Total Files

4

Last publish

Collaborators

  • gmartigny