vis-core 0.28.14 → 0.28.15
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 +18 -15
- package/dist/utils/jsonFetch.d.ts +2 -1
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/index.module.js
CHANGED
|
@@ -88,7 +88,7 @@ const publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRz
|
|
|
88
88
|
).toString(CryptoJS.enc.Utf8), Ne = JSON.parse(Pe), Ae = Date.now();
|
|
89
89
|
return !Ne.s || Ne.s > Ae ? (this.token = void 0, "") : Ne.e && Ne.e < Ae ? (this.token = void 0, "") : (Ne.isValid = O, Ne);
|
|
90
90
|
}
|
|
91
|
-
}, version = "0.28.
|
|
91
|
+
}, version = "0.28.15";
|
|
92
92
|
/**
|
|
93
93
|
* @license
|
|
94
94
|
* Copyright 2010-2025 Three.js Authors
|
|
@@ -58457,7 +58457,10 @@ class SetMaterial extends Command {
|
|
|
58457
58457
|
}
|
|
58458
58458
|
fixJSON() {
|
|
58459
58459
|
const t = this.json;
|
|
58460
|
-
t && t.oldMaterial && delete t.oldMaterial
|
|
58460
|
+
if (t && t.oldMaterial && delete t.oldMaterial, this.oldMaterial) {
|
|
58461
|
+
const r = this.editor.pencil.mList.getKey(this.oldMaterial);
|
|
58462
|
+
r && r !== t.objectUuid && (console.warn("SetMaterial:fix:", t.objectUuid, r), t.objectUuid = r);
|
|
58463
|
+
}
|
|
58461
58464
|
}
|
|
58462
58465
|
}
|
|
58463
58466
|
function parseMaterial(g) {
|
|
@@ -59911,20 +59914,20 @@ class Config {
|
|
|
59911
59914
|
};
|
|
59912
59915
|
}
|
|
59913
59916
|
}
|
|
59914
|
-
const jsonFetch = (g, t, r =
|
|
59915
|
-
const m = makePromiseCreator(!0)
|
|
59916
|
-
return window.fetch(g).then((
|
|
59917
|
-
let
|
|
59918
|
-
if (
|
|
59919
|
-
return
|
|
59920
|
-
const
|
|
59921
|
-
return new Response(
|
|
59922
|
-
}) :
|
|
59917
|
+
const isGzip = (g) => !!(g.endsWith(".gzip") || g.endsWith(".gz")), jsonFetch = (g, t, r = isGzip) => {
|
|
59918
|
+
const m = makePromiseCreator(!0);
|
|
59919
|
+
return window.fetch(g).then((v) => {
|
|
59920
|
+
let C = v;
|
|
59921
|
+
if (C.ok)
|
|
59922
|
+
return r(g) && C.headers.get("content-encoding") !== "gzip" ? C.blob().then((_) => {
|
|
59923
|
+
const w = new DecompressionStream("gzip"), E = _.stream().pipeThrough(w);
|
|
59924
|
+
return new Response(E);
|
|
59925
|
+
}) : C;
|
|
59923
59926
|
throw new Error("Network response was not ok.");
|
|
59924
|
-
}).then((
|
|
59925
|
-
m.resolve(
|
|
59926
|
-
}).catch((
|
|
59927
|
-
m.reject(
|
|
59927
|
+
}).then((v) => v.json()).then((v) => {
|
|
59928
|
+
m.resolve(v);
|
|
59929
|
+
}).catch((v) => {
|
|
59930
|
+
m.reject(v);
|
|
59928
59931
|
}), m.promise;
|
|
59929
59932
|
};
|
|
59930
59933
|
class Editor {
|
|
@@ -3,5 +3,6 @@ type DownloadProgress = {
|
|
|
3
3
|
transferredBytes: number;
|
|
4
4
|
totalBytes: number;
|
|
5
5
|
};
|
|
6
|
-
declare const
|
|
6
|
+
export declare const isGzip: (url: string) => boolean;
|
|
7
|
+
declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void, gzip?: (url: string) => boolean) => Promise<any>;
|
|
7
8
|
export default _default;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.28.
|
|
1
|
+
declare const _default: "0.28.15";
|
|
2
2
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vis-core",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.15",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "npm run version && PORT=5173 bundler-dev",
|
|
6
|
-
"build:site": "npm run version && bundler",
|
|
6
|
+
"build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
|
|
7
7
|
"build:lib": "npm run version && PUBLIC_EXCLUDE=true BUILD_LIBRARY=src/sdk/index.ts CSS_EXTRACT=false bundler && npm run build:type",
|
|
8
8
|
"build:type": "BUILD_LIBRARY=src/sdk/index.ts bundler-type",
|
|
9
9
|
"preview": "bundler-preview",
|