@xtctwins/tctwins-bimx-engine 0.1.56 → 0.1.57
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-CqTydUPp.mjs → AnnotationTool-CFipdE2u.mjs} +32 -34
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +38 -38
- package/dist/{CommentTool-Dxqw3N02.mjs → CommentTool-Dbzm1DwF.mjs} +2 -2
- package/dist/{HiddenTool-DlDxulXB.mjs → HiddenTool-Dy88QiXw.mjs} +1 -1
- package/dist/{InspectorTool-_R8SK4LQ.mjs → InspectorTool-t-KahPkp.mjs} +4 -4
- package/dist/{MeasureTool-6aHL24IM.mjs → MeasureTool-BddUNTZS.mjs} +6 -6
- package/dist/{NavigateTool-D9_sRp7a.mjs → NavigateTool-CamhJ-Z5.mjs} +1 -1
- package/dist/{RoamTool-AmBP8tBj.mjs → RoamTool-BMaz9Dbs.mjs} +1 -1
- package/dist/{ScreenShotTool-bq4BGyd-.mjs → ScreenShotTool-8wAdMCVJ.mjs} +4 -4
- package/dist/{SectionTool-BEwAZo1-.mjs → SectionTool-ImEJlFSO.mjs} +6 -6
- package/dist/{SettingTool-HFhXnM5h.mjs → SettingTool-DsQ_3lJw.mjs} +6 -6
- package/dist/{StructureTree-CNUbBA0E.mjs → StructureTree-B8WMmfrM.mjs} +7 -7
- package/dist/{alert-CymQcviS.mjs → alert-CcSVZcWp.mjs} +2 -2
- package/dist/{closeButton-BmKKFKWL.mjs → closeButton-D9xc--oO.mjs} +1 -1
- package/dist/{debounce-Bq1OCi58.mjs → debounce-UF-psrIL.mjs} +1 -1
- package/dist/{el-checkbox-DFrauHvV.mjs → el-checkbox-Dq3FQ0en.mjs} +4 -4
- package/dist/{el-input-M_7N6vIy.mjs → el-input-5BTnyEEU.mjs} +1 -1
- package/dist/{el-input-number-4bp1Xfv_.mjs → el-input-number-DuVvXiPq.mjs} +4 -4
- package/dist/{index-D03qc7cf.mjs → index-BRE5-2Vk.mjs} +1 -1
- package/dist/{index-CCvjOnHm.mjs → index-DHge4xIu.mjs} +10510 -10525
- package/dist/{index-DQErvRfB.mjs → index-uaE1b-Hx.mjs} +1 -1
- package/dist/{isEqual-B0y_o6f6.mjs → isEqual-BU8QsW7W.mjs} +1 -1
- package/dist/{panel.vue_vue_type_style_index_0_lang-LR7iS3--.mjs → panel.vue_vue_type_style_index_0_lang-FXI8cVsd.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{tallPanel-IZZEr1TD.mjs → tallPanel-DMEC5zNK.mjs} +2 -2
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as q } from "./alert-
|
|
2
|
-
import { j as P, k as
|
|
1
|
+
import { _ as q } from "./alert-CcSVZcWp.mjs";
|
|
2
|
+
import { j as P, k as _, l as v, O as l, m as R, n as U } from "./index-DHge4xIu.mjs";
|
|
3
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 = {
|
|
@@ -15,17 +15,17 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
15
15
|
}, cn = {
|
|
16
16
|
key: 1,
|
|
17
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" },
|
|
18
|
+
}, rn = { class: "anno_toolList" }, _n = { class: "label-list" }, dn = ["onClick"], mn = { class: "item-img" }, un = ["src"], vn = { class: "item-name" }, bn = /* @__PURE__ */ j({
|
|
19
19
|
__name: "AnnotationTool",
|
|
20
20
|
props: ["componentId"],
|
|
21
21
|
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
22
22
|
setup(y, { emit: M }) {
|
|
23
|
-
const w = P(), x = M,
|
|
23
|
+
const w = P(), x = M, d = (n) => {
|
|
24
24
|
x("emitHandler", n);
|
|
25
25
|
};
|
|
26
|
-
let
|
|
26
|
+
let b;
|
|
27
27
|
const T = p(!0), s = p("");
|
|
28
|
-
let
|
|
28
|
+
let m;
|
|
29
29
|
const E = p(), A = y;
|
|
30
30
|
z(
|
|
31
31
|
() => w.isToolActive(A.componentId),
|
|
@@ -33,7 +33,7 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
33
33
|
n || (s.value = "");
|
|
34
34
|
}
|
|
35
35
|
), F(() => {
|
|
36
|
-
E.value =
|
|
36
|
+
E.value = _("annoLimit"), w.setReadyById(A.componentId);
|
|
37
37
|
});
|
|
38
38
|
const L = {
|
|
39
39
|
image: `${l}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
|
|
@@ -42,8 +42,8 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
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
44
|
}, k = () => {
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
b = window.BimViewer.annotationTool, b.setTypeImage(L), m = window.BimViewer.eventTrigger, m.on("createAnnotation", (n) => {
|
|
46
|
+
d({
|
|
47
47
|
isTool: !0,
|
|
48
48
|
event_target: "AnnotationTool",
|
|
49
49
|
event_name: "createAnnotation",
|
|
@@ -51,8 +51,8 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
51
51
|
currentAnnotation: n
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
}),
|
|
55
|
-
|
|
54
|
+
}), m.on("markerClicked", (n) => {
|
|
55
|
+
d({
|
|
56
56
|
isTool: !0,
|
|
57
57
|
event_target: "AnnotationTool",
|
|
58
58
|
event_name: "clickAnnotation",
|
|
@@ -60,8 +60,8 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
60
60
|
targetAnno: n
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
|
-
}),
|
|
64
|
-
|
|
63
|
+
}), _("isMobile") || m.on("requestDeleteMarker", (n) => {
|
|
64
|
+
d({
|
|
65
65
|
isTool: !0,
|
|
66
66
|
event_target: "AnnotationTool",
|
|
67
67
|
event_name: "requestDelAnno",
|
|
@@ -70,16 +70,14 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
70
70
|
annoId: n
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
})
|
|
74
|
-
_.addAnnotation("11111", [-30, 0, -101], "image"), _.addAnnotation("22222", [-22, 0, -103], "image");
|
|
75
|
-
}, 1e3);
|
|
73
|
+
});
|
|
76
74
|
};
|
|
77
|
-
|
|
75
|
+
v.on("BimViewer", k);
|
|
78
76
|
const h = (n) => {
|
|
79
|
-
|
|
77
|
+
g(N(n.type));
|
|
80
78
|
};
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
v.on("setAnnoStatus", h), G(() => {
|
|
80
|
+
v.off("BimViewer", k), v.off("setAnnoStatus", h);
|
|
83
81
|
});
|
|
84
82
|
const N = (n) => {
|
|
85
83
|
if (n === "image")
|
|
@@ -92,14 +90,14 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
92
90
|
return r[3];
|
|
93
91
|
if (n === "text")
|
|
94
92
|
return r[4];
|
|
95
|
-
},
|
|
93
|
+
}, g = (n) => {
|
|
96
94
|
s.value === n.code ? (s.value = "", B(n, !1)) : (s.value = n.code, B(n, !0));
|
|
97
95
|
}, W = (n) => {
|
|
98
96
|
window.BimViewer.annotationTool.setEnabled(n);
|
|
99
97
|
}, B = (n, e) => {
|
|
100
98
|
W(e), X(n.code, e);
|
|
101
99
|
}, X = (n, e) => {
|
|
102
|
-
window.BimViewer.annotationTool.setCurrentType(n),
|
|
100
|
+
window.BimViewer.annotationTool.setCurrentType(n), d({
|
|
103
101
|
isTool: !0,
|
|
104
102
|
event_target: "AnnotationTool",
|
|
105
103
|
event_name: "clickAnnoTool",
|
|
@@ -109,12 +107,12 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
109
107
|
}
|
|
110
108
|
});
|
|
111
109
|
}, V = () => {
|
|
112
|
-
|
|
110
|
+
b.setAllVisible();
|
|
113
111
|
};
|
|
114
112
|
return (n, e) => {
|
|
115
113
|
const D = R, O = q;
|
|
116
114
|
return i(), a("div", Z, [
|
|
117
|
-
c(
|
|
115
|
+
c(_)("isMobile") ? (i(), a("div", cn, [
|
|
118
116
|
e[2] || (e[2] = o("div", { class: "label-title-box" }, [
|
|
119
117
|
o("div", { class: "label-title" }, "标注")
|
|
120
118
|
], -1)),
|
|
@@ -122,10 +120,10 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
122
120
|
S(D, null, {
|
|
123
121
|
default: J(() => [
|
|
124
122
|
o("div", _n, [
|
|
125
|
-
(i(!0), a(I, null, C(c(r), (t,
|
|
126
|
-
key:
|
|
123
|
+
(i(!0), a(I, null, C(c(r), (t, u) => (i(), a("div", {
|
|
124
|
+
key: u,
|
|
127
125
|
class: $(["label-item", { "label-item-active": s.value === t.code }]),
|
|
128
|
-
onClick: (H) =>
|
|
126
|
+
onClick: (H) => g(t)
|
|
129
127
|
}, [
|
|
130
128
|
o("div", mn, [
|
|
131
129
|
o("img", {
|
|
@@ -146,14 +144,14 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
146
144
|
}, " 显/隐 ")
|
|
147
145
|
])
|
|
148
146
|
])) : (i(), a("div", nn, [
|
|
149
|
-
c(
|
|
147
|
+
c(_)("annotationPos").pos.includes("top") ? (i(), a("div", tn)) : f("", !0),
|
|
150
148
|
o("div", on, [
|
|
151
149
|
o("div", en, [
|
|
152
|
-
(i(!0), a(I, null, C(c(r), (t,
|
|
153
|
-
id: `annotation_tool_btn_${
|
|
154
|
-
key:
|
|
150
|
+
(i(!0), a(I, null, C(c(r), (t, u) => (i(), a("button", {
|
|
151
|
+
id: `annotation_tool_btn_${u}`,
|
|
152
|
+
key: u,
|
|
155
153
|
class: $(["annotation_tool_btn", { active: s.value === t.code }]),
|
|
156
|
-
onClick: (H) =>
|
|
154
|
+
onClick: (H) => g(t)
|
|
157
155
|
}, [
|
|
158
156
|
f("", !0),
|
|
159
157
|
o("img", {
|
|
@@ -166,7 +164,7 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
166
164
|
onClick: e[0] || (e[0] = (t) => V())
|
|
167
165
|
}, " 显/隐 ")
|
|
168
166
|
]),
|
|
169
|
-
c(
|
|
167
|
+
c(_)("annotationPos").pos.includes("bottom") ? (i(), a("div", ln)) : f("", !0)
|
|
170
168
|
])),
|
|
171
169
|
Q(S(O, {
|
|
172
170
|
"click-handle": () => {
|
|
@@ -178,7 +176,7 @@ const Z = { class: "annotation_component" }, nn = {
|
|
|
178
176
|
]);
|
|
179
177
|
};
|
|
180
178
|
}
|
|
181
|
-
}), Tn = /* @__PURE__ */ U(
|
|
179
|
+
}), Tn = /* @__PURE__ */ U(bn, [["__scopeId", "data-v-bd14557b"]]);
|
|
182
180
|
export {
|
|
183
181
|
Tn as default
|
|
184
182
|
};
|
|
@@ -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-DHge4xIu.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
o as BIMX_CONFIGS,
|