InstancedLinesData
Defined in: core/backend.ts:121
SoA for a batch of instanced lines (e.g. network links); straight, or bent via bends.
Properties
Section titled “Properties”bends?
Section titled “bends?”
optionalbends?: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
Section titled “colors”colors:
Uint8Array
Defined in: core/backend.ts:129
RGBA bytes per line, length 4 * count.
count:
number
Defined in: core/backend.ts:148
groups?
Section titled “groups?”
optionalgroups?: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.
groups2?
Section titled “groups2?”
optionalgroups2?: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.
samples?
Section titled “samples?”
optionalsamples?: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.
selected?
Section titled “selected?”
optionalselected?:Uint8Array<ArrayBufferLike>
Defined in: core/backend.ts:147
Per-instance selected flag (0/1) for shader-driven dim/recolour (#162). Length count.
sources
Section titled “sources”sources:
Float32Array
Defined in: core/backend.ts:123
[x, y] world source per line, length 2 * count.
targets
Section titled “targets”targets:
Float32Array
Defined in: core/backend.ts:125
[x, y] world target per line, length 2 * count.
widths
Section titled “widths”widths:
Float32Array
Defined in: core/backend.ts:127
width per line, length count.