evaluateEdgeStyle
evaluateEdgeStyle<
EA,ES,GS>(styleDeclaration,attributes,state,graphState,graph,target?):EdgeDisplayData
Defined in: packages/sigma/src/core/styles.ts:623
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
Section titled “Type Parameters”EA extends Attributes = Attributes
ES extends BaseEdgeState = BaseEdgeState
GS extends BaseGraphState = BaseGraphState
Parameters
Section titled “Parameters”styleDeclaration
Section titled “styleDeclaration”Record<string, unknown> | Record<string, unknown>[] | undefined
The style declaration (object or array of rules)
attributes
Section titled “attributes”EA
The edge’s attributes
ES
The edge’s state
graphState
Section titled “graphState”GS
The graph-level state
AbstractGraph
The graph instance
target?
Section titled “target?”Optional existing EdgeDisplayData to write into (avoids allocation)
Returns
Section titled “Returns”The populated EdgeDisplayData