本文へ移動

@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? ​

optional crossingSweeps?: 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? ​

optional direction?: GraphLayoutDirection

Defined in: src/core/graphFlow.ts:28

Direction of the flow. Default 'LR'.


displayUnit? ​

optional displayUnit?: 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? ​

optional formatQuantity?: (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? ​

optional minBandWidth?: 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? ​

optional minNodeSize?: 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? ​

optional nodeGap?: number

Defined in: src/core/graphFlow.ts:32

Cross-flow gap between neighbouring nodes of one rank. Default 16.


nodeLabel? ​

optional nodeLabel?: (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? ​

optional nodeThickness?: number

Defined in: src/core/graphFlow.ts:30

Size of every node box along the flow. Positive. Default 24.


padding? ​

optional padding?: 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? ​

optional rankGap?: number

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

Gap between ranks along the flow, where the bands run. Default 120.


referenceGap? ​

optional referenceGap?: number

Defined in: src/core/graphFlow.ts:47

Gap between the picture and the reference lanes, and between two reference lanes. Default 12.


scale? ​

optional scale?: 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.

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