Instance Method
insertNode(atPathTime:)insertNodeWithPathTime:insertNodeWithPathTime_
Inserts an on-curve node at a path time while preserving the path shape.
Declaration
func insertNode(atPathTime pathTime: CGFloat) -> GSNode?Declaration
- (GSNode *) insertNodeWithPathTime:(CGFloat) pathTime;Declaration
insertNodeWithPathTime_(pathTime: float) -> GSNodeReturn Value
The inserted node, the existing node at a segment boundary, or nil when the operation is unsupported.
Discussion
The integer part of the path time identifies the ending on-curve node of a segment. The fractional part identifies a position within the segment.
See Also
Inserting Nodes
Appends a node and aligns its position to the layer grid.
Appends a node without registering undo, aligning its position, or notifying the layer.
Appends nodes.
Appends a new node and aligns its position to the layer grid.
Appends a new node without registering undo, aligning its position, or notifying the layer.
Appends a cubic curve segment and aligns its node positions to the layer grid.
Appends a cubic curve segment without registering undo, aligning its node positions, or notifying the layer.
Inserts a node at an index and aligns its position to the layer grid.
Inserts an off-curve node into a quadratic segment.
Adds nodes at extrema of cubic curve segments.
Adds nodes at inflection points of cubic curve segments.