@xtctwins/tctwins-bimx-engine 0.3.9 → 0.3.11
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-BN1cQJZT.mjs → AnnotationTool-BnLd0s38.mjs} +2 -2
- package/dist/AnnotationTool-Bp8DGFFA.mjs +167 -0
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +119 -119
- package/dist/{CameraViewTool-DoHrCSBa.mjs → CameraViewTool-BGmwAori.mjs} +1 -1
- package/dist/CameraViewTool-BwVnc0ua.mjs +164 -0
- package/dist/{CommentTool-DzpiIRq5.mjs → CommentTool-B9TgO52t.mjs} +1 -1
- package/dist/CommentTool-C7NLPxMd.mjs +1529 -0
- package/dist/{HiddenTool-DKl-Td4d.mjs → HiddenTool-CNMJqZzC.mjs} +1 -1
- package/dist/HiddenTool-i1AESn4-.mjs +57 -0
- package/dist/{InspectorTool-ButMlfJZ.mjs → InspectorTool-CiyN_aCB.mjs} +29 -28
- package/dist/InspectorTool-D4gr7uiQ.mjs +679 -0
- package/dist/{MeasureTool-HA7KurNk.mjs → MeasureTool-BNBUx-1X.mjs} +2 -2
- package/dist/MeasureTool-Cxnp9MVY.mjs +323 -0
- package/dist/{MouseTool-Cx7FUkja.mjs → MouseTool-B07SstRZ.mjs} +1 -1
- package/dist/MouseTool-DVqNDADf.mjs +84 -0
- package/dist/{NavigateTool-CHspxjfw.mjs → NavigateTool-B8qIl9xy.mjs} +1 -1
- package/dist/NavigateTool-DKTSPVCL.mjs +52 -0
- package/dist/{RoamTool-CvErAJ4s.mjs → RoamTool-3sDI1Ouu.mjs} +1 -1
- package/dist/RoamTool-CazuxheL.mjs +287 -0
- package/dist/{ScreenShotTool-BKFYnVZ5.mjs → ScreenShotTool-CjsT2-Va.mjs} +2 -2
- package/dist/ScreenShotTool-fYVxpPrW.mjs +430 -0
- package/dist/{SectionTool-Dc_qndpy.mjs → SectionTool-Bpk5jewK.mjs} +4 -4
- package/dist/SectionTool-DMSGkjYm.mjs +331 -0
- package/dist/{SettingTool-BYVwI27m.mjs → SettingTool-BuSm2JB6.mjs} +3 -3
- package/dist/SettingTool-IBRpWdfo.mjs +695 -0
- package/dist/{StructureTree-CNrEg0TP.mjs → StructureTree-B183vT5b.mjs} +3 -3
- package/dist/StructureTree-D9z28tm4.mjs +1686 -0
- package/dist/{alert-BE0cXifr.mjs → alert-DN7oOiZl.mjs} +1 -1
- package/dist/alert-DwTFq4bp.mjs +47 -0
- package/dist/{el-slider-D_kA0TiT.mjs → el-slider-C9_q447A.mjs} +1 -1
- package/dist/el-slider-dslleM3g.mjs +1059 -0
- package/dist/index-BzB8rqmg.mjs +131961 -0
- package/dist/{index-s9bhlFsR.mjs → index-DfRswjrC.mjs} +19136 -18956
- package/dist/{panel.vue_vue_type_style_index_0_lang-D0m8xJuR.mjs → panel.vue_vue_type_style_index_0_lang-DOsptET6.mjs} +1 -1
- package/dist/panel.vue_vue_type_style_index_0_lang-E8w23EhV.mjs +61 -0
- package/dist/style.css +1 -1
- package/dist/{tallPanel-C_lzWM4i.mjs → tallPanel-D0Zgkc3n.mjs} +1 -1
- package/dist/tallPanel-Dp1ZbCTR.mjs +84 -0
- package/package.json +3 -2
- package/types/viewerManager/load/loadModel.d.ts +23 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as D } from "./alert-
|
|
1
|
+
import { _ as D } from "./alert-DwTFq4bp.mjs";
|
|
2
2
|
import { defineComponent as H, ref as p, watch as O, onMounted as q, onBeforeUnmount as F, openBlock as i, createElementBlock as a, unref as n, createCommentVNode as b, createElementVNode as c, normalizeClass as f, Fragment as B, renderList as C, toDisplayString as R, withDirectives as U, createVNode as z, vShow as G } from "vue";
|
|
3
|
-
import { F as j, G as J, H as o, I as v, P as r, M as K } from "./index-
|
|
3
|
+
import { F as j, G as J, H as o, I as v, P as r, M as K } from "./index-DfRswjrC.mjs";
|
|
4
4
|
import { A as l } from "./const-DOnRsYpZ.mjs";
|
|
5
5
|
const Q = { class: "annotation_component" }, Y = {
|
|
6
6
|
key: 0,
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { _ as D } from "./alert-DN7oOiZl.mjs";
|
|
2
|
+
import { defineComponent as H, ref as p, watch as O, onMounted as q, onBeforeUnmount as F, openBlock as i, createElementBlock as a, unref as n, createCommentVNode as b, createElementVNode as c, normalizeClass as f, Fragment as B, renderList as C, toDisplayString as R, withDirectives as U, createVNode as z, vShow as G } from "vue";
|
|
3
|
+
import { F as j, G as J, H as o, I as v, P as r, M as K } from "./index-BzB8rqmg.mjs";
|
|
4
|
+
import { A as l } from "./const-DOnRsYpZ.mjs";
|
|
5
|
+
const Q = { class: "annotation_component" }, Y = {
|
|
6
|
+
key: 0,
|
|
7
|
+
id: "annotation_toolbar",
|
|
8
|
+
class: "annotation_toolbar"
|
|
9
|
+
}, Z = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "toolbar_trangle"
|
|
12
|
+
}, ee = { class: "annotation_toolbar_group" }, ne = ["id", "disabled", "onClick"], te = ["src"], oe = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "toolbar_trangle"
|
|
15
|
+
}, ie = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "mobile_annotation_toolbar"
|
|
18
|
+
}, ae = { class: "anno_toolList" }, se = { class: "label-list" }, ce = ["onClick"], re = { class: "item-img" }, le = ["src"], _e = { class: "item-name" }, de = /* @__PURE__ */ H({
|
|
19
|
+
__name: "AnnotationTool",
|
|
20
|
+
props: ["componentId"],
|
|
21
|
+
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
22
|
+
setup(P, { emit: $ }) {
|
|
23
|
+
const y = j(), w = J(), M = $, d = (e) => {
|
|
24
|
+
M("emitHandler", e);
|
|
25
|
+
};
|
|
26
|
+
let T;
|
|
27
|
+
const A = p(!0), s = p("");
|
|
28
|
+
let m;
|
|
29
|
+
const S = p(), h = P;
|
|
30
|
+
O(
|
|
31
|
+
() => w.isToolActive(h.componentId),
|
|
32
|
+
(e) => {
|
|
33
|
+
e || (s.value = "");
|
|
34
|
+
}
|
|
35
|
+
), q(() => {
|
|
36
|
+
S.value = o("annoLimit"), w.setReadyById(h.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
|
+
}, k = () => {
|
|
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
|
+
}), o("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", k);
|
|
76
|
+
const I = (e) => {
|
|
77
|
+
g(L(e.type));
|
|
78
|
+
};
|
|
79
|
+
v.on("setAnnoStatus", I), F(() => {
|
|
80
|
+
v.off("BimViewer", k), v.off("setAnnoStatus", I);
|
|
81
|
+
});
|
|
82
|
+
const L = (e) => {
|
|
83
|
+
if (e === "image")
|
|
84
|
+
return l[0];
|
|
85
|
+
if (e === "record")
|
|
86
|
+
return l[1];
|
|
87
|
+
if (e === "video")
|
|
88
|
+
return l[2];
|
|
89
|
+
if (e === "file")
|
|
90
|
+
return l[3];
|
|
91
|
+
if (e === "text")
|
|
92
|
+
return l[4];
|
|
93
|
+
}, g = (e) => {
|
|
94
|
+
o("editPrivilege") != 1 && (s.value === e.code ? (s.value = "", V(e, !1)) : (s.value = e.code, V(e, !0)));
|
|
95
|
+
}, N = (e) => {
|
|
96
|
+
window.bimViewer.annotationTool.setEnabled(e);
|
|
97
|
+
}, V = (e, _) => {
|
|
98
|
+
N(_), E(e.code, _);
|
|
99
|
+
}, E = (e, _) => {
|
|
100
|
+
window.bimViewer.annotationTool.setCurrentType(e), d({
|
|
101
|
+
isTool: !0,
|
|
102
|
+
event_target: "AnnotationTool",
|
|
103
|
+
event_name: "clickAnnoTool",
|
|
104
|
+
content: {
|
|
105
|
+
active: _,
|
|
106
|
+
tool_type: e
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
return (e, _) => {
|
|
111
|
+
const W = D;
|
|
112
|
+
return i(), a("div", Q, [
|
|
113
|
+
n(o)("isMobile") ? (i(), a("div", ie, [
|
|
114
|
+
c("div", ae, [
|
|
115
|
+
c("div", se, [
|
|
116
|
+
(i(!0), a(B, null, C(n(l), (t, u) => (i(), a("div", {
|
|
117
|
+
key: u,
|
|
118
|
+
class: f(["label-item", { "label-item-active": s.value === t.code && n(o)("editPrivilege") == 0, noPermission: n(o)("editPrivilege") == 1 }]),
|
|
119
|
+
onClick: (X) => g(t)
|
|
120
|
+
}, [
|
|
121
|
+
c("div", re, [
|
|
122
|
+
c("img", {
|
|
123
|
+
class: "label-item-img",
|
|
124
|
+
src: n(r) + `/bim-viewer/annotation/new-icons/bimkk-mobile-anno-${s.value === t.code && n(o)("editPrivilege") == 0 ? t.imgActive : t.img}.svg`,
|
|
125
|
+
alt: ""
|
|
126
|
+
}, null, 8, le),
|
|
127
|
+
c("div", _e, R(n(y)(t.name)), 1)
|
|
128
|
+
])
|
|
129
|
+
], 10, ce))), 128))
|
|
130
|
+
])
|
|
131
|
+
])
|
|
132
|
+
])) : (i(), a("div", Y, [
|
|
133
|
+
n(o)("annotationPos").pos.includes("top") ? (i(), a("div", Z)) : b("", !0),
|
|
134
|
+
c("div", {
|
|
135
|
+
class: f(["annotation_toolbar_wrapper", { annotation_toolbar_wrapper_disable: n(o)("editPrivilege") == 1 }])
|
|
136
|
+
}, [
|
|
137
|
+
c("div", ee, [
|
|
138
|
+
(i(!0), a(B, null, C(n(l), (t, u) => (i(), a("button", {
|
|
139
|
+
id: `annotation_tool_btn_${u}`,
|
|
140
|
+
key: u,
|
|
141
|
+
class: f(["annotation_tool_btn", { active: s.value === t.code }]),
|
|
142
|
+
disabled: n(o)("editPrivilege") == 1,
|
|
143
|
+
onClick: (X) => g(t)
|
|
144
|
+
}, [
|
|
145
|
+
b("", !0),
|
|
146
|
+
c("img", {
|
|
147
|
+
src: `${n(r)}/bim-viewer/action-bars/panno-${s.value !== t.code ? t.img : t.imgActive}.svg`
|
|
148
|
+
}, null, 8, te)
|
|
149
|
+
], 10, ne))), 128))
|
|
150
|
+
])
|
|
151
|
+
], 2),
|
|
152
|
+
n(o)("annotationPos").pos.includes("bottom") ? (i(), a("div", oe)) : b("", !0)
|
|
153
|
+
])),
|
|
154
|
+
U(z(W, {
|
|
155
|
+
"click-handle": () => {
|
|
156
|
+
A.value = !1;
|
|
157
|
+
}
|
|
158
|
+
}, null, 8, ["click-handle"]), [
|
|
159
|
+
[G, A.value && n(o)("editPrivilege") == 0]
|
|
160
|
+
])
|
|
161
|
+
]);
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
}), pe = /* @__PURE__ */ K(de, [["__scopeId", "data-v-7c08da5a"]]);
|
|
165
|
+
export {
|
|
166
|
+
pe as default
|
|
167
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ax as e, S as t, ay as o, az as i, Y as l, aA as n, aB as I, aC as r, aD as C, aE as f, aF as g, aG as B, aH as S, O as u } from "./index-
|
|
1
|
+
import { ax as e, S as t, ay as o, az as i, Y as l, aA as n, aB as I, aC as r, aD as C, aE as f, aF as g, aG as B, aH as S, O as u } from "./index-BzB8rqmg.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
t as BIMX_CONFIGS,
|