build-dxf 0.0.44 → 0.0.46
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.d.ts +1 -2
- package/src/build.js +2000 -1449
- package/src/index.css +1 -1
- package/src/index.js +1 -1
- package/src/index3.js +230 -228
- package/src/pages/{Dxf.vue.d.ts → WallView.vue.d.ts} +3 -1
- package/src/selectLocalFile.js +1763 -4638
- package/src/utils/DxfSystem/components/DoorsAnalysis.d.ts +3 -3
- package/src/utils/DxfSystem/components/Dxf.d.ts +4 -4
- package/src/utils/DxfSystem/components/LineAnalysis.d.ts +3 -3
- package/src/utils/DxfSystem/components/ThreeVJia.d.ts +27 -2
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/ClippingLine.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/CommandFlowComponent.d.ts +2 -2
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/Default.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/DrawWindow.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/PointDrag.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/SelectAll.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/Editor/components/CommandFlow/VerticalCorrection.d.ts +2 -2
- package/src/utils/DxfSystem/plugin/Editor/components/RenderManager.d.ts +2 -2
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/ModelDataRender.d.ts +1 -1
- package/src/utils/DxfSystem/plugin/RenderPlugin/components/Renderer.d.ts +2 -8
- package/src/utils/DxfSystem/type.d.ts +13 -4
- package/src/utils/DxfSystem/utils/AxisAlignCorr.d.ts +1 -1
- package/src/utils/DxfSystem/utils/BoundExt.d.ts +3 -3
- package/src/utils/DxfSystem/utils/DoubleWallHelper.d.ts +19 -0
- package/src/utils/DxfSystem/utils/clippingDoubleWall.d.ts +6 -0
- package/src/utils/DxfSystem/utils/clippingLineUserData.d.ts +7 -0
- package/src/utils/DxfSystem/utils/closedPathArea.d.ts +2 -0
- package/src/utils/DxfSystem/utils/createPointVirtualGrid.d.ts +3 -0
- package/src/utils/DxfSystem/utils/drawHelper.d.ts +4 -4
- package/src/utils/DxfSystem/utils/findClosedPolygons.d.ts +22 -0
- package/src/utils/DxfSystem/utils/findClosedPolygons01.d.ts +27 -0
- package/src/utils/DxfSystem/utils/findDiscretePointLine.d.ts +14 -0
- package/src/utils/DxfSystem/utils/findVerticalReference.d.ts +1 -1
- package/src/utils/DxfSystem/utils/lineDataToOriginalData.d.ts +3 -2
- package/src/utils/DxfSystem/utils/lineSegmentClipping.d.ts +1 -1
- package/src/utils/DxfSystem/utils/mergeLineUserData.d.ts +7 -0
- package/src/utils/DxfSystem/utils/originalDataToLineData.d.ts +1 -1
- package/src/utils/DxfSystem/utils/recomputedWindow.d.ts +1 -1
- package/src/utils/{Quadtree/LineSegment.d.ts → LineSegment.d.ts} +35 -3
- package/src/utils/Map.d.ts +17 -0
- package/src/utils/{Quadtree/Point.d.ts → Point.d.ts} +2 -0
- package/src/utils/PointVirtualGrid/index.d.ts +10 -7
- package/src/utils/{Quadtree/Quadtree.d.ts → Quadtree.d.ts} +2 -2
- package/src/utils/UndirectedGraph.d.ts +28 -0
- package/src/utils/UnionFindSet.d.ts +12 -0
- package/src/utils/cloneUserData.d.ts +7 -0
- package/src/utils/DxfSystem/utils/extractClosedPolygons.d.ts +0 -11
- /package/src/utils/{Quadtree/Box2.d.ts → Box2.d.ts} +0 -0
- /package/src/utils/{Quadtree/Rectangle.d.ts → Rectangle.d.ts} +0 -0
package/src/index3.js
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
import * as g from "three";
|
|
2
|
-
import { i as
|
|
3
|
-
import { C as Ae, P as L, L as N, B as
|
|
2
|
+
import { i as pt, n as gt, r as qe, t as Ze, c as Pe, d as vt, e as ft, f as De, g as Q, _ as Ye, u as yt, h as fe, j as _e, w as wt, k as bt, l as xt, p as Ct, m as Et, o as Lt, T as Ne, q as Be, s as Mt, v as kt, x as Re, y as Ie, z as Me, A as It, B as Pt, L as ye, D as Dt, b as Oe, E as re, S as At } from "./selectLocalFile.js";
|
|
3
|
+
import { C as Ae, P as L, L as N, B as Xe, E as $e, b as ze, Q as Fe, c as Ke, d as St, u as _t, A as Nt, r as Te, W as Bt, T as Rt } from "./build.js";
|
|
4
4
|
import "clipper-lib";
|
|
5
5
|
import "dxf-writer";
|
|
6
|
-
import { watch as
|
|
6
|
+
import { watch as U, ref as _, defineComponent as me, computed as A, createElementBlock as R, openBlock as D, normalizeClass as V, unref as v, renderSlot as be, createVNode as F, Transition as xe, withCtx as j, withDirectives as et, createElementVNode as P, normalizeStyle as Se, createTextVNode as X, toDisplayString as de, vShow as tt, shallowReactive as Ot, onMounted as nt, createBlock as ge, createCommentVNode as q, resolveDynamicComponent as zt, Fragment as ve, withModifiers as Ft, nextTick as we, isVNode as st, render as je, toRaw as Kt, onUnmounted as Tt, renderList as ke, createStaticVNode as jt, TransitionGroup as Vt, createApp as Gt } from "vue";
|
|
7
7
|
import "three/addons/controls/OrbitControls.js";
|
|
8
|
-
function
|
|
8
|
+
function ot(c) {
|
|
9
9
|
var e;
|
|
10
|
-
const t =
|
|
10
|
+
const t = qe(c);
|
|
11
11
|
return (e = t?.$el) != null ? e : t;
|
|
12
12
|
}
|
|
13
|
-
const
|
|
14
|
-
function
|
|
13
|
+
const at = Pe ? window : void 0;
|
|
14
|
+
function Qt(...c) {
|
|
15
15
|
let e, t, n, s;
|
|
16
|
-
if (
|
|
17
|
-
return
|
|
16
|
+
if (pt(c[0]) || Array.isArray(c[0]) ? ([t, n, s] = c, e = at) : [e, t, n, s] = c, !e)
|
|
17
|
+
return gt;
|
|
18
18
|
Array.isArray(t) || (t = [t]), Array.isArray(n) || (n = [n]);
|
|
19
19
|
const o = [], a = () => {
|
|
20
20
|
o.forEach((d) => d()), o.length = 0;
|
|
21
|
-
}, l = (d, m, y, f) => (d.addEventListener(m, y, f), () => d.removeEventListener(m, y, f)), r =
|
|
21
|
+
}, l = (d, m, y, f) => (d.addEventListener(m, y, f), () => d.removeEventListener(m, y, f)), r = U(() => [ot(e), qe(s)], ([d, m]) => {
|
|
22
22
|
a(), d && o.push(...t.flatMap((y) => n.map((f) => l(d, y, f, m))));
|
|
23
23
|
}, { immediate: !0, flush: "post" }), i = () => {
|
|
24
24
|
r(), a();
|
|
25
25
|
};
|
|
26
|
-
return
|
|
26
|
+
return Ze(i), i;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Ht(c, e = !1) {
|
|
29
29
|
const t = _(), n = () => t.value = !!c();
|
|
30
|
-
return n(),
|
|
30
|
+
return n(), vt(n, e), t;
|
|
31
31
|
}
|
|
32
|
-
const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {},
|
|
33
|
-
Ve[
|
|
34
|
-
var
|
|
32
|
+
const Ve = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, Ge = "__vueuse_ssr_handlers__";
|
|
33
|
+
Ve[Ge] = Ve[Ge] || {};
|
|
34
|
+
var Qe = Object.getOwnPropertySymbols, Wt = Object.prototype.hasOwnProperty, Ut = Object.prototype.propertyIsEnumerable, Jt = (c, e) => {
|
|
35
35
|
var t = {};
|
|
36
36
|
for (var n in c)
|
|
37
|
-
|
|
38
|
-
if (c != null &&
|
|
39
|
-
for (var n of
|
|
40
|
-
e.indexOf(n) < 0 &&
|
|
37
|
+
Wt.call(c, n) && e.indexOf(n) < 0 && (t[n] = c[n]);
|
|
38
|
+
if (c != null && Qe)
|
|
39
|
+
for (var n of Qe(c))
|
|
40
|
+
e.indexOf(n) < 0 && Ut.call(c, n) && (t[n] = c[n]);
|
|
41
41
|
return t;
|
|
42
42
|
};
|
|
43
|
-
function
|
|
44
|
-
const n = t, { window: s =
|
|
43
|
+
function qt(c, e, t = {}) {
|
|
44
|
+
const n = t, { window: s = at } = n, o = Jt(n, ["window"]);
|
|
45
45
|
let a;
|
|
46
|
-
const l =
|
|
46
|
+
const l = Ht(() => s && "ResizeObserver" in s), r = () => {
|
|
47
47
|
a && (a.disconnect(), a = void 0);
|
|
48
|
-
}, i =
|
|
48
|
+
}, i = U(() => ot(c), (m) => {
|
|
49
49
|
r(), l.value && s && m && (a = new ResizeObserver(e), a.observe(m, o));
|
|
50
50
|
}, { immediate: !0, flush: "post" }), d = () => {
|
|
51
51
|
r(), i();
|
|
52
52
|
};
|
|
53
|
-
return
|
|
53
|
+
return Ze(d), {
|
|
54
54
|
isSupported: l,
|
|
55
55
|
stop: d
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var He;
|
|
59
59
|
(function(c) {
|
|
60
60
|
c.UP = "UP", c.RIGHT = "RIGHT", c.DOWN = "DOWN", c.LEFT = "LEFT", c.NONE = "NONE";
|
|
61
|
-
})(
|
|
62
|
-
var
|
|
61
|
+
})(He || (He = {}));
|
|
62
|
+
var Zt = Object.defineProperty, We = Object.getOwnPropertySymbols, Yt = Object.prototype.hasOwnProperty, Xt = Object.prototype.propertyIsEnumerable, Ue = (c, e, t) => e in c ? Zt(c, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[e] = t, $t = (c, e) => {
|
|
63
63
|
for (var t in e || (e = {}))
|
|
64
|
-
|
|
65
|
-
if (
|
|
66
|
-
for (var t of
|
|
67
|
-
|
|
64
|
+
Yt.call(e, t) && Ue(c, t, e[t]);
|
|
65
|
+
if (We)
|
|
66
|
+
for (var t of We(e))
|
|
67
|
+
Xt.call(e, t) && Ue(c, t, e[t]);
|
|
68
68
|
return c;
|
|
69
69
|
};
|
|
70
|
-
const
|
|
70
|
+
const en = {
|
|
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 $t = {
|
|
|
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
|
|
96
|
+
$t({
|
|
97
|
+
linear: ft
|
|
98
|
+
}, en);
|
|
99
|
+
const tn = (c) => c, nn = {
|
|
100
100
|
esc: "Escape"
|
|
101
|
-
},
|
|
101
|
+
}, sn = De({
|
|
102
102
|
value: {
|
|
103
103
|
type: [String, Number],
|
|
104
104
|
default: ""
|
|
@@ -129,13 +129,13 @@ const en = (c) => c, tn = {
|
|
|
129
129
|
badgeClass: {
|
|
130
130
|
type: String
|
|
131
131
|
}
|
|
132
|
-
}),
|
|
132
|
+
}), on = me({
|
|
133
133
|
name: "ElBadge"
|
|
134
|
-
}),
|
|
135
|
-
...
|
|
136
|
-
props:
|
|
134
|
+
}), an = /* @__PURE__ */ me({
|
|
135
|
+
...on,
|
|
136
|
+
props: sn,
|
|
137
137
|
setup(c, { expose: e }) {
|
|
138
|
-
const t = c, n =
|
|
138
|
+
const t = c, n = yt("badge"), s = A(() => t.isDot ? "" : fe(t.value) && fe(t.max) ? t.max < t.value ? `${t.max}+` : `${t.value}` : `${t.value}`), o = A(() => {
|
|
139
139
|
var a, l, r, i, d;
|
|
140
140
|
return [
|
|
141
141
|
{
|
|
@@ -149,16 +149,16 @@ const en = (c) => c, tn = {
|
|
|
149
149
|
return e({
|
|
150
150
|
content: s
|
|
151
151
|
}), (a, l) => (D(), R("div", {
|
|
152
|
-
class:
|
|
152
|
+
class: V(v(n).b())
|
|
153
153
|
}, [
|
|
154
154
|
be(a.$slots, "default"),
|
|
155
155
|
F(xe, {
|
|
156
156
|
name: `${v(n).namespace.value}-zoom-in-center`,
|
|
157
157
|
persisted: ""
|
|
158
158
|
}, {
|
|
159
|
-
default:
|
|
160
|
-
|
|
161
|
-
class:
|
|
159
|
+
default: j(() => [
|
|
160
|
+
et(P("sup", {
|
|
161
|
+
class: V([
|
|
162
162
|
v(n).e("content"),
|
|
163
163
|
v(n).em("content", a.type),
|
|
164
164
|
v(n).is("fixed", !!a.$slots.default),
|
|
@@ -172,7 +172,7 @@ const en = (c) => c, tn = {
|
|
|
172
172
|
X(de(v(s)), 1)
|
|
173
173
|
])
|
|
174
174
|
], 6), [
|
|
175
|
-
[
|
|
175
|
+
[tt, !a.hidden && (v(s) || a.isDot || a.$slots.content)]
|
|
176
176
|
])
|
|
177
177
|
]),
|
|
178
178
|
_: 3
|
|
@@ -180,8 +180,8 @@ const en = (c) => c, tn = {
|
|
|
180
180
|
], 2));
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
|
-
var
|
|
184
|
-
const
|
|
183
|
+
var rn = /* @__PURE__ */ Ye(an, [["__file", "badge.vue"]]);
|
|
184
|
+
const dn = wt(rn), ln = De({
|
|
185
185
|
a11y: {
|
|
186
186
|
type: Boolean,
|
|
187
187
|
default: !0
|
|
@@ -189,7 +189,7 @@ const rn = yt(an), dn = De({
|
|
|
189
189
|
locale: {
|
|
190
190
|
type: Q(Object)
|
|
191
191
|
},
|
|
192
|
-
size:
|
|
192
|
+
size: xt,
|
|
193
193
|
button: {
|
|
194
194
|
type: Q(Object)
|
|
195
195
|
},
|
|
@@ -217,26 +217,26 @@ const rn = yt(an), dn = De({
|
|
|
217
217
|
type: String,
|
|
218
218
|
default: "el"
|
|
219
219
|
},
|
|
220
|
-
...
|
|
220
|
+
...bt
|
|
221
221
|
}), T = {};
|
|
222
222
|
me({
|
|
223
223
|
name: "ElConfigProvider",
|
|
224
|
-
props:
|
|
224
|
+
props: ln,
|
|
225
225
|
setup(c, { slots: e }) {
|
|
226
|
-
const t =
|
|
227
|
-
return
|
|
226
|
+
const t = Ct(c);
|
|
227
|
+
return U(() => c.message, (n) => {
|
|
228
228
|
var s, o;
|
|
229
229
|
Object.assign(T, (o = (s = t?.value) == null ? void 0 : s.message) != null ? o : {}, n ?? {});
|
|
230
230
|
}, { immediate: !0, deep: !0 }), () => be(e, "default", { config: t?.value });
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
|
-
const
|
|
233
|
+
const it = [
|
|
234
234
|
"primary",
|
|
235
235
|
"success",
|
|
236
236
|
"info",
|
|
237
237
|
"warning",
|
|
238
238
|
"error"
|
|
239
|
-
], B =
|
|
239
|
+
], B = tn({
|
|
240
240
|
customClass: "",
|
|
241
241
|
dangerouslyUseHTMLString: !1,
|
|
242
242
|
duration: 3e3,
|
|
@@ -252,7 +252,7 @@ const at = [
|
|
|
252
252
|
grouping: !1,
|
|
253
253
|
repeatNum: 1,
|
|
254
254
|
appendTo: Pe ? document.body : void 0
|
|
255
|
-
}),
|
|
255
|
+
}), cn = De({
|
|
256
256
|
customClass: {
|
|
257
257
|
type: String,
|
|
258
258
|
default: B.customClass
|
|
@@ -266,7 +266,7 @@ const at = [
|
|
|
266
266
|
default: B.duration
|
|
267
267
|
},
|
|
268
268
|
icon: {
|
|
269
|
-
type:
|
|
269
|
+
type: Et,
|
|
270
270
|
default: B.icon
|
|
271
271
|
},
|
|
272
272
|
id: {
|
|
@@ -291,7 +291,7 @@ const at = [
|
|
|
291
291
|
},
|
|
292
292
|
type: {
|
|
293
293
|
type: String,
|
|
294
|
-
values:
|
|
294
|
+
values: it,
|
|
295
295
|
default: B.type
|
|
296
296
|
},
|
|
297
297
|
plain: {
|
|
@@ -314,33 +314,33 @@ const at = [
|
|
|
314
314
|
type: Number,
|
|
315
315
|
default: B.repeatNum
|
|
316
316
|
}
|
|
317
|
-
}),
|
|
317
|
+
}), mn = {
|
|
318
318
|
destroy: () => !0
|
|
319
|
-
}, H =
|
|
319
|
+
}, H = Ot([]), hn = (c) => {
|
|
320
320
|
const e = H.findIndex((s) => s.id === c), t = H[e];
|
|
321
321
|
let n;
|
|
322
322
|
return e > 0 && (n = H[e - 1]), { current: t, prev: n };
|
|
323
|
-
},
|
|
324
|
-
const { prev: e } =
|
|
323
|
+
}, un = (c) => {
|
|
324
|
+
const { prev: e } = hn(c);
|
|
325
325
|
return e ? e.vm.exposed.bottom.value : 0;
|
|
326
|
-
},
|
|
326
|
+
}, pn = (c, e) => H.findIndex((n) => n.id === c) > 0 ? 16 : e, gn = me({
|
|
327
327
|
name: "ElMessage"
|
|
328
|
-
}),
|
|
329
|
-
...
|
|
330
|
-
props:
|
|
331
|
-
emits:
|
|
328
|
+
}), vn = /* @__PURE__ */ me({
|
|
329
|
+
...gn,
|
|
330
|
+
props: cn,
|
|
331
|
+
emits: mn,
|
|
332
332
|
setup(c, { expose: e, emit: t }) {
|
|
333
|
-
const n = c, { Close: s } =
|
|
333
|
+
const n = c, { Close: s } = Mt, o = _(!1), { ns: a, zIndex: l } = Lt("message"), { currentZIndex: r, nextZIndex: i } = l, d = _(), m = _(!1), y = _(0);
|
|
334
334
|
let f;
|
|
335
335
|
const p = A(() => n.type ? n.type === "error" ? "danger" : n.type : "info"), h = A(() => {
|
|
336
336
|
const b = n.type;
|
|
337
337
|
return { [a.bm("icon", b)]: b && Ne[b] };
|
|
338
|
-
}), E = A(() => n.icon || Ne[n.type] || ""), x = A(() =>
|
|
338
|
+
}), E = A(() => n.icon || Ne[n.type] || ""), x = A(() => un(n.id)), I = A(() => pn(n.id, n.offset) + x.value), K = A(() => y.value + I.value), Y = A(() => ({
|
|
339
339
|
top: `${I.value}px`,
|
|
340
340
|
zIndex: r.value
|
|
341
341
|
}));
|
|
342
342
|
function Z() {
|
|
343
|
-
n.duration !== 0 && ({ stop: f } =
|
|
343
|
+
n.duration !== 0 && ({ stop: f } = kt(() => {
|
|
344
344
|
S();
|
|
345
345
|
}, n.duration));
|
|
346
346
|
}
|
|
@@ -354,13 +354,13 @@ const at = [
|
|
|
354
354
|
});
|
|
355
355
|
}
|
|
356
356
|
function M({ code: b }) {
|
|
357
|
-
b ===
|
|
357
|
+
b === nn.esc && S();
|
|
358
358
|
}
|
|
359
|
-
return
|
|
359
|
+
return nt(() => {
|
|
360
360
|
Z(), i(), m.value = !0;
|
|
361
|
-
}),
|
|
361
|
+
}), U(() => n.repeatNum, () => {
|
|
362
362
|
G(), Z();
|
|
363
|
-
}),
|
|
363
|
+
}), Qt(document, "keydown", M), qt(d, () => {
|
|
364
364
|
y.value = d.value.getBoundingClientRect().height;
|
|
365
365
|
}), e({
|
|
366
366
|
visible: m,
|
|
@@ -373,12 +373,12 @@ const at = [
|
|
|
373
373
|
onAfterLeave: (W) => b.$emit("destroy"),
|
|
374
374
|
persisted: ""
|
|
375
375
|
}, {
|
|
376
|
-
default:
|
|
377
|
-
|
|
376
|
+
default: j(() => [
|
|
377
|
+
et(P("div", {
|
|
378
378
|
id: b.id,
|
|
379
379
|
ref_key: "messageRef",
|
|
380
380
|
ref: d,
|
|
381
|
-
class:
|
|
381
|
+
class: V([
|
|
382
382
|
v(a).b(),
|
|
383
383
|
{ [v(a).m(b.type)]: b.type },
|
|
384
384
|
v(a).is("closable", b.showClose),
|
|
@@ -390,18 +390,18 @@ const at = [
|
|
|
390
390
|
onMouseenter: G,
|
|
391
391
|
onMouseleave: Z
|
|
392
392
|
}, [
|
|
393
|
-
b.repeatNum > 1 ? (D(), ge(v(
|
|
393
|
+
b.repeatNum > 1 ? (D(), ge(v(dn), {
|
|
394
394
|
key: 0,
|
|
395
395
|
value: b.repeatNum,
|
|
396
396
|
type: v(p),
|
|
397
|
-
class:
|
|
397
|
+
class: V(v(a).e("badge"))
|
|
398
398
|
}, null, 8, ["value", "type", "class"])) : q("v-if", !0),
|
|
399
399
|
v(E) ? (D(), ge(v(Be), {
|
|
400
400
|
key: 1,
|
|
401
|
-
class:
|
|
401
|
+
class: V([v(a).e("icon"), v(h)])
|
|
402
402
|
}, {
|
|
403
|
-
default:
|
|
404
|
-
(D(), ge(
|
|
403
|
+
default: j(() => [
|
|
404
|
+
(D(), ge(zt(v(E))))
|
|
405
405
|
]),
|
|
406
406
|
_: 1
|
|
407
407
|
}, 8, ["class"])) : q("v-if", !0),
|
|
@@ -409,36 +409,36 @@ const at = [
|
|
|
409
409
|
b.dangerouslyUseHTMLString ? (D(), R(ve, { key: 1 }, [
|
|
410
410
|
q(" Caution here, message could've been compromised, never use user's input as message "),
|
|
411
411
|
P("p", {
|
|
412
|
-
class:
|
|
412
|
+
class: V(v(a).e("content")),
|
|
413
413
|
innerHTML: b.message
|
|
414
414
|
}, null, 10, ["innerHTML"])
|
|
415
415
|
], 2112)) : (D(), R("p", {
|
|
416
416
|
key: 0,
|
|
417
|
-
class:
|
|
417
|
+
class: V(v(a).e("content"))
|
|
418
418
|
}, de(b.message), 3))
|
|
419
419
|
]),
|
|
420
420
|
b.showClose ? (D(), ge(v(Be), {
|
|
421
421
|
key: 2,
|
|
422
|
-
class:
|
|
423
|
-
onClick:
|
|
422
|
+
class: V(v(a).e("closeBtn")),
|
|
423
|
+
onClick: Ft(S, ["stop"])
|
|
424
424
|
}, {
|
|
425
|
-
default:
|
|
425
|
+
default: j(() => [
|
|
426
426
|
F(v(s))
|
|
427
427
|
]),
|
|
428
428
|
_: 1
|
|
429
429
|
}, 8, ["class", "onClick"])) : q("v-if", !0)
|
|
430
430
|
], 46, ["id"]), [
|
|
431
|
-
[
|
|
431
|
+
[tt, m.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 = !c || Re(c) ||
|
|
438
|
+
var fn = /* @__PURE__ */ Ye(vn, [["__file", "message.vue"]]);
|
|
439
|
+
let yn = 1;
|
|
440
|
+
const rt = (c) => {
|
|
441
|
+
const e = !c || Re(c) || st(c) || Ie(c) ? { message: c } : c, t = {
|
|
442
442
|
...B,
|
|
443
443
|
...e
|
|
444
444
|
};
|
|
@@ -446,30 +446,30 @@ const it = (c) => {
|
|
|
446
446
|
t.appendTo = document.body;
|
|
447
447
|
else if (Re(t.appendTo)) {
|
|
448
448
|
let n = document.querySelector(t.appendTo);
|
|
449
|
-
|
|
449
|
+
It(n) || (n = document.body), t.appendTo = n;
|
|
450
450
|
}
|
|
451
451
|
return Me(T.grouping) && !t.grouping && (t.grouping = T.grouping), fe(T.duration) && t.duration === 3e3 && (t.duration = T.duration), fe(T.offset) && t.offset === 16 && (t.offset = T.offset), Me(T.showClose) && !t.showClose && (t.showClose = T.showClose), Me(T.plain) && !t.plain && (t.plain = T.plain), t;
|
|
452
|
-
},
|
|
452
|
+
}, wn = (c) => {
|
|
453
453
|
const e = H.indexOf(c);
|
|
454
454
|
if (e === -1)
|
|
455
455
|
return;
|
|
456
456
|
H.splice(e, 1);
|
|
457
457
|
const { handler: t } = c;
|
|
458
458
|
t.close();
|
|
459
|
-
},
|
|
460
|
-
const n = `message_${
|
|
459
|
+
}, bn = ({ appendTo: c, ...e }, t) => {
|
|
460
|
+
const n = `message_${yn++}`, s = e.onClose, o = document.createElement("div"), a = {
|
|
461
461
|
...e,
|
|
462
462
|
id: n,
|
|
463
463
|
onClose: () => {
|
|
464
|
-
s?.(),
|
|
464
|
+
s?.(), wn(d);
|
|
465
465
|
},
|
|
466
466
|
onDestroy: () => {
|
|
467
|
-
|
|
467
|
+
je(null, o);
|
|
468
468
|
}
|
|
469
|
-
}, l = F(
|
|
469
|
+
}, l = F(fn, a, Ie(a.message) || st(a.message) ? {
|
|
470
470
|
default: Ie(a.message) ? a.message : () => a.message
|
|
471
471
|
} : null);
|
|
472
|
-
l.appContext = t || ce._context,
|
|
472
|
+
l.appContext = t || ce._context, je(l, o), c.appendChild(o.firstElementChild);
|
|
473
473
|
const r = l.component, d = {
|
|
474
474
|
id: n,
|
|
475
475
|
vnode: l,
|
|
@@ -486,7 +486,7 @@ const it = (c) => {
|
|
|
486
486
|
if (!Pe)
|
|
487
487
|
return { close: () => {
|
|
488
488
|
} };
|
|
489
|
-
const t =
|
|
489
|
+
const t = rt(c);
|
|
490
490
|
if (t.grouping && H.length) {
|
|
491
491
|
const s = H.find(({ vnode: o }) => {
|
|
492
492
|
var a;
|
|
@@ -498,23 +498,23 @@ const it = (c) => {
|
|
|
498
498
|
if (fe(T.max) && H.length >= T.max)
|
|
499
499
|
return { close: () => {
|
|
500
500
|
} };
|
|
501
|
-
const n =
|
|
501
|
+
const n = bn(t, e);
|
|
502
502
|
return H.push(n), n.handler;
|
|
503
503
|
};
|
|
504
|
-
|
|
504
|
+
it.forEach((c) => {
|
|
505
505
|
ce[c] = (e = {}, t) => {
|
|
506
|
-
const n =
|
|
506
|
+
const n = rt(e);
|
|
507
507
|
return ce({ ...n, type: c }, t);
|
|
508
508
|
};
|
|
509
509
|
});
|
|
510
|
-
function
|
|
510
|
+
function xn(c) {
|
|
511
511
|
const e = [...H];
|
|
512
512
|
for (const t of e)
|
|
513
513
|
(!c || c === t.props.type) && t.handler.close();
|
|
514
514
|
}
|
|
515
|
-
ce.closeAll =
|
|
515
|
+
ce.closeAll = xn;
|
|
516
516
|
ce._context = null;
|
|
517
|
-
const k =
|
|
517
|
+
const k = Pt(ce, "$message");
|
|
518
518
|
class O extends Ae {
|
|
519
519
|
_renderer;
|
|
520
520
|
get renderer() {
|
|
@@ -634,7 +634,7 @@ class O extends Ae {
|
|
|
634
634
|
};
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
|
-
class
|
|
637
|
+
class Cn extends O {
|
|
638
638
|
static name = "DrawLine";
|
|
639
639
|
container = new g.Group();
|
|
640
640
|
interruptKeys = ["escape"];
|
|
@@ -725,7 +725,7 @@ class xn extends O {
|
|
|
725
725
|
return this.completed(e), e;
|
|
726
726
|
}
|
|
727
727
|
}
|
|
728
|
-
class
|
|
728
|
+
class dt extends O {
|
|
729
729
|
static name = "Default";
|
|
730
730
|
container = new g.Group();
|
|
731
731
|
onAddFromParent() {
|
|
@@ -814,7 +814,7 @@ class rt extends O {
|
|
|
814
814
|
i.copy(e.pointerPosition), m();
|
|
815
815
|
}, f = () => {
|
|
816
816
|
document.removeEventListener("mousemove", y), document.removeEventListener("mouseup", f), d.removeFromParent();
|
|
817
|
-
const p = Math.min(r.x, i.x), h = Math.max(r.x, i.x), E = Math.min(r.y, i.y), x = Math.max(r.y, i.y), I = new
|
|
817
|
+
const p = Math.min(r.x, i.x), h = Math.max(r.x, i.x), E = Math.min(r.y, i.y), x = Math.max(r.y, i.y), I = new Xe(p, h, E, x), K = e.renderManager.quadtree.queryBox(I);
|
|
818
818
|
this.removeSelectLineAll(), K.forEach((Y) => this.addSelectLine(Y.line)), this.updateSelectLinesGeometry();
|
|
819
819
|
};
|
|
820
820
|
document.addEventListener("mousemove", y), document.addEventListener("mouseup", f);
|
|
@@ -862,7 +862,7 @@ class rt extends O {
|
|
|
862
862
|
this.canceEventRecord("clear"), this.removeSelectLineAll(), this.updateSelectLinesGeometry();
|
|
863
863
|
}
|
|
864
864
|
}
|
|
865
|
-
class
|
|
865
|
+
class En extends $e {
|
|
866
866
|
list = [];
|
|
867
867
|
rollbacklist = [];
|
|
868
868
|
revokeRollbacklist = [];
|
|
@@ -890,7 +890,7 @@ class Cn extends Xe {
|
|
|
890
890
|
return this.revokeRollbacklist.push(e), this;
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
class
|
|
893
|
+
class Ln extends $e {
|
|
894
894
|
commandFlowMap = /* @__PURE__ */ new Map();
|
|
895
895
|
lock = !1;
|
|
896
896
|
abortController = null;
|
|
@@ -917,7 +917,7 @@ class En extends Xe {
|
|
|
917
917
|
*/
|
|
918
918
|
addCommandFlow(e) {
|
|
919
919
|
if (this.commandFlowMap.has(e)) throw new Error(`${e} 命令已经存在`);
|
|
920
|
-
const t = new
|
|
920
|
+
const t = new En();
|
|
921
921
|
return this.commandFlowMap.set(e, t), t;
|
|
922
922
|
}
|
|
923
923
|
executionPromise = null;
|
|
@@ -1000,62 +1000,62 @@ class En extends Xe {
|
|
|
1000
1000
|
}, { once: !0 });
|
|
1001
1001
|
}
|
|
1002
1002
|
}
|
|
1003
|
-
const
|
|
1003
|
+
const Mn = "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", kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1004
1004
|
__proto__: null,
|
|
1005
|
-
default:
|
|
1006
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1005
|
+
default: Mn
|
|
1006
|
+
}, 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='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", Pn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1007
1007
|
__proto__: null,
|
|
1008
|
-
default:
|
|
1009
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1008
|
+
default: In
|
|
1009
|
+
}, Symbol.toStringTag, { value: "Module" })), Dn = "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='8193'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20fill='%23555'%20width='16'%20height='16'%3e%3cpath%20d='M426.666667%20255.872c0%2031.232-8.405333%2060.544-23.04%2085.76L512%20451.498667l287.061333-287.061334a85.333333%2085.333333%200%200%201%20120.661334%200l-516.693334%20516.693334a170.666667%20170.666667%200%201%201-60.330666-60.330667l108.970666-108.970667-108.970666-108.970666A170.666667%20170.666667%200%201%201%20426.666667%20255.872z%20m-85.333334%200a85.333333%2085.333333%200%201%200-170.666666%200%2085.333333%2085.333333%200%200%200%20170.666666%200z%20m578.389334%20603.392a85.333333%2085.333333%200%200%201-120.661334%200l-226.858666-226.858667%2060.373333-60.330666%20287.146667%20287.146666zM682.666667%20469.205333h85.333333v85.333334h-85.333333v-85.333334z%20m170.666666%200h85.333334v85.333334h-85.333334v-85.333334z%20m-597.333333%200h85.333333v85.333334H256v-85.333334z%20m-170.666667%200h85.333334v85.333334H85.333333v-85.333334z%20m170.666667%20384a85.333333%2085.333333%200%201%200%200-170.666666%2085.333333%2085.333333%200%200%200%200%20170.666666z'%3e%3c/path%3e%3c/svg%3e", An = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1010
1010
|
__proto__: null,
|
|
1011
|
-
default:
|
|
1012
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1011
|
+
default: Dn
|
|
1012
|
+
}, Symbol.toStringTag, { value: "Module" })), Sn = "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", _n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1013
1013
|
__proto__: null,
|
|
1014
|
-
default:
|
|
1015
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1014
|
+
default: Sn
|
|
1015
|
+
}, Symbol.toStringTag, { value: "Module" })), Nn = "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", Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1016
1016
|
__proto__: null,
|
|
1017
|
-
default:
|
|
1018
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1017
|
+
default: Nn
|
|
1018
|
+
}, Symbol.toStringTag, { value: "Module" })), Rn = "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", On = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1019
1019
|
__proto__: null,
|
|
1020
|
-
default:
|
|
1021
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1020
|
+
default: Rn
|
|
1021
|
+
}, Symbol.toStringTag, { value: "Module" })), zn = "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", Fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1022
1022
|
__proto__: null,
|
|
1023
|
-
default:
|
|
1024
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1023
|
+
default: zn
|
|
1024
|
+
}, 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", Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1025
1025
|
__proto__: null,
|
|
1026
|
-
default:
|
|
1027
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1028
|
-
__proto__: null,
|
|
1029
|
-
default: Tn
|
|
1030
|
-
}, Symbol.toStringTag, { value: "Module" })), jn = "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", Gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1026
|
+
default: Kn
|
|
1027
|
+
}, Symbol.toStringTag, { value: "Module" })), jn = "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", Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1031
1028
|
__proto__: null,
|
|
1032
1029
|
default: jn
|
|
1033
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1030
|
+
}, Symbol.toStringTag, { value: "Module" })), Gn = "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", Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1034
1031
|
__proto__: null,
|
|
1035
|
-
default:
|
|
1036
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1032
|
+
default: Gn
|
|
1033
|
+
}, Symbol.toStringTag, { value: "Module" })), Hn = "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", Wn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1037
1034
|
__proto__: null,
|
|
1038
|
-
default:
|
|
1039
|
-
}, Symbol.toStringTag, { value: "Module" })), Un = "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%
|
|
1035
|
+
default: Hn
|
|
1036
|
+
}, Symbol.toStringTag, { value: "Module" })), Un = "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", Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1040
1037
|
__proto__: null,
|
|
1041
1038
|
default: Un
|
|
1042
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1039
|
+
}, Symbol.toStringTag, { value: "Module" })), qn = "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", Zn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1040
|
+
__proto__: null,
|
|
1041
|
+
default: qn
|
|
1042
|
+
}, Symbol.toStringTag, { value: "Module" })), Yn = "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", Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1043
1043
|
__proto__: null,
|
|
1044
|
-
default:
|
|
1045
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1044
|
+
default: Yn
|
|
1045
|
+
}, Symbol.toStringTag, { value: "Module" })), $n = "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='1759051895215'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1800'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M272.5888%20886.784v70.8608H203.2128V886.784h69.376z%20m416.256-256.6144l270.6944%20152.5248-270.6944%20148.1216v-114.8928H64.4608v-70.8608h624.384v-114.8928z%20m-416.256-26.88v70.912H203.2128v-70.912h69.376z%20m0-141.7216V532.48H203.2128V461.568h69.376z%20m-34.7136-398.336L385.024%20319.7952H272.5888V390.656H203.2128V319.8464H90.7776l147.0976-256.6656z'%20fill='%23444444'%20p-id='1801'%3e%3c/path%3e%3cpath%20d='M566.272%2073.3184l173.2608%20264.192V512h71.8848V337.5104l173.2608-264.192H898.048l-122.2656%20197.2224-122.88-197.2224H566.272z'%20fill='%230077FF'%20p-id='1802'%3e%3c/path%3e%3c/svg%3e", es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1046
1046
|
__proto__: null,
|
|
1047
|
-
default:
|
|
1048
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1047
|
+
default: $n
|
|
1048
|
+
}, Symbol.toStringTag, { value: "Module" })), ts = "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", ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1049
1049
|
__proto__: null,
|
|
1050
|
-
default:
|
|
1051
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1052
|
-
class
|
|
1050
|
+
default: ts
|
|
1051
|
+
}, Symbol.toStringTag, { value: "Module" })), ss = "data:image/png;base64,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", os = new g.TextureLoader(), as = os.load(ss);
|
|
1052
|
+
class is extends Ae {
|
|
1053
1053
|
static name = "RenderManager";
|
|
1054
1054
|
container = new g.Group();
|
|
1055
1055
|
lines = [];
|
|
1056
1056
|
pointVirtualGrid = new ze();
|
|
1057
|
-
quadtree = new Fe(new
|
|
1058
|
-
verticalReferenceLineFlag = new g.Mesh(new g.PlaneGeometry(0.3, 0.3), new g.MeshBasicMaterial({ map:
|
|
1057
|
+
quadtree = new Fe(new Xe());
|
|
1058
|
+
verticalReferenceLineFlag = new g.Mesh(new g.PlaneGeometry(0.3, 0.3), new g.MeshBasicMaterial({ map: as, color: 58111, transparent: !0 }));
|
|
1059
1059
|
onAddFromParent() {
|
|
1060
1060
|
const e = this.dxfLineModel;
|
|
1061
1061
|
this.editor.container.add(this.container), this.editor.container.add(e.dxfModelGroup), e.dxfLineModel.material = new g.LineBasicMaterial({
|
|
@@ -1212,6 +1212,7 @@ class as extends Ae {
|
|
|
1212
1212
|
return this.lines.map((e) => {
|
|
1213
1213
|
const t = e.userData, n = t.drawWindow, s = this.quadtree.queryLineSegment(e).filter((o) => o.line !== e && !o.userData?.isDoor).map((o) => ({ index: this.lines.indexOf(o.line) }));
|
|
1214
1214
|
return {
|
|
1215
|
+
...Ke(t),
|
|
1215
1216
|
start: e.start.toJson(this.dxf.originalZAverage),
|
|
1216
1217
|
end: e.end.toJson(this.dxf.originalZAverage),
|
|
1217
1218
|
insetionArr: s,
|
|
@@ -1222,6 +1223,7 @@ class as extends Ae {
|
|
|
1222
1223
|
isVerticalReferenceLine: t.isVerticalReferenceLine,
|
|
1223
1224
|
wallWidth: e.userData.wallWidth,
|
|
1224
1225
|
drawWindow: n && n.map((o) => ({
|
|
1226
|
+
...Ke(o),
|
|
1225
1227
|
p: { x: o.p.x, y: o.p.y, z: o.p.z },
|
|
1226
1228
|
width: o.width,
|
|
1227
1229
|
full: o.full,
|
|
@@ -1241,7 +1243,7 @@ class as extends Ae {
|
|
|
1241
1243
|
}
|
|
1242
1244
|
this._timer && clearTimeout(this._timer), this._timer = setTimeout(() => {
|
|
1243
1245
|
this.updatedMode = "self";
|
|
1244
|
-
const e = this.dxf, t = this.toJson(), n = this.parent?.findComponentByType(
|
|
1246
|
+
const e = this.dxf, t = this.toJson(), n = this.parent?.findComponentByType(St);
|
|
1245
1247
|
n.skipFindDoor = !0, e.set(t).then(() => e.lineOffset());
|
|
1246
1248
|
}, 10);
|
|
1247
1249
|
}
|
|
@@ -1264,7 +1266,7 @@ class as extends Ae {
|
|
|
1264
1266
|
return this.parent?.findComponentByName("DxfLineModel");
|
|
1265
1267
|
}
|
|
1266
1268
|
}
|
|
1267
|
-
class
|
|
1269
|
+
class rs extends O {
|
|
1268
1270
|
static name = "DrawDoorLine";
|
|
1269
1271
|
container = new g.Group();
|
|
1270
1272
|
interruptKeys = ["escape"];
|
|
@@ -1368,7 +1370,7 @@ class is extends O {
|
|
|
1368
1370
|
return this.completed(e), e;
|
|
1369
1371
|
}
|
|
1370
1372
|
}
|
|
1371
|
-
class
|
|
1373
|
+
class ds extends O {
|
|
1372
1374
|
static name = "DrawWindow";
|
|
1373
1375
|
container = new g.Group();
|
|
1374
1376
|
interruptKeys = ["escape"];
|
|
@@ -1410,7 +1412,7 @@ class rs extends O {
|
|
|
1410
1412
|
*/
|
|
1411
1413
|
end(e, { start: t, end: n, line: s }) {
|
|
1412
1414
|
const o = new N(L.from(t), L.from(n)), a = o.center, l = o.length(), r = {
|
|
1413
|
-
p:
|
|
1415
|
+
p: { x: a.x, y: a.y, z: 0 },
|
|
1414
1416
|
width: l,
|
|
1415
1417
|
full: Math.abs(l - s.length()) < 0.01
|
|
1416
1418
|
};
|
|
@@ -1476,7 +1478,7 @@ class le extends O {
|
|
|
1476
1478
|
* @param id
|
|
1477
1479
|
* @returns
|
|
1478
1480
|
*/
|
|
1479
|
-
setLinePoint(e, t, n, s = "all", o = [], a =
|
|
1481
|
+
setLinePoint(e, t, n, s = "all", o = [], a = _t()) {
|
|
1480
1482
|
if (e.userData.setLinePointUUid === a) return [];
|
|
1481
1483
|
e.userData.setLinePointUUid = a;
|
|
1482
1484
|
let l = [], r = [];
|
|
@@ -1606,7 +1608,7 @@ class le extends O {
|
|
|
1606
1608
|
*/
|
|
1607
1609
|
axisAlignmentCorrection(e) {
|
|
1608
1610
|
const t = [...this.renderManager.lines];
|
|
1609
|
-
return { newLines:
|
|
1611
|
+
return { newLines: Nt.correction(t, e, { groupMethod: "cross", fittingMethod: "max", crossAxistThreshold: 0.08 }), oldLines: t };
|
|
1610
1612
|
}
|
|
1611
1613
|
/** 开始
|
|
1612
1614
|
* @param next
|
|
@@ -1626,7 +1628,7 @@ class le extends O {
|
|
|
1626
1628
|
const { line: o, newPoint: a, point: l } = s;
|
|
1627
1629
|
l.copy(a), this.renderManager.removeLine(o), this.renderManager.addLine(o), o.userData.isWindow && t.push(o);
|
|
1628
1630
|
});
|
|
1629
|
-
}),
|
|
1631
|
+
}), Te(...t);
|
|
1630
1632
|
} else
|
|
1631
1633
|
this.renderManager.removeLines(e.oldLines), this.renderManager.addLines(e.newLines);
|
|
1632
1634
|
this.renderManager.draw();
|
|
@@ -1644,7 +1646,7 @@ class le extends O {
|
|
|
1644
1646
|
i.copy(r), this.renderManager.removeLine(l), this.renderManager.addLine(l), l.userData.isWindow && t.push(l);
|
|
1645
1647
|
}
|
|
1646
1648
|
}
|
|
1647
|
-
|
|
1649
|
+
Te(...t);
|
|
1648
1650
|
} else
|
|
1649
1651
|
this.renderManager.removeLines(e.newLines), this.renderManager.addLines(e.oldLines);
|
|
1650
1652
|
return this.renderManager.draw(), e;
|
|
@@ -1988,7 +1990,7 @@ class ae extends O {
|
|
|
1988
1990
|
}));
|
|
1989
1991
|
}
|
|
1990
1992
|
}
|
|
1991
|
-
class
|
|
1993
|
+
class lt extends O {
|
|
1992
1994
|
static name = "ClippingLine";
|
|
1993
1995
|
container = new g.Group();
|
|
1994
1996
|
shortcutKeys = ["control", "x"];
|
|
@@ -2089,30 +2091,30 @@ class ie extends O {
|
|
|
2089
2091
|
}), t[0].userData.isVerticalReferenceLine = !0, e(), this.renderManager.draw();
|
|
2090
2092
|
}
|
|
2091
2093
|
}
|
|
2092
|
-
const
|
|
2094
|
+
const ls = {
|
|
2093
2095
|
key: 0,
|
|
2094
2096
|
class: "mt-[5px] text-[#ccc] text-[11px] absolute left-[10px] bottom-[10px] rounded-[8px] min-w-[150px] bg-black/15 p-[10px]"
|
|
2095
|
-
},
|
|
2097
|
+
}, cs = { class: "text-start max-w-[150px]" }, ms = { class: "inline-block ml-[10px] text-[var(--color-primary)]" }, hs = {
|
|
2096
2098
|
key: 0,
|
|
2097
2099
|
class: "p-[5px] max-w-[200px]"
|
|
2098
|
-
},
|
|
2100
|
+
}, us = { class: "text-[14px] flex flex-col" }, ps = ["onClick"], gs = { class: "flex flex-row items-center" }, vs = { class: "flex justify-center items-center size-[20px] bg-[#f0f0f0] rounded-[2px] mr-[10px]" }, fs = ["src"], ys = { class: "text-wrap" }, ws = {
|
|
2099
2101
|
key: 1,
|
|
2100
2102
|
class: "text-[#999]"
|
|
2101
|
-
},
|
|
2103
|
+
}, bs = {
|
|
2102
2104
|
style: { "--el-color-primary": "var(--primary-color)" },
|
|
2103
2105
|
class: "flex flex-row items-center justify-between gap-[5px] mt-[10px] text-[10px]"
|
|
2104
|
-
},
|
|
2106
|
+
}, xs = {
|
|
2105
2107
|
key: 0,
|
|
2106
2108
|
class: "flex flex-row items-center flex-wrap justify-between gap-[10px] mt-[10px] text-[10px]"
|
|
2107
|
-
},
|
|
2109
|
+
}, Cs = { class: "flex-wrap border-t-1 border-t-[#eee] mt-[5px] pt-[5px] flex items-center gap-[10px]" }, Es = ["onClick", "title"], Ls = ["src"], Ms = /* @__PURE__ */ me({
|
|
2108
2110
|
__name: "EditorTool",
|
|
2109
2111
|
props: {
|
|
2110
2112
|
dxfSystem: {},
|
|
2111
2113
|
permission: {}
|
|
2112
2114
|
},
|
|
2113
2115
|
setup(c) {
|
|
2114
|
-
function e(C, u, w = m.value.getBoundingClientRect(),
|
|
2115
|
-
const ue = w.width -
|
|
2116
|
+
function e(C, u, w = m.value.getBoundingClientRect(), J = y.value.getBoundingClientRect()) {
|
|
2117
|
+
const ue = w.width - J.width, pe = 0, Le = w.height - J.height;
|
|
2116
2118
|
C = Math.max(0, Math.min(C, ue)), u = Math.max(pe, Math.min(u, Le)), S.value = { left: C, top: u };
|
|
2117
2119
|
}
|
|
2118
2120
|
function t(C) {
|
|
@@ -2129,14 +2131,14 @@ const ds = {
|
|
|
2129
2131
|
}
|
|
2130
2132
|
}
|
|
2131
2133
|
async function s() {
|
|
2132
|
-
const C = await
|
|
2134
|
+
const C = await At.json();
|
|
2133
2135
|
Array.isArray(C) && (localStorage.removeItem("orbitControls"), n(C));
|
|
2134
2136
|
}
|
|
2135
2137
|
function o({ offsetX: C, offsetY: u }) {
|
|
2136
2138
|
E.mouseMoveEventProxylock = !0;
|
|
2137
2139
|
const w = document.body.style.cursor;
|
|
2138
2140
|
document.body.style.cursor = "move";
|
|
2139
|
-
const
|
|
2141
|
+
const J = (ue) => {
|
|
2140
2142
|
const pe = m.value.getBoundingClientRect(), Le = y.value.getBoundingClientRect();
|
|
2141
2143
|
e(
|
|
2142
2144
|
ue.pageX - pe.left - C,
|
|
@@ -2145,11 +2147,11 @@ const ds = {
|
|
|
2145
2147
|
Le
|
|
2146
2148
|
), ue.stopPropagation(), document.body.style.cursor = "move";
|
|
2147
2149
|
}, Ee = () => {
|
|
2148
|
-
document.body.removeEventListener("mousemove",
|
|
2150
|
+
document.body.removeEventListener("mousemove", J), document.removeEventListener("mouseup", Ee), document.body.style.cursor = w, E.mouseMoveEventProxylock = !1;
|
|
2149
2151
|
};
|
|
2150
|
-
document.body.addEventListener("mousemove",
|
|
2152
|
+
document.body.addEventListener("mousemove", J), document.addEventListener("mouseup", Ee);
|
|
2151
2153
|
}
|
|
2152
|
-
const a = c, l = _(!0), r = _(!0), i = _(!0), d = _(!1), m = _(), y = _(), f = _(!0), p = _(""), h =
|
|
2154
|
+
const a = c, l = _(!0), r = _(!0), i = _(!0), d = _(!1), m = _(), y = _(), f = _(!0), p = _(""), h = Kt(a.dxfSystem), E = h.findComponentByType(Dt), x = h.findComponentByType(ct), I = h.findComponentByType(dt), K = h.findComponentByType(Bt), Y = h.findComponentByType(Rt), Z = _(0), G = _(0), S = _({ left: 10, top: 100 }), M = /* @__PURE__ */ Object.assign({ "./assets/images/angle.svg": kn, "./assets/images/connection.svg": Pn, "./assets/images/cutLine.svg": An, "./assets/images/deleteSelectLine.svg": _n, "./assets/images/deleteSelectWindow.svg": Bn, "./assets/images/door.svg": On, "./assets/images/intersectionConnection.svg": Fn, "./assets/images/line.svg": Tn, "./assets/images/mergeLine.svg": Vn, "./assets/images/revokeRollback.svg": Qn, "./assets/images/rollback.svg": Wn, "./assets/images/selectAll.svg": Jn, "./assets/images/selectPoint.svg": Zn, "./assets/images/verticalCorrection.svg": Xn, "./assets/images/verticalLine.svg": es, "./assets/images/window.svg": ns }), b = _(!1), z = _(0), W = _(!1), he = new ResizeObserver(() => e(S.value.left, S.value.top)), Ce = [
|
|
2153
2155
|
{ name: "开启绘制线段命令", shortcut: "Ctrl + L" },
|
|
2154
2156
|
{ name: "开启绘制门线命令", shortcut: "Ctrl + M" },
|
|
2155
2157
|
{ name: "开启绘制窗户线命令", shortcut: "Ctrl + Q" },
|
|
@@ -2169,7 +2171,7 @@ const ds = {
|
|
|
2169
2171
|
{ name: "取消命令", shortcut: "Esc" },
|
|
2170
2172
|
{ name: "回滚操作", shortcut: "Ctrl + Z" },
|
|
2171
2173
|
{ name: "取消回滚操作", shortcut: "Ctrl + Y" }
|
|
2172
|
-
],
|
|
2174
|
+
], mt = [
|
|
2173
2175
|
{
|
|
2174
2176
|
command: "default",
|
|
2175
2177
|
name: "默认",
|
|
@@ -2205,13 +2207,13 @@ const ds = {
|
|
|
2205
2207
|
shortcut: "Ctrl + P"
|
|
2206
2208
|
},
|
|
2207
2209
|
{
|
|
2208
|
-
command:
|
|
2210
|
+
command: lt.commandName,
|
|
2209
2211
|
name: "裁剪线段",
|
|
2210
2212
|
show: !0,
|
|
2211
2213
|
src: M["./assets/images/cutLine.svg"].default,
|
|
2212
2214
|
shortcut: "Ctrl + X"
|
|
2213
2215
|
}
|
|
2214
|
-
],
|
|
2216
|
+
], ht = [
|
|
2215
2217
|
{
|
|
2216
2218
|
command: "",
|
|
2217
2219
|
name: "操作回滚",
|
|
@@ -2302,15 +2304,15 @@ const ds = {
|
|
|
2302
2304
|
shortcut: "Delete"
|
|
2303
2305
|
}
|
|
2304
2306
|
];
|
|
2305
|
-
|
|
2307
|
+
U(S, () => localStorage.setItem("editorToolPosition", JSON.stringify(S.value))), U(b, () => localStorage.setItem("showShortcutKey", b.value + "")), U(f, () => {
|
|
2306
2308
|
localStorage.setItem("toolBarExpand", f.value + ""), f.value && we(() => e(S.value.left, S.value.top));
|
|
2307
|
-
}),
|
|
2309
|
+
}), U(l, () => h.Variable.set("originalLineVisible", l.value)), U(r, () => {
|
|
2308
2310
|
localStorage.setItem("dxfVisible", r.value + ""), h.Variable.set("dxfVisible", r.value);
|
|
2309
|
-
}),
|
|
2310
|
-
const
|
|
2311
|
+
}), U(i, () => h.Variable.set("whiteModelVisible", i.value)), h.Variable.addEventListener("isLook", (C) => d.value = C.value), h.Variable.addEventListener("originalLineVisible", (C) => l.value = C.value), h.Variable.addEventListener("dxfVisible", (C) => r.value = C.value), h.Variable.addEventListener("whiteModelVisible", (C) => i.value = C.value);
|
|
2312
|
+
const ut = x.commandManager.addEventListener("started", (C) => {
|
|
2311
2313
|
p.value = C.name;
|
|
2312
2314
|
});
|
|
2313
|
-
return localStorage.getItem("showShortcutKey") && (b.value = localStorage.getItem("showShortcutKey") === "true"), localStorage.getItem("toolBarExpand") && (f.value = localStorage.getItem("toolBarExpand") === "true"),
|
|
2315
|
+
return localStorage.getItem("showShortcutKey") && (b.value = localStorage.getItem("showShortcutKey") === "true"), localStorage.getItem("toolBarExpand") && (f.value = localStorage.getItem("toolBarExpand") === "true"), nt(() => {
|
|
2314
2316
|
y.value.style.display = "none", setTimeout(() => {
|
|
2315
2317
|
if (y.value.style.display = "block", localStorage.getItem("editorToolPosition")) {
|
|
2316
2318
|
const { left: C, top: u } = JSON.parse(localStorage.getItem("editorToolPosition") ?? "{}");
|
|
@@ -2326,22 +2328,22 @@ const ds = {
|
|
|
2326
2328
|
});
|
|
2327
2329
|
});
|
|
2328
2330
|
}), localStorage.getItem("dxfVisible") && (r.value = localStorage.getItem("dxfVisible") == "true");
|
|
2329
|
-
}),
|
|
2330
|
-
E.mouseMoveEventProxylock = !1,
|
|
2331
|
+
}), Tt(() => {
|
|
2332
|
+
E.mouseMoveEventProxylock = !1, ut(), he.disconnect();
|
|
2331
2333
|
}), (C, u) => (D(), R("div", {
|
|
2332
2334
|
ref_key: "elRef",
|
|
2333
2335
|
ref: m,
|
|
2334
2336
|
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]"
|
|
2335
2337
|
}, [
|
|
2336
2338
|
F(xe, null, {
|
|
2337
|
-
default:
|
|
2338
|
-
b.value ? (D(), R("div",
|
|
2339
|
+
default: j(() => [
|
|
2340
|
+
b.value ? (D(), R("div", ls, [
|
|
2339
2341
|
(D(), R(ve, null, ke(Ce, (w) => P("div", {
|
|
2340
2342
|
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",
|
|
2341
2343
|
key: w.name
|
|
2342
2344
|
}, [
|
|
2343
|
-
P("p",
|
|
2344
|
-
P("span",
|
|
2345
|
+
P("p", cs, de(w.name), 1),
|
|
2346
|
+
P("span", ms, de(w.shortcut), 1)
|
|
2345
2347
|
])), 64))
|
|
2346
2348
|
])) : q("", !0)
|
|
2347
2349
|
]),
|
|
@@ -2351,14 +2353,14 @@ const ds = {
|
|
|
2351
2353
|
ref_key: "toolBarRef",
|
|
2352
2354
|
ref: y,
|
|
2353
2355
|
style: Se({ left: S.value.left + "px", top: S.value.top + "px" }),
|
|
2354
|
-
class:
|
|
2356
|
+
class: V(["overflow-hidden pointer-events-auto w-fit max-w-[260px] transition-[border-radius] text-[#333] absolute z-[11] bg-white select-none", { "rounded-[8px] ": f.value }]),
|
|
2355
2357
|
onMousedown: u[10] || (u[10] = (w) => w.stopPropagation())
|
|
2356
2358
|
}, [
|
|
2357
2359
|
P("div", {
|
|
2358
2360
|
onMousedown: o,
|
|
2359
|
-
class:
|
|
2361
|
+
class: V([{ "border-b-[#eee] border-b-1": f.value }, "flex flex-row justify-between header text-[14px] font-bold p-[10px 0px]"])
|
|
2360
2362
|
}, [
|
|
2361
|
-
u[12] || (u[12] =
|
|
2363
|
+
u[12] || (u[12] = jt('<div class="flex flex-row" data-v-7af257ba><div class="p-[2px_5px] flex items-center pointer-events-none" data-v-7af257ba><svg fill="#aaa" width="20" height="20" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" data-v-7af257ba><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-7af257ba></path></svg></div><h5 class="flex text-nowrap text-[12px] items-center pointer-events-none" data-v-7af257ba>绘制工具</h5></div>', 1)),
|
|
2362
2364
|
P("div", {
|
|
2363
2365
|
onMousedown: u[0] || (u[0] = (w) => w.stopPropagation()),
|
|
2364
2366
|
onClick: u[1] || (u[1] = (w) => f.value = !f.value),
|
|
@@ -2366,7 +2368,7 @@ const ds = {
|
|
|
2366
2368
|
}, [
|
|
2367
2369
|
(D(), R("svg", {
|
|
2368
2370
|
fill: "#666",
|
|
2369
|
-
class:
|
|
2371
|
+
class: V([{ "rotate-90": f.value }, "transition-all"]),
|
|
2370
2372
|
viewBox: "0 0 1024 1024",
|
|
2371
2373
|
version: "1.1",
|
|
2372
2374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2377,35 +2379,35 @@ const ds = {
|
|
|
2377
2379
|
]), 2))
|
|
2378
2380
|
], 32)
|
|
2379
2381
|
], 34),
|
|
2380
|
-
f.value ? (D(), R("div",
|
|
2381
|
-
P("ul",
|
|
2382
|
-
(D(), R(ve, null, ke(
|
|
2382
|
+
f.value ? (D(), R("div", hs, [
|
|
2383
|
+
P("ul", us, [
|
|
2384
|
+
(D(), R(ve, null, ke(mt, (w) => (D(), R(ve, {
|
|
2383
2385
|
key: w.command
|
|
2384
2386
|
}, [
|
|
2385
2387
|
w.show ? (D(), R("li", {
|
|
2386
2388
|
key: 0,
|
|
2387
|
-
onClick: (
|
|
2388
|
-
class:
|
|
2389
|
+
onClick: (J) => t(w),
|
|
2390
|
+
class: V([{
|
|
2389
2391
|
"!bg-[var(--primary-color)] text-[#fff]": p.value === w.command
|
|
2390
2392
|
// '!cursor-no-drop': currentCommand !== item.command && currentCommand !== 'default',
|
|
2391
2393
|
}, "gap-[10px] text-[12px] hover:bg-[#ddd] transition-all rounded-[6px] p-[5px] flex flex-row items-center justify-between cursor-pointer"])
|
|
2392
2394
|
}, [
|
|
2393
|
-
P("div",
|
|
2394
|
-
P("div",
|
|
2395
|
+
P("div", gs, [
|
|
2396
|
+
P("div", vs, [
|
|
2395
2397
|
P("img", {
|
|
2396
2398
|
class: "size-[14px]",
|
|
2397
2399
|
src: w.src,
|
|
2398
2400
|
alt: "",
|
|
2399
2401
|
srcset: ""
|
|
2400
|
-
}, null, 8,
|
|
2402
|
+
}, null, 8, fs)
|
|
2401
2403
|
]),
|
|
2402
|
-
P("span",
|
|
2404
|
+
P("span", ys, de(w.name), 1)
|
|
2403
2405
|
]),
|
|
2404
2406
|
p.value === w.command ? (D(), R("div", {
|
|
2405
2407
|
key: 0,
|
|
2406
2408
|
title: "取消命令(Esc)",
|
|
2407
|
-
class: "active:scale-[0.7] transition-all",
|
|
2408
|
-
onClick: u[2] || (u[2] = (
|
|
2409
|
+
class: "active:scale-[0.7] transition-all flex items-center justify-center",
|
|
2410
|
+
onClick: u[2] || (u[2] = (J) => (v(x).cancelCommand(), J.stopPropagation()))
|
|
2409
2411
|
}, u[13] || (u[13] = [
|
|
2410
2412
|
P("svg", {
|
|
2411
2413
|
fill: "#fff",
|
|
@@ -2418,11 +2420,11 @@ const ds = {
|
|
|
2418
2420
|
P("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" }),
|
|
2419
2421
|
P("path", { d: "M236.437333 463.914667l549.333333 0 0 96.874667-549.333333 0 0-96.874667Z" })
|
|
2420
2422
|
], -1)
|
|
2421
|
-
]))) : w.shortcut ? (D(), R("div",
|
|
2422
|
-
], 10,
|
|
2423
|
+
]))) : w.shortcut ? (D(), R("div", ws, de(w.shortcut), 1)) : q("", !0)
|
|
2424
|
+
], 10, ps)) : q("", !0)
|
|
2423
2425
|
], 64))), 64))
|
|
2424
2426
|
]),
|
|
2425
|
-
P("div",
|
|
2427
|
+
P("div", bs, [
|
|
2426
2428
|
F(v(Oe), {
|
|
2427
2429
|
size: "small",
|
|
2428
2430
|
modelValue: b.value,
|
|
@@ -2436,14 +2438,14 @@ const ds = {
|
|
|
2436
2438
|
label: "dxf"
|
|
2437
2439
|
}, null, 8, ["modelValue"])
|
|
2438
2440
|
]),
|
|
2439
|
-
C.permission === "admin" ? (D(), R("div",
|
|
2441
|
+
C.permission === "admin" ? (D(), R("div", xs, [
|
|
2440
2442
|
F(v(re), {
|
|
2441
2443
|
style: { padding: "5px", "font-size": "10px" },
|
|
2442
2444
|
size: "small",
|
|
2443
2445
|
type: "success",
|
|
2444
2446
|
onClick: s
|
|
2445
2447
|
}, {
|
|
2446
|
-
default:
|
|
2448
|
+
default: j(() => u[14] || (u[14] = [
|
|
2447
2449
|
X(" 选择文件 ", -1)
|
|
2448
2450
|
])),
|
|
2449
2451
|
_: 1,
|
|
@@ -2455,7 +2457,7 @@ const ds = {
|
|
|
2455
2457
|
type: "primary",
|
|
2456
2458
|
onClick: u[5] || (u[5] = (w) => v(h).Dxf.downloadOriginalData("json.json"))
|
|
2457
2459
|
}, {
|
|
2458
|
-
default:
|
|
2460
|
+
default: j(() => u[15] || (u[15] = [
|
|
2459
2461
|
X(" 下载Json ", -1)
|
|
2460
2462
|
])),
|
|
2461
2463
|
_: 1,
|
|
@@ -2467,7 +2469,7 @@ const ds = {
|
|
|
2467
2469
|
type: "primary",
|
|
2468
2470
|
onClick: u[6] || (u[6] = (w) => v(h).AngleCorrectionDxf.download("test.dxf"))
|
|
2469
2471
|
}, {
|
|
2470
|
-
default:
|
|
2472
|
+
default: j(() => u[16] || (u[16] = [
|
|
2471
2473
|
X(" 下载DXF ", -1)
|
|
2472
2474
|
])),
|
|
2473
2475
|
_: 1,
|
|
@@ -2479,7 +2481,7 @@ const ds = {
|
|
|
2479
2481
|
type: "primary",
|
|
2480
2482
|
onClick: u[7] || (u[7] = (w) => v(h).AngleCorrectionDxf.downloadImage("dxf.jpg"))
|
|
2481
2483
|
}, {
|
|
2482
|
-
default:
|
|
2484
|
+
default: j(() => u[17] || (u[17] = [
|
|
2483
2485
|
X(" 下载JPG ", -1)
|
|
2484
2486
|
])),
|
|
2485
2487
|
_: 1,
|
|
@@ -2491,7 +2493,7 @@ const ds = {
|
|
|
2491
2493
|
type: "primary",
|
|
2492
2494
|
onClick: u[8] || (u[8] = (w) => v(K).downloadGltf("test.glb", !0))
|
|
2493
2495
|
}, {
|
|
2494
|
-
default:
|
|
2496
|
+
default: j(() => u[18] || (u[18] = [
|
|
2495
2497
|
X(" 下载白膜 ", -1)
|
|
2496
2498
|
])),
|
|
2497
2499
|
_: 1,
|
|
@@ -2503,7 +2505,7 @@ const ds = {
|
|
|
2503
2505
|
type: "primary",
|
|
2504
2506
|
onClick: u[9] || (u[9] = (w) => v(Y).download())
|
|
2505
2507
|
}, {
|
|
2506
|
-
default:
|
|
2508
|
+
default: j(() => u[19] || (u[19] = [
|
|
2507
2509
|
X(" 下载三维家JSON ", -1)
|
|
2508
2510
|
])),
|
|
2509
2511
|
_: 1,
|
|
@@ -2511,14 +2513,14 @@ const ds = {
|
|
|
2511
2513
|
})
|
|
2512
2514
|
])) : q("", !0),
|
|
2513
2515
|
F(xe, null, {
|
|
2514
|
-
default:
|
|
2515
|
-
P("div",
|
|
2516
|
+
default: j(() => [
|
|
2517
|
+
P("div", Cs, [
|
|
2516
2518
|
F(Vt, null, {
|
|
2517
|
-
default:
|
|
2518
|
-
(D(), R(ve, null, ke(
|
|
2519
|
-
onClick: (
|
|
2519
|
+
default: j(() => [
|
|
2520
|
+
(D(), R(ve, null, ke(ht, (w) => P("div", {
|
|
2521
|
+
onClick: (J) => w.show.value && p.value === "default" && (w.action ? w.action() : v(x).commandManager.start(w.command, [...v(I).selectLines])),
|
|
2520
2522
|
title: `${w.name}(${w.shortcut})`,
|
|
2521
|
-
class:
|
|
2523
|
+
class: V(["size-[20px] flex justify-center items-center relative overflow-hidden active:scale-[0.8] border-1 border-[#ccc] rounded-[4px] transition-all cursor-pointer", {
|
|
2522
2524
|
"opacity-30 bg-[#ccc] !cursor-no-drop active:!scale-[1]": !w.show.value || p.value !== "default",
|
|
2523
2525
|
[w.class ?? ""]: !0
|
|
2524
2526
|
}]),
|
|
@@ -2527,8 +2529,8 @@ const ds = {
|
|
|
2527
2529
|
P("img", {
|
|
2528
2530
|
class: "size-[14px]",
|
|
2529
2531
|
src: w.src
|
|
2530
|
-
}, null, 8,
|
|
2531
|
-
], 10,
|
|
2532
|
+
}, null, 8, Ls)
|
|
2533
|
+
], 10, Es)), 64))
|
|
2532
2534
|
]),
|
|
2533
2535
|
_: 1
|
|
2534
2536
|
})
|
|
@@ -2540,13 +2542,13 @@ const ds = {
|
|
|
2540
2542
|
], 38)
|
|
2541
2543
|
], 512));
|
|
2542
2544
|
}
|
|
2543
|
-
}),
|
|
2545
|
+
}), ks = (c, e) => {
|
|
2544
2546
|
const t = c.__vccOpts || c;
|
|
2545
2547
|
for (const [n, s] of e)
|
|
2546
2548
|
t[n] = s;
|
|
2547
2549
|
return t;
|
|
2548
|
-
},
|
|
2549
|
-
let
|
|
2550
|
+
}, Is = /* @__PURE__ */ ks(Ms, [["__scopeId", "data-v-7af257ba"]]);
|
|
2551
|
+
let ct = class extends Ae {
|
|
2550
2552
|
static name = "Editor";
|
|
2551
2553
|
container = new g.Group();
|
|
2552
2554
|
get renderer() {
|
|
@@ -2570,7 +2572,7 @@ let lt = class extends Ae {
|
|
|
2570
2572
|
get domContainer() {
|
|
2571
2573
|
return this.parent?.findComponentByName("DomContainer");
|
|
2572
2574
|
}
|
|
2573
|
-
commandManager = new
|
|
2575
|
+
commandManager = new Ln();
|
|
2574
2576
|
plane = new g.Mesh(new g.PlaneGeometry(2e3, 2e3, 2, 2));
|
|
2575
2577
|
app;
|
|
2576
2578
|
domElement = document.createElement("div");
|
|
@@ -2600,7 +2602,7 @@ let lt = class extends Ae {
|
|
|
2600
2602
|
this.domContainer.domElement.parentElement && (this.domContainer.domElement.parentElement.appendChild(this.domElement), this.domContainer.domElement.parentElement.appendChild(this.imgEl), n());
|
|
2601
2603
|
});
|
|
2602
2604
|
setTimeout(() => {
|
|
2603
|
-
this.app =
|
|
2605
|
+
this.app = Gt(Is, { dxfSystem: this.parent, permission: this.viewPermission }), this.app.mount(this.domElement);
|
|
2604
2606
|
}), e.AngleCorrectionDxf.addEventListener("lineOffset", async () => {
|
|
2605
2607
|
this.imgEl.src && URL.revokeObjectURL(this.imgEl.src), setTimeout(async () => {
|
|
2606
2608
|
this.imgEl.src = URL.createObjectURL(await e.AngleCorrectionDxf.toDxfImageBlob("Centimeters", "image/png", "transparent"));
|
|
@@ -2662,7 +2664,7 @@ let lt = class extends Ae {
|
|
|
2662
2664
|
this.commandManager.destroy(), super.destroy(), this.exitEdit(), this.renderer.scene.remove(this.container), this.domElement.remove(), this.app?.unmount();
|
|
2663
2665
|
}
|
|
2664
2666
|
};
|
|
2665
|
-
class
|
|
2667
|
+
class Ps extends O {
|
|
2666
2668
|
static name = "PointDrag";
|
|
2667
2669
|
container = new g.Group();
|
|
2668
2670
|
interruptKeys = ["escape"];
|
|
@@ -2731,14 +2733,14 @@ class Is extends O {
|
|
|
2731
2733
|
}
|
|
2732
2734
|
}
|
|
2733
2735
|
function Je(c, e = {}) {
|
|
2734
|
-
c.addComponent(new
|
|
2736
|
+
c.addComponent(new ct(e.viewPermission)), c.addComponent(new is()), c.addComponent(new dt()), c.addComponent(new Cn()), c.addComponent(new rs()), c.addComponent(new ds()), c.addComponent(new Ps()), c.addComponent(new ee()), c.addComponent(new $()), c.addComponent(new le()), c.addComponent(new te()), c.addComponent(new ne()), c.addComponent(new se()), c.addComponent(new oe()), c.addComponent(new ae()), c.addComponent(new ie()), c.addComponent(new lt());
|
|
2735
2737
|
}
|
|
2736
|
-
const
|
|
2738
|
+
const Os = Object.assign(Je, {
|
|
2737
2739
|
create(c = {}) {
|
|
2738
2740
|
return (e) => Je(e, c);
|
|
2739
2741
|
}
|
|
2740
2742
|
});
|
|
2741
2743
|
export {
|
|
2742
|
-
|
|
2744
|
+
Os as Editor,
|
|
2743
2745
|
Je as Editor_
|
|
2744
2746
|
};
|