@opendata-ai/openchart-vanilla 8.2.2 → 8.3.0

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.
@@ -15,7 +15,7 @@ import {
15
15
  renderSingleMark,
16
16
  resolveMarkFill,
17
17
  stampAnimationVars
18
- } from "./chunk-2CEKMIJH.js";
18
+ } from "./chunk-P32LUJFK.js";
19
19
  import {
20
20
  SVG_NS,
21
21
  createSVGElement,
@@ -6987,18 +6987,8 @@ function renderWatermark(parent, layout) {
6987
6987
  "fill-opacity": 0.55
6988
6988
  });
6989
6989
  text.style.setProperty("fill", fill);
6990
- const trySpan = createSVGElement2("tspan");
6991
- setAttrs2(trySpan, { "font-weight": 500 });
6992
- trySpan.textContent = "try";
6993
- const openDataSpan = createSVGElement2("tspan");
6994
- setAttrs2(openDataSpan, { "font-weight": 600, "font-size": 16 });
6995
- openDataSpan.textContent = "OpenData";
6996
- const aiSpan = createSVGElement2("tspan");
6997
- setAttrs2(aiSpan, { "font-weight": 500 });
6998
- aiSpan.textContent = ".ai";
6999
- text.appendChild(trySpan);
7000
- text.appendChild(openDataSpan);
7001
- text.appendChild(aiSpan);
6990
+ setAttrs2(text, { "font-weight": 600, "font-size": 16 });
6991
+ text.textContent = "OpenData";
7002
6992
  a.appendChild(text);
7003
6993
  parent.appendChild(a);
7004
6994
  }
@@ -7549,6 +7539,13 @@ function createGeoMap(container, spec, options) {
7549
7539
  }
7550
7540
  function resolveCamera() {
7551
7541
  if (currentFocusIds && currentFocusIds.length > 0) {
7542
+ const lf = currentLayout.focus;
7543
+ if (lf && lf.ids.length === currentFocusIds.length) {
7544
+ const lfSet = new Set(lf.ids.map(String));
7545
+ if (currentFocusIds.every((id) => lfSet.has(String(id)))) {
7546
+ return cameraForTarget(currentLayout, lf.target);
7547
+ }
7548
+ }
7552
7549
  const target = focusTargetForFeatures(currentLayout, currentFocusIds);
7553
7550
  return cameraForTarget(currentLayout, target);
7554
7551
  }
@@ -7898,4 +7895,4 @@ export {
7898
7895
  scrubCamera,
7899
7896
  createGeoMap
7900
7897
  };
7901
- //# sourceMappingURL=chunk-BKN4R3J6.js.map
7898
+ //# sourceMappingURL=chunk-PEIX32S3.js.map