()
| 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. |
no test coverage detected