NodeProgramOptions
Defined in: packages/sigma/src/rendering/nodes/types.ts:432
Options for creating a node program via createNodeProgram().
Supports two modes:
- Single shape: Use
shapefor a program that renders one shape type - Multi-shape: Use
shapesfor a program that can render different shapes per node
When using multi-shape mode, each node can specify which shape to use via
the shape attribute in its display data (e.g., “circle”, “square”).
Properties
Section titled “Properties”backdrop?
Section titled “backdrop?”
optionalbackdrop?:BackdropOptions
Defined in: packages/sigma/src/rendering/nodes/types.ts:458
Backdrop configuration for hover effects. Controls the backdrop style rendered behind hovered nodes. When using constant values, they’re baked into the shader (no per-node storage). When using attribute bindings, per-node values are stored in vertex buffers.
label?
Section titled “label?”
optionallabel?:LabelOptions
Defined in: packages/sigma/src/rendering/nodes/types.ts:450
Label configuration options. The LabelProgram is automatically generated from the shape and these options.
labelAttachments?
Section titled “labelAttachments?”
optionallabelAttachments?:Record<string,LabelAttachmentRenderer>
Defined in: packages/sigma/src/rendering/nodes/types.ts:464
Declared label attachments. Only their presence matters here: when none are declared, no attachment program is built (see createNodeProgram).
layers
Section titled “layers”layers:
FragmentLayer[]
Defined in: packages/sigma/src/rendering/nodes/types.ts:444
Array of fragment layers to apply, in order. Layers are applied sequentially, each receiving the output of the previous layer.
shapes
Section titled “shapes”shapes:
SDFShape[]
Defined in: packages/sigma/src/rendering/nodes/types.ts:438
Array of SDF shape definitions.
Nodes can select their shape via the shape attribute in display data.
The first shape is used as the default when no shape is specified.