@xtctwins/tctwins-bimx-engine 0.1.26 → 0.1.28
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-C4C6SZWF.mjs +143 -0
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +64 -64
- package/dist/CommentTool-BR5z5d1_.mjs +335 -0
- package/dist/{HiddenTool-CByRLiWI.mjs → HiddenTool-DY4J92av.mjs} +1 -1
- package/dist/{InspectorTool-DGSfDl_Z.mjs → InspectorTool-DQb5bZan.mjs} +151 -151
- package/dist/{MeasureTool-KcQV73XD.mjs → MeasureTool-IcdYRamN.mjs} +8 -8
- package/dist/NavigateTool-aP3VxewX.mjs +57 -0
- package/dist/{RoamTool-CygJ_sUz.mjs → RoamTool-DO8_KBqb.mjs} +1 -1
- package/dist/{ScreenShotTool-Cf6r7FDF.mjs → ScreenShotTool-Bk_3zk4o.mjs} +4 -4
- package/dist/{SectionTool-WcljuIkW.mjs → SectionTool-hdXiGiAC.mjs} +4 -4
- package/dist/{SettingTool-BHckW5ur.mjs → SettingTool-fkRQzPp7.mjs} +8 -8
- package/dist/{StructureTree-Dr8yr_PM.mjs → StructureTree-DdqvUx5d.mjs} +8 -8
- package/dist/{debounce-D8CwXaLD.mjs → debounce-BAJ8HUpc.mjs} +1 -1
- package/dist/{el-checkbox-D23nTXZX.mjs → el-checkbox-Dkaz-6Jx.mjs} +4 -4
- package/dist/{el-input-CStthQYQ.mjs → el-input-BEOrpgrg.mjs} +1 -1
- package/dist/{el-input-number-DkvnV_i_.mjs → el-input-number-CEycM5U8.mjs} +4 -4
- package/dist/{index-CCuLPd7Y.mjs → index-DEtob6YM.mjs} +10029 -9980
- package/dist/{index-Dut7GZTh.mjs → index-DJhAzOUx.mjs} +1 -1
- package/dist/{index-BWsywO3H.mjs → index-DvT0bOFw.mjs} +1 -1
- package/dist/{isEqual-niMT0ds-.mjs → isEqual-DhGlSHO2.mjs} +1 -1
- package/dist/{panel.vue_vue_type_style_index_0_lang-B9qwBT8h.mjs → panel.vue_vue_type_style_index_0_lang-Ca6QDPsQ.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-J0wG2kIg.mjs → tallPanel-CmsSxTIy.mjs} +2 -2
- package/package.json +2 -2
- package/types/index.d.ts +4 -4
- package/types/pages/BIMXViewer.vue.d.ts +11 -3
- package/types/store/initConfigs.d.ts +23 -6
- package/types/utils/eventBus.d.ts +13 -0
- package/types/viewerManager/initial/viewerInitial.d.ts +7 -0
- package/types/viewerManager/load/loadModel.d.ts +1 -0
- package/types/viewerManager/viewerManager.d.ts +11 -0
- package/dist/AnnotationTool-BqNzFM9l.mjs +0 -136
- package/dist/CommentTool-BD3Bsxjl.mjs +0 -338
- package/dist/NavigateTool-DYiVS8A_.mjs +0 -61
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { j as S, k as r, l as x, O as a, m as E, n as N } from "./index-DEtob6YM.mjs";
|
|
2
|
+
import { defineComponent as W, ref as g, onMounted as X, openBlock as e, createElementBlock as i, unref as s, createCommentVNode as u, createElementVNode as t, Fragment as b, renderList as T, normalizeClass as w, createVNode as L, withCtx as O, toDisplayString as D, pushScopeId as H, popScopeId as q } from "vue";
|
|
3
|
+
import { A as f } from "./const-CbUmfuHy.mjs";
|
|
4
|
+
const P = (l) => (H("data-v-e55c9119"), l = l(), q(), l), R = { class: "annotation_component" }, j = {
|
|
5
|
+
key: 0,
|
|
6
|
+
id: "annotation_toolbar",
|
|
7
|
+
class: "annotation_toolbar"
|
|
8
|
+
}, z = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "toolbar_trangle"
|
|
11
|
+
}, F = { class: "annotation_toolbar_wrapper" }, U = { class: "annotation_toolbar_group" }, G = ["id", "onClick"], J = ["src"], K = {
|
|
12
|
+
key: 1,
|
|
13
|
+
class: "toolbar_trangle"
|
|
14
|
+
}, Q = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "mobile_annotation_toolbar"
|
|
17
|
+
}, Y = /* @__PURE__ */ P(() => /* @__PURE__ */ t("div", { class: "label-title-box" }, [
|
|
18
|
+
/* @__PURE__ */ t("div", { class: "label-title" }, "标注")
|
|
19
|
+
], -1)), Z = { class: "label-list" }, oo = ["onClick"], no = { class: "item-img" }, to = ["src"], eo = ["src"], io = { class: "item-name" }, ao = /* @__PURE__ */ W({
|
|
20
|
+
__name: "AnnotationTool",
|
|
21
|
+
props: ["componentId"],
|
|
22
|
+
emits: ["uploadImage", "clickAnnotation", "emitHandler"],
|
|
23
|
+
setup(l, { emit: h }) {
|
|
24
|
+
const A = S(), k = h, _ = (o) => {
|
|
25
|
+
k("emitHandler", o);
|
|
26
|
+
};
|
|
27
|
+
let p;
|
|
28
|
+
const c = g("");
|
|
29
|
+
let d;
|
|
30
|
+
const I = g(), B = l;
|
|
31
|
+
X(() => {
|
|
32
|
+
I.value = r("annoLimit"), A.setReadyById(B.componentId);
|
|
33
|
+
});
|
|
34
|
+
const V = {
|
|
35
|
+
image: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/image_active.png`,
|
|
36
|
+
file: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/file_active.png`,
|
|
37
|
+
record: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/record_active.png`,
|
|
38
|
+
text: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/text_active.png`,
|
|
39
|
+
video: `${a}/BIMX_Website/main/mainView/function_icon/annotation_icons/video_active.png`
|
|
40
|
+
};
|
|
41
|
+
x.on("BimViewer", () => {
|
|
42
|
+
p = window.BimViewer.annotationTool, p.setTypeImage(V), d = window.BimViewer.eventTrigger, d.on("createAnnotation", (o) => {
|
|
43
|
+
_({
|
|
44
|
+
isTool: !0,
|
|
45
|
+
event_target: "AnnotationTool",
|
|
46
|
+
event_name: "createAnnotation",
|
|
47
|
+
content: {
|
|
48
|
+
currentAnnotation: o.currentAnnotation
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
}), d.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") || d.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
|
+
const v = (o) => {
|
|
73
|
+
c.value === o.code ? c.value = "" : (C(o), c.value = o.code);
|
|
74
|
+
}, y = (o) => {
|
|
75
|
+
window.BimViewer.annotationTool.setEnabled(o);
|
|
76
|
+
}, C = (o) => {
|
|
77
|
+
y(!0), window.BimViewer.annotationTool.setCurrentType(o.code), _({
|
|
78
|
+
isTool: !0,
|
|
79
|
+
event_target: "AnnotationTool",
|
|
80
|
+
event_name: "clickAnnoTool",
|
|
81
|
+
content: {
|
|
82
|
+
item: o,
|
|
83
|
+
tool_type: o.code
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
return (o, so) => {
|
|
88
|
+
const $ = E;
|
|
89
|
+
return e(), i("div", R, [
|
|
90
|
+
s(r)("isMobile") ? (e(), i("div", Q, [
|
|
91
|
+
Y,
|
|
92
|
+
L($, null, {
|
|
93
|
+
default: O(() => [
|
|
94
|
+
t("div", Z, [
|
|
95
|
+
(e(!0), i(b, null, T(s(f), (n, m) => (e(), i("div", {
|
|
96
|
+
key: m,
|
|
97
|
+
class: w(["label-item", { "label-item-active": c.value === n.code }]),
|
|
98
|
+
onClick: (M) => v(n)
|
|
99
|
+
}, [
|
|
100
|
+
t("div", no, [
|
|
101
|
+
t("img", {
|
|
102
|
+
class: "label-item-img",
|
|
103
|
+
src: s(a) + `/bim-viewer/label-bar/${c.value === n.code ? n.imgActive : n.img}.svg`,
|
|
104
|
+
alt: ""
|
|
105
|
+
}, null, 8, to),
|
|
106
|
+
t("img", {
|
|
107
|
+
class: "label-item-icon",
|
|
108
|
+
src: s(a) + "/member-images/open-member-icon.png",
|
|
109
|
+
alt: ""
|
|
110
|
+
}, null, 8, eo)
|
|
111
|
+
]),
|
|
112
|
+
t("div", io, D(n.name), 1)
|
|
113
|
+
], 10, oo))), 128))
|
|
114
|
+
])
|
|
115
|
+
]),
|
|
116
|
+
_: 1
|
|
117
|
+
})
|
|
118
|
+
])) : (e(), i("div", j, [
|
|
119
|
+
s(r)("annotationPos").pos.includes("top") ? (e(), i("div", z)) : u("", !0),
|
|
120
|
+
t("div", F, [
|
|
121
|
+
t("div", U, [
|
|
122
|
+
(e(!0), i(b, null, T(s(f), (n, m) => (e(), i("button", {
|
|
123
|
+
id: `annotation_tool_btn_${m}`,
|
|
124
|
+
key: m,
|
|
125
|
+
class: w(["annotation_tool_btn", { active: c.value === n.code }]),
|
|
126
|
+
onClick: (M) => v(n)
|
|
127
|
+
}, [
|
|
128
|
+
u("", !0),
|
|
129
|
+
t("img", {
|
|
130
|
+
src: `${s(a)}/BIMX_Website/main/mainView/function_icon/annotation_icons/${c.value !== n.code ? n.img : n.img_active}.png`
|
|
131
|
+
}, null, 8, J)
|
|
132
|
+
], 10, G))), 128))
|
|
133
|
+
])
|
|
134
|
+
]),
|
|
135
|
+
s(r)("annotationPos").pos.includes("bottom") ? (e(), i("div", K)) : u("", !0)
|
|
136
|
+
]))
|
|
137
|
+
]);
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}), _o = /* @__PURE__ */ N(ao, [["__scopeId", "data-v-e55c9119"]]);
|
|
141
|
+
export {
|
|
142
|
+
_o as default
|
|
143
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-DEtob6YM.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as BIMXViewer,
|
|
4
4
|
o as BIMX_CONFIGS,
|