Skip to content
sigma.js sigma.js
v4.0.6 Docs Examples GitHub 12.2K

ValueSource

ValueSource<T> = T | { attribute: string; default?: T; }

Defined in: packages/sigma/src/rendering/nodes/types.ts:224

Specification for how to provide a value to a layer. Can be either a constant value or read from a node attribute.

T

T


{ attribute: string; default?: T; }

attribute: string

Name of the node attribute to read from (e.g., “borderSize”).

optional default?: T

Default value when the attribute is missing or undefined.