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.
Properties
Section titled “Properties”angles
Section titled “angles”angles:
Float32Array
Defined in: core/backend.ts:320
[startFrac, endFrac] angular range in [0, 1] per wedge (cumulative fractions), length 2 * count.
centers
Section titled “centers”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
Section titled “colors”colors:
Uint8Array
Defined in: core/backend.ts:322
RGBA bytes per wedge, length 4 * count.
count:
number
Defined in: core/backend.ts:328
groups?
Section titled “groups?”
optionalgroups?: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.
selected?
Section titled “selected?”
optionalselected?:Uint8Array<ArrayBufferLike>
Defined in: core/backend.ts:327
Per-instance selected flag (0/1) for shader-driven dim/recolour (#162). Length count.