InstancedPieData
Defined in: core/backend.ts:349
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:355
[startFrac, endFrac] angular range in [0, 1] per wedge (cumulative fractions), length 2 * count.
borderDarken?
Section titled “borderDarken?”
optionalborderDarken?:number
Defined in: core/backend.ts:363
The RGB factor of the band (InstancedPieData.borders); default 1 (no darkening).
borders?
Section titled “borders?”
optionalborders?:Float32Array<ArrayBufferLike>
Defined in: core/backend.ts:361
Per-wedge outer band as a fraction of its radius (#507): from radius · (1 − border) out to radius
the wedge is drawn in its own colour with RGB × InstancedPieData.borderDarken, so a node’s
flow border shows each wedge’s darker shade. Length count; absent: no band.
centers
Section titled “centers”centers:
Float32Array
Defined in: core/backend.ts:351
[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:357
RGBA bytes per wedge, length 4 * count.
count:
number
Defined in: core/backend.ts:369
groups?
Section titled “groups?”
optionalgroups?:Float32Array<ArrayBufferLike>
Defined in: core/backend.ts:366
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:353
radius per wedge, length count.
selected?
Section titled “selected?”
optionalselected?:Uint8Array<ArrayBufferLike>
Defined in: core/backend.ts:368
Per-instance selected flag (0/1) for shader-driven dim/recolour (#162). Length count.