Function
edgeStyle
(kind: string, theme: Pick<ThemeColors, "accents">)
Source from the content-addressed store, hash-verified
| 91 | } |
| 92 | |
| 93 | export 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 |
Tested by
no test coverage detected