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
| Parameter | Type | Description |
|---|---|---|
| origin | PointXY | Origin of the rectangle to test |
| dimensions | Size | Width and height of the rectangle to test |
| enclosed | boolean | If true, vertices must be fully enclosed by the rectangle |
| dontIncludeNodesInsideGroups | boolean | If true, Nodes inside Groups are omitted from the search |
Returns:
Array<IntersectingVertex<Node>>