本文へ移動

@eightkk/vue-weave / core / routeGraphPorts

Function: routeGraphPorts() ​

routeGraphPorts(layout, nodes, edges, direction, options?): GraphLayout

Defined in: src/core/graph.ts:476

Route named endpoints after the node layout and any saved positions are applied. With policy: 'preserve', valid routes from the layout are kept. Throws RangeError for an unknown policy.

Parameters ​

layout ​

GraphLayout

nodes ​

ReadonlyMap<string, IdentifiedNode>

edges ​

readonly GraphEdge<unknown>[]

direction ​

GraphLayoutDirection

options? ​

GraphPortRouteOptions = {}

Returns ​

GraphLayout

MIT ライセンスで公開しています。