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

InlineStateConditional

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

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

Type Parameters

A

A extends Attributes

S

S

GS

GS

T

T

Properties

else?

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

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


then

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

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


whenState

whenState: StatePredicate<S>

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