Skip to content

FlowBorderSpec

Defined in: network/glyphs.ts:236

Flow-border style (#104 N6): a ring around each node/module whose width encodes a per-node flow (e.g. Infomap enter/exit flow). The app supplies the flow; d3gl renders the ring. For module aggregates the metric is summed over members (see computeLODStyle).

optional color?: string | ((value, index, graph) => string)

Defined in: network/glyphs.ts:250

Ring colour: a single CSS colour, or a per-node (value, index, graph) => cssColour accessor so the ring colour can also encode the per-node metric (a bare d3 colour scale fits — value is the node’s flow metric). Omitted (default): a darker shade of each glyph’s own fill — so a module aggregate’s ring is a darker shade of its module colour, not one shared colour.


flow: Float32Array<ArrayBufferLike> | NodeMetric

Defined in: network/glyphs.ts:241

Per-node enter/exit flow driving the border width: a caller Float32Array (length nodeCount) or a built-in NodeMetric. Summed over members for module aggregates.


scale: (value) => number

Defined in: network/glyphs.ts:243

Maps the (summed) flow → ring width in the active sizeMode’s units, e.g. scaleSqrt().range([0, 6]).

number

number