Skip to content

Latest commit

 

History

History
 
 

path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Line

Hand-free drawing tool.

Path example

Examples

import { Path } from "pencil.js";

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.