()
| 151 | let rafId: number | null = null; |
| 152 | |
| 153 | const schedule = (): void => { |
| 154 | if (rafId !== null) return; |
| 155 | rafId = requestAnimationFrame(() => { |
| 156 | rafId = null; |
| 157 | for (const chart of charts) chart.resize(); |
| 158 | }); |
| 159 | }; |
| 160 | |
| 161 | const ro = new ResizeObserver(() => schedule()); |
| 162 | for (const el of containers) ro.observe(el); |
no test coverage detected