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

StyleDependency

StyleDependency = "static" | "item-state" | "graph-state"

Defined in: packages/sigma/src/core/styles.ts:246

Style dependency classification for optimization.

  • “static”: no rules depend on state at all
  • “item-state”: rules depend on item state (e.g. isHovered) but not graph state
  • “graph-state”: rules may depend on graph state (conservative for opaque functions)