AnchorsAndHandles

Start anchors, first control points, second control points, and end anchors of a path.

Constructor

new AnchorsAndHandles(start_anchors, first_controls, second_controls, end_anchors)

Creates a new AnchorsAndHandles object.

Parameters:
NameTypeDescription
start_anchorsArray.<Point2D>

The start anchors of the path.

first_controlsArray.<Point2D>

The first control points of the path.

second_controlsArray.<Point2D>

The second control points of the path.

end_anchorsArray.<Point2D>

The end anchors of the path.

Classes

AnchorsAndHandles

Members

end_anchors

Returns the end anchors of the path.

first_controls

Returns the first control points of the path.

len

Returns the number of cubic bezier curves in the path.

second_controls

Returns the second control points of the path.

start_anchors

Returns the start anchors of the path.

Methods

clone() → {AnchorsAndHandles}

Clones the AnchorsAndHandles object.

Returns:
Type: 
AnchorsAndHandles

(static) from_path(path) → {AnchorsAndHandles}

Creates a AnchorsAndHandles object from a Path2D object.

Parameters:
NameTypeDescription
pathPath2D

The path to extract the anchors and handles from.

Returns:

An object containing the start anchors, first control points, second control points, and end anchors of a path.

Type: 
AnchorsAndHandles