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