(intensity)
| 31 | // ============================================================================ |
| 32 | |
| 33 | function intensityToColor(intensity) { |
| 34 | const level = intensityToHeatLevel(intensity); |
| 35 | if (level === 0) { |
| 36 | return 'transparent'; |
| 37 | } |
| 38 | const rootStyle = getComputedStyle(document.documentElement); |
| 39 | return rootStyle.getPropertyValue(`--heat-${level}`).trim(); |
| 40 | } |
| 41 | |
| 42 | // ============================================================================ |
| 43 | // Theme Support |
no test coverage detected
searching dependent graphs…