Home > @jsplumbtoolkit/browser-ui > Surface > findIntersectingGroups
Surface.findIntersectingGroups() method
Finds Groups (not Nodes) - that intersect a rectangle defined by the given origin and dimensions.
Signature:
findIntersectingGroups(origin: PointXY, dimensions: Size, enclosed?: boolean, dontIncludeNestedGroups?: boolean): Array<IntersectingVertex<Group>>;
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 |
dontIncludeNestedGroups | boolean | If true, Nodes inside Groups are omitted from the search |
Returns:
Array<IntersectingVertex<Group>>