Class: MutablePath
Subpaths and methods for creating them.
Remarks
Subpaths are an array of lines that are drawn together.
Extended by
Implements
Constructors
new MutablePath()
new MutablePath():
MutablePath
Returns
Properties
_subpaths
_subpaths:
Point
[][]
Source
currentPath
protected
currentPath:Point
[]
Source
Accessors
subpaths
get
subpaths():Point
[][]
The subpath that compose up the path
Returns
Point
[][]
Source
Methods
addLine()
addLine(
point
):void
Adds a straight line to the current subpath.
Parameters
• point: Point
location where the line will end
Returns
void
Remarks
The line is added from the last point in the current subpath to the given point.
Source
clear()
clear():
void
Removes all subpaths from the shape.
Returns
void
Source
duplicate()
duplicate():
MutablePath
Makes a deep copy.
Returns
a deep copy
Source
move()
move(
point
):void
Starts a new subpath at a given point.
Parameters
• point: Point
location at which to start the new subpath
Returns
void