Skip to content

InstancedLinesData

Defined in: core/backend.ts:98

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: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: Uint8Array

Defined in: core/backend.ts:106

RGBA bytes per line, length 4 * count.


count: number

Defined in: core/backend.ts:117


optional samples?: 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: Float32Array

Defined in: core/backend.ts:100

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


targets: Float32Array

Defined in: core/backend.ts:102

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


widths: Float32Array

Defined in: core/backend.ts:104

width per line, length count.