@xtctwins/tctwins-bimx-engine 0.1.66 → 0.1.68
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/README.md +2 -2
- package/dist/{AnnotationTool-Cx9gJ5we.mjs → AnnotationTool-erjwkSWt.mjs} +57 -62
- package/dist/BCFTool-C0MP2BAk.mjs +4 -0
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +85 -85
- package/dist/{CommentTool-COWvfZ7Y.mjs → CommentTool-bFNK1lW1.mjs} +19 -21
- package/dist/{HiddenTool-B6rN5sY_.mjs → HiddenTool-DtSC9p_8.mjs} +7 -7
- package/dist/{InspectorTool-RGp7uCHT.mjs → InspectorTool-B1Wzu91g.mjs} +3 -3
- package/dist/{MeasureTool-DIkh1SlM.mjs → MeasureTool-DkSxWefA.mjs} +8 -10
- package/dist/{NavigateTool-CLHa3ujZ.mjs → NavigateTool-Cxd8J3gQ.mjs} +17 -19
- package/dist/{RoamTool-CLDYNNW2.mjs → RoamTool-CbwSuIO2.mjs} +1 -1
- package/dist/{ScreenShotTool-C58hJFqK.mjs → ScreenShotTool-Dg76d4Co.mjs} +2 -2
- package/dist/{SectionTool-DIbRrcPp.mjs → SectionTool-Ds_JUiOM.mjs} +5 -5
- package/dist/{SettingTool-BuZHm0tQ.mjs → SettingTool-CVnPWjri.mjs} +3 -3
- package/dist/{StructureTree-DHkAZ74u.mjs → StructureTree-OYyijw9u.mjs} +3 -3
- package/dist/{alert-BfhL88_Z.mjs → alert-DoIz4wHi.mjs} +1 -1
- package/dist/{el-input-number-DOlSfD3d.mjs → el-input-number-quL1gv9n.mjs} +1 -1
- package/dist/{index-C5jcDhyA.mjs → index-DzQ-UySW.mjs} +17612 -17575
- package/dist/{panel.vue_vue_type_style_index_0_lang-79AKEJ11.mjs → panel.vue_vue_type_style_index_0_lang-Dc8bxnk3.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-DEjfjiPI.mjs → tallPanel-DGKSpGCi.mjs} +1 -1
- package/package.json +1 -1
- package/types/components/BCFComponents/BCFDisplayList.vue.d.ts +2 -0
- package/types/pages/viewerEntry.vue.d.ts +6 -4
- package/dist/BCFTool-DKw2SH9h.mjs +0 -4
package/README.md
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { _ as D } from "./alert-DoIz4wHi.mjs";
|
|
2
|
+
import { defineComponent as O, ref as p, watch as H, onMounted as q, onBeforeUnmount as P, openBlock as e, createElementBlock as i, unref as c, createCommentVNode as b, createElementVNode as t, 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 _, p as v, O as l, x as G } from "./index-DzQ-UySW.mjs";
|
|
4
4
|
import { A as r } from "./const-B1FlFgEN.mjs";
|
|
5
|
-
const
|
|
5
|
+
const J = { class: "annotation_component" }, K = {
|
|
6
6
|
key: 0,
|
|
7
7
|
id: "annotation_toolbar",
|
|
8
8
|
class: "annotation_toolbar"
|
|
9
|
-
},
|
|
9
|
+
}, Q = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "toolbar_trangle"
|
|
12
|
-
},
|
|
12
|
+
}, Y = { class: "annotation_toolbar_wrapper" }, Z = { class: "annotation_toolbar_group" }, nn = ["id", "onClick"], on = ["src"], tn = {
|
|
13
13
|
key: 1,
|
|
14
14
|
class: "toolbar_trangle"
|
|
15
|
-
},
|
|
15
|
+
}, en = {
|
|
16
16
|
key: 1,
|
|
17
17
|
class: "mobile_annotation_toolbar"
|
|
18
|
-
},
|
|
18
|
+
}, an = { class: "anno_toolList" }, sn = { class: "label-list" }, cn = ["onClick"], ln = { class: "item-img" }, rn = ["src"], _n = { class: "item-name" }, dn = /* @__PURE__ */ O({
|
|
19
19
|
__name: "AnnotationTool",
|
|
20
20
|
props: ["componentId"],
|
|
21
21
|
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
22
22
|
setup($, { emit: y }) {
|
|
23
|
-
const f =
|
|
23
|
+
const f = j(), M = y, d = (n) => {
|
|
24
24
|
M("emitHandler", n);
|
|
25
25
|
};
|
|
26
26
|
let T;
|
|
27
|
-
const w =
|
|
27
|
+
const w = p(!0), a = p("");
|
|
28
28
|
let m;
|
|
29
|
-
const
|
|
30
|
-
|
|
29
|
+
const S = p(), A = $;
|
|
30
|
+
H(
|
|
31
31
|
() => f.isToolActive(A.componentId),
|
|
32
32
|
(n) => {
|
|
33
33
|
n || (a.value = "");
|
|
34
34
|
}
|
|
35
|
-
),
|
|
36
|
-
|
|
35
|
+
), q(() => {
|
|
36
|
+
S.value = _("annoLimit"), f.setReadyById(A.componentId);
|
|
37
37
|
});
|
|
38
|
-
const
|
|
38
|
+
const x = {
|
|
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
44
|
}, h = () => {
|
|
45
|
-
T = window.bimViewer.annotationTool, T.setTypeImage(
|
|
45
|
+
T = window.bimViewer.annotationTool, T.setTypeImage(x), m = window.bimViewer.eventTrigger, m.on("createAnnotation", (n) => {
|
|
46
46
|
d({
|
|
47
47
|
isTool: !0,
|
|
48
48
|
event_target: "AnnotationTool",
|
|
@@ -74,9 +74,9 @@ const Y = { class: "annotation_component" }, Z = {
|
|
|
74
74
|
};
|
|
75
75
|
v.on("BimViewer", h);
|
|
76
76
|
const k = (n) => {
|
|
77
|
-
|
|
77
|
+
g(L(n.type));
|
|
78
78
|
};
|
|
79
|
-
v.on("setAnnoStatus", k),
|
|
79
|
+
v.on("setAnnoStatus", k), P(() => {
|
|
80
80
|
v.off("BimViewer", h), v.off("setAnnoStatus", k);
|
|
81
81
|
});
|
|
82
82
|
const L = (n) => {
|
|
@@ -90,7 +90,7 @@ const Y = { class: "annotation_component" }, Z = {
|
|
|
90
90
|
return r[3];
|
|
91
91
|
if (n === "text")
|
|
92
92
|
return r[4];
|
|
93
|
-
},
|
|
93
|
+
}, g = (n) => {
|
|
94
94
|
a.value === n.code ? (a.value = "", I(n, !1)) : (a.value = n.code, I(n, !0));
|
|
95
95
|
}, N = (n) => {
|
|
96
96
|
window.bimViewer.annotationTool.setEnabled(n);
|
|
@@ -108,65 +108,60 @@ const Y = { class: "annotation_component" }, Z = {
|
|
|
108
108
|
});
|
|
109
109
|
};
|
|
110
110
|
return (n, s) => {
|
|
111
|
-
const X =
|
|
112
|
-
return e(), i("div",
|
|
113
|
-
c(_)("isMobile") ? (e(), i("div",
|
|
114
|
-
s[0] || (s[0] =
|
|
115
|
-
|
|
111
|
+
const X = D;
|
|
112
|
+
return e(), i("div", J, [
|
|
113
|
+
c(_)("isMobile") ? (e(), i("div", en, [
|
|
114
|
+
s[0] || (s[0] = t("div", { class: "label-title-box" }, [
|
|
115
|
+
t("div", { class: "label-title" }, "标注")
|
|
116
116
|
], -1)),
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
}, null, 8, mn)
|
|
132
|
-
]),
|
|
133
|
-
o("div", un, J(t.name), 1)
|
|
134
|
-
], 10, _n))), 128))
|
|
117
|
+
t("div", an, [
|
|
118
|
+
t("div", sn, [
|
|
119
|
+
(e(!0), i(V, null, B(c(r), (o, u) => (e(), i("div", {
|
|
120
|
+
key: u,
|
|
121
|
+
class: C(["label-item", { "label-item-active": a.value === o.code }]),
|
|
122
|
+
onClick: (E) => g(o)
|
|
123
|
+
}, [
|
|
124
|
+
t("div", ln, [
|
|
125
|
+
t("img", {
|
|
126
|
+
class: "label-item-img",
|
|
127
|
+
src: c(l) + `/bim-viewer/label-bar/${a.value === o.code ? o.imgActive : o.img}.svg`,
|
|
128
|
+
alt: ""
|
|
129
|
+
}, null, 8, rn),
|
|
130
|
+
t("div", _n, R(o.name), 1)
|
|
135
131
|
])
|
|
136
|
-
]),
|
|
137
|
-
|
|
138
|
-
})
|
|
132
|
+
], 10, cn))), 128))
|
|
133
|
+
])
|
|
139
134
|
])
|
|
140
|
-
])) : (e(), i("div",
|
|
141
|
-
c(_)("annotationPos").pos.includes("top") ? (e(), i("div",
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
(e(!0), i(V, null, B(c(r), (
|
|
135
|
+
])) : (e(), i("div", K, [
|
|
136
|
+
c(_)("annotationPos").pos.includes("top") ? (e(), i("div", Q)) : b("", !0),
|
|
137
|
+
t("div", Y, [
|
|
138
|
+
t("div", Z, [
|
|
139
|
+
(e(!0), i(V, null, B(c(r), (o, u) => (e(), i("button", {
|
|
145
140
|
id: `annotation_tool_btn_${u}`,
|
|
146
141
|
key: u,
|
|
147
|
-
class: C(["annotation_tool_btn", { active: a.value ===
|
|
148
|
-
onClick: (
|
|
142
|
+
class: C(["annotation_tool_btn", { active: a.value === o.code }]),
|
|
143
|
+
onClick: (E) => g(o)
|
|
149
144
|
}, [
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
src: `${c(l)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${a.value !==
|
|
153
|
-
}, null, 8,
|
|
154
|
-
], 10,
|
|
145
|
+
b("", !0),
|
|
146
|
+
t("img", {
|
|
147
|
+
src: `${c(l)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${a.value !== o.code ? o.img : o.img_active}.png`
|
|
148
|
+
}, null, 8, on)
|
|
149
|
+
], 10, nn))), 128))
|
|
155
150
|
])
|
|
156
151
|
]),
|
|
157
|
-
c(_)("annotationPos").pos.includes("bottom") ? (e(), i("div",
|
|
152
|
+
c(_)("annotationPos").pos.includes("bottom") ? (e(), i("div", tn)) : b("", !0)
|
|
158
153
|
])),
|
|
159
|
-
|
|
154
|
+
U(z(X, {
|
|
160
155
|
"click-handle": () => {
|
|
161
156
|
w.value = !1;
|
|
162
157
|
}
|
|
163
158
|
}, null, 8, ["click-handle"]), [
|
|
164
|
-
[
|
|
159
|
+
[F, w.value]
|
|
165
160
|
])
|
|
166
161
|
]);
|
|
167
162
|
};
|
|
168
163
|
}
|
|
169
|
-
}),
|
|
164
|
+
}), pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-e46a7ef6"]]);
|
|
170
165
|
export {
|
|
171
|
-
|
|
166
|
+
pn as default
|
|
172
167
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ab as e, B as o, ac as t, ae as i, V as l, ah as r, ad as I, af as n, ag as B } from "./index-
|
|
1
|
+
import { ab as e, B as o, ac as t, ae as i, V as l, ah as r, ad as I, af as n, ag as B } from "./index-DzQ-UySW.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
o as BIMX_CONFIGS,
|