本文へ移動

@eightkk/vue-weave / core / applyGraphPositions

Function: applyGraphPositions() ​

applyGraphPositions(layout, edges, positions, direction?): GraphLayout

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

Apply saved positions without changing the original layout or untouched routes.

Parameters ​

layout ​

GraphLayout

edges ​

readonly GraphEdge<unknown>[]

positions ​

ReadonlyMap<string, GraphPoint>

direction? ​

GraphLayoutDirection = 'LR'

Returns ​

GraphLayout

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