Class ShapePath
Hierarchy
- ShapePath
Index
Constructors
Accessors
Methods
Constructors
constructor
Parameters
resolution: number
Returns ShapePath
Accessors
holes
Gets the list of holes
Returns Path2[]
paths
Gets the list of paths
Returns Path2[]
Methods
bezier Curve ToSearch playground for bezierCurveTo
Create a bezier curve from the virtual cursor to a given coordinate
Parameters
cpx1: number
cpy1: number
cpx2: number
cpy2: number
x: number
y: number
Returns void
extract HolesSearch playground for extractHoles
Extract holes based on CW / CCW
Returns void
line ToSearch playground for lineTo
Draw a line from the virtual cursor to a given coordinate
Parameters
x: number
y: number
Returns void
move ToSearch playground for moveTo
Move the virtual cursor to a coordinate
Parameters
x: number
y: number
Returns void
quadratic Curve ToSearch playground for quadraticCurveTo
Create a quadratic curve from the virtual cursor to a given coordinate
Parameters
cpx: number
cpy: number
x: number
y: number
Returns void
Create the ShapePath used to support glyphs