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.
Type Parameters
Section titled “Type Parameters”A extends Attributes
S
GS
T
Properties
Section titled “Properties”
optionalelse?: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
Parameters
Section titled “Parameters”attributes
Section titled “attributes”A
S
graphState
Section titled “graphState”GS
AbstractGraph
Returns
Section titled “Returns”boolean