evaluateStatePredicate
evaluateStatePredicate<
S>(predicate,state):boolean
Defined in: packages/sigma/src/core/styles.ts:57
Evaluates a state predicate (shorthand form) against the current state.
For function predicates, use when in style rules or InlineFunctionConditional for inline values.
Type Parameters
Section titled “Type Parameters”S extends object = BaseNodeState
Parameters
Section titled “Parameters”predicate
Section titled “predicate”The shorthand predicate to evaluate
S
The element’s state (node or edge)
Returns
Section titled “Returns”boolean
Whether the predicate matches