@bimdata/viewer 2.8.0 → 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.
|
@@ -18529,7 +18529,8 @@ const u7 = /* @__PURE__ */ K(hKe, [["render", IKe], ["__scopeId", "data-v-a5954a
|
|
|
18529
18529
|
["ifc3d", "3d"],
|
|
18530
18530
|
["dwg", "dwg"],
|
|
18531
18531
|
["plan", "plan"],
|
|
18532
|
-
["pointCloud", "pointCloud"]
|
|
18532
|
+
["pointCloud", "pointCloud"],
|
|
18533
|
+
["photosphere", "photosphere"]
|
|
18533
18534
|
]);
|
|
18534
18535
|
function BKe() {
|
|
18535
18536
|
const i = _t("$viewer");
|
|
@@ -53720,7 +53721,7 @@ async function Qbt(i) {
|
|
|
53720
53721
|
function Pbt(i) {
|
|
53721
53722
|
return new Promise((e, t) => {
|
|
53722
53723
|
const n = new FileReader();
|
|
53723
|
-
n.
|
|
53724
|
+
n.onload = () => e(n.result), n.onerror = (s) => t(s), n.onabort = (s) => t(s), n.readAsDataURL(i);
|
|
53724
53725
|
});
|
|
53725
53726
|
}
|
|
53726
53727
|
async function Tbt(i, e = new Image()) {
|
|
@@ -187864,20 +187865,18 @@ const AQi = (i, e, t) => {
|
|
|
187864
187865
|
);
|
|
187865
187866
|
},
|
|
187866
187867
|
async loadModels(r) {
|
|
187867
|
-
const o = await Promise.
|
|
187868
|
-
o.
|
|
187869
|
-
|
|
187870
|
-
|
|
187871
|
-
const l = a.filter(
|
|
187872
|
-
(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"
|
|
187873
187872
|
);
|
|
187874
|
-
|
|
187875
|
-
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
|
|
187876
187875
|
}), this.hub.emit("objects-added", {
|
|
187877
|
-
objects:
|
|
187876
|
+
objects: o.flatMap((l) => l.objects)
|
|
187878
187877
|
});
|
|
187879
187878
|
}
|
|
187880
|
-
return
|
|
187879
|
+
return o;
|
|
187881
187880
|
},
|
|
187882
187881
|
loadIfcs(r) {
|
|
187883
187882
|
return console.warn(
|
|
@@ -190252,7 +190251,7 @@ let ATi = class {
|
|
|
190252
190251
|
);
|
|
190253
190252
|
}
|
|
190254
190253
|
};
|
|
190255
|
-
const dTi = "2.8.
|
|
190254
|
+
const dTi = "2.8.1-beta.2", hTi = {
|
|
190256
190255
|
version: dTi
|
|
190257
190256
|
};
|
|
190258
190257
|
class fTi {
|