evaluateEdgeStyle
evaluateEdgeStyle<
EA,ES,GS>(styleDeclaration,attributes,state,graphState,graph,target?):EdgeDisplayData
Defined in: packages/sigma/src/core/styles.ts:624
Evaluates a complete edge style declaration for a specific edge. Writes results directly into the target EdgeDisplayData (or a fresh object if not provided).
Type Parameters
EA
EA extends Attributes = Attributes
ES
ES extends BaseEdgeState = BaseEdgeState
GS
GS extends BaseGraphState = BaseGraphState
Parameters
styleDeclaration
Record<string, unknown> | Record<string, unknown>[] | undefined
The style declaration (object or array of rules)
attributes
EA
The edge’s attributes
state
ES
The edge’s state
graphState
GS
The graph-level state
graph
AbstractGraph
The graph instance
target?
Optional existing EdgeDisplayData to write into (avoids allocation)
Returns
The populated EdgeDisplayData