@shumoku/core · 0.4.0 · function
findDetachedTerminals
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[]