MCPcopy Create free account
hub / github.com/ChartGPU/ChartGPU / scheduleZoomResample

Function scheduleZoomResample

src/core/createRenderCoordinator.ts:2294–2306  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2292 };
2293
2294 const scheduleZoomResample = (): void => {
2295 if (disposed) return;
2296
2297 cancelZoomResampleDebounce();
2298 zoomResampleDue = false;
2299
2300 zoomResampleDebounceTimer = (typeof self !== 'undefined' ? self : window).setTimeout(() => {
2301 zoomResampleDebounceTimer = null;
2302 if (disposed) return;
2303 zoomResampleDue = true;
2304 scheduleFlush();
2305 }, 100);
2306 };
2307
2308 const getPlotSizeCssPx = (
2309 canvas: SupportedCanvas,

Callers 1

updateZoomFunction · 0.85

Calls 2

scheduleFlushFunction · 0.70

Tested by

no test coverage detected