@xtctwins/tctwins-bimx-engine 0.2.30 → 0.2.32
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-Ck1jjiCS.mjs +167 -0
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +100 -100
- package/dist/CommentTool-Cxmcntzv.mjs +1531 -0
- package/dist/{HiddenTool-DKuYFHta.mjs → HiddenTool-XcHscREb.mjs} +1 -1
- package/dist/{InspectorTool-Dx6b7Kt2.mjs → InspectorTool-CTfPTj4G.mjs} +3 -3
- package/dist/{MeasureTool-BiHMRquw.mjs → MeasureTool-CcYsetzN.mjs} +5 -5
- package/dist/{MouseTool-CawZ7HnH.mjs → MouseTool-ClHejzLZ.mjs} +15 -15
- package/dist/{NavigateTool-CM84UR5n.mjs → NavigateTool-BsGJ6Y9o.mjs} +1 -1
- package/dist/{RoamTool-DOHok_cq.mjs → RoamTool-D2ckfWOd.mjs} +1 -1
- package/dist/{ScreenShotTool-M4NY0OrC.mjs → ScreenShotTool-BZaXarHh.mjs} +18 -18
- package/dist/{SectionTool-C-bm3oU_.mjs → SectionTool-DDG5er40.mjs} +4 -4
- package/dist/{SettingTool-sVoZr9bV.mjs → SettingTool-7CfhjQf9.mjs} +32 -32
- package/dist/{StructureTree-TrT0Ikt8.mjs → StructureTree-Dq1-yP0p.mjs} +3 -3
- package/dist/{alert-BL0JE2LB.mjs → alert-SmYlvDzV.mjs} +1 -1
- package/dist/{el-input-number-DcQYgSwS.mjs → el-input-number-Du2HSvYy.mjs} +58 -58
- package/dist/{index-CPf4AJ7S.mjs → index-DjAWSHH5.mjs} +1583 -1584
- package/dist/{panel.vue_vue_type_style_index_0_lang-CAi11CZA.mjs → panel.vue_vue_type_style_index_0_lang-t0lWBNg2.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-BmDZ40rL.mjs → tallPanel-h-2XdBl3.mjs} +1 -1
- package/package.json +1 -1
- package/types/components/BimViewerComponents/MobileCommentsTool/filter.vue.d.ts +6 -0
- package/types/pages/viewerEntry.vue.d.ts +3 -3
- package/types/store/initConfigs.d.ts +1 -0
- package/dist/AnnotationTool-QnzRW8_D.mjs +0 -167
- package/dist/CommentTool-C-zuVMER.mjs +0 -1152
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { _ as E } from "./alert-SmYlvDzV.mjs";
|
|
2
|
+
import { defineComponent as D, ref as p, watch as O, onMounted as H, onBeforeUnmount as q, openBlock as a, createElementBlock as s, unref as t, createCommentVNode as b, createElementVNode as o, Fragment as V, renderList as B, normalizeClass as C, toDisplayString as R, withDirectives as U, createVNode as z, vShow as F } from "vue";
|
|
3
|
+
import { n as j, o as i, p as v, O as r, x as G } from "./index-DjAWSHH5.mjs";
|
|
4
|
+
import { A as _ } from "./const-DfPhsetT.mjs";
|
|
5
|
+
const J = { class: "annotation_component" }, K = {
|
|
6
|
+
key: 0,
|
|
7
|
+
id: "annotation_toolbar",
|
|
8
|
+
class: "annotation_toolbar"
|
|
9
|
+
}, Q = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "toolbar_trangle"
|
|
12
|
+
}, Y = { class: "annotation_toolbar_wrapper" }, Z = { class: "annotation_toolbar_group" }, ee = ["id", "onClick"], ne = ["src"], te = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "toolbar_trangle"
|
|
15
|
+
}, oe = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "mobile_annotation_toolbar"
|
|
18
|
+
}, ie = { class: "anno_toolList" }, ae = { class: "label-list" }, se = ["onClick"], le = { class: "item-img" }, ce = ["src"], re = { class: "item-name" }, _e = /* @__PURE__ */ D({
|
|
19
|
+
__name: "AnnotationTool",
|
|
20
|
+
props: ["componentId"],
|
|
21
|
+
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
22
|
+
setup($, { emit: y }) {
|
|
23
|
+
const f = j(), M = y, d = (e) => {
|
|
24
|
+
M("emitHandler", e);
|
|
25
|
+
};
|
|
26
|
+
let T;
|
|
27
|
+
const w = p(!0), l = p("");
|
|
28
|
+
let m;
|
|
29
|
+
const S = p(), A = $;
|
|
30
|
+
O(
|
|
31
|
+
() => f.isToolActive(A.componentId),
|
|
32
|
+
(e) => {
|
|
33
|
+
e || (l.value = "");
|
|
34
|
+
}
|
|
35
|
+
), H(() => {
|
|
36
|
+
S.value = i("annoLimit"), f.setReadyById(A.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
|
+
}, h = () => {
|
|
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
|
+
}), i("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", h);
|
|
76
|
+
const k = (e) => {
|
|
77
|
+
g(P(e.type));
|
|
78
|
+
};
|
|
79
|
+
v.on("setAnnoStatus", k), q(() => {
|
|
80
|
+
v.off("BimViewer", h), v.off("setAnnoStatus", k);
|
|
81
|
+
});
|
|
82
|
+
const P = (e) => {
|
|
83
|
+
if (e === "image")
|
|
84
|
+
return _[0];
|
|
85
|
+
if (e === "record")
|
|
86
|
+
return _[1];
|
|
87
|
+
if (e === "video")
|
|
88
|
+
return _[2];
|
|
89
|
+
if (e === "file")
|
|
90
|
+
return _[3];
|
|
91
|
+
if (e === "text")
|
|
92
|
+
return _[4];
|
|
93
|
+
}, g = (e) => {
|
|
94
|
+
i("editPrivilege") != 1 && (l.value === e.code ? (l.value = "", I(e, !1)) : (l.value = e.code, I(e, !0)));
|
|
95
|
+
}, L = (e) => {
|
|
96
|
+
window.bimViewer.annotationTool.setEnabled(e);
|
|
97
|
+
}, I = (e, c) => {
|
|
98
|
+
L(c), N(e.code, c);
|
|
99
|
+
}, N = (e, c) => {
|
|
100
|
+
window.bimViewer.annotationTool.setCurrentType(e), d({
|
|
101
|
+
isTool: !0,
|
|
102
|
+
event_target: "AnnotationTool",
|
|
103
|
+
event_name: "clickAnnoTool",
|
|
104
|
+
content: {
|
|
105
|
+
active: c,
|
|
106
|
+
tool_type: e
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
return (e, c) => {
|
|
111
|
+
const W = E;
|
|
112
|
+
return a(), s("div", J, [
|
|
113
|
+
t(i)("isMobile") ? (a(), s("div", oe, [
|
|
114
|
+
c[0] || (c[0] = o("div", { class: "label-title-box" }, [
|
|
115
|
+
o("div", { class: "label-title" }, "标注")
|
|
116
|
+
], -1)),
|
|
117
|
+
o("div", ie, [
|
|
118
|
+
o("div", ae, [
|
|
119
|
+
(a(!0), s(V, null, B(t(_), (n, u) => (a(), s("div", {
|
|
120
|
+
key: u,
|
|
121
|
+
class: C(["label-item", { "label-item-active": l.value === n.code && t(i)("editPrivilege") == 0, noPermission: t(i)("editPrivilege") == 1 }]),
|
|
122
|
+
onClick: (X) => g(n)
|
|
123
|
+
}, [
|
|
124
|
+
o("div", le, [
|
|
125
|
+
o("img", {
|
|
126
|
+
class: "label-item-img",
|
|
127
|
+
src: t(r) + `/bim-viewer/label-bar/${l.value === n.code && t(i)("editPrivilege") == 0 ? n.imgActive : n.img}.svg`,
|
|
128
|
+
alt: ""
|
|
129
|
+
}, null, 8, ce),
|
|
130
|
+
o("div", re, R(n.name), 1)
|
|
131
|
+
])
|
|
132
|
+
], 10, se))), 128))
|
|
133
|
+
])
|
|
134
|
+
])
|
|
135
|
+
])) : (a(), s("div", K, [
|
|
136
|
+
t(i)("annotationPos").pos.includes("top") ? (a(), s("div", Q)) : b("", !0),
|
|
137
|
+
o("div", Y, [
|
|
138
|
+
o("div", Z, [
|
|
139
|
+
(a(!0), s(V, null, B(t(_), (n, u) => (a(), s("button", {
|
|
140
|
+
id: `annotation_tool_btn_${u}`,
|
|
141
|
+
key: u,
|
|
142
|
+
class: C(["annotation_tool_btn", { active: l.value === n.code }]),
|
|
143
|
+
onClick: (X) => g(n)
|
|
144
|
+
}, [
|
|
145
|
+
b("", !0),
|
|
146
|
+
o("img", {
|
|
147
|
+
src: `${t(r)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${l.value !== n.code ? n.img : n.img_active}.png`
|
|
148
|
+
}, null, 8, ne)
|
|
149
|
+
], 10, ee))), 128))
|
|
150
|
+
])
|
|
151
|
+
]),
|
|
152
|
+
t(i)("annotationPos").pos.includes("bottom") ? (a(), s("div", te)) : b("", !0)
|
|
153
|
+
])),
|
|
154
|
+
U(z(W, {
|
|
155
|
+
"click-handle": () => {
|
|
156
|
+
w.value = !1;
|
|
157
|
+
}
|
|
158
|
+
}, null, 8, ["click-handle"]), [
|
|
159
|
+
[F, w.value && t(i)("editPrivilege") == 0]
|
|
160
|
+
])
|
|
161
|
+
]);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}), ge = /* @__PURE__ */ G(_e, [["__scopeId", "data-v-af8e97f7"]]);
|
|
165
|
+
export {
|
|
166
|
+
ge as default
|
|
167
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { am as e, B as o, an as t, ap as i, V as l, as as r, ao as n, aq as I, ar as B } from "./index-DjAWSHH5.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
o as BIMX_CONFIGS,
|