@xtctwins/tctwins-bimx-engine 0.1.54 → 0.1.55
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/dist/{AnnotationTool-BOXTcLJV.mjs → AnnotationTool-BoxIsRYe.mjs} +43 -39
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +3 -3
- package/dist/{CommentTool-BHXRr7nx.mjs → CommentTool-CqxxAF1d.mjs} +2 -2
- package/dist/{HiddenTool-CE77nseH.mjs → HiddenTool-CkB4kQh5.mjs} +1 -1
- package/dist/{InspectorTool-DgZuCqEz.mjs → InspectorTool-BhGawIZM.mjs} +4 -4
- package/dist/{MeasureTool-NYk82795.mjs → MeasureTool-CIzfWnNr.mjs} +6 -6
- package/dist/{NavigateTool-hhaWsVh4.mjs → NavigateTool-D17nKkX4.mjs} +1 -1
- package/dist/{RoamTool-Dp2veMRm.mjs → RoamTool-DqSaWSIq.mjs} +1 -1
- package/dist/{ScreenShotTool-BPB3K_SU.mjs → ScreenShotTool-Di_Vc9y-.mjs} +4 -4
- package/dist/{SectionTool-y0eOF9jo.mjs → SectionTool-BCNkOzQ7.mjs} +6 -6
- package/dist/{SettingTool-DP62Y_nC.mjs → SettingTool-ChQZVj5g.mjs} +6 -6
- package/dist/{StructureTree-D9uRLuCO.mjs → StructureTree-D1M-l_30.mjs} +7 -7
- package/dist/{alert-B9YwNFSC.mjs → alert-B1Qslhax.mjs} +2 -2
- package/dist/{closeButton-BSW3VWs-.mjs → closeButton-RTXzOzbn.mjs} +1 -1
- package/dist/{debounce-B6LVHvot.mjs → debounce-CGRuWkX-.mjs} +1 -1
- package/dist/{el-checkbox-aMXg0mKw.mjs → el-checkbox-U6UAu1Qs.mjs} +4 -4
- package/dist/{el-input-Da3lwJ2C.mjs → el-input-Cojmk_Cr.mjs} +1 -1
- package/dist/{el-input-number-CfghO6IU.mjs → el-input-number-bqM16ua1.mjs} +4 -4
- package/dist/{index-DrxTjz_8.mjs → index-BDk-2Lcf.mjs} +1 -1
- package/dist/{index-pUTEHpwG.mjs → index-DVxJkJ7s.mjs} +1 -1
- package/dist/{index-5b7ULIHz.mjs → index-Dm926gxU.mjs} +11 -11
- package/dist/{isEqual-C0OPK27A.mjs → isEqual-CFt6hdKk.mjs} +1 -1
- package/dist/{panel.vue_vue_type_style_index_0_lang-B8PZEnVY.mjs → panel.vue_vue_type_style_index_0_lang-DCazgmTm.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{tallPanel-CXZ3V34N.mjs → tallPanel-dtFbhZb7.mjs} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as q } from "./alert-
|
|
2
|
-
import { j as P, k as d, l as g, O as l, m as R, n as U } from "./index-
|
|
3
|
-
import { defineComponent as j, ref as
|
|
1
|
+
import { _ as q } from "./alert-B1Qslhax.mjs";
|
|
2
|
+
import { j as P, k as d, l as g, O as l, m as R, n as U } from "./index-Dm926gxU.mjs";
|
|
3
|
+
import { defineComponent as j, ref as p, 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 I, renderList as C, normalizeClass as $, createVNode as S, withCtx as J, toDisplayString as K, withDirectives as Q, vShow as Y } from "vue";
|
|
4
4
|
import { A as r } from "./const-B1FlFgEN.mjs";
|
|
5
5
|
const Z = { class: "annotation_component" }, nn = {
|
|
6
6
|
key: 0,
|
|
@@ -19,30 +19,30 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
19
19
|
__name: "AnnotationTool",
|
|
20
20
|
props: ["componentId"],
|
|
21
21
|
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
|
|
22
|
+
setup(y, { emit: M }) {
|
|
23
|
+
const w = P(), x = M, m = (n) => {
|
|
24
|
+
x("emitHandler", n);
|
|
25
25
|
};
|
|
26
26
|
let _;
|
|
27
|
-
const
|
|
27
|
+
const T = p(!0), s = p("");
|
|
28
28
|
let u;
|
|
29
|
-
const
|
|
29
|
+
const E = p(), A = y;
|
|
30
30
|
z(
|
|
31
|
-
() =>
|
|
31
|
+
() => w.isToolActive(A.componentId),
|
|
32
32
|
(n) => {
|
|
33
33
|
n || (s.value = "");
|
|
34
34
|
}
|
|
35
35
|
), F(() => {
|
|
36
|
-
|
|
36
|
+
E.value = d("annoLimit"), w.setReadyById(A.componentId);
|
|
37
37
|
});
|
|
38
|
-
const
|
|
38
|
+
const L = {
|
|
39
39
|
image: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
|
|
40
40
|
file: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
|
|
41
41
|
record: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
|
|
42
42
|
text: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
|
|
43
43
|
video: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
|
|
44
|
-
},
|
|
45
|
-
_ = window.BimViewer.annotationTool, _.setTypeImage(
|
|
44
|
+
}, k = () => {
|
|
45
|
+
_ = window.BimViewer.annotationTool, _.setTypeImage(L), u = window.BimViewer.eventTrigger, u.on("createAnnotation", (n) => {
|
|
46
46
|
m({
|
|
47
47
|
isTool: !0,
|
|
48
48
|
event_target: "AnnotationTool",
|
|
@@ -74,14 +74,14 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
74
74
|
_.addAnnotation("11111", [-30, 0, -101], "image"), _.addAnnotation("22222", [-22, 0, -103], "image");
|
|
75
75
|
}, 1e3);
|
|
76
76
|
};
|
|
77
|
-
g.on("BimViewer",
|
|
78
|
-
const
|
|
79
|
-
|
|
77
|
+
g.on("BimViewer", k);
|
|
78
|
+
const h = (n) => {
|
|
79
|
+
b(N(n.type));
|
|
80
80
|
};
|
|
81
|
-
g.on("setAnnoStatus",
|
|
82
|
-
g.off("BimViewer",
|
|
81
|
+
g.on("setAnnoStatus", h), G(() => {
|
|
82
|
+
g.off("BimViewer", k), g.off("setAnnoStatus", h);
|
|
83
83
|
});
|
|
84
|
-
const
|
|
84
|
+
const N = (n) => {
|
|
85
85
|
if (n === "image")
|
|
86
86
|
return r[0];
|
|
87
87
|
if (n === "record")
|
|
@@ -92,13 +92,13 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
92
92
|
return r[3];
|
|
93
93
|
if (n === "text")
|
|
94
94
|
return r[4];
|
|
95
|
-
},
|
|
95
|
+
}, b = (n) => {
|
|
96
96
|
s.value === n.code ? (s.value = "", B(n, !1)) : (s.value = n.code, B(n, !0));
|
|
97
|
-
},
|
|
97
|
+
}, W = (n) => {
|
|
98
98
|
window.BimViewer.annotationTool.setEnabled(n);
|
|
99
99
|
}, B = (n, e) => {
|
|
100
|
-
|
|
101
|
-
},
|
|
100
|
+
W(e), X(n.code, e);
|
|
101
|
+
}, X = (n, e) => {
|
|
102
102
|
window.BimViewer.annotationTool.setCurrentType(n), m({
|
|
103
103
|
isTool: !0,
|
|
104
104
|
event_target: "AnnotationTool",
|
|
@@ -108,24 +108,24 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
108
108
|
tool_type: n
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
|
-
},
|
|
111
|
+
}, V = () => {
|
|
112
112
|
_.setAllVisible();
|
|
113
113
|
};
|
|
114
114
|
return (n, e) => {
|
|
115
115
|
const D = R, O = q;
|
|
116
116
|
return i(), a("div", Z, [
|
|
117
117
|
c(d)("isMobile") ? (i(), a("div", cn, [
|
|
118
|
-
e[
|
|
118
|
+
e[2] || (e[2] = o("div", { class: "label-title-box" }, [
|
|
119
119
|
o("div", { class: "label-title" }, "标注")
|
|
120
120
|
], -1)),
|
|
121
121
|
o("div", rn, [
|
|
122
|
-
|
|
122
|
+
S(D, null, {
|
|
123
123
|
default: J(() => [
|
|
124
124
|
o("div", _n, [
|
|
125
|
-
(i(!0), a(
|
|
125
|
+
(i(!0), a(I, null, C(c(r), (t, v) => (i(), a("div", {
|
|
126
126
|
key: v,
|
|
127
|
-
class:
|
|
128
|
-
onClick: (H) =>
|
|
127
|
+
class: $(["label-item", { "label-item-active": s.value === t.code }]),
|
|
128
|
+
onClick: (H) => b(t)
|
|
129
129
|
}, [
|
|
130
130
|
o("div", mn, [
|
|
131
131
|
o("img", {
|
|
@@ -142,39 +142,43 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
142
142
|
}),
|
|
143
143
|
o("div", {
|
|
144
144
|
class: "show_button",
|
|
145
|
-
onClick: e[
|
|
145
|
+
onClick: e[1] || (e[1] = (t) => V())
|
|
146
146
|
}, " 显/隐 ")
|
|
147
147
|
])
|
|
148
148
|
])) : (i(), a("div", nn, [
|
|
149
149
|
c(d)("annotationPos").pos.includes("top") ? (i(), a("div", tn)) : f("", !0),
|
|
150
150
|
o("div", on, [
|
|
151
151
|
o("div", en, [
|
|
152
|
-
(i(!0), a(
|
|
152
|
+
(i(!0), a(I, null, C(c(r), (t, v) => (i(), a("button", {
|
|
153
153
|
id: `annotation_tool_btn_${v}`,
|
|
154
154
|
key: v,
|
|
155
|
-
class:
|
|
156
|
-
onClick: (H) =>
|
|
155
|
+
class: $(["annotation_tool_btn", { active: s.value === t.code }]),
|
|
156
|
+
onClick: (H) => b(t)
|
|
157
157
|
}, [
|
|
158
158
|
f("", !0),
|
|
159
159
|
o("img", {
|
|
160
160
|
src: `${c(l)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${s.value !== t.code ? t.img : t.img_active}.png`
|
|
161
161
|
}, null, 8, sn)
|
|
162
162
|
], 10, an))), 128))
|
|
163
|
-
])
|
|
163
|
+
]),
|
|
164
|
+
o("div", {
|
|
165
|
+
class: "show_button",
|
|
166
|
+
onClick: e[0] || (e[0] = (t) => V())
|
|
167
|
+
}, " 显/隐 ")
|
|
164
168
|
]),
|
|
165
169
|
c(d)("annotationPos").pos.includes("bottom") ? (i(), a("div", ln)) : f("", !0)
|
|
166
170
|
])),
|
|
167
|
-
Q(
|
|
171
|
+
Q(S(O, {
|
|
168
172
|
"click-handle": () => {
|
|
169
|
-
|
|
173
|
+
T.value = !1;
|
|
170
174
|
}
|
|
171
175
|
}, null, 8, ["click-handle"]), [
|
|
172
|
-
[Y,
|
|
176
|
+
[Y, T.value]
|
|
173
177
|
])
|
|
174
178
|
]);
|
|
175
179
|
};
|
|
176
180
|
}
|
|
177
|
-
}),
|
|
181
|
+
}), Tn = /* @__PURE__ */ U(gn, [["__scopeId", "data-v-cccf1617"]]);
|
|
178
182
|
export {
|
|
179
|
-
|
|
183
|
+
Tn as default
|
|
180
184
|
};
|
|
@@ -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-
|
|
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-Dm926gxU.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
o as BIMX_CONFIGS,
|