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

InlineStateConditional

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

Inline state conditional value. Chooses between then and else based on a state 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:167


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

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


whenState: StatePredicate<S>

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