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

GradientStop

GradientStop = string | { color: string; offset?: number; } | { node: "source" | "target"; offset?: number; } | { attribute: string; default?: string; offset?: number; }

Defined in: packages/sigma/src/rendering/edges/layers/gradient.ts:18

A gradient color stop: one of the EdgeColorValue forms, carrying an optional offset along the visible edge span, from 0 (source end) to 1 (target end). Constant colors take the { color, offset } form when they need an offset.