A class that is used by GeneralPath to iterate over the elements the path is made up of.
Inheritance Hierarchy
Remarks
This class cannot be instantiated
See Also
API
- createCursor
Members
No filters for this type
Properties
Gets the current end point of the last path element.
Gets the current end point of the last path element.
readonlyfinal
Property Value
The current end point.
readonlyfinal
Property Value
The x coordinate or
0 if the element is of type PathType.CLOSE.readonlyfinal
Property Value
The y coordinate or
0 if the element is of type PathType.CLOSE.Gets the type of the path at the position of the cursor.
Gets the type of the path at the position of the cursor.
readonlyfinal
Methods
Places the coordinates for the current type into the given array.
Places the coordinates for the current type into the given array.
final
Parameters
- coordinates: number[]
- The coordinates. The array needs to have a length of at least 6, since PathType.CUBIC_TO needs six coordinates. If the path has been flattened, a length of two suffices.
Return Value
- PathType
- The current type of the path element.
See Also
Places the current end coordinates of the last path element into the array.
Places the current end coordinates of the last path element into the array.
final
Parameters
- coordinates: number[]
- An array with a length of at least 2.
Return Value
- PathType
- The type of the current element.
final
Return Value
- boolean
- Whether the cursor has been moved successfully.
falseif the cursor has been moved beyond the end of the path.
final
Return Value
- boolean
- Whether the move was successful.