()
| 715 | } |
| 716 | |
| 717 | function clearSearch() { |
| 718 | const searchInput = document.getElementById("search-input"); |
| 719 | const searchWrapper = document.querySelector(".search-wrapper"); |
| 720 | if (searchInput) { |
| 721 | searchInput.value = ""; |
| 722 | searchInput.classList.remove("has-matches", "no-matches"); |
| 723 | if (searchWrapper) { |
| 724 | searchWrapper.classList.remove("has-value"); |
| 725 | } |
| 726 | // Clear highlights |
| 727 | d3.selectAll("#chart rect") |
| 728 | .classed("search-match", false) |
| 729 | .classed("search-dim", false); |
| 730 | // Clear active hotspot |
| 731 | document.querySelectorAll('.hotspot').forEach(h => h.classList.remove('active')); |
| 732 | } |
| 733 | } |
| 734 | |
| 735 | // ============================================================================ |
| 736 | // Resize Handler |
no test coverage detected
searching dependent graphs…