vis-core 0.21.57 → 0.21.58
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/index.d.ts +1 -1
- package/dist/index.js +3 -3
- package/dist/index.module.js +3 -5
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -89,7 +89,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
89
89
|
).toString(CryptoJS.enc.Utf8), Jt = JSON.parse(Tt), $t = Date.now();
|
|
90
90
|
return !Jt.s || Jt.s > $t ? (this.token = void 0, "") : Jt.e && Jt.e < $t ? (this.token = void 0, "") : (Jt.isValid = Yt, Jt);
|
|
91
91
|
}
|
|
92
|
-
}, version = "0.21.
|
|
92
|
+
}, version = "0.21.58";
|
|
93
93
|
/**
|
|
94
94
|
* @license
|
|
95
95
|
* Copyright 2010-2024 Three.js Authors
|
|
@@ -49478,7 +49478,7 @@ const compareVersion = (c, e) => {
|
|
|
49478
49478
|
}), compareVersion(c.c.version, "0.21.24") === -1 && c.h.u[0] && c.h.u[0].visType === "map" && (f = (r = c.v) == null ? void 0 : r.eo) != null && f.parentBgCurvatureResolution && (delete c.v.eo.parentBgCurvatureResolution, c.v.eo.parentBgTopSegments = 400), c;
|
|
49479
49479
|
}, jsonFetch = (c, e, s = !1) => {
|
|
49480
49480
|
const r = makePromiseCreator(!0), f = c.endsWith("gzip") || s;
|
|
49481
|
-
return fetch(c).then((st) => {
|
|
49481
|
+
return window.fetch(c).then((st) => {
|
|
49482
49482
|
let ct = st;
|
|
49483
49483
|
if (ct.ok)
|
|
49484
49484
|
return f ? ct.blob().then((Zt) => {
|
|
@@ -55476,9 +55476,7 @@ const getMapConfig = (r, ...f) => ti(void 0, [r, ...f], function* (c, e = b, s)
|
|
|
55476
55476
|
}
|
|
55477
55477
|
return hi({}, e);
|
|
55478
55478
|
}), getCityConfig = (s, ...r) => ti(void 0, [s, ...r], function* (c, e = b) {
|
|
55479
|
-
const f = adcodeMap[c], st = yield fetch(
|
|
55480
|
-
e + `/geojson/json-lite/${c}.json`
|
|
55481
|
-
).then((Wt) => Wt.json()), ct = bbox(st), { name: Zt } = adcodeMap[c];
|
|
55479
|
+
const f = adcodeMap[c], st = yield window.fetch(e + `/geojson/json-lite/${c}.json`).then((Wt) => Wt.json()), ct = bbox(st), { name: Zt } = adcodeMap[c];
|
|
55482
55480
|
return {
|
|
55483
55481
|
center: [f.lng, f.lat],
|
|
55484
55482
|
adcode: f.adcode,
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.58";
|
|
2
2
|
export default _default;
|