Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@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[]

libs/@shumoku/core/src/layout/invariants.ts:399