vis-core 0.18.5 → 0.18.6
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.js +1 -1
- package/dist/index.module.js +16 -15
- package/dist/utils/jsonFetch.d.ts +6 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -43587,7 +43587,7 @@ function sa(i) {
|
|
|
43587
43587
|
const t = new Dt();
|
|
43588
43588
|
return t.color.setScalar(i), t;
|
|
43589
43589
|
}
|
|
43590
|
-
const yf = "0.18.
|
|
43590
|
+
const yf = "0.18.6";
|
|
43591
43591
|
class Rz {
|
|
43592
43592
|
constructor() {
|
|
43593
43593
|
A(this, "event", new TX());
|
|
@@ -44312,7 +44312,7 @@ class wz {
|
|
|
44312
44312
|
l.json = s, l.id = s.id, l.name = s.name, this.undos.push(l), this.idCounter = s.id > this.idCounter ? s.id : this.idCounter;
|
|
44313
44313
|
const a = n + 1, o = t.u.length;
|
|
44314
44314
|
this.editor.emit("progress", {
|
|
44315
|
-
type: "
|
|
44315
|
+
type: "解压文件",
|
|
44316
44316
|
value: a / o * 100 | 0
|
|
44317
44317
|
});
|
|
44318
44318
|
}
|
|
@@ -44336,7 +44336,7 @@ class wz {
|
|
|
44336
44336
|
t += 1;
|
|
44337
44337
|
const n = this.undos.length;
|
|
44338
44338
|
this.editor.emit("progress", {
|
|
44339
|
-
type: "
|
|
44339
|
+
type: "还原场景",
|
|
44340
44340
|
value: t / n * 100 | 0
|
|
44341
44341
|
});
|
|
44342
44342
|
}
|
|
@@ -44394,7 +44394,7 @@ class Kz {
|
|
|
44394
44394
|
let s = 1;
|
|
44395
44395
|
this.vis.on("loaderProgress", (c, d) => {
|
|
44396
44396
|
s === 1 && (this.editor.emit("progress", {
|
|
44397
|
-
type: "
|
|
44397
|
+
type: "下载资源",
|
|
44398
44398
|
value: c / d * 100 | 0
|
|
44399
44399
|
}), c === d && (s = 0));
|
|
44400
44400
|
}), this.vis.on("show", () => {
|
|
@@ -44572,17 +44572,18 @@ const aa = (i, t) => {
|
|
|
44572
44572
|
n === 35e4 && (i.h.u[0].visOptions.drillDownHideParent = !0);
|
|
44573
44573
|
}
|
|
44574
44574
|
return aa(i.c.version, "0.18.1") === -1 && i.h.u[0] && i.h.u[0].visType === "earth3" && (i.h.u[0].visType = "earth", i.h.u[0].visOptions.style = "countryPlate"), i;
|
|
44575
|
-
}, g2 = (i) => {
|
|
44576
|
-
const
|
|
44577
|
-
return fetch(i).then((
|
|
44578
|
-
|
|
44579
|
-
|
|
44575
|
+
}, g2 = (i, t) => {
|
|
44576
|
+
const e = R2(!0);
|
|
44577
|
+
return fetch(i).then((n) => {
|
|
44578
|
+
let s = n;
|
|
44579
|
+
if (s.ok)
|
|
44580
|
+
return s.json();
|
|
44580
44581
|
throw new Error("Network response was not ok.");
|
|
44581
|
-
}).then((
|
|
44582
|
-
|
|
44583
|
-
}).catch((
|
|
44584
|
-
|
|
44585
|
-
}),
|
|
44582
|
+
}).then((n) => {
|
|
44583
|
+
e.resolve(n);
|
|
44584
|
+
}).catch((n) => {
|
|
44585
|
+
e.reject(n);
|
|
44586
|
+
}), e.promise;
|
|
44586
44587
|
};
|
|
44587
44588
|
class zz {
|
|
44588
44589
|
constructor(t) {
|
|
@@ -44723,7 +44724,7 @@ class zz {
|
|
|
44723
44724
|
"json:" + a.c.version,
|
|
44724
44725
|
"sdk:" + this.sdkVersion
|
|
44725
44726
|
), this.setConfig(a.c), this.history.fromJSON(a.h, e), this.viewport.fromJSON(a.v), yield this.history.executeUndos(), (n = a.v.bg) != null && n.texture && this.viewport.vis) {
|
|
44726
|
-
const o = W2(a.bg.texture);
|
|
44727
|
+
const o = W2(a.v.bg.texture);
|
|
44727
44728
|
o.colorSpace = ye, this.viewport.vis.pencil.scene.background = o;
|
|
44728
44729
|
}
|
|
44729
44730
|
return (s = this.viewport.vis) == null || s.show(), (l = this.pencil.cameraControls) == null || l.saveState(), this.select(null), a;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
type DownloadProgress = {
|
|
2
|
+
percent: number;
|
|
3
|
+
transferredBytes: number;
|
|
4
|
+
totalBytes: number;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: (url: string, onDownloadProgress?: (progress: DownloadProgress) => void) => Promise<any>;
|
|
2
7
|
export default _default;
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.18.
|
|
1
|
+
declare const _default: "0.18.6";
|
|
2
2
|
export default _default;
|