MCPcopy Index your code
hub / github.com/ChartGPU/ChartGPU / schedule

Function schedule

examples/interactive/main.ts:92–98  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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);

Callers 1

Calls 1

resizeMethod · 0.65

Tested by

no test coverage detected