Home > @jsplumbtoolkit/browser-ui > Surface > findIntersectingVertices
Surface.findIntersectingVertices() method
Finds vertices - Nodes or Groups - that intersect a rectangle defined by the given origin and dimensions.
Signature:
findIntersectingVertices<T extends Node>(origin: PointXY, dimensions: Size, enclosed?: boolean, dontIncludeGroups?: boolean, dontIncludeNodes?: boolean, dontIncludeNodesInsideGroups?: boolean, dontIncludeNestedGroups?: boolean): Array<IntersectingVertex<T>>;
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 |
| dontIncludeGroups | boolean | If true, Groups are omitted from the search |
| dontIncludeNodes | boolean | If true, Nodes are omitted from the search |
| dontIncludeNodesInsideGroups | boolean | If true, Nodes inside Groups are omitted from the search |
| dontIncludeNestedGroups | boolean | If true, Groups that are nested inside other Groups are omitted from the search |
Returns:
Array<IntersectingVertex<T>>