InstancedPieData
Defined in: core/backend.ts:214
SoA for a batch of instanced pie wedges (#171) — the physical-view glyph for a state network’s
overlapping module membership. One instance per wedge (not per pie): a wedge is an angular
[startFrac, endFrac] sector of a disc, so a physical node spanning w modules contributes w
wedge instances sharing a centre/radius. Reuses the circle’s quad+SDF-disc positioning; the fragment
discards outside the disc and outside the wedge’s angular range, so there is no per-fragment loop
and no wedge texture — it draws in one instanced call and updates in place like InstancedCirclesData.
(Single-module physical nodes stay on the InstancedCirclesData lane as solid discs.)
Properties
Section titled “Properties”angles
Section titled “angles”angles:
Float32Array
Defined in: core/backend.ts:220
[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:216
[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:222
RGBA bytes per wedge, length 4 * count.
count:
number
Defined in: core/backend.ts:228
groups?
Section titled “groups?”
optionalgroups?:Float32Array<ArrayBufferLike>
Defined in: core/backend.ts:225
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:218
radius per wedge, length count.
selected?
Section titled “selected?”
optionalselected?:Uint8Array<ArrayBufferLike>
Defined in: core/backend.ts:227
Per-instance selected flag (0/1) for shader-driven dim/recolour (#162). Length count.