()
| 185 | } |
| 186 | |
| 187 | function applyLineColors() { |
| 188 | const lines = document.querySelectorAll('.code-line'); |
| 189 | lines.forEach(line => { |
| 190 | let intensity; |
| 191 | if (colorMode === 'self') { |
| 192 | intensity = parseFloat(line.getAttribute('data-self-intensity')) || 0; |
| 193 | } else { |
| 194 | intensity = parseFloat(line.getAttribute('data-cumulative-intensity')) || 0; |
| 195 | } |
| 196 | |
| 197 | const color = intensityToColor(intensity); |
| 198 | line.style.background = color; |
| 199 | }); |
| 200 | } |
| 201 | |
| 202 | // ============================================================================ |
| 203 | // Toggle Controls |
no test coverage detected
searching dependent graphs…