@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,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { H as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as y, onMounted as E, ref as k, onBeforeUnmount as B, openBlock as s, createElementBlock as l, createElementVNode as r, Fragment as C, renderList as H, unref as c, normalizeClass as w, toDisplayString as I } from "vue";
|
|
2
|
+
import { A as S, B as A, D as m, O, C as T, I as x } from "./index-CwRGVhoT.mjs";
|
|
3
|
+
import { H as D } from "./bimTools-D3TraX9d.mjs";
|
|
4
|
+
const j = { class: "hidden_wrapper" }, L = { class: "hidden_content" }, M = ["onClick"], N = ["src"], R = /* @__PURE__ */ y({
|
|
5
5
|
__name: "HiddenTool",
|
|
6
6
|
props: ["componentId"],
|
|
7
7
|
emits: ["closePanel", "emitHandler"],
|
|
8
8
|
setup(u, { emit: U }) {
|
|
9
|
-
const _ =
|
|
9
|
+
const _ = S(), o = A(), b = u;
|
|
10
10
|
E(() => {
|
|
11
11
|
o.setReadyById(b.componentId);
|
|
12
12
|
});
|
|
13
13
|
const i = k(0), d = () => {
|
|
14
14
|
const { eventTrigger: e } = window.bimViewer;
|
|
15
|
-
|
|
15
|
+
T("isMobile") ? e.on("touchEntity", (n) => {
|
|
16
16
|
!window.bimViewer.disableClickEvent || !o.isToolActiveBykey("hidden") || a(n);
|
|
17
17
|
}) : e.on("pickedEntity", (n) => {
|
|
18
18
|
!window.bimViewer.disableClickEvent || !o.isToolActiveBykey("hidden") || a(n);
|
|
@@ -22,10 +22,10 @@ const D = { class: "hidden_wrapper" }, L = { class: "hidden_content" }, M = ["on
|
|
|
22
22
|
m.off("BimViewer", d);
|
|
23
23
|
});
|
|
24
24
|
const a = (e) => {
|
|
25
|
-
i.value != -1 && (i.value == 1 ?
|
|
26
|
-
}, f = (e) => {
|
|
27
|
-
window.bimViewer.setEntityVisible(e);
|
|
25
|
+
i.value != -1 && (i.value == 1 ? v(e) : i.value == 2 ? f(e) : i.value == 3 && h(e));
|
|
28
26
|
}, v = (e) => {
|
|
27
|
+
window.bimViewer.setEntityVisible(e);
|
|
28
|
+
}, f = (e) => {
|
|
29
29
|
window.bimViewer.setEntityHighlighted(e);
|
|
30
30
|
}, h = (e) => {
|
|
31
31
|
window.bimViewer.setEntitySelected(e);
|
|
@@ -34,24 +34,24 @@ const D = { class: "hidden_wrapper" }, L = { class: "hidden_content" }, M = ["on
|
|
|
34
34
|
}, g = (e) => {
|
|
35
35
|
e == 0 ? (i.value = e, p()) : i.value = e;
|
|
36
36
|
};
|
|
37
|
-
return (e, n) => (s(), l("div",
|
|
37
|
+
return (e, n) => (s(), l("div", j, [
|
|
38
38
|
r("div", L, [
|
|
39
|
-
(s(!0), l(C, null, H(c(
|
|
40
|
-
key:
|
|
39
|
+
(s(!0), l(C, null, H(c(D), (t, V) => (s(), l("div", {
|
|
40
|
+
key: V,
|
|
41
41
|
class: w(["button_", { button_active: i.value == t.id }]),
|
|
42
42
|
onClick: ($) => g(t.id)
|
|
43
43
|
}, [
|
|
44
44
|
r("img", {
|
|
45
|
-
src: c(
|
|
45
|
+
src: c(O) + `/bim-viewer/hidden-bar/new-icon/bimkk-mobile-hidden-${i.value == t.id ? t.img_active : t.img}.svg`
|
|
46
46
|
}, null, 8, N),
|
|
47
47
|
r("span", {
|
|
48
48
|
class: w({ active_text: i.value == t.id })
|
|
49
|
-
},
|
|
49
|
+
}, I(c(_)(t.name)), 3)
|
|
50
50
|
], 10, M))), 128))
|
|
51
51
|
])
|
|
52
52
|
]));
|
|
53
53
|
}
|
|
54
|
-
}),
|
|
54
|
+
}), q = /* @__PURE__ */ x(R, [["__scopeId", "data-v-173a53ab"]]);
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
q as default
|
|
57
57
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as ae } from "./
|
|
3
|
-
import { _ as le } from "./
|
|
4
|
-
import { defineComponent as ce, onMounted as re, ref as W, reactive as
|
|
5
|
-
const
|
|
1
|
+
import { J as ee, A as te, B as ne, D as E, C as v, T as N, G as oe, O as H, H as se, I as ie } from "./index-CwRGVhoT.mjs";
|
|
2
|
+
import { _ as ae } from "./TallPanel-CR5vNQ4c.mjs";
|
|
3
|
+
import { _ as le } from "./Panel.vue_vue_type_style_index_0_lang-DgM_qGLO.mjs";
|
|
4
|
+
import { defineComponent as ce, onMounted as re, ref as W, reactive as K, watch as _e, onBeforeUnmount as pe, openBlock as c, createElementBlock as r, Fragment as y, unref as n, createBlock as Q, withCtx as I, withDirectives as d, createElementVNode as e, createVNode as B, toDisplayString as t, vShow as m, renderList as C, createCommentVNode as O } from "vue";
|
|
5
|
+
const J = {
|
|
6
6
|
ExtendToStructure: "扩建物",
|
|
7
7
|
ThermalTransmittance: "热透射率",
|
|
8
8
|
Roughness: "粗糙度",
|
|
@@ -248,32 +248,32 @@ const Z = {
|
|
|
248
248
|
Pset_ReflectorTypeCommon: "反射器类型通用",
|
|
249
249
|
Pset_FlowInstrumentTypeCommon: "流量仪表类型通用",
|
|
250
250
|
Pset_HeatTransferDeviceTypeCommon: "热传递设备类型通用"
|
|
251
|
-
}, ue = Object.keys(
|
|
252
|
-
(
|
|
251
|
+
}, ue = Object.keys(J).reduce(
|
|
252
|
+
(f, b) => {
|
|
253
253
|
const o = b.trim().toLowerCase().replace(/\s+/g, "");
|
|
254
|
-
return
|
|
254
|
+
return f[o] = J[b], f;
|
|
255
255
|
},
|
|
256
256
|
{}
|
|
257
257
|
);
|
|
258
|
-
function k(
|
|
259
|
-
const o =
|
|
260
|
-
return (b || ee().locale) === "en-US" ?
|
|
258
|
+
function k(f, b) {
|
|
259
|
+
const o = f.trim().toLowerCase().replace(/\s+/g, "");
|
|
260
|
+
return (b || ee().locale) === "en-US" ? f : ue[o] || f;
|
|
261
261
|
}
|
|
262
|
-
const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src"], ye = { class: "properties_content" }, ve = { class: "basic_info_title" },
|
|
262
|
+
const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src"], ye = { class: "properties_content" }, ve = { class: "basic_info_title" }, Ce = { class: "basic_info_value" }, fe = { class: "propertysets" }, ge = ["onClick"], Pe = { class: "title" }, be = ["src"], Te = { class: "properties_content" }, Se = { class: "content_title_value" }, Ie = { class: "content_title" }, ke = { class: "content_value" }, De = { class: "myInspector_empty" }, Re = ["src"], we = {
|
|
263
263
|
class: "pc_Inspector_type_button",
|
|
264
264
|
style: { display: "none" }
|
|
265
|
-
}, xe = { class: "type_button" }, Ee = { class: "type_button" }, Be = { class: "pc_Inspector_content" }, Fe = { class: "pc_myInspector_content" }, Me = { class: "title" }, Le = ["src"], Oe = { class: "properties_content" }, je = { class: "basic_info_title" },
|
|
265
|
+
}, xe = { class: "type_button" }, Ee = { class: "type_button" }, Be = { class: "pc_Inspector_content" }, Fe = { class: "pc_myInspector_content" }, Me = { class: "title" }, Le = ["src"], Oe = { class: "properties_content" }, je = { class: "basic_info_title" }, Ae = { class: "basic_info_value" }, Ve = { class: "propertysets" }, Ne = ["onClick"], He = { class: "title" }, We = ["src"], Ue = { class: "properties_content" }, $e = { class: "content_title_value" }, ze = { class: "content_title" }, qe = { class: "content_value" }, Ge = { class: "pc_model_info" }, Ke = { class: "model_info_content" }, Qe = { class: "model_info_value" }, Je = { class: "model_info_content" }, Ze = { class: "model_info_value" }, Xe = {
|
|
266
266
|
key: 0,
|
|
267
267
|
class: "model_info_content"
|
|
268
268
|
}, Ye = { class: "model_info_value" }, et = { class: "model_info_content" }, tt = { class: "model_info_value" }, nt = {
|
|
269
269
|
key: 2,
|
|
270
270
|
class: "mobile_myInspector_wrapper"
|
|
271
|
-
}, ot = { class: "detail-title-box" }, st = { class: "detail-title" }, it = { class: "detail-title-icon" }, at = { class: "mobile_myInspector" }, lt = { class: "mobile_myInspector_content" }, ct = { class: "basic_info_title" }, rt = ["src"], _t = { class: "basic_info_content" }, pt = { class: "basic_info_content_value" }, ut = { class: "content_title" }, dt = { class: "content_value" }, mt = { class: "basic_info_content_value" }, ht = { class: "content_value" }, yt = { class: "basic_info_content_value" }, vt = { class: "content_title" },
|
|
271
|
+
}, ot = { class: "detail-title-box" }, st = { class: "detail-title" }, it = { class: "detail-title-icon" }, at = { class: "mobile_myInspector" }, lt = { class: "mobile_myInspector_content" }, ct = { class: "basic_info_title" }, rt = ["src"], _t = { class: "basic_info_content" }, pt = { class: "basic_info_content_value" }, ut = { class: "content_title" }, dt = { class: "content_value" }, mt = { class: "basic_info_content_value" }, ht = { class: "content_value" }, yt = { class: "basic_info_content_value" }, vt = { class: "content_title" }, Ct = { class: "content_value" }, ft = { class: "propertysets" }, gt = ["onClick"], Pt = { class: "propertysets_title" }, bt = ["src"], Tt = { class: "properties_content" }, St = { class: "content_title_value" }, It = { class: "content_title" }, kt = { class: "content_value" }, Dt = { class: "mobile_Inspector_empty" }, Rt = { class: "model_info_value" }, wt = { class: "model_info_value" }, xt = { class: "model_info_value" }, Et = { class: "model_info_value" }, Bt = /* @__PURE__ */ ce({
|
|
272
272
|
__name: "InspectorTool",
|
|
273
|
-
props: ["componentId"],
|
|
273
|
+
props: ["componentId", "instruction"],
|
|
274
274
|
emits: ["closePanel", "emitHandler"],
|
|
275
|
-
setup(
|
|
276
|
-
const o = te(), F = ne(), M =
|
|
275
|
+
setup(f, { emit: b }) {
|
|
276
|
+
const o = te(), F = ne(), M = f;
|
|
277
277
|
re(() => {
|
|
278
278
|
F.setReadyById(M.componentId);
|
|
279
279
|
});
|
|
@@ -281,13 +281,13 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
281
281
|
U("emitHandler", i);
|
|
282
282
|
};
|
|
283
283
|
let L = window.bimViewer;
|
|
284
|
-
const h = W(!1),
|
|
284
|
+
const h = W(!1), D = W(""), $ = W(""), s = K({
|
|
285
285
|
entity_name: o("common.noData"),
|
|
286
286
|
entity_type: o("common.noData"),
|
|
287
287
|
entity_id: o("common.noData"),
|
|
288
288
|
propertySets: [],
|
|
289
289
|
expanded: !0
|
|
290
|
-
}), a =
|
|
290
|
+
}), a = K({
|
|
291
291
|
objectCount: o("common.unknown"),
|
|
292
292
|
pSetsCount: o("common.unknown"),
|
|
293
293
|
createDate: o("common.unknown"),
|
|
@@ -297,9 +297,9 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
297
297
|
() => F.isToolActive(M.componentId),
|
|
298
298
|
(i) => {
|
|
299
299
|
if (i && h.value == !0) {
|
|
300
|
-
if (
|
|
300
|
+
if (D.value == $.value)
|
|
301
301
|
return;
|
|
302
|
-
|
|
302
|
+
A(D.value);
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
305
|
);
|
|
@@ -311,11 +311,11 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
311
311
|
const _ = window.bimViewer.getModelInfo(u.metaModel.id);
|
|
312
312
|
v("multiModel") ? l == 0 ? (a.objectCount = _.objectCount !== 0 ? _.objectCount : 0, a.pSetsCount = _.propertySetCount !== 0 ? _.propertySetCount : 0, a.author = _.author !== "" ? _.author : "未知") : (a.objectCount = a.objectCount += _.objectCount, a.pSetsCount = a.pSetsCount += _.propertySetCount, a.author = _.author !== "" ? a.author += `, ${_.author}` : a.author.includes("未知") ? a.author : a.author += ", 未知") : (a.createDate = _.createDate !== "" ? _.createDate.replace("T", " ") : "未知", a.objectCount = _.objectCount !== 0 ? _.objectCount : "未知", a.pSetsCount = _.propertySetCount !== 0 ? _.propertySetCount : "未知", a.author = _.author !== "" ? _.author : "未知"), l += 1;
|
|
313
313
|
}), v("isMobile") || i.on("pickedEntity", (u) => {
|
|
314
|
-
|
|
314
|
+
A(u.id, u);
|
|
315
315
|
}), v("isMobile") && i.on("touchEntity", (u) => {
|
|
316
|
-
|
|
316
|
+
A(u.id);
|
|
317
317
|
}), i.on("pickedNothing", () => {
|
|
318
|
-
h.value = !1,
|
|
318
|
+
h.value = !1, D.value = "", Z(), j({
|
|
319
319
|
isTool: !0,
|
|
320
320
|
event_target: "InspectorTool",
|
|
321
321
|
event_name: "pickedNothing",
|
|
@@ -327,15 +327,15 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
327
327
|
}, q = (i) => {
|
|
328
328
|
if (!i) return;
|
|
329
329
|
const l = L.getObjectProperties(i.id);
|
|
330
|
-
l && (
|
|
330
|
+
l && (D.value = i.id, h.value = !0, G(l));
|
|
331
331
|
};
|
|
332
332
|
E.on("BimViewer", z), E.on("tree_clickNode", q), pe(() => {
|
|
333
333
|
E.off("BimViewer", z), E.off("tree_clickNode", q);
|
|
334
334
|
});
|
|
335
|
-
const
|
|
336
|
-
if (
|
|
335
|
+
const A = (i, l) => {
|
|
336
|
+
if (D.value = i, h.value = !0, !F.isToolActive(M.componentId)) return;
|
|
337
337
|
const u = L.getObjectProperties(i);
|
|
338
|
-
u &&
|
|
338
|
+
u && G(u), $.value = i, v("isMobile") ? j({
|
|
339
339
|
isTool: !0,
|
|
340
340
|
event_target: "InspectorTool",
|
|
341
341
|
event_name: "touchEntity",
|
|
@@ -350,15 +350,15 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
350
350
|
object: { entity: l, entity_info: u }
|
|
351
351
|
}
|
|
352
352
|
});
|
|
353
|
-
},
|
|
353
|
+
}, V = () => {
|
|
354
354
|
E.emit("hideToolbar", !1), U("closePanel");
|
|
355
355
|
}, T = (i) => {
|
|
356
356
|
i.expanded = !i.expanded;
|
|
357
|
-
}, S = (i) => i ? `${H}/bim-viewer/down_icon.png` : `${H}/bim-viewer/right_icon.png`,
|
|
357
|
+
}, S = (i) => i ? `${H}/bim-viewer/down_icon.png` : `${H}/bim-viewer/right_icon.png`, G = (i) => {
|
|
358
358
|
s.entity_name = i.name, s.entity_type = i.type, s.entity_id = i.id, i.propertySets && (s.propertySets = i.propertySets, s.propertySets.forEach((l) => {
|
|
359
359
|
N.currentTheme == "light-gray" ? l.expanded = !0 : l.expanded = !1;
|
|
360
360
|
}));
|
|
361
|
-
},
|
|
361
|
+
}, Z = () => {
|
|
362
362
|
s.entity_name = "", s.entity_type = "", s.entity_id = "", s.propertySets = [];
|
|
363
363
|
};
|
|
364
364
|
return (i, l) => {
|
|
@@ -368,7 +368,7 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
368
368
|
key: 0,
|
|
369
369
|
class: "myInspector_wrapper",
|
|
370
370
|
panelTitle: n(o)("inspector.title"),
|
|
371
|
-
"click-handle":
|
|
371
|
+
"click-handle": V,
|
|
372
372
|
style: { height: "var(--inspector-content-height)" }
|
|
373
373
|
}, {
|
|
374
374
|
default: I(() => [
|
|
@@ -392,7 +392,7 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
392
392
|
l[3] || (l[3] = e("span", { style: { "margin-top": "2px" } }, "UUID", -1)),
|
|
393
393
|
e("span", null, t(n(o)("inspector.type")), 1)
|
|
394
394
|
]),
|
|
395
|
-
e("div",
|
|
395
|
+
e("div", Ce, [
|
|
396
396
|
e("span", null, t(s.entity_name), 1),
|
|
397
397
|
e("span", null, t(s.entity_id), 1),
|
|
398
398
|
e("span", null, t(s.entity_type), 1)
|
|
@@ -401,9 +401,9 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
401
401
|
[m, s.expanded]
|
|
402
402
|
])
|
|
403
403
|
]),
|
|
404
|
-
e("ul",
|
|
405
|
-
(c(!0), r(y, null,
|
|
406
|
-
key:
|
|
404
|
+
e("ul", fe, [
|
|
405
|
+
(c(!0), r(y, null, C(s.propertySets, (p, R) => (c(), r("li", {
|
|
406
|
+
key: R,
|
|
407
407
|
class: "propertyset",
|
|
408
408
|
onClick: (g) => T(p)
|
|
409
409
|
}, [
|
|
@@ -416,11 +416,11 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
416
416
|
]),
|
|
417
417
|
d(e("div", Te, [
|
|
418
418
|
e("ul", Se, [
|
|
419
|
-
(c(!0), r(y, null,
|
|
420
|
-
key:
|
|
419
|
+
(c(!0), r(y, null, C(p.properties, (g, w) => (c(), r("li", {
|
|
420
|
+
key: w,
|
|
421
421
|
class: "properties"
|
|
422
422
|
}, [
|
|
423
|
-
(c(!0), r(y, null,
|
|
423
|
+
(c(!0), r(y, null, C(g, (x, P) => (c(), r("div", {
|
|
424
424
|
class: "title_value",
|
|
425
425
|
key: P
|
|
426
426
|
}, [
|
|
@@ -440,10 +440,10 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
440
440
|
], 512), [
|
|
441
441
|
[m, h.value]
|
|
442
442
|
]),
|
|
443
|
-
d(e("div",
|
|
443
|
+
d(e("div", De, [
|
|
444
444
|
e("img", {
|
|
445
445
|
src: n(H) + "/bimkk-app/pinapp-empty-box.png"
|
|
446
|
-
}, null, 8,
|
|
446
|
+
}, null, 8, Re),
|
|
447
447
|
e("span", null, t(n(o)("inspector.noSelection")), 1)
|
|
448
448
|
], 512), [
|
|
449
449
|
[m, !h.value]
|
|
@@ -454,12 +454,12 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
454
454
|
!n(v)("isMobile") && n(N).currentTheme == "light-gray" ? (c(), Q(X, {
|
|
455
455
|
key: 1,
|
|
456
456
|
panelTitle: n(o)("inspector.title"),
|
|
457
|
-
"click-handle":
|
|
457
|
+
"click-handle": V,
|
|
458
458
|
class: "pc_Inspector",
|
|
459
459
|
pos: n(v)("inspectorPos")
|
|
460
460
|
}, {
|
|
461
461
|
default: I(() => [
|
|
462
|
-
e("div",
|
|
462
|
+
e("div", we, [
|
|
463
463
|
e("div", xe, t(n(o)("inspector.instanceProperties")), 1),
|
|
464
464
|
e("div", Ee, t(n(o)("inspector.typeProperties")), 1)
|
|
465
465
|
]),
|
|
@@ -484,7 +484,7 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
484
484
|
l[4] || (l[4] = e("span", { style: { "margin-top": "2px" } }, "UUID", -1)),
|
|
485
485
|
e("span", null, t(n(o)("inspector.type")), 1)
|
|
486
486
|
]),
|
|
487
|
-
e("div",
|
|
487
|
+
e("div", Ae, [
|
|
488
488
|
e("span", null, t(s.entity_name), 1),
|
|
489
489
|
e("span", null, t(s.entity_id), 1),
|
|
490
490
|
e("span", null, t(s.entity_type), 1)
|
|
@@ -493,9 +493,9 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
493
493
|
[m, s.expanded]
|
|
494
494
|
])
|
|
495
495
|
]),
|
|
496
|
-
e("ul",
|
|
497
|
-
(c(!0), r(y, null,
|
|
498
|
-
key:
|
|
496
|
+
e("ul", Ve, [
|
|
497
|
+
(c(!0), r(y, null, C(s.propertySets, (p, R) => (c(), r("li", {
|
|
498
|
+
key: R,
|
|
499
499
|
class: "propertyset",
|
|
500
500
|
onClick: (g) => T(p)
|
|
501
501
|
}, [
|
|
@@ -508,11 +508,11 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
508
508
|
]),
|
|
509
509
|
d(e("div", Ue, [
|
|
510
510
|
e("ul", $e, [
|
|
511
|
-
(c(!0), r(y, null,
|
|
512
|
-
key:
|
|
511
|
+
(c(!0), r(y, null, C(p.properties, (g, w) => (c(), r("li", {
|
|
512
|
+
key: w,
|
|
513
513
|
class: "properties"
|
|
514
514
|
}, [
|
|
515
|
-
(c(!0), r(y, null,
|
|
515
|
+
(c(!0), r(y, null, C(g, (x, P) => (c(), r("div", {
|
|
516
516
|
class: "title_value",
|
|
517
517
|
key: P
|
|
518
518
|
}, [
|
|
@@ -532,14 +532,14 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
532
532
|
], 512), [
|
|
533
533
|
[m, h.value]
|
|
534
534
|
]),
|
|
535
|
-
d(e("div",
|
|
536
|
-
e("div",
|
|
535
|
+
d(e("div", Ge, [
|
|
536
|
+
e("div", Ke, [
|
|
537
537
|
e("span", null, t(n(o)("inspector.objectCount")), 1),
|
|
538
538
|
e("span", Qe, t(a.objectCount), 1)
|
|
539
539
|
]),
|
|
540
|
-
e("div",
|
|
540
|
+
e("div", Je, [
|
|
541
541
|
e("span", null, t(n(o)("inspector.pSetsCount")), 1),
|
|
542
|
-
e("span",
|
|
542
|
+
e("span", Ze, t(a.pSetsCount), 1)
|
|
543
543
|
]),
|
|
544
544
|
n(v)("multiModel") ? O("", !0) : (c(), r("div", Xe, [
|
|
545
545
|
e("span", null, t(n(o)("bcf.createDate")), 1),
|
|
@@ -564,7 +564,7 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
564
564
|
class: "close",
|
|
565
565
|
width: 0.4,
|
|
566
566
|
"size-type": "rem",
|
|
567
|
-
"click-handle":
|
|
567
|
+
"click-handle": V
|
|
568
568
|
})
|
|
569
569
|
])
|
|
570
570
|
]),
|
|
@@ -599,15 +599,15 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
599
599
|
]),
|
|
600
600
|
e("div", yt, [
|
|
601
601
|
e("span", vt, t(n(o)("inspector.type")), 1),
|
|
602
|
-
e("span",
|
|
602
|
+
e("span", Ct, t(s.entity_type), 1)
|
|
603
603
|
])
|
|
604
604
|
], 512), [
|
|
605
605
|
[m, s.expanded]
|
|
606
606
|
])
|
|
607
607
|
]),
|
|
608
|
-
e("ul",
|
|
609
|
-
(c(!0), r(y, null,
|
|
610
|
-
key:
|
|
608
|
+
e("ul", ft, [
|
|
609
|
+
(c(!0), r(y, null, C(s.propertySets, (p, R) => (c(), r("li", {
|
|
610
|
+
key: R,
|
|
611
611
|
class: "propertyset",
|
|
612
612
|
onClick: (g) => T(p)
|
|
613
613
|
}, [
|
|
@@ -620,11 +620,11 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
620
620
|
]),
|
|
621
621
|
d(e("div", Tt, [
|
|
622
622
|
e("ul", St, [
|
|
623
|
-
(c(!0), r(y, null,
|
|
624
|
-
key:
|
|
623
|
+
(c(!0), r(y, null, C(p.properties, (g, w) => (c(), r("li", {
|
|
624
|
+
key: w,
|
|
625
625
|
class: "properties"
|
|
626
626
|
}, [
|
|
627
|
-
(c(!0), r(y, null,
|
|
627
|
+
(c(!0), r(y, null, C(g, (x, P) => (c(), r("div", {
|
|
628
628
|
class: "title_value",
|
|
629
629
|
key: P
|
|
630
630
|
}, [
|
|
@@ -644,14 +644,14 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
644
644
|
], 512), [
|
|
645
645
|
[m, h.value]
|
|
646
646
|
]),
|
|
647
|
-
d(e("div",
|
|
647
|
+
d(e("div", Dt, [
|
|
648
648
|
e("div", null, [
|
|
649
649
|
e("span", null, t(n(o)("inspector.objectCount")), 1),
|
|
650
|
-
e("span",
|
|
650
|
+
e("span", Rt, t(a.objectCount), 1)
|
|
651
651
|
]),
|
|
652
652
|
e("div", null, [
|
|
653
653
|
e("span", null, t(n(o)("inspector.pSetsCount")), 1),
|
|
654
|
-
e("span",
|
|
654
|
+
e("span", wt, t(a.pSetsCount), 1)
|
|
655
655
|
]),
|
|
656
656
|
e("div", null, [
|
|
657
657
|
e("span", null, t(n(o)("bcf.createDate")), 1),
|
|
@@ -672,7 +672,7 @@ const de = { class: "myInspector_content" }, me = { class: "title" }, he = ["src
|
|
|
672
672
|
], 64);
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
|
-
}), jt = /* @__PURE__ */ ie(Bt, [["__scopeId", "data-v-
|
|
675
|
+
}), jt = /* @__PURE__ */ ie(Bt, [["__scopeId", "data-v-38f74985"]]);
|
|
676
676
|
export {
|
|
677
677
|
jt as default
|
|
678
678
|
};
|