Instance Method
addNode(withPosition:type:connection:attributes:) addNodeWithPosition:type:connection:attributes: addNodeWithPosition_type_connection_attributes_
Appends a new node and aligns its position to the layer grid.
Declaration
func addNode(
withPosition position: NSPoint,
type: GSNode.NodeType,
connection: GSNode.Connection,
attributes: [GSShapeKey : Any]? = nil
)Declaration
- (void) addNodeWithPosition:(NSPoint) position
type:(GSNodeType) type
connection:(GSNodeConnection) connection
attributes:(NSDictionary<NSString *,id> *) attributes;Declaration
addNodeWithPosition_type_connection_attributes_(
position: NSPoint,
type: GSNodeType,
connection: GSNodeConnection,
attributes: dict[str, object]
)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 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 on-curve node at a path time while preserving the path shape.
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.