(id: string)
| 61 | }; |
| 62 | |
| 63 | const getEl = <T extends HTMLElement>(id: string): T => { |
| 64 | const el = document.getElementById(id); |
| 65 | if (!el) throw new Error(`Missing element #${id}`); |
| 66 | return el as T; |
| 67 | }; |
| 68 | |
| 69 | const lowerBoundByX = (points: ReadonlyArray<ScatterPointTuple>, x: number): number => { |
| 70 | let lo = 0; |