evaluateNodeStyle
evaluateNodeStyle<
NA,NS,GS>(styleDeclaration,attributes,state,graphState,graph,target?):NodeDisplayData
Defined in: packages/sigma/src/core/styles.ts:562
Evaluates a complete node style declaration for a specific node.
Writes results directly into the target NodeDisplayData (or a fresh object if not provided).
Does not set highlighted — that must be assigned by the caller from node state.
Type Parameters
Section titled “Type Parameters”NA extends Attributes = Attributes
NS extends BaseNodeState = BaseNodeState
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”NA
The node’s attributes
NS
The node’s state
graphState
Section titled “graphState”GS
The graph-level state
AbstractGraph
The graph instance
target?
Section titled “target?”Optional existing NodeDisplayData to write into (avoids allocation)
Returns
Section titled “Returns”The populated NodeDisplayData