# findEdgeNodePiercing

Canonical: https://docs.shumoku.dev/en/library/api/findEdgeNodePiercing
Language: en

@shumoku/core · 0.4.0 · function

# findEdgeNodePiercing

[Source](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/invariants.ts#L436)

Find wires that run THROUGH a foreign node box (inflated by \`inflate\`): any segment crossing one of the box's four borders. A wire may touch its own endpoints' boxes. Grid-accelerated, exact (same predicate as the old routed-score inner loop — this IS that loop, extracted so the score and the constraint check share one definition).

```
findEdgeNodePiercing(lines: readonly PierceLineSpec[], nodeBoxes: readonly BoxSpec[], inflate?: number): EdgeNodePierce[]
```

## Parameters

| Parameter | Type | Description | Default |
| --- | --- | --- | --- |
| `lines` | `readonly PierceLineSpec[]` | No additional description. | `—` |
| `nodeBoxes` | `readonly BoxSpec[]` | No additional description. | `—` |
| `inflate` | `number` | No additional description. | `2` |

## Returns

```
EdgeNodePierce[]
```

[`libs/@shumoku/core/src/layout/invariants.ts:436`](https://github.com/konoe-akitoshi/shumoku/blob/main/libs/@shumoku/core/src/layout/invariants.ts#L436)
