(hex: string)
| 39 | }; |
| 40 | |
| 41 | function parseHexRgb(hex: string): { r: number; g: number; b: number } { |
| 42 | const h = hex.startsWith('#') ? hex.slice(1) : hex; |
| 43 | return { |
| 44 | r: parseInt(h.slice(0, 2), 16), |
| 45 | g: parseInt(h.slice(2, 4), 16), |
| 46 | b: parseInt(h.slice(4, 6), 16), |
| 47 | }; |
| 48 | } |
| 49 | |
| 50 | let cache: { themeKey: string; colors: GraphThemeColors } | null = null; |
| 51 |
no outgoing calls
no test coverage detected