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

Function syncDataZoomUi

src/ChartGPU.ts:735–754  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

733 };
734
735 const syncDataZoomUi = (): void => {
736 const shouldHaveSlider = hasSliderDataZoom(currentOptions);
737 if (!shouldHaveSlider) {
738 disposeDataZoomUi();
739 return;
740 }
741
742 // Slider requires a coordinator-backed zoom state.
743 if (!coordinator) return;
744 if (!coordinator.getZoomRange()) return;
745
746 const host = ensureDataZoomSliderHost();
747 if (!dataZoomSlider) {
748 dataZoomSlider = createDataZoomSlider(host, createCoordinatorZoomStateLike(), {
749 height: DATA_ZOOM_SLIDER_HEIGHT_CSS_PX,
750 marginTop: 0, // host provides vertical spacing
751 });
752 }
753 dataZoomSlider.update(resolvedOptions.theme);
754 };
755
756 const bindCoordinatorInteractionXChange = (): void => {
757 unbindCoordinatorInteractionXChange();

Callers 3

recreateCoordinatorFunction · 0.85
setOptionFunction · 0.85
createChartGPUFunction · 0.85

Calls 7

createDataZoomSliderFunction · 0.90
disposeDataZoomUiFunction · 0.85
ensureDataZoomSliderHostFunction · 0.85
hasSliderDataZoomFunction · 0.70
getZoomRangeMethod · 0.65
updateMethod · 0.65

Tested by

no test coverage detected