Wondering what’s next for npm?Check out our public roadmap! »

    @pencil.js/polygon

    1.18.0 • Public • Published

    Polygon

    Shape from a bunch of points.

    Polygon example

    Installation

    npm install @pencil.js/polygon
    

    Examples

    import Polygon from "@pencil.js/polygon";
     
    const points = [pointA, pointB, pointC];
    const options = {
        fill: "red",
        stroke: "#000"
    };
    const polygon = new Polygon(position, points, options);

    PolygonOptions

    Inherit from ComponentOptions.

    Rectangle have no specific options.

    Install

    npm i @pencil.js/polygon

    DownloadsWeekly Downloads

    54

    Version

    1.18.0

    License

    MIT

    Unpacked Size

    4.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar