(message: string)
| 12 | import type { ZoomRange, ZoomState } from '../../src/interaction/createZoomState'; |
| 13 | |
| 14 | const showError = (message: string): void => { |
| 15 | const el = document.getElementById('error'); |
| 16 | if (!el) return; |
| 17 | el.textContent = message; |
| 18 | el.style.display = 'block'; |
| 19 | }; |
| 20 | |
| 21 | const setText = (id: string, text: string): void => { |
| 22 | const el = document.getElementById(id); |