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

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).

EA extends Attributes = Attributes

ES extends BaseEdgeState = BaseEdgeState

GS extends BaseGraphState = BaseGraphState

Record<string, unknown> | Record<string, unknown>[] | undefined

The style declaration (object or array of rules)

EA

The edge’s attributes

ES

The edge’s state

GS

The graph-level state

AbstractGraph

The graph instance

EdgeDisplayData

Optional existing EdgeDisplayData to write into (avoids allocation)

EdgeDisplayData

The populated EdgeDisplayData