@xtctwins/tctwins-bimx-engine 0.3.10 → 0.3.11

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 (41) hide show
  1. package/dist/{AnnotationTool-w5bGE9cJ.mjs → AnnotationTool-BnLd0s38.mjs} +2 -2
  2. package/dist/AnnotationTool-Bp8DGFFA.mjs +167 -0
  3. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  4. package/dist/BIMX_Viewer_Lib.umd.js +119 -119
  5. package/dist/{CameraViewTool-CojdKWOg.mjs → CameraViewTool-BGmwAori.mjs} +1 -1
  6. package/dist/CameraViewTool-BwVnc0ua.mjs +164 -0
  7. package/dist/{CommentTool-B9VooYuw.mjs → CommentTool-B9TgO52t.mjs} +1 -1
  8. package/dist/CommentTool-C7NLPxMd.mjs +1529 -0
  9. package/dist/{HiddenTool-Ckt9Rq-S.mjs → HiddenTool-CNMJqZzC.mjs} +1 -1
  10. package/dist/HiddenTool-i1AESn4-.mjs +57 -0
  11. package/dist/{InspectorTool-IbSGNc-p.mjs → InspectorTool-CiyN_aCB.mjs} +29 -28
  12. package/dist/InspectorTool-D4gr7uiQ.mjs +679 -0
  13. package/dist/{MeasureTool-ce0glmOH.mjs → MeasureTool-BNBUx-1X.mjs} +2 -2
  14. package/dist/MeasureTool-Cxnp9MVY.mjs +323 -0
  15. package/dist/{MouseTool-DEx7EQjC.mjs → MouseTool-B07SstRZ.mjs} +1 -1
  16. package/dist/MouseTool-DVqNDADf.mjs +84 -0
  17. package/dist/{NavigateTool-CezBNc2T.mjs → NavigateTool-B8qIl9xy.mjs} +1 -1
  18. package/dist/NavigateTool-DKTSPVCL.mjs +52 -0
  19. package/dist/{RoamTool-B-sG7gTn.mjs → RoamTool-3sDI1Ouu.mjs} +1 -1
  20. package/dist/RoamTool-CazuxheL.mjs +287 -0
  21. package/dist/{ScreenShotTool-Ybx6fN8G.mjs → ScreenShotTool-CjsT2-Va.mjs} +2 -2
  22. package/dist/ScreenShotTool-fYVxpPrW.mjs +430 -0
  23. package/dist/{SectionTool-Bk_tM0iv.mjs → SectionTool-Bpk5jewK.mjs} +4 -4
  24. package/dist/SectionTool-DMSGkjYm.mjs +331 -0
  25. package/dist/{SettingTool-I5JTKEs4.mjs → SettingTool-BuSm2JB6.mjs} +3 -3
  26. package/dist/SettingTool-IBRpWdfo.mjs +695 -0
  27. package/dist/{StructureTree-B4zsT8iE.mjs → StructureTree-B183vT5b.mjs} +3 -3
  28. package/dist/StructureTree-D9z28tm4.mjs +1686 -0
  29. package/dist/{alert-mCw4l6h5.mjs → alert-DN7oOiZl.mjs} +1 -1
  30. package/dist/alert-DwTFq4bp.mjs +47 -0
  31. package/dist/{el-slider-Coa3NGV1.mjs → el-slider-C9_q447A.mjs} +1 -1
  32. package/dist/el-slider-dslleM3g.mjs +1059 -0
  33. package/dist/index-BzB8rqmg.mjs +131961 -0
  34. package/dist/{index-12nO3dW-.mjs → index-DfRswjrC.mjs} +19135 -18950
  35. package/dist/{panel.vue_vue_type_style_index_0_lang-DrlLccGf.mjs → panel.vue_vue_type_style_index_0_lang-DOsptET6.mjs} +1 -1
  36. package/dist/panel.vue_vue_type_style_index_0_lang-E8w23EhV.mjs +61 -0
  37. package/dist/style.css +1 -1
  38. package/dist/{tallPanel-B3pDz4Za.mjs → tallPanel-D0Zgkc3n.mjs} +1 -1
  39. package/dist/tallPanel-Dp1ZbCTR.mjs +84 -0
  40. package/package.json +3 -2
  41. package/types/viewerManager/load/loadModel.d.ts +23 -0
@@ -1,6 +1,6 @@
1
- import { _ as D } from "./alert-mCw4l6h5.mjs";
1
+ import { _ as D } from "./alert-DwTFq4bp.mjs";
2
2
  import { defineComponent as H, ref as p, watch as O, onMounted as q, onBeforeUnmount as F, openBlock as i, createElementBlock as a, unref as n, createCommentVNode as b, createElementVNode as c, normalizeClass as f, Fragment as B, renderList as C, toDisplayString as R, withDirectives as U, createVNode as z, vShow as G } from "vue";
3
- import { F as j, G as J, H as o, I as v, P as r, M as K } from "./index-12nO3dW-.mjs";
3
+ import { F as j, G as J, H as o, I as v, P as r, M as K } from "./index-DfRswjrC.mjs";
4
4
  import { A as l } from "./const-DOnRsYpZ.mjs";
5
5
  const Q = { class: "annotation_component" }, Y = {
6
6
  key: 0,
@@ -0,0 +1,167 @@
1
+ import { _ as D } from "./alert-DN7oOiZl.mjs";
2
+ import { defineComponent as H, ref as p, watch as O, onMounted as q, onBeforeUnmount as F, openBlock as i, createElementBlock as a, unref as n, createCommentVNode as b, createElementVNode as c, normalizeClass as f, Fragment as B, renderList as C, toDisplayString as R, withDirectives as U, createVNode as z, vShow as G } from "vue";
3
+ import { F as j, G as J, H as o, I as v, P as r, M as K } from "./index-BzB8rqmg.mjs";
4
+ import { A as l } from "./const-DOnRsYpZ.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__ */ H({
19
+ __name: "AnnotationTool",
20
+ props: ["componentId"],
21
+ emits: ["uploadImage", "clickAnnotation", "emitHandler"],
22
+ setup(P, { emit: $ }) {
23
+ const y = j(), w = J(), M = $, d = (e) => {
24
+ M("emitHandler", e);
25
+ };
26
+ let T;
27
+ const A = p(!0), s = p("");
28
+ let m;
29
+ const S = p(), h = P;
30
+ O(
31
+ () => w.isToolActive(h.componentId),
32
+ (e) => {
33
+ e || (s.value = "");
34
+ }
35
+ ), q(() => {
36
+ S.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), F(() => {
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 = "", V(e, !1)) : (s.value = e.code, V(e, !0)));
95
+ }, N = (e) => {
96
+ window.bimViewer.annotationTool.setEnabled(e);
97
+ }, V = (e, _) => {
98
+ N(_), E(e.code, _);
99
+ }, E = (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 W = D;
112
+ return i(), a("div", Q, [
113
+ n(o)("isMobile") ? (i(), a("div", ie, [
114
+ c("div", ae, [
115
+ c("div", se, [
116
+ (i(!0), a(B, null, C(n(l), (t, u) => (i(), a("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: (X) => 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, R(n(y)(t.name)), 1)
128
+ ])
129
+ ], 10, ce))), 128))
130
+ ])
131
+ ])
132
+ ])) : (i(), a("div", Y, [
133
+ n(o)("annotationPos").pos.includes("top") ? (i(), a("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
+ (i(!0), a(B, null, C(n(l), (t, u) => (i(), a("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: (X) => 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") ? (i(), a("div", oe)) : b("", !0)
153
+ ])),
154
+ U(z(W, {
155
+ "click-handle": () => {
156
+ A.value = !1;
157
+ }
158
+ }, null, 8, ["click-handle"]), [
159
+ [G, 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,4 +1,4 @@
1
- import { ax as e, S as t, ay as o, az as i, Y as l, aA as n, aB as I, aC as r, aD as C, aE as f, aF as g, aG as B, aH as S, O as u } from "./index-12nO3dW-.mjs";
1
+ import { ax as e, S as t, ay as o, az as i, Y as l, aA as n, aB as I, aC as r, aD as C, aE as f, aF as g, aG as B, aH as S, O as u } from "./index-BzB8rqmg.mjs";
2
2
  export {
3
3
  e as BIMXViewer,
4
4
  t as BIMX_CONFIGS,