build-dxf 0.0.20-13 → 0.0.20-15
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/package.json +1 -1
- package/src/build.js +33 -9
- package/src/index.css +1 -1
- package/src/index3.js +593 -525
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawDoorLine.d.ts +5 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawWindow.d.ts +5 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/ViewAngle.d.ts +21 -0
- package/src/utils/Quadtree/LineSegment.d.ts +18 -0
package/src/index3.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
import * as m from "three";
|
|
2
|
-
import { i as
|
|
3
|
-
import { C as
|
|
2
|
+
import { i as lt, n as ct, r as We, t as Ue, c as ke, d as mt, e as ht, f as Pe, g as V, _ as Ye, u as ut, h as pe, j as Ne, w as pt, k as vt, l as gt, p as ft, m as yt, o as wt, T as Oe, q as Re, s as bt, v as xt, x as ze, y as _e, z as Le, A as Ct, B as Mt, L as ve, D as Et, b as Be, E as ge, S as Lt } from "./selectLocalFile.js";
|
|
3
|
+
import { C as be, L as ie, P as q, B as Qe, E as Ze, b as Fe, Q as Ke, W as Dt } from "./build.js";
|
|
4
4
|
import "clipper-lib";
|
|
5
5
|
import "dxf-writer";
|
|
6
6
|
import "three/addons/controls/OrbitControls.js";
|
|
7
|
-
import { watch as
|
|
8
|
-
function
|
|
7
|
+
import { watch as G, ref as k, defineComponent as de, computed as P, createElementBlock as O, openBlock as L, normalizeClass as B, unref as g, renderSlot as ye, createVNode as F, Transition as we, withCtx as A, withDirectives as Xe, createElementVNode as M, normalizeStyle as Ie, createTextVNode as he, toDisplayString as se, vShow as Je, shallowReactive as _t, onMounted as et, createBlock as me, createCommentVNode as $, resolveDynamicComponent as kt, Fragment as ue, withModifiers as Pt, nextTick as fe, isVNode as tt, render as Te, toRaw as It, onUnmounted as St, renderList as De, createStaticVNode as Nt, TransitionGroup as Ot, createApp as Rt } from "vue";
|
|
8
|
+
function nt(r) {
|
|
9
9
|
var e;
|
|
10
|
-
const t =
|
|
10
|
+
const t = We(r);
|
|
11
11
|
return (e = t?.$el) != null ? e : t;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const ot = ke ? window : void 0;
|
|
14
|
+
function zt(...r) {
|
|
15
15
|
let e, t, n, o;
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
16
|
+
if (lt(r[0]) || Array.isArray(r[0]) ? ([t, n, o] = r, e = ot) : [e, t, n, o] = r, !e)
|
|
17
|
+
return ct;
|
|
18
18
|
Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
|
|
19
19
|
const s = [], a = () => {
|
|
20
20
|
s.forEach((c) => c()), s.length = 0;
|
|
21
|
-
}, i = (c, h, f,
|
|
22
|
-
a(), c && s.push(...t.flatMap((f) => n.map((
|
|
21
|
+
}, i = (c, h, f, y) => (c.addEventListener(h, f, y), () => c.removeEventListener(h, f, y)), d = G(() => [nt(e), We(o)], ([c, h]) => {
|
|
22
|
+
a(), c && s.push(...t.flatMap((f) => n.map((y) => i(c, f, y, h))));
|
|
23
23
|
}, { immediate: !0, flush: "post" }), l = () => {
|
|
24
24
|
d(), a();
|
|
25
25
|
};
|
|
26
|
-
return
|
|
26
|
+
return Ue(l), l;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
const t =
|
|
30
|
-
return n(),
|
|
28
|
+
function Bt(r, e = !1) {
|
|
29
|
+
const t = k(), n = () => t.value = !!r();
|
|
30
|
+
return n(), mt(n, e), t;
|
|
31
31
|
}
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
var
|
|
32
|
+
const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ae = "__vueuse_ssr_handlers__";
|
|
33
|
+
Ve[Ae] = Ve[Ae] || {};
|
|
34
|
+
var je = Object.getOwnPropertySymbols, Ft = Object.prototype.hasOwnProperty, Kt = Object.prototype.propertyIsEnumerable, Tt = (r, e) => {
|
|
35
35
|
var t = {};
|
|
36
36
|
for (var n in r)
|
|
37
|
-
|
|
38
|
-
if (r != null &&
|
|
39
|
-
for (var n of
|
|
40
|
-
e.indexOf(n) < 0 &&
|
|
37
|
+
Ft.call(r, n) && e.indexOf(n) < 0 && (t[n] = r[n]);
|
|
38
|
+
if (r != null && je)
|
|
39
|
+
for (var n of je(r))
|
|
40
|
+
e.indexOf(n) < 0 && Kt.call(r, n) && (t[n] = r[n]);
|
|
41
41
|
return t;
|
|
42
42
|
};
|
|
43
|
-
function
|
|
44
|
-
const n = t, { window: o =
|
|
43
|
+
function Vt(r, e, t = {}) {
|
|
44
|
+
const n = t, { window: o = ot } = n, s = Tt(n, ["window"]);
|
|
45
45
|
let a;
|
|
46
|
-
const i =
|
|
46
|
+
const i = Bt(() => o && "ResizeObserver" in o), d = () => {
|
|
47
47
|
a && (a.disconnect(), a = void 0);
|
|
48
|
-
}, l =
|
|
48
|
+
}, l = G(() => nt(r), (h) => {
|
|
49
49
|
d(), i.value && o && h && (a = new ResizeObserver(e), a.observe(h, s));
|
|
50
50
|
}, { immediate: !0, flush: "post" }), c = () => {
|
|
51
51
|
d(), l();
|
|
52
52
|
};
|
|
53
|
-
return
|
|
53
|
+
return Ue(c), {
|
|
54
54
|
isSupported: i,
|
|
55
55
|
stop: c
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var Ge;
|
|
59
59
|
(function(r) {
|
|
60
60
|
r.UP = "UP", r.RIGHT = "RIGHT", r.DOWN = "DOWN", r.LEFT = "LEFT", r.NONE = "NONE";
|
|
61
|
-
})(
|
|
62
|
-
var
|
|
61
|
+
})(Ge || (Ge = {}));
|
|
62
|
+
var At = Object.defineProperty, qe = Object.getOwnPropertySymbols, jt = Object.prototype.hasOwnProperty, Gt = Object.prototype.propertyIsEnumerable, He = (r, e, t) => e in r ? At(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, qt = (r, e) => {
|
|
63
63
|
for (var t in e || (e = {}))
|
|
64
|
-
|
|
65
|
-
if (
|
|
66
|
-
for (var t of
|
|
67
|
-
|
|
64
|
+
jt.call(e, t) && He(r, t, e[t]);
|
|
65
|
+
if (qe)
|
|
66
|
+
for (var t of qe(e))
|
|
67
|
+
Gt.call(e, t) && He(r, t, e[t]);
|
|
68
68
|
return r;
|
|
69
69
|
};
|
|
70
|
-
const
|
|
70
|
+
const Ht = {
|
|
71
71
|
easeInSine: [0.12, 0, 0.39, 0],
|
|
72
72
|
easeOutSine: [0.61, 1, 0.88, 1],
|
|
73
73
|
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
@@ -93,12 +93,12 @@ const qt = {
|
|
|
93
93
|
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
94
94
|
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
95
95
|
};
|
|
96
|
-
|
|
97
|
-
linear:
|
|
98
|
-
},
|
|
99
|
-
const $t = (r) => r,
|
|
96
|
+
qt({
|
|
97
|
+
linear: ht
|
|
98
|
+
}, Ht);
|
|
99
|
+
const $t = (r) => r, Wt = {
|
|
100
100
|
esc: "Escape"
|
|
101
|
-
},
|
|
101
|
+
}, Ut = Pe({
|
|
102
102
|
value: {
|
|
103
103
|
type: [String, Number],
|
|
104
104
|
default: ""
|
|
@@ -120,59 +120,59 @@ const $t = (r) => r, Ht = {
|
|
|
120
120
|
},
|
|
121
121
|
color: String,
|
|
122
122
|
badgeStyle: {
|
|
123
|
-
type:
|
|
123
|
+
type: V([String, Object, Array])
|
|
124
124
|
},
|
|
125
125
|
offset: {
|
|
126
|
-
type:
|
|
126
|
+
type: V(Array),
|
|
127
127
|
default: [0, 0]
|
|
128
128
|
},
|
|
129
129
|
badgeClass: {
|
|
130
130
|
type: String
|
|
131
131
|
}
|
|
132
|
-
}),
|
|
132
|
+
}), Yt = de({
|
|
133
133
|
name: "ElBadge"
|
|
134
|
-
}), Qt = /* @__PURE__ */
|
|
135
|
-
...
|
|
136
|
-
props:
|
|
134
|
+
}), Qt = /* @__PURE__ */ de({
|
|
135
|
+
...Yt,
|
|
136
|
+
props: Ut,
|
|
137
137
|
setup(r, { expose: e }) {
|
|
138
|
-
const t = r, n =
|
|
138
|
+
const t = r, n = ut("badge"), o = P(() => t.isDot ? "" : pe(t.value) && pe(t.max) ? t.max < t.value ? `${t.max}+` : `${t.value}` : `${t.value}`), s = P(() => {
|
|
139
139
|
var a, i, d, l, c;
|
|
140
140
|
return [
|
|
141
141
|
{
|
|
142
142
|
backgroundColor: t.color,
|
|
143
|
-
marginRight:
|
|
144
|
-
marginTop:
|
|
143
|
+
marginRight: Ne(-((i = (a = t.offset) == null ? void 0 : a[0]) != null ? i : 0)),
|
|
144
|
+
marginTop: Ne((l = (d = t.offset) == null ? void 0 : d[1]) != null ? l : 0)
|
|
145
145
|
},
|
|
146
146
|
(c = t.badgeStyle) != null ? c : {}
|
|
147
147
|
];
|
|
148
148
|
});
|
|
149
149
|
return e({
|
|
150
150
|
content: o
|
|
151
|
-
}), (a, i) => (
|
|
152
|
-
class:
|
|
151
|
+
}), (a, i) => (L(), O("div", {
|
|
152
|
+
class: B(g(n).b())
|
|
153
153
|
}, [
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
name: `${
|
|
154
|
+
ye(a.$slots, "default"),
|
|
155
|
+
F(we, {
|
|
156
|
+
name: `${g(n).namespace.value}-zoom-in-center`,
|
|
157
157
|
persisted: ""
|
|
158
158
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
|
|
161
|
-
class:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
159
|
+
default: A(() => [
|
|
160
|
+
Xe(M("sup", {
|
|
161
|
+
class: B([
|
|
162
|
+
g(n).e("content"),
|
|
163
|
+
g(n).em("content", a.type),
|
|
164
|
+
g(n).is("fixed", !!a.$slots.default),
|
|
165
|
+
g(n).is("dot", a.isDot),
|
|
166
|
+
g(n).is("hide-zero", !a.showZero && t.value === 0),
|
|
167
167
|
a.badgeClass
|
|
168
168
|
]),
|
|
169
|
-
style:
|
|
169
|
+
style: Ie(g(s))
|
|
170
170
|
}, [
|
|
171
|
-
|
|
172
|
-
|
|
171
|
+
ye(a.$slots, "content", { value: g(o) }, () => [
|
|
172
|
+
he(se(g(o)), 1)
|
|
173
173
|
])
|
|
174
174
|
], 6), [
|
|
175
|
-
[
|
|
175
|
+
[Je, !a.hidden && (g(o) || a.isDot || a.$slots.content)]
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
178
|
_: 3
|
|
@@ -180,63 +180,63 @@ const $t = (r) => r, Ht = {
|
|
|
180
180
|
], 2));
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
|
-
var
|
|
184
|
-
const
|
|
183
|
+
var Zt = /* @__PURE__ */ Ye(Qt, [["__file", "badge.vue"]]);
|
|
184
|
+
const Xt = pt(Zt), Jt = Pe({
|
|
185
185
|
a11y: {
|
|
186
186
|
type: Boolean,
|
|
187
187
|
default: !0
|
|
188
188
|
},
|
|
189
189
|
locale: {
|
|
190
|
-
type:
|
|
190
|
+
type: V(Object)
|
|
191
191
|
},
|
|
192
|
-
size:
|
|
192
|
+
size: gt,
|
|
193
193
|
button: {
|
|
194
|
-
type:
|
|
194
|
+
type: V(Object)
|
|
195
195
|
},
|
|
196
196
|
card: {
|
|
197
|
-
type:
|
|
197
|
+
type: V(Object)
|
|
198
198
|
},
|
|
199
199
|
dialog: {
|
|
200
|
-
type:
|
|
200
|
+
type: V(Object)
|
|
201
201
|
},
|
|
202
202
|
link: {
|
|
203
|
-
type:
|
|
203
|
+
type: V(Object)
|
|
204
204
|
},
|
|
205
205
|
experimentalFeatures: {
|
|
206
|
-
type:
|
|
206
|
+
type: V(Object)
|
|
207
207
|
},
|
|
208
208
|
keyboardNavigation: {
|
|
209
209
|
type: Boolean,
|
|
210
210
|
default: !0
|
|
211
211
|
},
|
|
212
212
|
message: {
|
|
213
|
-
type:
|
|
213
|
+
type: V(Object)
|
|
214
214
|
},
|
|
215
215
|
zIndex: Number,
|
|
216
216
|
namespace: {
|
|
217
217
|
type: String,
|
|
218
218
|
default: "el"
|
|
219
219
|
},
|
|
220
|
-
...
|
|
221
|
-
}),
|
|
222
|
-
|
|
220
|
+
...vt
|
|
221
|
+
}), z = {};
|
|
222
|
+
de({
|
|
223
223
|
name: "ElConfigProvider",
|
|
224
|
-
props:
|
|
224
|
+
props: Jt,
|
|
225
225
|
setup(r, { slots: e }) {
|
|
226
226
|
const t = ft(r);
|
|
227
|
-
return
|
|
227
|
+
return G(() => r.message, (n) => {
|
|
228
228
|
var o, s;
|
|
229
|
-
Object.assign(
|
|
230
|
-
}, { immediate: !0, deep: !0 }), () =>
|
|
229
|
+
Object.assign(z, (s = (o = t?.value) == null ? void 0 : o.message) != null ? s : {}, n ?? {});
|
|
230
|
+
}, { immediate: !0, deep: !0 }), () => ye(e, "default", { config: t?.value });
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
const
|
|
233
|
+
const st = [
|
|
234
234
|
"primary",
|
|
235
235
|
"success",
|
|
236
236
|
"info",
|
|
237
237
|
"warning",
|
|
238
238
|
"error"
|
|
239
|
-
],
|
|
239
|
+
], N = $t({
|
|
240
240
|
customClass: "",
|
|
241
241
|
dangerouslyUseHTMLString: !1,
|
|
242
242
|
duration: 3e3,
|
|
@@ -251,225 +251,225 @@ const tt = [
|
|
|
251
251
|
zIndex: 0,
|
|
252
252
|
grouping: !1,
|
|
253
253
|
repeatNum: 1,
|
|
254
|
-
appendTo:
|
|
255
|
-
}),
|
|
254
|
+
appendTo: ke ? document.body : void 0
|
|
255
|
+
}), en = Pe({
|
|
256
256
|
customClass: {
|
|
257
257
|
type: String,
|
|
258
|
-
default:
|
|
258
|
+
default: N.customClass
|
|
259
259
|
},
|
|
260
260
|
dangerouslyUseHTMLString: {
|
|
261
261
|
type: Boolean,
|
|
262
|
-
default:
|
|
262
|
+
default: N.dangerouslyUseHTMLString
|
|
263
263
|
},
|
|
264
264
|
duration: {
|
|
265
265
|
type: Number,
|
|
266
|
-
default:
|
|
266
|
+
default: N.duration
|
|
267
267
|
},
|
|
268
268
|
icon: {
|
|
269
|
-
type:
|
|
270
|
-
default:
|
|
269
|
+
type: yt,
|
|
270
|
+
default: N.icon
|
|
271
271
|
},
|
|
272
272
|
id: {
|
|
273
273
|
type: String,
|
|
274
|
-
default:
|
|
274
|
+
default: N.id
|
|
275
275
|
},
|
|
276
276
|
message: {
|
|
277
|
-
type:
|
|
277
|
+
type: V([
|
|
278
278
|
String,
|
|
279
279
|
Object,
|
|
280
280
|
Function
|
|
281
281
|
]),
|
|
282
|
-
default:
|
|
282
|
+
default: N.message
|
|
283
283
|
},
|
|
284
284
|
onClose: {
|
|
285
|
-
type:
|
|
286
|
-
default:
|
|
285
|
+
type: V(Function),
|
|
286
|
+
default: N.onClose
|
|
287
287
|
},
|
|
288
288
|
showClose: {
|
|
289
289
|
type: Boolean,
|
|
290
|
-
default:
|
|
290
|
+
default: N.showClose
|
|
291
291
|
},
|
|
292
292
|
type: {
|
|
293
293
|
type: String,
|
|
294
|
-
values:
|
|
295
|
-
default:
|
|
294
|
+
values: st,
|
|
295
|
+
default: N.type
|
|
296
296
|
},
|
|
297
297
|
plain: {
|
|
298
298
|
type: Boolean,
|
|
299
|
-
default:
|
|
299
|
+
default: N.plain
|
|
300
300
|
},
|
|
301
301
|
offset: {
|
|
302
302
|
type: Number,
|
|
303
|
-
default:
|
|
303
|
+
default: N.offset
|
|
304
304
|
},
|
|
305
305
|
zIndex: {
|
|
306
306
|
type: Number,
|
|
307
|
-
default:
|
|
307
|
+
default: N.zIndex
|
|
308
308
|
},
|
|
309
309
|
grouping: {
|
|
310
310
|
type: Boolean,
|
|
311
|
-
default:
|
|
311
|
+
default: N.grouping
|
|
312
312
|
},
|
|
313
313
|
repeatNum: {
|
|
314
314
|
type: Number,
|
|
315
|
-
default:
|
|
315
|
+
default: N.repeatNum
|
|
316
316
|
}
|
|
317
|
-
}),
|
|
317
|
+
}), tn = {
|
|
318
318
|
destroy: () => !0
|
|
319
|
-
},
|
|
320
|
-
const e =
|
|
319
|
+
}, j = _t([]), nn = (r) => {
|
|
320
|
+
const e = j.findIndex((o) => o.id === r), t = j[e];
|
|
321
321
|
let n;
|
|
322
|
-
return e > 0 && (n =
|
|
323
|
-
},
|
|
324
|
-
const { prev: e } =
|
|
322
|
+
return e > 0 && (n = j[e - 1]), { current: t, prev: n };
|
|
323
|
+
}, on = (r) => {
|
|
324
|
+
const { prev: e } = nn(r);
|
|
325
325
|
return e ? e.vm.exposed.bottom.value : 0;
|
|
326
|
-
},
|
|
326
|
+
}, sn = (r, e) => j.findIndex((n) => n.id === r) > 0 ? 16 : e, an = de({
|
|
327
327
|
name: "ElMessage"
|
|
328
|
-
}),
|
|
329
|
-
...
|
|
330
|
-
props:
|
|
331
|
-
emits:
|
|
328
|
+
}), rn = /* @__PURE__ */ de({
|
|
329
|
+
...an,
|
|
330
|
+
props: en,
|
|
331
|
+
emits: tn,
|
|
332
332
|
setup(r, { expose: e, emit: t }) {
|
|
333
|
-
const n = r, { Close: o } =
|
|
334
|
-
let
|
|
335
|
-
const
|
|
336
|
-
const
|
|
337
|
-
return { [a.bm("icon",
|
|
338
|
-
}),
|
|
339
|
-
top: `${
|
|
333
|
+
const n = r, { Close: o } = bt, s = k(!1), { ns: a, zIndex: i } = wt("message"), { currentZIndex: d, nextZIndex: l } = i, c = k(), h = k(!1), f = k(0);
|
|
334
|
+
let y;
|
|
335
|
+
const x = P(() => n.type ? n.type === "error" ? "danger" : n.type : "info"), w = P(() => {
|
|
336
|
+
const u = n.type;
|
|
337
|
+
return { [a.bm("icon", u)]: u && Oe[u] };
|
|
338
|
+
}), _ = P(() => n.icon || Oe[n.type] || ""), E = P(() => on(n.id)), S = P(() => sn(n.id, n.offset) + E.value), U = P(() => f.value + S.value), oe = P(() => ({
|
|
339
|
+
top: `${S.value}px`,
|
|
340
340
|
zIndex: d.value
|
|
341
341
|
}));
|
|
342
|
-
function
|
|
343
|
-
n.duration !== 0 && ({ stop:
|
|
344
|
-
|
|
342
|
+
function W() {
|
|
343
|
+
n.duration !== 0 && ({ stop: y } = xt(() => {
|
|
344
|
+
C();
|
|
345
345
|
}, n.duration));
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
|
|
347
|
+
function I() {
|
|
348
|
+
y?.();
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
h.value = !1,
|
|
352
|
-
var
|
|
353
|
-
s.value || ((
|
|
350
|
+
function C() {
|
|
351
|
+
h.value = !1, fe(() => {
|
|
352
|
+
var u;
|
|
353
|
+
s.value || ((u = n.onClose) == null || u.call(n), t("destroy"));
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
|
|
356
|
+
function R({ code: u }) {
|
|
357
|
+
u === Wt.esc && C();
|
|
358
358
|
}
|
|
359
|
-
return
|
|
360
|
-
|
|
361
|
-
}),
|
|
362
|
-
|
|
363
|
-
}),
|
|
359
|
+
return et(() => {
|
|
360
|
+
W(), l(), h.value = !0;
|
|
361
|
+
}), G(() => n.repeatNum, () => {
|
|
362
|
+
I(), W();
|
|
363
|
+
}), zt(document, "keydown", R), Vt(c, () => {
|
|
364
364
|
f.value = c.value.getBoundingClientRect().height;
|
|
365
365
|
}), e({
|
|
366
366
|
visible: h,
|
|
367
|
-
bottom:
|
|
368
|
-
close:
|
|
369
|
-
}), (
|
|
370
|
-
name:
|
|
371
|
-
onBeforeEnter: (
|
|
372
|
-
onBeforeLeave:
|
|
373
|
-
onAfterLeave: (
|
|
367
|
+
bottom: U,
|
|
368
|
+
close: C
|
|
369
|
+
}), (u, Y) => (L(), me(we, {
|
|
370
|
+
name: g(a).b("fade"),
|
|
371
|
+
onBeforeEnter: (T) => s.value = !0,
|
|
372
|
+
onBeforeLeave: u.onClose,
|
|
373
|
+
onAfterLeave: (T) => u.$emit("destroy"),
|
|
374
374
|
persisted: ""
|
|
375
375
|
}, {
|
|
376
|
-
default:
|
|
377
|
-
|
|
378
|
-
id:
|
|
376
|
+
default: A(() => [
|
|
377
|
+
Xe(M("div", {
|
|
378
|
+
id: u.id,
|
|
379
379
|
ref_key: "messageRef",
|
|
380
380
|
ref: c,
|
|
381
|
-
class:
|
|
382
|
-
|
|
383
|
-
{ [
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
381
|
+
class: B([
|
|
382
|
+
g(a).b(),
|
|
383
|
+
{ [g(a).m(u.type)]: u.type },
|
|
384
|
+
g(a).is("closable", u.showClose),
|
|
385
|
+
g(a).is("plain", u.plain),
|
|
386
|
+
u.customClass
|
|
387
387
|
]),
|
|
388
|
-
style:
|
|
388
|
+
style: Ie(g(oe)),
|
|
389
389
|
role: "alert",
|
|
390
|
-
onMouseenter:
|
|
391
|
-
onMouseleave:
|
|
390
|
+
onMouseenter: I,
|
|
391
|
+
onMouseleave: W
|
|
392
392
|
}, [
|
|
393
|
-
|
|
393
|
+
u.repeatNum > 1 ? (L(), me(g(Xt), {
|
|
394
394
|
key: 0,
|
|
395
|
-
value:
|
|
396
|
-
type:
|
|
397
|
-
class:
|
|
398
|
-
}, null, 8, ["value", "type", "class"])) :
|
|
399
|
-
|
|
395
|
+
value: u.repeatNum,
|
|
396
|
+
type: g(x),
|
|
397
|
+
class: B(g(a).e("badge"))
|
|
398
|
+
}, null, 8, ["value", "type", "class"])) : $("v-if", !0),
|
|
399
|
+
g(_) ? (L(), me(g(Re), {
|
|
400
400
|
key: 1,
|
|
401
|
-
class:
|
|
401
|
+
class: B([g(a).e("icon"), g(w)])
|
|
402
402
|
}, {
|
|
403
|
-
default:
|
|
404
|
-
(
|
|
403
|
+
default: A(() => [
|
|
404
|
+
(L(), me(kt(g(_))))
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
|
-
}, 8, ["class"])) :
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
class:
|
|
413
|
-
innerHTML:
|
|
407
|
+
}, 8, ["class"])) : $("v-if", !0),
|
|
408
|
+
ye(u.$slots, "default", {}, () => [
|
|
409
|
+
u.dangerouslyUseHTMLString ? (L(), O(ue, { key: 1 }, [
|
|
410
|
+
$(" Caution here, message could've been compromised, never use user's input as message "),
|
|
411
|
+
M("p", {
|
|
412
|
+
class: B(g(a).e("content")),
|
|
413
|
+
innerHTML: u.message
|
|
414
414
|
}, null, 10, ["innerHTML"])
|
|
415
|
-
], 2112)) : (
|
|
415
|
+
], 2112)) : (L(), O("p", {
|
|
416
416
|
key: 0,
|
|
417
|
-
class:
|
|
418
|
-
},
|
|
417
|
+
class: B(g(a).e("content"))
|
|
418
|
+
}, se(u.message), 3))
|
|
419
419
|
]),
|
|
420
|
-
|
|
420
|
+
u.showClose ? (L(), me(g(Re), {
|
|
421
421
|
key: 2,
|
|
422
|
-
class:
|
|
423
|
-
onClick:
|
|
422
|
+
class: B(g(a).e("closeBtn")),
|
|
423
|
+
onClick: Pt(C, ["stop"])
|
|
424
424
|
}, {
|
|
425
|
-
default:
|
|
426
|
-
|
|
425
|
+
default: A(() => [
|
|
426
|
+
F(g(o))
|
|
427
427
|
]),
|
|
428
428
|
_: 1
|
|
429
|
-
}, 8, ["class", "onClick"])) :
|
|
429
|
+
}, 8, ["class", "onClick"])) : $("v-if", !0)
|
|
430
430
|
], 46, ["id"]), [
|
|
431
|
-
[
|
|
431
|
+
[Je, h.value]
|
|
432
432
|
])
|
|
433
433
|
]),
|
|
434
434
|
_: 3
|
|
435
435
|
}, 8, ["name", "onBeforeEnter", "onBeforeLeave", "onAfterLeave"]));
|
|
436
436
|
}
|
|
437
437
|
});
|
|
438
|
-
var
|
|
439
|
-
let
|
|
440
|
-
const
|
|
441
|
-
const e = !r ||
|
|
442
|
-
...
|
|
438
|
+
var dn = /* @__PURE__ */ Ye(rn, [["__file", "message.vue"]]);
|
|
439
|
+
let ln = 1;
|
|
440
|
+
const at = (r) => {
|
|
441
|
+
const e = !r || ze(r) || tt(r) || _e(r) ? { message: r } : r, t = {
|
|
442
|
+
...N,
|
|
443
443
|
...e
|
|
444
444
|
};
|
|
445
445
|
if (!t.appendTo)
|
|
446
446
|
t.appendTo = document.body;
|
|
447
|
-
else if (
|
|
447
|
+
else if (ze(t.appendTo)) {
|
|
448
448
|
let n = document.querySelector(t.appendTo);
|
|
449
|
-
|
|
449
|
+
Ct(n) || (n = document.body), t.appendTo = n;
|
|
450
450
|
}
|
|
451
|
-
return
|
|
452
|
-
},
|
|
453
|
-
const e =
|
|
451
|
+
return Le(z.grouping) && !t.grouping && (t.grouping = z.grouping), pe(z.duration) && t.duration === 3e3 && (t.duration = z.duration), pe(z.offset) && t.offset === 16 && (t.offset = z.offset), Le(z.showClose) && !t.showClose && (t.showClose = z.showClose), Le(z.plain) && !t.plain && (t.plain = z.plain), t;
|
|
452
|
+
}, cn = (r) => {
|
|
453
|
+
const e = j.indexOf(r);
|
|
454
454
|
if (e === -1)
|
|
455
455
|
return;
|
|
456
|
-
|
|
456
|
+
j.splice(e, 1);
|
|
457
457
|
const { handler: t } = r;
|
|
458
458
|
t.close();
|
|
459
|
-
},
|
|
460
|
-
const n = `message_${
|
|
459
|
+
}, mn = ({ appendTo: r, ...e }, t) => {
|
|
460
|
+
const n = `message_${ln++}`, o = e.onClose, s = document.createElement("div"), a = {
|
|
461
461
|
...e,
|
|
462
462
|
id: n,
|
|
463
463
|
onClose: () => {
|
|
464
|
-
o?.(),
|
|
464
|
+
o?.(), cn(c);
|
|
465
465
|
},
|
|
466
466
|
onDestroy: () => {
|
|
467
|
-
|
|
467
|
+
Te(null, s);
|
|
468
468
|
}
|
|
469
|
-
}, i =
|
|
470
|
-
default:
|
|
469
|
+
}, i = F(dn, a, _e(a.message) || tt(a.message) ? {
|
|
470
|
+
default: _e(a.message) ? a.message : () => a.message
|
|
471
471
|
} : null);
|
|
472
|
-
i.appContext = t ||
|
|
472
|
+
i.appContext = t || re._context, Te(i, s), r.appendChild(s.firstElementChild);
|
|
473
473
|
const d = i.component, c = {
|
|
474
474
|
id: n,
|
|
475
475
|
vnode: i,
|
|
@@ -482,40 +482,40 @@ const nt = (r) => {
|
|
|
482
482
|
props: i.component.props
|
|
483
483
|
};
|
|
484
484
|
return c;
|
|
485
|
-
},
|
|
486
|
-
if (!
|
|
485
|
+
}, re = (r = {}, e) => {
|
|
486
|
+
if (!ke)
|
|
487
487
|
return { close: () => {
|
|
488
488
|
} };
|
|
489
|
-
const t =
|
|
490
|
-
if (t.grouping &&
|
|
491
|
-
const o =
|
|
489
|
+
const t = at(r);
|
|
490
|
+
if (t.grouping && j.length) {
|
|
491
|
+
const o = j.find(({ vnode: s }) => {
|
|
492
492
|
var a;
|
|
493
493
|
return ((a = s.props) == null ? void 0 : a.message) === t.message;
|
|
494
494
|
});
|
|
495
495
|
if (o)
|
|
496
496
|
return o.props.repeatNum += 1, o.props.type = t.type, o.handler;
|
|
497
497
|
}
|
|
498
|
-
if (
|
|
498
|
+
if (pe(z.max) && j.length >= z.max)
|
|
499
499
|
return { close: () => {
|
|
500
500
|
} };
|
|
501
|
-
const n =
|
|
502
|
-
return
|
|
501
|
+
const n = mn(t, e);
|
|
502
|
+
return j.push(n), n.handler;
|
|
503
503
|
};
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
const n =
|
|
507
|
-
return
|
|
504
|
+
st.forEach((r) => {
|
|
505
|
+
re[r] = (e = {}, t) => {
|
|
506
|
+
const n = at(e);
|
|
507
|
+
return re({ ...n, type: r }, t);
|
|
508
508
|
};
|
|
509
509
|
});
|
|
510
|
-
function
|
|
511
|
-
const e = [...
|
|
510
|
+
function hn(r) {
|
|
511
|
+
const e = [...j];
|
|
512
512
|
for (const t of e)
|
|
513
513
|
(!r || r === t.props.type) && t.handler.close();
|
|
514
514
|
}
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
const
|
|
518
|
-
class
|
|
515
|
+
re.closeAll = hn;
|
|
516
|
+
re._context = null;
|
|
517
|
+
const D = Mt(re, "$message");
|
|
518
|
+
class K extends be {
|
|
519
519
|
_renderer;
|
|
520
520
|
get renderer() {
|
|
521
521
|
return this._renderer || (this._renderer = this.parent?.findComponentByName("Renderer")), this._renderer;
|
|
@@ -598,7 +598,7 @@ class T extends ye {
|
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
}
|
|
601
|
-
class
|
|
601
|
+
class un extends K {
|
|
602
602
|
static name = "DrawLine";
|
|
603
603
|
container = new m.Group();
|
|
604
604
|
interruptKeys = ["escape"];
|
|
@@ -615,7 +615,7 @@ class hn extends T {
|
|
|
615
615
|
* @param next
|
|
616
616
|
*/
|
|
617
617
|
selectPoint(e) {
|
|
618
|
-
let t = this.parent?.findComponentByName("Editor"), n = null, o = null, s = [], a = new m.Mesh(new m.SphereGeometry(0.05), new m.MeshBasicMaterial({ color: 65280 })), i = t.domContainer.domElement, d = new
|
|
618
|
+
let t = this.parent?.findComponentByName("Editor"), n = null, o = null, s = [], a = new m.Mesh(new m.SphereGeometry(0.05), new m.MeshBasicMaterial({ color: 65280 })), i = t.domContainer.domElement, d = new ve([], 16711935), l = new ve([
|
|
619
619
|
new m.Vector3(-1e4, 0, 0),
|
|
620
620
|
new m.Vector3(1e4, 0, 0),
|
|
621
621
|
new m.Vector3(0, -1e4, 0),
|
|
@@ -633,11 +633,11 @@ class hn extends T {
|
|
|
633
633
|
this.addEventRecord(
|
|
634
634
|
"clear",
|
|
635
635
|
t.addEventListener("pointerPositionChange", () => {
|
|
636
|
-
const { point: f, find:
|
|
637
|
-
if (this.dispatchEvent({ type: "pointerMove", point: f }),
|
|
636
|
+
const { point: f, find: y } = t.renderManager.adsorption();
|
|
637
|
+
if (this.dispatchEvent({ type: "pointerMove", point: f }), y ? (a.position.set(f.x, f.y, 0), this.container.add(a), i.style.cursor = "none") : (a.removeFromParent(), i.style.cursor = "crosshair"), h.copy(f), !!(n && o)) {
|
|
638
638
|
if (t.eventInput.isKeyDown("shift")) {
|
|
639
|
-
const
|
|
640
|
-
|
|
639
|
+
const x = Math.abs(t.pointerPosition.x - n.x), w = Math.abs(t.pointerPosition.y - n.y);
|
|
640
|
+
x > w ? o.set(t.pointerPosition.x, n.y, 0) : o.set(n.x, t.pointerPosition.y, 0), c(), h.copy(o);
|
|
641
641
|
return;
|
|
642
642
|
}
|
|
643
643
|
o.set(t.pointerPosition.x, t.pointerPosition.y, 0), c();
|
|
@@ -668,7 +668,7 @@ class hn extends T {
|
|
|
668
668
|
end(e, t) {
|
|
669
669
|
const n = [];
|
|
670
670
|
for (let o = 0; o < t.length; o += 2)
|
|
671
|
-
n.push(new
|
|
671
|
+
n.push(new ie(q.from(t[o]), q.from(t[o + 1])));
|
|
672
672
|
e(n);
|
|
673
673
|
}
|
|
674
674
|
/** 执行完成
|
|
@@ -690,7 +690,7 @@ class hn extends T {
|
|
|
690
690
|
return this.completed(e), e;
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
class
|
|
693
|
+
class Se extends be {
|
|
694
694
|
static name = "Default";
|
|
695
695
|
get editor() {
|
|
696
696
|
return this.parent?.findComponentByName("Editor");
|
|
@@ -758,33 +758,33 @@ class ke extends ye {
|
|
|
758
758
|
opacity: 0.5
|
|
759
759
|
});
|
|
760
760
|
const c = () => {
|
|
761
|
-
const
|
|
762
|
-
|
|
763
|
-
|
|
761
|
+
const y = Math.min(i.x, d.x), x = Math.max(i.x, d.x), w = Math.min(i.y, d.y), _ = Math.max(i.y, d.y), E = [
|
|
762
|
+
y,
|
|
763
|
+
_,
|
|
764
764
|
0,
|
|
765
|
-
|
|
766
|
-
|
|
765
|
+
x,
|
|
766
|
+
w,
|
|
767
767
|
0,
|
|
768
|
-
|
|
769
|
-
|
|
768
|
+
x,
|
|
769
|
+
_,
|
|
770
770
|
0,
|
|
771
|
-
|
|
772
|
-
|
|
771
|
+
y,
|
|
772
|
+
_,
|
|
773
773
|
0,
|
|
774
|
-
|
|
775
|
-
|
|
774
|
+
y,
|
|
775
|
+
w,
|
|
776
776
|
0,
|
|
777
|
-
|
|
778
|
-
|
|
777
|
+
x,
|
|
778
|
+
w,
|
|
779
779
|
0
|
|
780
780
|
];
|
|
781
|
-
l.geometry = e.renderManager.createGeometry({ position:
|
|
781
|
+
l.geometry = e.renderManager.createGeometry({ position: E }, E.length / 3);
|
|
782
782
|
}, h = () => {
|
|
783
783
|
d.copy(e.pointerPosition), c();
|
|
784
784
|
}, f = () => {
|
|
785
785
|
document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", f), l.removeFromParent();
|
|
786
|
-
const
|
|
787
|
-
this.removeSelectLineAll(),
|
|
786
|
+
const y = Math.min(i.x, d.x), x = Math.max(i.x, d.x), w = Math.min(i.y, d.y), _ = Math.max(i.y, d.y), E = new Qe(y, x, w, _), S = e.renderManager.quadtree.queryBox(E);
|
|
787
|
+
this.removeSelectLineAll(), S.forEach((U) => this.addSelectLine(U.line)), this.updateSelectLinesGeometry();
|
|
788
788
|
};
|
|
789
789
|
document.addEventListener("mousemove", h), document.addEventListener("mouseup", f);
|
|
790
790
|
};
|
|
@@ -792,7 +792,7 @@ class ke extends ye {
|
|
|
792
792
|
"clear",
|
|
793
793
|
// 注册鼠标指针位置变化事件
|
|
794
794
|
e.addEventListener("pointerPositionChange", () => {
|
|
795
|
-
const { line: i } = e.renderManager.adsorption(0.
|
|
795
|
+
const { line: i } = e.renderManager.adsorption(0.04);
|
|
796
796
|
if (i) {
|
|
797
797
|
const d = i.expandToRectangle(0.025, "bothSides");
|
|
798
798
|
n.geometry = e.renderManager.createGeometry({ position: d.createGeometry() }, 6), this.container.add(n), o.style.cursor = "pointer", s = i;
|
|
@@ -805,6 +805,12 @@ class ke extends ye {
|
|
|
805
805
|
if (t.isKeyDown("alt"))
|
|
806
806
|
return this.removeSelectLine(s);
|
|
807
807
|
t.isKeyDown("control") || this.removeSelectLineAll(), this.addSelectLine(s);
|
|
808
|
+
} else if (t.isKeyDown("mouse_1")) {
|
|
809
|
+
if (!s) return;
|
|
810
|
+
this.removeSelectLine(s);
|
|
811
|
+
} else if (t.isKeyDown("mouse_2")) {
|
|
812
|
+
if (!s) return;
|
|
813
|
+
this.addSelectLine(s);
|
|
808
814
|
} else t.isKeyDowns(["control", "z"]) ? e.commandManager.rollback() : t.isKeyDowns(["control", "y"]) && e.commandManager.revokeRollback();
|
|
809
815
|
}),
|
|
810
816
|
function() {
|
|
@@ -819,7 +825,7 @@ class ke extends ye {
|
|
|
819
825
|
this.canceEventRecord("clear"), this.removeSelectLineAll(), this.updateSelectLinesGeometry();
|
|
820
826
|
}
|
|
821
827
|
}
|
|
822
|
-
class
|
|
828
|
+
class pn extends Ze {
|
|
823
829
|
list = [];
|
|
824
830
|
rollbacklist = [];
|
|
825
831
|
revokeRollbacklist = [];
|
|
@@ -847,7 +853,7 @@ class un extends Ue {
|
|
|
847
853
|
return this.revokeRollbacklist.push(e), this;
|
|
848
854
|
}
|
|
849
855
|
}
|
|
850
|
-
class
|
|
856
|
+
class vn extends Ze {
|
|
851
857
|
commandFlowMap = /* @__PURE__ */ new Map();
|
|
852
858
|
lock = !1;
|
|
853
859
|
abortController = null;
|
|
@@ -874,7 +880,7 @@ class pn extends Ue {
|
|
|
874
880
|
*/
|
|
875
881
|
addCommandFlow(e) {
|
|
876
882
|
if (this.commandFlowMap.has(e)) throw new Error(`${e} 命令已经存在`);
|
|
877
|
-
const t = new
|
|
883
|
+
const t = new pn();
|
|
878
884
|
return this.commandFlowMap.set(e, t), t;
|
|
879
885
|
}
|
|
880
886
|
executionPromise = null;
|
|
@@ -952,52 +958,55 @@ class pn extends Ue {
|
|
|
952
958
|
}
|
|
953
959
|
}
|
|
954
960
|
}
|
|
955
|
-
const
|
|
956
|
-
__proto__: null,
|
|
957
|
-
default: vn
|
|
958
|
-
}, Symbol.toStringTag, { value: "Module" })), gn = "data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M909.050991%20169.476903l-217.554898%200%200-31.346939c0-39.5866-32.205493-71.792093-71.793116-71.792093L408.15591%2066.337871c-39.5866%200-71.792093%2032.205493-71.792093%2071.792093l0%2031.346939L113.349581%20169.476903c-11.013845%200-19.942191%208.940626-19.942191%2019.954471s8.928347%2019.954471%2019.942191%2019.954471l84.264149%200%200%20640.687918c0%2060.479443%2049.203632%20109.683075%20109.683075%20109.683075l416.474366%200c60.479443%200%20109.683075-49.203632%20109.683075-109.683075L833.454246%20209.385844l75.595722%200c11.012821%200%2019.942191-8.940626%2019.942191-19.954471S920.063813%20169.476903%20909.050991%20169.476903zM376.2482%20138.130987c0-17.593703%2014.314007-31.907711%2031.907711-31.907711l211.547067%200c17.593703%200%2031.907711%2014.314007%2031.907711%2031.907711l0%2031.346939L376.2482%20169.477926%20376.2482%20138.130987zM793.569864%20850.074785c0%2038.486546-31.312146%2069.798692-69.798692%2069.798692L307.297828%20919.873478c-38.486546%200-69.798692-31.312146-69.798692-69.798692L237.499136%20211.042577l556.070728%200L793.569864%20850.074785zM510.662539%20861.276918c11.012821%200%2019.954471-8.92937%2019.954471-19.942191L530.61701%20294.912753c0-11.013845-8.94165-19.942191-19.954471-19.942191s-19.954471%208.928347-19.954471%2019.942191L490.708068%20841.334727C490.708068%20852.347548%20499.649717%20861.276918%20510.662539%20861.276918zM374.562814%20801.449321c11.012821%200%2019.954471-8.92937%2019.954471-19.942191L394.517285%20354.74035c0-11.013845-8.94165-19.942191-19.954471-19.942191s-19.954471%208.928347-19.954471%2019.942191l0%20426.76678C354.608344%20792.519951%20363.549993%20801.449321%20374.562814%20801.449321zM649.832182%20801.449321c11.012821%200%2019.954471-8.92937%2019.954471-19.942191L669.786653%20354.74035c0-11.013845-8.94165-19.942191-19.954471-19.942191s-19.954471%208.928347-19.954471%2019.942191l0%20426.76678C629.877711%20792.519951%20638.81936%20801.449321%20649.832182%20801.449321z'%20%3e%3c/path%3e%3c/svg%3e", yn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
961
|
+
const gn = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5569'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M522.1888%20811.3152a412.1088%20412.1088%200%200%200-114.5344-269.7728l-244.48%20269.7728h359.0144zM450.816%20493.824c83.5072%2085.3504%20132.7104%20197.4784%20136.5504%20317.4912h417.5872v63.232H18.9952L676.1472%20149.4016l48.9472%2041.7792-274.2784%20302.6432z'%20%3e%3c/path%3e%3c/svg%3e", fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
959
962
|
__proto__: null,
|
|
960
963
|
default: gn
|
|
961
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
964
|
+
}, Symbol.toStringTag, { value: "Module" })), yn = "data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M639.999191%20893.597594c-0.999994-54.699654-36.39977-101.099361-85.39946-118.399252-6.39996-2.199986-10.599933-8.299948-10.599933-14.999905V263.801573c0-6.699958%204.199973-12.799919%2010.599933-14.999905%2049.09969-17.299891%2084.399467-63.599598%2085.39946-118.399252C641.299183%2059.902862%20583.399549%200.503237%20512.899994%200.00324%20441.800444-0.496757%20384.000809%2057.00288%20384.000809%20128.002431c0%2055.699648%2035.599775%20103.099349%2085.299461%20120.699238%206.39996%202.299985%2010.699932%208.299948%2010.699932%2015.099904v496.396864c0%206.799957-4.299973%2012.799919-10.699932%2015.099904-49.699686%2017.599889-85.299461%2064.999589-85.299461%20120.699238%200%2070.999551%2057.799635%20128.499188%20128.899185%20127.999191%2070.499555-0.499997%20128.399189-59.899622%20127.099197-130.399176zM448.000404%20128.002431c0-35.299777%2028.699819-63.999596%2063.999596-63.999595s63.999596%2028.699819%2063.999596%2063.999595-28.699819%2063.999596-63.999596%2063.999596-63.999596-28.699819-63.999596-63.999596z%20m0%20767.995148c0-35.299777%2028.699819-63.999596%2063.999596-63.999596s63.999596%2028.699819%2063.999596%2063.999596-28.699819%2063.999596-63.999596%2063.999595-63.999596-28.699819-63.999596-63.999595z'%3e%3c/path%3e%3c/svg%3e", wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
965
|
+
__proto__: null,
|
|
966
|
+
default: yn
|
|
967
|
+
}, Symbol.toStringTag, { value: "Module" })), bn = "data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M909.050991%20169.476903l-217.554898%200%200-31.346939c0-39.5866-32.205493-71.792093-71.793116-71.792093L408.15591%2066.337871c-39.5866%200-71.792093%2032.205493-71.792093%2071.792093l0%2031.346939L113.349581%20169.476903c-11.013845%200-19.942191%208.940626-19.942191%2019.954471s8.928347%2019.954471%2019.942191%2019.954471l84.264149%200%200%20640.687918c0%2060.479443%2049.203632%20109.683075%20109.683075%20109.683075l416.474366%200c60.479443%200%20109.683075-49.203632%20109.683075-109.683075L833.454246%20209.385844l75.595722%200c11.012821%200%2019.942191-8.940626%2019.942191-19.954471S920.063813%20169.476903%20909.050991%20169.476903zM376.2482%20138.130987c0-17.593703%2014.314007-31.907711%2031.907711-31.907711l211.547067%200c17.593703%200%2031.907711%2014.314007%2031.907711%2031.907711l0%2031.346939L376.2482%20169.477926%20376.2482%20138.130987zM793.569864%20850.074785c0%2038.486546-31.312146%2069.798692-69.798692%2069.798692L307.297828%20919.873478c-38.486546%200-69.798692-31.312146-69.798692-69.798692L237.499136%20211.042577l556.070728%200L793.569864%20850.074785zM510.662539%20861.276918c11.012821%200%2019.954471-8.92937%2019.954471-19.942191L530.61701%20294.912753c0-11.013845-8.94165-19.942191-19.954471-19.942191s-19.954471%208.928347-19.954471%2019.942191L490.708068%20841.334727C490.708068%20852.347548%20499.649717%20861.276918%20510.662539%20861.276918zM374.562814%20801.449321c11.012821%200%2019.954471-8.92937%2019.954471-19.942191L394.517285%20354.74035c0-11.013845-8.94165-19.942191-19.954471-19.942191s-19.954471%208.928347-19.954471%2019.942191l0%20426.76678C354.608344%20792.519951%20363.549993%20801.449321%20374.562814%20801.449321zM649.832182%20801.449321c11.012821%200%2019.954471-8.92937%2019.954471-19.942191L669.786653%20354.74035c0-11.013845-8.94165-19.942191-19.954471-19.942191s-19.954471%208.928347-19.954471%2019.942191l0%20426.76678C629.877711%20792.519951%20638.81936%20801.449321%20649.832182%20801.449321z'%20%3e%3c/path%3e%3c/svg%3e", xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
968
|
+
__proto__: null,
|
|
969
|
+
default: bn
|
|
970
|
+
}, Symbol.toStringTag, { value: "Module" })), Cn = "data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M220.451548%20913.518482V318.145854c0-27.62038%2022.505495-50.125874%2050.125875-50.125874H865.95005c27.62038%200%2050.125874%2022.505495%2050.125874%2050.125874v218.917083h59.332667V318.145854c0-60.355644-49.102897-109.458541-109.458541-109.458541h-39.896104v-99.228772C826.053946%2049.102897%20776.951049%200%20716.595405%200H121.222777C60.867133%200%2011.764236%2049.102897%2011.764236%20109.458541V705.854146c0%2060.355644%2049.102897%20109.458541%20109.458541%20109.458541h39.896104v99.228772c0%2060.355644%2049.102897%20109.458541%20109.458542%20109.458541h257.790209v-59.332667H269.554446c-26.597403-1.022977-49.102897-23.528472-49.102898-51.148851z%20m-59.332667-595.372628v436.811189h-39.896104c-27.62038%200-50.125874-22.505495-50.125874-50.125874V109.458541c0-27.62038%2022.505495-50.125874%2050.125874-50.125874H716.595405c27.62038%200%2050.125874%2022.505495%2050.125874%2050.125874v99.228772H269.554446c-59.332667%200-108.435564%2049.102897-108.435565%20109.458541z'%20%3e%3c/path%3e%3cpath%20d='M902.777223%20854.185814l98.205794-98.205794c15.344655-15.344655%2015.344655-40.919081%200-56.263736s-40.919081-15.344655-56.263736%200L846.513487%20797.922078%20747.284715%20699.716284c-15.344655-15.344655-40.919081-15.344655-56.263736%200s-15.344655%2040.919081%200%2056.263736l98.205794%2098.205794-98.205794%2098.205794c-15.344655%2015.344655-15.344655%2040.919081%200%2056.263737s40.919081%2015.344655%2056.263736%200l98.205794-98.205795%2098.205795%2098.205795c15.344655%2015.344655%2040.919081%2015.344655%2056.263736%200s15.344655-40.919081%200-56.263737l-97.182817-98.205794z'%20%3e%3c/path%3e%3c/svg%3e", Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
962
971
|
__proto__: null,
|
|
963
|
-
default:
|
|
964
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
972
|
+
default: Cn
|
|
973
|
+
}, Symbol.toStringTag, { value: "Module" })), En = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1757902601497'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='9801'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M761.344%20119.296H226.816c-18.944%200-39.424%2011.776-39.424%2030.72V921.6h614.4V148.48c0.512-18.944-22.016-29.184-40.448-29.184z%20m-537.6%20768c-2.048%200-2.048%200%200%200L221.696%20163.84c0-5.12%205.12-10.24%2010.24-10.24h522.24c8.704%200%2013.824%205.12%2013.824%2013.824v720.384s0%201.536-1.536%201.536h-15.36V194.56c0-16.896-8.704-24.064-29.184-24.064H266.24c-18.944%200-27.136%208.704-27.136%2024.064v692.736h-15.36z%20m49.152%200V204.8H716.8v682.496H272.896z'%20p-id='9802'%3e%3c/path%3e%3cpath%20d='M648.704%20508.416c-16.896%200-32.256%2013.824-32.256%2032.256%200%2016.896%2013.824%2032.256%2032.256%2032.256s32.256-13.824%2032.256-32.256c0-16.896-13.824-32.256-32.256-32.256z'%20p-id='9803'%3e%3c/path%3e%3c/svg%3e", Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
965
974
|
__proto__: null,
|
|
966
|
-
default:
|
|
967
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
975
|
+
default: En
|
|
976
|
+
}, Symbol.toStringTag, { value: "Module" })), Dn = "data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M491.80027198%20557.44938977c-10.0998647-15.14979706-20.19972802-25.24966037-35.34952507-35.34952507-15.14979706-10.0998647-30.29959271-15.14979706-50.49932211-15.14979704-55.54925309%200-100.99864286%2045.44938977-100.99864287%20100.99864285%200%2015.14979706%205.04993234%2035.34952507%2015.14979568%2050.49932212%2010.0998647%2015.14979706%2020.19972802%2030.29959271%2035.34952506%2035.34952508%2015.14979706%2010.0998647%2035.34952507%2015.14979706%2050.49932213%2015.14979567%2055.54925309%200%20100.99864286-45.44938977%20100.99864286-100.99864287%200-15.14979706-5.04993234-35.34952507-15.14979568-50.49932074z%20m-85.84884718%20100.99864286h-15.14979706c-20.19972802-5.04993234-30.29959271-20.19972802-35.34952507-35.34952507V612.99864286c0-30.29959271%2025.24966037-50.49932212%2050.49932213-50.49932074h10.09986469c15.14979706%205.04993234%2030.29959271%2015.14979706%2035.34952507%2035.34952507v15.14979567c5.04993234%2025.24966037-20.19972802%2045.44938977-45.44938976%2045.44938977z'%3e%3c/path%3e%3cpath%20d='M390.80162774%20658.44803263l-40.39945604%2040.39945743-227.24694747%20222.19701373-35.34952506-35.34952508%20227.24694745-227.24694608%2040.39945605-40.39945743c5.04993234%2020.19972802%2020.19972802%2035.34952507%2035.34952507%2040.39945743zM648.34816793%20405.9514248l-40.39945742%2040.3994574-116.14843853%20116.14843992-40.39945742%2035.34952507c-5.04993234-20.19972802-20.19972802-30.29959271-35.34952507-35.34952507l40.39945742-40.39945742%20116.14843853-111.09850756%2035.34952507-35.34952507c10.0998647%2015.14979706%2020.19972802%2025.24966037%2040.39945742%2030.29959273zM926.09443614%20133.25508894L749.34681078%20310.00271428l-40.3994574%2040.39945742c-5.04993234-20.19972802-15.14979706-35.34952507-30.29959272-40.39945742l35.34952506-40.39945742%20176.74762534-176.74762535%2035.34952508%2040.39945743z'%20%3e%3c/path%3e%3cpath%20d='M749.34681078%20310.00271428c-10.0998647-15.14979706-20.19972802-30.29959271-35.34952506-35.34952506-15.14979706-10.0998647-35.34952507-15.14979706-55.54925309-15.14979706-55.54925309%200-100.99864286%2045.44938977-100.99864286%20100.99864286%200%2020.19972802%205.04993234%2040.39945743%2015.14979567%2055.54925447%2010.0998647%2015.14979706%2020.19972802%2025.24966037%2035.34952507%2035.34952507%2015.14979706%2010.0998647%2030.29959271%2015.14979706%2050.49932212%2015.14979567%2055.54925309%200%20100.99864286-45.44938977%20100.99864286-100.99864286%200-25.24966037-5.04993234-40.39945743-10.09986471-55.54925309z%20m-90.89877815%2095.94871052h-10.0998647c-20.19972802-5.04993234-35.34952507-15.14979706-40.39945742-35.34952509%200-5.04993234-5.04993234-10.0998647-5.04993234-15.14979704%200-30.29959271%2025.24966037-50.49932212%2050.49932212-50.49932074%205.04993234%200%2010.0998647%200%2015.14979704%205.04993235%2015.14979706%205.04993234%2030.29959271%2020.19972802%2030.29959273%2040.39945742v10.09986332c10.0998647%2025.24966037-15.14979706%2045.44938977-40.39945743%2045.44938978z'%20%3e%3c/path%3e%3c/svg%3e", _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
968
977
|
__proto__: null,
|
|
969
|
-
default:
|
|
970
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
978
|
+
default: Dn
|
|
979
|
+
}, Symbol.toStringTag, { value: "Module" })), kn = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1757902422799'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1735'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M843.2%20726.4c-20.2%200-39.2%205.2-55.8%2014.3L283.8%20237.2c9-16.5%2014.1-35.4%2014.1-55.5%200-64.2-52.3-116.5-116.5-116.5S65%20117.4%2065%20181.6s52.3%20116.5%20116.5%20116.5c20.2%200%2039.2-5.2%2055.8-14.2l503.5%20503.5c-9%2016.5-14.1%2035.4-14.1%2055.5%200%2064.2%2052.3%20116.5%20116.5%20116.5s116.5-52.3%20116.5-116.5-52.3-116.5-116.5-116.5zM181.4%20232.1c-27.8%200-50.5-22.6-50.5-50.5s22.6-50.5%2050.5-50.5%2050.5%2022.6%2050.5%2050.5-22.6%2050.5-50.5%2050.5z%20m661.8%20661.3c-27.8%200-50.5-22.6-50.5-50.5%200-27.8%2022.6-50.5%2050.5-50.5s50.5%2022.6%2050.5%2050.5c0%2027.8-22.7%2050.5-50.5%2050.5z'%20fill='%23231815'%20p-id='1736'%3e%3c/path%3e%3c/svg%3e", Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
971
980
|
__proto__: null,
|
|
972
|
-
default:
|
|
973
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
981
|
+
default: kn
|
|
982
|
+
}, Symbol.toStringTag, { value: "Module" })), In = "data:image/svg+xml,%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M114.176%2046.528h618.496c37.312%200.064%2067.584%2030.336%2067.648%2067.648v618.56c0%2037.248-30.336%2067.584-67.648%2067.584H114.176A67.776%2067.776%200%200%201%2046.528%20732.8V114.176c0-37.312%2030.336-67.648%2067.648-67.648z%20m2.176%20686.208l616.32-2.24-2.176-616.32-614.144%202.176v616.32zM907.648%20291.2l2.176%20616.32H291.264a34.88%2034.88%200%201%200%200%2069.888h618.56c37.312%200%2067.648-30.336%2067.648-67.648V291.264a34.88%2034.88%200%201%200-69.824%200z'%20%3e%3c/path%3e%3c/svg%3e", Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
974
983
|
__proto__: null,
|
|
975
|
-
default:
|
|
976
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
984
|
+
default: In
|
|
985
|
+
}, Symbol.toStringTag, { value: "Module" })), Nn = "data:image/svg+xml,%3csvg%20viewBox='0%200%201029%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M788.17984%2016l-55.424%2060.672%20116.48%20106.56H418.13184a410.816%20410.816%200%201%200%200%20821.632h547.712v-82.176H418.13184a328.64%20328.64%200%200%201%200-657.28l441.792-0.128-124.8%2098.368%2050.752%2064.512%20243.328-191.488L788.17984%2016z'%3e%3c/path%3e%3c/svg%3e", On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
977
986
|
__proto__: null,
|
|
978
|
-
default:
|
|
979
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
987
|
+
default: Nn
|
|
988
|
+
}, Symbol.toStringTag, { value: "Module" })), Rn = "data:image/svg+xml,%3csvg%20viewBox='0%200%201048%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M310.04722%20451.334244A49.95122%2049.95122%200%200%201%20239.416195%20521.990244L27.473171%20310.04722a49.95122%2049.95122%200%200%201%200-70.631025L239.416195%2027.473171a49.95122%2049.95122%200%200%201%2070.631025%2070.631024l-126.651318%20126.626342L649.365854%20224.780488c220.709463%200%20399.609756%20178.900293%20399.609756%20399.609756s-178.900293%20399.609756-399.609756%20399.609756H124.878049a49.95122%2049.95122%200%201%201%200-99.902439h524.487805c165.513366%200%20299.707317-134.193951%20299.707317-299.707317s-134.193951-299.707317-299.707317-299.707317H183.395902l126.651318%20126.651317z'%3e%3c/path%3e%3c/svg%3e", zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
980
989
|
__proto__: null,
|
|
981
|
-
default:
|
|
982
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
990
|
+
default: Rn
|
|
991
|
+
}, Symbol.toStringTag, { value: "Module" })), Bn = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='11576'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M102.4%20302.08c5.12%205.12%2015.36%2010.24%2025.6%2010.24s15.36-5.12%2025.6-10.24l174.08-174.08c5.12-5.12%2010.24-15.36%2010.24-25.6s-5.12-15.36-10.24-25.6c-20.48-5.12-40.96-5.12-51.2%2010.24l-148.48%20153.6-71.68-76.8C51.2%20158.72%2040.96%20158.72%2035.84%20158.72c-10.24%200-15.36%205.12-25.6%2010.24-5.12%205.12-10.24%2010.24-10.24%2020.48s5.12%2015.36%2010.24%2025.6L102.4%20302.08zM276.48%20409.6l-148.48%20153.6-71.68-71.68C51.2%20486.4%2040.96%20481.28%2035.84%20481.28c-10.24%200-15.36%205.12-25.6%2010.24-5.12%2010.24-10.24%2015.36-10.24%2025.6s5.12%2015.36%2010.24%2025.6L102.4%20629.76c5.12%205.12%2015.36%2010.24%2025.6%2010.24s15.36-5.12%2025.6-10.24L322.56%20460.8c5.12-5.12%2010.24-15.36%2010.24-25.6s-5.12-15.36-10.24-25.6c-10.24-10.24-30.72-10.24-46.08%200z%20m0%20327.68l-148.48%20153.6L56.32%20819.2c-5.12-5.12-15.36-10.24-25.6-10.24s-15.36%205.12-25.6%2010.24c0%205.12-5.12%2015.36-5.12%2025.6s5.12%2015.36%2010.24%2025.6L102.4%20957.44c5.12%205.12%2015.36%2010.24%2025.6%2010.24h5.12c10.24%200%2015.36-5.12%2025.6-10.24l174.08-174.08c5.12-5.12%2010.24-15.36%2010.24-25.6s-5.12-15.36-10.24-25.6c-25.6-5.12-40.96-5.12-56.32%205.12zM1024%20153.6c0%2030.72-25.6%2056.32-56.32%2056.32h-460.8c-30.72%200-61.44-25.6-61.44-56.32%200-30.72%2025.6-56.32%2056.32-56.32h455.68c35.84-5.12%2066.56%2020.48%2066.56%2056.32z%20m0%20358.4c0%2030.72-25.6%2056.32-56.32%2056.32h-460.8c-30.72%200-56.32-25.6-56.32-56.32s25.6-56.32%2056.32-56.32h455.68c35.84%200%2061.44%2025.6%2061.44%2056.32z%20m-5.12%20358.4c0%2030.72-25.6%2056.32-56.32%2056.32h-460.8c-30.72%200-56.32-25.6-56.32-56.32%200-30.72%2025.6-56.32%2056.32-56.32h455.68c35.84%200%2061.44%2025.6%2061.44%2056.32z%20m0%200'%20%3e%3c/path%3e%3c/svg%3e", Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
983
992
|
__proto__: null,
|
|
984
|
-
default:
|
|
985
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
993
|
+
default: Bn
|
|
994
|
+
}, Symbol.toStringTag, { value: "Module" })), Kn = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1757902488735'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='3957'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M520.416%20179.392c-12.384%200-22.4%204.672-22.4%2010.432l-0.032%20139.136c0%205.76%2010.016%2010.432%2022.368%2010.432%2012.352%200%2022.368-4.672%2022.368-10.432l0.064-139.136c0-5.76-10.016-10.432-22.4-10.432M520.32%20623.04c-12.352%200-22.368%204.64-22.368%2010.4l-0.032%20139.168c0%205.76%2010.016%2010.432%2022.368%2010.432%2012.352%200%2022.368-4.672%2022.368-10.432l0.064-139.168c0-5.76-10.016-10.4-22.4-10.4M800.256%20458.72l-139.168-0.064c-5.76%200-10.432%2010.016-10.432%2022.4%200%2012.352%204.672%2022.368%2010.432%2022.368l139.168%200.032c5.76%200%2010.4-10.016%2010.4-22.368%200-12.352-4.64-22.368-10.4-22.4zM352.256%20458.72l-139.168-0.064c-5.76%200-10.432%2010.016-10.432%2022.4%200%2012.352%204.672%2022.368%2010.432%2022.368l139.168%200.032c5.76%200%2010.4-10.016%2010.4-22.368%200-12.352-4.64-22.368-10.4-22.4M801.568%20748.672l-72.544-72.544%2073.792-23.2a4.416%204.416%200%200%200%200.096-8.384l-183.136-62.4a4.416%204.416%200%200%200-5.6%205.568l62.464%20183.168a4.416%204.416%200%200%200%208.352-0.064l23.36-73.6%2072.32%2072.32a14.752%2014.752%200%200%200%2020.896-20.864M510.688%20382.112c49.952%200%2092.8%2040.832%2092.8%2092.8%200%2051.968-42.848%2092.8-92.8%2092.8-49.984%200-92.8-40.832-92.8-92.8%200-51.968%2042.816-92.8%2092.8-92.8z'%20p-id='3958'%3e%3c/path%3e%3c/svg%3e", Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
986
995
|
__proto__: null,
|
|
987
|
-
default:
|
|
988
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
996
|
+
default: Kn
|
|
997
|
+
}, Symbol.toStringTag, { value: "Module" })), Vn = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='10587'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M64.21%20703.88h888.34M64.21%20667.88h888.34v72H64.21z'%3e%3c/path%3e%3cpath%20d='M509.58%20102.72v566.13M473.58%20102.72h72v566.14h-72z'%3e%3c/path%3e%3c/svg%3e", An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
989
998
|
__proto__: null,
|
|
990
|
-
default:
|
|
991
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
999
|
+
default: Vn
|
|
1000
|
+
}, Symbol.toStringTag, { value: "Module" })), jn = "data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1757902547951'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='5129'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M59.355%2091.776v867.881h867.881V91.776H59.356zM897.31%20929.73H89.282V121.703h808.027V929.73z'%20fill=''%20p-id='5130'%3e%3c/path%3e%3cpath%20d='M833.964%20185.048H152.627v681.337h681.337V185.048z%20m-355.632%20651.41H182.554V532.2h295.778v304.257z%20m0-334.184H182.554V214.975h295.778v287.299z%20m325.705%20334.184H508.259V532.2h295.778v304.257z%20m0-334.184H508.259V214.975h295.778v287.299z'%20fill=''%20p-id='5131'%3e%3c/path%3e%3c/svg%3e", Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
992
1001
|
__proto__: null,
|
|
993
|
-
default:
|
|
1002
|
+
default: jn
|
|
994
1003
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
995
|
-
class
|
|
1004
|
+
class qn extends be {
|
|
996
1005
|
static name = "RenderManager";
|
|
997
1006
|
container = new m.Group();
|
|
998
1007
|
lines = [];
|
|
999
|
-
pointVirtualGrid = new
|
|
1000
|
-
quadtree = new
|
|
1008
|
+
pointVirtualGrid = new Fe();
|
|
1009
|
+
quadtree = new Ke(new Qe());
|
|
1001
1010
|
actionHistory = /* @__PURE__ */ new Set();
|
|
1002
1011
|
onAddFromParent() {
|
|
1003
1012
|
const e = this.dxfLineModel;
|
|
@@ -1018,9 +1027,9 @@ class An extends ye {
|
|
|
1018
1027
|
return;
|
|
1019
1028
|
} else
|
|
1020
1029
|
this.updatedMode = "dxf";
|
|
1021
|
-
this.pointVirtualGrid = new
|
|
1030
|
+
this.pointVirtualGrid = new Fe();
|
|
1022
1031
|
const e = this.dxf.box.clone().expansion(Math.max(this.dxf.box.width, this.dxf.box.height) * 2);
|
|
1023
|
-
(e.width === 0 || e.height === 0) && e.set(-200, -200, 200, 200), this.quadtree = new
|
|
1032
|
+
(e.width === 0 || e.height === 0) && e.set(-200, -200, 200, 200), this.quadtree = new Ke(e), this.lines.length = 0, this.dxf.lineSegments.forEach((t) => {
|
|
1024
1033
|
t.userData.isDoor && !t.userData.doorDirectConnection || this.addLine(t.clone());
|
|
1025
1034
|
}), this.dxf.doorLineSegment.forEach((t) => {
|
|
1026
1035
|
const n = t.clone();
|
|
@@ -1084,7 +1093,7 @@ class An extends ye {
|
|
|
1084
1093
|
s.points.forEach((a) => {
|
|
1085
1094
|
s.userData.isDoor ? n.push(a.x, a.y, 0) : t.push(a.x, a.y, 0);
|
|
1086
1095
|
}), s.userData.isWindow && s.userData.drawDoorData && s.userData.drawDoorData.forEach(({ width: a, p: i }) => {
|
|
1087
|
-
const d =
|
|
1096
|
+
const d = q.from(i), l = s.direction(), c = d.clone().add(l.clone().multiplyScalar(a * 0.5)), h = d.clone().add(l.clone().multiplyScalar(-a * 0.5));
|
|
1088
1097
|
o.push(c.x, c.y, 1e-3), o.push(h.x, h.y, 1e-3);
|
|
1089
1098
|
});
|
|
1090
1099
|
}), t.length && this.renderer.createLineSegments({
|
|
@@ -1106,7 +1115,7 @@ class An extends ye {
|
|
|
1106
1115
|
* @returns
|
|
1107
1116
|
*/
|
|
1108
1117
|
adsorption(e = 0.1, t = this.pointVirtualGrid, n = this.quadtree) {
|
|
1109
|
-
const o = this.parent?.findComponentByName("Editor"), s =
|
|
1118
|
+
const o = this.parent?.findComponentByName("Editor"), s = q.from(o.pointerPosition), a = t.queryCircle(s, e).sort((d, l) => d.point.distance(s) - l.point.distance(s));
|
|
1110
1119
|
if (a.length) return {
|
|
1111
1120
|
point: new m.Vector3(a[0].point.x, a[0].point.y, 0),
|
|
1112
1121
|
find: !0,
|
|
@@ -1195,7 +1204,7 @@ class An extends ye {
|
|
|
1195
1204
|
return this.parent?.findComponentByName("DxfLineModel");
|
|
1196
1205
|
}
|
|
1197
1206
|
}
|
|
1198
|
-
class
|
|
1207
|
+
class Hn extends K {
|
|
1199
1208
|
static name = "DrawDoorLine";
|
|
1200
1209
|
container = new m.Group();
|
|
1201
1210
|
interruptKeys = ["escape"];
|
|
@@ -1214,7 +1223,7 @@ class jn extends T {
|
|
|
1214
1223
|
* @param next
|
|
1215
1224
|
*/
|
|
1216
1225
|
selectPoint(e) {
|
|
1217
|
-
let t = this.parent?.findComponentByName("Editor"), n = null, o = new m.Mesh(new m.SphereGeometry(0.05), new m.MeshBasicMaterial({ color: 65280 })), s = new
|
|
1226
|
+
let t = this.parent?.findComponentByName("Editor"), n = null, o = new m.Mesh(new m.SphereGeometry(0.05), new m.MeshBasicMaterial({ color: 65280 })), s = new ve([], 16711935), a = new ve([
|
|
1218
1227
|
new m.Vector3(-1e4, 0, 0),
|
|
1219
1228
|
new m.Vector3(1e4, 0, 0),
|
|
1220
1229
|
new m.Vector3(0, -1e4, 0),
|
|
@@ -1231,7 +1240,7 @@ class jn extends T {
|
|
|
1231
1240
|
"clear",
|
|
1232
1241
|
t.addEventListener("pointerPositionChange", () => {
|
|
1233
1242
|
const { point: d, find: l } = t.renderManager.adsorption(0.05);
|
|
1234
|
-
n && s.setPoint(n, d), l ? (o.position.set(d.x, d.y, 0), this.container.add(o), this.domElement.style.cursor = "none", i = d.clone()) : (i = null, o.removeFromParent(), this.domElement.style.cursor = "no-drop");
|
|
1243
|
+
n && s.setPoint(n, d), this.dispatchEvent({ type: "pointerMove", point: d }), l ? (o.position.set(d.x, d.y, 0), this.container.add(o), this.domElement.style.cursor = "none", i = d.clone()) : (i = null, o.removeFromParent(), this.domElement.style.cursor = "no-drop");
|
|
1235
1244
|
}),
|
|
1236
1245
|
t.eventInput.addEventListener("codeChange", async () => {
|
|
1237
1246
|
if (t.eventInput.isKeyDown("mouse_0") && i) {
|
|
@@ -1255,7 +1264,7 @@ class jn extends T {
|
|
|
1255
1264
|
end(e, t) {
|
|
1256
1265
|
const n = [];
|
|
1257
1266
|
for (let o = 0; o < t.length; o += 2) {
|
|
1258
|
-
const s = new
|
|
1267
|
+
const s = new ie(q.from(t[o]), q.from(t[o + 1]));
|
|
1259
1268
|
s.userData.isDoor = !0, s.userData.doorDirectConnection = !0, n.push(s);
|
|
1260
1269
|
}
|
|
1261
1270
|
e(n);
|
|
@@ -1279,7 +1288,7 @@ class jn extends T {
|
|
|
1279
1288
|
return this.completed(e), e;
|
|
1280
1289
|
}
|
|
1281
1290
|
}
|
|
1282
|
-
class
|
|
1291
|
+
class $n extends K {
|
|
1283
1292
|
static name = "DrawWindow";
|
|
1284
1293
|
container = new m.Group();
|
|
1285
1294
|
interruptKeys = ["escape"];
|
|
@@ -1297,7 +1306,7 @@ class Gn extends T {
|
|
|
1297
1306
|
let t = null, n = new m.Mesh(new m.SphereGeometry(0.05), new m.MeshBasicMaterial({ color: 16711935 })), o = null;
|
|
1298
1307
|
this.addEventRecord("selectPointStart").add(this.editor.addEventListener("pointerPositionChange", () => {
|
|
1299
1308
|
const { point: s, line: a, find: i } = this.editor.renderManager.adsorption();
|
|
1300
|
-
i ? (this.domElement.style.cursor = "none", n.position.copy(s), o = a, t = s.clone(), this.container.add(n)) : (this.domElement.style.cursor = "no-drop", t = null, n.removeFromParent());
|
|
1309
|
+
this.dispatchEvent({ type: "pointerMove", point: s }), i ? (this.domElement.style.cursor = "none", n.position.copy(s), o = a, t = s.clone(), this.container.add(n)) : (this.domElement.style.cursor = "no-drop", t = null, n.removeFromParent());
|
|
1301
1310
|
})).add(this.eventInput.addEventListener("codeChange", () => {
|
|
1302
1311
|
this.eventInput.isKeyDown("mouse_0") && t && (this.canceEventRecord("selectPointStart"), e({ point: t, line: o }));
|
|
1303
1312
|
})), this.addEventRecord("clear").add(() => n.removeFromParent());
|
|
@@ -1309,7 +1318,7 @@ class Gn extends T {
|
|
|
1309
1318
|
let o = null, s = new m.Mesh(new m.SphereGeometry(0.05), new m.MeshBasicMaterial({ color: 16711935 }));
|
|
1310
1319
|
this.addEventRecord("clear").add(() => s.removeFromParent()).add(this.editor.addEventListener("pointerPositionChange", () => {
|
|
1311
1320
|
const { point: a, find: i, line: d } = this.editor.renderManager.adsorption();
|
|
1312
|
-
i && d === n ? (this.domElement.style.cursor = "none", s.position.copy(a), o = a.clone(), this.container.add(s)) : (this.domElement.style.cursor = "no-drop", o = null, s.removeFromParent());
|
|
1321
|
+
this.dispatchEvent({ type: "pointerMove", point: a }), i && d === n ? (this.domElement.style.cursor = "none", s.position.copy(a), o = a.clone(), this.container.add(s)) : (this.domElement.style.cursor = "no-drop", o = null, s.removeFromParent());
|
|
1313
1322
|
})).add(this.eventInput.addEventListener("codeChange", () => {
|
|
1314
1323
|
this.eventInput.isKeyDown("mouse_0") && o && e({ line: n, start: t, end: o });
|
|
1315
1324
|
}));
|
|
@@ -1320,7 +1329,7 @@ class Gn extends T {
|
|
|
1320
1329
|
* @param points
|
|
1321
1330
|
*/
|
|
1322
1331
|
end(e, { start: t, end: n, line: o }) {
|
|
1323
|
-
const s = new
|
|
1332
|
+
const s = new ie(q.from(t), q.from(n)), a = s.center, i = s.length(), d = {
|
|
1324
1333
|
p: new m.Vector3(a.x, a.y, 0),
|
|
1325
1334
|
width: i,
|
|
1326
1335
|
full: Math.abs(i - o.length()) < 0.01
|
|
@@ -1351,7 +1360,7 @@ class Gn extends T {
|
|
|
1351
1360
|
return this.completed(e), e;
|
|
1352
1361
|
}
|
|
1353
1362
|
}
|
|
1354
|
-
class
|
|
1363
|
+
class ae extends K {
|
|
1355
1364
|
static name = "VerticalCorrection";
|
|
1356
1365
|
container = new m.Group();
|
|
1357
1366
|
shortcutKeys = ["control", "c"];
|
|
@@ -1360,18 +1369,18 @@ class ee extends T {
|
|
|
1360
1369
|
recursion = !1;
|
|
1361
1370
|
onAddFromParent(e) {
|
|
1362
1371
|
super.onAddFromParent(e), this.editor.container.add(this.container), this.container.position.z = 1e-3;
|
|
1363
|
-
const t = this.commandManager.addCommandFlow(
|
|
1372
|
+
const t = this.commandManager.addCommandFlow(ae.commandName).add(this.createInterrupt()).add(this.constraint.bind(this)).add(this.verticalCorrection.bind(this)).addRollback(this.rollback.bind(this)).addRevokeRollback(this.revokeRollback.bind(this));
|
|
1364
1373
|
t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), t.addEventListener("started", () => {
|
|
1365
1374
|
!this.eventInput.isOnlyKeyDowns(this.shortcutKeys) && !this.eventInput.isOnlyKeyDowns(this.shortcutKeys2) && (this.recursion = !1);
|
|
1366
1375
|
}), this.eventInput.addEventListener("codeChange", async () => {
|
|
1367
|
-
this.eventInput.isOnlyKeyDowns(this.shortcutKeys) ? (this.recursion = !1, this.commandManager.start(
|
|
1376
|
+
this.eventInput.isOnlyKeyDowns(this.shortcutKeys) ? (this.recursion = !1, this.commandManager.start(ae.commandName, [...this.default.selectLines])) : this.eventInput.isOnlyKeyDowns(this.shortcutKeys2) && (this.recursion = !0, this.commandManager.start(ae.commandName, [...this.default.selectLines]));
|
|
1368
1377
|
}), this.eventInput.addCancelDefaultBehavior(() => this.eventInput.isOnlyKeyDowns(this.shortcutKeys) || this.eventInput.isOnlyKeyDowns(this.shortcutKeys2));
|
|
1369
1378
|
}
|
|
1370
1379
|
/**
|
|
1371
1380
|
* 进入命令约束
|
|
1372
1381
|
*/
|
|
1373
1382
|
constraint(e, t) {
|
|
1374
|
-
Array.isArray(t) ? t.length !== 1 ? (
|
|
1383
|
+
Array.isArray(t) ? t.length !== 1 ? (D({ message: "请选择一条线段", type: "warning" }), this.cancel()) : e(t) : (D({ message: "进入命令失败", type: "warning" }), this.cancel());
|
|
1375
1384
|
}
|
|
1376
1385
|
/**
|
|
1377
1386
|
* 线段是否为结尾线段
|
|
@@ -1418,15 +1427,15 @@ class ee extends T {
|
|
|
1418
1427
|
const o = this.renderManager.quadtree.queryLineSegment(e).filter(({ line: a }) => !(a === e || a.userData.isDoor)).map((a) => a.line), s = e.direction();
|
|
1419
1428
|
return o.forEach((a) => {
|
|
1420
1429
|
if (n.has(a)) return !1;
|
|
1421
|
-
if (a.length() / e.length() > 1) return;
|
|
1422
|
-
const i = a.direction(), d = s.angleBetween(i, "angle")
|
|
1423
|
-
if (!(
|
|
1430
|
+
if (a.length() / e.length() > 1 && this.recursion) return;
|
|
1431
|
+
const i = a.direction(), d = s.angleBetween(i, "angle");
|
|
1432
|
+
if (!(Math.abs(90 - d) > 20))
|
|
1424
1433
|
if (this.isTowLineSegmentConnect(e, a)) {
|
|
1425
|
-
const c = e.start.equal(a.start) || e.start.equal(a.end) ? e.start : e.end, h = a.start.equal(e.start) || a.start.equal(e.end) ? a.end : a.start, f = new
|
|
1434
|
+
const c = e.start.equal(a.start) || e.start.equal(a.end) ? e.start : e.end, h = a.start.equal(e.start) || a.start.equal(e.end) ? a.end : a.start, f = new ie(
|
|
1426
1435
|
h.clone().add(s.clone().multiplyScalar(1)),
|
|
1427
1436
|
h.clone().add(s.clone().multiplyScalar(-1))
|
|
1428
|
-
),
|
|
1429
|
-
|
|
1437
|
+
), y = f.projectPoint(c, !1);
|
|
1438
|
+
y && t.push(this.getSamePointAll(h, y));
|
|
1430
1439
|
} else
|
|
1431
1440
|
console.log("交点");
|
|
1432
1441
|
}), this.recursion && o.forEach((a) => this.correction0(a, t, n)), t;
|
|
@@ -1488,22 +1497,22 @@ class ee extends T {
|
|
|
1488
1497
|
return this.completed(e), e;
|
|
1489
1498
|
}
|
|
1490
1499
|
}
|
|
1491
|
-
class
|
|
1500
|
+
class Q extends K {
|
|
1492
1501
|
static name = "MergeLine";
|
|
1493
1502
|
shortcutKeys = ["control", "g"];
|
|
1494
1503
|
static commandName = "merge-line";
|
|
1495
1504
|
onAddFromParent(e) {
|
|
1496
1505
|
super.onAddFromParent(e);
|
|
1497
|
-
const t = e.findComponentByType(
|
|
1498
|
-
n.addEventListener("finally", this.createFinally()), n.addEventListener("completed", (o) => this.completed(o.data)), this.eventInput.addKeyCombination(
|
|
1499
|
-
t?.selectLines.length === 2 && this.eventInput.isKeyCombination(
|
|
1506
|
+
const t = e.findComponentByType(Se), n = this.commandManager.addCommandFlow(Q.commandName).add(this.createInterrupt()).add(this.constraint.bind(this)).add(this.mergeLine.bind(this)).addRollback(this.rollback.bind(this)).addRevokeRollback(this.revokeRollback.bind(this));
|
|
1507
|
+
n.addEventListener("finally", this.createFinally()), n.addEventListener("completed", (o) => this.completed(o.data)), this.eventInput.addKeyCombination(Q.commandName, this.shortcutKeys), this.eventInput.addEventListener("codeChange", async () => {
|
|
1508
|
+
t?.selectLines.length === 2 && this.eventInput.isKeyCombination(Q.commandName) && await this.commandManager.start(Q.commandName, [...this.default.selectLines]);
|
|
1500
1509
|
}), this.eventInput.addCancelDefaultBehavior(() => this.eventInput.isOnlyKeyDowns(this.shortcutKeys));
|
|
1501
1510
|
}
|
|
1502
1511
|
/**
|
|
1503
1512
|
* 进入命令约束
|
|
1504
1513
|
*/
|
|
1505
1514
|
constraint(e, t) {
|
|
1506
|
-
Array.isArray(t) ? t.length !== 2 ? (
|
|
1515
|
+
Array.isArray(t) ? t.length !== 2 ? (D({ message: "未执行线段合并,请选择两条线段", type: "warning" }), this.cancel()) : e(t) : (D({ message: "进入命令失败", type: "warning" }), this.cancel());
|
|
1507
1516
|
}
|
|
1508
1517
|
/** 开始
|
|
1509
1518
|
* @param next
|
|
@@ -1516,12 +1525,12 @@ class H extends T {
|
|
|
1516
1525
|
for (let i = 0; i < o.points.length; i++) {
|
|
1517
1526
|
const d = o.points[i];
|
|
1518
1527
|
if (a.equal(d)) {
|
|
1519
|
-
const l = n.points[(s + 1) % 2], c = o.points[(i + 1) % 2], h = new
|
|
1520
|
-
return e({ line1: n, line2: o, newLine: h }),
|
|
1528
|
+
const l = n.points[(s + 1) % 2], c = o.points[(i + 1) % 2], h = new ie(l, c);
|
|
1529
|
+
return e({ line1: n, line2: o, newLine: h }), D({ message: "已合并", type: "success" });
|
|
1521
1530
|
}
|
|
1522
1531
|
}
|
|
1523
1532
|
}
|
|
1524
|
-
|
|
1533
|
+
D({ message: "合并失败,两条线未找到共用点", type: "warning" }), this.commandManager.cancel();
|
|
1525
1534
|
}
|
|
1526
1535
|
/** 执行完成
|
|
1527
1536
|
* @param data
|
|
@@ -1543,26 +1552,26 @@ class H extends T {
|
|
|
1543
1552
|
return this.completed(e), e;
|
|
1544
1553
|
}
|
|
1545
1554
|
}
|
|
1546
|
-
class
|
|
1555
|
+
class Z extends K {
|
|
1547
1556
|
static name = "DeleteSelectLine";
|
|
1548
1557
|
shortcutKeys = ["Delete"];
|
|
1549
1558
|
static commandName = "deleteSelectLine";
|
|
1550
1559
|
onAddFromParent(e) {
|
|
1551
|
-
super.onAddFromParent(e), this.commandManager.addCommandFlow(
|
|
1552
|
-
this.eventInput.isKeyCombination(
|
|
1560
|
+
super.onAddFromParent(e), this.commandManager.addCommandFlow(Z.commandName).add(this.createInterrupt()).add(this.constraint.bind(this)).add(this.delete.bind(this)).addRollback(this.rollback.bind(this)).addRevokeRollback(this.revokeRollback.bind(this)).addEventListener("finally", this.createFinally()), this.eventInput.addKeyCombination(Z.commandName, this.shortcutKeys), this.eventInput.addEventListener("codeChange", async () => {
|
|
1561
|
+
this.eventInput.isKeyCombination(Z.commandName) && await this.commandManager.start(Z.commandName, [...this.default.selectLines]);
|
|
1553
1562
|
}), this.eventInput.addCancelDefaultBehavior(() => this.eventInput.isOnlyKeyDowns(this.shortcutKeys));
|
|
1554
1563
|
}
|
|
1555
1564
|
/**
|
|
1556
1565
|
* 进入命令约束
|
|
1557
1566
|
*/
|
|
1558
1567
|
constraint(e, t) {
|
|
1559
|
-
Array.isArray(t) ? e(t) : (
|
|
1568
|
+
Array.isArray(t) ? t.length === 0 ? (D({ message: "请选择线段", type: "warning" }), this.cancel()) : e(t) : (D({ message: "进入命令失败", type: "warning" }), this.cancel());
|
|
1560
1569
|
}
|
|
1561
1570
|
/** 开始
|
|
1562
1571
|
* @param next
|
|
1563
1572
|
*/
|
|
1564
1573
|
delete(e, t) {
|
|
1565
|
-
t.forEach((n) => this.renderManager.removeLine(n)),
|
|
1574
|
+
t.forEach((n) => this.renderManager.removeLine(n)), D({ message: "删除成功", type: "success" }), e(t);
|
|
1566
1575
|
}
|
|
1567
1576
|
/** 回滚操作
|
|
1568
1577
|
* @param data
|
|
@@ -1578,22 +1587,22 @@ class W extends T {
|
|
|
1578
1587
|
return e.forEach((t) => this.renderManager.removeLine(t)), e;
|
|
1579
1588
|
}
|
|
1580
1589
|
}
|
|
1581
|
-
class
|
|
1590
|
+
class X extends K {
|
|
1582
1591
|
static name = "ConnectionLine";
|
|
1583
1592
|
shortcutKeys = ["Shift", "L"];
|
|
1584
1593
|
static commandName = "connectionLine";
|
|
1585
1594
|
onAddFromParent(e) {
|
|
1586
1595
|
super.onAddFromParent(e);
|
|
1587
|
-
const t = this.commandManager.addCommandFlow(
|
|
1588
|
-
t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), this.eventInput.addKeyCombination(
|
|
1589
|
-
this.eventInput.isKeyCombination(
|
|
1596
|
+
const t = this.commandManager.addCommandFlow(X.commandName).add(this.createInterrupt()).add(this.constraint.bind(this)).add(this.connection.bind(this)).addRollback(this.rollback.bind(this)).addRevokeRollback(this.revokeRollback.bind(this));
|
|
1597
|
+
t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), this.eventInput.addKeyCombination(X.commandName, this.shortcutKeys), this.eventInput.addEventListener("codeChange", async () => {
|
|
1598
|
+
this.eventInput.isKeyCombination(X.commandName) && await this.commandManager.start(X.commandName, [...this.default.selectLines]);
|
|
1590
1599
|
}), this.eventInput.addCancelDefaultBehavior(() => this.eventInput.isOnlyKeyDowns(this.shortcutKeys));
|
|
1591
1600
|
}
|
|
1592
1601
|
/**
|
|
1593
1602
|
* 进入命令约束
|
|
1594
1603
|
*/
|
|
1595
1604
|
constraint(e, t) {
|
|
1596
|
-
Array.isArray(t) ? t.length !== 2 ? (
|
|
1605
|
+
Array.isArray(t) ? t.length !== 2 ? (D({ message: "请选择2条线段", type: "warning" }), this.cancel()) : e(t) : (D({ message: "进入命令失败", type: "warning" }), this.cancel());
|
|
1597
1606
|
}
|
|
1598
1607
|
/** 连接
|
|
1599
1608
|
* @param next
|
|
@@ -1606,8 +1615,8 @@ class U extends T {
|
|
|
1606
1615
|
c < s && (n = d, o = l, s = c);
|
|
1607
1616
|
}
|
|
1608
1617
|
if (n && o) {
|
|
1609
|
-
const a = new
|
|
1610
|
-
e(a),
|
|
1618
|
+
const a = new ie(n.clone(), o.clone());
|
|
1619
|
+
e(a), D({ message: "连接成功", type: "success" });
|
|
1611
1620
|
} else this.cancel();
|
|
1612
1621
|
}
|
|
1613
1622
|
/** 成功
|
|
@@ -1631,22 +1640,22 @@ class U extends T {
|
|
|
1631
1640
|
return this.completed(e), e;
|
|
1632
1641
|
}
|
|
1633
1642
|
}
|
|
1634
|
-
class
|
|
1643
|
+
class J extends K {
|
|
1635
1644
|
static name = "IntersectionConnectionLine";
|
|
1636
1645
|
shortcutKeys = ["control", "Shift", "L"];
|
|
1637
1646
|
static commandName = "intersectionConnectionLine";
|
|
1638
1647
|
onAddFromParent(e) {
|
|
1639
1648
|
super.onAddFromParent(e);
|
|
1640
|
-
const t = this.commandManager.addCommandFlow(
|
|
1641
|
-
t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), this.eventInput.addKeyCombination(
|
|
1642
|
-
this.eventInput.isKeyCombination(
|
|
1649
|
+
const t = this.commandManager.addCommandFlow(J.commandName).add(this.createInterrupt()).add(this.constraint.bind(this)).add(this.connection.bind(this)).addRollback(this.rollback.bind(this)).addRevokeRollback(this.revokeRollback.bind(this));
|
|
1650
|
+
t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), this.eventInput.addKeyCombination(J.commandName, this.shortcutKeys), this.eventInput.addEventListener("codeChange", async () => {
|
|
1651
|
+
this.eventInput.isKeyCombination(J.commandName) && await this.commandManager.start(J.commandName, [...this.default.selectLines]);
|
|
1643
1652
|
}), this.eventInput.addCancelDefaultBehavior(() => this.eventInput.isOnlyKeyDowns(this.shortcutKeys));
|
|
1644
1653
|
}
|
|
1645
1654
|
/**
|
|
1646
1655
|
* 进入命令约束
|
|
1647
1656
|
*/
|
|
1648
1657
|
constraint(e, t) {
|
|
1649
|
-
Array.isArray(t) ? t.length !== 2 ? (
|
|
1658
|
+
Array.isArray(t) ? t.length !== 2 ? (D({ message: "请选择2条线段", type: "warning" }), this.cancel()) : e(t) : (D({ message: "进入命令失败", type: "warning" }), this.cancel());
|
|
1650
1659
|
}
|
|
1651
1660
|
/** 开始
|
|
1652
1661
|
* @param next
|
|
@@ -1657,7 +1666,7 @@ class Q extends T {
|
|
|
1657
1666
|
const a = n.points.map((c) => c.clone()), i = o.points.map((c) => c.clone());
|
|
1658
1667
|
n.start.distance(s) < n.end.distance(s) ? n.start.copy(s) : n.end.copy(s), o.start.distance(s) < o.end.distance(s) ? o.start.copy(s) : o.end.copy(s);
|
|
1659
1668
|
const d = n.points.map((c) => c.clone()), l = o.points.map((c) => c.clone());
|
|
1660
|
-
e({ line1: n, line2: o, oldLine1: a, oldLine2: i, newLine1: d, newLine2: l }),
|
|
1669
|
+
e({ line1: n, line2: o, oldLine1: a, oldLine2: i, newLine1: d, newLine2: l }), D({ message: "连接成功", type: "success" });
|
|
1661
1670
|
}
|
|
1662
1671
|
/** 执行完成
|
|
1663
1672
|
* @param next
|
|
@@ -1681,22 +1690,22 @@ class Q extends T {
|
|
|
1681
1690
|
return this.completed(e), e;
|
|
1682
1691
|
}
|
|
1683
1692
|
}
|
|
1684
|
-
class
|
|
1693
|
+
class ee extends K {
|
|
1685
1694
|
static name = "DeleteSelectWindow";
|
|
1686
1695
|
shortcutKeys = ["Q", "Delete"];
|
|
1687
1696
|
static commandName = "deleteSelectWindow";
|
|
1688
1697
|
onAddFromParent(e) {
|
|
1689
1698
|
super.onAddFromParent(e);
|
|
1690
|
-
const t = this.commandManager.addCommandFlow(
|
|
1691
|
-
t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), this.eventInput.addKeyCombination(
|
|
1692
|
-
this.eventInput.isKeyCombination(
|
|
1699
|
+
const t = this.commandManager.addCommandFlow(ee.commandName).add(this.createInterrupt()).add(this.constraint.bind(this)).add(this.end.bind(this)).addRollback(this.rollback.bind(this)).addRevokeRollback(this.revokeRollback.bind(this));
|
|
1700
|
+
t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), this.eventInput.addKeyCombination(ee.commandName, this.shortcutKeys), this.eventInput.addEventListener("codeChange", async () => {
|
|
1701
|
+
this.eventInput.isKeyCombination(ee.commandName) && await this.commandManager.start(ee.commandName, [...this.default.selectLines]);
|
|
1693
1702
|
}), this.eventInput.addCancelDefaultBehavior(() => this.eventInput.isOnlyKeyDowns(this.shortcutKeys));
|
|
1694
1703
|
}
|
|
1695
1704
|
/**
|
|
1696
1705
|
* 进入命令约束
|
|
1697
1706
|
*/
|
|
1698
1707
|
constraint(e, t) {
|
|
1699
|
-
Array.isArray(t) ? t.some((n) => n.userData.isWindow) ? e(t) : (
|
|
1708
|
+
Array.isArray(t) ? t.some((n) => n.userData.isWindow) ? e(t) : (D({ message: "请选择有窗户线段", type: "warning" }), this.cancel()) : (D({ message: "进入命令失败", type: "warning" }), this.cancel());
|
|
1700
1709
|
}
|
|
1701
1710
|
/** 开始
|
|
1702
1711
|
* @param next
|
|
@@ -1708,7 +1717,7 @@ class Y extends T {
|
|
|
1708
1717
|
line: s,
|
|
1709
1718
|
drawDoorData: s.userData.drawDoorData
|
|
1710
1719
|
}), n = !0);
|
|
1711
|
-
}), n &&
|
|
1720
|
+
}), n && D({ message: "删除窗户成功", type: "success" }), e(o);
|
|
1712
1721
|
}
|
|
1713
1722
|
/**
|
|
1714
1723
|
* 完成
|
|
@@ -1738,16 +1747,16 @@ class Y extends T {
|
|
|
1738
1747
|
return this.completed(e), e;
|
|
1739
1748
|
}
|
|
1740
1749
|
}
|
|
1741
|
-
class
|
|
1750
|
+
class te extends K {
|
|
1742
1751
|
static name = "SelectAll";
|
|
1743
1752
|
container = new m.Group();
|
|
1744
1753
|
shortcutKeys = ["control", "a"];
|
|
1745
1754
|
static commandName = "selectAll";
|
|
1746
1755
|
onAddFromParent(e) {
|
|
1747
1756
|
super.onAddFromParent(e), this.editor.container.add(this.container), this.container.position.z = 1e-3;
|
|
1748
|
-
const t = this.commandManager.addCommandFlow(
|
|
1749
|
-
t.writeOperationList = !1, t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), this.eventInput.addKeyCombination(
|
|
1750
|
-
this.eventInput.isKeyCombination(
|
|
1757
|
+
const t = this.commandManager.addCommandFlow(te.commandName).add(this.createInterrupt()).add(this.selectAll.bind(this)).addRollback(this.rollback.bind(this)).addRevokeRollback(this.revokeRollback.bind(this));
|
|
1758
|
+
t.writeOperationList = !1, t.addEventListener("finally", this.createFinally()), t.addEventListener("completed", (n) => this.completed(n.data)), this.eventInput.addKeyCombination(te.commandName, this.shortcutKeys), this.eventInput.addEventListener("codeChange", async () => {
|
|
1759
|
+
this.eventInput.isKeyCombination(te.commandName) && await this.commandManager.start(te.commandName);
|
|
1751
1760
|
}), this.eventInput.addCancelDefaultBehavior(() => this.eventInput.isOnlyKeyDowns(this.shortcutKeys));
|
|
1752
1761
|
}
|
|
1753
1762
|
/** 开始
|
|
@@ -1775,67 +1784,119 @@ class Z extends T {
|
|
|
1775
1784
|
return this.completed(e), e;
|
|
1776
1785
|
}
|
|
1777
1786
|
}
|
|
1778
|
-
|
|
1787
|
+
class ne extends K {
|
|
1788
|
+
static name = "ViewAngle";
|
|
1789
|
+
shortcutKeys = ["r"];
|
|
1790
|
+
static commandName = "viewAngle";
|
|
1791
|
+
onAddFromParent(e) {
|
|
1792
|
+
super.onAddFromParent(e);
|
|
1793
|
+
const t = this.commandManager.addCommandFlow(ne.commandName).add(this.createInterrupt()).add(this.constraint.bind(this)).add(this.viewAngle.bind(this));
|
|
1794
|
+
t.writeOperationList = !1, t.addEventListener("finally", this.createFinally()), this.eventInput.addKeyCombination(ne.commandName, this.shortcutKeys), this.eventInput.addEventListener("codeChange", async () => {
|
|
1795
|
+
this.eventInput.isKeyCombination(ne.commandName) && await this.commandManager.start(ne.commandName, [...this.default.selectLines]);
|
|
1796
|
+
}), this.eventInput.addCancelDefaultBehavior(() => this.eventInput.isOnlyKeyDowns(this.shortcutKeys));
|
|
1797
|
+
}
|
|
1798
|
+
/**
|
|
1799
|
+
* 进入命令约束
|
|
1800
|
+
*/
|
|
1801
|
+
constraint(e, t) {
|
|
1802
|
+
Array.isArray(t) ? t.length !== 2 || !t[0].sameEndpoint(t[1]) ? (D({ message: "请选择两条具有端点相交的线段", type: "warning" }), this.cancel()) : e(t) : (D({ message: "进入命令失败", type: "warning" }), this.cancel());
|
|
1803
|
+
}
|
|
1804
|
+
/**
|
|
1805
|
+
*
|
|
1806
|
+
* @param next
|
|
1807
|
+
* @param selectLines
|
|
1808
|
+
*/
|
|
1809
|
+
viewAngle(e, t) {
|
|
1810
|
+
const [n, o] = t, s = Math.min(0.5, n.length(), o.length());
|
|
1811
|
+
let a, i, d, l = 0, c = 0;
|
|
1812
|
+
n.sameEndpointAsStart(o) ? (a = n.start, i = n.end) : (a = n.end, i = n.start), o.sameEndpointAsStart(n) ? d = o.end : d = o.start;
|
|
1813
|
+
function h(C, R) {
|
|
1814
|
+
const u = R.x - C.x, Y = R.y - C.y;
|
|
1815
|
+
let T = Math.atan2(Y, u) * (180 / Math.PI);
|
|
1816
|
+
return T < 0 && (T += 360), T;
|
|
1817
|
+
}
|
|
1818
|
+
const f = h(a, i), y = h(a, d), x = Math.min(f, y), w = Math.max(f, y), _ = [];
|
|
1819
|
+
function E(C, R) {
|
|
1820
|
+
for (let u = C; u <= R; u++) {
|
|
1821
|
+
const Y = Math.cos(u * Math.PI / 180) * s + a.x, T = Math.sin(u * Math.PI / 180) * s + a.y, xe = Math.cos((u + 1) * Math.PI / 180) * s + a.x, Ce = Math.sin((u + 1) * Math.PI / 180) * s + a.y;
|
|
1822
|
+
_.push(Y, T, 0, xe, Ce, 0);
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
w - x > 180 ? (E(0, x), E(w, 360), l = 360 - (w - x), c = (w + l / 2) % 360) : (E(x, w), l = w - x, c = x + l / 2);
|
|
1826
|
+
const S = new m.LineSegments();
|
|
1827
|
+
S.geometry = this.renderManager.createGeometry({
|
|
1828
|
+
position: _
|
|
1829
|
+
}, _.length / 3), S.material = new m.LineBasicMaterial({ color: 16711935 }), this.renderManager.container.add(S);
|
|
1830
|
+
const U = Math.cos(c * Math.PI / 180) * s + a.x, oe = Math.sin(c * Math.PI / 180) * s + a.y, W = this.renderer.createText(Number(l.toFixed(2)), new m.Vector3(U, oe, 0), {
|
|
1831
|
+
textShadow: "0px 0px 2px #000"
|
|
1832
|
+
}, this.renderManager.container);
|
|
1833
|
+
let I = 0;
|
|
1834
|
+
this.addEventRecord("clear").add(() => S.removeFromParent()).add(() => W.removeFromParent()).add(this.eventInput.addEventListener("codeChange", () => {
|
|
1835
|
+
this.eventInput.isOnlyKeyDown("enter") ? e() : this.eventInput.isOnlyKeyDown("mouse_0") && (I++, I === 1 ? setTimeout(() => I = 0, 500) : I === 2 && (e(), I = 0));
|
|
1836
|
+
}));
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
const Wn = {
|
|
1779
1840
|
key: 0,
|
|
1780
1841
|
class: "mt-[5px] text-[#ccc] text-[11px] absolute left-[10px] bottom-[10px] rounded-[8px] min-w-[150px] bg-black/15 p-[10px]"
|
|
1781
|
-
},
|
|
1842
|
+
}, Un = { class: "text-start max-w-[150px]" }, Yn = { class: "inline-block ml-[10px] text-[var(--color-primary)]" }, Qn = {
|
|
1782
1843
|
key: 0,
|
|
1783
1844
|
class: "p-[5px] max-w-[200px]"
|
|
1784
|
-
},
|
|
1845
|
+
}, Zn = { class: "text-[14px] flex flex-col" }, Xn = ["onClick"], Jn = { class: "flex flex-row items-center" }, eo = { class: "flex justify-center items-center size-[20px] bg-[#f0f0f0] rounded-[2px] mr-[10px]" }, to = ["src"], no = { class: "text-wrap" }, oo = {
|
|
1785
1846
|
key: 1,
|
|
1786
1847
|
class: "text-[#999]"
|
|
1787
|
-
},
|
|
1848
|
+
}, so = {
|
|
1788
1849
|
style: { "--el-color-primary": "var(--primary-color)" },
|
|
1789
1850
|
class: "flex flex-row items-center justify-between gap-[10px] mt-[10px] text-[10px]"
|
|
1790
|
-
},
|
|
1851
|
+
}, ao = {
|
|
1791
1852
|
key: 0,
|
|
1792
1853
|
class: "flex flex-row items-center flex-wrap justify-between gap-[10px] mt-[10px] text-[10px]"
|
|
1793
|
-
},
|
|
1854
|
+
}, ro = { class: "flex-wrap border-t-1 border-t-[#eee] mt-[5px] pt-[5px] flex items-center gap-[10px]" }, io = ["onClick", "title"], lo = ["src"], co = /* @__PURE__ */ de({
|
|
1794
1855
|
__name: "EditorTool",
|
|
1795
1856
|
props: {
|
|
1796
1857
|
dxfSystem: {},
|
|
1797
1858
|
permission: {}
|
|
1798
1859
|
},
|
|
1799
1860
|
setup(r) {
|
|
1800
|
-
function e(
|
|
1801
|
-
const
|
|
1802
|
-
|
|
1861
|
+
function e(b, p, v = h.value.getBoundingClientRect(), H = f.value.getBoundingClientRect()) {
|
|
1862
|
+
const le = v.width - H.width, ce = 0, Ee = v.height - H.height;
|
|
1863
|
+
b = Math.max(0, Math.min(b, le)), p = Math.max(ce, Math.min(p, Ee)), I.value = { left: b, top: p };
|
|
1803
1864
|
}
|
|
1804
|
-
function t(
|
|
1805
|
-
|
|
1865
|
+
function t(b) {
|
|
1866
|
+
x.value === b.command || x.value !== "default" || E.commandManager.start(b.command);
|
|
1806
1867
|
}
|
|
1807
|
-
function n(
|
|
1808
|
-
if (
|
|
1809
|
-
localStorage.setItem("lines", JSON.stringify(
|
|
1868
|
+
function n(b) {
|
|
1869
|
+
if (b) {
|
|
1870
|
+
localStorage.setItem("lines", JSON.stringify(b));
|
|
1810
1871
|
try {
|
|
1811
|
-
|
|
1812
|
-
} catch (
|
|
1813
|
-
console.log(
|
|
1872
|
+
w.Dxf.set(b), w.Dxf.lineOffset();
|
|
1873
|
+
} catch (p) {
|
|
1874
|
+
console.log(p);
|
|
1814
1875
|
}
|
|
1815
1876
|
}
|
|
1816
1877
|
}
|
|
1817
1878
|
async function o() {
|
|
1818
|
-
const
|
|
1819
|
-
Array.isArray(
|
|
1879
|
+
const b = await Lt.json();
|
|
1880
|
+
Array.isArray(b) && (localStorage.removeItem("orbitControls"), n(b));
|
|
1820
1881
|
}
|
|
1821
|
-
function s({ offsetX:
|
|
1822
|
-
|
|
1823
|
-
const
|
|
1882
|
+
function s({ offsetX: b, offsetY: p }) {
|
|
1883
|
+
_.mouseMoveEventProxylock = !0;
|
|
1884
|
+
const v = document.body.style.cursor;
|
|
1824
1885
|
document.body.style.cursor = "move";
|
|
1825
|
-
const
|
|
1826
|
-
const
|
|
1886
|
+
const H = (le) => {
|
|
1887
|
+
const ce = h.value.getBoundingClientRect(), Ee = f.value.getBoundingClientRect();
|
|
1827
1888
|
e(
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
),
|
|
1833
|
-
},
|
|
1834
|
-
document.body.removeEventListener("mousemove",
|
|
1889
|
+
le.pageX - ce.left - b,
|
|
1890
|
+
le.pageY - ce.top - p,
|
|
1891
|
+
ce,
|
|
1892
|
+
Ee
|
|
1893
|
+
), le.stopPropagation(), document.body.style.cursor = "move";
|
|
1894
|
+
}, Me = () => {
|
|
1895
|
+
document.body.removeEventListener("mousemove", H), document.removeEventListener("mouseup", Me), document.body.style.cursor = v, _.mouseMoveEventProxylock = !1;
|
|
1835
1896
|
};
|
|
1836
|
-
document.body.addEventListener("mousemove",
|
|
1897
|
+
document.body.addEventListener("mousemove", H), document.addEventListener("mouseup", Me);
|
|
1837
1898
|
}
|
|
1838
|
-
const a = r, i =
|
|
1899
|
+
const a = r, i = k(!0), d = k(!0), l = k(!0), c = k(!1), h = k(), f = k(), y = k(!0), x = k(""), w = It(a.dxfSystem), _ = w.findComponentByType(Et), E = w.findComponentByType(rt), S = w.findComponentByType(Se), U = w.findComponentByType(Dt), oe = k(0), W = k(0), I = k({ left: 10, top: 10 }), C = /* @__PURE__ */ Object.assign({ "./assets/images/angle.svg": fn, "./assets/images/connection.svg": wn, "./assets/images/deleteSelectLine.svg": xn, "./assets/images/deleteSelectWindow.svg": Mn, "./assets/images/door.svg": Ln, "./assets/images/intersectionConnection.svg": _n, "./assets/images/line.svg": Pn, "./assets/images/mergeLine.svg": Sn, "./assets/images/revokeRollback.svg": On, "./assets/images/rollback.svg": zn, "./assets/images/selectAll.svg": Fn, "./assets/images/selectPoint.svg": Tn, "./assets/images/verticalCorrection.svg": An, "./assets/images/window.svg": Gn }), R = k(!1), u = k(0), Y = k(!1), T = new ResizeObserver(() => e(I.value.left, I.value.top)), xe = [
|
|
1839
1900
|
{ name: "开启绘制线段命令", shortcut: "Ctrl + L" },
|
|
1840
1901
|
{ name: "开启绘制门线命令", shortcut: "Ctrl + M" },
|
|
1841
1902
|
{ name: "开启绘制窗户线命令", shortcut: "Ctrl + Q" },
|
|
@@ -1855,7 +1916,7 @@ const qn = {
|
|
|
1855
1916
|
{ name: "取消命令", shortcut: "Esc" },
|
|
1856
1917
|
{ name: "回滚操作", shortcut: "Ctrl + Z" },
|
|
1857
1918
|
{ name: "取消回滚操作", shortcut: "Ctrl + Y" }
|
|
1858
|
-
],
|
|
1919
|
+
], Ce = [
|
|
1859
1920
|
{
|
|
1860
1921
|
command: "default",
|
|
1861
1922
|
name: "默认",
|
|
@@ -1865,7 +1926,7 @@ const qn = {
|
|
|
1865
1926
|
{
|
|
1866
1927
|
command: "draw-line",
|
|
1867
1928
|
name: "绘制线段",
|
|
1868
|
-
src:
|
|
1929
|
+
src: C["./assets/images/line.svg"].default,
|
|
1869
1930
|
show: !0,
|
|
1870
1931
|
shortcut: "Ctrl + L"
|
|
1871
1932
|
},
|
|
@@ -1873,199 +1934,206 @@ const qn = {
|
|
|
1873
1934
|
command: "draw-door-line",
|
|
1874
1935
|
name: "绘制门线",
|
|
1875
1936
|
show: !0,
|
|
1876
|
-
src:
|
|
1937
|
+
src: C["./assets/images/door.svg"].default,
|
|
1877
1938
|
shortcut: "Ctrl + M"
|
|
1878
1939
|
},
|
|
1879
1940
|
{
|
|
1880
1941
|
command: "draw-window-line",
|
|
1881
1942
|
name: "绘制窗户线",
|
|
1882
1943
|
show: !0,
|
|
1883
|
-
src:
|
|
1944
|
+
src: C["./assets/images/window.svg"].default,
|
|
1884
1945
|
shortcut: "Ctrl + Q"
|
|
1885
1946
|
},
|
|
1886
1947
|
{
|
|
1887
1948
|
command: "point",
|
|
1888
1949
|
name: "点修改",
|
|
1889
1950
|
show: !0,
|
|
1890
|
-
src:
|
|
1951
|
+
src: C["./assets/images/selectPoint.svg"].default,
|
|
1891
1952
|
shortcut: "Ctrl + P"
|
|
1892
1953
|
}
|
|
1893
|
-
],
|
|
1954
|
+
], it = [
|
|
1894
1955
|
{
|
|
1895
1956
|
command: "",
|
|
1896
1957
|
name: "操作回滚",
|
|
1897
|
-
src:
|
|
1898
|
-
show:
|
|
1958
|
+
src: C["./assets/images/rollback.svg"].default,
|
|
1959
|
+
show: P(() => oe.value !== 0),
|
|
1899
1960
|
shortcut: "Ctrl + Z",
|
|
1900
1961
|
action() {
|
|
1901
|
-
|
|
1962
|
+
E.commandManager.rollback();
|
|
1902
1963
|
}
|
|
1903
1964
|
},
|
|
1904
1965
|
{
|
|
1905
1966
|
command: "",
|
|
1906
1967
|
name: "撤销操作回滚",
|
|
1907
|
-
src:
|
|
1908
|
-
show:
|
|
1968
|
+
src: C["./assets/images/revokeRollback.svg"].default,
|
|
1969
|
+
show: P(() => W.value !== 0),
|
|
1909
1970
|
shortcut: "Ctrl + Y",
|
|
1910
1971
|
class: "rotateY-[180deg]",
|
|
1911
1972
|
action() {
|
|
1912
|
-
|
|
1973
|
+
E.commandManager.revokeRollback();
|
|
1913
1974
|
}
|
|
1914
1975
|
},
|
|
1915
1976
|
{
|
|
1916
|
-
command:
|
|
1977
|
+
command: Q.commandName,
|
|
1917
1978
|
name: "合并",
|
|
1918
|
-
src:
|
|
1919
|
-
show:
|
|
1979
|
+
src: C["./assets/images/mergeLine.svg"].default,
|
|
1980
|
+
show: P(() => u.value === 2),
|
|
1920
1981
|
shortcut: "Ctrl + G"
|
|
1921
1982
|
},
|
|
1922
1983
|
{
|
|
1923
|
-
command:
|
|
1984
|
+
command: X.commandName,
|
|
1924
1985
|
name: "两点连接",
|
|
1925
|
-
show:
|
|
1926
|
-
src:
|
|
1986
|
+
show: P(() => u.value === 2),
|
|
1987
|
+
src: C["./assets/images/connection.svg"].default,
|
|
1927
1988
|
shortcut: "Shift + L"
|
|
1928
1989
|
},
|
|
1929
1990
|
{
|
|
1930
|
-
command:
|
|
1991
|
+
command: J.commandName,
|
|
1931
1992
|
name: "延长线交点连接",
|
|
1932
|
-
show:
|
|
1933
|
-
src:
|
|
1993
|
+
show: P(() => u.value === 2),
|
|
1994
|
+
src: C["./assets/images/intersectionConnection.svg"].default,
|
|
1934
1995
|
shortcut: "Ctrl + Shift + L"
|
|
1935
1996
|
},
|
|
1936
1997
|
{
|
|
1937
|
-
command:
|
|
1998
|
+
command: ae.commandName,
|
|
1938
1999
|
name: "线段垂直纠正",
|
|
1939
|
-
show:
|
|
1940
|
-
src:
|
|
2000
|
+
show: P(() => u.value === 1),
|
|
2001
|
+
src: C["./assets/images/verticalCorrection.svg"].default,
|
|
1941
2002
|
shortcut: "Ctrl + C 或 Ctrl + Shift + C"
|
|
1942
2003
|
},
|
|
1943
2004
|
{
|
|
1944
|
-
command:
|
|
2005
|
+
command: ne.commandName,
|
|
2006
|
+
name: "角度显示",
|
|
2007
|
+
show: P(() => u.value === 2 && S.selectLines[0].sameEndpoint(S.selectLines[1])),
|
|
2008
|
+
src: C["./assets/images/angle.svg"].default,
|
|
2009
|
+
shortcut: "r"
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
command: te.commandName,
|
|
1945
2013
|
name: "全选",
|
|
1946
|
-
show:
|
|
1947
|
-
src:
|
|
2014
|
+
show: P(() => u.value !== E.renderManager.lines.length),
|
|
2015
|
+
src: C["./assets/images/selectAll.svg"].default,
|
|
1948
2016
|
shortcut: "Ctrl + A"
|
|
1949
2017
|
},
|
|
1950
2018
|
{
|
|
1951
|
-
command:
|
|
2019
|
+
command: ee.commandName,
|
|
1952
2020
|
name: "清除窗户",
|
|
1953
|
-
show:
|
|
1954
|
-
src:
|
|
2021
|
+
show: P(() => Y.value),
|
|
2022
|
+
src: C["./assets/images/deleteSelectWindow.svg"].default,
|
|
1955
2023
|
shortcut: "Q + Delete"
|
|
1956
2024
|
},
|
|
1957
2025
|
{
|
|
1958
|
-
command:
|
|
2026
|
+
command: Z.commandName,
|
|
1959
2027
|
name: "删除",
|
|
1960
|
-
show:
|
|
1961
|
-
src:
|
|
2028
|
+
show: P(() => u.value > 0),
|
|
2029
|
+
src: C["./assets/images/deleteSelectLine.svg"].default,
|
|
1962
2030
|
shortcut: "Delete"
|
|
1963
2031
|
}
|
|
1964
2032
|
];
|
|
1965
|
-
|
|
1966
|
-
localStorage.setItem("toolBarExpand",
|
|
1967
|
-
}),
|
|
1968
|
-
const
|
|
1969
|
-
|
|
2033
|
+
G(I, () => localStorage.setItem("editorToolPosition", JSON.stringify(I.value))), G(R, () => localStorage.setItem("showShortcutKey", R.value + "")), G(y, () => {
|
|
2034
|
+
localStorage.setItem("toolBarExpand", y.value + ""), y.value && fe(() => e(I.value.left, I.value.top));
|
|
2035
|
+
}), G(i, () => w.Variable.set("originalLineVisible", i.value)), G(d, () => w.Variable.set("dxfVisible", d.value)), G(l, () => w.Variable.set("whiteModelVisible", l.value)), w.Variable.addEventListener("isLook", (b) => c.value = b.value), w.Variable.addEventListener("originalLineVisible", (b) => i.value = b.value), w.Variable.addEventListener("dxfVisible", (b) => d.value = b.value), w.Variable.addEventListener("whiteModelVisible", (b) => l.value = b.value);
|
|
2036
|
+
const dt = E.commandManager.addEventListener("started", (b) => {
|
|
2037
|
+
x.value = b.name;
|
|
1970
2038
|
});
|
|
1971
|
-
return localStorage.getItem("showShortcutKey") && (
|
|
2039
|
+
return localStorage.getItem("showShortcutKey") && (R.value = localStorage.getItem("showShortcutKey") === "true"), localStorage.getItem("toolBarExpand") && (y.value = localStorage.getItem("toolBarExpand") === "true"), et(() => {
|
|
1972
2040
|
f.value.style.display = "none", setTimeout(() => {
|
|
1973
2041
|
if (f.value.style.display = "block", localStorage.getItem("editorToolPosition")) {
|
|
1974
|
-
const { left:
|
|
1975
|
-
e(
|
|
2042
|
+
const { left: b, top: p } = JSON.parse(localStorage.getItem("editorToolPosition") ?? "{}");
|
|
2043
|
+
e(b, p), fe(() => T.observe(h.value));
|
|
1976
2044
|
} else
|
|
1977
|
-
|
|
1978
|
-
}, 100),
|
|
1979
|
-
|
|
1980
|
-
}), ["rollback", "completed", "revokeRollback"].forEach((
|
|
1981
|
-
|
|
2045
|
+
fe(() => T.observe(h.value));
|
|
2046
|
+
}, 100), S.addEventListener("selectLineChange", () => {
|
|
2047
|
+
u.value = S.selectLines.length, Y.value = S.selectLines.some((b) => b.userData.isWindow);
|
|
2048
|
+
}), ["rollback", "completed", "revokeRollback"].forEach((b) => {
|
|
2049
|
+
E.commandManager.addEventListener(b, () => {
|
|
1982
2050
|
setTimeout(() => {
|
|
1983
|
-
|
|
2051
|
+
oe.value = E.commandManager.operationList.length, W.value = E.commandManager.rollbackList.length;
|
|
1984
2052
|
});
|
|
1985
2053
|
});
|
|
1986
2054
|
});
|
|
1987
|
-
}),
|
|
1988
|
-
|
|
1989
|
-
}), (
|
|
2055
|
+
}), St(() => {
|
|
2056
|
+
_.mouseMoveEventProxylock = !1, dt(), T.disconnect();
|
|
2057
|
+
}), (b, p) => (L(), O("div", {
|
|
1990
2058
|
ref_key: "elRef",
|
|
1991
2059
|
ref: h,
|
|
1992
2060
|
class: "editorTool pointer-events-none overflow-hidden absolute left-0 top-0 w-full h-full z-[20] flex flex-row justify-between p-[5px] box-border select-none pointer-events-[all]"
|
|
1993
2061
|
}, [
|
|
1994
|
-
|
|
1995
|
-
default:
|
|
1996
|
-
|
|
1997
|
-
(
|
|
2062
|
+
F(we, null, {
|
|
2063
|
+
default: A(() => [
|
|
2064
|
+
R.value ? (L(), O("div", Wn, [
|
|
2065
|
+
(L(), O(ue, null, De(xe, (v) => M("div", {
|
|
1998
2066
|
class: "p-[4px_0px] flex justify-between text-right border-b-1 border-b-[rgba(255,255,255,0.1)] last-of-type:border-b-0",
|
|
1999
|
-
key:
|
|
2067
|
+
key: v.name
|
|
2000
2068
|
}, [
|
|
2001
|
-
|
|
2002
|
-
|
|
2069
|
+
M("p", Un, se(v.name), 1),
|
|
2070
|
+
M("span", Yn, se(v.shortcut), 1)
|
|
2003
2071
|
])), 64))
|
|
2004
|
-
])) :
|
|
2072
|
+
])) : $("", !0)
|
|
2005
2073
|
]),
|
|
2006
2074
|
_: 1
|
|
2007
2075
|
}),
|
|
2008
|
-
|
|
2076
|
+
M("div", {
|
|
2009
2077
|
ref_key: "toolBarRef",
|
|
2010
2078
|
ref: f,
|
|
2011
|
-
style:
|
|
2012
|
-
class:
|
|
2013
|
-
onMousedown:
|
|
2079
|
+
style: Ie({ left: I.value.left + "px", top: I.value.top + "px" }),
|
|
2080
|
+
class: B(["overflow-hidden pointer-events-auto w-fit max-w-[260px] transition-[border-radius] text-[#333] absolute z-[11] bg-white select-none", { "rounded-[8px] ": y.value }]),
|
|
2081
|
+
onMousedown: p[8] || (p[8] = (v) => v.stopPropagation())
|
|
2014
2082
|
}, [
|
|
2015
|
-
|
|
2083
|
+
M("div", {
|
|
2016
2084
|
onMousedown: s,
|
|
2017
|
-
class:
|
|
2085
|
+
class: B([{ "border-b-[#eee] border-b-1": y.value }, "flex flex-row justify-between header text-[14px] font-bold p-[10px 0px]"])
|
|
2018
2086
|
}, [
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
onMousedown:
|
|
2022
|
-
onClick:
|
|
2087
|
+
p[10] || (p[10] = Nt('<div class="flex flex-row" data-v-2424e568><div class="p-[2px_5px] flex items-center pointer-events-none" data-v-2424e568><svg fill="#aaa" width="20" height="20" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" data-v-2424e568><path d="M341.333333 298.666667a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z m0 298.666666a85.333333 85.333333 0 1 0 0-170.666666 85.333333 85.333333 0 0 0 0 170.666666z m85.333334 213.333334a85.333333 85.333333 0 1 1-170.666667 0 85.333333 85.333333 0 0 1 170.666667 0z m256-512a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z m85.333333 213.333333a85.333333 85.333333 0 1 1-170.666667 0 85.333333 85.333333 0 0 1 170.666667 0z m-85.333333 384a85.333333 85.333333 0 1 0 0-170.666667 85.333333 85.333333 0 0 0 0 170.666667z" data-v-2424e568></path></svg></div><h5 class="flex text-nowrap text-[12px] items-center pointer-events-none" data-v-2424e568>绘制工具</h5></div>', 1)),
|
|
2088
|
+
M("div", {
|
|
2089
|
+
onMousedown: p[0] || (p[0] = (v) => v.stopPropagation()),
|
|
2090
|
+
onClick: p[1] || (p[1] = (v) => y.value = !y.value),
|
|
2023
2091
|
class: "cursor-pointer flex items-center p-[0px_5px]"
|
|
2024
2092
|
}, [
|
|
2025
|
-
(
|
|
2093
|
+
(L(), O("svg", {
|
|
2026
2094
|
fill: "#666",
|
|
2027
|
-
class:
|
|
2095
|
+
class: B([{ "rotate-90": y.value }, "transition-all"]),
|
|
2028
2096
|
viewBox: "0 0 1024 1024",
|
|
2029
2097
|
version: "1.1",
|
|
2030
2098
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2031
2099
|
width: "12",
|
|
2032
2100
|
height: "12"
|
|
2033
|
-
},
|
|
2034
|
-
|
|
2101
|
+
}, p[9] || (p[9] = [
|
|
2102
|
+
M("path", { d: "M315.050667 938.666667a60.757333 60.757333 0 0 0 41.813333-16.298667L750.933333 551.338667a53.418667 53.418667 0 0 0 0-78.677334L356.864 101.632a61.696 61.696 0 0 0-83.541333 0 53.418667 53.418667 0 0 0-0.256 78.677333L625.408 512 273.066667 843.690667a53.418667 53.418667 0 0 0 0 78.677333 60.757333 60.757333 0 0 0 41.984 16.298667z" }, null, -1)
|
|
2035
2103
|
]), 2))
|
|
2036
2104
|
], 32)
|
|
2037
2105
|
], 34),
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
(
|
|
2041
|
-
key:
|
|
2106
|
+
y.value ? (L(), O("div", Qn, [
|
|
2107
|
+
M("ul", Zn, [
|
|
2108
|
+
(L(), O(ue, null, De(Ce, (v) => (L(), O(ue, {
|
|
2109
|
+
key: v.command
|
|
2042
2110
|
}, [
|
|
2043
|
-
|
|
2111
|
+
v.show ? (L(), O("li", {
|
|
2044
2112
|
key: 0,
|
|
2045
|
-
onClick: (
|
|
2046
|
-
class:
|
|
2047
|
-
"!bg-[var(--primary-color)] text-[#fff]":
|
|
2048
|
-
"!cursor-no-drop":
|
|
2113
|
+
onClick: (H) => t(v),
|
|
2114
|
+
class: B([{
|
|
2115
|
+
"!bg-[var(--primary-color)] text-[#fff]": x.value === v.command,
|
|
2116
|
+
"!cursor-no-drop": x.value !== v.command && x.value !== "default"
|
|
2049
2117
|
}, "gap-[10px] text-[12px] hover:bg-[#ddd] transition-all rounded-[6px] p-[5px] flex flex-row items-center justify-between cursor-pointer"])
|
|
2050
2118
|
}, [
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2119
|
+
M("div", Jn, [
|
|
2120
|
+
M("div", eo, [
|
|
2121
|
+
M("img", {
|
|
2054
2122
|
class: "size-[14px]",
|
|
2055
|
-
src:
|
|
2123
|
+
src: v.src,
|
|
2056
2124
|
alt: "",
|
|
2057
2125
|
srcset: ""
|
|
2058
|
-
}, null, 8,
|
|
2126
|
+
}, null, 8, to)
|
|
2059
2127
|
]),
|
|
2060
|
-
|
|
2128
|
+
M("span", no, se(v.name), 1)
|
|
2061
2129
|
]),
|
|
2062
|
-
|
|
2130
|
+
x.value === v.command ? (L(), O("div", {
|
|
2063
2131
|
key: 0,
|
|
2064
2132
|
title: "取消命令(Esc)",
|
|
2065
2133
|
class: "active:scale-[0.7] transition-all",
|
|
2066
|
-
onClick:
|
|
2067
|
-
},
|
|
2068
|
-
|
|
2134
|
+
onClick: p[2] || (p[2] = (H) => (g(E).cancelCommand(), H.stopPropagation()))
|
|
2135
|
+
}, p[11] || (p[11] = [
|
|
2136
|
+
M("svg", {
|
|
2069
2137
|
fill: "#fff",
|
|
2070
2138
|
width: "16",
|
|
2071
2139
|
height: "16",
|
|
@@ -2073,96 +2141,96 @@ const qn = {
|
|
|
2073
2141
|
version: "1.1",
|
|
2074
2142
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2075
2143
|
}, [
|
|
2076
|
-
|
|
2077
|
-
|
|
2144
|
+
M("path", { d: "M511.104 0C228.821333 0 0 228.821333 0 511.104c0 282.282667 228.821333 511.104 511.104 511.104 282.282667 0 511.104-228.842667 511.104-511.104C1022.208 228.821333 793.386667 0 511.104 0zM511.104 898.496c-213.973333 0-387.434667-173.44-387.434667-387.413333 0-213.952 173.44-387.413333 387.434667-387.413333 213.952 0 387.392 173.44 387.392 387.413333C898.496 725.056 725.056 898.496 511.104 898.496z" }),
|
|
2145
|
+
M("path", { d: "M236.437333 463.914667l549.333333 0 0 96.874667-549.333333 0 0-96.874667Z" })
|
|
2078
2146
|
], -1)
|
|
2079
|
-
]))) :
|
|
2080
|
-
], 10,
|
|
2147
|
+
]))) : v.shortcut ? (L(), O("div", oo, se(v.shortcut), 1)) : $("", !0)
|
|
2148
|
+
], 10, Xn)) : $("", !0)
|
|
2081
2149
|
], 64))), 64))
|
|
2082
2150
|
]),
|
|
2083
|
-
|
|
2084
|
-
|
|
2151
|
+
M("div", so, [
|
|
2152
|
+
F(g(Be), {
|
|
2085
2153
|
size: "small",
|
|
2086
|
-
modelValue:
|
|
2087
|
-
"onUpdate:modelValue":
|
|
2154
|
+
modelValue: R.value,
|
|
2155
|
+
"onUpdate:modelValue": p[3] || (p[3] = (v) => R.value = v),
|
|
2088
2156
|
label: "快捷键提示"
|
|
2089
2157
|
}, null, 8, ["modelValue"]),
|
|
2090
|
-
|
|
2158
|
+
F(g(Be), {
|
|
2091
2159
|
size: "small",
|
|
2092
2160
|
modelValue: d.value,
|
|
2093
|
-
"onUpdate:modelValue":
|
|
2161
|
+
"onUpdate:modelValue": p[4] || (p[4] = (v) => d.value = v),
|
|
2094
2162
|
label: "dxf"
|
|
2095
2163
|
}, null, 8, ["modelValue"])
|
|
2096
2164
|
]),
|
|
2097
|
-
|
|
2098
|
-
|
|
2165
|
+
b.permission === "admin" ? (L(), O("div", ao, [
|
|
2166
|
+
F(g(ge), {
|
|
2099
2167
|
style: { padding: "5px", "font-size": "10px" },
|
|
2100
2168
|
size: "small",
|
|
2101
2169
|
type: "success",
|
|
2102
2170
|
onClick: o
|
|
2103
2171
|
}, {
|
|
2104
|
-
default:
|
|
2105
|
-
|
|
2172
|
+
default: A(() => p[12] || (p[12] = [
|
|
2173
|
+
he(" 选择文件 ", -1)
|
|
2106
2174
|
])),
|
|
2107
2175
|
_: 1,
|
|
2108
2176
|
__: [12]
|
|
2109
2177
|
}),
|
|
2110
|
-
|
|
2178
|
+
F(g(ge), {
|
|
2111
2179
|
style: { padding: "5px", "font-size": "10px" },
|
|
2112
2180
|
size: "small",
|
|
2113
2181
|
type: "primary",
|
|
2114
|
-
onClick:
|
|
2182
|
+
onClick: p[5] || (p[5] = (v) => console.log(g(w).Dxf.originalData))
|
|
2115
2183
|
}, {
|
|
2116
|
-
default:
|
|
2117
|
-
|
|
2184
|
+
default: A(() => p[13] || (p[13] = [
|
|
2185
|
+
he(" 打印Json ", -1)
|
|
2118
2186
|
])),
|
|
2119
2187
|
_: 1,
|
|
2120
2188
|
__: [13]
|
|
2121
2189
|
}),
|
|
2122
|
-
|
|
2190
|
+
F(g(ge), {
|
|
2123
2191
|
style: { padding: "5px", "font-size": "10px" },
|
|
2124
2192
|
size: "small",
|
|
2125
2193
|
type: "primary",
|
|
2126
|
-
onClick:
|
|
2194
|
+
onClick: p[6] || (p[6] = (v) => g(w).Dxf.download("test.dxf"))
|
|
2127
2195
|
}, {
|
|
2128
|
-
default:
|
|
2129
|
-
|
|
2196
|
+
default: A(() => p[14] || (p[14] = [
|
|
2197
|
+
he(" 下载DXF ", -1)
|
|
2130
2198
|
])),
|
|
2131
2199
|
_: 1,
|
|
2132
2200
|
__: [14]
|
|
2133
2201
|
}),
|
|
2134
|
-
|
|
2202
|
+
F(g(ge), {
|
|
2135
2203
|
style: { padding: "5px", "font-size": "10px" },
|
|
2136
2204
|
size: "small",
|
|
2137
2205
|
type: "primary",
|
|
2138
|
-
onClick:
|
|
2206
|
+
onClick: p[7] || (p[7] = (v) => g(U).downloadGltf("test.glb", !0))
|
|
2139
2207
|
}, {
|
|
2140
|
-
default:
|
|
2141
|
-
|
|
2208
|
+
default: A(() => p[15] || (p[15] = [
|
|
2209
|
+
he(" 下载白膜 ", -1)
|
|
2142
2210
|
])),
|
|
2143
2211
|
_: 1,
|
|
2144
2212
|
__: [15]
|
|
2145
2213
|
})
|
|
2146
|
-
])) :
|
|
2147
|
-
|
|
2148
|
-
default:
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
default:
|
|
2152
|
-
(
|
|
2153
|
-
onClick: (
|
|
2154
|
-
title: `${
|
|
2155
|
-
class:
|
|
2156
|
-
"opacity-30 bg-[#ccc] !cursor-no-drop active:!scale-[1]": !
|
|
2157
|
-
[
|
|
2214
|
+
])) : $("", !0),
|
|
2215
|
+
F(we, null, {
|
|
2216
|
+
default: A(() => [
|
|
2217
|
+
M("div", ro, [
|
|
2218
|
+
F(Ot, null, {
|
|
2219
|
+
default: A(() => [
|
|
2220
|
+
(L(), O(ue, null, De(it, (v) => M("div", {
|
|
2221
|
+
onClick: (H) => v.show.value && x.value === "default" && (v.action ? v.action() : g(E).commandManager.start(v.command, [...g(S).selectLines])),
|
|
2222
|
+
title: `${v.name}(${v.shortcut})`,
|
|
2223
|
+
class: B(["size-[20px] flex justify-center items-center relative overflow-hidden active:scale-[0.8] border-1 border-[#ccc] rounded-[4px] transition-all cursor-pointer", {
|
|
2224
|
+
"opacity-30 bg-[#ccc] !cursor-no-drop active:!scale-[1]": !v.show.value || x.value !== "default",
|
|
2225
|
+
[v.class ?? ""]: !0
|
|
2158
2226
|
}]),
|
|
2159
|
-
key:
|
|
2227
|
+
key: v.command
|
|
2160
2228
|
}, [
|
|
2161
|
-
|
|
2229
|
+
M("img", {
|
|
2162
2230
|
class: "size-[14px]",
|
|
2163
|
-
src:
|
|
2164
|
-
}, null, 8,
|
|
2165
|
-
], 10,
|
|
2231
|
+
src: v.src
|
|
2232
|
+
}, null, 8, lo)
|
|
2233
|
+
], 10, io)), 64))
|
|
2166
2234
|
]),
|
|
2167
2235
|
_: 1
|
|
2168
2236
|
})
|
|
@@ -2170,17 +2238,17 @@ const qn = {
|
|
|
2170
2238
|
]),
|
|
2171
2239
|
_: 1
|
|
2172
2240
|
})
|
|
2173
|
-
])) :
|
|
2241
|
+
])) : $("", !0)
|
|
2174
2242
|
], 38)
|
|
2175
2243
|
], 512));
|
|
2176
2244
|
}
|
|
2177
|
-
}),
|
|
2245
|
+
}), mo = (r, e) => {
|
|
2178
2246
|
const t = r.__vccOpts || r;
|
|
2179
2247
|
for (const [n, o] of e)
|
|
2180
2248
|
t[n] = o;
|
|
2181
2249
|
return t;
|
|
2182
|
-
},
|
|
2183
|
-
let
|
|
2250
|
+
}, ho = /* @__PURE__ */ mo(co, [["__scopeId", "data-v-2424e568"]]);
|
|
2251
|
+
let rt = class extends be {
|
|
2184
2252
|
static name = "Editor";
|
|
2185
2253
|
container = new m.Group();
|
|
2186
2254
|
get renderer() {
|
|
@@ -2204,7 +2272,7 @@ let ot = class extends ye {
|
|
|
2204
2272
|
get domContainer() {
|
|
2205
2273
|
return this.parent?.findComponentByName("DomContainer");
|
|
2206
2274
|
}
|
|
2207
|
-
commandManager = new
|
|
2275
|
+
commandManager = new vn();
|
|
2208
2276
|
plane = new m.Mesh(new m.PlaneGeometry(2e3, 2e3, 2, 2));
|
|
2209
2277
|
app;
|
|
2210
2278
|
domElement = document.createElement("div");
|
|
@@ -2220,7 +2288,7 @@ let ot = class extends ye {
|
|
|
2220
2288
|
this.domContainer.domElement.parentElement && (this.domContainer.domElement.parentElement.appendChild(this.domElement), t());
|
|
2221
2289
|
});
|
|
2222
2290
|
setTimeout(() => {
|
|
2223
|
-
this.app =
|
|
2291
|
+
this.app = Rt(ho, { dxfSystem: this.parent, permission: this.viewPermission }), this.app.mount(this.domElement);
|
|
2224
2292
|
});
|
|
2225
2293
|
}
|
|
2226
2294
|
/**
|
|
@@ -2240,18 +2308,18 @@ let ot = class extends ye {
|
|
|
2240
2308
|
openEdit() {
|
|
2241
2309
|
const e = this.renderer, t = this.domEventRegister, n = this.dxf, o = e.orbitControls, s = e.camera, a = n.box.center, i = e.camera.position.clone(), d = o?.target?.clone(), l = new m.Vector2(), c = new m.Raycaster(), h = this.coords, f = this.pointerPosition;
|
|
2242
2310
|
this.container.position.z = n.originalZAverage, e.scene.add(this.container), o && (s.position.set(a.x, a.y, 15), o.target.set(a.x, a.y, 0), o.enableRotate = !1);
|
|
2243
|
-
const
|
|
2311
|
+
const y = () => {
|
|
2244
2312
|
e.renderer.getSize(l);
|
|
2245
|
-
const
|
|
2246
|
-
h.set(
|
|
2247
|
-
const
|
|
2248
|
-
|
|
2313
|
+
const x = t.pointer.x / l.x * 2 - 1, w = -(t.pointer.y / l.y * 2 - 1);
|
|
2314
|
+
h.set(x, w), c.setFromCamera(h, e.camera.children.length ? e.camera.children[0] : e.camera);
|
|
2315
|
+
const _ = c.intersectObject(this.plane);
|
|
2316
|
+
_.length && (f.copy(_[0].point), this.dispatchEvent({
|
|
2249
2317
|
type: "pointerPositionChange",
|
|
2250
2318
|
position: f
|
|
2251
2319
|
}));
|
|
2252
2320
|
};
|
|
2253
|
-
t.addEventListener("mousemove",
|
|
2254
|
-
t.removeEventListener("mousemove",
|
|
2321
|
+
t.addEventListener("mousemove", y), this.commandManager.disabled = !1, this.commandManager.start("default"), this._exitEditCallBack = () => {
|
|
2322
|
+
t.removeEventListener("mousemove", y), o && (s.position.copy(i), o.enableRotate = !0, o.target.copy(d));
|
|
2255
2323
|
};
|
|
2256
2324
|
}
|
|
2257
2325
|
/**
|
|
@@ -2264,7 +2332,7 @@ let ot = class extends ye {
|
|
|
2264
2332
|
super.destroy(), this.exitEdit(), this.renderer.scene.remove(this.container), this.domElement.remove(), this.app?.unmount();
|
|
2265
2333
|
}
|
|
2266
2334
|
};
|
|
2267
|
-
class
|
|
2335
|
+
class uo extends K {
|
|
2268
2336
|
static name = "PointDrag";
|
|
2269
2337
|
container = new m.Group();
|
|
2270
2338
|
interruptKeys = ["escape"];
|
|
@@ -2282,7 +2350,7 @@ class co extends T {
|
|
|
2282
2350
|
let t = null, n = new m.Mesh(new m.SphereGeometry(0.05), new m.MeshBasicMaterial({ color: 16711935 })), o = null;
|
|
2283
2351
|
this.addEventRecord("selectPointStart").add(this.editor.addEventListener("pointerPositionChange", () => {
|
|
2284
2352
|
const { point: s, line: a, find: i, mode: d } = this.editor.renderManager.adsorption();
|
|
2285
|
-
i && d === "point" ? (this.domElement.style.cursor = "none", n.position.copy(s), o = a, t = s.clone(), this.container.add(n)) : (this.domElement.style.cursor = "no-drop", t = null, n.removeFromParent());
|
|
2353
|
+
this.dispatchEvent({ type: "pointerMove", point: s }), i && d === "point" ? (this.domElement.style.cursor = "none", n.position.copy(s), o = a, t = s.clone(), this.container.add(n)) : (this.domElement.style.cursor = "no-drop", t = null, n.removeFromParent());
|
|
2286
2354
|
})).add(this.eventInput.addEventListener("codeChange", () => {
|
|
2287
2355
|
this.eventInput.isKeyDown("mouse_0") && t && (this.canceEventRecord("selectPointStart"), n.material.color.set(65280), e({ point: t, line: o }));
|
|
2288
2356
|
})), this.addEventRecord("clear").add(() => n.removeFromParent());
|
|
@@ -2294,12 +2362,12 @@ class co extends T {
|
|
|
2294
2362
|
*/
|
|
2295
2363
|
drag(e, { point: t, line: n }) {
|
|
2296
2364
|
this.domElement.style.cursor = "crosshair";
|
|
2297
|
-
const o = n.start.equal(
|
|
2365
|
+
const o = n.start.equal(q.from(t)) ? "start" : "end", s = o == "start" ? new m.Vector3(n.end.x, n.end.y, 0) : new m.Vector3(n.start.x, n.start.y, 0), a = t.clone(), i = new ve([s, a], 16711935), d = new m.Mesh(new m.SphereGeometry(0.03), new m.MeshBasicMaterial({ color: 16711935 }));
|
|
2298
2366
|
this.container.add(i), this.addEventRecord("clear").add(this.editor.addEventListener("pointerPositionChange", () => {
|
|
2299
2367
|
let { point: l, find: c } = this.editor.renderManager.adsorption(), h = "none";
|
|
2300
2368
|
if (l) {
|
|
2301
2369
|
if (this.dispatchEvent({ type: "pointerMove", point: l }), this.eventInput.isKeyDown("shift")) {
|
|
2302
|
-
const f = n.projectPoint(
|
|
2370
|
+
const f = n.projectPoint(q.from(l), !1);
|
|
2303
2371
|
l.set(f?.x ?? l.x, f?.y ?? l.y, 0), c = !0, h = "crosshair";
|
|
2304
2372
|
}
|
|
2305
2373
|
c ? (d.position.copy(l), this.container.add(d)) : (d.removeFromParent(), h = "crosshair"), a.copy(l), i.setPoint(s, a), this.domElement.style.cursor = h;
|
|
@@ -2329,15 +2397,15 @@ class co extends T {
|
|
|
2329
2397
|
return this.completed(e), e;
|
|
2330
2398
|
}
|
|
2331
2399
|
}
|
|
2332
|
-
function
|
|
2333
|
-
r.addComponent(new
|
|
2400
|
+
function $e(r, e = {}) {
|
|
2401
|
+
r.addComponent(new rt(e.viewPermission)), r.addComponent(new qn()), r.addComponent(new Se()), r.addComponent(new un()), r.addComponent(new Hn()), r.addComponent(new $n()), r.addComponent(new uo()), r.addComponent(new Z()), r.addComponent(new Q()), r.addComponent(new ae()), r.addComponent(new X()), r.addComponent(new J()), r.addComponent(new ee()), r.addComponent(new te()), r.addComponent(new ne());
|
|
2334
2402
|
}
|
|
2335
|
-
const
|
|
2403
|
+
const xo = Object.assign($e, {
|
|
2336
2404
|
create(r = {}) {
|
|
2337
|
-
return (e) =>
|
|
2405
|
+
return (e) => $e(e, r);
|
|
2338
2406
|
}
|
|
2339
2407
|
});
|
|
2340
2408
|
export {
|
|
2341
|
-
|
|
2342
|
-
|
|
2409
|
+
xo as Editor,
|
|
2410
|
+
$e as Editor_
|
|
2343
2411
|
};
|