@opendata-ai/openchart-vanilla 8.2.2 → 8.2.3
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.
|
@@ -7549,6 +7549,13 @@ function createGeoMap(container, spec, options) {
|
|
|
7549
7549
|
}
|
|
7550
7550
|
function resolveCamera() {
|
|
7551
7551
|
if (currentFocusIds && currentFocusIds.length > 0) {
|
|
7552
|
+
const lf = currentLayout.focus;
|
|
7553
|
+
if (lf && lf.ids.length === currentFocusIds.length) {
|
|
7554
|
+
const lfSet = new Set(lf.ids.map(String));
|
|
7555
|
+
if (currentFocusIds.every((id) => lfSet.has(String(id)))) {
|
|
7556
|
+
return cameraForTarget(currentLayout, lf.target);
|
|
7557
|
+
}
|
|
7558
|
+
}
|
|
7552
7559
|
const target = focusTargetForFeatures(currentLayout, currentFocusIds);
|
|
7553
7560
|
return cameraForTarget(currentLayout, target);
|
|
7554
7561
|
}
|
|
@@ -7898,4 +7905,4 @@ export {
|
|
|
7898
7905
|
scrubCamera,
|
|
7899
7906
|
createGeoMap
|
|
7900
7907
|
};
|
|
7901
|
-
//# sourceMappingURL=chunk-
|
|
7908
|
+
//# sourceMappingURL=chunk-WG6NOQVC.js.map
|