@xtctwins/tctwins-bimx-engine 0.3.2 → 0.3.4
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 -193
- package/dist/AnnotationTool-o5g0AREJ.mjs +167 -0
- package/dist/BIMX_Viewer_Lib.es.js +3 -3
- package/dist/BIMX_Viewer_Lib.umd.js +166 -266
- package/dist/CameraViewTool-DYukyv5Q.mjs +164 -0
- package/dist/CommentTool-0voGtLXB.mjs +1529 -0
- package/dist/{HiddenTool-rORoKTeD.mjs → HiddenTool-CB8a3I71.mjs} +16 -16
- package/dist/{InspectorTool-l4bDxTia.mjs → InspectorTool-D_zuKOsj.mjs} +66 -66
- package/dist/{MeasureTool-d-EV6m2R.mjs → MeasureTool-F0pD5KDj.mjs} +107 -131
- package/dist/{MouseTool-DKMcdeRD.mjs → MouseTool-DwVd0jsi.mjs} +32 -35
- package/dist/{NavigateTool-BNvZ8Oat.mjs → NavigateTool-D9yL9I0-.mjs} +13 -13
- package/dist/{RoamTool-DJu93SVl.mjs → RoamTool-C0cFwyiz.mjs} +14 -14
- package/dist/ScreenShotTool-BlQ4pLfp.mjs +357 -0
- package/dist/SectionTool-BSqICcbP.mjs +331 -0
- package/dist/SettingTool-Jvi1wkwu.mjs +657 -0
- package/dist/StructureTree-DQ_lU3sB.mjs +1583 -0
- package/dist/{Alert-5pEYzrMO.mjs → alert-Bc55oe1i.mjs} +8 -8
- package/dist/const-DOnRsYpZ.mjs +389 -0
- package/dist/el-input-number-CpL0IdzD.mjs +818 -0
- package/dist/index-BSouWIqa.mjs +129592 -0
- package/dist/index.html +17 -17
- package/dist/{Panel.vue_vue_type_style_index_0_lang-C4tqfy-B.mjs → panel.vue_vue_type_style_index_0_lang-Bt42YE-8.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{TallPanel-DtXOSzmF.mjs → tallPanel-DURfdD5Z.mjs} +14 -14
- package/package.json +4 -7
- package/types/components/BCFComponents/BCFAddPanel.vue.d.ts +10 -38
- package/types/components/BCFComponents/BCFCommentNew.vue.d.ts +22 -0
- package/types/components/BCFComponents/BCFDetailPanel.vue.d.ts +9 -37
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFFilter.vue.d.ts +7 -5
- package/types/components/BCFComponents/BCFTool.vue.d.ts +7 -4
- package/types/components/BCFComponents/addObjectOrAnno.vue.d.ts +7 -5
- package/types/components/BCFComponents/checkObjectPanel.vue.d.ts +6 -5
- package/types/components/BCFComponents/commentInput.vue.d.ts +10 -36
- package/types/components/BCFComponents/commentsView.vue.d.ts +7 -36
- package/types/components/BCFComponents/dialogPanel.vue.d.ts +8 -5
- package/types/components/BCFComponents/imageView.vue.d.ts +7 -5
- package/types/components/BCFComponents/imageZoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/AnnotationTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/AppToolbar.vue.d.ts +1 -18
- package/types/components/{tools/NavigateTool.vue.d.ts → BimViewerComponents/CameraViewTool.vue.d.ts} +3 -1
- package/types/components/BimViewerComponents/ClickEvent.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/CommentTool.vue.d.ts +1 -32
- package/types/components/BimViewerComponents/HiddenTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/InspectorTool.vue.d.ts +0 -2
- package/types/components/BimViewerComponents/MeasureTool.vue.d.ts +0 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/{MobileCommentAdd.vue.d.ts → add.vue.d.ts} +8 -6
- package/types/components/BimViewerComponents/MobileCommentsTool/detail.vue.d.ts +5 -4
- package/types/components/BimViewerComponents/MobileCommentsTool/draw.vue.d.ts +2 -2
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +1 -478
- package/types/components/BimViewerComponents/MobileCommentsTool/list.vue.d.ts +7 -499
- package/types/components/BimViewerComponents/MobileCommentsTool/zoomIn.vue.d.ts +6 -5
- package/types/components/BimViewerComponents/MouseTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/NavigateTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/PCCommentTool/pcdraw.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/RoamTool.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/SectionTool.vue.d.ts +0 -4
- package/types/components/BimViewerComponents/SettingTool.vue.d.ts +6 -4
- package/types/components/BimViewerComponents/StructureTree.vue.d.ts +1 -4026
- package/types/components/BimViewerComponents/Toolbar.vue.d.ts +1 -1
- package/types/components/BimViewerComponents/emptyPage.vue.d.ts +8 -0
- package/types/components/BimViewerComponents/mobileToolbar.vue.d.ts +1 -18
- package/types/components/BimxViewerComp.vue.d.ts +20 -7
- package/types/components/MobileBCFComponents/MobileBCFAdd.vue.d.ts +10 -37
- package/types/components/MobileBCFComponents/MobileBCFDetail.vue.d.ts +9 -37
- package/types/components/MobileBCFComponents/MobileBCFDisplayList.vue.d.ts +7 -499
- package/types/components/MobileBCFComponents/MobileBCFFilter.vue.d.ts +1 -478
- package/types/components/MobileBCFComponents/MobileBCFTool.vue.d.ts +8 -5
- package/types/components/MobileBCFComponents/MobileCommentInput.vue.d.ts +12 -38
- package/types/components/MobileBCFComponents/MobileCommentsView.vue.d.ts +9 -7
- package/types/components/MobileBCFComponents/selectPanel.vue.d.ts +7 -5
- package/types/components/bimxViewer.vue.d.ts +14 -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 +2 -8
- package/types/components/utilsComponents/prompt.vue.d.ts +1 -1
- package/types/components/utilsComponents/rectangleButton.vue.d.ts +1 -3
- package/types/components/utilsComponents/tallPanel.vue.d.ts +3 -13
- package/types/components/utilsComponents/tallPanel_noPos.vue.d.ts +3 -13
- package/types/i18n/index.d.ts +5 -5
- package/types/i18n/locales/en-US.d.ts +1 -1
- package/types/i18n/locales/zh-CN.d.ts +1 -1
- package/types/pages/BimxViewerEntry.vue.d.ts +61 -5
- package/types/pages/viewerEntry.vue.d.ts +57 -7
- package/types/store/bcfReflect.d.ts +81 -13
- package/types/store/const.d.ts +228 -11
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/toolbars.d.ts +117 -69
- package/types/store/userInfoStore.d.ts +1 -1
- package/types/tests/cmt.d.ts +1 -0
- package/types/utils/OSSHelper.d.ts +0 -27
- package/types/utils/cacheInfo.d.ts +3 -26
- package/types/utils/eventBus.d.ts +87 -1
- package/types/utils/splitType.d.ts +1 -0
- package/types/viewerManager/load/loadModel.d.ts +1 -1
- package/types/viewerManager/viewerManager.d.ts +3 -53
- package/dist/AnnotationTool-B3tDIyWy.mjs +0 -239
- package/dist/CommentTool--UgPVIZZ.mjs +0 -1541
- package/dist/ScreenShotTool-D2h0Qjtv.mjs +0 -430
- package/dist/SectionTool-DHw2Zfzv.mjs +0 -343
- package/dist/SettingTool-D13GBT87.mjs +0 -747
- package/dist/StructureTree-DHaOzAP9.mjs +0 -1662
- package/dist/bimTools-D3TraX9d.mjs +0 -75
- package/dist/el-slider-CHaMBaUG.mjs +0 -1040
- package/dist/index-BDupeKSG.mjs +0 -127986
- package/types/components/bcf/AddObjectOrAnno.vue.d.ts +0 -16
- package/types/components/bcf/BCFAddPanel.vue.d.ts +0 -55
- package/types/components/bcf/BCFDetailPanel.vue.d.ts +0 -59
- package/types/components/bcf/BCFDisplayList.vue.d.ts +0 -18
- package/types/components/bcf/BCFFilter.vue.d.ts +0 -14
- package/types/components/bcf/BCFTool.vue.d.ts +0 -15
- package/types/components/bcf/CheckObjectPanel.vue.d.ts +0 -11
- package/types/components/bcf/CommentInput.vue.d.ts +0 -51
- package/types/components/bcf/CommentsView.vue.d.ts +0 -48
- package/types/components/bcf/DialogPanel.vue.d.ts +0 -15
- package/types/components/bcf/ImageView.vue.d.ts +0 -17
- package/types/components/bcf/ImageZoomIn.vue.d.ts +0 -9
- package/types/components/bcf/MobileBCFAdd.vue.d.ts +0 -56
- package/types/components/bcf/MobileBCFDetail.vue.d.ts +0 -55
- package/types/components/bcf/MobileBCFDisplayList.vue.d.ts +0 -498
- package/types/components/bcf/MobileBCFFilter.vue.d.ts +0 -475
- package/types/components/bcf/MobileBCFTool.vue.d.ts +0 -17
- package/types/components/bcf/MobileCommentInput.vue.d.ts +0 -54
- package/types/components/bcf/MobileCommentsView.vue.d.ts +0 -17
- package/types/components/bcf/SelectPanel.vue.d.ts +0 -12
- package/types/components/comment/mobile/MobileCommentAdd.vue.d.ts +0 -14
- package/types/components/comment/mobile/MobileDetail.vue.d.ts +0 -11
- package/types/components/comment/mobile/MobileDraw.vue.d.ts +0 -17
- package/types/components/comment/mobile/MobileFilter.vue.d.ts +0 -475
- package/types/components/comment/mobile/MobileList.vue.d.ts +0 -497
- package/types/components/comment/mobile/MobileZoomIn.vue.d.ts +0 -9
- package/types/components/comment/pc/PcDraw.vue.d.ts +0 -14
- package/types/components/shared/Alert.vue.d.ts +0 -32
- package/types/components/shared/CloseButton.vue.d.ts +0 -50
- package/types/components/shared/CloseButtonDark.vue.d.ts +0 -32
- package/types/components/shared/EmptyPage.vue.d.ts +0 -6
- package/types/components/shared/Loading.vue.d.ts +0 -2
- package/types/components/shared/Panel.vue.d.ts +0 -47
- package/types/components/shared/Prompt.vue.d.ts +0 -8
- package/types/components/shared/RectangleButton.vue.d.ts +0 -106
- package/types/components/shared/TallPanel.vue.d.ts +0 -69
- package/types/components/shared/TallPanelNoPos.vue.d.ts +0 -82
- package/types/components/tools/AnnotationTool.vue.d.ts +0 -14
- package/types/components/tools/AppToolbar.vue.d.ts +0 -27
- package/types/components/tools/ClickEvent.vue.d.ts +0 -6
- package/types/components/tools/CommentTool.vue.d.ts +0 -45
- package/types/components/tools/HiddenTool.vue.d.ts +0 -12
- package/types/components/tools/InspectorTool.vue.d.ts +0 -14
- package/types/components/tools/MeasureTool.vue.d.ts +0 -14
- package/types/components/tools/MouseTool.vue.d.ts +0 -6
- package/types/components/tools/RoamTool.vue.d.ts +0 -12
- package/types/components/tools/ScreenShotTool.vue.d.ts +0 -10
- package/types/components/tools/SectionTool.vue.d.ts +0 -14
- package/types/components/tools/SettingTool.vue.d.ts +0 -13
- package/types/components/tools/StructureTree.vue.d.ts +0 -11645
- package/types/components/tools/Toolbar.vue.d.ts +0 -10
- package/types/composables/useBimViewerEvent.d.ts +0 -44
- package/types/composables/useEmitHandler.d.ts +0 -2
- package/types/composables/useToolActive.d.ts +0 -1
- package/types/composables/useToolReady.d.ts +0 -1
- package/types/store/const/app.d.ts +0 -66
- package/types/store/const/bimTools.d.ts +0 -81
- package/types/store/const/project.d.ts +0 -48
- package/types/store/const/theme.d.ts +0 -16
- package/types/store/const/toolbar.d.ts +0 -26
- package/types/stores/viewerStore.d.ts +0 -112
- package/types/types/bcf.d.ts +0 -83
- package/types/types/events.d.ts +0 -88
- package/types/utils/dbscan.d.ts +0 -1
|
@@ -1,106 +1,82 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as Ne } from "./
|
|
3
|
-
import { defineComponent as Ue, ref as n, onMounted as ie, onBeforeUnmount as
|
|
4
|
-
import { M as
|
|
1
|
+
import { n as De, o as Re, T as ae, q as ne, p as f, O as w, V as ue, t as Ce, G as Le, H as $e, v as Pe, y as ze } from "./index-BSouWIqa.mjs";
|
|
2
|
+
import { _ as Ne } from "./panel.vue_vue_type_style_index_0_lang-Bt42YE-8.mjs";
|
|
3
|
+
import { defineComponent as Ue, ref as n, onMounted as ie, onBeforeUnmount as Oe, watch as Xe, openBlock as i, createElementBlock as c, Fragment as E, unref as t, createBlock as Ye, withCtx as U, createElementVNode as s, renderList as O, normalizeClass as ce, toDisplayString as o, createVNode as T, createCommentVNode as Fe, normalizeStyle as re, withDirectives as He, vShow as qe } from "vue";
|
|
4
|
+
import { M as X } from "./const-DOnRsYpZ.mjs";
|
|
5
5
|
const We = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "measure_panel_content"
|
|
8
|
-
}, je = { class: "measurement_type" },
|
|
8
|
+
}, je = { class: "measurement_type" }, Je = ["onClick"], Ke = ["src"], Qe = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "measurement_data"
|
|
11
11
|
}, Ze = { class: "data_box" }, Ge = { style: { color: "#0065fc" } }, es = { class: "data_box" }, ss = { style: { color: "#fe4444" } }, ts = { class: "data_box" }, ls = { style: { color: "#4ed17a" } }, os = { class: "data_box" }, as = { style: { color: "#ffce19" } }, ns = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "measurement_data"
|
|
14
|
-
}, us = { class: "data_box" }, is = { style: { color: "#0065fc" } },
|
|
14
|
+
}, us = { class: "data_box" }, is = { style: { color: "#0065fc" } }, cs = { class: "footer" }, rs = {
|
|
15
15
|
key: 1,
|
|
16
16
|
class: "setMeasurePanel"
|
|
17
|
-
},
|
|
17
|
+
}, vs = { class: "set_content_par" }, ds = { class: "set_content_" }, ms = {
|
|
18
18
|
class: "set_content scale",
|
|
19
19
|
style: { display: "none" }
|
|
20
|
-
}, _s = { class: "set_content unit" }, hs = { class: "set_content precision" }, ps = { class: "footer" },
|
|
20
|
+
}, _s = { class: "set_content unit" }, hs = { class: "set_content precision" }, ps = { class: "footer" }, gs = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "mobile_measure_panel"
|
|
23
|
-
},
|
|
23
|
+
}, fs = { class: "measure-list" }, ys = ["onClick"], bs = { class: "measure-icon" }, Ms = ["src"], ws = { class: "measure-name" }, Ts = { class: "measure-icon" }, ks = ["src"], Vs = {
|
|
24
24
|
class: "measure-name",
|
|
25
25
|
style: { color: "#df1c1c" }
|
|
26
|
-
},
|
|
26
|
+
}, xs = { class: "mouse_btn" }, As = ["src"], Bs = ["src"], Is = ["src"], Es = /* @__PURE__ */ Ue({
|
|
27
27
|
__name: "MeasureTool",
|
|
28
|
-
props: ["componentId"
|
|
28
|
+
props: ["componentId"],
|
|
29
29
|
emits: ["closePanel", "emitHandler"],
|
|
30
|
-
setup(
|
|
31
|
-
const a = De(), S = Re(), me =
|
|
30
|
+
setup(ve, { emit: de }) {
|
|
31
|
+
const a = De(), S = Re(), me = ve, Y = n(0);
|
|
32
32
|
ie(() => {
|
|
33
|
-
S.setReadyById(me.componentId), ae.currentTheme == "blue" ?
|
|
33
|
+
S.setReadyById(me.componentId), ae.currentTheme == "blue" ? Y.value = 224 : ae.currentTheme == "light-gray" && (Y.value = 202);
|
|
34
34
|
});
|
|
35
|
-
let
|
|
36
|
-
const
|
|
35
|
+
let r, k, D, _;
|
|
36
|
+
const v = n(1), R = n(), h = n(), V = n(), y = n(), F = n(), W = n(), j = n(), J = n(), x = n(1), A = n("m"), b = n(3), B = n(!1), _e = [{ value: "m" }, { value: "cm" }, { value: "mm" }], d = n(!1), he = [
|
|
37
37
|
{ label: "0", value: 0 },
|
|
38
38
|
{ label: "0.0", value: 1 },
|
|
39
39
|
{ label: "0.00", value: 2 },
|
|
40
40
|
{ label: "0.000", value: 3 }
|
|
41
|
-
],
|
|
42
|
-
|
|
41
|
+
], K = de, Q = (e) => {
|
|
42
|
+
K("emitHandler", e);
|
|
43
43
|
}, Z = () => {
|
|
44
|
-
D = window.bimViewer, ue.SaveViewerState({ measure: "distance" }), k = window.bimViewer.measureAngleTool,
|
|
44
|
+
D = window.bimViewer, ue.SaveViewerState({ measure: "distance" }), k = window.bimViewer.measureAngleTool, r = window.bimViewer.measureDistanceTool, _ = window.bimViewer.eventTrigger, f("isMobile") && (_.on("newAngleMeasure", (e) => {
|
|
45
|
+
d.value = !1;
|
|
46
|
+
}), _.on("newDistanceMeasure", (e) => {
|
|
47
|
+
d.value = !1;
|
|
48
|
+
})), _.on("createAngleMeasure", (e) => {
|
|
49
|
+
F.value = e.id, y.value = e.result, f("isMobile") && (d.value = !0), m("createAngleMeasure", { newMeasure: e });
|
|
50
|
+
}), _.on("createDistanceMeasure", (e) => {
|
|
51
|
+
R.value = e.id, V.value = e.id, h.value = e.result, W.value = e.xResult ? e.xResult : 0, j.value = e.yResult ? e.yResult : 0, J.value = e.zResult ? e.zResult : 0, f("isMobile") && (d.value = !0), m("createAngleMeasure", { newMeasure: e });
|
|
52
|
+
}), _.on("clickDistanceMeasure", (e) => {
|
|
53
|
+
v.value == 2 && C(X[0]), R.value = e.id, Te(e.id), f("isMobile") && (d.value = !0), m("clickDistanceMeasure", { id: e.id });
|
|
54
|
+
}), _.on("clickAngleMeasure", (e) => {
|
|
55
|
+
v.value == 1 && C(X[1]), Me(e.id), f("isMobile") && (d.value = !0), m("clickAngleMeasure", { id: e.id });
|
|
56
|
+
}), r.precision = b.value, r.unit = A.value, r.scale = x.value;
|
|
45
57
|
};
|
|
46
|
-
ne.on("BimViewer", Z),
|
|
47
|
-
event: "newAngleMeasure",
|
|
48
|
-
handler: () => {
|
|
49
|
-
_("isMobile") && (v.value = !1);
|
|
50
|
-
},
|
|
51
|
-
defer: !0
|
|
52
|
-
}), M({
|
|
53
|
-
event: "newDistanceMeasure",
|
|
54
|
-
handler: () => {
|
|
55
|
-
_("isMobile") && (v.value = !1);
|
|
56
|
-
},
|
|
57
|
-
defer: !0
|
|
58
|
-
}), M({
|
|
59
|
-
event: "createAngleMeasure",
|
|
60
|
-
handler: (e) => {
|
|
61
|
-
Y.value = e.id, g.value = e.result, _("isMobile") && (v.value = !0), m("createAngleMeasure", { newMeasure: e });
|
|
62
|
-
},
|
|
63
|
-
defer: !0
|
|
64
|
-
}), M({
|
|
65
|
-
event: "createDistanceMeasure",
|
|
66
|
-
handler: (e) => {
|
|
67
|
-
R.value = e.id, V.value = e.id, h.value = e.result, W.value = e.xResult ? e.xResult : 0, j.value = e.yResult ? e.yResult : 0, q.value = e.zResult ? e.zResult : 0, _("isMobile") && (v.value = !0), m("createAngleMeasure", { newMeasure: e });
|
|
68
|
-
},
|
|
69
|
-
defer: !0
|
|
70
|
-
}), M({
|
|
71
|
-
event: "clickDistanceMeasure",
|
|
72
|
-
handler: (e) => {
|
|
73
|
-
d.value == 2 && C(O[0]), R.value = e.id, Te(e.id), _("isMobile") && (v.value = !0), m("clickDistanceMeasure", { id: e.id });
|
|
74
|
-
},
|
|
75
|
-
defer: !0
|
|
76
|
-
}), M({
|
|
77
|
-
event: "clickAngleMeasure",
|
|
78
|
-
handler: (e) => {
|
|
79
|
-
d.value == 1 && C(O[1]), Me(e.id), _("isMobile") && (v.value = !0), m("clickAngleMeasure", { id: e.id });
|
|
80
|
-
},
|
|
81
|
-
defer: !0
|
|
82
|
-
}), Fe(() => {
|
|
58
|
+
ne.on("BimViewer", Z), Oe(() => {
|
|
83
59
|
ne.off("BimViewer", Z);
|
|
84
|
-
}),
|
|
60
|
+
}), Xe(
|
|
85
61
|
() => S.isToolActive(3),
|
|
86
62
|
(e) => {
|
|
87
63
|
Ve(e);
|
|
88
64
|
}
|
|
89
65
|
);
|
|
90
66
|
const m = (e, u) => {
|
|
91
|
-
|
|
67
|
+
Q({
|
|
92
68
|
isTool: !0,
|
|
93
69
|
event_name: e,
|
|
94
70
|
event_target: "MeasureTool",
|
|
95
71
|
content: u
|
|
96
72
|
});
|
|
97
73
|
}, pe = () => {
|
|
98
|
-
window.bimViewer.measureTool.setActive(!1),
|
|
74
|
+
window.bimViewer.measureTool.setActive(!1), K("closePanel"), B.value === !0 && L();
|
|
99
75
|
}, C = (e) => {
|
|
100
|
-
|
|
101
|
-
},
|
|
76
|
+
v.value !== e.id && (v.value = e.id, ue.SaveViewerState({ measure: e.code }), ge(e), f("isMobile") && (d.value = !1));
|
|
77
|
+
}, ge = (e) => {
|
|
102
78
|
let u = e.code;
|
|
103
|
-
window.bimViewer.measureTool.setActiveByType(u, !0),
|
|
79
|
+
window.bimViewer.measureTool.setActiveByType(u, !0), Q({
|
|
104
80
|
isTool: !0,
|
|
105
81
|
event_name: "",
|
|
106
82
|
event_target: "MeasureTool",
|
|
@@ -108,76 +84,76 @@ const We = {
|
|
|
108
84
|
measureTool: u
|
|
109
85
|
}
|
|
110
86
|
});
|
|
111
|
-
},
|
|
112
|
-
h.value = "",
|
|
87
|
+
}, fe = () => {
|
|
88
|
+
h.value = "", y.value = "", r.clear(), k.clear(), m("destroyAllMeasure", { msg: "删除全部测量" }), d.value = !1;
|
|
113
89
|
}, ye = () => {
|
|
114
|
-
h.value = "",
|
|
90
|
+
h.value = "", y.value = "", v.value === 1 ? (ke(V.value), m("destroyMeasureDistance", { id: V.value })) : v.value === 2 && (we(F.value), m("destroyMeasurementAngle", { id: V.value })), d.value = !1;
|
|
115
91
|
}, L = () => {
|
|
116
|
-
|
|
92
|
+
B.value = !B.value;
|
|
117
93
|
}, be = () => {
|
|
118
|
-
L(),
|
|
94
|
+
L(), r.precision = b.value, r.unit = A.value, r.scale = x.value, R.value && (h.value = r.getMeasureResultByID(R.value)), m("updateMeasureSet", {
|
|
119
95
|
measurePrefer: {
|
|
120
|
-
distance_precision:
|
|
121
|
-
distance_unit:
|
|
122
|
-
distance_scale:
|
|
96
|
+
distance_precision: b.value,
|
|
97
|
+
distance_unit: A.value,
|
|
98
|
+
distance_scale: x.value
|
|
123
99
|
}
|
|
124
100
|
});
|
|
125
101
|
}, Me = (e) => {
|
|
126
|
-
|
|
102
|
+
F.value = e, y.value = k.getMeasureResultByID(e);
|
|
127
103
|
}, we = (e) => k.destroyMeasurementById(e), Te = (e) => {
|
|
128
|
-
V.value = e, h.value =
|
|
129
|
-
}, ke = (e) =>
|
|
130
|
-
|
|
104
|
+
V.value = e, h.value = r.getMeasureResultByID(e);
|
|
105
|
+
}, ke = (e) => r.destroyMeasurementById(e), Ve = (e) => {
|
|
106
|
+
r.setAllVisible(e), k.setAllVisible(e);
|
|
131
107
|
};
|
|
132
108
|
ie(() => {
|
|
133
109
|
document.getElementById("top_bar");
|
|
134
110
|
});
|
|
135
|
-
const
|
|
136
|
-
let $ = !1, P = 0, z = 0, H = 0,
|
|
137
|
-
const p = n(290),
|
|
138
|
-
|
|
111
|
+
const M = n(!1);
|
|
112
|
+
let $ = !1, P = 0, z = 0, H = 0, q = 0;
|
|
113
|
+
const p = n(290), g = n(300), xe = () => {
|
|
114
|
+
M.value = !M.value, M.value ? Ae() : Be();
|
|
139
115
|
}, G = (e) => {
|
|
140
|
-
$ ? D.measureTool.currentTool.onSimulateMousedown([p.value,
|
|
116
|
+
$ ? D.measureTool.currentTool.onSimulateMousedown([p.value, g.value]) : e.touches.length == 1 && (P = e.touches[0].clientX, z = e.touches[0].clientY, $ = !0);
|
|
141
117
|
}, ee = (e) => {
|
|
142
118
|
if (e.touches.length == 1) {
|
|
143
119
|
const u = e.touches[0].clientX, N = e.touches[0].clientY;
|
|
144
|
-
H = u - P,
|
|
120
|
+
H = u - P, q = N - z, p.value += H, g.value += q;
|
|
145
121
|
let I = new Int16Array(2);
|
|
146
|
-
I[0] = p.value + 5, I[1] =
|
|
122
|
+
I[0] = p.value + 5, I[1] = g.value + 6, P = u, z = N, D.measureTool.currentTool.onSimulateMousemove([p.value, g.value]);
|
|
147
123
|
}
|
|
148
124
|
}, se = (e) => {
|
|
149
|
-
$ && D.measureTool.currentTool.onSimulateMouseup([p.value,
|
|
150
|
-
}, xe = () => {
|
|
151
|
-
const e = document.getElementById("measure_mouseGroup");
|
|
152
|
-
e == null || e.addEventListener("touchstart", G), e == null || e.addEventListener("touchmove", ee), e == null || e.addEventListener("touchend", se), p.value = 290, f.value = 300, P = 0, z = 0, H = 0, Q = 0, $ = !1;
|
|
125
|
+
$ && D.measureTool.currentTool.onSimulateMouseup([p.value, g.value]);
|
|
153
126
|
}, Ae = () => {
|
|
127
|
+
const e = document.getElementById("measure_mouseGroup");
|
|
128
|
+
e == null || e.addEventListener("touchstart", G), e == null || e.addEventListener("touchmove", ee), e == null || e.addEventListener("touchend", se), p.value = 290, g.value = 300, P = 0, z = 0, H = 0, q = 0, $ = !1;
|
|
129
|
+
}, Be = () => {
|
|
154
130
|
const e = document.getElementById("measure_mouseGroup");
|
|
155
131
|
e == null || e.removeEventListener("touchstart", G), e == null || e.removeEventListener("touchmove", ee), e == null || e.removeEventListener("touchend", se);
|
|
156
132
|
};
|
|
157
133
|
return (e, u) => {
|
|
158
134
|
var le, oe;
|
|
159
|
-
const N = Ce, I =
|
|
160
|
-
return i(),
|
|
161
|
-
t(
|
|
135
|
+
const N = Ce, I = Le, te = $e, Ie = Ne, Ee = Pe;
|
|
136
|
+
return i(), c(E, null, [
|
|
137
|
+
t(f)("isMobile") ? (i(), c("div", gs, [
|
|
162
138
|
T(Ee, null, {
|
|
163
139
|
default: U(() => [
|
|
164
|
-
s("div",
|
|
165
|
-
(i(!0),
|
|
140
|
+
s("div", fs, [
|
|
141
|
+
(i(!0), c(E, null, O(t(X), (l) => (i(), c("div", {
|
|
166
142
|
key: l.id,
|
|
167
|
-
class:
|
|
168
|
-
"measure-item-active":
|
|
143
|
+
class: ce(["measure-item", {
|
|
144
|
+
"measure-item-active": v.value === l.id
|
|
169
145
|
}]),
|
|
170
146
|
onClick: (Se) => C(l)
|
|
171
147
|
}, [
|
|
172
148
|
s("div", bs, [
|
|
173
149
|
s("img", {
|
|
174
|
-
src: t(w) + `/bim-viewer/measure-bar/bimkk-mobile-measure-${
|
|
150
|
+
src: t(w) + `/bim-viewer/measure-bar/bimkk-mobile-measure-${v.value === l.id ? l.svgActive : l.svg}.svg`,
|
|
175
151
|
alt: ""
|
|
176
152
|
}, null, 8, Ms),
|
|
177
153
|
s("div", ws, o(t(a)(l.label || l.name)), 1)
|
|
178
154
|
])
|
|
179
155
|
], 10, ys))), 128)),
|
|
180
|
-
|
|
156
|
+
d.value ? (i(), c("div", {
|
|
181
157
|
key: 0,
|
|
182
158
|
class: "measure-item",
|
|
183
159
|
onClick: ye
|
|
@@ -189,41 +165,41 @@ const We = {
|
|
|
189
165
|
}, null, 8, ks),
|
|
190
166
|
s("div", Vs, o(t(a)("common.delete")), 1)
|
|
191
167
|
])
|
|
192
|
-
])) :
|
|
168
|
+
])) : Fe("", !0)
|
|
193
169
|
])
|
|
194
170
|
]),
|
|
195
171
|
_: 1
|
|
196
172
|
}),
|
|
197
|
-
s("div",
|
|
173
|
+
s("div", xs, [
|
|
198
174
|
s("div", {
|
|
199
175
|
class: "mouse",
|
|
200
|
-
onClick:
|
|
176
|
+
onClick: xe
|
|
201
177
|
}, [
|
|
202
178
|
s("img", {
|
|
203
|
-
src: `${t(w)}/industry-viewer/action-bar/${
|
|
204
|
-
}, null, 8,
|
|
179
|
+
src: `${t(w)}/industry-viewer/action-bar/${M.value ? (le = t(S).getToolById(16)) == null ? void 0 : le.imgActive : (oe = t(S).getToolById(16)) == null ? void 0 : oe.img}.svg`
|
|
180
|
+
}, null, 8, As),
|
|
205
181
|
s("span", {
|
|
206
|
-
style:
|
|
182
|
+
style: re({ color: M.value ? "#1457F7" : "#262626" })
|
|
207
183
|
}, o(t(a)("toolbar.virtualMouse")), 5)
|
|
208
184
|
])
|
|
209
185
|
])
|
|
210
|
-
])) : (i(),
|
|
186
|
+
])) : (i(), Ye(Ie, {
|
|
211
187
|
key: 0,
|
|
212
188
|
class: "measure_panel",
|
|
213
|
-
width:
|
|
214
|
-
panelTitle:
|
|
189
|
+
width: Y.value,
|
|
190
|
+
panelTitle: B.value ? t(a)("measure.settings") : t(a)("measure.title"),
|
|
215
191
|
"click-handle": pe
|
|
216
192
|
}, {
|
|
217
193
|
default: U(() => [
|
|
218
|
-
|
|
219
|
-
s("div",
|
|
220
|
-
s("div",
|
|
194
|
+
B.value ? (i(), c("div", rs, [
|
|
195
|
+
s("div", vs, [
|
|
196
|
+
s("div", ds, [
|
|
221
197
|
s("div", ms, [
|
|
222
198
|
s("span", null, o(t(a)("measure.scaleLabel")), 1),
|
|
223
199
|
u[3] || (u[3] = s("span", null, "1:", -1)),
|
|
224
200
|
T(N, {
|
|
225
|
-
modelValue:
|
|
226
|
-
"onUpdate:modelValue": u[0] || (u[0] = (l) =>
|
|
201
|
+
modelValue: x.value,
|
|
202
|
+
"onUpdate:modelValue": u[0] || (u[0] = (l) => x.value = l),
|
|
227
203
|
style: { width: "122px", height: "28px" },
|
|
228
204
|
placeholder: "1"
|
|
229
205
|
}, null, 8, ["modelValue"])
|
|
@@ -231,13 +207,13 @@ const We = {
|
|
|
231
207
|
s("div", _s, [
|
|
232
208
|
s("span", null, o(t(a)("measure.unitLabel")), 1),
|
|
233
209
|
T(te, {
|
|
234
|
-
modelValue:
|
|
235
|
-
"onUpdate:modelValue": u[1] || (u[1] = (l) =>
|
|
210
|
+
modelValue: A.value,
|
|
211
|
+
"onUpdate:modelValue": u[1] || (u[1] = (l) => A.value = l),
|
|
236
212
|
placeholder: t(a)("measure.unitPlaceholder"),
|
|
237
213
|
style: { width: "136px", height: "28px" }
|
|
238
214
|
}, {
|
|
239
215
|
default: U(() => [
|
|
240
|
-
(i(),
|
|
216
|
+
(i(), c(E, null, O(_e, (l) => T(I, {
|
|
241
217
|
key: l.value,
|
|
242
218
|
value: l.value
|
|
243
219
|
}, null, 8, ["value"])), 64))
|
|
@@ -248,13 +224,13 @@ const We = {
|
|
|
248
224
|
s("div", hs, [
|
|
249
225
|
s("span", null, o(t(a)("measure.precisionLabel")), 1),
|
|
250
226
|
T(te, {
|
|
251
|
-
modelValue:
|
|
252
|
-
"onUpdate:modelValue": u[2] || (u[2] = (l) =>
|
|
227
|
+
modelValue: b.value,
|
|
228
|
+
"onUpdate:modelValue": u[2] || (u[2] = (l) => b.value = l),
|
|
253
229
|
placeholder: t(a)("measure.precisionPlaceholder"),
|
|
254
230
|
style: { width: "136px", height: "28px" }
|
|
255
231
|
}, {
|
|
256
232
|
default: U(() => [
|
|
257
|
-
(i(),
|
|
233
|
+
(i(), c(E, null, O(he, (l) => T(I, {
|
|
258
234
|
key: l.value,
|
|
259
235
|
label: l.label,
|
|
260
236
|
value: l.value
|
|
@@ -275,24 +251,24 @@ const We = {
|
|
|
275
251
|
onClick: be
|
|
276
252
|
}, o(t(a)("common.save")), 1)
|
|
277
253
|
])
|
|
278
|
-
])) : (i(),
|
|
254
|
+
])) : (i(), c("div", We, [
|
|
279
255
|
s("div", je, [
|
|
280
|
-
(i(!0),
|
|
256
|
+
(i(!0), c(E, null, O(t(X), (l) => (i(), c("div", {
|
|
281
257
|
key: l.id,
|
|
282
|
-
class:
|
|
258
|
+
class: ce(["measurement_box", { measurement_box_active: v.value === l.id }]),
|
|
283
259
|
onClick: (Se) => C(l)
|
|
284
260
|
}, [
|
|
285
261
|
s("img", {
|
|
286
262
|
class: "measurement_img",
|
|
287
|
-
src: t(w) + `/bim-viewer/action-bars/${
|
|
263
|
+
src: t(w) + `/bim-viewer/action-bars/${v.value === l.id ? l.imgActive : l.img}.svg`,
|
|
288
264
|
alt: ""
|
|
289
|
-
}, null, 8,
|
|
290
|
-
], 10,
|
|
265
|
+
}, null, 8, Ke)
|
|
266
|
+
], 10, Je))), 128))
|
|
291
267
|
]),
|
|
292
|
-
|
|
268
|
+
v.value == 1 ? (i(), c("div", Qe, [
|
|
293
269
|
s("div", Ze, [
|
|
294
270
|
s("div", null, o(t(a)("measure.totalLength")), 1),
|
|
295
|
-
s("div", Ge, o(h.value ? h.value.toFixed(
|
|
271
|
+
s("div", Ge, o(h.value ? h.value.toFixed(b.value) : "~"), 1)
|
|
296
272
|
]),
|
|
297
273
|
s("div", es, [
|
|
298
274
|
s("div", null, o(t(a)("measure.x")), 1),
|
|
@@ -304,16 +280,16 @@ const We = {
|
|
|
304
280
|
]),
|
|
305
281
|
s("div", os, [
|
|
306
282
|
s("div", null, o(t(a)("measure.z")), 1),
|
|
307
|
-
s("div", as, o(
|
|
283
|
+
s("div", as, o(J.value), 1)
|
|
308
284
|
])
|
|
309
|
-
])) : (i(),
|
|
285
|
+
])) : (i(), c("div", ns, [
|
|
310
286
|
s("div", us, [
|
|
311
287
|
s("div", null, o(t(a)("measure.angleLabel")), 1),
|
|
312
|
-
s("div", is, o(
|
|
288
|
+
s("div", is, o(y.value ? y.value.toFixed(2) + "°" : "~"), 1)
|
|
313
289
|
])
|
|
314
290
|
])),
|
|
315
|
-
s("div",
|
|
316
|
-
s("span", { onClick:
|
|
291
|
+
s("div", cs, [
|
|
292
|
+
s("span", { onClick: fe }, o(t(a)("measure.clearAll")), 1),
|
|
317
293
|
s("span", { onClick: L }, o(t(a)("setting.title")), 1)
|
|
318
294
|
])
|
|
319
295
|
]))
|
|
@@ -323,25 +299,25 @@ const We = {
|
|
|
323
299
|
He(s("div", {
|
|
324
300
|
id: "measure_mouseGroup",
|
|
325
301
|
class: "mouse_group",
|
|
326
|
-
style:
|
|
302
|
+
style: re({ left: `${p.value}px`, top: `${g.value}px` })
|
|
327
303
|
}, [
|
|
328
304
|
s("img", {
|
|
329
305
|
id: "mouse_icon",
|
|
330
306
|
class: "mouse_icon",
|
|
331
307
|
src: `${t(w)}/industry-viewer/mouse-icon.svg`
|
|
332
|
-
}, null, 8,
|
|
308
|
+
}, null, 8, Bs),
|
|
333
309
|
s("img", {
|
|
334
310
|
id: "mouse_img",
|
|
335
311
|
class: "mouse_img",
|
|
336
312
|
src: `${t(w)}/industry-viewer/mouse-active-large.svg`
|
|
337
313
|
}, null, 8, Is)
|
|
338
314
|
], 4), [
|
|
339
|
-
[
|
|
315
|
+
[qe, M.value]
|
|
340
316
|
])
|
|
341
317
|
], 64);
|
|
342
318
|
};
|
|
343
319
|
}
|
|
344
|
-
}), Ls = /* @__PURE__ */ ze(Es, [["__scopeId", "data-v-
|
|
320
|
+
}), Ls = /* @__PURE__ */ ze(Es, [["__scopeId", "data-v-fcef3ec9"]]);
|
|
345
321
|
export {
|
|
346
322
|
Ls as default
|
|
347
323
|
};
|
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
import { defineComponent as Y, onMounted as x, onBeforeUnmount as A, ref as _, watch as C, openBlock as M, createElementBlock as $, withDirectives as
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
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 { o as R, q as s, O as V, V as k } from "./index-BSouWIqa.mjs";
|
|
3
|
+
const U = { class: "mouse_tool" }, q = ["src"], z = ["src"], J = /* @__PURE__ */ Y({
|
|
4
4
|
__name: "MouseTool",
|
|
5
5
|
props: ["componentId"],
|
|
6
6
|
setup(O) {
|
|
7
|
-
const
|
|
7
|
+
const p = R(), y = O;
|
|
8
8
|
x(() => {
|
|
9
|
-
|
|
9
|
+
p.setReadyById(y.componentId), document.getElementById("top_bar");
|
|
10
10
|
});
|
|
11
11
|
let t;
|
|
12
|
-
const
|
|
13
|
-
t = window.bimViewer,
|
|
14
|
-
|
|
15
|
-
handler: () => {
|
|
16
|
-
l.value = !1;
|
|
17
|
-
}
|
|
12
|
+
const w = () => {
|
|
13
|
+
t = window.bimViewer, t.eventTrigger.on("pickedNothing", () => {
|
|
14
|
+
l.value = !1;
|
|
18
15
|
}), t.viewer.cameraControl.on("touchmoveCanvas", () => {
|
|
19
16
|
o = !1, n = "";
|
|
20
17
|
});
|
|
21
18
|
};
|
|
22
|
-
s.on("BimViewer",
|
|
23
|
-
const
|
|
19
|
+
s.on("BimViewer", w);
|
|
20
|
+
const E = () => {
|
|
24
21
|
l.value = !1, o = !1;
|
|
25
|
-
},
|
|
22
|
+
}, T = () => {
|
|
26
23
|
};
|
|
27
|
-
s.on("unFocus",
|
|
28
|
-
s.off("BimViewer",
|
|
24
|
+
s.on("unFocus", E), s.on("multiSelect", T), A(() => {
|
|
25
|
+
s.off("BimViewer", w), s.off("unFocus", E);
|
|
29
26
|
});
|
|
30
27
|
const c = _(290), i = _(300), l = _(!1);
|
|
31
28
|
let d = !1, o = !1, r = 0, a = 0, m = 0, v = 0;
|
|
32
29
|
C(
|
|
33
|
-
() =>
|
|
30
|
+
() => p.isToolActive(y.componentId),
|
|
34
31
|
(e) => {
|
|
35
|
-
e ?
|
|
32
|
+
e ? j() : (o = !1, d = !1, r = 0, a = 0, m = 0, v = 0, X());
|
|
36
33
|
}
|
|
37
34
|
);
|
|
38
35
|
let n = "";
|
|
@@ -40,42 +37,42 @@ const z = { class: "mouse_tool" }, P = ["src"], Q = ["src"], J = /* @__PURE__ */
|
|
|
40
37
|
o || e.touches.length == 1 && (d = !0, r = e.touches[0].clientX, a = e.touches[0].clientY), setTimeout(function() {
|
|
41
38
|
e.preventDefault();
|
|
42
39
|
}, 300);
|
|
43
|
-
}, B = (e) => {
|
|
44
|
-
o && (l.value = !0, s.emit("focusEntity", n));
|
|
45
40
|
}, I = (e) => {
|
|
41
|
+
o && (l.value = !0, s.emit("focusEntity", n));
|
|
42
|
+
}, b = (e) => {
|
|
46
43
|
if (d && e.touches.length == 1) {
|
|
47
|
-
const f = e.touches[0].clientX,
|
|
48
|
-
m = f - r, v =
|
|
44
|
+
const f = e.touches[0].clientX, B = e.touches[0].clientY;
|
|
45
|
+
m = f - r, v = B - a, c.value += m, i.value += v;
|
|
49
46
|
let h = new Int16Array(2);
|
|
50
47
|
h[0] = c.value + 5, h[1] = i.value + 6;
|
|
51
48
|
const u = t.viewer.scene.pick({
|
|
52
49
|
canvasPos: h
|
|
53
50
|
});
|
|
54
|
-
u ? (o = !0, n !== u.entity.id && (n = u.entity.id, t.setAllObjectsSelected(!1), t.setEntitySelected(u.entity))) : (o = !1, n = "", t.setAllObjectsSelected(!1)), k.entityState.selectedObjectIds.length > 0 && t.setObjectsSelected(k.entityState.selectedObjectIds, !0), r = f, a =
|
|
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)), k.entityState.selectedObjectIds.length > 0 && t.setObjectsSelected(k.entityState.selectedObjectIds, !0), r = f, a = B;
|
|
55
52
|
}
|
|
56
|
-
},
|
|
53
|
+
}, j = () => {
|
|
57
54
|
const e = document.getElementById("mouseGroup");
|
|
58
|
-
e == null || e.addEventListener("touchstart", S), e == null || e.addEventListener("touchmove",
|
|
55
|
+
e == null || e.addEventListener("touchstart", S), e == null || e.addEventListener("touchmove", b), e == null || e.addEventListener("click", I), c.value = 290, i.value = 300;
|
|
59
56
|
}, X = () => {
|
|
60
57
|
const e = document.getElementById("mouseGroup");
|
|
61
|
-
e == null || e.removeEventListener("touchstart", S), e == null || e.removeEventListener("touchmove",
|
|
58
|
+
e == null || e.removeEventListener("touchstart", S), e == null || e.removeEventListener("touchmove", b), e == null || e.removeEventListener("click", I);
|
|
62
59
|
};
|
|
63
|
-
return (e, f) => (M(), $("div",
|
|
64
|
-
|
|
60
|
+
return (e, f) => (M(), $("div", U, [
|
|
61
|
+
F(g("div", {
|
|
65
62
|
id: "mouseGroup",
|
|
66
63
|
class: "mouse_group",
|
|
67
|
-
style:
|
|
64
|
+
style: D({ left: `${c.value}px`, top: `${i.value}px` })
|
|
68
65
|
}, [
|
|
69
|
-
|
|
66
|
+
g("img", {
|
|
70
67
|
id: "mouse_icon",
|
|
71
68
|
class: "mouse_icon",
|
|
72
|
-
src: `${V
|
|
73
|
-
}, null, 8,
|
|
74
|
-
|
|
69
|
+
src: `${L(V)}/industry-viewer/mouse-icon.svg`
|
|
70
|
+
}, null, 8, q),
|
|
71
|
+
g("img", {
|
|
75
72
|
id: "mouse_img",
|
|
76
73
|
class: "mouse_img",
|
|
77
|
-
src: `${V
|
|
78
|
-
}, null, 8,
|
|
74
|
+
src: `${L(V)}/industry-viewer/mouse-active-large.svg`
|
|
75
|
+
}, null, 8, z)
|
|
79
76
|
], 4), [
|
|
80
77
|
[N, !l.value]
|
|
81
78
|
])
|
|
@@ -1,12 +1,12 @@
|
|
|
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 f, unref as a, normalizeClass as h, toDisplayString as
|
|
2
|
-
import {
|
|
3
|
-
import { N as
|
|
4
|
-
const
|
|
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 f, unref as a, normalizeClass as h, toDisplayString as I } from "vue";
|
|
2
|
+
import { n as N, o as S, O as T } from "./index-BSouWIqa.mjs";
|
|
3
|
+
import { N as k } from "./const-DOnRsYpZ.mjs";
|
|
4
|
+
const B = { class: "best-view-box" }, V = { class: "best-view-list" }, x = ["onClick"], y = { class: "best-view-icon" }, A = ["src"], C = { class: "best-view-name" }, R = /* @__PURE__ */ b({
|
|
5
5
|
__name: "NavigateTool",
|
|
6
6
|
props: ["componentId"],
|
|
7
7
|
emits: ["emitHandler"],
|
|
8
8
|
setup(r, { emit: c }) {
|
|
9
|
-
const l =
|
|
9
|
+
const l = N(), d = S(), v = r;
|
|
10
10
|
p(() => {
|
|
11
11
|
d.setReadyById(v.componentId);
|
|
12
12
|
});
|
|
@@ -26,23 +26,23 @@ const k = { class: "best-view-box" }, A = { class: "best-view-list" }, V = ["onC
|
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
28
|
};
|
|
29
|
-
return (t, E) => (n(), i("div",
|
|
30
|
-
s("div",
|
|
31
|
-
(n(!0), i(g, null, f(a(
|
|
29
|
+
return (t, E) => (n(), i("div", B, [
|
|
30
|
+
s("div", V, [
|
|
31
|
+
(n(!0), i(g, null, f(a(k), (e) => (n(), i("div", {
|
|
32
32
|
key: e.id,
|
|
33
33
|
class: h(["best-view-item", {
|
|
34
34
|
"best-view-item-active": o.value === e.id
|
|
35
35
|
}]),
|
|
36
36
|
onClick: (H) => u(e)
|
|
37
37
|
}, [
|
|
38
|
-
s("div",
|
|
38
|
+
s("div", y, [
|
|
39
39
|
s("img", {
|
|
40
|
-
src: a(
|
|
40
|
+
src: a(T) + `/bim-viewer/best-view/${o.value === e.id ? e.imgActive : e.img}.svg`,
|
|
41
41
|
alt: ""
|
|
42
|
-
}, null, 8,
|
|
43
|
-
s("div", C,
|
|
42
|
+
}, null, 8, A),
|
|
43
|
+
s("div", C, I(a(l)(e.label || e.name)), 1)
|
|
44
44
|
])
|
|
45
|
-
], 10,
|
|
45
|
+
], 10, x))), 128))
|
|
46
46
|
])
|
|
47
47
|
]));
|
|
48
48
|
}
|