@xtctwins/tctwins-bimx-engine 0.3.16 → 0.3.17
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/{AnnotationTool-nASKNjgr.mjs → AnnotationTool-CRKJP6Z_.mjs} +35 -35
- package/dist/BIMX_Viewer_Lib.es.js +6 -6
- package/dist/BIMX_Viewer_Lib.umd.js +216 -166
- package/dist/{CameraViewTool-DhAfiKWu.mjs → CameraViewTool-CcuETkRt.mjs} +38 -38
- package/dist/{CommentTool-a-BELMsU.mjs → CommentTool-CUfkCRZj.mjs} +192 -192
- package/dist/{HiddenTool-CqWfECbU.mjs → HiddenTool-BXH5QJP-.mjs} +13 -13
- package/dist/{InspectorTool-x0VVNWza.mjs → InspectorTool-DfNptjyX.mjs} +13 -13
- package/dist/{MeasureTool-DznYUEiR.mjs → MeasureTool-CXJj1Fhb.mjs} +121 -121
- package/dist/{MouseTool-D8x8R2Hl.mjs → MouseTool-B7uZ7aDB.mjs} +8 -8
- package/dist/{NavigateTool-D16vm_Ng.mjs → NavigateTool-iCDupABO.mjs} +8 -8
- package/dist/{OperateTool-_E-8qp5I.mjs → OperateTool-CDFqwPpz.mjs} +61 -58
- package/dist/{RoamTool-ClbGAw0m.mjs → RoamTool-DbejO6To.mjs} +15 -15
- package/dist/ScreenShotTool-CwKNoZDh.mjs +429 -0
- package/dist/{SectionTool-BduU5qr3.mjs → SectionTool-B_YUSKAb.mjs} +70 -70
- package/dist/SettingTool-ByLSLYye.mjs +1787 -0
- package/dist/StructureTree-JKDte9U1.mjs +1685 -0
- package/dist/{alert-GVU1wFz1.mjs → alert-C1hZjT4K.mjs} +16 -16
- package/dist/{index-CdBeaeTl.mjs → index-Amk7_oxr.mjs} +55168 -51730
- package/dist/index.html +17 -17
- package/dist/{panel.vue_vue_type_style_index_0_lang-BsP4zr2g.mjs → panel.vue_vue_type_style_index_0_lang-BWMqOWVZ.mjs} +1 -1
- package/dist/style.css +3 -3
- package/dist/{tallPanel-B5pNGD_G.mjs → tallPanel-B_CsTLWm.mjs} +13 -13
- package/package.json +85 -85
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +38 -10
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +37 -9
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +5 -7
- package/types/components/BCFComponents/BCFTool.vue.d.ts +4 -7
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +5 -7
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +5 -6
- package/types/components/BCFComponents/commentInput.vue.d.ts +36 -10
- package/types/components/BCFComponents/commentsView.vue.d.ts +36 -7
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +5 -8
- package/types/components/BCFComponents/imageView.vue.d.ts +5 -7
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +5 -6
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +18 -1
- 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 +32 -1
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/add.vue.d.ts +6 -8
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +4 -5
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +270 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +291 -7
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +5 -6
- 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 +4 -6
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +11642 -1
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimxViewerComp.vue.d.ts +7 -21
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +37 -10
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +37 -9
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +291 -7
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +270 -1
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +5 -8
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +38 -12
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +7 -9
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +5 -7
- 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 +8 -2
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +3 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +13 -3
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +13 -3
- package/types/pages/BimxViewerEntry.vue.d.ts +4 -64
- package/types/store/toolbars.d.ts +50 -50
- package/types/viewerManager/sectionManager.d.ts +25 -25
- package/dist/01.xtc +0 -0
- package/dist/02.xtc +0 -0
- package/dist/03.xtc +0 -0
- package/dist/ScreenShotTool-BLHWBbYl.mjs +0 -356
- package/dist/SettingTool-Dd-fS2IZ.mjs +0 -1508
- package/dist/StructureTree-Byfx-R9w.mjs +0 -1582
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +0 -22
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +0 -8
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +0 -10
- package/types/components/bimxViewer.vue.d.ts +0 -27
- package/types/pages/viewerEntry.vue.d.ts +0 -116
- package/types/tests/cmt.d.ts +0 -1
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { _ as pt } from "./alert-
|
|
2
|
-
import {
|
|
3
|
-
import { _ as Tt } from "./panel.vue_vue_type_style_index_0_lang-
|
|
4
|
-
import { defineComponent as xt, ref as u, onMounted as
|
|
5
|
-
const
|
|
1
|
+
import { _ as pt } from "./alert-C1hZjT4K.mjs";
|
|
2
|
+
import { F as bt, G as ft, T as Ye, Y as W, I as Fe, H as h, W as yt, P as E, J as ht, Z as gt, $ as Mt, L as kt, a0 as j, M as wt } from "./index-Amk7_oxr.mjs";
|
|
3
|
+
import { _ as Tt } from "./panel.vue_vue_type_style_index_0_lang-BWMqOWVZ.mjs";
|
|
4
|
+
import { defineComponent as xt, ref as u, onMounted as Xe, computed as pe, onBeforeUnmount as Dt, watch as At, nextTick as St, openBlock as r, createElementBlock as d, Fragment as x, unref as a, createBlock as Ne, withCtx as O, createElementVNode as l, renderList as C, normalizeClass as q, toDisplayString as m, normalizeStyle as be, createCommentVNode as se, createVNode as p, withDirectives as We, vShow as je } from "vue";
|
|
5
|
+
const Pt = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "measure_panel_content"
|
|
8
|
-
},
|
|
8
|
+
}, Vt = { class: "measurement_type" }, Bt = ["onClick"], Et = ["src"], Ct = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "measurement_img_empty"
|
|
11
|
-
},
|
|
11
|
+
}, Lt = { class: "measurement_data" }, It = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "datum_bar"
|
|
14
14
|
}, Rt = { class: "footer" }, $t = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "setMeasurePanel"
|
|
17
|
-
},
|
|
17
|
+
}, Ht = { class: "set_content_par" }, Ot = { class: "set_content_" }, Ut = {
|
|
18
18
|
class: "set_content scale",
|
|
19
19
|
style: { display: "none" }
|
|
20
|
-
}, zt = { class: "set_content unit" },
|
|
20
|
+
}, zt = { class: "set_content unit" }, Yt = { class: "set_content precision" }, Ft = { class: "footer" }, Xt = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "mobile_measure_panel"
|
|
23
|
-
}, Nt = { class: "mobile_panel_bar" },
|
|
23
|
+
}, Nt = { class: "mobile_panel_bar" }, Wt = ["src"], jt = { class: "mouse_btn" }, qt = ["src"], Jt = { class: "measure-list" }, Zt = ["onClick"], Kt = { class: "measure-icon" }, Qt = ["src"], Gt = { class: "measure-name" }, el = { class: "measure-icon" }, tl = ["src"], ll = {
|
|
24
24
|
class: "measure-name",
|
|
25
25
|
style: { color: "#df1c1c" }
|
|
26
26
|
}, sl = {
|
|
@@ -33,13 +33,13 @@ const Vt = {
|
|
|
33
33
|
__name: "MeasureTool",
|
|
34
34
|
props: ["componentId"],
|
|
35
35
|
emits: ["closePanel", "emitHandler"],
|
|
36
|
-
setup(
|
|
37
|
-
const n = bt(),
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
setup(Ze, { emit: Ke }) {
|
|
37
|
+
const n = bt(), L = ft(), Qe = Ze, ae = u(0);
|
|
38
|
+
Xe(() => {
|
|
39
|
+
L.setReadyById(Qe.componentId), Ye.currentTheme == "blue" ? ae.value = 224 : Ye.currentTheme == "light-gray" && (ae.value = 202);
|
|
40
40
|
});
|
|
41
41
|
let o, U, z, _;
|
|
42
|
-
const b = u(1), D = u(""), fe = u(), oe = u(), ye = u(), ne = u(), he = u(), ie = u(), ue = u(), ce = u(), re = u(""), de = u(""), J = u(1),
|
|
42
|
+
const b = u(1), D = u(""), fe = u(), oe = u(), ye = u(), ne = u(), he = u(), ie = u(), ue = u(), ce = u(), re = u(""), de = u(""), J = u(1), I = u("m"), A = u(3), M = u(!1), ge = [{ value: "m" }, { value: "cm" }, { value: "mm" }], f = u(!1), Me = [
|
|
43
43
|
{ label: "0", value: 0 },
|
|
44
44
|
{ label: "0.0", value: 1 },
|
|
45
45
|
{ label: "0.00", value: 2 },
|
|
@@ -77,10 +77,10 @@ const Vt = {
|
|
|
77
77
|
]
|
|
78
78
|
}, k = pe(() => {
|
|
79
79
|
var e;
|
|
80
|
-
return ((e =
|
|
80
|
+
return ((e = W.find((t) => t.id === b.value)) == null ? void 0 : e.code) || "pointDistance";
|
|
81
81
|
}), R = u(!0), g = u("");
|
|
82
82
|
let $ = null;
|
|
83
|
-
const
|
|
83
|
+
const Z = (e) => {
|
|
84
84
|
g.value = e || "", R.value = !0, $ && clearTimeout($), $ = setTimeout(() => {
|
|
85
85
|
$ = null, g.value = "";
|
|
86
86
|
}, 4e3);
|
|
@@ -95,21 +95,21 @@ const Vt = {
|
|
|
95
95
|
const i = o && o.getModeColor ? o.getModeColor(k.value) : "", c = e.key === "text" && i ? i : e.color;
|
|
96
96
|
return { label: e.label, key: `${e.key}_${e.label}`, color: c, value: t };
|
|
97
97
|
})
|
|
98
|
-
), ke =
|
|
98
|
+
), ke = Ke, we = (e) => {
|
|
99
99
|
ke("emitHandler", e);
|
|
100
100
|
}, Te = () => {
|
|
101
101
|
o = window.bimViewer.measureProTool, z = window.bimViewer.measureAngleTool, U = window.bimViewer.measureDistanceTool, _ = window.bimViewer.eventTrigger;
|
|
102
|
-
const e =
|
|
103
|
-
e && (b.value = e.id),
|
|
104
|
-
g.value = "",
|
|
102
|
+
const e = W.find((t) => t.code === j.NormalizeMeasureMode(j.viewerState.measureType));
|
|
103
|
+
e && (b.value = e.id), j.SaveViewerState({ measure: k.value }), _.on("newDistanceMeasure", () => {
|
|
104
|
+
g.value = "", V(), h("isMobile") && (f.value = !1);
|
|
105
105
|
}), _.on("newAngleMeasure", () => {
|
|
106
|
-
g.value = "",
|
|
106
|
+
g.value = "", V(), h("isMobile") && (f.value = !1);
|
|
107
107
|
}), _.on("proMeasureRejected", (t) => {
|
|
108
|
-
|
|
108
|
+
Z(t && t.reasonText ? t.reasonText : "");
|
|
109
109
|
}), _.on("proMeasureDatumPicked", () => {
|
|
110
110
|
w.value = !1;
|
|
111
111
|
const t = D.value;
|
|
112
|
-
t && B(t),
|
|
112
|
+
t && B(t), Z(n("measure.setDatumDone"));
|
|
113
113
|
}), _.on("proMeasureDatumPickCancel", () => {
|
|
114
114
|
w.value = !1;
|
|
115
115
|
}), _.on("createAngleMeasure", (t) => {
|
|
@@ -117,15 +117,15 @@ const Vt = {
|
|
|
117
117
|
}), _.on("createDistanceMeasure", (t) => {
|
|
118
118
|
fe.value = t.id, ye.value = t.id, oe.value = t.result, ie.value = t.xResult ? t.xResult : 0, ue.value = t.yResult ? t.yResult : 0, ce.value = t.zResult ? t.zResult : 0, B(t.id), h("isMobile") && (f.value = !0), S("createAngleMeasure", { newMeasure: t });
|
|
119
119
|
}), _.on("clickDistanceMeasure", (t) => {
|
|
120
|
-
fe.value = t.id, ye.value = t.id,
|
|
120
|
+
fe.value = t.id, ye.value = t.id, Pe(t.id), o.getModeByMeasurementId(t.id) || (oe.value = U.getMeasureResultByID(t.id)), B(t.id), h("isMobile") && (f.value = !0), S("clickDistanceMeasure", { id: t.id });
|
|
121
121
|
}), _.on("clickAngleMeasure", (t) => {
|
|
122
|
-
he.value = t.id,
|
|
123
|
-
}), _.on("DistanceMeasureDestroyed", (t) =>
|
|
122
|
+
he.value = t.id, Pe(t.id), o.getModeByMeasurementId(t.id) || (ne.value = z.getMeasureResultByID(t.id)), B(t.id), h("isMobile") && (f.value = !0), S("clickAngleMeasure", { id: t.id });
|
|
123
|
+
}), _.on("DistanceMeasureDestroyed", (t) => Ve(t.id)), _.on("AngleMeasureDestroyed", (t) => Ve(t.id)), Be(), Ee() && L.isToolActive(3) && ve(!0);
|
|
124
124
|
};
|
|
125
|
-
|
|
126
|
-
$ && clearTimeout($), me(),
|
|
125
|
+
Fe.on("BimViewer", Te), Dt(() => {
|
|
126
|
+
$ && clearTimeout($), me(), Fe.off("BimViewer", Te);
|
|
127
127
|
}), At(
|
|
128
|
-
() =>
|
|
128
|
+
() => L.isToolActive(3),
|
|
129
129
|
(e) => {
|
|
130
130
|
ut(e), e && (R.value = !0), Ee() && ve(!!e);
|
|
131
131
|
}
|
|
@@ -138,13 +138,13 @@ const Vt = {
|
|
|
138
138
|
content: t
|
|
139
139
|
});
|
|
140
140
|
}, st = () => {
|
|
141
|
-
|
|
141
|
+
K(), window.bimViewer.SetMeasureProAllDisactive(), ke("closePanel"), M.value === !0 && P();
|
|
142
142
|
}, xe = (e) => {
|
|
143
143
|
if (b.value === e.id)
|
|
144
144
|
return;
|
|
145
|
-
b.value = e.id,
|
|
145
|
+
b.value = e.id, j.SaveViewerState({ measure: e.code }), g.value = "", K(), nt(), De(e), R.value = !0;
|
|
146
146
|
const t = o && o.getMeasurementsSummaryByMode ? o.getMeasurementsSummaryByMode(e.code) : [];
|
|
147
|
-
t.length ? B(t[t.length - 1].id) :
|
|
147
|
+
t.length ? B(t[t.length - 1].id) : V(), h("isMobile") && (f.value = !1);
|
|
148
148
|
}, De = (e) => {
|
|
149
149
|
const t = e.code;
|
|
150
150
|
window.bimViewer.SetMeasureProActive(e.code, !0), we({
|
|
@@ -157,59 +157,59 @@ const Vt = {
|
|
|
157
157
|
});
|
|
158
158
|
}, Ae = () => {
|
|
159
159
|
if (w.value) {
|
|
160
|
-
|
|
160
|
+
K();
|
|
161
161
|
return;
|
|
162
162
|
}
|
|
163
163
|
if (!o || !o.beginMeasureDatumPick) {
|
|
164
|
-
|
|
164
|
+
Z(n("measure.setDatumHint"));
|
|
165
165
|
return;
|
|
166
166
|
}
|
|
167
167
|
if (window.bimViewer.SetMeasureProActive("elevation", !0), g.value = "", !o.beginMeasureDatumPick()) {
|
|
168
|
-
|
|
168
|
+
Z(n("measure.setDatumHint"));
|
|
169
169
|
return;
|
|
170
170
|
}
|
|
171
171
|
w.value = !0, R.value = !0, M.value = !1;
|
|
172
|
-
},
|
|
172
|
+
}, K = () => {
|
|
173
173
|
w.value = !1, o && o.cancelMeasureDatumPick && o.cancelMeasureDatumPick();
|
|
174
174
|
}, at = () => {
|
|
175
|
-
|
|
175
|
+
V(), o && o.clearAll(), U.clear(), z.clear(), S("destroyAllMeasure", { msg: "删除全部测量" }), f.value = !1;
|
|
176
176
|
}, ot = () => {
|
|
177
177
|
const e = D.value;
|
|
178
178
|
if (!e) return;
|
|
179
179
|
const t = k.value === "pointAngle" || k.value === "edgeAngle";
|
|
180
|
-
it(e), S(t ? "destroyMeasurementAngle" : "destroyMeasureDistance", { id: e }),
|
|
181
|
-
},
|
|
180
|
+
it(e), S(t ? "destroyMeasurementAngle" : "destroyMeasureDistance", { id: e }), V(), f.value = !1;
|
|
181
|
+
}, P = () => {
|
|
182
182
|
M.value = !M.value;
|
|
183
183
|
}, Se = () => {
|
|
184
|
-
|
|
184
|
+
P(), Be(), D.value && B(D.value), S("updateMeasureSet", {
|
|
185
185
|
measurePrefer: {
|
|
186
186
|
distance_precision: A.value,
|
|
187
|
-
distance_unit:
|
|
187
|
+
distance_unit: I.value,
|
|
188
188
|
distance_scale: J.value
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
|
-
},
|
|
191
|
+
}, V = () => {
|
|
192
192
|
re.value = "", de.value = "", oe.value = "", ne.value = "", ie.value = "", ue.value = "", ce.value = "", D.value = "";
|
|
193
193
|
}, B = (e) => {
|
|
194
194
|
if (!e || !o || !o.getMeasurementSummary) return;
|
|
195
195
|
D.value = e;
|
|
196
196
|
const t = o.getModeByMeasurementId(e);
|
|
197
197
|
if (t) {
|
|
198
|
-
const c =
|
|
198
|
+
const c = W.find((v) => v.code === t);
|
|
199
199
|
if (!c) {
|
|
200
|
-
|
|
200
|
+
V();
|
|
201
201
|
return;
|
|
202
202
|
}
|
|
203
|
-
c.id !== b.value && (b.value = c.id,
|
|
203
|
+
c.id !== b.value && (b.value = c.id, j.SaveViewerState({ measure: c.code })), o.getActiveByMode(t) || De(c);
|
|
204
204
|
}
|
|
205
205
|
const i = o.getMeasurementSummary(e);
|
|
206
206
|
i && (re.value = i.text || (i.value ? i.value.toFixed(A.value) : ""), de.value = i.description || i.relationLabel || "");
|
|
207
|
-
},
|
|
207
|
+
}, Pe = (e) => {
|
|
208
208
|
!e || !o || !o.selectMeasurementById || o.selectMeasurementById(e);
|
|
209
209
|
}, nt = () => {
|
|
210
210
|
!o || !o.clearSelectedMeasurement || o.clearSelectedMeasurement();
|
|
211
|
-
},
|
|
212
|
-
!e || e !== D.value ||
|
|
211
|
+
}, Ve = (e) => {
|
|
212
|
+
!e || e !== D.value || V();
|
|
213
213
|
}, it = (e) => {
|
|
214
214
|
if (e) {
|
|
215
215
|
if (o && o.getModeByMeasurementId(e)) {
|
|
@@ -219,29 +219,29 @@ const Vt = {
|
|
|
219
219
|
U.destroyMeasurementById(e), z.destroyMeasurementById(e);
|
|
220
220
|
}
|
|
221
221
|
}, Be = () => {
|
|
222
|
-
o && (o.unit =
|
|
222
|
+
o && (o.unit = I.value, o.scale = J.value, o.precision = A.value);
|
|
223
223
|
}, ut = (e) => {
|
|
224
224
|
o && o.setAllVisible(e), U.setAllVisible(e), z.setAllVisible(e);
|
|
225
225
|
};
|
|
226
|
-
|
|
226
|
+
Xe(() => {
|
|
227
227
|
document.getElementById("top_bar");
|
|
228
228
|
});
|
|
229
|
-
const
|
|
230
|
-
let
|
|
231
|
-
const ee = u(290), te = u(300), Ee = () => !!h("isMobile"),
|
|
229
|
+
const H = u(!1);
|
|
230
|
+
let Y = !1, Q = 0, G = 0;
|
|
231
|
+
const ee = u(290), te = u(300), Ee = () => !!h("isMobile"), F = () => document.getElementById("measure_mouseGroup"), Ce = () => {
|
|
232
232
|
var e, t, i, c;
|
|
233
233
|
return ((c = (i = (t = (e = window.bimViewer) == null ? void 0 : e.viewer) == null ? void 0 : t.scene) == null ? void 0 : i.canvas) == null ? void 0 : c.canvas) || null;
|
|
234
|
-
},
|
|
235
|
-
const e =
|
|
234
|
+
}, Le = () => {
|
|
235
|
+
const e = F();
|
|
236
236
|
if (!e)
|
|
237
237
|
return [ee.value + qe, te.value + Je];
|
|
238
238
|
const t = e.getBoundingClientRect();
|
|
239
239
|
return [t.left + qe, t.top + Je];
|
|
240
|
-
},
|
|
240
|
+
}, X = (e, t) => {
|
|
241
241
|
const i = Ce();
|
|
242
242
|
if (!i)
|
|
243
243
|
return;
|
|
244
|
-
const [c, v] =
|
|
244
|
+
const [c, v] = Le(), y = {
|
|
245
245
|
bubbles: !0,
|
|
246
246
|
cancelable: !0,
|
|
247
247
|
composed: !0,
|
|
@@ -262,10 +262,10 @@ const Vt = {
|
|
|
262
262
|
T = new MouseEvent(e, y);
|
|
263
263
|
}
|
|
264
264
|
i.dispatchEvent(T);
|
|
265
|
-
},
|
|
266
|
-
|
|
265
|
+
}, Ie = () => {
|
|
266
|
+
X("pointermove", 0);
|
|
267
267
|
}, ct = () => {
|
|
268
|
-
const e =
|
|
268
|
+
const e = F(), [t, i] = Le(), c = e ? e.style.visibility : "";
|
|
269
269
|
e && (e.style.visibility = "hidden");
|
|
270
270
|
const v = document.elementFromPoint ? document.elementFromPoint(t, i) : null;
|
|
271
271
|
return e && (e.style.visibility = c), v;
|
|
@@ -278,93 +278,93 @@ const Vt = {
|
|
|
278
278
|
const i = Ce();
|
|
279
279
|
if (e && e !== i && !(i && i.contains(e)))
|
|
280
280
|
return;
|
|
281
|
-
|
|
281
|
+
X("pointermove", 0);
|
|
282
282
|
const c = () => {
|
|
283
|
-
|
|
283
|
+
X("pointerdown", 1), X("pointerup", 0);
|
|
284
284
|
};
|
|
285
285
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(c) : c();
|
|
286
286
|
}, rt = () => {
|
|
287
|
-
|
|
287
|
+
X("contextmenu", 0), g.value = "";
|
|
288
288
|
}, dt = () => {
|
|
289
|
-
const e = !
|
|
290
|
-
e || (
|
|
289
|
+
const e = !H.value;
|
|
290
|
+
e || (K(), rt()), ve(e);
|
|
291
291
|
}, mt = () => {
|
|
292
|
-
const e =
|
|
292
|
+
const e = F();
|
|
293
293
|
if (!e)
|
|
294
294
|
return;
|
|
295
295
|
const i = (e.offsetParent || document.body).getBoundingClientRect(), c = e.getBoundingClientRect(), v = i.width || window.innerWidth, y = i.height || window.innerHeight, T = c.width || 40, N = c.height || 84, _e = v * 0.62 - T / 2, le = y * 0.5 - N / 2;
|
|
296
296
|
ee.value = Math.max(0, Math.min(_e, v - T)), te.value = Math.max(0, Math.min(le, y - N));
|
|
297
297
|
}, $e = (e) => {
|
|
298
|
-
e.touches.length == 1 && (
|
|
299
|
-
},
|
|
300
|
-
if (!
|
|
298
|
+
e.touches.length == 1 && (Y = !0, Q = e.touches[0].clientX, G = e.touches[0].clientY);
|
|
299
|
+
}, He = (e) => {
|
|
300
|
+
if (!Y || e.touches.length != 1)
|
|
301
301
|
return;
|
|
302
302
|
const t = e.touches[0].clientX, i = e.touches[0].clientY;
|
|
303
|
-
ee.value += t -
|
|
304
|
-
},
|
|
305
|
-
|
|
303
|
+
ee.value += t - Q, te.value += i - G, Q = t, G = i, Ie();
|
|
304
|
+
}, Oe = () => {
|
|
305
|
+
Y = !1;
|
|
306
306
|
}, vt = () => {
|
|
307
|
-
const e =
|
|
308
|
-
e && (me(), e.addEventListener("touchstart", $e), e.addEventListener("touchmove",
|
|
307
|
+
const e = F();
|
|
308
|
+
e && (me(), e.addEventListener("touchstart", $e), e.addEventListener("touchmove", He), e.addEventListener("touchend", Oe), e.addEventListener("click", Re), Y = !1, Q = 0, G = 0);
|
|
309
309
|
}, me = () => {
|
|
310
|
-
const e =
|
|
311
|
-
e == null || e.removeEventListener("touchstart", $e), e == null || e.removeEventListener("touchmove",
|
|
310
|
+
const e = F();
|
|
311
|
+
e == null || e.removeEventListener("touchstart", $e), e == null || e.removeEventListener("touchmove", He), e == null || e.removeEventListener("touchend", Oe), e == null || e.removeEventListener("click", Re);
|
|
312
312
|
}, ve = (e) => {
|
|
313
|
-
if (
|
|
314
|
-
if (
|
|
315
|
-
me(),
|
|
313
|
+
if (H.value !== e) {
|
|
314
|
+
if (H.value = e, !e) {
|
|
315
|
+
me(), Y = !1, g.value = "";
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
St(() => {
|
|
319
|
-
mt(), vt(),
|
|
319
|
+
mt(), vt(), Ie();
|
|
320
320
|
});
|
|
321
321
|
}
|
|
322
322
|
};
|
|
323
323
|
return (e, t) => {
|
|
324
324
|
var le, Ue, ze;
|
|
325
|
-
const i = yt, c = ht, v =
|
|
325
|
+
const i = yt, c = ht, v = Mt, y = gt, T = Tt, N = kt, _e = pt;
|
|
326
326
|
return r(), d(x, null, [
|
|
327
|
-
a(h)("isMobile") ? (r(), d("div",
|
|
327
|
+
a(h)("isMobile") ? (r(), d("div", Xt, [
|
|
328
328
|
l("div", Nt, [
|
|
329
329
|
l("div", {
|
|
330
330
|
class: q(["mobile_set_btn", { mobile_set_btn_active: M.value }]),
|
|
331
|
-
onClick:
|
|
331
|
+
onClick: P
|
|
332
332
|
}, [
|
|
333
333
|
l("img", {
|
|
334
|
-
src: `${a(E)}/industry-viewer/action-bar/${(le = a(
|
|
334
|
+
src: `${a(E)}/industry-viewer/action-bar/${(le = a(L).getToolById(11)) == null ? void 0 : le.img}.svg`,
|
|
335
335
|
alt: ""
|
|
336
|
-
}, null, 8,
|
|
336
|
+
}, null, 8, Wt)
|
|
337
337
|
], 2),
|
|
338
|
-
l("div",
|
|
338
|
+
l("div", jt, [
|
|
339
339
|
l("div", {
|
|
340
340
|
class: "mouse",
|
|
341
341
|
onClick: dt
|
|
342
342
|
}, [
|
|
343
343
|
l("img", {
|
|
344
|
-
src: `${a(E)}/industry-viewer/action-bar/${
|
|
344
|
+
src: `${a(E)}/industry-viewer/action-bar/${H.value ? (Ue = a(L).getToolById(16)) == null ? void 0 : Ue.imgActive : (ze = a(L).getToolById(16)) == null ? void 0 : ze.img}.svg`
|
|
345
345
|
}, null, 8, qt),
|
|
346
346
|
l("span", {
|
|
347
|
-
style: be({ color:
|
|
347
|
+
style: be({ color: H.value ? "#1457F7" : "#262626" })
|
|
348
348
|
}, m(a(n)("toolbar.virtualMouse")), 5)
|
|
349
349
|
])
|
|
350
350
|
])
|
|
351
351
|
]),
|
|
352
352
|
l("div", Jt, [
|
|
353
|
-
(r(!0), d(x, null, C(a(
|
|
353
|
+
(r(!0), d(x, null, C(a(W), (s) => (r(), d("div", {
|
|
354
354
|
key: s.id,
|
|
355
355
|
class: q(["measure-item", {
|
|
356
356
|
"measure-item-active": b.value === s.id
|
|
357
357
|
}]),
|
|
358
358
|
onClick: (_t) => xe(s)
|
|
359
359
|
}, [
|
|
360
|
-
l("div",
|
|
360
|
+
l("div", Kt, [
|
|
361
361
|
l("img", {
|
|
362
362
|
src: a(E) + `/bim-viewer/measure-bar/bimkk-mobile-measure-${b.value === s.id ? s.svgActive : s.svg}.svg`,
|
|
363
363
|
alt: ""
|
|
364
|
-
}, null, 8,
|
|
364
|
+
}, null, 8, Qt),
|
|
365
365
|
l("div", Gt, m(a(n)(s.label || s.name)), 1)
|
|
366
366
|
])
|
|
367
|
-
], 10,
|
|
367
|
+
], 10, Zt))), 128)),
|
|
368
368
|
f.value ? (r(), d("div", {
|
|
369
369
|
key: 0,
|
|
370
370
|
class: "measure-item",
|
|
@@ -386,10 +386,10 @@ const Vt = {
|
|
|
386
386
|
panelTitle: M.value ? a(n)("measure.settings") : a(n)("measure.title"),
|
|
387
387
|
"click-handle": st
|
|
388
388
|
}, {
|
|
389
|
-
default:
|
|
389
|
+
default: O(() => [
|
|
390
390
|
M.value ? (r(), d("div", $t, [
|
|
391
|
-
l("div",
|
|
392
|
-
l("div",
|
|
391
|
+
l("div", Ht, [
|
|
392
|
+
l("div", Ot, [
|
|
393
393
|
l("div", Ut, [
|
|
394
394
|
l("span", null, m(a(n)("measure.scaleLabel")), 1),
|
|
395
395
|
t[5] || (t[5] = l("span", null, "1:", -1)),
|
|
@@ -403,12 +403,12 @@ const Vt = {
|
|
|
403
403
|
l("div", zt, [
|
|
404
404
|
l("span", null, m(a(n)("measure.unitLabel")), 1),
|
|
405
405
|
p(y, {
|
|
406
|
-
modelValue:
|
|
407
|
-
"onUpdate:modelValue": t[1] || (t[1] = (s) =>
|
|
406
|
+
modelValue: I.value,
|
|
407
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => I.value = s),
|
|
408
408
|
placeholder: a(n)("measure.unitPlaceholder"),
|
|
409
409
|
style: { width: "136px", height: "28px" }
|
|
410
410
|
}, {
|
|
411
|
-
default:
|
|
411
|
+
default: O(() => [
|
|
412
412
|
(r(), d(x, null, C(ge, (s) => p(v, {
|
|
413
413
|
key: s.value,
|
|
414
414
|
value: s.value
|
|
@@ -417,7 +417,7 @@ const Vt = {
|
|
|
417
417
|
_: 1
|
|
418
418
|
}, 8, ["modelValue", "placeholder"])
|
|
419
419
|
]),
|
|
420
|
-
l("div",
|
|
420
|
+
l("div", Yt, [
|
|
421
421
|
l("span", null, m(a(n)("measure.precisionLabel")), 1),
|
|
422
422
|
p(y, {
|
|
423
423
|
modelValue: A.value,
|
|
@@ -425,7 +425,7 @@ const Vt = {
|
|
|
425
425
|
placeholder: a(n)("measure.precisionPlaceholder"),
|
|
426
426
|
style: { width: "136px", height: "28px" }
|
|
427
427
|
}, {
|
|
428
|
-
default:
|
|
428
|
+
default: O(() => [
|
|
429
429
|
(r(), d(x, null, C(Me, (s) => p(v, {
|
|
430
430
|
key: s.value,
|
|
431
431
|
label: s.label,
|
|
@@ -437,26 +437,26 @@ const Vt = {
|
|
|
437
437
|
])
|
|
438
438
|
])
|
|
439
439
|
]),
|
|
440
|
-
l("div",
|
|
440
|
+
l("div", Ft, [
|
|
441
441
|
l("div", {
|
|
442
442
|
class: "measure_footer_button measure_footer_button_cancel",
|
|
443
|
-
onClick:
|
|
443
|
+
onClick: P
|
|
444
444
|
}, m(a(n)("common.cancel")), 1),
|
|
445
445
|
l("div", {
|
|
446
446
|
class: "measure_footer_button measure_footer_button_save",
|
|
447
447
|
onClick: Se
|
|
448
448
|
}, m(a(n)("common.save")), 1)
|
|
449
449
|
])
|
|
450
|
-
])) : (r(), d("div",
|
|
451
|
-
l("div",
|
|
452
|
-
(r(!0), d(x, null, C(a(
|
|
450
|
+
])) : (r(), d("div", Pt, [
|
|
451
|
+
l("div", Vt, [
|
|
452
|
+
(r(!0), d(x, null, C(a(W), (s) => (r(), Ne(i, {
|
|
453
453
|
key: s.id,
|
|
454
454
|
content: a(n)(s.label),
|
|
455
455
|
placement: "top",
|
|
456
456
|
effect: "light",
|
|
457
457
|
"hide-after": 50
|
|
458
458
|
}, {
|
|
459
|
-
default:
|
|
459
|
+
default: O(() => [
|
|
460
460
|
l("div", {
|
|
461
461
|
class: q(["measurement_box", { measurement_box_active: b.value === s.id }]),
|
|
462
462
|
onClick: (_t) => xe(s)
|
|
@@ -472,7 +472,7 @@ const Vt = {
|
|
|
472
472
|
_: 2
|
|
473
473
|
}, 1032, ["content"]))), 128))
|
|
474
474
|
]),
|
|
475
|
-
l("div",
|
|
475
|
+
l("div", Lt, [
|
|
476
476
|
(r(!0), d(x, null, C(lt.value, (s) => (r(), d("div", {
|
|
477
477
|
key: s.key,
|
|
478
478
|
class: "data_box"
|
|
@@ -483,7 +483,7 @@ const Vt = {
|
|
|
483
483
|
}, m(s.value), 5)
|
|
484
484
|
]))), 128))
|
|
485
485
|
]),
|
|
486
|
-
k.value === "elevation" ? (r(), d("div",
|
|
486
|
+
k.value === "elevation" ? (r(), d("div", It, [
|
|
487
487
|
l("div", {
|
|
488
488
|
class: q(["datum_button", { datum_button_active: w.value }]),
|
|
489
489
|
onClick: Ae
|
|
@@ -491,7 +491,7 @@ const Vt = {
|
|
|
491
491
|
])) : se("", !0),
|
|
492
492
|
l("div", Rt, [
|
|
493
493
|
l("span", { onClick: at }, m(a(n)("measure.clearAll")), 1),
|
|
494
|
-
l("span", { onClick:
|
|
494
|
+
l("span", { onClick: P }, m(a(n)("setting.title")), 1)
|
|
495
495
|
])
|
|
496
496
|
]))
|
|
497
497
|
]),
|
|
@@ -502,20 +502,20 @@ const Vt = {
|
|
|
502
502
|
p(N, {
|
|
503
503
|
width: 0.34,
|
|
504
504
|
"size-type": "rem",
|
|
505
|
-
"click-handle":
|
|
505
|
+
"click-handle": P
|
|
506
506
|
})
|
|
507
507
|
]),
|
|
508
508
|
l("div", ol, m(a(n)("measure.settings")), 1),
|
|
509
509
|
l("div", nl, [
|
|
510
510
|
l("span", null, m(a(n)("measure.unitLabel")), 1),
|
|
511
511
|
p(y, {
|
|
512
|
-
modelValue:
|
|
513
|
-
"onUpdate:modelValue": t[3] || (t[3] = (s) =>
|
|
512
|
+
modelValue: I.value,
|
|
513
|
+
"onUpdate:modelValue": t[3] || (t[3] = (s) => I.value = s),
|
|
514
514
|
teleported: !1,
|
|
515
515
|
placeholder: a(n)("measure.unitPlaceholder"),
|
|
516
516
|
style: { width: "136px", height: "28px" }
|
|
517
517
|
}, {
|
|
518
|
-
default:
|
|
518
|
+
default: O(() => [
|
|
519
519
|
(r(), d(x, null, C(ge, (s) => p(v, {
|
|
520
520
|
key: s.value,
|
|
521
521
|
value: s.value
|
|
@@ -533,7 +533,7 @@ const Vt = {
|
|
|
533
533
|
placeholder: a(n)("measure.precisionPlaceholder"),
|
|
534
534
|
style: { width: "136px", height: "28px" }
|
|
535
535
|
}, {
|
|
536
|
-
default:
|
|
536
|
+
default: O(() => [
|
|
537
537
|
(r(), d(x, null, C(Me, (s) => p(v, {
|
|
538
538
|
key: s.value,
|
|
539
539
|
label: s.label,
|
|
@@ -552,7 +552,7 @@ const Vt = {
|
|
|
552
552
|
l("div", cl, [
|
|
553
553
|
l("div", {
|
|
554
554
|
class: "mobile_set_button",
|
|
555
|
-
onClick:
|
|
555
|
+
onClick: P
|
|
556
556
|
}, m(a(n)("common.cancel")), 1),
|
|
557
557
|
l("div", {
|
|
558
558
|
class: "mobile_set_button mobile_set_button_primary",
|
|
@@ -560,13 +560,13 @@ const Vt = {
|
|
|
560
560
|
}, m(a(n)("common.save")), 1)
|
|
561
561
|
])
|
|
562
562
|
])) : se("", !0),
|
|
563
|
-
|
|
563
|
+
We(p(_e, {
|
|
564
564
|
title: et.value,
|
|
565
565
|
"click-handle": tt
|
|
566
566
|
}, null, 8, ["title"]), [
|
|
567
|
-
[
|
|
567
|
+
[je, R.value]
|
|
568
568
|
]),
|
|
569
|
-
|
|
569
|
+
We(l("div", {
|
|
570
570
|
id: "measure_mouseGroup",
|
|
571
571
|
class: "mouse_group",
|
|
572
572
|
style: be({ left: `${ee.value}px`, top: `${te.value}px` })
|
|
@@ -582,12 +582,12 @@ const Vt = {
|
|
|
582
582
|
src: `${a(E)}/industry-viewer/mouse-active-large.svg`
|
|
583
583
|
}, null, 8, dl)
|
|
584
584
|
], 4), [
|
|
585
|
-
[
|
|
585
|
+
[je, H.value]
|
|
586
586
|
])
|
|
587
587
|
], 64);
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
|
-
}), fl = /* @__PURE__ */ wt(ml, [["__scopeId", "data-v-
|
|
590
|
+
}), fl = /* @__PURE__ */ wt(ml, [["__scopeId", "data-v-7d618f04"]]);
|
|
591
591
|
export {
|
|
592
592
|
fl as default
|
|
593
593
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as Y, onMounted as x, onBeforeUnmount as A, ref as _, watch as C, openBlock as M, createElementBlock as $, withDirectives as F, createElementVNode as g, normalizeStyle as D, unref as L, vShow as N } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { G as P, I as s, P as k, a0 as V } from "./index-Amk7_oxr.mjs";
|
|
3
|
+
const R = { class: "mouse_tool" }, U = ["src"], z = ["src"], J = /* @__PURE__ */ Y({
|
|
4
4
|
__name: "MouseTool",
|
|
5
5
|
props: ["componentId"],
|
|
6
6
|
setup(O) {
|
|
7
|
-
const p =
|
|
7
|
+
const p = P(), y = O;
|
|
8
8
|
x(() => {
|
|
9
9
|
p.setReadyById(y.componentId), document.getElementById("top_bar");
|
|
10
10
|
});
|
|
@@ -48,7 +48,7 @@ const U = { class: "mouse_tool" }, q = ["src"], z = ["src"], J = /* @__PURE__ */
|
|
|
48
48
|
const u = t.viewer.scene.pick({
|
|
49
49
|
canvasPos: h
|
|
50
50
|
});
|
|
51
|
-
u ? (o = !0, n !== u.entity.id && (n = u.entity.id, t.setAllObjectsSelected(!1), t.setEntitySelected(u.entity))) : (o = !1, n = "", t.setAllObjectsSelected(!1)),
|
|
51
|
+
u ? (o = !0, n !== u.entity.id && (n = u.entity.id, t.setAllObjectsSelected(!1), t.setEntitySelected(u.entity))) : (o = !1, n = "", t.setAllObjectsSelected(!1)), V.entityState.selectedObjectIds.length > 0 && t.setObjectsSelected(V.entityState.selectedObjectIds, !0), r = f, a = B;
|
|
52
52
|
}
|
|
53
53
|
}, j = () => {
|
|
54
54
|
const e = document.getElementById("mouseGroup");
|
|
@@ -57,7 +57,7 @@ const U = { class: "mouse_tool" }, q = ["src"], z = ["src"], J = /* @__PURE__ */
|
|
|
57
57
|
const e = document.getElementById("mouseGroup");
|
|
58
58
|
e == null || e.removeEventListener("touchstart", S), e == null || e.removeEventListener("touchmove", b), e == null || e.removeEventListener("click", I);
|
|
59
59
|
};
|
|
60
|
-
return (e, f) => (M(), $("div",
|
|
60
|
+
return (e, f) => (M(), $("div", R, [
|
|
61
61
|
F(g("div", {
|
|
62
62
|
id: "mouseGroup",
|
|
63
63
|
class: "mouse_group",
|
|
@@ -66,12 +66,12 @@ const U = { class: "mouse_tool" }, q = ["src"], z = ["src"], J = /* @__PURE__ */
|
|
|
66
66
|
g("img", {
|
|
67
67
|
id: "mouse_icon",
|
|
68
68
|
class: "mouse_icon",
|
|
69
|
-
src: `${L(
|
|
70
|
-
}, null, 8,
|
|
69
|
+
src: `${L(k)}/industry-viewer/mouse-icon.svg`
|
|
70
|
+
}, null, 8, U),
|
|
71
71
|
g("img", {
|
|
72
72
|
id: "mouse_img",
|
|
73
73
|
class: "mouse_img",
|
|
74
|
-
src: `${L(
|
|
74
|
+
src: `${L(k)}/industry-viewer/mouse-active-large.svg`
|
|
75
75
|
}, null, 8, z)
|
|
76
76
|
], 4), [
|
|
77
77
|
[N, !l.value]
|