本文へ移動

@eightkk/vue-weave / core / layoutTreeGraph

Function: layoutTreeGraph() ​

layoutTreeGraph(nodes, edges, options?): GraphLayout

Defined in: src/core/graphLayouts.ts:145

Tidy tree layout for forests. Depth maps to columns (LR) and leaves are spaced evenly with each parent centred over its children. Edges that are not tree edges are drawn as extra curves.

Parameters ​

nodes ​

readonly IdentifiedNode[]

edges ​

readonly GraphEdge<unknown>[]

options? ​

GraphTreeLayoutOptions = {}

Returns ​

GraphLayout

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