@xtctwins/tctwins-bimx-engine 0.1.33 → 0.1.35
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 +1 -1
- package/dist/AnnotationTool-CLYZuU81.mjs +153 -0
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +84 -84
- package/dist/CommentTool-Mh5N_8iN.mjs +333 -0
- package/dist/HiddenTool-Bv9bX31_.mjs +60 -0
- package/dist/{InspectorTool-Ce-Wk3Uy.mjs → InspectorTool-DSdALguf.mjs} +136 -132
- package/dist/MeasureTool-DVPAMHvo.mjs +1550 -0
- package/dist/{NavigateTool-DjGGfq4b.mjs → NavigateTool-DCZLhFfF.mjs} +2 -2
- package/dist/{RoamTool-BA_476iP.mjs → RoamTool-BGF-Jeq2.mjs} +72 -72
- package/dist/{ScreenShotTool-BTNzV076.mjs → ScreenShotTool-C55_S1c6.mjs} +67 -67
- package/dist/SectionTool-CaZl_yLK.mjs +342 -0
- package/dist/{SettingTool-CgJOBRDw.mjs → SettingTool-PZsS2KFk.mjs} +190 -188
- package/dist/{StructureTree-CPs_2UV1.mjs → StructureTree-CD6SLpxz.mjs} +372 -367
- package/dist/{alert-CCJ34Qvf.mjs → alert-DeVpYsG-.mjs} +2 -2
- package/dist/{closeButton-DCFqV7lY.mjs → closeButton-Ny2BfYDs.mjs} +1 -1
- package/dist/{const-CbUmfuHy.mjs → const-B1FlFgEN.mjs} +6 -6
- package/dist/{debounce-BXszQgvb.mjs → debounce-B-0-Zlkw.mjs} +15 -15
- package/dist/{el-checkbox-B_QTJP6K.mjs → el-checkbox-DUm4I46J.mjs} +49 -49
- package/dist/{el-input-BCxMVbZv.mjs → el-input-Bp_je36-.mjs} +76 -76
- package/dist/{el-input-number-1dItDMyz.mjs → el-input-number-CUqyYIuE.mjs} +91 -91
- package/dist/{index-CRB02QSu.mjs → index-Bgqm0ML8.mjs} +1 -1
- package/dist/{index-JU_9uVgQ.mjs → index-BhURxB0L.mjs} +1 -1
- package/dist/{index-8btjaCX4.mjs → index-Ciquw8ck.mjs} +5130 -5065
- package/dist/{isEqual-BcBBoqUR.mjs → isEqual-cznDlfTD.mjs} +8 -8
- package/dist/{panel.vue_vue_type_style_index_0_lang--pkTEFg_.mjs → panel.vue_vue_type_style_index_0_lang-SUmFpoPb.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{tallPanel-C0o-YZhq.mjs → tallPanel-Ba2vw5v6.mjs} +2 -2
- package/package.json +3 -2
- package/types/utils/eventBus.d.ts +13 -0
- package/types/viewerManager/initial/viewerInitial.d.ts +1 -1
- package/types/viewerManager/viewerManager.d.ts +2 -1
- package/dist/AnnotationTool-DFEHo8Ev.mjs +0 -151
- package/dist/CommentTool-Crxhk35r.mjs +0 -335
- package/dist/HiddenTool-BHhSQI0h.mjs +0 -58
- package/dist/MeasureTool-CmQMu_-F.mjs +0 -1551
- package/dist/SectionTool-B4jGOmCJ.mjs +0 -340
package/README.md
CHANGED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { _ as L } from "./alert-DeVpYsG-.mjs";
|
|
2
|
+
import { j as D, k as r, l as h, O as a, m as O, n as H } from "./index-Ciquw8ck.mjs";
|
|
3
|
+
import { defineComponent as q, ref as p, onMounted as P, onBeforeUnmount as R, openBlock as e, createElementBlock as i, unref as s, createCommentVNode as v, createElementVNode as t, Fragment as A, renderList as k, normalizeClass as B, createVNode as I, withCtx as U, toDisplayString as j, withDirectives as z, vShow as F, pushScopeId as G, popScopeId as J } from "vue";
|
|
4
|
+
import { A as V } from "./const-B1FlFgEN.mjs";
|
|
5
|
+
const K = (l) => (G("data-v-b19acf31"), l = l(), J(), l), 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
|
+
}, oo = { class: "annotation_toolbar_wrapper" }, no = { class: "annotation_toolbar_group" }, to = ["id", "onClick"], eo = ["src"], io = {
|
|
13
|
+
key: 1,
|
|
14
|
+
class: "toolbar_trangle"
|
|
15
|
+
}, ao = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "mobile_annotation_toolbar"
|
|
18
|
+
}, so = /* @__PURE__ */ K(() => /* @__PURE__ */ t("div", { class: "label-title-box" }, [
|
|
19
|
+
/* @__PURE__ */ t("div", { class: "label-title" }, "标注")
|
|
20
|
+
], -1)), co = { class: "label-list" }, lo = ["onClick"], ro = { class: "item-img" }, _o = ["src"], mo = ["src"], uo = { class: "item-name" }, po = /* @__PURE__ */ q({
|
|
21
|
+
__name: "AnnotationTool",
|
|
22
|
+
props: ["componentId"],
|
|
23
|
+
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
24
|
+
setup(l, { emit: y }) {
|
|
25
|
+
const C = D(), S = y, _ = (o) => {
|
|
26
|
+
S("emitHandler", o);
|
|
27
|
+
};
|
|
28
|
+
let b;
|
|
29
|
+
const g = p(!0), c = p("");
|
|
30
|
+
let m;
|
|
31
|
+
const $ = p(), M = l;
|
|
32
|
+
P(() => {
|
|
33
|
+
$.value = r("annoLimit"), C.setReadyById(M.componentId);
|
|
34
|
+
});
|
|
35
|
+
const x = {
|
|
36
|
+
image: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
|
|
37
|
+
file: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
|
|
38
|
+
record: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
|
|
39
|
+
text: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
|
|
40
|
+
video: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
|
|
41
|
+
}, f = () => {
|
|
42
|
+
b = window.BimViewer.annotationTool, b.setTypeImage(x), m = window.BimViewer.eventTrigger, m.on("createAnnotation", (o) => {
|
|
43
|
+
_({
|
|
44
|
+
isTool: !0,
|
|
45
|
+
event_target: "AnnotationTool",
|
|
46
|
+
event_name: "createAnnotation",
|
|
47
|
+
content: {
|
|
48
|
+
currentAnnotation: o
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}), m.on("markerClicked", (o) => {
|
|
52
|
+
_({
|
|
53
|
+
isTool: !0,
|
|
54
|
+
event_target: "AnnotationTool",
|
|
55
|
+
event_name: "clickAnnotation",
|
|
56
|
+
content: {
|
|
57
|
+
targetAnno: o
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
}), r("isMobile") || m.on("requestDeleteMarker", (o) => {
|
|
61
|
+
_({
|
|
62
|
+
isTool: !0,
|
|
63
|
+
event_target: "AnnotationTool",
|
|
64
|
+
event_name: "requestDelAnno",
|
|
65
|
+
content: {
|
|
66
|
+
msg: "请求删除指定标注",
|
|
67
|
+
annoId: o
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
h.on("BimViewer", f), R(() => {
|
|
73
|
+
h.off("BimViewer", f);
|
|
74
|
+
});
|
|
75
|
+
const w = (o) => {
|
|
76
|
+
c.value === o.code ? (c.value = "", T(o, !1)) : (c.value = o.code, T(o, !0));
|
|
77
|
+
}, E = (o) => {
|
|
78
|
+
window.BimViewer.annotationTool.setEnabled(o);
|
|
79
|
+
}, T = (o, u) => {
|
|
80
|
+
E(u), window.BimViewer.annotationTool.setCurrentType(o.code), _({
|
|
81
|
+
isTool: !0,
|
|
82
|
+
event_target: "AnnotationTool",
|
|
83
|
+
event_name: "clickAnnoTool",
|
|
84
|
+
content: {
|
|
85
|
+
active: u,
|
|
86
|
+
tool_type: o.code
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
return (o, u) => {
|
|
91
|
+
const N = O, W = L;
|
|
92
|
+
return e(), i("div", Q, [
|
|
93
|
+
s(r)("isMobile") ? (e(), i("div", ao, [
|
|
94
|
+
so,
|
|
95
|
+
I(N, null, {
|
|
96
|
+
default: U(() => [
|
|
97
|
+
t("div", co, [
|
|
98
|
+
(e(!0), i(A, null, k(s(V), (n, d) => (e(), i("div", {
|
|
99
|
+
key: d,
|
|
100
|
+
class: B(["label-item", { "label-item-active": c.value === n.code }]),
|
|
101
|
+
onClick: (X) => w(n)
|
|
102
|
+
}, [
|
|
103
|
+
t("div", ro, [
|
|
104
|
+
t("img", {
|
|
105
|
+
class: "label-item-img",
|
|
106
|
+
src: s(a) + `/bim-viewer/label-bar/${c.value === n.code ? n.imgActive : n.img}.svg`,
|
|
107
|
+
alt: ""
|
|
108
|
+
}, null, 8, _o),
|
|
109
|
+
t("img", {
|
|
110
|
+
class: "label-item-icon",
|
|
111
|
+
src: s(a) + "/member-images/open-member-icon.png",
|
|
112
|
+
alt: ""
|
|
113
|
+
}, null, 8, mo)
|
|
114
|
+
]),
|
|
115
|
+
t("div", uo, j(n.name), 1)
|
|
116
|
+
], 10, lo))), 128))
|
|
117
|
+
])
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
})
|
|
121
|
+
])) : (e(), i("div", Y, [
|
|
122
|
+
s(r)("annotationPos").pos.includes("top") ? (e(), i("div", Z)) : v("", !0),
|
|
123
|
+
t("div", oo, [
|
|
124
|
+
t("div", no, [
|
|
125
|
+
(e(!0), i(A, null, k(s(V), (n, d) => (e(), i("button", {
|
|
126
|
+
id: `annotation_tool_btn_${d}`,
|
|
127
|
+
key: d,
|
|
128
|
+
class: B(["annotation_tool_btn", { active: c.value === n.code }]),
|
|
129
|
+
onClick: (X) => w(n)
|
|
130
|
+
}, [
|
|
131
|
+
v("", !0),
|
|
132
|
+
t("img", {
|
|
133
|
+
src: `${s(a)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${c.value !== n.code ? n.img : n.img_active}.png`
|
|
134
|
+
}, null, 8, eo)
|
|
135
|
+
], 10, to))), 128))
|
|
136
|
+
])
|
|
137
|
+
]),
|
|
138
|
+
s(r)("annotationPos").pos.includes("bottom") ? (e(), i("div", io)) : v("", !0)
|
|
139
|
+
])),
|
|
140
|
+
z(I(W, {
|
|
141
|
+
"click-handle": () => {
|
|
142
|
+
g.value = !1;
|
|
143
|
+
}
|
|
144
|
+
}, null, 8, ["click-handle"]), [
|
|
145
|
+
[F, g.value]
|
|
146
|
+
])
|
|
147
|
+
]);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
}), wo = /* @__PURE__ */ H(po, [["__scopeId", "data-v-b19acf31"]]);
|
|
151
|
+
export {
|
|
152
|
+
wo as default
|
|
153
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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-Ciquw8ck.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
o as BIMX_CONFIGS,
|