@xtctwins/tctwins-bimx-engine 0.2.0 → 0.2.2
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 -0
- package/dist/{AnnotationTool-arIex1Rk.mjs → AnnotationTool-BaH4ZhnK.mjs} +2 -2
- package/dist/BIMX_Viewer_Lib.es.js +1 -1
- package/dist/BIMX_Viewer_Lib.umd.js +128 -128
- package/dist/{CommentTool-BbKUZpgI.mjs → CommentTool-1K5X3dOV.mjs} +1 -1
- package/dist/{HiddenTool-DqZ28w5-.mjs → HiddenTool-QYeyOoMf.mjs} +1 -1
- package/dist/{InspectorTool-DypAuI2G.mjs → InspectorTool-CfO82Cxw.mjs} +3 -3
- package/dist/{MeasureTool-DZEdrMOl.mjs → MeasureTool-BxewbRN-.mjs} +2 -2
- package/dist/{NavigateTool-KgLSAtNA.mjs → NavigateTool-CXm7RwIg.mjs} +1 -1
- package/dist/RoamTool-CfvpMBOw.mjs +287 -0
- package/dist/{ScreenShotTool-DnFqtcN1.mjs → ScreenShotTool-BhsCuXbx.mjs} +2 -2
- package/dist/{SectionTool-DAvASAst.mjs → SectionTool-DgLoed3c.mjs} +4 -4
- package/dist/SettingTool-Cxfwu47P.mjs +605 -0
- package/dist/{StructureTree-BASKbaTo.mjs → StructureTree-Bz-olgHD.mjs} +99 -100
- package/dist/{alert-BuUBMhFp.mjs → alert-rYHSP5Fm.mjs} +1 -1
- package/dist/{el-input-number-BV1LbbHp.mjs → el-input-number-CkfxerCT.mjs} +1 -1
- package/dist/{index-DKHtwAZz.mjs → index-CrYdrQmt.mjs} +3660 -3602
- package/dist/{panel.vue_vue_type_style_index_0_lang-DcZvptlN.mjs → panel.vue_vue_type_style_index_0_lang-D6jJ0P3X.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{tallPanel-1CzQBBwR.mjs → tallPanel-9aSAu1ZV.mjs} +1 -1
- package/package.json +1 -1
- package/dist/RoamTool-BJAg1MLj.mjs +0 -224
- package/dist/SettingTool-CrD-gju0.mjs +0 -591
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as g, o as t, T as i, y, z as x, v as S, x as b } from "./index-
|
|
1
|
+
import { n as g, o as t, T as i, y, z as x, v as S, x as b } from "./index-CrYdrQmt.mjs";
|
|
2
2
|
import { defineComponent as k, ref as u, onMounted as P, watch as w, openBlock as _, createElementBlock as f, normalizeStyle as W, createElementVNode as o, toDisplayString as C, createVNode as T, unref as h, renderSlot as N, createCommentVNode as E } from "vue";
|
|
3
3
|
const $ = { class: "tall_panel_content" }, B = { class: "panel_top" }, H = { class: "panel_title" }, L = { class: "panel_close" }, z = { class: "panel_content" }, M = {
|
|
4
4
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as m, onMounted as O, onBeforeUnmount as G, watch as X, openBlock as w, createElementBlock as _, unref as d, createElementVNode as n, createCommentVNode as L } from "vue";
|
|
2
|
-
import { n as A, o as v, B as y, p as h, O as l, A as R, x as H } from "./index-DKHtwAZz.mjs";
|
|
3
|
-
const j = { class: "roam_container_wrapper" }, q = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "roam_container"
|
|
6
|
-
}, z = ["src"], J = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "mobile_roam-box"
|
|
9
|
-
}, K = { class: "roam-left" }, Q = { class: "roam-left-box" }, W = {
|
|
10
|
-
id: "roamMoveForward",
|
|
11
|
-
class: "roam-left-item"
|
|
12
|
-
}, Y = ["src"], Z = { class: "roam-left-box" }, $ = {
|
|
13
|
-
id: "roamMoveBackward",
|
|
14
|
-
class: "roam-left-item roam-left-bottom"
|
|
15
|
-
}, ee = ["src"], oe = { class: "roam-right" }, te = {
|
|
16
|
-
id: "roamMoveUp",
|
|
17
|
-
class: "roam-right-up"
|
|
18
|
-
}, ne = ["src"], re = { class: "roam-right-center" }, ae = {
|
|
19
|
-
id: "roamMoveLeft",
|
|
20
|
-
class: "center-left"
|
|
21
|
-
}, se = ["src"], ie = { class: "center-center" }, de = ["src"], le = {
|
|
22
|
-
id: "roamMoveRight",
|
|
23
|
-
class: "center-right"
|
|
24
|
-
}, me = ["src"], ue = {
|
|
25
|
-
id: "roamMoveDown",
|
|
26
|
-
class: "roam-right-down"
|
|
27
|
-
}, ce = ["src"], ve = /* @__PURE__ */ N({
|
|
28
|
-
__name: "RoamTool",
|
|
29
|
-
props: ["componentId"],
|
|
30
|
-
emits: ["closePanel", "emitHandler"],
|
|
31
|
-
setup(D, { emit: T }) {
|
|
32
|
-
const p = A();
|
|
33
|
-
m("speed-up"), m("speed-down");
|
|
34
|
-
const M = m("1"), f = m(!1), c = m(!0), b = D, C = T, r = m(!1), g = (e) => {
|
|
35
|
-
C("emitHandler", e);
|
|
36
|
-
}, o = m(v("isMobile"));
|
|
37
|
-
O(() => {
|
|
38
|
-
(v("isMobile") || y.showRoam === !1) && (c.value = !1), setTimeout(() => {
|
|
39
|
-
k(), V(), F(), U(), P(), x();
|
|
40
|
-
}, 1e3), p.setReadyById(b.componentId);
|
|
41
|
-
});
|
|
42
|
-
const E = () => {
|
|
43
|
-
let e = window.bimViewer.eventTrigger;
|
|
44
|
-
e.on("personModeSpeedUp", (t) => {
|
|
45
|
-
M.value = t.toString();
|
|
46
|
-
}), e.on("personModeSpeedDown", (t) => {
|
|
47
|
-
M.value = t.toString();
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
h.on("BimViewer", E), G(() => {
|
|
51
|
-
h.off("BimViewer", E);
|
|
52
|
-
}), R.BIMX_CONFIGS.RoamTool || (h.on("BIMX_CONFIGS", () => {
|
|
53
|
-
y.showRoam == !1 && (c.value = !1);
|
|
54
|
-
}), R.BIMX_CONFIGS.RoamTool = !0), X(
|
|
55
|
-
() => p.isToolActive(b.componentId),
|
|
56
|
-
(e) => {
|
|
57
|
-
B(!!e);
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
const B = (e) => {
|
|
61
|
-
v("isMobile") ? r.value = e : e ? c.value && (f.value = !0) : f.value = !1;
|
|
62
|
-
}, S = () => {
|
|
63
|
-
c.value = !1, g({
|
|
64
|
-
isTool: !0,
|
|
65
|
-
event_target: "RoamTool",
|
|
66
|
-
event_name: "rejectRoamCourse",
|
|
67
|
-
content: {
|
|
68
|
-
msg: "不要再显示漫游教程"
|
|
69
|
-
}
|
|
70
|
-
}), I();
|
|
71
|
-
}, I = () => {
|
|
72
|
-
f.value = !1;
|
|
73
|
-
}, k = () => {
|
|
74
|
-
var e, t, a;
|
|
75
|
-
(e = document.getElementById("roamMoveUp")) == null || e.addEventListener(o.value ? "touchstart" : "mousedown", (i) => {
|
|
76
|
-
r.value && (o.value && i.preventDefault(), window.bimViewer.firstPersonMode.goUp = !0, u("goUp"));
|
|
77
|
-
}), (t = document.getElementById("roamMoveUp")) == null || t.addEventListener(o.value ? "touchend" : "mouseup", () => {
|
|
78
|
-
r.value && s();
|
|
79
|
-
}), (a = document.getElementById("roamMoveUp")) == null || a.addEventListener(o.value ? "touchcancel" : "mouseup", () => {
|
|
80
|
-
r.value && s();
|
|
81
|
-
});
|
|
82
|
-
}, V = () => {
|
|
83
|
-
var e, t, a;
|
|
84
|
-
(e = document.getElementById("roamMoveDown")) == null || e.addEventListener(o.value ? "touchstart" : "mousedown", (i) => {
|
|
85
|
-
r.value && (o.value && i.preventDefault(), window.bimViewer.firstPersonMode.goDown = !0, u("goDown"));
|
|
86
|
-
}), (t = document.getElementById("roamMoveDown")) == null || t.addEventListener(o.value ? "touchend" : "mouseup", () => {
|
|
87
|
-
r.value && s();
|
|
88
|
-
}), (a = document.getElementById("roamMoveDown")) == null || a.addEventListener(o.value ? "touchcancel" : "mouseup", () => {
|
|
89
|
-
r.value && s();
|
|
90
|
-
});
|
|
91
|
-
}, F = () => {
|
|
92
|
-
var e, t, a;
|
|
93
|
-
(e = document.getElementById("roamMoveLeft")) == null || e.addEventListener(o.value ? "touchstart" : "mousedown", (i) => {
|
|
94
|
-
r.value && (o.value && i.preventDefault(), window.bimViewer.firstPersonMode.goLeft = !0, u("goLeft"));
|
|
95
|
-
}), (t = document.getElementById("roamMoveLeft")) == null || t.addEventListener(o.value ? "touchend" : "mouseup", () => {
|
|
96
|
-
r.value && s();
|
|
97
|
-
}), (a = document.getElementById("roamMoveLeft")) == null || a.addEventListener(o.value ? "touchcancel" : "mouseup", () => {
|
|
98
|
-
r.value && s();
|
|
99
|
-
});
|
|
100
|
-
}, U = () => {
|
|
101
|
-
var e, t, a;
|
|
102
|
-
(e = document.getElementById("roamMoveRight")) == null || e.addEventListener(o.value ? "touchstart" : "mousedown", (i) => {
|
|
103
|
-
r.value && (o.value && i.preventDefault(), window.bimViewer.firstPersonMode.goRight = !0, u("goDown"));
|
|
104
|
-
}), (t = document.getElementById("roamMoveRight")) == null || t.addEventListener(o.value ? "touchend" : "mouseup", () => {
|
|
105
|
-
r.value && s();
|
|
106
|
-
}), (a = document.getElementById("roamMoveRight")) == null || a.addEventListener(o.value ? "touchcancel" : "mouseup", () => {
|
|
107
|
-
r.value && s();
|
|
108
|
-
});
|
|
109
|
-
}, P = () => {
|
|
110
|
-
var e, t, a;
|
|
111
|
-
(e = document.getElementById("roamMoveForward")) == null || e.addEventListener(o.value ? "touchstart" : "mousedown", (i) => {
|
|
112
|
-
r.value && (o.value && i.preventDefault(), window.bimViewer.firstPersonMode.goForward = !0, u("goForward"));
|
|
113
|
-
}), (t = document.getElementById("roamMoveForward")) == null || t.addEventListener(o.value ? "touchend" : "mouseup", () => {
|
|
114
|
-
r.value && s();
|
|
115
|
-
}), (a = document.getElementById("roamMoveForward")) == null || a.addEventListener(o.value ? "touchcancel" : "mouseup", () => {
|
|
116
|
-
r.value && s();
|
|
117
|
-
});
|
|
118
|
-
}, x = () => {
|
|
119
|
-
var e, t, a;
|
|
120
|
-
(e = document.getElementById("roamMoveBackward")) == null || e.addEventListener(o.value ? "touchstart" : "mousedown", (i) => {
|
|
121
|
-
r.value && (o.value && i.preventDefault(), window.bimViewer.firstPersonMode.goBackward = !0, u("goBackward"));
|
|
122
|
-
}), (t = document.getElementById("roamMoveBackward")) == null || t.addEventListener(o.value ? "touchend" : "mouseup", () => {
|
|
123
|
-
r.value && s();
|
|
124
|
-
}), (a = document.getElementById("roamMoveBackward")) == null || a.addEventListener(o.value ? "touchcancel" : "mouseup", () => {
|
|
125
|
-
r.value && s();
|
|
126
|
-
});
|
|
127
|
-
}, u = (e) => {
|
|
128
|
-
g({
|
|
129
|
-
isTool: !0,
|
|
130
|
-
event_target: "RoamTool",
|
|
131
|
-
event_name: "",
|
|
132
|
-
content: {
|
|
133
|
-
roam: e
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
}, s = () => {
|
|
137
|
-
window.bimViewer.firstPersonMode.setdirectionChangeCancel(), g({
|
|
138
|
-
isTool: !0,
|
|
139
|
-
event_target: "RoamTool",
|
|
140
|
-
event_name: "",
|
|
141
|
-
content: {
|
|
142
|
-
roam: "stop"
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
};
|
|
146
|
-
return (e, t) => (w(), _("div", j, [
|
|
147
|
-
!d(v)("isMobile") && f.value ? (w(), _("div", q, [
|
|
148
|
-
t[0] || (t[0] = n("div", { class: "container_title" }, "在第一视角中导航", -1)),
|
|
149
|
-
n("img", {
|
|
150
|
-
class: "container_img",
|
|
151
|
-
src: d(l) + "/bim-viewer/roam-icon.png",
|
|
152
|
-
alt: ""
|
|
153
|
-
}, null, 8, z),
|
|
154
|
-
n("div", { class: "container_footer" }, [
|
|
155
|
-
n("div", {
|
|
156
|
-
class: "btn1",
|
|
157
|
-
onClick: S
|
|
158
|
-
}, " 不要再提醒我 "),
|
|
159
|
-
n("div", {
|
|
160
|
-
class: "btn2",
|
|
161
|
-
onClick: I
|
|
162
|
-
}, " 好的,我知道了 ")
|
|
163
|
-
])
|
|
164
|
-
])) : L("", !0),
|
|
165
|
-
d(v)("isMobile") ? (w(), _("div", J, [
|
|
166
|
-
n("div", K, [
|
|
167
|
-
n("div", Q, [
|
|
168
|
-
n("div", W, [
|
|
169
|
-
n("img", {
|
|
170
|
-
src: d(l) + "/bim-viewer/roam-bar/up.svg",
|
|
171
|
-
alt: ""
|
|
172
|
-
}, null, 8, Y)
|
|
173
|
-
])
|
|
174
|
-
]),
|
|
175
|
-
n("div", Z, [
|
|
176
|
-
n("div", $, [
|
|
177
|
-
n("img", {
|
|
178
|
-
src: d(l) + "/bim-viewer/roam-bar/down.svg",
|
|
179
|
-
alt: ""
|
|
180
|
-
}, null, 8, ee)
|
|
181
|
-
])
|
|
182
|
-
])
|
|
183
|
-
]),
|
|
184
|
-
n("div", oe, [
|
|
185
|
-
n("div", te, [
|
|
186
|
-
n("img", {
|
|
187
|
-
src: d(l) + "/bim-viewer/roam-bar/top.svg",
|
|
188
|
-
alt: ""
|
|
189
|
-
}, null, 8, ne)
|
|
190
|
-
]),
|
|
191
|
-
n("div", re, [
|
|
192
|
-
n("div", ae, [
|
|
193
|
-
n("img", {
|
|
194
|
-
src: d(l) + "/bim-viewer/roam-bar/left.svg",
|
|
195
|
-
alt: ""
|
|
196
|
-
}, null, 8, se)
|
|
197
|
-
]),
|
|
198
|
-
n("div", ie, [
|
|
199
|
-
n("img", {
|
|
200
|
-
src: d(l) + "/bim-viewer/roam-bar/center.svg",
|
|
201
|
-
alt: ""
|
|
202
|
-
}, null, 8, de)
|
|
203
|
-
]),
|
|
204
|
-
n("div", le, [
|
|
205
|
-
n("img", {
|
|
206
|
-
src: d(l) + "/bim-viewer/roam-bar/right.svg",
|
|
207
|
-
alt: ""
|
|
208
|
-
}, null, 8, me)
|
|
209
|
-
])
|
|
210
|
-
]),
|
|
211
|
-
n("div", ue, [
|
|
212
|
-
n("img", {
|
|
213
|
-
src: d(l) + "/bim-viewer/roam-bar/bottom.svg",
|
|
214
|
-
alt: ""
|
|
215
|
-
}, null, 8, ce)
|
|
216
|
-
])
|
|
217
|
-
])
|
|
218
|
-
])) : L("", !0)
|
|
219
|
-
]));
|
|
220
|
-
}
|
|
221
|
-
}), we = /* @__PURE__ */ H(ve, [["__scopeId", "data-v-ec8043de"]]);
|
|
222
|
-
export {
|
|
223
|
-
we as default
|
|
224
|
-
};
|