@xtctwins/tctwins-industry-engine 0.0.11 → 0.1.0
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-DfcSXn-d.mjs +166 -0
- package/dist/CameraViewTool-C91GKumm.mjs +164 -0
- package/dist/CommentTool-CR1yMDYP.mjs +1528 -0
- package/dist/HiddenTool-iCXaAMtS.mjs +56 -0
- package/dist/Industry_Viewer_Lib.es.js +10 -5
- package/dist/Industry_Viewer_Lib.umd.js +264 -237
- package/dist/InspectorTool-MyLTC7qp.mjs +679 -0
- package/dist/MeasureTool-BpomWCXl.mjs +593 -0
- package/dist/MouseTool-COWvA8Jk.mjs +84 -0
- package/dist/NavigateTool-DeMrrYoS.mjs +51 -0
- package/dist/OperateTool-DSZCJVkD.mjs +185 -0
- package/dist/RoamTool-0E0ls2Cx.mjs +287 -0
- package/dist/ScreenShotTool-viitj9zy.mjs +429 -0
- package/dist/SectionTool-Bz1c26fa.mjs +241 -0
- package/dist/SettingTool-BlsqUNQM.mjs +1745 -0
- package/dist/StructureTree-Dke0hMRC.mjs +1685 -0
- package/dist/alert-CgfjcpRo.mjs +52 -0
- package/dist/index-COQ8NdId.mjs +138714 -0
- package/dist/index.html +17 -0
- package/dist/{panel.vue_vue_type_style_index_0_lang-D3swRKXl.mjs → panel.vue_vue_type_style_index_0_lang-B-dNXuRK.mjs} +3 -3
- package/dist/style.css +3 -1
- package/dist/{tallPanel-eXWPdhmU.mjs → tallPanel-B-5hSZt6.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 +1767 -0
- package/types/i18n/locales/en-US.d.ts +439 -0
- package/types/i18n/locales/zh-CN.d.ts +439 -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 +137 -1
- package/types/viewerManager/sectionManager.d.ts +524 -0
- package/types/viewerManager/viewerManager.d.ts +19 -1
- package/dist/AnnotationTool-BZlQ0NIM.mjs +0 -131
- package/dist/BCFTool-DAqDUYS-.mjs +0 -25118
- package/dist/CommentTool-BwHOJoFe.mjs +0 -168
- package/dist/InspectorTool-BK5pX2nZ.mjs +0 -674
- package/dist/MeasureTool-D92Tyu14.mjs +0 -167
- package/dist/MouseTool-Dpl4JLyb.mjs +0 -84
- package/dist/NavigateTool-B5ySsqph.mjs +0 -52
- package/dist/RoamTool-Nk4hYPJB.mjs +0 -212
- package/dist/ScreenShotTool-D1cS2DkF.mjs +0 -445
- package/dist/SectionTool-D3885F5s.mjs +0 -217
- package/dist/SettingTool-BI_soRCO.mjs +0 -770
- package/dist/StructureTree-CCWwAbnr.mjs +0 -1824
- package/dist/XRayTool-IRgKMGU8.mjs +0 -57
- package/dist/alert-x4uA_EPv.mjs +0 -46
- package/dist/const-DeViLYl5.mjs +0 -266
- package/dist/el-checkbox-_VjUMARt.mjs +0 -544
- package/dist/el-input-number-Chi40nla.mjs +0 -1028
- package/dist/index-CaiiH-9N.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
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { defineComponent as de, ref as s, onMounted as H, onBeforeUnmount as ge, watch as _e, createElementBlock as I, openBlock as A, Fragment as U, createElementVNode as t, withDirectives as Me, createCommentVNode as fe, renderList as ye, unref as a, normalizeClass as he, toDisplayString as we, normalizeStyle as F, vShow as Te } from "vue";
|
|
2
|
-
import { z as pe, T as O, B as P, O as y, V as W, A as g, G as Be } from "./index-CaiiH-9N.mjs";
|
|
3
|
-
import { M as L } from "./const-DeViLYl5.mjs";
|
|
4
|
-
const be = { class: "mobile_measure_panel" }, Ie = { class: "measure-list" }, Ae = ["onClick"], Ee = { class: "measure-icon" }, De = ["src"], Re = { class: "measure-name" }, Ve = { class: "measure-icon" }, Se = ["src"], ke = { class: "mouse_btn" }, Le = ["src"], xe = ["src"], Ce = ["src"], $e = /* @__PURE__ */ de({
|
|
5
|
-
__name: "MeasureTool",
|
|
6
|
-
props: ["componentId"],
|
|
7
|
-
emits: ["closePanel", "emitHandler"],
|
|
8
|
-
setup(j, { emit: q }) {
|
|
9
|
-
const h = pe(), J = j, x = s(0);
|
|
10
|
-
H(() => {
|
|
11
|
-
h.setReadyById(J.componentId), O.currentTheme == "blue" ? x.value = 224 : O.currentTheme == "light-gray" && (x.value = 202);
|
|
12
|
-
});
|
|
13
|
-
let u, w, T, i;
|
|
14
|
-
const n = s(1), C = s(), E = s(), _ = s(), D = s(), R = s(), K = s(), Q = s(), Z = s(), G = s(1), ee = s("m"), se = s(3), l = s(!1), te = q, $ = (e) => {
|
|
15
|
-
te("emitHandler", e);
|
|
16
|
-
}, z = () => {
|
|
17
|
-
T = window.bimViewer, W.SaveViewerState({ measure: "distance" }), w = window.bimViewer.measureAngleTool, u = window.bimViewer.measureDistanceTool, i = window.bimViewer.eventTrigger, g("isMobile") && (i.on("newAngleMeasure", (e) => {
|
|
18
|
-
l.value = !1;
|
|
19
|
-
}), i.on("newDistanceMeasure", (e) => {
|
|
20
|
-
l.value = !1;
|
|
21
|
-
})), i.on("createAngleMeasure", (e) => {
|
|
22
|
-
R.value = e.id, D.value = e.result, g("isMobile") && (l.value = !0), m("createAngleMeasure", { newMeasure: e });
|
|
23
|
-
}), i.on("createDistanceMeasure", (e) => {
|
|
24
|
-
C.value = e.id, _.value = e.id, E.value = e.result, K.value = e.xResult ? e.xResult : 0, Q.value = e.yResult ? e.yResult : 0, Z.value = e.zResult ? e.zResult : 0, g("isMobile") && (l.value = !0), m("createAngleMeasure", { newMeasure: e });
|
|
25
|
-
}), i.on("clickDistanceMeasure", (e) => {
|
|
26
|
-
n.value == 2 && V(L[0]), C.value = e.id, ue(e.id), g("isMobile") && (l.value = !0), m("clickDistanceMeasure", { id: e.id });
|
|
27
|
-
}), i.on("clickAngleMeasure", (e) => {
|
|
28
|
-
n.value == 1 && V(L[1]), ne(e.id), g("isMobile") && (l.value = !0), m("clickAngleMeasure", { id: e.id });
|
|
29
|
-
}), u.precision = se.value, u.unit = ee.value, u.scale = G.value;
|
|
30
|
-
};
|
|
31
|
-
P.on("BimViewer", z), ge(() => {
|
|
32
|
-
P.off("BimViewer", z);
|
|
33
|
-
}), _e(
|
|
34
|
-
() => h.isToolActive(3),
|
|
35
|
-
(e) => {
|
|
36
|
-
re(e);
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
const m = (e, o) => {
|
|
40
|
-
$({
|
|
41
|
-
isTool: !0,
|
|
42
|
-
event_name: e,
|
|
43
|
-
event_target: "MeasureTool",
|
|
44
|
-
content: o
|
|
45
|
-
});
|
|
46
|
-
}, V = (e) => {
|
|
47
|
-
n.value !== e.id && (n.value = e.id, W.SaveViewerState({ measure: e.code }), oe(e), g("isMobile") && (l.value = !1));
|
|
48
|
-
}, oe = (e) => {
|
|
49
|
-
let o = e.code;
|
|
50
|
-
window.bimViewer.measureTool.setActiveByType(o, !0), $({
|
|
51
|
-
isTool: !0,
|
|
52
|
-
event_name: "",
|
|
53
|
-
event_target: "MeasureTool",
|
|
54
|
-
content: {
|
|
55
|
-
measureTool: o
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}, le = () => {
|
|
59
|
-
E.value = "", D.value = "", n.value === 1 ? (ie(_.value), m("destroyMeasureDistance", { id: _.value })) : n.value === 2 && (ae(R.value), m("destroyMeasurementAngle", { id: _.value })), l.value = !1;
|
|
60
|
-
}, ne = (e) => {
|
|
61
|
-
R.value = e, D.value = w.getMeasureResultByID(e);
|
|
62
|
-
}, ae = (e) => w.destroyMeasurementById(e), ue = (e) => {
|
|
63
|
-
_.value = e, E.value = u.getMeasureResultByID(e);
|
|
64
|
-
}, ie = (e) => u.destroyMeasurementById(e), re = (e) => {
|
|
65
|
-
u.setAllVisible(e), w.setAllVisible(e);
|
|
66
|
-
};
|
|
67
|
-
H(() => {
|
|
68
|
-
document.getElementById("top_bar");
|
|
69
|
-
});
|
|
70
|
-
const d = s(!1);
|
|
71
|
-
let p = !1, B = 0, b = 0, S = 0, k = 0;
|
|
72
|
-
const r = s(260), c = s(500), ce = () => {
|
|
73
|
-
d.value = !d.value, d.value ? ve() : me();
|
|
74
|
-
}, N = (e) => {
|
|
75
|
-
p ? T.measureTool.currentTool.onSimulateMousedown([r.value, c.value]) : e.touches.length == 1 && (B = e.touches[0].clientX, b = e.touches[0].clientY, p = !0);
|
|
76
|
-
}, X = (e) => {
|
|
77
|
-
if (e.touches.length == 1) {
|
|
78
|
-
const o = e.touches[0].clientX, M = e.touches[0].clientY;
|
|
79
|
-
S = o - B, k = M - b, r.value += S, c.value += k;
|
|
80
|
-
let f = new Int16Array(2);
|
|
81
|
-
f[0] = r.value + 5, f[1] = c.value + 6, B = o, b = M, T.measureTool.currentTool.onSimulateMousemove([r.value, c.value]);
|
|
82
|
-
}
|
|
83
|
-
}, Y = (e) => {
|
|
84
|
-
p && T.measureTool.currentTool.onSimulateMouseup([r.value, c.value]);
|
|
85
|
-
}, ve = () => {
|
|
86
|
-
const e = document.getElementById("measure_mouseGroup");
|
|
87
|
-
e == null || e.addEventListener("touchstart", N), e == null || e.addEventListener("touchmove", X), e == null || e.addEventListener("touchend", Y), r.value = 260, c.value = 500, B = 0, b = 0, S = 0, k = 0, p = !1;
|
|
88
|
-
}, me = () => {
|
|
89
|
-
const e = document.getElementById("measure_mouseGroup");
|
|
90
|
-
e == null || e.removeEventListener("touchstart", N), e == null || e.removeEventListener("touchmove", X), e == null || e.removeEventListener("touchend", Y);
|
|
91
|
-
};
|
|
92
|
-
return (e, o) => {
|
|
93
|
-
var M, f;
|
|
94
|
-
return A(), I(U, null, [
|
|
95
|
-
t("div", be, [
|
|
96
|
-
t("div", Ie, [
|
|
97
|
-
(A(!0), I(U, null, ye(a(L), (v) => (A(), I("div", {
|
|
98
|
-
key: v.id,
|
|
99
|
-
class: he(["measure-item", {
|
|
100
|
-
"measure-item-active": n.value === v.id
|
|
101
|
-
}]),
|
|
102
|
-
onClick: (ze) => V(v)
|
|
103
|
-
}, [
|
|
104
|
-
t("div", Ee, [
|
|
105
|
-
t("img", {
|
|
106
|
-
src: a(y) + `/industry-viewer/measure-bar/${n.value === v.id ? v.svgActive : v.svg}.svg`,
|
|
107
|
-
alt: ""
|
|
108
|
-
}, null, 8, De),
|
|
109
|
-
t("div", Re, we(v.name), 1)
|
|
110
|
-
])
|
|
111
|
-
], 10, Ae))), 128)),
|
|
112
|
-
l.value ? (A(), I("div", {
|
|
113
|
-
key: 0,
|
|
114
|
-
class: "measure-item",
|
|
115
|
-
onClick: le
|
|
116
|
-
}, [
|
|
117
|
-
t("div", Ve, [
|
|
118
|
-
t("img", {
|
|
119
|
-
src: a(y) + "/industry-viewer/delete.svg",
|
|
120
|
-
alt: ""
|
|
121
|
-
}, null, 8, Se),
|
|
122
|
-
o[0] || (o[0] = t("div", {
|
|
123
|
-
class: "measure-name",
|
|
124
|
-
style: { color: "#df1c1c" }
|
|
125
|
-
}, " 删除 ", -1))
|
|
126
|
-
])
|
|
127
|
-
])) : fe("", !0)
|
|
128
|
-
]),
|
|
129
|
-
t("div", ke, [
|
|
130
|
-
t("div", {
|
|
131
|
-
class: "mouse",
|
|
132
|
-
onClick: ce
|
|
133
|
-
}, [
|
|
134
|
-
t("img", {
|
|
135
|
-
src: `${a(y)}/industry-viewer/action-bar/${d.value ? (M = a(h).getToolById(15)) == null ? void 0 : M.imgActive : (f = a(h).getToolById(15)) == null ? void 0 : f.img}.svg`
|
|
136
|
-
}, null, 8, Le),
|
|
137
|
-
t("span", {
|
|
138
|
-
style: F({ color: d.value ? "#1457F7" : "#262626" })
|
|
139
|
-
}, "虚拟鼠标", 4)
|
|
140
|
-
])
|
|
141
|
-
])
|
|
142
|
-
]),
|
|
143
|
-
Me(t("div", {
|
|
144
|
-
id: "measure_mouseGroup",
|
|
145
|
-
class: "mouse_group",
|
|
146
|
-
style: F({ left: `${r.value}px`, top: `${c.value}px` })
|
|
147
|
-
}, [
|
|
148
|
-
t("img", {
|
|
149
|
-
id: "mouse_icon",
|
|
150
|
-
class: "mouse_icon",
|
|
151
|
-
src: `${a(y)}/industry-viewer/mouse-icon.svg`
|
|
152
|
-
}, null, 8, xe),
|
|
153
|
-
t("img", {
|
|
154
|
-
id: "mouse_img",
|
|
155
|
-
class: "mouse_img",
|
|
156
|
-
src: `${a(y)}/industry-viewer/mouse-active-large.svg`
|
|
157
|
-
}, null, 8, Ce)
|
|
158
|
-
], 4), [
|
|
159
|
-
[Te, d.value]
|
|
160
|
-
])
|
|
161
|
-
], 64);
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
}), He = /* @__PURE__ */ Be($e, [["__scopeId", "data-v-5cefa9e3"]]);
|
|
165
|
-
export {
|
|
166
|
-
He as default
|
|
167
|
-
};
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Y, onMounted as x, onBeforeUnmount as A, ref as _, watch as C, createElementBlock as M, openBlock as $, withDirectives as F, createElementVNode as g, normalizeStyle as z, unref as L, vShow as D } from "vue";
|
|
2
|
-
import { z as N, B as s, O as V, V as k } from "./index-CaiiH-9N.mjs";
|
|
3
|
-
const R = { class: "mouse_tool" }, U = ["src"], P = ["src"], J = /* @__PURE__ */ Y({
|
|
4
|
-
__name: "MouseTool",
|
|
5
|
-
props: ["componentId"],
|
|
6
|
-
setup(O) {
|
|
7
|
-
const p = N(), y = O;
|
|
8
|
-
x(() => {
|
|
9
|
-
p.setReadyById(y.componentId), document.getElementById("top_bar");
|
|
10
|
-
});
|
|
11
|
-
let t;
|
|
12
|
-
const w = () => {
|
|
13
|
-
t = window.bimViewer, t.eventTrigger.on("pickedNothing", () => {
|
|
14
|
-
c.value = !1;
|
|
15
|
-
}), t.viewer.cameraControl.on("touchmoveCanvas", () => {
|
|
16
|
-
o = !1, n = "";
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
s.on("BimViewer", w);
|
|
20
|
-
const E = () => {
|
|
21
|
-
c.value = !1, o = !1;
|
|
22
|
-
}, T = () => {
|
|
23
|
-
};
|
|
24
|
-
s.on("unFocus", E), s.on("multiSelect", T), A(() => {
|
|
25
|
-
s.off("BimViewer", w), s.off("unFocus", E);
|
|
26
|
-
});
|
|
27
|
-
const a = _(260), u = _(500), c = _(!1);
|
|
28
|
-
let d = !1, o = !1, i = 0, l = 0, m = 0, v = 0;
|
|
29
|
-
C(
|
|
30
|
-
() => p.isToolActive(y.componentId),
|
|
31
|
-
(e) => {
|
|
32
|
-
e ? j() : (o = !1, d = !1, i = 0, l = 0, m = 0, v = 0, X());
|
|
33
|
-
}
|
|
34
|
-
);
|
|
35
|
-
let n = "";
|
|
36
|
-
const S = (e) => {
|
|
37
|
-
o || e.touches.length == 1 && (d = !0, i = e.touches[0].clientX, l = e.touches[0].clientY), setTimeout(function() {
|
|
38
|
-
e.preventDefault();
|
|
39
|
-
}, 300);
|
|
40
|
-
}, B = (e) => {
|
|
41
|
-
o && (c.value = !0, s.emit("focusEntity", n));
|
|
42
|
-
}, I = (e) => {
|
|
43
|
-
if (d && e.touches.length == 1) {
|
|
44
|
-
const f = e.touches[0].clientX, b = e.touches[0].clientY;
|
|
45
|
-
m = f - i, v = b - l, a.value += m, u.value += v;
|
|
46
|
-
let h = new Int16Array(2);
|
|
47
|
-
h[0] = a.value + 5, h[1] = u.value + 6;
|
|
48
|
-
const r = t.viewer.scene.pick({
|
|
49
|
-
canvasPos: h
|
|
50
|
-
});
|
|
51
|
-
r ? (o = !0, n !== r.entity.id && (n = r.entity.id, t.setAllObjectsSelected(!1), t.setEntitySelected(r.entity))) : (o = !1, n = "", t.setAllObjectsSelected(!1)), k.entityState.selectedObjectIds.length > 0 && t.setObjectsSelected(k.entityState.selectedObjectIds, !0), i = f, l = b;
|
|
52
|
-
}
|
|
53
|
-
}, j = () => {
|
|
54
|
-
const e = document.getElementById("mouseGroup");
|
|
55
|
-
e == null || e.addEventListener("touchstart", S), e == null || e.addEventListener("touchmove", I), e == null || e.addEventListener("click", B);
|
|
56
|
-
}, X = () => {
|
|
57
|
-
const e = document.getElementById("mouseGroup");
|
|
58
|
-
e == null || e.removeEventListener("touchstart", S), e == null || e.removeEventListener("touchmove", I), e == null || e.removeEventListener("click", B);
|
|
59
|
-
};
|
|
60
|
-
return (e, f) => ($(), M("div", R, [
|
|
61
|
-
F(g("div", {
|
|
62
|
-
id: "mouseGroup",
|
|
63
|
-
class: "mouse_group",
|
|
64
|
-
style: z({ left: `${a.value}px`, top: `${u.value}px` })
|
|
65
|
-
}, [
|
|
66
|
-
g("img", {
|
|
67
|
-
id: "mouse_icon",
|
|
68
|
-
class: "mouse_icon",
|
|
69
|
-
src: `${L(V)}/industry-viewer/mouse-icon.svg`
|
|
70
|
-
}, null, 8, U),
|
|
71
|
-
g("img", {
|
|
72
|
-
id: "mouse_img",
|
|
73
|
-
class: "mouse_img",
|
|
74
|
-
src: `${L(V)}/industry-viewer/mouse-active-large.svg`
|
|
75
|
-
}, null, 8, P)
|
|
76
|
-
], 4), [
|
|
77
|
-
[D, !c.value]
|
|
78
|
-
])
|
|
79
|
-
]));
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
export {
|
|
83
|
-
J as default
|
|
84
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, onMounted as p, ref as b, createElementBlock as i, openBlock as n, createElementVNode as s, Fragment as w, renderList as g, unref as r, normalizeClass as f, toDisplayString as h } from "vue";
|
|
2
|
-
import { N } from "./const-DeViLYl5.mjs";
|
|
3
|
-
import { z as S, O as T } from "./index-CaiiH-9N.mjs";
|
|
4
|
-
const k = { class: "best-view-box" }, I = { class: "best-view-list" }, V = ["onClick"], y = { class: "best-view-icon" }, A = ["src"], B = { class: "best-view-name" }, z = /* @__PURE__ */ u({
|
|
5
|
-
__name: "NavigateTool",
|
|
6
|
-
props: ["componentId"],
|
|
7
|
-
emits: ["emitHandler"],
|
|
8
|
-
setup(a, { emit: c }) {
|
|
9
|
-
const l = S(), d = a;
|
|
10
|
-
p(() => {
|
|
11
|
-
l.setReadyById(d.componentId);
|
|
12
|
-
});
|
|
13
|
-
const v = c, m = (e) => {
|
|
14
|
-
v("emitHandler", e);
|
|
15
|
-
}, o = b(), _ = (e) => {
|
|
16
|
-
if (e.id === o.value) {
|
|
17
|
-
o.value = "";
|
|
18
|
-
return;
|
|
19
|
-
}
|
|
20
|
-
o.value = e.id, window.bimViewer.setDirection(e.dir_num), m({
|
|
21
|
-
isTool: !0,
|
|
22
|
-
event_target: "NavigateTool",
|
|
23
|
-
event_name: "changeNav",
|
|
24
|
-
content: {
|
|
25
|
-
direction: e.dir_num
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
return (e, C) => (n(), i("div", k, [
|
|
30
|
-
s("div", I, [
|
|
31
|
-
(n(!0), i(w, null, g(r(N), (t) => (n(), i("div", {
|
|
32
|
-
key: t.id,
|
|
33
|
-
class: f(["best-view-item", {
|
|
34
|
-
"best-view-item-active": o.value === t.id
|
|
35
|
-
}]),
|
|
36
|
-
onClick: (E) => _(t)
|
|
37
|
-
}, [
|
|
38
|
-
s("div", y, [
|
|
39
|
-
s("img", {
|
|
40
|
-
src: r(T) + `/bim-viewer/best-view/${o.value === t.id ? t.imgActive : t.img}.svg`,
|
|
41
|
-
alt: ""
|
|
42
|
-
}, null, 8, A),
|
|
43
|
-
s("div", B, h(t.name), 1)
|
|
44
|
-
])
|
|
45
|
-
], 10, V))), 128))
|
|
46
|
-
])
|
|
47
|
-
]));
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
export {
|
|
51
|
-
z as default
|
|
52
|
-
};
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
import { defineComponent as k, ref as u, onMounted as F, onBeforeUnmount as N, watch as P, createElementBlock as x, openBlock as O, createElementVNode as o, unref as d, toDisplayString as G } from "vue";
|
|
2
|
-
import { z as Y, A as v, J as B, B as f, O as l, K as I, G as A } from "./index-CaiiH-9N.mjs";
|
|
3
|
-
const H = { class: "roam_container_wrapper" }, $ = { class: "mobile_roam-box" }, z = { class: "roam-left" }, J = { class: "roam-left-box" }, K = {
|
|
4
|
-
id: "roamMoveForward",
|
|
5
|
-
class: "roam-left-item"
|
|
6
|
-
}, X = ["src"], j = { class: "roam-left-box" }, q = {
|
|
7
|
-
id: "roamMoveBackward",
|
|
8
|
-
class: "roam-left-item roam-left-bottom"
|
|
9
|
-
}, Q = ["src"], W = { class: "speed_panel roam-left" }, Z = { class: "roam-left-item" }, ee = { class: "up_down_img" }, oe = ["src"], te = { class: "speed_text" }, ne = { class: "up_down_img" }, re = ["src"], se = { class: "roam-right" }, ae = {
|
|
10
|
-
id: "roamMoveUp",
|
|
11
|
-
class: "roam-right-up"
|
|
12
|
-
}, ie = ["src"], de = { class: "roam-right-center" }, le = {
|
|
13
|
-
id: "roamMoveLeft",
|
|
14
|
-
class: "center-left"
|
|
15
|
-
}, me = ["src"], ue = { class: "center-center" }, ce = ["src"], ve = {
|
|
16
|
-
id: "roamMoveRight",
|
|
17
|
-
class: "center-right"
|
|
18
|
-
}, fe = ["src"], we = {
|
|
19
|
-
id: "roamMoveDown",
|
|
20
|
-
class: "roam-right-down"
|
|
21
|
-
}, _e = ["src"], ge = /* @__PURE__ */ k({
|
|
22
|
-
__name: "RoamTool",
|
|
23
|
-
props: ["componentId"],
|
|
24
|
-
emits: ["closePanel", "emitHandler"],
|
|
25
|
-
setup(L, { emit: y }) {
|
|
26
|
-
const _ = Y(), w = u("1"), g = u(!1), c = u(!0), h = L, D = y, r = u(!1), p = (e) => {
|
|
27
|
-
D("emitHandler", e);
|
|
28
|
-
}, n = u(v("isMobile"));
|
|
29
|
-
F(() => {
|
|
30
|
-
(v("isMobile") || B.showRoam === !1) && (c.value = !1), setTimeout(() => {
|
|
31
|
-
R(), S(), T(), U(), V(), C();
|
|
32
|
-
}, 1e3), _.setReadyById(h.componentId);
|
|
33
|
-
});
|
|
34
|
-
const b = () => {
|
|
35
|
-
let e = window.bimViewer.eventTrigger;
|
|
36
|
-
e.on("personModeSpeedUp", (t) => {
|
|
37
|
-
w.value = t.toString();
|
|
38
|
-
}), e.on("personModeSpeedDown", (t) => {
|
|
39
|
-
w.value = t.toString();
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
f.on("BimViewer", b), N(() => {
|
|
43
|
-
f.off("BimViewer", b);
|
|
44
|
-
});
|
|
45
|
-
const M = (e) => {
|
|
46
|
-
e ? window.bimViewer.firstPersonMode.speedUp() : window.bimViewer.firstPersonMode.speedDown();
|
|
47
|
-
};
|
|
48
|
-
I.INDUSTRY_CONFIGS.RoamTool || (f.on("INDUSTRY_CONFIGS", () => {
|
|
49
|
-
B.showRoam == !1 && (c.value = !1);
|
|
50
|
-
}), I.INDUSTRY_CONFIGS.RoamTool = !0), P(
|
|
51
|
-
() => _.isToolActive(h.componentId),
|
|
52
|
-
(e) => {
|
|
53
|
-
E(!!e);
|
|
54
|
-
}
|
|
55
|
-
);
|
|
56
|
-
const E = (e) => {
|
|
57
|
-
v("isMobile") ? r.value = e : (v("hideTool") || f.emit("hideToolbar", e), e ? c.value && (g.value = !0) : g.value = !1);
|
|
58
|
-
}, R = () => {
|
|
59
|
-
var e, t, s;
|
|
60
|
-
(e = document.getElementById("roamMoveUp")) == null || e.addEventListener(n.value ? "touchstart" : "mousedown", (i) => {
|
|
61
|
-
r.value && (n.value && i.preventDefault(), window.bimViewer.firstPersonMode.goUp = !0, m("goUp"));
|
|
62
|
-
}), (t = document.getElementById("roamMoveUp")) == null || t.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
63
|
-
r.value && a();
|
|
64
|
-
}), (s = document.getElementById("roamMoveUp")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
65
|
-
r.value && a();
|
|
66
|
-
});
|
|
67
|
-
}, S = () => {
|
|
68
|
-
var e, t, s;
|
|
69
|
-
(e = document.getElementById("roamMoveDown")) == null || e.addEventListener(n.value ? "touchstart" : "mousedown", (i) => {
|
|
70
|
-
r.value && (n.value && i.preventDefault(), window.bimViewer.firstPersonMode.goDown = !0, m("goDown"));
|
|
71
|
-
}), (t = document.getElementById("roamMoveDown")) == null || t.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
72
|
-
r.value && a();
|
|
73
|
-
}), (s = document.getElementById("roamMoveDown")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
74
|
-
r.value && a();
|
|
75
|
-
});
|
|
76
|
-
}, T = () => {
|
|
77
|
-
var e, t, s;
|
|
78
|
-
(e = document.getElementById("roamMoveLeft")) == null || e.addEventListener(n.value ? "touchstart" : "mousedown", (i) => {
|
|
79
|
-
r.value && (n.value && i.preventDefault(), window.bimViewer.firstPersonMode.goLeft = !0, m("goLeft"));
|
|
80
|
-
}), (t = document.getElementById("roamMoveLeft")) == null || t.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
81
|
-
r.value && a();
|
|
82
|
-
}), (s = document.getElementById("roamMoveLeft")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
83
|
-
r.value && a();
|
|
84
|
-
});
|
|
85
|
-
}, U = () => {
|
|
86
|
-
var e, t, s;
|
|
87
|
-
(e = document.getElementById("roamMoveRight")) == null || e.addEventListener(n.value ? "touchstart" : "mousedown", (i) => {
|
|
88
|
-
r.value && (n.value && i.preventDefault(), window.bimViewer.firstPersonMode.goRight = !0, m("goDown"));
|
|
89
|
-
}), (t = document.getElementById("roamMoveRight")) == null || t.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
90
|
-
r.value && a();
|
|
91
|
-
}), (s = document.getElementById("roamMoveRight")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
92
|
-
r.value && a();
|
|
93
|
-
});
|
|
94
|
-
}, V = () => {
|
|
95
|
-
var e, t, s;
|
|
96
|
-
(e = document.getElementById("roamMoveForward")) == null || e.addEventListener(n.value ? "touchstart" : "mousedown", (i) => {
|
|
97
|
-
r.value && (n.value && i.preventDefault(), window.bimViewer.firstPersonMode.goForward = !0, m("goForward"));
|
|
98
|
-
}), (t = document.getElementById("roamMoveForward")) == null || t.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
99
|
-
r.value && a();
|
|
100
|
-
}), (s = document.getElementById("roamMoveForward")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
101
|
-
r.value && a();
|
|
102
|
-
});
|
|
103
|
-
}, C = () => {
|
|
104
|
-
var e, t, s;
|
|
105
|
-
(e = document.getElementById("roamMoveBackward")) == null || e.addEventListener(n.value ? "touchstart" : "mousedown", (i) => {
|
|
106
|
-
r.value && (n.value && i.preventDefault(), window.bimViewer.firstPersonMode.goBackward = !0, m("goBackward"));
|
|
107
|
-
}), (t = document.getElementById("roamMoveBackward")) == null || t.addEventListener(n.value ? "touchend" : "mouseup", () => {
|
|
108
|
-
r.value && a();
|
|
109
|
-
}), (s = document.getElementById("roamMoveBackward")) == null || s.addEventListener(n.value ? "touchcancel" : "mouseup", () => {
|
|
110
|
-
r.value && a();
|
|
111
|
-
});
|
|
112
|
-
}, m = (e) => {
|
|
113
|
-
p({
|
|
114
|
-
isTool: !0,
|
|
115
|
-
event_target: "RoamTool",
|
|
116
|
-
event_name: "",
|
|
117
|
-
content: {
|
|
118
|
-
roam: e
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
}, a = () => {
|
|
122
|
-
window.bimViewer.firstPersonMode.setdirectionChangeCancel(), p({
|
|
123
|
-
isTool: !0,
|
|
124
|
-
event_target: "RoamTool",
|
|
125
|
-
event_name: "",
|
|
126
|
-
content: {
|
|
127
|
-
roam: "stop"
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
};
|
|
131
|
-
return (e, t) => (O(), x("div", H, [
|
|
132
|
-
o("div", $, [
|
|
133
|
-
o("div", z, [
|
|
134
|
-
o("div", J, [
|
|
135
|
-
o("div", K, [
|
|
136
|
-
o("img", {
|
|
137
|
-
src: d(l) + "/bim-viewer/roam-bar/up.svg",
|
|
138
|
-
alt: ""
|
|
139
|
-
}, null, 8, X)
|
|
140
|
-
])
|
|
141
|
-
]),
|
|
142
|
-
o("div", j, [
|
|
143
|
-
o("div", q, [
|
|
144
|
-
o("img", {
|
|
145
|
-
src: d(l) + "/bim-viewer/roam-bar/down.svg",
|
|
146
|
-
alt: ""
|
|
147
|
-
}, null, 8, Q)
|
|
148
|
-
])
|
|
149
|
-
])
|
|
150
|
-
]),
|
|
151
|
-
o("div", W, [
|
|
152
|
-
o("div", Z, [
|
|
153
|
-
o("div", ee, [
|
|
154
|
-
o("img", {
|
|
155
|
-
src: d(l) + "/bim-viewer/roam-bar/plus.svg",
|
|
156
|
-
onClick: t[0] || (t[0] = (s) => M(!0)),
|
|
157
|
-
alt: ""
|
|
158
|
-
}, null, 8, oe)
|
|
159
|
-
]),
|
|
160
|
-
o("div", te, [
|
|
161
|
-
o("span", null, G(w.value) + "X", 1)
|
|
162
|
-
]),
|
|
163
|
-
o("div", ne, [
|
|
164
|
-
o("img", {
|
|
165
|
-
src: d(l) + "/bim-viewer/roam-bar/minus.svg",
|
|
166
|
-
onClick: t[1] || (t[1] = (s) => M(!1)),
|
|
167
|
-
alt: ""
|
|
168
|
-
}, null, 8, re)
|
|
169
|
-
])
|
|
170
|
-
])
|
|
171
|
-
]),
|
|
172
|
-
o("div", se, [
|
|
173
|
-
o("div", ae, [
|
|
174
|
-
o("img", {
|
|
175
|
-
src: d(l) + "/bim-viewer/roam-bar/top.svg",
|
|
176
|
-
alt: ""
|
|
177
|
-
}, null, 8, ie)
|
|
178
|
-
]),
|
|
179
|
-
o("div", de, [
|
|
180
|
-
o("div", le, [
|
|
181
|
-
o("img", {
|
|
182
|
-
src: d(l) + "/bim-viewer/roam-bar/left.svg",
|
|
183
|
-
alt: ""
|
|
184
|
-
}, null, 8, me)
|
|
185
|
-
]),
|
|
186
|
-
o("div", ue, [
|
|
187
|
-
o("img", {
|
|
188
|
-
src: d(l) + "/bim-viewer/roam-bar/center.svg",
|
|
189
|
-
alt: ""
|
|
190
|
-
}, null, 8, ce)
|
|
191
|
-
]),
|
|
192
|
-
o("div", ve, [
|
|
193
|
-
o("img", {
|
|
194
|
-
src: d(l) + "/bim-viewer/roam-bar/right.svg",
|
|
195
|
-
alt: ""
|
|
196
|
-
}, null, 8, fe)
|
|
197
|
-
])
|
|
198
|
-
]),
|
|
199
|
-
o("div", we, [
|
|
200
|
-
o("img", {
|
|
201
|
-
src: d(l) + "/bim-viewer/roam-bar/bottom.svg",
|
|
202
|
-
alt: ""
|
|
203
|
-
}, null, 8, _e)
|
|
204
|
-
])
|
|
205
|
-
])
|
|
206
|
-
])
|
|
207
|
-
]));
|
|
208
|
-
}
|
|
209
|
-
}), be = /* @__PURE__ */ A(ge, [["__scopeId", "data-v-50625d73"]]);
|
|
210
|
-
export {
|
|
211
|
-
be as default
|
|
212
|
-
};
|