InstancedHighlight
Defined in: core/backend.ts:89
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.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:91
dimOpacity?
Section titled “dimOpacity?”
optionaldimOpacity?:number
Defined in: core/backend.ts:92
hoverGroup?
Section titled “hoverGroup?”
optionalhoverGroup?:number
Defined in: core/backend.ts:90
recolor?
Section titled “recolor?”
optionalrecolor?: [number,number,number] |null
Defined in: core/backend.ts:93
selected?
Section titled “selected?”
optionalselected?:Uint8Array<ArrayBufferLike>
Defined in: core/backend.ts:94