A class that is used by GeneralPath to iterate over the elements the path is made up of.
Inheritance Hierarchy
GeneralPathCursor
Remarks
This class cannot be instantiated
Type Details
- yFiles module
- view
See Also
Properties
Gets the current end point of the last path element.
Property Value
The current end point.
Gets the current x coordinate of the last path element.
Property Value
The x coordinate or
0
if the element is of type CLOSE.Gets the current y coordinate of the last path element.
Property Value
The y coordinate or
0
if the element is of type CLOSE.Gets the type of the path at the position of the cursor.
Methods
Places the coordinates for the current type into the given array.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- coordinates - number[]
- The coordinates. The array needs to have a length of at least 6, since CUBIC_TO needs six coordinates. If the path has been flattened, a length of two suffices.
Returns
- ↪PathType
- The current type of the path element.