English
@eightkk/vue-weave / core / GraphSwimlaneLayoutOptions
Interface: GraphSwimlaneLayoutOptions<N>
Defined in: src/core/graphSwimlanes.ts:86
Options of layoutSwimlaneGraph: the shared layout options plus the lanes. N is the node type, so a laneOf function receives your own nodes. direction LR and RL give horizontal lanes stacked top to bottom; TB and BT give vertical lanes stacked left to right. rowGap is the distance between nodes of one lane in one rank, and padding the margin around the bands.
Extends
Type Parameters
N
N extends IdentifiedNode = IdentifiedNode
Properties
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
crossingReduction?
optionalcrossingReduction?:"barycenter"|"none"
Defined in: src/core/graphSwimlanes.ts:100
Ordering of the nodes of one lane in one rank. Lanes never change order. Default barycenter.
crossingSweeps?
optionalcrossingSweeps?:number
Defined in: src/core/graphSwimlanes.ts:102
Maximum number of alternating sweeps of the crossing reduction. Default 8.
direction?
optionaldirection?:GraphLayoutDirection
Defined in: src/core/graph.ts:229
Flow direction: ranks grow along it. Default 'LR'.
Inherited from
headerSize?
optionalheaderSize?:number
Defined in: src/core/graphSwimlanes.ts:98
Thickness of the title area along the flow, at the flow start of each band. Default 120 for LR and RL, 32 for TB and BT.
laneGap?
optionallaneGap?:number
Defined in: src/core/graphSwimlanes.ts:92
Free space between neighbouring lane bands. Default 0.
laneOf
laneOf:
ReadonlyMap<string,string> | ((node) =>string|undefined)
Defined in: src/core/graphSwimlanes.ts:90
The lane of each node: a function of the node or a map of node ID to lane ID. Every node needs a known lane.
lanePadding?
optionallanePadding?:number
Defined in: src/core/graphSwimlanes.ts:94
Space between a band's edges (and its header) and the nodes in it. Default 12.
lanes
lanes: readonly (
string|GraphSwimlaneSpec)[]
Defined in: src/core/graphSwimlanes.ts:88
The lanes in display order: IDs or { id, label }. The order is never changed; a lane without nodes still gets a band.
minLaneSize?
optionalminLaneSize?:number
Defined in: src/core/graphSwimlanes.ts:96
Smallest band thickness across the flow. Default 0 (one node plus the padding).
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
poolGap?
optionalpoolGap?:number
Defined in: src/core/graphSwimlanes.ts:112
Free space between neighbouring pools, in place of laneGap. Default 24.
poolHeaderSize?
optionalpoolHeaderSize?:number
Defined in: src/core/graphSwimlanes.ts:110
Thickness of a pool's title band along the flow. Default 32.
pools?
optionalpools?: readonlyGraphSwimlanePoolSpec[]
Defined in: src/core/graphSwimlanes.ts:108
Pools (BPMN participants) around the lanes, opt-in. With pools, every lane belongs to exactly one pool, the lanes of a pool are consecutive in lanes, each pool gets a title band of poolHeaderSize before the lane headers, and pools are poolGap apart. The lane of a pool with a single lane gets no header of its own (a zero-size header).
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.