本文へ移動

@eightkk/vue-weave / core / GraphLayoutOptions

Interface: GraphLayoutOptions ​

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

Options shared by the rank-based layouts (layered, tree, swimlane and incremental). Defaults: direction LR, nodes 144 by 58, columnGap 50, rowGap 24, padding 20. Sizes must be finite numbers > 0 and gaps and padding finite numbers ≥ 0, otherwise the layout throws a RangeError that names the option.

Extended by ​

Properties ​

columnGap? ​

optional columnGap?: number

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

Free space between ranks along the flow (between depth levels in the tree layout). Default 50.


direction? ​

optional direction?: GraphLayoutDirection

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

Flow direction: ranks grow along it. Default 'LR'.


nodeHeight? ​

optional nodeHeight?: number

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

Height of a node box. Default 58.


nodeWidth? ​

optional nodeWidth?: number

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

Width of a node box. Default 144.


padding? ​

optional padding?: number

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

Margin around the layout. Default 20.


rowGap? ​

optional rowGap?: number

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

Free space between neighbouring boxes of one rank across the flow (between adjacent leaves in the tree layout, between nodes of one lane in one rank in the swimlane layout). Default 24.

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