InstancedHighlight
Defined in: core/backend.ts:100
Shader-driven highlight state for an instanced layer (#162). Passed to Backend.styleInstancedLayer, it maps to vertex-shader uniforms so hover/selection restyle costs no geometry rebuild:
hoverGroup— the hovered node’s group id (matched against each instance’sgroups);-1= none.hoverInstances—[lo, hi): instances highlighted with the hover by their index in the layer (#476 — an open module’s drawn members, one contiguous run of the frontier);[0, 0]= none.dimActive/dimOpacity— fade every non-highlighted instance’s alpha bydimOpacitywhen active.recolor— RGB (0..1) a highlighted instance is tinted toward, preserving luminance (so a weight- encoded link keeps its weight);null/absent ⇒ highlighted instances keep their colour (e.g. nodes).selected— optional per-instance flag buffer (0/1) to upload in place (a selection change), instead of re-emitting the layer. Length must equal the layer’s instance count.
Properties
Section titled “Properties”dimActive?
Section titled “dimActive?”
optionaldimActive?:boolean
Defined in: core/backend.ts:103
dimOpacity?
Section titled “dimOpacity?”
optionaldimOpacity?:number
Defined in: core/backend.ts:104
hoverGroup?
Section titled “hoverGroup?”
optionalhoverGroup?:number
Defined in: core/backend.ts:101
hoverInstances?
Section titled “hoverInstances?”
optionalhoverInstances?: [number,number]
Defined in: core/backend.ts:102
recolor?
Section titled “recolor?”
optionalrecolor?: [number,number,number] |null
Defined in: core/backend.ts:105
selected?
Section titled “selected?”
optionalselected?:Uint8Array<ArrayBufferLike>
Defined in: core/backend.ts:106