()
| 90 | let rafId: number | null = null; |
| 91 | |
| 92 | const schedule = (): void => { |
| 93 | if (rafId !== null) return; |
| 94 | rafId = requestAnimationFrame(() => { |
| 95 | rafId = null; |
| 96 | for (const chart of charts) chart.resize(); |
| 97 | }); |
| 98 | }; |
| 99 | |
| 100 | const ro = new ResizeObserver(() => schedule()); |
| 101 | for (const el of containers) ro.observe(el); |
no test coverage detected