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

Function schedule

examples/sampling/main.ts:52–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50): ResizeObserver => {
51 let rafId: number | null = null;
52 const schedule = (): void => {
53 if (rafId !== null) return;
54 rafId = requestAnimationFrame(() => {
55 rafId = null;
56 for (const chart of charts) chart.resize();
57 });
58 };
59
60 const ro = new ResizeObserver(() => schedule());
61 for (const el of containers) ro.observe(el);

Callers 1

Calls 1

resizeMethod · 0.65

Tested by

no test coverage detected