@bimdata/viewer 2.6.0-beta.4 → 2.6.0-beta.5
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.
|
@@ -41011,7 +41011,7 @@ function vgt(t, e) {
|
|
|
41011
41011
|
}, null, -1)
|
|
41012
41012
|
]));
|
|
41013
41013
|
}
|
|
41014
|
-
const bgt = /* @__PURE__ */ V(wgt, [["render", vgt]]), xgt = "First-person view
|
|
41014
|
+
const bgt = /* @__PURE__ */ V(wgt, [["render", vgt]]), xgt = "First-person view", Sgt = {
|
|
41015
41015
|
tooltip: xgt
|
|
41016
41016
|
}, kgt = "Vue première personne", Qgt = {
|
|
41017
41017
|
tooltip: kgt
|
|
@@ -55764,19 +55764,21 @@ const MCt = /* @__PURE__ */ V(wCt, [["render", QCt], ["__scopeId", "data-v-812fa
|
|
|
55764
55764
|
},
|
|
55765
55765
|
watch: {
|
|
55766
55766
|
displayed(t) {
|
|
55767
|
+
var e;
|
|
55767
55768
|
if (t) {
|
|
55768
|
-
this.$plugin.show();
|
|
55769
|
-
const
|
|
55770
|
-
this.syncCameras(
|
|
55769
|
+
this.initEngine2d(), this.$plugin.show();
|
|
55770
|
+
const i = this.$viewer.localContext.pluginComponentInstances.get("viewer3d").xeokit.camera;
|
|
55771
|
+
this.syncCameras(i, !0), this.$viewer.localContext.loadedModels.length > 0 && this.loadModels(this.$viewer.localContext.loadedModels);
|
|
55771
55772
|
} else
|
|
55772
|
-
this.$plugin.hide(), this.model && this.unloadModels([this.model], !1);
|
|
55773
|
+
(e = this.viewer) == null || e.destroy(), this.$plugin.hide(), this.model && this.unloadModels([this.model], !1);
|
|
55773
55774
|
},
|
|
55774
55775
|
selectedStorey(t) {
|
|
55776
|
+
var e;
|
|
55775
55777
|
if (!t) {
|
|
55776
55778
|
this.plugins.spaceNames.clear();
|
|
55777
55779
|
return;
|
|
55778
55780
|
}
|
|
55779
|
-
this.viewer.scene.objects.length > 0 && this.plugins.spaceNames.show(t);
|
|
55781
|
+
((e = this.viewer) == null ? void 0 : e.scene.objects.length) > 0 && this.plugins.spaceNames.show(t);
|
|
55780
55782
|
}
|
|
55781
55783
|
},
|
|
55782
55784
|
created() {
|
|
@@ -55799,23 +55801,10 @@ const MCt = /* @__PURE__ */ V(wCt, [["render", QCt], ["__scopeId", "data-v-812fa
|
|
|
55799
55801
|
);
|
|
55800
55802
|
},
|
|
55801
55803
|
mounted() {
|
|
55802
|
-
this.mounted = !0
|
|
55803
|
-
const t = K4({ canvas: this.$refs.canvas });
|
|
55804
|
-
t.styles.default.lineWidth = 0.01, t.settings.rotateSpeed = 0.05, t.settings.snapMargin = 0.04, t.settings.minScale = 10, t.textureManager.textureMatrix.scale(0.01, 0.01), t.ui.rotatable = !1, t.ui.translatable = !1, t.ui.scallable = !1, this.viewer = t, this.loadModelFromSVG = ade(this), this.plugins = pB(this, {
|
|
55805
|
-
pen: !1,
|
|
55806
|
-
ruler: !1,
|
|
55807
|
-
angle: !1,
|
|
55808
|
-
compass: !1,
|
|
55809
|
-
surface: !1,
|
|
55810
|
-
path: !1,
|
|
55811
|
-
gauge: !1,
|
|
55812
|
-
doors: !1,
|
|
55813
|
-
caliper: !1,
|
|
55814
|
-
bitmaps: !1
|
|
55815
|
-
}), this.camera3DSubscription = this.$viewer.globalContext.hub.on(
|
|
55804
|
+
this.mounted = !0, this.camera3DSubscription = this.$viewer.globalContext.hub.on(
|
|
55816
55805
|
"3d-camera-update",
|
|
55817
|
-
(
|
|
55818
|
-
this.displayed && this.syncCameras(
|
|
55806
|
+
(t) => {
|
|
55807
|
+
this.displayed && this.syncCameras(t);
|
|
55819
55808
|
},
|
|
55820
55809
|
{
|
|
55821
55810
|
getLastEvent: !0
|
|
@@ -55824,7 +55813,7 @@ const MCt = /* @__PURE__ */ V(wCt, [["render", QCt], ["__scopeId", "data-v-812fa
|
|
|
55824
55813
|
},
|
|
55825
55814
|
unmounted() {
|
|
55826
55815
|
var t, e, i;
|
|
55827
|
-
this.$viewer.globalContext.hub.off(this.camera3DSubscription), (t = this.queue) == null || t.clear(), Object.values(this.plugins).forEach((n) => {
|
|
55816
|
+
this.$viewer.globalContext.hub.off(this.camera3DSubscription), (t = this.queue) == null || t.clear(), this.plugins && Object.values(this.plugins).forEach((n) => {
|
|
55828
55817
|
var s;
|
|
55829
55818
|
return (s = n.destroy) == null ? void 0 : s.call(n);
|
|
55830
55819
|
}), (e = this.viewer) == null || e.destroy(), (i = this.localContextSubscriptions) == null || i.forEach(
|
|
@@ -55832,6 +55821,25 @@ const MCt = /* @__PURE__ */ V(wCt, [["render", QCt], ["__scopeId", "data-v-812fa
|
|
|
55832
55821
|
);
|
|
55833
55822
|
},
|
|
55834
55823
|
methods: {
|
|
55824
|
+
initEngine2d() {
|
|
55825
|
+
const t = this.$refs.canvasContainer;
|
|
55826
|
+
t.firstChild && t.removeChild(t.firstChild);
|
|
55827
|
+
const e = document.createElement("canvas");
|
|
55828
|
+
e.style.width = "100%", e.style.height = "100%", t.appendChild(e);
|
|
55829
|
+
const i = K4({ canvas: e });
|
|
55830
|
+
i.styles.default.lineWidth = 0.01, i.settings.rotateSpeed = 0.05, i.settings.snapMargin = 0.04, i.settings.minScale = 10, i.textureManager.textureMatrix.scale(0.01, 0.01), i.ui.rotatable = !1, i.ui.translatable = !1, i.ui.scallable = !1, this.viewer = i, this.loadModelFromSVG = ade(this), this.plugins = pB(this, {
|
|
55831
|
+
pen: !1,
|
|
55832
|
+
ruler: !1,
|
|
55833
|
+
angle: !1,
|
|
55834
|
+
compass: !1,
|
|
55835
|
+
surface: !1,
|
|
55836
|
+
path: !1,
|
|
55837
|
+
gauge: !1,
|
|
55838
|
+
doors: !1,
|
|
55839
|
+
caliper: !1,
|
|
55840
|
+
bitmaps: !1
|
|
55841
|
+
});
|
|
55842
|
+
},
|
|
55835
55843
|
onZoomIn() {
|
|
55836
55844
|
this.viewer.camera.zoomIn();
|
|
55837
55845
|
},
|
|
@@ -55934,8 +55942,8 @@ function UCt(t, e, i, n, s, r) {
|
|
|
55934
55942
|
return S(), O("div", {
|
|
55935
55943
|
class: pe(["bimdata-mini-map-2d", { "bimdata-mini-map-2d--expanded": s.expanded }])
|
|
55936
55944
|
}, [
|
|
55937
|
-
v("
|
|
55938
|
-
ref: "
|
|
55945
|
+
v("div", {
|
|
55946
|
+
ref: "canvasContainer",
|
|
55939
55947
|
class: "bimdata-mini-map-2d__canvas",
|
|
55940
55948
|
onClick: e[0] || (e[0] = (...C) => r.onCanvasClick && r.onCanvasClick(...C))
|
|
55941
55949
|
}, null, 512),
|
|
@@ -169198,7 +169206,7 @@ let aEi = class {
|
|
|
169198
169206
|
);
|
|
169199
169207
|
}
|
|
169200
169208
|
};
|
|
169201
|
-
const lEi = "@bimdata/viewer", cEi = "module", AEi = "2.6.0-beta.
|
|
169209
|
+
const lEi = "@bimdata/viewer", cEi = "module", AEi = "2.6.0-beta.5", uEi = "A customizable BIM viewer.", dEi = [
|
|
169202
169210
|
"bim",
|
|
169203
169211
|
"viewer",
|
|
169204
169212
|
"bimdata",
|