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

InlineDataConditional

Defined in: packages/sigma/src/types/styles.ts:176

Inline data conditional value. Chooses between then and else based on a graph attribute shorthand predicate.

  • then and else can be direct values, attribute bindings, or functions
  • else is optional; if omitted, falls back to the graphic variable’s default

A extends Attributes

S

GS

T

optional else?: GraphicValue<A, S, GS, T>

Defined in: packages/sigma/src/types/styles.ts:179


then: GraphicValue<A, S, GS, T>

Defined in: packages/sigma/src/types/styles.ts:178


whenData: DataPredicate<A>

Defined in: packages/sigma/src/types/styles.ts:177