(tag, className, textContent = '')
| 27 | // ============================================================================ |
| 28 | |
| 29 | function createElement(tag, className, textContent = '') { |
| 30 | const el = document.createElement(tag); |
| 31 | if (className) el.className = className; |
| 32 | if (textContent) el.textContent = textContent; |
| 33 | return el; |
| 34 | } |
| 35 | |
| 36 | function calculateMenuPosition(buttonRect, menuWidth, menuHeight) { |
| 37 | const viewport = { width: window.innerWidth, height: window.innerHeight }; |
no test coverage detected
searching dependent graphs…