Constructor
new AnchorsAndHandles(start_anchors, first_controls, second_controls, end_anchors)
Creates a new AnchorsAndHandles object.
Parameters:
Name | Type | Description |
---|---|---|
start_anchors | Array.<Point2D> | The start anchors of the path. |
first_controls | Array.<Point2D> | The first control points of the path. |
second_controls | Array.<Point2D> | The second control points of the path. |
end_anchors | Array.<Point2D> | The end anchors of the path. |
- Source
Classes
Members
end_anchors
Returns the end anchors of the path.
- Source
first_controls
Returns the first control points of the path.
- Source
len
Returns the number of cubic bezier curves in the path.
- Source
second_controls
Returns the second control points of the path.
- Source
start_anchors
Returns the start anchors of the path.
- Source
Methods
clone() → {AnchorsAndHandles}
Clones the AnchorsAndHandles object.
- Source
Returns:
- Type:
- AnchorsAndHandles
(static) from_path(path) → {AnchorsAndHandles}
Creates a AnchorsAndHandles object from a Path2D object.
Parameters:
Name | Type | Description |
---|---|---|
path | Path2D | The path to extract the anchors and handles from. |
- Source
Returns:
An object containing the start anchors, first control points, second control points, and end anchors of a path.
- Type:
- AnchorsAndHandles