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

Function schedule

examples/data-update-animation/main.ts:153–159  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 1

resizeMethod · 0.65

Tested by

no test coverage detected