InstancedLinesData
Defined in: core/backend.ts:98
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:111
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:106
RGBA bytes per line, length 4 * count.
count:
number
Defined in: core/backend.ts:117
samples?
Section titled “samples?”
optionalsamples?:number
Defined in: core/backend.ts:116
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.
sources
Section titled “sources”sources:
Float32Array
Defined in: core/backend.ts:100
[x, y] world source per line, length 2 * count.
targets
Section titled “targets”targets:
Float32Array
Defined in: core/backend.ts:102
[x, y] world target per line, length 2 * count.
widths
Section titled “widths”widths:
Float32Array
Defined in: core/backend.ts:104
width per line, length count.