Skip to content

@eightkk/vue-weave / core / GraphIncrementalLayoutOptions

Interface: GraphIncrementalLayoutOptions ​

Defined in: src/core/graphIncremental.ts:25

Options of layoutGraphIncrementally: the shared layout options, where direction is the direction in which successors are placed after their predecessors, nodeWidth and nodeHeight size a node without a size of its own (from its position or sizes), columnGap and rowGap are the free space kept between boxes along and across the flow, and padding is added to the right and bottom of the layout size (and is where a graph without positions starts).

Extends ​

Properties ​

allowNegative? ​

optional allowNegative?: boolean

Defined in: src/core/graphIncremental.ts:40

Default false: new boxes stay at nonnegative coordinates, as the NetworkGraph positions prop requires, so a new node whose flow side would leave that area (a predecessor of a node at the left edge in LR) is placed beside its neighbour in the same rank instead and listed in fallbackIds. True lets new boxes take negative coordinates.


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.

Inherited from ​

GraphLayoutOptions.columnGap


direction? ​

optional direction?: GraphLayoutDirection

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

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

Inherited from ​

GraphLayoutOptions.direction


fixedIds? ​

optional fixedIds?: Iterable<string, any, any>

Defined in: src/core/graphIncremental.ts:29

Pinned nodes. Each must be a node with a position; it never moves, whatever the other options say.


maxDisplacement? ​

optional maxDisplacement?: number

Defined in: src/core/graphIncremental.ts:34

Relaxed mode: how far, in chart units, a positioned node that is not fixed may be pushed across the flow to free the place a new node wants next to its neighbours. Default 0: no positioned node moves.


nodeHeight? ​

optional nodeHeight?: number

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

Height of a node box. Default 58.

Inherited from ​

GraphLayoutOptions.nodeHeight


nodeWidth? ​

optional nodeWidth?: number

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

Width of a node box. Default 144.

Inherited from ​

GraphLayoutOptions.nodeWidth


padding? ​

optional padding?: number

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

Margin around the layout. Default 20.

Inherited from ​

GraphLayoutOptions.padding


previousLayout? ​

optional previousLayout?: Pick<GraphLayout, "boxes" | "paths" | "edgeLabels"> & Partial<Pick<GraphLayout, "routes">>

Defined in: src/core/graphIncremental.ts:45

An earlier layout of the same graph. Edges whose two end boxes are unchanged in the result keep its path, label anchor and route metadata; the other edges get the curve drawn for a moved node.


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.

Inherited from ​

GraphLayoutOptions.rowGap


sizes? ​

optional sizes?: ReadonlyMap<string, GraphNodeSize>

Defined in: src/core/graphIncremental.ts:27

Node sizes by ID. A size in a node's position wins over this one.

Released under the MIT License.