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
) -> GSNode

Parameters

excludes

Nodes or components to exclude from the search.

traverseComponents

When 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

See Also

Node Hit Testing