MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / edgeStyle

Function edgeStyle

dashboard/graph/src/canvasHelpers.ts:93–100  ·  view source on GitHub ↗
(kind: string, theme: Pick<ThemeColors, "accents">)

Source from the content-addressed store, hash-verified

91}
92
93export function edgeStyle(kind: string, theme: Pick<ThemeColors, "accents">) {
94 const def = EDGE_STYLE_DEFS[kind] || DEFAULT_EDGE_STYLE_DEF;
95 return {
96 color: withAlpha(theme.accents[def.accent], def.alpha),
97 dash: def.dash,
98 width: def.width,
99 };
100}
101
102/**
103 * Frames the bounding box of every simulated node. `smooth` lerps toward the

Callers 1

renderFunction · 0.90

Calls 1

withAlphaFunction · 0.70

Tested by

no test coverage detected