@opendata-ai/openchart-vanilla 8.6.2 → 8.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2669,7 +2669,9 @@ function createGraph(container, spec, options) {
2669
2669
  spread: !warmed,
2670
2670
  insetTop: chromeInsetTop()
2671
2671
  });
2672
- return transform;
2672
+ const zoom = options?.initialZoom ?? 1;
2673
+ if (!(zoom > 0) || zoom === 1) return transform;
2674
+ return transform.zoomAt(clampK(transform.k * zoom), cw / 2, ch / 2);
2673
2675
  }
2674
2676
  function startEntrance() {
2675
2677
  if (!interactionManager) return;
@@ -3578,4 +3580,4 @@ export {
3578
3580
  reheatAlpha,
3579
3581
  createGraph
3580
3582
  };
3581
- //# sourceMappingURL=chunk-273EHRBC.js.map
3583
+ //# sourceMappingURL=chunk-5IMVUHVC.js.map