@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.
- package/dist/{chunk-XZZGLZDA.js → chunk-WLAVOZKD.js} +6 -2
- package/dist/chunk-WLAVOZKD.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/story/index.js +1 -1
- package/dist/styles.css.map +1 -1
- package/package.json +3 -3
- package/src/__tests__/edit-events.test.ts +48 -0
- package/src/__tests__/map.test.ts +227 -0
- package/src/__tests__/transition.test.ts +27 -12
- package/src/__tests__/update-scrolly-matrix.test.ts +563 -0
- package/src/map-mount.ts +7 -1
- package/src/map-renderer.ts +2 -1
- package/dist/chunk-XZZGLZDA.js.map +0 -1
|
@@ -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-
|
|
6683
|
+
//# sourceMappingURL=chunk-WLAVOZKD.js.map
|