日本語
@eightkk/vue-weave / core / GraphFlowOptions
Interface: GraphFlowOptions<N, E>
Defined in: src/core/graphFlow.ts:16
Options of layoutFlowGraph. N and E type the nodes and edges that the accessors receive.
Type Parameters
N
N extends IdentifiedNode = IdentifiedNode
E
E extends GraphEdge = GraphEdge
Properties
crossingSweeps?
optionalcrossingSweeps?:number
Defined in: src/core/graphFlow.ts:49
Number of barycenter sweeps of the layered layout that order the nodes of each rank. Positive integer. Default 4.
direction?
optionaldirection?:GraphLayoutDirection
Defined in: src/core/graphFlow.ts:28
Direction of the flow. Default 'LR'.
displayUnit?
optionaldisplayUnit?:string
Defined in: src/core/graphFlow.ts:26
The unit the projection draws and sums. Required when unit is a function; defaults to unit when it is a string.
formatQuantity?
optionalformatQuantity?: (quantity,unit) =>string
Defined in: src/core/graphFlow.ts:53
Quantity text used in band labels. Default `${quantity} ${unit}`.
Parameters
quantity
number
unit
string
Returns
string
minBandWidth?
optionalminBandWidth?:number
Defined in: src/core/graphFlow.ts:45
Smallest drawn stroke width of a band, so a zero quantity stays a selectable hairline. Default 1.
minNodeSize?
optionalminNodeSize?:number
Defined in: src/core/graphFlow.ts:43
Smallest cross-flow size of a node box, so a node without flow stays visible. Positive. Default 2.
nodeGap?
optionalnodeGap?:number
Defined in: src/core/graphFlow.ts:32
Cross-flow gap between neighbouring nodes of one rank. Default 16.
nodeLabel?
optionalnodeLabel?: (node) =>string
Defined in: src/core/graphFlow.ts:51
Node name used in band labels. Defaults to the node's label when it is a string, else its ID.
Parameters
node
N
Returns
string
nodeThickness?
optionalnodeThickness?:number
Defined in: src/core/graphFlow.ts:30
Size of every node box along the flow. Positive. Default 24.
padding?
optionalpadding?:number
Defined in: src/core/graphFlow.ts:36
Margin around the picture. Default 20.
quantity
quantity: (
edge) =>number
Defined in: src/core/graphFlow.ts:18
The quantity that flows along an edge, in the edge's unit. Must be a finite number of at least 0. Required.
Parameters
edge
E
Returns
number
rankGap?
optionalrankGap?:number
Defined in: src/core/graphFlow.ts:34
Gap between ranks along the flow, where the bands run. Default 120.
referenceGap?
optionalreferenceGap?:number
Defined in: src/core/graphFlow.ts:47
Gap between the picture and the reference lanes, and between two reference lanes. Default 12.
scale?
optionalscale?:GraphFlowScale
Defined in: src/core/graphFlow.ts:41
Default { fitExtent: 360 }, grown for a rank whose gaps and minimum node sizes do not fit into 360. An explicit fitExtent too small for a rank throws a RangeError instead.
unit
unit:
string| ((edge) =>string)
Defined in: src/core/graphFlow.ts:24
The unit of every quantity ('pcs'), or the unit of each edge (edge => edge.data.unit). Required. Quantities in different units are never added: edges whose unit is not displayUnit are left out of the picture and listed in excluded.