@shumoku/core · 0.4.0 · function
findNodeOverlaps
Find pairs of node boxes that overlap (optionally requiring `margin` clear space between boxes). O(n²) — layout-sized inputs only.
findNodeOverlaps(boxes: readonly BoxSpec[], margin?: number): NodeOverlap[] Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
boxes | readonly BoxSpec[] | No additional description. | — |
margin | number | No additional description. | 0 |
Returns
NodeOverlap[]