# findDetachedTerminals

Canonical: https://docs.shumoku.dev/ja/library/api/findDetachedTerminals
Language: ja

@shumoku/core · 0.4.0 · function

# findDetachedTerminals

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

APIの説明は英語のcanonical sourceを表示しています。

Find wires whose polyline does not terminate ON its ports in from→to order (port-attachment constraint). Checks both the position (each terminal within \`epsilon\` of its port) and the direction contract (\`points\[0\]\` is the FROM port specifically — a reversed but touching polyline is reported as detached at both ends). Lines with fewer than two points are skipped: there is no path to check.

```
findDetachedTerminals(lines: readonly AttachedLineSpec[], epsilon?: number): TerminalDetachment[]
```

## パラメーター

| 名前 | 型 | 説明 | 既定値 |
| --- | --- | --- | --- |
| `lines` | `readonly AttachedLineSpec[]` | 追加説明はありません。 | `—` |
| `epsilon` | `number` | 追加説明はありません。 | `0.5` |

## 戻り値

```
TerminalDetachment[]
```

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