Skip to content
This is the alpha v4 version website. Looking for the v3 documentation?

DEFAULT_STYLES

const DEFAULT_STYLES: object

Defined in: packages/sigma/src/types/styles.ts:854

Default styles declaration.

DEPTHLESS_STYLES plus the default depth rules: hover/highlight lift items to the topNodes / topEdges layers.

Users can:

  • Use DEFAULT_STYLES as-is for sensible defaults
  • Extend with spread: { nodes: { …DEFAULT_STYLES.nodes, size: 20 } }
  • Replace entirely by providing their own styles object
  • Use DEPTHLESS_STYLES instead when declaring custom depthLayers

Type Declaration

edges

edges: EdgeStyleRule<Attributes, BaseEdgeState, BaseGraphState, EmptyVariables, DefaultEdgeDepthLayer>

nodes

nodes: NodeStyleRule<Attributes, BaseNodeState, BaseGraphState, EmptyVariables, DefaultNodeDepthLayer>