(message: string)
| 34 | import type { ChartGPUInstance, ChartGPUOptions, DataPoint } from '../../src/index'; |
| 35 | |
| 36 | const showError = (message: string): void => { |
| 37 | const el = document.getElementById('error'); |
| 38 | if (!el) return; |
| 39 | el.textContent = message; |
| 40 | el.style.display = 'block'; |
| 41 | }; |
| 42 | |
| 43 | const setText = (id: string, text: string): void => { |
| 44 | const el = document.getElementById(id); |