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

InlineFunctionConditional

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

Inline function conditional value. Chooses between then and else based on a function predicate. The function receives attributes, state, graph state, and the graph instance. Use this when neither whenState nor whenData shorthand forms are expressive enough.

A extends Attributes

S

GS

T

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

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


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

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


when: (attributes, state, graphState, graph) => boolean

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

A

S

GS

AbstractGraph

boolean