@xtctwins/tctwins-industry-engine 0.0.12 → 0.1.1
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 -3
- package/dist/01.xtc +0 -0
- package/dist/02.xtc +0 -0
- package/dist/03.xtc +0 -0
- package/dist/AnnotationTool-C5L5i2tf.mjs +166 -0
- package/dist/CameraViewTool-CM0qckrp.mjs +164 -0
- package/dist/CommentTool-B-6jkY8g.mjs +1528 -0
- package/dist/HiddenTool-CoiTnXX_.mjs +56 -0
- package/dist/Industry_Viewer_Lib.es.js +10 -5
- package/dist/Industry_Viewer_Lib.umd.js +262 -235
- package/dist/InspectorTool-D4XjJ3xE.mjs +679 -0
- package/dist/MeasureTool-DeguXY8Q.mjs +593 -0
- package/dist/MouseTool-MBZQBiey.mjs +84 -0
- package/dist/NavigateTool-CJ3Gcn7x.mjs +51 -0
- package/dist/OperateTool-CMncJ40d.mjs +185 -0
- package/dist/RoamTool-C56sheuh.mjs +287 -0
- package/dist/ScreenShotTool-PNCCVzI0.mjs +429 -0
- package/dist/SectionTool-CWdsvIBB.mjs +241 -0
- package/dist/SettingTool-CWmeVytp.mjs +1787 -0
- package/dist/StructureTree-Cjqc9T7J.mjs +1685 -0
- package/dist/alert-CYzWSnHi.mjs +52 -0
- package/dist/index-DoJj-LVm.mjs +138727 -0
- package/dist/index.html +17 -0
- package/dist/{panel.vue_vue_type_style_index_0_lang-CCuIP-Pp.mjs → panel.vue_vue_type_style_index_0_lang-Cc0xV2N6.mjs} +3 -3
- package/dist/style.css +3 -1
- package/dist/{tallPanel-CqKqC6yK.mjs → tallPanel-fxMO0U73.mjs} +24 -24
- package/dist/timer-DoTiGoWP.mjs +30 -0
- package/package.json +85 -66
- package/types/App.vue.d.ts +3 -1
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +1 -1
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +1 -1
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +2 -2
- package/types/components/BCFComponents/commentInput.vue.d.ts +1 -1
- package/types/components/BCFComponents/commentsView.vue.d.ts +6 -6
- package/types/components/BCFComponents/imageView.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CameraViewTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +34 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +11 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +17 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +275 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +297 -0
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +9 -0
- package/types/components/BimViewerComponents/OperateTool.vue.d.ts +12 -0
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +14 -0
- package/types/components/BimViewerComponents/SectionModeBar.vue.d.ts +2 -0
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +8035 -419
- package/types/components/{industryViewer.vue.d.ts → BimxViewerComp.vue.d.ts} +7 -0
- package/types/components/IndustryViewerComp.vue.d.ts +25 -0
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +1 -1
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +1 -1
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +100 -308
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +100 -308
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +2 -0
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +4 -4
- package/types/components/utilsComponents/alert.vue.d.ts +9 -0
- package/types/components/utilsComponents/prompt.vue.d.ts +8 -0
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -1
- package/types/i18n/index.d.ts +1775 -0
- package/types/i18n/locales/en-US.d.ts +441 -0
- package/types/i18n/locales/zh-CN.d.ts +441 -0
- package/types/i18n/types.d.ts +144 -0
- package/types/index.d.ts +8 -5
- package/types/pages/{viewerEntry.vue.d.ts → BimxViewerEntry.vue.d.ts} +20 -8
- package/types/pages/IndustryViewerEntry.vue.d.ts +71 -0
- package/types/services/request/api.d.ts +3 -0
- package/types/services/request/index.d.ts +14 -0
- package/types/services/request/types.d.ts +12 -0
- package/types/store/bcfReflect.d.ts +8 -7
- package/types/store/const.d.ts +32 -3
- package/types/store/initConfigs.d.ts +3 -3
- package/types/store/localeStore.d.ts +12 -0
- package/types/store/propertyReflect.d.ts +1 -1
- package/types/store/toolbars.d.ts +596 -75
- package/types/store/userInfoStore.d.ts +32 -0
- package/types/tests/bcf.d.ts +8 -0
- package/types/utils/OSSHelper.d.ts +3 -0
- package/types/utils/eventBus.d.ts +23 -5
- package/types/utils/roles.d.ts +1 -1
- package/types/utils/splitType.d.ts +1 -0
- package/types/viewerManager/initial/viewerInitial.d.ts +14 -1
- package/types/viewerManager/load/loadModel.d.ts +122 -1
- package/types/viewerManager/sectionManager.d.ts +524 -0
- package/types/viewerManager/viewerManager.d.ts +19 -1
- package/dist/AnnotationTool-f7CrC7Dr.mjs +0 -131
- package/dist/BCFTool-CdN6SGDL.mjs +0 -25118
- package/dist/CommentTool-Cfht7mQS.mjs +0 -168
- package/dist/InspectorTool-M_oBYVQA.mjs +0 -674
- package/dist/MeasureTool-CxWeQFgY.mjs +0 -167
- package/dist/MouseTool-BHbi-fg3.mjs +0 -84
- package/dist/NavigateTool-BdUVi4Be.mjs +0 -52
- package/dist/RoamTool-Uuxa-94w.mjs +0 -212
- package/dist/ScreenShotTool-CZUm8l2Z.mjs +0 -445
- package/dist/SectionTool-DZToybAI.mjs +0 -217
- package/dist/SettingTool-CYM0qsUs.mjs +0 -770
- package/dist/StructureTree-DeXxENMk.mjs +0 -1824
- package/dist/XRayTool-Bug-FcKJ.mjs +0 -57
- package/dist/alert-DGyQ9rEq.mjs +0 -46
- package/dist/const-DeViLYl5.mjs +0 -266
- package/dist/el-checkbox-ClYe-8uK.mjs +0 -544
- package/dist/el-input-number-Df5HOHuh.mjs +0 -1028
- package/dist/index-BNrMlQLr.mjs +0 -101871
- /package/types/components/BimViewerComponents/{mobileToolbar.vue.d.ts → AppToolbar.vue.d.ts} +0 -0
- /package/types/components/BimViewerComponents/{XRayTool.vue.d.ts → HiddenTool.vue.d.ts} +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
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 I } from "vue";
|
|
2
|
+
import { F as S, G as T, aK as k, P as B } from "./index-DoJj-LVm.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" }, F = /* @__PURE__ */ b({
|
|
4
|
+
__name: "NavigateTool",
|
|
5
|
+
props: ["componentId"],
|
|
6
|
+
emits: ["emitHandler"],
|
|
7
|
+
setup(c, { emit: r }) {
|
|
8
|
+
const l = S(), d = T(), v = c;
|
|
9
|
+
p(() => {
|
|
10
|
+
d.setReadyById(v.componentId);
|
|
11
|
+
});
|
|
12
|
+
const _ = r, m = (t) => {
|
|
13
|
+
_("emitHandler", t);
|
|
14
|
+
}, o = w(), u = (t) => {
|
|
15
|
+
if (t.id === o.value) {
|
|
16
|
+
o.value = "";
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
o.value = t.id, window.bimViewer.setDirection(t.dir_num), m({
|
|
20
|
+
isTool: !0,
|
|
21
|
+
event_target: "NavigateTool",
|
|
22
|
+
event_name: "changeNav",
|
|
23
|
+
content: {
|
|
24
|
+
direction: t.dir_num
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
return (t, E) => (n(), i("div", N, [
|
|
29
|
+
s("div", V, [
|
|
30
|
+
(n(!0), i(g, null, h(a(k), (e) => (n(), i("div", {
|
|
31
|
+
key: e.id,
|
|
32
|
+
class: f(["best-view-item", {
|
|
33
|
+
"best-view-item-active": o.value === e.id
|
|
34
|
+
}]),
|
|
35
|
+
onClick: (H) => u(e)
|
|
36
|
+
}, [
|
|
37
|
+
s("div", y, [
|
|
38
|
+
s("img", {
|
|
39
|
+
src: a(B) + `/bim-viewer/best-view/${o.value === e.id ? e.imgActive : e.img}.svg`,
|
|
40
|
+
alt: ""
|
|
41
|
+
}, null, 8, A),
|
|
42
|
+
s("div", C, I(a(l)(e.label || e.name)), 1)
|
|
43
|
+
])
|
|
44
|
+
], 10, x))), 128))
|
|
45
|
+
])
|
|
46
|
+
]));
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
export {
|
|
50
|
+
F as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { defineComponent as U, onMounted as z, computed as A, ref as h, watch as G, onBeforeUnmount as q, openBlock as E, createBlock as J, Transition as K, withCtx as Q, withDirectives as W, createElementVNode as n, toDisplayString as y, normalizeClass as T, unref as f, createElementBlock as Y, Fragment as Z, renderList as ee, vShow as te } from "vue";
|
|
2
|
+
import { F as se, G as le, I as V, P as _, a0 as m, M as ie } from "./index-DoJj-LVm.mjs";
|
|
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
|
+
__name: "OperateTool",
|
|
5
|
+
props: ["componentId"],
|
|
6
|
+
emits: ["emitHandler"],
|
|
7
|
+
setup(x, { expose: B, emit: C }) {
|
|
8
|
+
const a = se(), b = le(), O = x;
|
|
9
|
+
z(() => {
|
|
10
|
+
b.setReadyById(O.componentId);
|
|
11
|
+
});
|
|
12
|
+
const H = [
|
|
13
|
+
{ mode: 0, name: "operate.focus", img: "fit" },
|
|
14
|
+
{ mode: 1, name: "operate.hide", img: "hide-self" },
|
|
15
|
+
{ mode: 2, name: "operate.onlyShow", img: "hide-other" },
|
|
16
|
+
{ mode: 3, name: "operate.edge", img: "edge" },
|
|
17
|
+
{ mode: 4, name: "operate.transparent", img: "opacity" }
|
|
18
|
+
], M = A(() => b.isToolActive(O.componentId)), r = h(-1), i = h([]), g = h(!1), u = h(!0), d = h(!0), F = (t) => t.mode === 3 ? u.value ? "edge" : "solid" : t.mode === 4 ? d.value ? "opacity" : "fill" : t.img, N = (t) => t.mode === 3 ? u.value ? "operate.edge" : "operate.fill" : t.mode === 4 ? d.value ? "operate.transparent" : "operate.solid" : t.name;
|
|
19
|
+
let e;
|
|
20
|
+
const R = C, $ = (t) => {
|
|
21
|
+
R("emitHandler", t);
|
|
22
|
+
}, w = (t, s) => {
|
|
23
|
+
$({
|
|
24
|
+
isTool: !0,
|
|
25
|
+
event_target: "OperateTool",
|
|
26
|
+
event_name: "operateAction",
|
|
27
|
+
content: {
|
|
28
|
+
operateMode: t,
|
|
29
|
+
operateIds: s
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}, P = A(() => {
|
|
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
|
+
switch (r.value) {
|
|
36
|
+
case 0:
|
|
37
|
+
return a("operate.hintFocus");
|
|
38
|
+
case 1:
|
|
39
|
+
return a("operate.hintHide");
|
|
40
|
+
case 2:
|
|
41
|
+
return a("operate.hintOnlyShow");
|
|
42
|
+
case 3:
|
|
43
|
+
return u.value ? a("operate.hintEdge") : a("operate.hintFill");
|
|
44
|
+
case 4:
|
|
45
|
+
return d.value ? a("operate.hintTransparent") : a("operate.hintSolid");
|
|
46
|
+
case 5:
|
|
47
|
+
return a("operate.hintMultiSelect");
|
|
48
|
+
default:
|
|
49
|
+
return a("operate.hintDefault");
|
|
50
|
+
}
|
|
51
|
+
}), X = (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
|
+
}, v = () => {
|
|
54
|
+
i.value = [], e == null || e.setAllObjectsSelected(!1);
|
|
55
|
+
}, j = (t, s) => {
|
|
56
|
+
switch (t) {
|
|
57
|
+
case 0:
|
|
58
|
+
e.viewFitObjects(s);
|
|
59
|
+
break;
|
|
60
|
+
case 1:
|
|
61
|
+
e.setObjectsVisible(s, !1);
|
|
62
|
+
break;
|
|
63
|
+
case 2:
|
|
64
|
+
e.setAllObjectsVisible(!1), e.setObjectsVisible(s, !0), g.value = !0;
|
|
65
|
+
break;
|
|
66
|
+
case 3: {
|
|
67
|
+
const l = u.value;
|
|
68
|
+
e.viewer.scene.setObjectsXRayed(s, l), s.forEach((o) => {
|
|
69
|
+
const c = e.viewer.scene.objects[o];
|
|
70
|
+
c.edges = c.xrayed ? !0 : e.edgesActive, e.setEntityHighlighted(c, !1);
|
|
71
|
+
}), u.value = !l;
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
case 4: {
|
|
75
|
+
const l = d.value;
|
|
76
|
+
s.forEach((o) => {
|
|
77
|
+
const c = e.viewer.scene.objects[o];
|
|
78
|
+
e.setEntityHighlighted(c, l), c.xrayed && (e.setEntityXRayed(c, !1), c.edges = e.edgesActive);
|
|
79
|
+
}), d.value = !l;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
w(t, s);
|
|
84
|
+
}, D = (t) => {
|
|
85
|
+
if (!window.bimViewer.disableClickEvent || !b.isToolActiveBykey("operate")) return;
|
|
86
|
+
const s = r.value;
|
|
87
|
+
if (s === -1 || s === 5) {
|
|
88
|
+
X(t.id), p();
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
if (s === 2) {
|
|
92
|
+
if (i.value.length > 0) {
|
|
93
|
+
const o = [...i.value];
|
|
94
|
+
o.includes(t.id) || o.push(t.id), e.setAllObjectsVisible(!1), e.setObjectsVisible(o, !0), v();
|
|
95
|
+
} else
|
|
96
|
+
g.value || (e.setAllObjectsVisible(!1), g.value = !0), e.setEntityVisible(t, !0);
|
|
97
|
+
w(2, [t.id]), p();
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
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
|
+
}, L = () => {
|
|
103
|
+
b.isToolActiveBykey("operate") && (v(), p());
|
|
104
|
+
}, S = () => {
|
|
105
|
+
e = window.bimViewer, e.eventTrigger.on("pickedEntity", D), e.eventTrigger.on("pickedNothing", L);
|
|
106
|
+
};
|
|
107
|
+
V.on("BimViewer", S);
|
|
108
|
+
const I = (t) => {
|
|
109
|
+
if (r.value === t) {
|
|
110
|
+
r.value = -1;
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (e) {
|
|
114
|
+
if (i.value.length > 0) {
|
|
115
|
+
const s = [...i.value];
|
|
116
|
+
t === 0 ? (e.viewFitObjects(s), w(t, s)) : t !== 5 && (j(t, s), v()), p();
|
|
117
|
+
}
|
|
118
|
+
r.value = t;
|
|
119
|
+
}
|
|
120
|
+
}, k = () => {
|
|
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(), w(-1, []));
|
|
122
|
+
}, p = () => {
|
|
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
|
+
};
|
|
125
|
+
return G(
|
|
126
|
+
() => b.isToolActive(O.componentId),
|
|
127
|
+
(t) => {
|
|
128
|
+
t || (r.value = -1, g.value = !1, u.value = !0, d.value = !0, v(), window.bimViewer && (window.bimViewer.disableClickEvent = !1));
|
|
129
|
+
}
|
|
130
|
+
), q(() => {
|
|
131
|
+
V.off("BimViewer", S);
|
|
132
|
+
}), B({
|
|
133
|
+
recoverAll: k
|
|
134
|
+
}), (t, s) => (E(), J(K, { name: "operate-fade" }, {
|
|
135
|
+
default: Q(() => [
|
|
136
|
+
W(n("div", ne, [
|
|
137
|
+
n("div", ae, [
|
|
138
|
+
n("span", null, y(P.value), 1)
|
|
139
|
+
]),
|
|
140
|
+
n("div", re, [
|
|
141
|
+
n("div", {
|
|
142
|
+
class: T(["operate_btn", { operate_btn_active: r.value === 5 }]),
|
|
143
|
+
onClick: s[0] || (s[0] = (l) => I(5))
|
|
144
|
+
}, [
|
|
145
|
+
n("img", {
|
|
146
|
+
src: `${f(_)}/industry-viewer/detail-bar/multiSelect.svg`,
|
|
147
|
+
alt: ""
|
|
148
|
+
}, null, 8, oe),
|
|
149
|
+
n("span", null, y(f(a)("operate.multiSelect")), 1)
|
|
150
|
+
], 2),
|
|
151
|
+
s[1] || (s[1] = n("div", { class: "split_line" }, null, -1)),
|
|
152
|
+
(E(), Y(Z, null, ee(H, (l) => n("div", {
|
|
153
|
+
key: l.mode,
|
|
154
|
+
class: T(["operate_btn", { operate_btn_active: r.value === l.mode }]),
|
|
155
|
+
onClick: (o) => I(l.mode)
|
|
156
|
+
}, [
|
|
157
|
+
n("img", {
|
|
158
|
+
src: `${f(_)}/industry-viewer/detail-bar/${F(l)}.svg`,
|
|
159
|
+
alt: ""
|
|
160
|
+
}, null, 8, ue),
|
|
161
|
+
n("span", null, y(f(a)(N(l))), 1)
|
|
162
|
+
], 10, ce)), 64)),
|
|
163
|
+
s[2] || (s[2] = n("div", { class: "split_line" }, null, -1)),
|
|
164
|
+
n("div", {
|
|
165
|
+
class: "operate_btn",
|
|
166
|
+
onClick: k
|
|
167
|
+
}, [
|
|
168
|
+
n("img", {
|
|
169
|
+
src: `${f(_)}/industry-viewer/reset.svg`,
|
|
170
|
+
alt: ""
|
|
171
|
+
}, null, 8, de),
|
|
172
|
+
n("span", null, y(f(a)("operate.recover")), 1)
|
|
173
|
+
])
|
|
174
|
+
])
|
|
175
|
+
], 512), [
|
|
176
|
+
[te, M.value]
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
}));
|
|
181
|
+
}
|
|
182
|
+
}), be = /* @__PURE__ */ ie(ve, [["__scopeId", "data-v-2bfdea97"]]);
|
|
183
|
+
export {
|
|
184
|
+
be as default
|
|
185
|
+
};
|
|
@@ -0,0 +1,287 @@
|
|
|
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 { G as J, F as K, H as c, U as S, I as M, P as l, V, M as Q } from "./index-DoJj-LVm.mjs";
|
|
3
|
+
const W = { class: "roam_container_wrapper" }, Y = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "roam_container"
|
|
6
|
+
}, Z = { class: "container_title" }, ee = ["src"], oe = { class: "container_footer" }, te = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "roamToolbar"
|
|
9
|
+
}, se = { class: "roamToolbar_wrapper" }, ne = { class: "roamTool_group" }, re = { class: "speed_text" }, ae = ["src"], ie = { class: "speed_num" }, le = ["src"], de = { class: "roamTool_group" }, ue = {
|
|
10
|
+
key: 2,
|
|
11
|
+
class: "mobile_roam-box"
|
|
12
|
+
}, me = { class: "roam-left" }, ce = { class: "roam-left-box" }, ve = {
|
|
13
|
+
id: "roamMoveForward",
|
|
14
|
+
class: "roam-left-item"
|
|
15
|
+
}, _e = ["src"], we = { class: "roam-left-box" }, fe = {
|
|
16
|
+
id: "roamMoveBackward",
|
|
17
|
+
class: "roam-left-item roam-left-bottom"
|
|
18
|
+
}, ge = ["src"], pe = { class: "speed_panel roam-left" }, he = { class: "roam-left-item" }, be = { class: "up_down_img" }, Me = ["src"], Ee = { class: "speed_text" }, Be = { class: "up_down_img" }, Ie = ["src"], Le = { class: "roam-right" }, ye = {
|
|
19
|
+
id: "roamMoveUp",
|
|
20
|
+
class: "roam-right-up"
|
|
21
|
+
}, Re = ["src"], Te = { class: "roam-right-center" }, Ce = {
|
|
22
|
+
id: "roamMoveLeft",
|
|
23
|
+
class: "center-left"
|
|
24
|
+
}, ke = ["src"], De = { class: "center-center" }, Se = ["src"], Ve = {
|
|
25
|
+
id: "roamMoveRight",
|
|
26
|
+
class: "center-right"
|
|
27
|
+
}, Ue = ["src"], Fe = {
|
|
28
|
+
id: "roamMoveDown",
|
|
29
|
+
class: "roam-right-down"
|
|
30
|
+
}, Pe = ["src"], xe = /* @__PURE__ */ A({
|
|
31
|
+
__name: "RoamTool",
|
|
32
|
+
props: ["componentId"],
|
|
33
|
+
emits: ["closePanel", "emitHandler"],
|
|
34
|
+
setup(U, { emit: F }) {
|
|
35
|
+
const y = J(), v = K(), E = u("speed-up"), B = u("speed-down"), f = u("1"), g = u(!1), w = u(!0), R = U, T = F, a = u(!1), I = (t) => {
|
|
36
|
+
T("emitHandler", t);
|
|
37
|
+
}, n = u(c("isMobile"));
|
|
38
|
+
j(() => {
|
|
39
|
+
(c("isMobile") || S.showRoam === !1) && (w.value = !1), setTimeout(() => {
|
|
40
|
+
$(), N(), X(), G(), O(), H();
|
|
41
|
+
}, 1e3), y.setReadyById(R.componentId);
|
|
42
|
+
});
|
|
43
|
+
const C = () => {
|
|
44
|
+
let t = window.bimViewer.eventTrigger;
|
|
45
|
+
t.on("personModeSpeedUp", (o) => {
|
|
46
|
+
f.value = o.toString();
|
|
47
|
+
}), t.on("personModeSpeedDown", (o) => {
|
|
48
|
+
f.value = o.toString();
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
M.on("BimViewer", C), q(() => {
|
|
52
|
+
M.off("BimViewer", C);
|
|
53
|
+
});
|
|
54
|
+
const p = (t) => {
|
|
55
|
+
t ? window.bimViewer.firstPersonMode.speedUp() : window.bimViewer.firstPersonMode.speedDown();
|
|
56
|
+
};
|
|
57
|
+
V.BIMX_CONFIGS.RoamTool || (M.on("BIMX_CONFIGS", () => {
|
|
58
|
+
S.showRoam == !1 && (w.value = !1);
|
|
59
|
+
}), V.BIMX_CONFIGS.RoamTool = !0), z(
|
|
60
|
+
() => y.isToolActive(R.componentId),
|
|
61
|
+
(t) => {
|
|
62
|
+
k(!!t);
|
|
63
|
+
}
|
|
64
|
+
);
|
|
65
|
+
const k = (t) => {
|
|
66
|
+
c("isMobile") ? a.value = t : (c("hideTool") || M.emit("hideToolbar", t), t ? w.value && (g.value = !0) : g.value = !1);
|
|
67
|
+
}, P = () => {
|
|
68
|
+
w.value = !1, I({
|
|
69
|
+
isTool: !0,
|
|
70
|
+
event_target: "RoamTool",
|
|
71
|
+
event_name: "rejectRoamCourse",
|
|
72
|
+
content: {
|
|
73
|
+
msg: v("roam.dontShowCourseMessage")
|
|
74
|
+
}
|
|
75
|
+
}), D();
|
|
76
|
+
}, D = () => {
|
|
77
|
+
g.value = !1;
|
|
78
|
+
}, x = () => {
|
|
79
|
+
T("closePanel");
|
|
80
|
+
}, $ = () => {
|
|
81
|
+
var t, o, s;
|
|
82
|
+
(t = document.getElementById("roamMoveUp")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
83
|
+
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goUp = !0, _("goUp"));
|
|
84
|
+
}), (o = document.getElementById("roamMoveUp")) == null || o.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
85
|
+
a.value && i();
|
|
86
|
+
}), (s = document.getElementById("roamMoveUp")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
87
|
+
a.value && i();
|
|
88
|
+
});
|
|
89
|
+
}, N = () => {
|
|
90
|
+
var t, o, s;
|
|
91
|
+
(t = document.getElementById("roamMoveDown")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
92
|
+
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goDown = !0, _("goDown"));
|
|
93
|
+
}), (o = document.getElementById("roamMoveDown")) == null || o.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
94
|
+
a.value && i();
|
|
95
|
+
}), (s = document.getElementById("roamMoveDown")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
96
|
+
a.value && i();
|
|
97
|
+
});
|
|
98
|
+
}, X = () => {
|
|
99
|
+
var t, o, s;
|
|
100
|
+
(t = document.getElementById("roamMoveLeft")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
101
|
+
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goLeft = !0, _("goLeft"));
|
|
102
|
+
}), (o = document.getElementById("roamMoveLeft")) == null || o.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
103
|
+
a.value && i();
|
|
104
|
+
}), (s = document.getElementById("roamMoveLeft")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
105
|
+
a.value && i();
|
|
106
|
+
});
|
|
107
|
+
}, G = () => {
|
|
108
|
+
var t, o, s;
|
|
109
|
+
(t = document.getElementById("roamMoveRight")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
110
|
+
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goRight = !0, _("goDown"));
|
|
111
|
+
}), (o = document.getElementById("roamMoveRight")) == null || o.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
112
|
+
a.value && i();
|
|
113
|
+
}), (s = document.getElementById("roamMoveRight")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
114
|
+
a.value && i();
|
|
115
|
+
});
|
|
116
|
+
}, O = () => {
|
|
117
|
+
var t, o, s;
|
|
118
|
+
(t = document.getElementById("roamMoveForward")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
119
|
+
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goForward = !0, _("goForward"));
|
|
120
|
+
}), (o = document.getElementById("roamMoveForward")) == null || o.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
121
|
+
a.value && i();
|
|
122
|
+
}), (s = document.getElementById("roamMoveForward")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
123
|
+
a.value && i();
|
|
124
|
+
});
|
|
125
|
+
}, H = () => {
|
|
126
|
+
var t, o, s;
|
|
127
|
+
(t = document.getElementById("roamMoveBackward")) == null || t.addEventListener(n.value ? "touchstart" : "mousedown", (d) => {
|
|
128
|
+
a.value && (n.value && d.preventDefault(), window.bimViewer.firstPersonMode.goBackward = !0, _("goBackward"));
|
|
129
|
+
}), (o = document.getElementById("roamMoveBackward")) == null || o.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
130
|
+
a.value && i();
|
|
131
|
+
}), (s = document.getElementById("roamMoveBackward")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
132
|
+
a.value && i();
|
|
133
|
+
});
|
|
134
|
+
}, _ = (t) => {
|
|
135
|
+
I({
|
|
136
|
+
isTool: !0,
|
|
137
|
+
event_target: "RoamTool",
|
|
138
|
+
event_name: "",
|
|
139
|
+
content: {
|
|
140
|
+
roam: t
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
}, i = () => {
|
|
144
|
+
window.bimViewer.firstPersonMode.setdirectionChangeCancel(), I({
|
|
145
|
+
isTool: !0,
|
|
146
|
+
event_target: "RoamTool",
|
|
147
|
+
event_name: "",
|
|
148
|
+
content: {
|
|
149
|
+
roam: "stop"
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
};
|
|
153
|
+
return (t, o) => (h(), b("div", W, [
|
|
154
|
+
!r(c)("isMobile") && g.value ? (h(), b("div", Y, [
|
|
155
|
+
e("div", Z, m(r(v)("roam.courseTitle")), 1),
|
|
156
|
+
e("img", {
|
|
157
|
+
class: "container_img",
|
|
158
|
+
src: r(l) + "/bim-viewer/roam-icon.png",
|
|
159
|
+
alt: ""
|
|
160
|
+
}, null, 8, ee),
|
|
161
|
+
e("div", oe, [
|
|
162
|
+
e("div", {
|
|
163
|
+
class: "btn1",
|
|
164
|
+
onClick: P
|
|
165
|
+
}, m(r(v)("roam.dontRemind")), 1),
|
|
166
|
+
e("div", {
|
|
167
|
+
class: "btn2",
|
|
168
|
+
onClick: D
|
|
169
|
+
}, m(r(v)("roam.gotIt")), 1)
|
|
170
|
+
])
|
|
171
|
+
])) : L("", !0),
|
|
172
|
+
r(c)("isMobile") ? L("", !0) : (h(), b("div", te, [
|
|
173
|
+
e("div", se, [
|
|
174
|
+
e("div", ne, [
|
|
175
|
+
e("div", re, m(r(v)("roam.speedLabel")), 1),
|
|
176
|
+
e("div", {
|
|
177
|
+
class: "up_down_button",
|
|
178
|
+
onClick: o[0] || (o[0] = (s) => p(!1)),
|
|
179
|
+
onMouseover: o[1] || (o[1] = (s) => B.value = "speed-down1"),
|
|
180
|
+
onMouseleave: o[2] || (o[2] = (s) => B.value = "speed-down")
|
|
181
|
+
}, [
|
|
182
|
+
e("img", {
|
|
183
|
+
src: r(l) + "/bim-viewer/roam-bar/" + B.value + ".png"
|
|
184
|
+
}, null, 8, ae)
|
|
185
|
+
], 32),
|
|
186
|
+
e("div", ie, m(f.value) + "X", 1),
|
|
187
|
+
e("div", {
|
|
188
|
+
class: "up_down_button",
|
|
189
|
+
onClick: o[3] || (o[3] = (s) => p(!0)),
|
|
190
|
+
onMouseover: o[4] || (o[4] = (s) => E.value = "speed-up1"),
|
|
191
|
+
onMouseleave: o[5] || (o[5] = (s) => E.value = "speed-up")
|
|
192
|
+
}, [
|
|
193
|
+
e("img", {
|
|
194
|
+
src: r(l) + "/bim-viewer/roam-bar/" + E.value + ".png"
|
|
195
|
+
}, null, 8, le)
|
|
196
|
+
], 32)
|
|
197
|
+
]),
|
|
198
|
+
o[8] || (o[8] = e("div", { class: "split" }, null, -1)),
|
|
199
|
+
e("div", de, [
|
|
200
|
+
e("div", {
|
|
201
|
+
class: "cancel_button",
|
|
202
|
+
onClick: x
|
|
203
|
+
}, m(r(v)("common.close")), 1)
|
|
204
|
+
])
|
|
205
|
+
])
|
|
206
|
+
])),
|
|
207
|
+
r(c)("isMobile") ? (h(), b("div", ue, [
|
|
208
|
+
e("div", me, [
|
|
209
|
+
e("div", ce, [
|
|
210
|
+
e("div", ve, [
|
|
211
|
+
e("img", {
|
|
212
|
+
src: r(l) + "/bim-viewer/roam-bar/up.svg",
|
|
213
|
+
alt: ""
|
|
214
|
+
}, null, 8, _e)
|
|
215
|
+
])
|
|
216
|
+
]),
|
|
217
|
+
e("div", we, [
|
|
218
|
+
e("div", fe, [
|
|
219
|
+
e("img", {
|
|
220
|
+
src: r(l) + "/bim-viewer/roam-bar/down.svg",
|
|
221
|
+
alt: ""
|
|
222
|
+
}, null, 8, ge)
|
|
223
|
+
])
|
|
224
|
+
])
|
|
225
|
+
]),
|
|
226
|
+
e("div", pe, [
|
|
227
|
+
e("div", he, [
|
|
228
|
+
e("div", be, [
|
|
229
|
+
e("img", {
|
|
230
|
+
src: r(l) + "/bim-viewer/roam-bar/plus.svg",
|
|
231
|
+
onClick: o[6] || (o[6] = (s) => p(!0)),
|
|
232
|
+
alt: ""
|
|
233
|
+
}, null, 8, Me)
|
|
234
|
+
]),
|
|
235
|
+
e("div", Ee, [
|
|
236
|
+
e("span", null, m(f.value) + "X", 1)
|
|
237
|
+
]),
|
|
238
|
+
e("div", Be, [
|
|
239
|
+
e("img", {
|
|
240
|
+
src: r(l) + "/bim-viewer/roam-bar/minus.svg",
|
|
241
|
+
onClick: o[7] || (o[7] = (s) => p(!1)),
|
|
242
|
+
alt: ""
|
|
243
|
+
}, null, 8, Ie)
|
|
244
|
+
])
|
|
245
|
+
])
|
|
246
|
+
]),
|
|
247
|
+
e("div", Le, [
|
|
248
|
+
e("div", ye, [
|
|
249
|
+
e("img", {
|
|
250
|
+
src: r(l) + "/bim-viewer/roam-bar/top.svg",
|
|
251
|
+
alt: ""
|
|
252
|
+
}, null, 8, Re)
|
|
253
|
+
]),
|
|
254
|
+
e("div", Te, [
|
|
255
|
+
e("div", Ce, [
|
|
256
|
+
e("img", {
|
|
257
|
+
src: r(l) + "/bim-viewer/roam-bar/left.svg",
|
|
258
|
+
alt: ""
|
|
259
|
+
}, null, 8, ke)
|
|
260
|
+
]),
|
|
261
|
+
e("div", De, [
|
|
262
|
+
e("img", {
|
|
263
|
+
src: r(l) + "/bim-viewer/roam-bar/center.svg",
|
|
264
|
+
alt: ""
|
|
265
|
+
}, null, 8, Se)
|
|
266
|
+
]),
|
|
267
|
+
e("div", Ve, [
|
|
268
|
+
e("img", {
|
|
269
|
+
src: r(l) + "/bim-viewer/roam-bar/right.svg",
|
|
270
|
+
alt: ""
|
|
271
|
+
}, null, 8, Ue)
|
|
272
|
+
])
|
|
273
|
+
]),
|
|
274
|
+
e("div", Fe, [
|
|
275
|
+
e("img", {
|
|
276
|
+
src: r(l) + "/bim-viewer/roam-bar/bottom.svg",
|
|
277
|
+
alt: ""
|
|
278
|
+
}, null, 8, Pe)
|
|
279
|
+
])
|
|
280
|
+
])
|
|
281
|
+
])) : L("", !0)
|
|
282
|
+
]));
|
|
283
|
+
}
|
|
284
|
+
}), Xe = /* @__PURE__ */ Q(xe, [["__scopeId", "data-v-566257e2"]]);
|
|
285
|
+
export {
|
|
286
|
+
Xe as default
|
|
287
|
+
};
|