Instance Method
node(at:excludeNodes:traverseComponents:ignoreLocked:tolerance:) nodeAtPoint:excludeNodes:traverseComponents:ignoreLocked:tolerance: nodeAtPoint_excludeNodes_traverseComponents_ignoreLocked_tolerance_
Returns the nearest node to a point, excluding a set of objects.
Declaration
func node(at aPoint: NSPoint, excludeNodes excludes: Set<GSNode>?, traverseComponents: Bool, ignoreLocked: Bool, tolerance: CGFloat) -> GSNode?Declaration
- (GSNode *) nodeAtPoint:(NSPoint) aPoint excludeNodes:(NSSet<GSNode *> *) excludes traverseComponents:(BOOL) traverseComponents ignoreLocked:(BOOL) ignoreLocked tolerance:(CGFloat) tolerance;Declaration
nodeAtPoint_excludeNodes_traverseComponents_ignoreLocked_tolerance_(aPoint: NSPoint, excludes: set[GSNode], traverseComponents: bool, ignoreLocked: bool, tolerance: float) -> GSNodeParameters
excludesNodes or components to exclude from the search.
traverseComponentsWhen
YES, the search uses node positions from component outlines and returns a transient node.
Return Value
The nearest node within tolerance, or nil if no node matches.
Discussion
Locked paths and nodes are skipped when ignoreLocked is YES.
See Also
Node Hit Testing
Returns the nearest node to a point, excluding one node.
The index path of an on-curve node near the given x position and the matched node position.
The index path of an on-curve node near the given y position and the matched node position.
See Also
Node Hit Testing
Returns the nearest node to a point, excluding one node.
Returns the index path of an on-curve node near the given x position.
Returns the index path of an on-curve node near the given y position.