Declaration

func previousOncurveNode(from index: Int) -> GSNode?

Declaration

- (GSNode *) previousOncurveNodeFromIndex:(NSInteger) index;

Declaration

previousOncurveNodeFromIndex_(index: int) -> GSNode

Discussion

For a closed path, navigation wraps around the path. For an open path, returns nil when no previous on-curve node exists. For a path consisting solely of off-curve nodes, returns nil.

See Also

Node Navigation

  • The node at an index.

  • The index of a node, or nil when the node is not in the path.

  • An index from which every segment can be traversed in node order.

  • The next on-curve node after an index.

  • For open paths, returns the first node of the path, otherwise nil.

  • For open paths, returns the last node of the path, otherwise nil.

  • The node used to begin traversing a closed path, or nil for an open path.

  • The lowest on-curve node, preferring the leftmost node at equal height.

  • Moves trailing off-curve nodes to the beginning of a closed path.

  • Makes a node the start node of the path.

  • The index preceding the first on-curve node for TrueType path traversal.

See Also

Node Navigation