(src, cl, value)
| 502 | |
| 503 | // Adds or removes cl from classList of all elements for the specified source. |
| 504 | function toggleClass(src, cl, value) { |
| 505 | const list = elems.get(src); |
| 506 | if (list) { |
| 507 | for (const elem of list) { |
| 508 | elem.classList.toggle(cl, value); |
| 509 | } |
| 510 | } |
| 511 | } |
| 512 | |
| 513 | // fitText sets text and font-size clipped to the specified width w. |
| 514 | function fitText(t, avail, textList) { |
no test coverage detected
searching dependent graphs…