@bimdata/viewer 2.8.1-beta.1 → 2.8.1-beta.2
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.
|
@@ -53721,7 +53721,7 @@ async function Qbt(i) {
|
|
|
53721
53721
|
function Pbt(i) {
|
|
53722
53722
|
return new Promise((e, t) => {
|
|
53723
53723
|
const n = new FileReader();
|
|
53724
|
-
n.
|
|
53724
|
+
n.onload = () => e(n.result), n.onerror = (s) => t(s), n.onabort = (s) => t(s), n.readAsDataURL(i);
|
|
53725
53725
|
});
|
|
53726
53726
|
}
|
|
53727
53727
|
async function Tbt(i, e = new Image()) {
|
|
@@ -187865,20 +187865,18 @@ const AQi = (i, e, t) => {
|
|
|
187865
187865
|
);
|
|
187866
187866
|
},
|
|
187867
187867
|
async loadModels(r) {
|
|
187868
|
-
const o = await Promise.
|
|
187869
|
-
o.
|
|
187870
|
-
|
|
187871
|
-
|
|
187872
|
-
const l = a.filter(
|
|
187873
|
-
(c) => !c.type || c.type === "IFC"
|
|
187868
|
+
const o = await Promise.all(r.map(s));
|
|
187869
|
+
if (o.length > 0) {
|
|
187870
|
+
const a = o.filter(
|
|
187871
|
+
(l) => !l.type || l.type === "IFC"
|
|
187874
187872
|
);
|
|
187875
|
-
|
|
187876
|
-
models:
|
|
187873
|
+
a.length && this.hub.emit("ifcs-loaded", { ifcs: a }), this.hub.emit("models-loaded", { models: o }), t.globalContext.hub.emit("models-loaded", {
|
|
187874
|
+
models: o
|
|
187877
187875
|
}), this.hub.emit("objects-added", {
|
|
187878
|
-
objects:
|
|
187876
|
+
objects: o.flatMap((l) => l.objects)
|
|
187879
187877
|
});
|
|
187880
187878
|
}
|
|
187881
|
-
return
|
|
187879
|
+
return o;
|
|
187882
187880
|
},
|
|
187883
187881
|
loadIfcs(r) {
|
|
187884
187882
|
return console.warn(
|
|
@@ -190253,7 +190251,7 @@ let ATi = class {
|
|
|
190253
190251
|
);
|
|
190254
190252
|
}
|
|
190255
190253
|
};
|
|
190256
|
-
const dTi = "2.8.1-beta.
|
|
190254
|
+
const dTi = "2.8.1-beta.2", hTi = {
|
|
190257
190255
|
version: dTi
|
|
190258
190256
|
};
|
|
190259
190257
|
class fTi {
|