@pencil.js/path
v1.18.0
Published
Hand-free drawing tool for Pencil.js package.
Downloads
21
Readme
Line
Hand-free drawing tool.
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.