Skip to content

InstancedLinesData

Defined in: core/backend.ts:121

SoA for a batch of instanced lines (e.g. network links); straight, or bent via bends.

optional bends?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:134

Optional per-line bend (#104 N6c): the quadratic-bezier control offset ⟂ to the chord, as a fraction of chord length (0/absent ⇒ straight). Length count.


colors: Uint8Array

Defined in: core/backend.ts:129

RGBA bytes per line, length 4 * count.


count: number

Defined in: core/backend.ts:148


optional groups?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:142

Per-instance highlight group (#162): the link’s source node id, matched against u_hoverGroup / used to index the selected set so the vertex shader recolours a highlighted node’s links. Length count.


optional groups2?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:145

The link’s target node id (#162) — the OTHER endpoint, so an undirected hover matches incident links on either side; -1/absent for directed links (matched on groups/source alone). Length count.


optional samples?: number

Defined in: core/backend.ts:139

Path samples (M) for the strip — 2 (straight, default) up to ~16–32 for a smooth bend. A draw setting, not per-instance; bent layers raise it, straight layers keep 2 to stay cheap at scale.


optional selected?: Uint8Array<ArrayBufferLike>

Defined in: core/backend.ts:147

Per-instance selected flag (0/1) for shader-driven dim/recolour (#162). Length count.


sources: Float32Array

Defined in: core/backend.ts:123

[x, y] world source per line, length 2 * count.


targets: Float32Array

Defined in: core/backend.ts:125

[x, y] world target per line, length 2 * count.


widths: Float32Array

Defined in: core/backend.ts:127

width per line, length count.