本文へ移動

@eightkk/vue-weave / core / layoutGridGraph

Function: layoutGridGraph() ​

layoutGridGraph(nodes, edges, options?): GraphLayout

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

Grid layout: nodes fill rows of columns in input order. rank is the row index. Edges are straight lines between box borders, so they can cross other boxes; self-loops are small curves.

Parameters ​

nodes ​

readonly IdentifiedNode[]

edges ​

readonly GraphEdge<unknown>[]

options? ​

GraphGridLayoutOptions = {}

Returns ​

GraphLayout

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