@shumoku/core · 0.4.0 · function
findPortClutter
Find collisions among port boxes, among label boxes, and between a label and a FOREIGN node box (a label may touch its own node). O(n²) on layout-sized inputs.
findPortClutter(ports: readonly ResolvedPort[], nodeBoxes?: readonly BoxSpec[]): PortClutter[] Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
ports | readonly ResolvedPort[] | No additional description. | — |
nodeBoxes | readonly BoxSpec[] | No additional description. | [] |
Returns
PortClutter[]