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

Function schedule

examples/million-points/main.ts:416–422  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

414 const ro = (() => {
415 let rafId: number | null = null;
416 const schedule = (): void => {
417 if (rafId !== null) return;
418 rafId = requestAnimationFrame(() => {
419 rafId = null;
420 resizeCanvasAndConfigure();
421 });
422 };
423 const r = new ResizeObserver(() => schedule());
424 r.observe(container);
425 return r;

Callers 1

mainFunction · 0.70

Calls 1

resizeCanvasAndConfigureFunction · 0.85

Tested by

no test coverage detected