Release v3.3
π What's New
Link Styles: Dashed, Dotted, and Gradient Links
Screen.Recording.2026-07-08.at.7.30.41.PM.mp4
Links can now be dashed or dotted, and colored as a gradient between their
endpoint colors. Both combine freely β per link.
import { Graph, LinkStyle } from '@cosmos.gl/graph'
// one value per link, like setPointShapes
graph.setLinkStyles(new Float32Array([LinkStyle.Solid, LinkStyle.Dashed, LinkStyle.Dotted]))
// gradient from source to target point color
graph.setConfigPartial({ linkColorInterpolateFromEndpoints: true })const config = {
linkDefaultStyle: LinkStyle.Solid, // fallback for links without a style
linkDashLength: 8, // dash length, in screen px
linkDashGap: 4, // gap between dashes (or dots)
linkColorInterpolateFromEndpoints: false, // endpoint-color gradient
}All four can be changed in real time.
luma.gl 9.3
The rendering stack moved to luma.gl 9.3. Internal only β no API changes.