@shumoku/core · 0.4.0 · function
routeEdges
APIの説明は英語のcanonical sourceを表示しています。
Produce a `ResolvedEdge` for every link whose endpoints resolve to known ports. Links pointing at a missing port are dropped (matches the previous behaviour of libavoid-router). The function returns a Promise for backwards compatibility with the old WASM-backed router — every existing caller already awaits the result, and async-of-sync incurs zero cost. `nodes` is accepted but unused so the signature mirrors the historical libavoid-router API. Bezier edges read positions off `ports` directly via each `ResolvedPort.absolutePosition`.
routeEdges(nodes: Map<string, Node>, ports: Map<string, ResolvedPort>, links: readonly Link[], subgraphs?: Map<string, Subgraph>): Promise<Map<string, ResolvedEdge>> パラメーター
| 名前 | 型 | 説明 | 既定値 |
|---|---|---|---|
nodes | Map<string, Node> | 追加説明はありません。 | — |
ports | Map<string, ResolvedPort> | 追加説明はありません。 | — |
links | readonly Link[] | 追加説明はありません。 | — |
subgraphs | Map<string, Subgraph> | 追加説明はありません。 | — |
戻り値
Promise<Map<string, ResolvedEdge>>