本文へ移動

@eightkk/vue-weave / core / completeGraphLayout

Function: completeGraphLayout() ​

completeGraphLayout(layout, nodes, edges, options?): GraphLayoutCompletion

Defined in: src/core/graphLayoutRequests.ts:272

Fills in temporary routes for the edges a cached layout has no path for, such as an edge connected while a new layout is computed. An edge whose end boxes both exist gets the curve the core draws for a moved node, or between its ports when it has named ports, and a label anchor; it is listed in temporaryEdgeIds, and the routing policy 'preserve' treats it as a built-in route, so it is redrawn when routed. Other paths, boxes and route metadata are kept. Throws RangeError for an unknown direction. The inputs are not modified.

Parameters ​

layout ​

GraphLayout

nodes ​

readonly IdentifiedNode[]

edges ​

readonly GraphEdge<unknown>[]

options? ​

GraphLayoutCompletionOptions = {}

Returns ​

GraphLayoutCompletion

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