@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.
- package/dist/{chunk-ZKASH7AX.js → chunk-737VNBU6.js} +2 -2
- package/dist/{chunk-2CEKMIJH.js → chunk-P32LUJFK.js} +8 -31
- package/dist/{chunk-2CEKMIJH.js.map → chunk-P32LUJFK.js.map} +1 -1
- package/dist/{chunk-BKN4R3J6.js → chunk-PEIX32S3.js} +11 -14
- package/dist/chunk-PEIX32S3.js.map +1 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +7 -17
- package/dist/index.js.map +1 -1
- package/dist/{mount-Djb1VvKO.d.ts → mount-Bs8nFSf1.d.ts} +1 -1
- package/dist/static.js +2 -2
- package/dist/story/index.d.ts +2 -2
- package/dist/story/index.js +2 -2
- package/dist/styles.css.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-BKN4R3J6.js.map +0 -1
- /package/dist/{chunk-ZKASH7AX.js.map → chunk-737VNBU6.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
renderSingleMark,
|
|
16
16
|
resolveMarkFill,
|
|
17
17
|
stampAnimationVars
|
|
18
|
-
} from "./chunk-
|
|
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
|
-
|
|
6991
|
-
|
|
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-
|
|
7898
|
+
//# sourceMappingURL=chunk-PEIX32S3.js.map
|