@opendata-ai/openchart-vanilla 8.0.0-rc.5 → 8.0.0-rc.7

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.
@@ -867,7 +867,7 @@ function renderMapSVG(layout, opts) {
867
867
  const cameraGroup = createSVGElement2("g");
868
868
  cameraGroup.setAttribute("class", "oc-map-camera");
869
869
  cameraGroup.setAttribute("data-oc-map-camera", "");
870
- const focusIdSet = layout.focus ? new Set(layout.focus.ids.map(String)) : void 0;
870
+ const focusIdSet = layout.focus && layout.focus.ids.length > 0 ? new Set(layout.focus.ids.map(String)) : void 0;
871
871
  renderFeatures(
872
872
  cameraGroup,
873
873
  features,
@@ -1859,6 +1859,10 @@ function createMap(container, spec, options) {
1859
1859
  pendingResize = true;
1860
1860
  return;
1861
1861
  }
1862
+ if (cameraTween) {
1863
+ cameraTween.cancel();
1864
+ cameraTween = null;
1865
+ }
1862
1866
  currentLayout = compile();
1863
1867
  render();
1864
1868
  if (currentFocusIds && currentFocusIds.length > 0) {
@@ -6676,4 +6680,4 @@ export {
6676
6680
  createYouDrawIt,
6677
6681
  createChart
6678
6682
  };
6679
- //# sourceMappingURL=chunk-XZZGLZDA.js.map
6683
+ //# sourceMappingURL=chunk-WLAVOZKD.js.map