(other)
| 798 | } |
| 799 | const trigger = document.querySelector(`[data-hint-index="${at}"]`); |
| 800 | const overlap = (other) => { |
| 801 | const width = Math.min(rect.right, other.right) - Math.max(rect.left, other.left); |
| 802 | const height = Math.min(rect.bottom, other.bottom) - Math.max(rect.top, other.top); |
| 803 | return width > 1 && height > 1 ? Math.round(width * height) : 0; |
| 804 | }; |
| 805 | const covers = []; |
| 806 | const candidates = [...document.querySelectorAll(protectSelector)]; |
| 807 | if (trigger !== null) { |