@xtctwins/tctwins-bimx-engine 0.1.52 → 0.1.54

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 (29) hide show
  1. package/README.md +1 -1
  2. package/dist/AnnotationTool-BOXTcLJV.mjs +180 -0
  3. package/dist/BIMX_Viewer_Lib.es.js +1 -1
  4. package/dist/BIMX_Viewer_Lib.umd.js +58 -58
  5. package/dist/{CommentTool-Q5ABIPpg.mjs → CommentTool-BHXRr7nx.mjs} +68 -66
  6. package/dist/{HiddenTool-Cb0DphTk.mjs → HiddenTool-CE77nseH.mjs} +1 -1
  7. package/dist/{InspectorTool-ek2AO5pw.mjs → InspectorTool-DgZuCqEz.mjs} +4 -4
  8. package/dist/{MeasureTool-DP3450en.mjs → MeasureTool-NYk82795.mjs} +6 -6
  9. package/dist/{NavigateTool-CnIV3C3h.mjs → NavigateTool-hhaWsVh4.mjs} +1 -1
  10. package/dist/{RoamTool-BTjC2tbg.mjs → RoamTool-Dp2veMRm.mjs} +1 -1
  11. package/dist/{ScreenShotTool-Cl0xA4Pk.mjs → ScreenShotTool-BPB3K_SU.mjs} +4 -4
  12. package/dist/{SectionTool-CgaApHtV.mjs → SectionTool-y0eOF9jo.mjs} +6 -6
  13. package/dist/{SettingTool-BuxW7scx.mjs → SettingTool-DP62Y_nC.mjs} +6 -6
  14. package/dist/{StructureTree-C1UlDERb.mjs → StructureTree-D9uRLuCO.mjs} +7 -7
  15. package/dist/{alert-CdecUNEx.mjs → alert-B9YwNFSC.mjs} +2 -2
  16. package/dist/{closeButton-CnhyspFW.mjs → closeButton-BSW3VWs-.mjs} +1 -1
  17. package/dist/{debounce-DZYkAHaW.mjs → debounce-B6LVHvot.mjs} +1 -1
  18. package/dist/{el-checkbox-CuSss4_1.mjs → el-checkbox-aMXg0mKw.mjs} +4 -4
  19. package/dist/{el-input-WjQIx5UA.mjs → el-input-Da3lwJ2C.mjs} +1 -1
  20. package/dist/{el-input-number-Dw1heCUN.mjs → el-input-number-CfghO6IU.mjs} +4 -4
  21. package/dist/{index-D81dsIzo.mjs → index-5b7ULIHz.mjs} +37 -37
  22. package/dist/{index-fmMObkBM.mjs → index-DrxTjz_8.mjs} +1 -1
  23. package/dist/{index-BWAJ6zVt.mjs → index-pUTEHpwG.mjs} +1 -1
  24. package/dist/{isEqual-CQF3hdYO.mjs → isEqual-C0OPK27A.mjs} +1 -1
  25. package/dist/{panel.vue_vue_type_style_index_0_lang-DoD0mFEY.mjs → panel.vue_vue_type_style_index_0_lang-B8PZEnVY.mjs} +2 -2
  26. package/dist/style.css +1 -1
  27. package/dist/{tallPanel-CKbI6eZz.mjs → tallPanel-CXZ3V34N.mjs} +2 -2
  28. package/package.json +2 -2
  29. package/dist/AnnotationTool-Cd9pLYlo.mjs +0 -170
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @xtctwins/tctwins-bimx-engine
2
2
 
3
- # mode: uat
3
+ # mode: dev
@@ -0,0 +1,180 @@
1
+ import { _ as q } from "./alert-B9YwNFSC.mjs";
2
+ import { j as P, k as d, l as g, O as l, m as R, n as U } from "./index-5b7ULIHz.mjs";
3
+ import { defineComponent as j, ref as b, watch as z, onMounted as F, onBeforeUnmount as G, openBlock as i, createElementBlock as a, unref as c, createCommentVNode as f, createElementVNode as o, Fragment as V, renderList as I, normalizeClass as C, createVNode as $, withCtx as J, toDisplayString as K, withDirectives as Q, vShow as Y } from "vue";
4
+ import { A as r } from "./const-B1FlFgEN.mjs";
5
+ const Z = { class: "annotation_component" }, nn = {
6
+ key: 0,
7
+ id: "annotation_toolbar",
8
+ class: "annotation_toolbar"
9
+ }, tn = {
10
+ key: 0,
11
+ class: "toolbar_trangle"
12
+ }, on = { class: "annotation_toolbar_wrapper" }, en = { class: "annotation_toolbar_group" }, an = ["id", "onClick"], sn = ["src"], ln = {
13
+ key: 1,
14
+ class: "toolbar_trangle"
15
+ }, cn = {
16
+ key: 1,
17
+ class: "mobile_annotation_toolbar"
18
+ }, rn = { class: "anno_toolList" }, _n = { class: "label-list" }, dn = ["onClick"], mn = { class: "item-img" }, un = ["src"], vn = { class: "item-name" }, gn = /* @__PURE__ */ j({
19
+ __name: "AnnotationTool",
20
+ props: ["componentId"],
21
+ emits: ["uploadImage", "clickAnnotation", "emitHandler"],
22
+ setup(S, { emit: y }) {
23
+ const T = P(), M = y, m = (n) => {
24
+ M("emitHandler", n);
25
+ };
26
+ let _;
27
+ const w = b(!0), s = b("");
28
+ let u;
29
+ const x = b(), A = S;
30
+ z(
31
+ () => T.isToolActive(A.componentId),
32
+ (n) => {
33
+ n || (s.value = "");
34
+ }
35
+ ), F(() => {
36
+ x.value = d("annoLimit"), T.setReadyById(A.componentId);
37
+ });
38
+ const E = {
39
+ image: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
40
+ file: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
41
+ record: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
42
+ text: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
43
+ video: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
44
+ }, h = () => {
45
+ _ = window.BimViewer.annotationTool, _.setTypeImage(E), u = window.BimViewer.eventTrigger, u.on("createAnnotation", (n) => {
46
+ m({
47
+ isTool: !0,
48
+ event_target: "AnnotationTool",
49
+ event_name: "createAnnotation",
50
+ content: {
51
+ currentAnnotation: n
52
+ }
53
+ });
54
+ }), u.on("markerClicked", (n) => {
55
+ m({
56
+ isTool: !0,
57
+ event_target: "AnnotationTool",
58
+ event_name: "clickAnnotation",
59
+ content: {
60
+ targetAnno: n
61
+ }
62
+ });
63
+ }), d("isMobile") || u.on("requestDeleteMarker", (n) => {
64
+ m({
65
+ isTool: !0,
66
+ event_target: "AnnotationTool",
67
+ event_name: "requestDelAnno",
68
+ content: {
69
+ msg: "请求删除指定标注",
70
+ annoId: n
71
+ }
72
+ });
73
+ }), setTimeout(() => {
74
+ _.addAnnotation("11111", [-30, 0, -101], "image"), _.addAnnotation("22222", [-22, 0, -103], "image");
75
+ }, 1e3);
76
+ };
77
+ g.on("BimViewer", h);
78
+ const k = (n) => {
79
+ p(L(n.type));
80
+ };
81
+ g.on("setAnnoStatus", k), G(() => {
82
+ g.off("BimViewer", h), g.off("setAnnoStatus", k);
83
+ });
84
+ const L = (n) => {
85
+ if (n === "image")
86
+ return r[0];
87
+ if (n === "record")
88
+ return r[1];
89
+ if (n === "video")
90
+ return r[2];
91
+ if (n === "file")
92
+ return r[3];
93
+ if (n === "text")
94
+ return r[4];
95
+ }, p = (n) => {
96
+ s.value === n.code ? (s.value = "", B(n, !1)) : (s.value = n.code, B(n, !0));
97
+ }, N = (n) => {
98
+ window.BimViewer.annotationTool.setEnabled(n);
99
+ }, B = (n, e) => {
100
+ N(e), W(n.code, e);
101
+ }, W = (n, e) => {
102
+ window.BimViewer.annotationTool.setCurrentType(n), m({
103
+ isTool: !0,
104
+ event_target: "AnnotationTool",
105
+ event_name: "clickAnnoTool",
106
+ content: {
107
+ active: e,
108
+ tool_type: n
109
+ }
110
+ });
111
+ }, X = () => {
112
+ _.setAllVisible();
113
+ };
114
+ return (n, e) => {
115
+ const D = R, O = q;
116
+ return i(), a("div", Z, [
117
+ c(d)("isMobile") ? (i(), a("div", cn, [
118
+ e[1] || (e[1] = o("div", { class: "label-title-box" }, [
119
+ o("div", { class: "label-title" }, "标注")
120
+ ], -1)),
121
+ o("div", rn, [
122
+ $(D, null, {
123
+ default: J(() => [
124
+ o("div", _n, [
125
+ (i(!0), a(V, null, I(c(r), (t, v) => (i(), a("div", {
126
+ key: v,
127
+ class: C(["label-item", { "label-item-active": s.value === t.code }]),
128
+ onClick: (H) => p(t)
129
+ }, [
130
+ o("div", mn, [
131
+ o("img", {
132
+ class: "label-item-img",
133
+ src: c(l) + `/bim-viewer/label-bar/${s.value === t.code ? t.imgActive : t.img}.svg`,
134
+ alt: ""
135
+ }, null, 8, un)
136
+ ]),
137
+ o("div", vn, K(t.name), 1)
138
+ ], 10, dn))), 128))
139
+ ])
140
+ ]),
141
+ _: 1
142
+ }),
143
+ o("div", {
144
+ class: "show_button",
145
+ onClick: e[0] || (e[0] = (t) => X())
146
+ }, " 显/隐 ")
147
+ ])
148
+ ])) : (i(), a("div", nn, [
149
+ c(d)("annotationPos").pos.includes("top") ? (i(), a("div", tn)) : f("", !0),
150
+ o("div", on, [
151
+ o("div", en, [
152
+ (i(!0), a(V, null, I(c(r), (t, v) => (i(), a("button", {
153
+ id: `annotation_tool_btn_${v}`,
154
+ key: v,
155
+ class: C(["annotation_tool_btn", { active: s.value === t.code }]),
156
+ onClick: (H) => p(t)
157
+ }, [
158
+ f("", !0),
159
+ o("img", {
160
+ src: `${c(l)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${s.value !== t.code ? t.img : t.img_active}.png`
161
+ }, null, 8, sn)
162
+ ], 10, an))), 128))
163
+ ])
164
+ ]),
165
+ c(d)("annotationPos").pos.includes("bottom") ? (i(), a("div", ln)) : f("", !0)
166
+ ])),
167
+ Q($(O, {
168
+ "click-handle": () => {
169
+ w.value = !1;
170
+ }
171
+ }, null, 8, ["click-handle"]), [
172
+ [Y, w.value]
173
+ ])
174
+ ]);
175
+ };
176
+ }
177
+ }), wn = /* @__PURE__ */ U(gn, [["__scopeId", "data-v-ea004a19"]]);
178
+ export {
179
+ wn as default
180
+ };
@@ -1,4 +1,4 @@
1
- import { an as e, B as o, ao as t, aq as i, W as l, at as r, ap as n, ar as I, as as B } from "./index-D81dsIzo.mjs";
1
+ import { an as e, B as o, ao as t, aq as i, W as l, at as r, ap as n, ar as I, as as B } from "./index-5b7ULIHz.mjs";
2
2
  export {
3
3
  e as BIMXViewer,
4
4
  o as BIMX_CONFIGS,