vis-core 0.21.51 → 0.21.52
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 +2 -2
- package/dist/index.module.js +15 -12
- package/dist/utils/jsonFetch.d.ts +1 -1
- 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), de = JSON.parse($t), Xe = Date.now();
|
|
90
90
|
return !de.s || de.s > Xe ? (this.token = void 0, "") : de.e && de.e < Xe ? (this.token = void 0, "") : (de.isValid = Tt, de);
|
|
91
91
|
}
|
|
92
|
-
}, version = "0.21.
|
|
92
|
+
}, version = "0.21.52";
|
|
93
93
|
/**
|
|
94
94
|
* @license
|
|
95
95
|
* Copyright 2010-2024 Three.js Authors
|
|
@@ -49398,18 +49398,21 @@ const compareVersion = (st, e) => {
|
|
|
49398
49398
|
Zt.attributeName = Zt.attributeName.replace(Wt, `caId.${Wt}`);
|
|
49399
49399
|
}
|
|
49400
49400
|
}), compareVersion(st.c.version, "0.21.24") === -1 && st.h.u[0] && st.h.u[0].visType === "map" && (ct = (c = st.v) == null ? void 0 : c.eo) != null && ct.parentBgCurvatureResolution && (delete st.v.eo.parentBgCurvatureResolution, st.v.eo.parentBgTopSegments = 400), st;
|
|
49401
|
-
}, jsonFetch = (st, e) => {
|
|
49402
|
-
const
|
|
49403
|
-
return fetch(st).then((
|
|
49404
|
-
let
|
|
49405
|
-
if (
|
|
49406
|
-
return ct.
|
|
49401
|
+
}, jsonFetch = (st, e, s = !1) => {
|
|
49402
|
+
const c = makePromiseCreator(!0), ct = st.endsWith("gzip") || s;
|
|
49403
|
+
return fetch(st).then((Zt) => {
|
|
49404
|
+
let Wt = Zt;
|
|
49405
|
+
if (Wt.ok)
|
|
49406
|
+
return ct ? Wt.blob().then((Yt) => {
|
|
49407
|
+
const vt = new DecompressionStream("gzip"), Tt = Yt.stream().pipeThrough(vt);
|
|
49408
|
+
return new Response(Tt);
|
|
49409
|
+
}) : Wt;
|
|
49407
49410
|
throw new Error("Network response was not ok.");
|
|
49408
|
-
}).then((
|
|
49409
|
-
|
|
49410
|
-
}).catch((
|
|
49411
|
-
|
|
49412
|
-
}),
|
|
49411
|
+
}).then((Zt) => Zt.json()).then((Zt) => {
|
|
49412
|
+
c.resolve(Zt);
|
|
49413
|
+
}).catch((Zt) => {
|
|
49414
|
+
c.reject(Zt);
|
|
49415
|
+
}), c.promise;
|
|
49413
49416
|
};
|
|
49414
49417
|
class Editor {
|
|
49415
49418
|
constructor(e) {
|
|
@@ -3,5 +3,5 @@ type DownloadProgress = {
|
|
|
3
3
|
transferredBytes: number;
|
|
4
4
|
totalBytes: number;
|
|
5
5
|
};
|
|
6
|
-
declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void) => Promise<any>;
|
|
6
|
+
declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void, gizp?: boolean) => Promise<any>;
|
|
7
7
|
export default _default;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.21.
|
|
1
|
+
declare const _default: "0.21.52";
|
|
2
2
|
export default _default;
|