@xtctwins/tctwins-bimx-engine 0.2.52 → 0.2.53

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 (22) hide show
  1. package/dist/AnnotationTool-BU5DCBHd.mjs +239 -0
  2. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  3. package/dist/BIMX_Viewer_Lib.umd.js +83 -83
  4. package/dist/{CommentTool-C3hDmNLC.mjs → CommentTool-D_AlsrTE.mjs} +1 -1
  5. package/dist/{HiddenTool-D26ih-kX.mjs → HiddenTool-DvSKSssY.mjs} +1 -1
  6. package/dist/{InspectorTool-B058fBid.mjs → InspectorTool-DLWyGXgI.mjs} +3 -3
  7. package/dist/{MeasureTool-BgWpRhtI.mjs → MeasureTool-BcVGavki.mjs} +2 -2
  8. package/dist/{MouseTool-DyeMRpWi.mjs → MouseTool-YNKPFjAo.mjs} +1 -1
  9. package/dist/{NavigateTool-6DcpLY_B.mjs → NavigateTool-DsY1_TdT.mjs} +1 -1
  10. package/dist/{RoamTool-Bgdy4dAF.mjs → RoamTool-BFVE2V3K.mjs} +1 -1
  11. package/dist/{ScreenShotTool-BLdvCs--.mjs → ScreenShotTool-BDUErHu1.mjs} +2 -2
  12. package/dist/{SectionTool-D4y-W2cu.mjs → SectionTool-4cRL2V6O.mjs} +4 -4
  13. package/dist/{SettingTool-D71E-pI1.mjs → SettingTool-BzaZsP21.mjs} +3 -3
  14. package/dist/{StructureTree-vv8HnIii.mjs → StructureTree-zC5APcxf.mjs} +3 -3
  15. package/dist/{alert-DjNWlk8Z.mjs → alert-p1T29wPF.mjs} +1 -1
  16. package/dist/{el-input-number-CuLIf7kb.mjs → el-input-number-BWTLtMdM.mjs} +1 -1
  17. package/dist/{index-DjyQVMs9.mjs → index-DNbbNkvv.mjs} +1110 -1116
  18. package/dist/{panel.vue_vue_type_style_index_0_lang-CX1KJ-Ml.mjs → panel.vue_vue_type_style_index_0_lang-6c_lx4nG.mjs} +1 -1
  19. package/dist/style.css +1 -1
  20. package/dist/{tallPanel-CAEQJ3Ko.mjs → tallPanel-ubDUD9VF.mjs} +1 -1
  21. package/package.json +1 -1
  22. package/dist/AnnotationTool-BevJEQLf.mjs +0 -167
@@ -1,4 +1,4 @@
1
- import { B as g, C as t, T as r, K as y, L as x, H as S, I as k } from "./index-DjyQVMs9.mjs";
1
+ import { B as g, C as t, T as r, K as y, L as x, H as S, I as k } from "./index-DNbbNkvv.mjs";
2
2
  import { defineComponent as P, ref as c, onMounted as W, watch as b, createElementBlock as f, openBlock as _, normalizeStyle as w, createElementVNode as o, createCommentVNode as C, toDisplayString as T, createVNode as N, unref as h, renderSlot as B } from "vue";
3
3
  const E = { class: "tall_panel_content" }, H = { class: "panel_top" }, $ = { class: "panel_title" }, L = { class: "panel_close" }, I = { class: "panel_content" }, M = {
4
4
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-bimx-engine",
3
- "version": "0.2.52",
3
+ "version": "0.2.53",
4
4
  "main": "dist/BIMX_Viewer_Lib.umd.js",
5
5
  "style": "dist/style.css",
6
6
  "module": "dist/BIMX_Viewer_Lib.es.js",
@@ -1,167 +0,0 @@
1
- import { _ as X } from "./alert-DjNWlk8Z.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-DjyQVMs9.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__ */ 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
- };