Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > findIntersectingNodes

Surface.findIntersectingNodes() method

Finds Nodes (not Groups) - that intersect a rectangle defined by the given origin and dimensions.

Signature:

findIntersectingNodes(origin: PointXY, dimensions: Size, enclosed?: boolean, dontIncludeNodesInsideGroups?: boolean): Array<IntersectingVertex<Node>>;

Parameters

ParameterTypeDescription
originPointXYOrigin of the rectangle to test
dimensionsSizeWidth and height of the rectangle to test
enclosedbooleanIf true, vertices must be fully enclosed by the rectangle
dontIncludeNodesInsideGroupsbooleanIf true, Nodes inside Groups are omitted from the search

Returns:

Array<IntersectingVertex<Node>>