@shumoku/core · 0.4.0 · function
routeEdges
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>> Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
nodes | Map<string, Node> | No additional description. | — |
ports | Map<string, ResolvedPort> | No additional description. | — |
links | readonly Link[] | No additional description. | — |
subgraphs | Map<string, Subgraph> | No additional description. | — |
Returns
Promise<Map<string, ResolvedEdge>>