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

Function syncSliderUi

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

Source from the content-addressed store, hash-verified

327 };
328
329 const syncSliderUi = (): void => {
330 if (!coordinator) return;
331 const hasZoom = !!coordinator.getZoomRange();
332 if (!hasZoom) return;
333
334 if (!slider) {
335 const host = ensureSliderHost();
336 slider = createDataZoomSlider(host, createCoordinatorZoomStateLike(), {
337 height: DATA_ZOOM_SLIDER_HEIGHT_CSS_PX,
338 marginTop: 0, // host provides spacing
339 });
340 }
341 slider.update(resolvedOptions.theme);
342 };
343
344 /**
345 * Sizes canvas backing store with device pixel ratio for crispness on high-DPI displays.

Callers 1

recreateCoordinatorFunction · 0.85

Calls 5

createDataZoomSliderFunction · 0.90
ensureSliderHostFunction · 0.85
getZoomRangeMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected