Skip to content

InstancedPieData

Defined in: core/backend.ts:314

SoA for instanced pie wedges. On an update the WebGL layer re-uploads a column only when it is a different array from the last one it uploaded (#494), so hand a new array to change a column; never mutate one in place.

angles: Float32Array

Defined in: core/backend.ts:320

[startFrac, endFrac] angular range in [0, 1] per wedge (cumulative fractions), length 2 * count.


centers: Float32Array

Defined in: core/backend.ts:316

[x, y] world centre per wedge (a pie’s wedges share a centre), length 2 * count.


colors: Uint8Array

Defined in: core/backend.ts:322

RGBA bytes per wedge, length 4 * count.


count: number

Defined in: core/backend.ts:328


optional groups?: Float32Array<ArrayBufferLike>

Defined in: core/backend.ts:325

Per-instance highlight group (#162) = the wedge’s physical node id, so a hover/select lights the whole pie (all its wedges share the id). Length count.


radii: Float32Array

Defined in: core/backend.ts:318

radius per wedge, length count.


optional selected?: Uint8Array<ArrayBufferLike>

Defined in: core/backend.ts:327

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