@xtctwins/tctwins-bimx-engine 0.2.46 → 0.2.48

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.
Files changed (37) hide show
  1. package/dist/AnnotationTool-C3vJaq6R.mjs +167 -0
  2. package/dist/BIMX_Viewer_Lib.es.js +12 -12
  3. package/dist/BIMX_Viewer_Lib.umd.js +138 -138
  4. package/dist/CommentTool-5iDHFVhL.mjs +1529 -0
  5. package/dist/HiddenTool-KGygX2sW.mjs +57 -0
  6. package/dist/{InspectorTool-mHRoQ-GI.mjs → InspectorTool-CyTo6gC_.mjs} +56 -57
  7. package/dist/{MeasureTool-RqNo_Ckx.mjs → MeasureTool-CeGTlu33.mjs} +41 -42
  8. package/dist/{MouseTool-BoNaoQct.mjs → MouseTool-CoKL5sCC.mjs} +17 -17
  9. package/dist/NavigateTool-D8tB7wGP.mjs +52 -0
  10. package/dist/{RoamTool-DCjBsvoI.mjs → RoamTool-BaKey7zA.mjs} +35 -36
  11. package/dist/ScreenShotTool-BaTlz7GN.mjs +500 -0
  12. package/dist/{SectionTool-DieQ55pG.mjs → SectionTool-C2w9I2Ns.mjs} +52 -53
  13. package/dist/SettingTool-BpDg5NKY.mjs +815 -0
  14. package/dist/{StructureTree-DKV-7jzz.mjs → StructureTree-Ck9n6f6b.mjs} +164 -165
  15. package/dist/alert-4X84yxbk.mjs +47 -0
  16. package/dist/{el-input-number-PPKOnKXi.mjs → el-input-number-Dkl8iRgF.mjs} +107 -107
  17. package/dist/{index-CAETKPrv.mjs → index-D9qI45-g.mjs} +28370 -28350
  18. package/dist/{panel.vue_vue_type_style_index_0_lang-KyKwKK6P.mjs → panel.vue_vue_type_style_index_0_lang-BeaDb5mw.mjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{tallPanel-CJYLA-N6.mjs → tallPanel-TQ16o1sO.mjs} +5 -5
  21. package/package.json +2 -2
  22. package/types/components/BCFComponents/BCFFilter.vue.d.ts +2 -2
  23. package/types/components/BimxViewerComp.vue.d.ts +20 -0
  24. package/types/i18n/index.d.ts +785 -771
  25. package/types/i18n/locales/en-US.d.ts +363 -359
  26. package/types/i18n/locales/zh-CN.d.ts +363 -359
  27. package/types/index.d.ts +4 -4
  28. package/types/pages/BimxViewerEntry.vue.d.ts +66 -0
  29. package/types/store/localeStore.d.ts +0 -10
  30. package/dist/AnnotationTool-CYSBNMEm.mjs +0 -167
  31. package/dist/CommentTool-BJyUEGpp.mjs +0 -1530
  32. package/dist/HiddenTool-Bqo4_PrD.mjs +0 -57
  33. package/dist/NavigateTool-CByCoaJH.mjs +0 -52
  34. package/dist/ScreenShotTool-Da1O0iGY.mjs +0 -116
  35. package/dist/SettingTool-CZCVaXaF.mjs +0 -865
  36. package/dist/alert-CpFuS6Gd.mjs +0 -48
  37. package/dist/el-radio-group-D_mYSkem.mjs +0 -392
@@ -0,0 +1,167 @@
1
+ import { _ as X } from "./alert-4X84yxbk.mjs";
2
+ import { defineComponent as O, ref as p, watch as H, onMounted as q, onBeforeUnmount as R, createElementBlock as i, openBlock as a, withDirectives as U, unref as n, createCommentVNode as b, createElementVNode as c, normalizeClass as f, Fragment as V, renderList as C, toDisplayString as z, createVNode as F, vShow as j } from "vue";
3
+ import { A as G, B as J, C as o, D as v, O as r, I as K } from "./index-D9qI45-g.mjs";
4
+ import { A as l } from "./const-DHP_A8oY.mjs";
5
+ const Q = { class: "annotation_component" }, Y = {
6
+ key: 0,
7
+ id: "annotation_toolbar",
8
+ class: "annotation_toolbar"
9
+ }, Z = {
10
+ key: 0,
11
+ class: "toolbar_trangle"
12
+ }, ee = { class: "annotation_toolbar_group" }, ne = ["id", "disabled", "onClick"], te = ["src"], oe = {
13
+ key: 1,
14
+ class: "toolbar_trangle"
15
+ }, ie = {
16
+ key: 1,
17
+ class: "mobile_annotation_toolbar"
18
+ }, ae = { class: "anno_toolList" }, se = { class: "label-list" }, ce = ["onClick"], re = { class: "item-img" }, le = ["src"], _e = { class: "item-name" }, de = /* @__PURE__ */ O({
19
+ __name: "AnnotationTool",
20
+ props: ["componentId"],
21
+ emits: ["uploadImage", "clickAnnotation", "emitHandler"],
22
+ setup($, { emit: y }) {
23
+ const P = G(), w = J(), S = y, d = (e) => {
24
+ S("emitHandler", e);
25
+ };
26
+ let T;
27
+ const A = p(!0), s = p("");
28
+ let m;
29
+ const M = p(), h = $;
30
+ H(
31
+ () => w.isToolActive(h.componentId),
32
+ (e) => {
33
+ e || (s.value = "");
34
+ }
35
+ ), q(() => {
36
+ M.value = o("annoLimit"), w.setReadyById(h.componentId);
37
+ });
38
+ const x = {
39
+ image: `${r}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
40
+ file: `${r}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
41
+ record: `${r}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
42
+ text: `${r}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
43
+ video: `${r}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
44
+ }, k = () => {
45
+ T = window.bimViewer.annotationTool, T.setTypeImage(x), m = window.bimViewer.eventTrigger, m.on("createAnnotation", (e) => {
46
+ d({
47
+ isTool: !0,
48
+ event_target: "AnnotationTool",
49
+ event_name: "createAnnotation",
50
+ content: {
51
+ currentAnnotation: e
52
+ }
53
+ });
54
+ }), m.on("markerClicked", (e) => {
55
+ d({
56
+ isTool: !0,
57
+ event_target: "AnnotationTool",
58
+ event_name: "clickAnnotation",
59
+ content: {
60
+ targetAnno: e
61
+ }
62
+ });
63
+ }), o("isMobile") || m.on("requestDeleteMarker", (e) => {
64
+ d({
65
+ isTool: !0,
66
+ event_target: "AnnotationTool",
67
+ event_name: "requestDelAnno",
68
+ content: {
69
+ msg: "请求删除指定标注",
70
+ annoId: e
71
+ }
72
+ });
73
+ });
74
+ };
75
+ v.on("BimViewer", k);
76
+ const I = (e) => {
77
+ g(L(e.type));
78
+ };
79
+ v.on("setAnnoStatus", I), R(() => {
80
+ v.off("BimViewer", k), v.off("setAnnoStatus", I);
81
+ });
82
+ const L = (e) => {
83
+ if (e === "image")
84
+ return l[0];
85
+ if (e === "record")
86
+ return l[1];
87
+ if (e === "video")
88
+ return l[2];
89
+ if (e === "file")
90
+ return l[3];
91
+ if (e === "text")
92
+ return l[4];
93
+ }, g = (e) => {
94
+ o("editPrivilege") != 1 && (s.value === e.code ? (s.value = "", B(e, !1)) : (s.value = e.code, B(e, !0)));
95
+ }, N = (e) => {
96
+ window.bimViewer.annotationTool.setEnabled(e);
97
+ }, B = (e, _) => {
98
+ N(_), D(e.code, _);
99
+ }, D = (e, _) => {
100
+ window.bimViewer.annotationTool.setCurrentType(e), d({
101
+ isTool: !0,
102
+ event_target: "AnnotationTool",
103
+ event_name: "clickAnnoTool",
104
+ content: {
105
+ active: _,
106
+ tool_type: e
107
+ }
108
+ });
109
+ };
110
+ return (e, _) => {
111
+ const E = X;
112
+ return a(), i("div", Q, [
113
+ n(o)("isMobile") ? (a(), i("div", ie, [
114
+ c("div", ae, [
115
+ c("div", se, [
116
+ (a(!0), i(V, null, C(n(l), (t, u) => (a(), i("div", {
117
+ key: u,
118
+ class: f(["label-item", { "label-item-active": s.value === t.code && n(o)("editPrivilege") == 0, noPermission: n(o)("editPrivilege") == 1 }]),
119
+ onClick: (W) => g(t)
120
+ }, [
121
+ c("div", re, [
122
+ c("img", {
123
+ class: "label-item-img",
124
+ src: n(r) + `/bim-viewer/annotation/new-icons/bimkk-mobile-anno-${s.value === t.code && n(o)("editPrivilege") == 0 ? t.imgActive : t.img}.svg`,
125
+ alt: ""
126
+ }, null, 8, le),
127
+ c("div", _e, z(n(P)(t.name)), 1)
128
+ ])
129
+ ], 10, ce))), 128))
130
+ ])
131
+ ])
132
+ ])) : (a(), i("div", Y, [
133
+ n(o)("annotationPos").pos.includes("top") ? (a(), i("div", Z)) : b("", !0),
134
+ c("div", {
135
+ class: f(["annotation_toolbar_wrapper", { annotation_toolbar_wrapper_disable: n(o)("editPrivilege") == 1 }])
136
+ }, [
137
+ c("div", ee, [
138
+ (a(!0), i(V, null, C(n(l), (t, u) => (a(), i("button", {
139
+ id: `annotation_tool_btn_${u}`,
140
+ key: u,
141
+ class: f(["annotation_tool_btn", { active: s.value === t.code }]),
142
+ disabled: n(o)("editPrivilege") == 1,
143
+ onClick: (W) => g(t)
144
+ }, [
145
+ b("", !0),
146
+ c("img", {
147
+ src: `${n(r)}/bim-viewer/action-bars/panno-${s.value !== t.code ? t.img : t.imgActive}.svg`
148
+ }, null, 8, te)
149
+ ], 10, ne))), 128))
150
+ ])
151
+ ], 2),
152
+ n(o)("annotationPos").pos.includes("bottom") ? (a(), i("div", oe)) : b("", !0)
153
+ ])),
154
+ U(F(E, {
155
+ "click-handle": () => {
156
+ A.value = !1;
157
+ }
158
+ }, null, 8, ["click-handle"]), [
159
+ [j, A.value && n(o)("editPrivilege") == 0]
160
+ ])
161
+ ]);
162
+ };
163
+ }
164
+ }), pe = /* @__PURE__ */ K(de, [["__scopeId", "data-v-7c08da5a"]]);
165
+ export {
166
+ pe as default
167
+ };
@@ -1,17 +1,17 @@
1
- import { as as e, L as o, at as t, az as i, V as l, ay as n, aw as I, ax as r, aC as C, au as f, aA as g, aB as u, I as B, av as S } from "./index-CAETKPrv.mjs";
1
+ import { at as e, M as t, au as o, aA as i, V as l, ax as n, ay as I, aD as r, av as C, az as f, aw as g, aB as u, aC as B, J as M } from "./index-D9qI45-g.mjs";
2
2
  export {
3
3
  e as BIMXViewer,
4
- o as BIMX_CONFIGS,
5
- t as InitialViewer,
4
+ t as BIMX_CONFIGS,
5
+ o as InitialViewer,
6
6
  i as InitializeConfigs,
7
7
  l as ViewerManager,
8
- n as defaultI18nConfig,
9
- I as enUS,
10
- r as messages,
11
- C as setAllToolClose,
12
- f as setConfigs,
13
- g as setToolStatusById,
14
- u as setToolStatusBykey,
15
- B as useLocaleStore,
16
- S as zhCN
8
+ n as bimxMessages,
9
+ I as defaultI18nConfig,
10
+ r as setAllToolClose,
11
+ C as setConfigs,
12
+ f as setGlobalI18n,
13
+ g as setI18nInstance,
14
+ u as setToolStatusById,
15
+ B as setToolStatusBykey,
16
+ M as useLocaleStore
17
17
  };