@xtctwins/tctwins-bimx-engine 0.3.17 → 0.3.19
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/README.md +196 -196
- package/dist/01.xtc +0 -0
- package/dist/02.xtc +0 -0
- package/dist/03.xtc +0 -0
- package/dist/{AnnotationTool-CRKJP6Z_.mjs → AnnotationTool-oDA1Fp5x.mjs} +35 -35
- package/dist/BIMX_Viewer_Lib.es.js +6 -6
- package/dist/BIMX_Viewer_Lib.umd.js +167 -214
- package/dist/{CameraViewTool-CcuETkRt.mjs → CameraViewTool-DDypddMD.mjs} +38 -38
- package/dist/{CommentTool-CUfkCRZj.mjs → CommentTool-Duf6oZPZ.mjs} +192 -192
- package/dist/{HiddenTool-BXH5QJP-.mjs → HiddenTool-LpU_x_6_.mjs} +16 -16
- package/dist/{InspectorTool-DfNptjyX.mjs → InspectorTool-QvS8xe4N.mjs} +13 -13
- package/dist/MeasureTool-CMs0keyO.mjs +595 -0
- package/dist/{MouseTool-B7uZ7aDB.mjs → MouseTool-CaTUKDuM.mjs} +8 -8
- package/dist/{NavigateTool-iCDupABO.mjs → NavigateTool-DYniPPn1.mjs} +8 -8
- package/dist/{OperateTool-CDFqwPpz.mjs → OperateTool-BIqsOimJ.mjs} +58 -61
- package/dist/{RoamTool-DbejO6To.mjs → RoamTool-2mrcPLbu.mjs} +15 -15
- package/dist/ScreenShotTool-BTqJ90J6.mjs +356 -0
- package/dist/{SectionTool-B_YUSKAb.mjs → SectionTool-CWzcRQe3.mjs} +70 -70
- package/dist/SettingTool-s0H_wOar.mjs +1508 -0
- package/dist/StructureTree-D5Y9v8cQ.mjs +1582 -0
- package/dist/{alert-C1hZjT4K.mjs → alert-BAgNMV8k.mjs} +13 -13
- package/dist/{index-Amk7_oxr.mjs → index-Bu4b3eOR.mjs} +53631 -56036
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-BWMqOWVZ.mjs → panel.vue_vue_type_style_index_0_lang-sBMUmb4u.mjs} +1 -1
- package/dist/style.css +3 -3
- package/dist/{tallPanel-B_CsTLWm.mjs → tallPanel-xQvMWUzi.mjs} +11 -11
- package/package.json +85 -85
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
- package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
- package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
- package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
- package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +8 -6
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -270
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -291
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -11642
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +10 -0
- package/types/components/BimxViewerComp.vue.d.ts +21 -7
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -291
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -270
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
- package/types/components/bimxViewer.vue.d.ts +27 -0
- package/types/components/utilsComponents/alert.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton.vue.d.ts +1 -1
- package/types/components/utilsComponents/closeButton_dark.vue.d.ts +1 -1
- package/types/components/utilsComponents/emptyPage.vue.d.ts +1 -1
- package/types/components/utilsComponents/loading.vue.d.ts +1 -1
- package/types/components/utilsComponents/panel.vue.d.ts +2 -8
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
- package/types/components/utilsComponents/tallPanel.vue.d.ts +4 -14
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +4 -14
- package/types/pages/BimxViewerEntry.vue.d.ts +72 -5
- package/types/pages/viewerEntry.vue.d.ts +116 -0
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/toolbars.d.ts +50 -50
- package/types/tests/cmt.d.ts +1 -0
- package/types/viewerManager/sectionManager.d.ts +25 -25
- package/dist/MeasureTool-CXJj1Fhb.mjs +0 -593
- package/dist/ScreenShotTool-CwKNoZDh.mjs +0 -429
- package/dist/SettingTool-ByLSLYye.mjs +0 -1787
- package/dist/StructureTree-JKDte9U1.mjs +0 -1685
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as b, onMounted as p, ref as w, openBlock as n, createElementBlock as i, createElementVNode as s, Fragment as g, renderList as h, unref as a, normalizeClass as f, toDisplayString as
|
|
2
|
-
import {
|
|
3
|
-
const N = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onClick"], y = { class: "best-view-icon" }, A = ["src"], C = { class: "best-view-name" },
|
|
1
|
+
import { defineComponent as b, onMounted as p, ref as w, openBlock as n, createElementBlock as i, createElementVNode as s, Fragment as g, renderList as h, unref as a, normalizeClass as f, toDisplayString as B } from "vue";
|
|
2
|
+
import { n as I, o as S, aB as T, O as k } from "./index-Bu4b3eOR.mjs";
|
|
3
|
+
const N = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onClick"], y = { class: "best-view-icon" }, A = ["src"], C = { class: "best-view-name" }, O = /* @__PURE__ */ b({
|
|
4
4
|
__name: "NavigateTool",
|
|
5
5
|
props: ["componentId"],
|
|
6
6
|
emits: ["emitHandler"],
|
|
7
7
|
setup(c, { emit: r }) {
|
|
8
|
-
const l =
|
|
8
|
+
const l = I(), d = S(), v = c;
|
|
9
9
|
p(() => {
|
|
10
10
|
d.setReadyById(v.componentId);
|
|
11
11
|
});
|
|
@@ -27,7 +27,7 @@ const N = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onC
|
|
|
27
27
|
};
|
|
28
28
|
return (t, E) => (n(), i("div", N, [
|
|
29
29
|
s("div", V, [
|
|
30
|
-
(n(!0), i(g, null, h(a(
|
|
30
|
+
(n(!0), i(g, null, h(a(T), (e) => (n(), i("div", {
|
|
31
31
|
key: e.id,
|
|
32
32
|
class: f(["best-view-item", {
|
|
33
33
|
"best-view-item-active": o.value === e.id
|
|
@@ -36,10 +36,10 @@ const N = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onC
|
|
|
36
36
|
}, [
|
|
37
37
|
s("div", y, [
|
|
38
38
|
s("img", {
|
|
39
|
-
src: a(
|
|
39
|
+
src: a(k) + `/bim-viewer/best-view/${o.value === e.id ? e.imgActive : e.img}.svg`,
|
|
40
40
|
alt: ""
|
|
41
41
|
}, null, 8, A),
|
|
42
|
-
s("div", C,
|
|
42
|
+
s("div", C, B(a(l)(e.label || e.name)), 1)
|
|
43
43
|
])
|
|
44
44
|
], 10, x))), 128))
|
|
45
45
|
])
|
|
@@ -47,5 +47,5 @@ const N = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onC
|
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
49
|
export {
|
|
50
|
-
|
|
50
|
+
O as default
|
|
51
51
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as U, onMounted as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as U, onMounted as q, computed as I, ref as h, watch as z, onBeforeUnmount as G, openBlock as E, createBlock as J, Transition as K, withCtx as Q, withDirectives as W, createElementVNode as n, toDisplayString as O, normalizeClass as V, unref as f, createElementBlock as Y, Fragment as Z, renderList as ee, vShow as te } from "vue";
|
|
2
|
+
import { n as se, o as le, q as T, O as _, V as m, y as ie } from "./index-Bu4b3eOR.mjs";
|
|
3
3
|
const ne = { class: "operate_tool_wrapper" }, ae = { class: "operate_hint" }, re = { class: "operate_toolbar" }, oe = ["src"], ce = ["onClick"], ue = ["src"], de = ["src"], ve = /* @__PURE__ */ U({
|
|
4
4
|
__name: "OperateTool",
|
|
5
5
|
props: ["componentId"],
|
|
6
6
|
emits: ["emitHandler"],
|
|
7
7
|
setup(x, { expose: B, emit: C }) {
|
|
8
|
-
const a = se(), b =
|
|
9
|
-
|
|
10
|
-
b.setReadyById(
|
|
8
|
+
const a = se(), b = le(), w = x;
|
|
9
|
+
q(() => {
|
|
10
|
+
b.setReadyById(w.componentId);
|
|
11
11
|
});
|
|
12
12
|
const H = [
|
|
13
13
|
{ mode: 0, name: "operate.focus", img: "fit" },
|
|
@@ -15,12 +15,12 @@ const ne = { class: "operate_tool_wrapper" }, ae = { class: "operate_hint" }, re
|
|
|
15
15
|
{ mode: 2, name: "operate.onlyShow", img: "hide-other" },
|
|
16
16
|
{ mode: 3, name: "operate.edge", img: "edge" },
|
|
17
17
|
{ mode: 4, name: "operate.transparent", img: "opacity" }
|
|
18
|
-
], M =
|
|
18
|
+
], M = I(() => b.isToolActive(w.componentId)), r = h(-1), i = h([]), g = h(!1), u = h(!0), d = h(!0), N = (t) => t.mode === 3 ? u.value ? "edge" : "solid" : t.mode === 4 ? d.value ? "opacity" : "fill" : t.img, R = (t) => t.mode === 3 ? u.value ? "operate.edge" : "operate.fill" : t.mode === 4 ? d.value ? "operate.transparent" : "operate.solid" : t.name;
|
|
19
19
|
let e;
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
},
|
|
23
|
-
|
|
20
|
+
const $ = C, F = (t) => {
|
|
21
|
+
$("emitHandler", t);
|
|
22
|
+
}, y = (t, s) => {
|
|
23
|
+
F({
|
|
24
24
|
isTool: !0,
|
|
25
25
|
event_target: "OperateTool",
|
|
26
26
|
event_name: "operateAction",
|
|
@@ -29,9 +29,9 @@ const ne = { class: "operate_tool_wrapper" }, ae = { class: "operate_hint" }, re
|
|
|
29
29
|
operateIds: s
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
34
|
-
return r.value === 5 ? a("operate.hintMultiSelected", { count:
|
|
32
|
+
}, X = I(() => {
|
|
33
|
+
if (i.value.length > 0)
|
|
34
|
+
return r.value === 5 ? a("operate.hintMultiSelected", { count: i.value.length }) : a("operate.hintSelected", { count: i.value.length });
|
|
35
35
|
switch (r.value) {
|
|
36
36
|
case 0:
|
|
37
37
|
return a("operate.hintFocus");
|
|
@@ -48,10 +48,10 @@ const ne = { class: "operate_tool_wrapper" }, ae = { class: "operate_hint" }, re
|
|
|
48
48
|
default:
|
|
49
49
|
return a("operate.hintDefault");
|
|
50
50
|
}
|
|
51
|
-
}),
|
|
52
|
-
|
|
51
|
+
}), D = (t) => {
|
|
52
|
+
i.value.includes(t) ? i.value = i.value.filter((s) => s !== t) : i.value.push(t), i.value.length > 0 ? (e.setAllObjectsSelected(!1), e.setObjectsSelected(i.value, !0)) : e.setAllObjectsSelected(!1);
|
|
53
53
|
}, v = () => {
|
|
54
|
-
|
|
54
|
+
i.value = [], e == null || e.setAllObjectsSelected(!1);
|
|
55
55
|
}, j = (t, s) => {
|
|
56
56
|
switch (t) {
|
|
57
57
|
case 0:
|
|
@@ -64,115 +64,112 @@ const ne = { class: "operate_tool_wrapper" }, ae = { class: "operate_hint" }, re
|
|
|
64
64
|
e.setAllObjectsVisible(!1), e.setObjectsVisible(s, !0), g.value = !0;
|
|
65
65
|
break;
|
|
66
66
|
case 3: {
|
|
67
|
-
const
|
|
68
|
-
e.viewer.scene.setObjectsXRayed(s,
|
|
67
|
+
const l = u.value;
|
|
68
|
+
e.viewer.scene.setObjectsXRayed(s, l), s.forEach((o) => {
|
|
69
69
|
const c = e.viewer.scene.objects[o];
|
|
70
70
|
c.edges = c.xrayed ? !0 : e.edgesActive, e.setEntityHighlighted(c, !1);
|
|
71
|
-
}), u.value = !
|
|
71
|
+
}), u.value = !l;
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
case 4: {
|
|
75
|
-
const
|
|
75
|
+
const l = d.value;
|
|
76
76
|
s.forEach((o) => {
|
|
77
77
|
const c = e.viewer.scene.objects[o];
|
|
78
|
-
e.setEntityHighlighted(c,
|
|
79
|
-
}), d.value = !
|
|
78
|
+
e.setEntityHighlighted(c, l), c.xrayed && (e.setEntityXRayed(c, !1), c.edges = e.edgesActive);
|
|
79
|
+
}), d.value = !l;
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
},
|
|
83
|
+
y(t, s);
|
|
84
|
+
}, L = (t) => {
|
|
85
85
|
if (!window.bimViewer.disableClickEvent || !b.isToolActiveBykey("operate")) return;
|
|
86
86
|
const s = r.value;
|
|
87
87
|
if (s === -1 || s === 5) {
|
|
88
|
-
|
|
88
|
+
D(t.id), p();
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
if (s === 2) {
|
|
92
|
-
if (
|
|
93
|
-
const o = [...
|
|
92
|
+
if (i.value.length > 0) {
|
|
93
|
+
const o = [...i.value];
|
|
94
94
|
o.includes(t.id) || o.push(t.id), e.setAllObjectsVisible(!1), e.setObjectsVisible(o, !0), v();
|
|
95
95
|
} else
|
|
96
96
|
g.value || (e.setAllObjectsVisible(!1), g.value = !0), e.setEntityVisible(t, !0);
|
|
97
|
-
|
|
97
|
+
y(2, [t.id]), p();
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
let
|
|
101
|
-
|
|
102
|
-
},
|
|
100
|
+
let l;
|
|
101
|
+
i.value.length > 0 ? (l = [...i.value], l.includes(t.id) || l.push(t.id)) : l = [t.id], j(s, l), s !== 0 && v(), p();
|
|
102
|
+
}, P = () => {
|
|
103
103
|
b.isToolActiveBykey("operate") && (v(), p());
|
|
104
104
|
}, S = () => {
|
|
105
|
-
e = window.bimViewer, e.eventTrigger.on("pickedEntity",
|
|
105
|
+
e = window.bimViewer, e.eventTrigger.on("pickedEntity", L), e.eventTrigger.on("pickedNothing", P);
|
|
106
106
|
};
|
|
107
|
-
|
|
108
|
-
const
|
|
107
|
+
T.on("BimViewer", S);
|
|
108
|
+
const k = (t) => {
|
|
109
109
|
if (r.value === t) {
|
|
110
110
|
r.value = -1;
|
|
111
111
|
return;
|
|
112
112
|
}
|
|
113
113
|
if (e) {
|
|
114
|
-
if (
|
|
115
|
-
const s = [...
|
|
116
|
-
t === 0 ? (e.viewFitObjects(s),
|
|
114
|
+
if (i.value.length > 0) {
|
|
115
|
+
const s = [...i.value];
|
|
116
|
+
t === 0 ? (e.viewFitObjects(s), y(t, s)) : t !== 5 && (j(t, s), v()), p();
|
|
117
117
|
}
|
|
118
118
|
r.value = t;
|
|
119
119
|
}
|
|
120
|
-
},
|
|
121
|
-
e && (r.value = -1, g.value = !1, u.value = !0, d.value = !0, v(), e.setAllObjectsVisible(!0), e.setAllObjectsXRayed(!1), e.setAllObjectsHighlighted(!1), e.setAllObjectsEdges(e.edgesActive), p(),
|
|
120
|
+
}, A = () => {
|
|
121
|
+
e && (r.value = -1, g.value = !1, u.value = !0, d.value = !0, v(), e.setAllObjectsVisible(!0), e.setAllObjectsXRayed(!1), e.setAllObjectsHighlighted(!1), e.setAllObjectsEdges(e.edgesActive), p(), y(-1, []));
|
|
122
122
|
}, p = () => {
|
|
123
123
|
e && (m.entityState.xrayedObjectIds = e.viewer.scene.xrayedObjectIds, m.entityState.highlightedObjectIds = e.viewer.scene.highlightedObjectIds, m.entityState.selectedObjectIds = e.viewer.scene.selectedObjectIds, m.entityState.visibleObjectIds = e.viewer.scene.visibleObjectIds, m.entityState.edgesObjectIds = e.viewer.scene.edgesObjectIds);
|
|
124
124
|
};
|
|
125
|
-
return
|
|
126
|
-
() => b.isToolActive(
|
|
125
|
+
return z(
|
|
126
|
+
() => b.isToolActive(w.componentId),
|
|
127
127
|
(t) => {
|
|
128
128
|
t || (r.value = -1, g.value = !1, u.value = !0, d.value = !0, v(), window.bimViewer && (window.bimViewer.disableClickEvent = !1));
|
|
129
129
|
}
|
|
130
|
-
),
|
|
131
|
-
|
|
130
|
+
), G(() => {
|
|
131
|
+
T.off("BimViewer", S);
|
|
132
132
|
}), B({
|
|
133
|
-
recoverAll:
|
|
134
|
-
}), (t, s) => (E(), J(K, {
|
|
135
|
-
name: "operate-fade",
|
|
136
|
-
persisted: ""
|
|
137
|
-
}, {
|
|
133
|
+
recoverAll: A
|
|
134
|
+
}), (t, s) => (E(), J(K, { name: "operate-fade" }, {
|
|
138
135
|
default: Q(() => [
|
|
139
136
|
W(n("div", ne, [
|
|
140
137
|
n("div", ae, [
|
|
141
|
-
n("span", null,
|
|
138
|
+
n("span", null, O(X.value), 1)
|
|
142
139
|
]),
|
|
143
140
|
n("div", re, [
|
|
144
141
|
n("div", {
|
|
145
|
-
class:
|
|
146
|
-
onClick: s[0] || (s[0] = (
|
|
142
|
+
class: V(["operate_btn", { operate_btn_active: r.value === 5 }]),
|
|
143
|
+
onClick: s[0] || (s[0] = (l) => k(5))
|
|
147
144
|
}, [
|
|
148
145
|
n("img", {
|
|
149
146
|
src: `${f(_)}/industry-viewer/detail-bar/multiSelect.svg`,
|
|
150
147
|
alt: ""
|
|
151
148
|
}, null, 8, oe),
|
|
152
|
-
n("span", null,
|
|
149
|
+
n("span", null, O(f(a)("operate.multiSelect")), 1)
|
|
153
150
|
], 2),
|
|
154
151
|
s[1] || (s[1] = n("div", { class: "split_line" }, null, -1)),
|
|
155
|
-
(E(), Y(Z, null, ee(H, (
|
|
156
|
-
key:
|
|
157
|
-
class:
|
|
158
|
-
onClick: (o) =>
|
|
152
|
+
(E(), Y(Z, null, ee(H, (l) => n("div", {
|
|
153
|
+
key: l.mode,
|
|
154
|
+
class: V(["operate_btn", { operate_btn_active: r.value === l.mode }]),
|
|
155
|
+
onClick: (o) => k(l.mode)
|
|
159
156
|
}, [
|
|
160
157
|
n("img", {
|
|
161
|
-
src: `${f(_)}/industry-viewer/detail-bar/${
|
|
158
|
+
src: `${f(_)}/industry-viewer/detail-bar/${N(l)}.svg`,
|
|
162
159
|
alt: ""
|
|
163
160
|
}, null, 8, ue),
|
|
164
|
-
n("span", null,
|
|
161
|
+
n("span", null, O(f(a)(R(l))), 1)
|
|
165
162
|
], 10, ce)), 64)),
|
|
166
163
|
s[2] || (s[2] = n("div", { class: "split_line" }, null, -1)),
|
|
167
164
|
n("div", {
|
|
168
165
|
class: "operate_btn",
|
|
169
|
-
onClick:
|
|
166
|
+
onClick: A
|
|
170
167
|
}, [
|
|
171
168
|
n("img", {
|
|
172
169
|
src: `${f(_)}/industry-viewer/reset.svg`,
|
|
173
170
|
alt: ""
|
|
174
171
|
}, null, 8, de),
|
|
175
|
-
n("span", null,
|
|
172
|
+
n("span", null, O(f(a)("operate.recover")), 1)
|
|
176
173
|
])
|
|
177
174
|
])
|
|
178
175
|
], 512), [
|
|
@@ -182,7 +179,7 @@ const ne = { class: "operate_tool_wrapper" }, ae = { class: "operate_hint" }, re
|
|
|
182
179
|
_: 1
|
|
183
180
|
}));
|
|
184
181
|
}
|
|
185
|
-
}), be = /* @__PURE__ */
|
|
182
|
+
}), be = /* @__PURE__ */ ie(ve, [["__scopeId", "data-v-2bfdea97"]]);
|
|
186
183
|
export {
|
|
187
184
|
be as default
|
|
188
185
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as A, ref as u, onMounted as j, onBeforeUnmount as q, watch as z, openBlock as h, createElementBlock as b, unref as r, createElementVNode as e, toDisplayString as m, createCommentVNode as L } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { o as J, n as K, p as c, C as S, q as M, O as l, D as V, y as Q } from "./index-Bu4b3eOR.mjs";
|
|
3
3
|
const W = { class: "roam_container_wrapper" }, Y = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "roam_container"
|
|
@@ -21,7 +21,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
21
21
|
}, Re = ["src"], Te = { class: "roam-right-center" }, Ce = {
|
|
22
22
|
id: "roamMoveLeft",
|
|
23
23
|
class: "center-left"
|
|
24
|
-
},
|
|
24
|
+
}, De = ["src"], ke = { class: "center-center" }, Se = ["src"], Ve = {
|
|
25
25
|
id: "roamMoveRight",
|
|
26
26
|
class: "center-right"
|
|
27
27
|
}, Ue = ["src"], Fe = {
|
|
@@ -37,7 +37,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
37
37
|
}, n = u(c("isMobile"));
|
|
38
38
|
j(() => {
|
|
39
39
|
(c("isMobile") || S.showRoam === !1) && (w.value = !1), setTimeout(() => {
|
|
40
|
-
$(), N(),
|
|
40
|
+
$(), N(), O(), X(), G(), H();
|
|
41
41
|
}, 1e3), y.setReadyById(R.componentId);
|
|
42
42
|
});
|
|
43
43
|
const C = () => {
|
|
@@ -59,10 +59,10 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
59
59
|
}), V.BIMX_CONFIGS.RoamTool = !0), z(
|
|
60
60
|
() => y.isToolActive(R.componentId),
|
|
61
61
|
(t) => {
|
|
62
|
-
|
|
62
|
+
D(!!t);
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
|
-
const
|
|
65
|
+
const D = (t) => {
|
|
66
66
|
c("isMobile") ? a.value = t : (c("hideTool") || M.emit("hideToolbar", t), t ? w.value && (g.value = !0) : g.value = !1);
|
|
67
67
|
}, P = () => {
|
|
68
68
|
w.value = !1, I({
|
|
@@ -72,8 +72,8 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
72
72
|
content: {
|
|
73
73
|
msg: v("roam.dontShowCourseMessage")
|
|
74
74
|
}
|
|
75
|
-
}),
|
|
76
|
-
},
|
|
75
|
+
}), k();
|
|
76
|
+
}, k = () => {
|
|
77
77
|
g.value = !1;
|
|
78
78
|
}, x = () => {
|
|
79
79
|
T("closePanel");
|
|
@@ -95,7 +95,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
95
95
|
}), (s = document.getElementById("roamMoveDown")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
96
96
|
a.value && i();
|
|
97
97
|
});
|
|
98
|
-
},
|
|
98
|
+
}, O = () => {
|
|
99
99
|
var t, o, s;
|
|
100
100
|
(t = document.getElementById("roamMoveLeft")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
101
101
|
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goLeft = !0, _("goLeft"));
|
|
@@ -104,7 +104,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
104
104
|
}), (s = document.getElementById("roamMoveLeft")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
105
105
|
a.value && i();
|
|
106
106
|
});
|
|
107
|
-
},
|
|
107
|
+
}, X = () => {
|
|
108
108
|
var t, o, s;
|
|
109
109
|
(t = document.getElementById("roamMoveRight")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
110
110
|
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goRight = !0, _("goDown"));
|
|
@@ -113,7 +113,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
113
113
|
}), (s = document.getElementById("roamMoveRight")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
114
114
|
a.value && i();
|
|
115
115
|
});
|
|
116
|
-
},
|
|
116
|
+
}, G = () => {
|
|
117
117
|
var t, o, s;
|
|
118
118
|
(t = document.getElementById("roamMoveForward")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
119
119
|
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goForward = !0, _("goForward"));
|
|
@@ -165,7 +165,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
165
165
|
}, m(r(v)("roam.dontRemind")), 1),
|
|
166
166
|
e("div", {
|
|
167
167
|
class: "btn2",
|
|
168
|
-
onClick:
|
|
168
|
+
onClick: k
|
|
169
169
|
}, m(r(v)("roam.gotIt")), 1)
|
|
170
170
|
])
|
|
171
171
|
])) : L("", !0),
|
|
@@ -256,9 +256,9 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
256
256
|
e("img", {
|
|
257
257
|
src: r(l) + "/bim-viewer/roam-bar/left.svg",
|
|
258
258
|
alt: ""
|
|
259
|
-
}, null, 8,
|
|
259
|
+
}, null, 8, De)
|
|
260
260
|
]),
|
|
261
|
-
e("div",
|
|
261
|
+
e("div", ke, [
|
|
262
262
|
e("img", {
|
|
263
263
|
src: r(l) + "/bim-viewer/roam-bar/center.svg",
|
|
264
264
|
alt: ""
|
|
@@ -281,7 +281,7 @@ const W = { class: "roam_container_wrapper" }, Y = {
|
|
|
281
281
|
])) : L("", !0)
|
|
282
282
|
]));
|
|
283
283
|
}
|
|
284
|
-
}),
|
|
284
|
+
}), Oe = /* @__PURE__ */ Q(xe, [["__scopeId", "data-v-23b78cfd"]]);
|
|
285
285
|
export {
|
|
286
|
-
|
|
286
|
+
Oe as default
|
|
287
287
|
};
|