Skip to content

EdgeColorValue

EdgeColorValue = string | { attribute: string; default?: string; } | { node: "source" | "target"; }

Defined in: packages/sigma/src/rendering/edges/layers/color-value.ts:20

A color source for edge layer options:

  • string: constant CSS color
  • { attribute, default? }: per-edge color read from edge display data (style-bound variables included)
  • { node: “source” | “target” }: the source or target node color, read live from the node data texture (stays in sync with node styles)