@pencil.js/path

1.18.0 • Public • Published

Line

Hand-free drawing tool.

Path example

Installation

npm install @pencil.js/path

Examples

import Path from "@pencil.js/path";

const from = startingPosition;
const path = new Path(from, [
    Path.lineTo(pos1),
    Path.moveTo(pos2),
    Path.quadTo(pos3, controlPoint),
    Path.bezierTo(pos4, controlPoint1, controlPoint2),
], isClosed, options);

PathOptions

Inherit from ComponentOptions if the path is closed, or from LineOptions otherwise.

Path have no specific options.

Readme

Keywords

Package Sidebar

Install

npm i @pencil.js/path

Weekly Downloads

16

Version

1.18.0

License

MIT

Unpacked Size

12.5 kB

Total Files

5

Last publish

Collaborators

  • gmartigny