日本語
@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?
optionalallowNegative?: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?
optionalcolumnGap?: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
direction?
optionaldirection?:GraphLayoutDirection
Defined in: src/core/graph.ts:229
Flow direction: ranks grow along it. Default 'LR'.
Inherited from
fixedIds?
optionalfixedIds?: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?
optionalmaxDisplacement?: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?
optionalnodeHeight?:number
Defined in: src/core/graph.ts:233
Height of a node box. Default 58.
Inherited from
nodeWidth?
optionalnodeWidth?:number
Defined in: src/core/graph.ts:231
Width of a node box. Default 144.
Inherited from
padding?
optionalpadding?:number
Defined in: src/core/graph.ts:239
Margin around the layout. Default 20.
Inherited from
previousLayout?
optionalpreviousLayout?: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?
optionalrowGap?: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
sizes?
optionalsizes?: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.