Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

ValueSource

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

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

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

Type Parameters

T

T

Union Members

T


Type Literal

{ attribute: string; default?: T; }

attribute

attribute: string

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

default?

optional default?: T

Default value when the attribute is missing or undefined.