Shumoku Docs

ドキュメントを検索

共通文書と現行公開版

検索を読み込み中…

English

@shumoku/core · 0.4.0 · function

groupCouplingPairs

ソース

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

Union-find grouping of coupling pairs into redundancy groups (an N-member stack is a chain of pair links). Generic over ids so both renderers can feed their edge shapes in. `kind` of the group = the first pair's kind.

groupCouplingPairs(pairs: { a: string; b: string; kind?: string }[]): { kind?: string; members: string[] }[]

パラメーター

名前 説明 既定値
pairs { a: string; b: string; kind?: string }[] 追加説明はありません。

戻り値

{ kind?: string; members: string[] }[]

libs/@shumoku/core/src/layout/ha-hull.ts:230