@mlightcad/cad-viewer 1.0.15 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { AcEdCommandStack as
|
|
2
|
+
import { AcEdCommandStack as q, AcApDocManager as B, eventBus as j, AcApSettingManager as Y, AcApConvertToSvgCmd as Ie, AcApQNewCmd as Fe, AcApOpenCmd as Pe, registerConverters as Re, AcEdCommand as re } from "@mlightcad/cad-simple-viewer";
|
|
3
3
|
import "element-plus/dist/index.css";
|
|
4
|
-
import { reactive as
|
|
5
|
-
import { AcDbDatabaseConverterManager as
|
|
6
|
-
import { useDark as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { useI18n as R, createI18n as
|
|
10
|
-
import { ElDialog as
|
|
11
|
-
import { ElIcon as se, ElDropdown as
|
|
4
|
+
import { reactive as W, computed as k, defineComponent as L, onMounted as O, resolveComponent as M, createBlock as C, openBlock as u, unref as m, withCtx as p, renderSlot as ie, createVNode as v, createTextVNode as I, toDisplayString as D, createElementVNode as d, ref as b, onUnmounted as ee, watch as E, createElementBlock as w, Fragment as K, renderList as X, resolveDynamicComponent as ve, mergeProps as Ne, mergeModels as Z, useCssVars as Ce, useModel as ge, createCommentVNode as U, normalizeStyle as pe, normalizeClass as Le, pushScopeId as ze, popScopeId as De, onBeforeUnmount as Be, withKeys as Oe, isRef as He, markRaw as he } from "vue";
|
|
5
|
+
import { AcDbDatabaseConverterManager as Ge, acdbHostApplicationServices as Te, AcCmPerformanceCollector as qe } from "@mlightcad/data-model";
|
|
6
|
+
import { useDark as We, useToggle as Ue, useFullscreen as je } from "@vueuse/core";
|
|
7
|
+
import Ye from "element-plus/es/locale/lang/en";
|
|
8
|
+
import Ke from "element-plus/es/locale/lang/zh-cn";
|
|
9
|
+
import { useI18n as R, createI18n as Xe } from "vue-i18n";
|
|
10
|
+
import { ElDialog as Qe, ElButton as _e, ElTable as Ze, ElAutocomplete as Je, ElProgress as et, ElLoading as we, ElMessage as te } from "element-plus";
|
|
11
|
+
import { ElIcon as se, ElDropdown as tt, ElDropdownMenu as nt, ElDropdownItem as ot, ElButtonGroup as lt, ElTooltip as at, ElButton as it } from "element-plus/es";
|
|
12
12
|
import "element-plus/es/components/base/style/css";
|
|
13
13
|
import "element-plus/es/components/icon/style/css";
|
|
14
14
|
import "element-plus/es/components/dropdown/style/css";
|
|
@@ -17,26 +17,26 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
17
17
|
import "element-plus/es/components/tooltip/style/css";
|
|
18
18
|
import "element-plus/es/components/button/style/css";
|
|
19
19
|
import "element-plus/es/components/button-group/style/css";
|
|
20
|
-
const ne =
|
|
21
|
-
function
|
|
20
|
+
const ne = W([]);
|
|
21
|
+
function rt(t) {
|
|
22
22
|
ne.find((n) => n.name === t.name) || ne.push({ ...t, visible: !1 });
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function st(t, e) {
|
|
25
25
|
const n = ne.find((i) => i.name === t);
|
|
26
26
|
n && (n.visible = e);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function ct(t) {
|
|
29
29
|
return ne.find((e) => e.name === t);
|
|
30
30
|
}
|
|
31
31
|
function oe() {
|
|
32
32
|
return {
|
|
33
33
|
dialogs: k(() => ne),
|
|
34
|
-
registerDialog:
|
|
35
|
-
toggleDialog:
|
|
36
|
-
getDialogByName:
|
|
34
|
+
registerDialog: rt,
|
|
35
|
+
toggleDialog: st,
|
|
36
|
+
getDialogByName: ct
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const ut = /* @__PURE__ */ L({
|
|
40
40
|
__name: "MlBaseDialog",
|
|
41
41
|
props: {
|
|
42
42
|
title: {
|
|
@@ -66,18 +66,18 @@ const dt = /* @__PURE__ */ L({
|
|
|
66
66
|
function a() {
|
|
67
67
|
l("ok"), l("update:modelValue", !1);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function r() {
|
|
70
70
|
l("cancel"), l("update:modelValue", !1);
|
|
71
71
|
}
|
|
72
|
-
return
|
|
72
|
+
return O(() => {
|
|
73
73
|
o({
|
|
74
74
|
name: i.name,
|
|
75
75
|
component: "BaseDialog",
|
|
76
76
|
props: i.props
|
|
77
77
|
});
|
|
78
|
-
}), (
|
|
78
|
+
}), (s, c) => {
|
|
79
79
|
const f = M("el-divider");
|
|
80
|
-
return u(), C(m(
|
|
80
|
+
return u(), C(m(Qe), {
|
|
81
81
|
"model-value": t.modelValue,
|
|
82
82
|
width: t.width,
|
|
83
83
|
close: "handleCancel",
|
|
@@ -89,13 +89,13 @@ const dt = /* @__PURE__ */ L({
|
|
|
89
89
|
]),
|
|
90
90
|
footer: p(() => [
|
|
91
91
|
v(f, { class: "ml-dialog-footer-top-line" }),
|
|
92
|
-
v(m(
|
|
92
|
+
v(m(_e), { onClick: r }, {
|
|
93
93
|
default: p(() => [
|
|
94
94
|
I(D(m(n)("dialog.baseDialog.cancel")), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
v(m(
|
|
98
|
+
v(m(_e), {
|
|
99
99
|
type: "primary",
|
|
100
100
|
onClick: a
|
|
101
101
|
}, {
|
|
@@ -106,7 +106,7 @@ const dt = /* @__PURE__ */ L({
|
|
|
106
106
|
})
|
|
107
107
|
]),
|
|
108
108
|
default: p(() => [
|
|
109
|
-
ie(
|
|
109
|
+
ie(s.$slots, "default", {}, void 0, !0)
|
|
110
110
|
]),
|
|
111
111
|
_: 3
|
|
112
112
|
}, 8, ["model-value", "width"]);
|
|
@@ -117,9 +117,9 @@ const dt = /* @__PURE__ */ L({
|
|
|
117
117
|
for (const [i, l] of e)
|
|
118
118
|
n[i] = l;
|
|
119
119
|
return n;
|
|
120
|
-
},
|
|
121
|
-
function
|
|
122
|
-
const t =
|
|
120
|
+
}, Ee = /* @__PURE__ */ H(ut, [["__scopeId", "data-v-8df470d5"]]);
|
|
121
|
+
function dt() {
|
|
122
|
+
const t = W([]), e = q.instance.iterator();
|
|
123
123
|
for (const n of e)
|
|
124
124
|
t.push({
|
|
125
125
|
commandName: n.command.localName,
|
|
@@ -129,31 +129,38 @@ function mt() {
|
|
|
129
129
|
(n, i) => n.commandName.toLowerCase().localeCompare(i.commandName.toLowerCase())
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
132
|
+
function ye(t, e = "en-US") {
|
|
133
|
+
const n = Math.abs(t);
|
|
134
|
+
if (n !== 0 && (n < 1e-3 || n >= 1e6)) {
|
|
135
|
+
const [i, l] = t.toExponential(3).split("e");
|
|
136
|
+
return `${new Intl.NumberFormat(e, {
|
|
137
|
+
maximumFractionDigits: 3
|
|
138
|
+
}).format(Number(i))}e${l}`;
|
|
139
|
+
} else
|
|
140
|
+
return new Intl.NumberFormat(e, {
|
|
141
|
+
maximumFractionDigits: 6
|
|
142
|
+
}).format(t);
|
|
143
|
+
}
|
|
144
|
+
function mt(t) {
|
|
145
|
+
const e = b(0), n = b(0);
|
|
139
146
|
function i(o) {
|
|
140
147
|
e.value = o.x, n.value = o.y;
|
|
141
148
|
}
|
|
142
|
-
|
|
143
|
-
const l = k(() => `${ye
|
|
149
|
+
O(() => t.events.mouseMove.addEventListener(i)), ee(() => t.events.mouseMove.removeEventListener(i));
|
|
150
|
+
const l = k(() => `${ye(e.value)}, ${ye(n.value)}`);
|
|
144
151
|
return { x: e, y: n, text: l };
|
|
145
152
|
}
|
|
146
|
-
const ae =
|
|
147
|
-
function
|
|
148
|
-
const t =
|
|
153
|
+
const ae = We(), pt = Ue(ae);
|
|
154
|
+
function vt() {
|
|
155
|
+
const t = b(/* @__PURE__ */ new Set()), e = Ge.instance;
|
|
149
156
|
for (const n of e.fileTypes)
|
|
150
157
|
t.value.add(n);
|
|
151
158
|
return e.events.registered.addEventListener((n) => {
|
|
152
159
|
t.value.add(n.fileType);
|
|
153
160
|
}), t;
|
|
154
161
|
}
|
|
155
|
-
function
|
|
156
|
-
const e =
|
|
162
|
+
function gt(t) {
|
|
163
|
+
const e = W([]), n = t.curDocument, i = (l) => {
|
|
157
164
|
const o = l.tables.layerTable.newIterator();
|
|
158
165
|
for (const a of o)
|
|
159
166
|
e.push({
|
|
@@ -182,8 +189,8 @@ function ft(t) {
|
|
|
182
189
|
e.length = 0, i(l.doc.database);
|
|
183
190
|
}), e;
|
|
184
191
|
}
|
|
185
|
-
function
|
|
186
|
-
const e =
|
|
192
|
+
function ft(t) {
|
|
193
|
+
const e = W([]), n = t.curDocument, i = (l) => {
|
|
187
194
|
const o = l.dictionaries.layouts.newIterator();
|
|
188
195
|
e.length = 0;
|
|
189
196
|
for (const a of o)
|
|
@@ -193,20 +200,20 @@ function ht(t) {
|
|
|
193
200
|
blockTableRecordId: a.blockTableRecordId,
|
|
194
201
|
isActive: a.blockTableRecordId == l.currentSpaceId
|
|
195
202
|
});
|
|
196
|
-
e.sort((a,
|
|
203
|
+
e.sort((a, r) => a.tabOrder - r.tabOrder);
|
|
197
204
|
};
|
|
198
205
|
return i(n.database), t.events.documentActivated.addEventListener((l) => {
|
|
199
206
|
e.length = 0, i(l.doc.database);
|
|
200
|
-
}),
|
|
207
|
+
}), Te().layoutManager.events.layoutSwitched.addEventListener(
|
|
201
208
|
(l) => {
|
|
202
|
-
const o = l.
|
|
209
|
+
const o = l.layout;
|
|
203
210
|
e.forEach((a) => {
|
|
204
211
|
a.name == o.layoutName ? a.isActive = !0 : a.isActive = !1;
|
|
205
212
|
});
|
|
206
213
|
}
|
|
207
214
|
), e;
|
|
208
215
|
}
|
|
209
|
-
const
|
|
216
|
+
const ht = {
|
|
210
217
|
ACAD: {
|
|
211
218
|
csvg: "Converts current drawing to SVG",
|
|
212
219
|
la: "Layer properties manager",
|
|
@@ -221,7 +228,7 @@ const _t = {
|
|
|
221
228
|
zoomw: "Zooms to display an area specified by a rectangular window"
|
|
222
229
|
},
|
|
223
230
|
USER: {}
|
|
224
|
-
},
|
|
231
|
+
}, _t = {
|
|
225
232
|
baseDialog: {
|
|
226
233
|
ok: "OK",
|
|
227
234
|
cancel: "Cancel"
|
|
@@ -240,7 +247,7 @@ const _t = {
|
|
|
240
247
|
title: "Point Style",
|
|
241
248
|
pointSize: "Point Size:"
|
|
242
249
|
}
|
|
243
|
-
},
|
|
250
|
+
}, wt = {
|
|
244
251
|
entityName: {
|
|
245
252
|
"3PointAngularDimension": "Three Point Angular Dimension",
|
|
246
253
|
AlignedDimension: "Aligned Dimension",
|
|
@@ -413,7 +420,7 @@ const _t = {
|
|
|
413
420
|
yellow: "Yellow",
|
|
414
421
|
yellowgreen: "Yellow Green"
|
|
415
422
|
}
|
|
416
|
-
},
|
|
423
|
+
}, yt = {
|
|
417
424
|
mainMenu: {
|
|
418
425
|
new: "New Drawing",
|
|
419
426
|
open: "Open Drawing",
|
|
@@ -506,7 +513,7 @@ const _t = {
|
|
|
506
513
|
failedToOpenFile: 'Failed to open file "{fileName}"!',
|
|
507
514
|
fetchingDrawingFile: "Fetching file ..."
|
|
508
515
|
}
|
|
509
|
-
},
|
|
516
|
+
}, bt = {
|
|
510
517
|
ACAD: {
|
|
511
518
|
csvg: "转换当前图纸为SVG格式",
|
|
512
519
|
la: "图层属性管理器",
|
|
@@ -521,7 +528,7 @@ const _t = {
|
|
|
521
528
|
zoomw: "缩放以显示矩形窗口内的对象"
|
|
522
529
|
},
|
|
523
530
|
USER: {}
|
|
524
|
-
},
|
|
531
|
+
}, xt = {
|
|
525
532
|
baseDialog: {
|
|
526
533
|
ok: "确定",
|
|
527
534
|
cancel: "取消"
|
|
@@ -540,7 +547,7 @@ const _t = {
|
|
|
540
547
|
title: "点样式",
|
|
541
548
|
pointSize: "点大小:"
|
|
542
549
|
}
|
|
543
|
-
},
|
|
550
|
+
}, kt = {
|
|
544
551
|
entityName: {
|
|
545
552
|
"3PointAngularDimension": "三点角度标注",
|
|
546
553
|
AlignedDimension: "线性标注",
|
|
@@ -713,7 +720,7 @@ const _t = {
|
|
|
713
720
|
yellow: "黄色",
|
|
714
721
|
yellowgreen: "黄绿色"
|
|
715
722
|
}
|
|
716
|
-
},
|
|
723
|
+
}, Mt = {
|
|
717
724
|
mainMenu: {
|
|
718
725
|
new: "新建图纸",
|
|
719
726
|
open: "打开图纸",
|
|
@@ -806,89 +813,89 @@ const _t = {
|
|
|
806
813
|
failedToOpenFile: '无法打开文件"{fileName}"!',
|
|
807
814
|
fetchingDrawingFile: "正在加载图纸文件..."
|
|
808
815
|
}
|
|
809
|
-
},
|
|
816
|
+
}, St = () => {
|
|
810
817
|
const t = localStorage.getItem("preferred_lang");
|
|
811
818
|
return t === "en" || t === "zh" ? t : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
812
|
-
},
|
|
819
|
+
}, Ct = {
|
|
813
820
|
en: {
|
|
814
|
-
main:
|
|
815
|
-
command:
|
|
816
|
-
dialog:
|
|
817
|
-
entity:
|
|
821
|
+
main: yt,
|
|
822
|
+
command: ht,
|
|
823
|
+
dialog: _t,
|
|
824
|
+
entity: wt
|
|
818
825
|
},
|
|
819
826
|
zh: {
|
|
820
|
-
main:
|
|
821
|
-
command:
|
|
822
|
-
dialog:
|
|
823
|
-
entity:
|
|
827
|
+
main: Mt,
|
|
828
|
+
command: bt,
|
|
829
|
+
dialog: xt,
|
|
830
|
+
entity: kt
|
|
824
831
|
}
|
|
825
|
-
}, J =
|
|
832
|
+
}, J = Xe({
|
|
826
833
|
legacy: !1,
|
|
827
|
-
messages:
|
|
828
|
-
locale:
|
|
834
|
+
messages: Ct,
|
|
835
|
+
locale: St(),
|
|
829
836
|
fallbackLocale: "en",
|
|
830
837
|
allowComposition: !0,
|
|
831
838
|
globalInjection: !0
|
|
832
|
-
}),
|
|
839
|
+
}), fe = (t, e) => {
|
|
833
840
|
const n = J.global.t, i = `command.${t}.${e}`;
|
|
834
841
|
return n(i, "");
|
|
835
|
-
},
|
|
842
|
+
}, ca = (t) => fe(q.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => fe(q.DEFAUT_COMMAND_GROUP_NAME, t), Lt = (t) => {
|
|
836
843
|
const e = J.global.t, n = "entity.entityName." + t.type;
|
|
837
844
|
return e(n, t.type, { missingWarn: !1 });
|
|
838
|
-
},
|
|
845
|
+
}, zt = (t) => {
|
|
839
846
|
if (t == "ByLayer" || t == "ByBlock")
|
|
840
847
|
return t;
|
|
841
848
|
{
|
|
842
849
|
const e = J.global.t, n = "entity.color." + t;
|
|
843
850
|
return e(n, t, { missingWarn: !1 });
|
|
844
851
|
}
|
|
845
|
-
},
|
|
852
|
+
}, Dt = (t) => {
|
|
846
853
|
const e = J.global.t, n = "main.progress." + t.replace(/_/g, "").toLowerCase();
|
|
847
854
|
return e(n, t);
|
|
848
855
|
}, me = "preferred_lang";
|
|
849
|
-
function
|
|
850
|
-
const { locale: e } = R(), i =
|
|
851
|
-
const
|
|
852
|
-
return
|
|
853
|
-
})()), l = k(() => i.value), o = (
|
|
854
|
-
J.global.locale.value =
|
|
856
|
+
function $e(t) {
|
|
857
|
+
const { locale: e } = R(), i = b((() => {
|
|
858
|
+
const s = localStorage.getItem(me);
|
|
859
|
+
return s === "en" || s === "zh" ? s : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
860
|
+
})()), l = k(() => i.value), o = (s) => {
|
|
861
|
+
J.global.locale.value = s, i.value = s, (!t || t === "default") && localStorage.setItem(me, s);
|
|
855
862
|
}, a = () => {
|
|
856
863
|
localStorage.removeItem(me);
|
|
857
864
|
};
|
|
858
865
|
t && E(
|
|
859
866
|
() => t,
|
|
860
|
-
(
|
|
861
|
-
|
|
867
|
+
(s) => {
|
|
868
|
+
s && s !== "default" && (i.value = s, J.global.locale.value = s, a());
|
|
862
869
|
},
|
|
863
870
|
{ immediate: !0 }
|
|
864
871
|
), E(
|
|
865
872
|
() => e.value,
|
|
866
|
-
(
|
|
873
|
+
(s) => {
|
|
867
874
|
if (!t || t === "default") {
|
|
868
|
-
const c =
|
|
875
|
+
const c = s === "zh" ? "zh" : "en";
|
|
869
876
|
i.value = c;
|
|
870
877
|
}
|
|
871
878
|
}
|
|
872
879
|
);
|
|
873
|
-
const
|
|
880
|
+
const r = k(() => l.value === "en" ? Ye : Ke);
|
|
874
881
|
return {
|
|
875
882
|
currentLocale: i,
|
|
876
883
|
effectiveLocale: l,
|
|
877
|
-
elementPlusLocale:
|
|
884
|
+
elementPlusLocale: r,
|
|
878
885
|
setLocale: o,
|
|
879
886
|
clearStoragePreference: a,
|
|
880
887
|
isControlled: k(() => !!(t && t !== "default"))
|
|
881
888
|
};
|
|
882
889
|
}
|
|
883
|
-
function
|
|
884
|
-
const t =
|
|
890
|
+
function Ve() {
|
|
891
|
+
const t = W(/* @__PURE__ */ new Map()), e = W(/* @__PURE__ */ new Map()), n = () => {
|
|
885
892
|
const i = B.instance.curView.missedData, l = Y.instance.fontMapping;
|
|
886
893
|
t.clear(), Object.keys(i.fonts).forEach((o) => {
|
|
887
894
|
const a = l[o];
|
|
888
895
|
t.set(o, a || "");
|
|
889
896
|
}), e.clear(), i.images.forEach((o, a) => {
|
|
890
|
-
const
|
|
891
|
-
|
|
897
|
+
const r = e.get(o);
|
|
898
|
+
r ? r.ids.add(a) : e.set(o, {
|
|
892
899
|
fileName: o,
|
|
893
900
|
ids: /* @__PURE__ */ new Set([a])
|
|
894
901
|
});
|
|
@@ -904,15 +911,15 @@ function Ae() {
|
|
|
904
911
|
};
|
|
905
912
|
}
|
|
906
913
|
function ce() {
|
|
907
|
-
const t =
|
|
914
|
+
const t = W(
|
|
908
915
|
Y.instance.settings
|
|
909
916
|
);
|
|
910
917
|
return Y.instance.events.modified.addEventListener((e) => {
|
|
911
918
|
t[e.key] = e.value;
|
|
912
919
|
}), t;
|
|
913
920
|
}
|
|
914
|
-
function
|
|
915
|
-
const e =
|
|
921
|
+
function Bt(t) {
|
|
922
|
+
const e = W({}), n = t.curDocument, i = (l) => {
|
|
916
923
|
e.pdmode = l.pdmode, e.pdmode = l.pdsize;
|
|
917
924
|
};
|
|
918
925
|
return i(n.database), n.database.events.headerSysVarChanged.addEventListener((l) => {
|
|
@@ -921,44 +928,44 @@ function Tt(t) {
|
|
|
921
928
|
i(l.doc.database);
|
|
922
929
|
}), e;
|
|
923
930
|
}
|
|
924
|
-
const
|
|
931
|
+
const Tt = /* @__PURE__ */ L({
|
|
925
932
|
__name: "MlDialogManager",
|
|
926
933
|
setup(t, { expose: e }) {
|
|
927
934
|
const { dialogs: n, toggleDialog: i, registerDialog: l } = oe();
|
|
928
935
|
return e({
|
|
929
936
|
toggleDialog: i,
|
|
930
937
|
registerDialog: l
|
|
931
|
-
}), (o, a) => (u(!0), w(K, null, X(m(n), (
|
|
932
|
-
key:
|
|
938
|
+
}), (o, a) => (u(!0), w(K, null, X(m(n), (r) => (u(), w("div", {
|
|
939
|
+
key: r.name
|
|
933
940
|
}, [
|
|
934
|
-
(u(), C(
|
|
935
|
-
modelValue:
|
|
936
|
-
"onUpdate:modelValue": (
|
|
937
|
-
}, { ref_for: !0 },
|
|
941
|
+
(u(), C(ve(r.component), Ne({
|
|
942
|
+
modelValue: r.visible,
|
|
943
|
+
"onUpdate:modelValue": (s) => r.visible = s
|
|
944
|
+
}, { ref_for: !0 }, r.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
938
945
|
]))), 128));
|
|
939
946
|
}
|
|
940
|
-
}),
|
|
947
|
+
}), Et = ["accept"], $t = /* @__PURE__ */ L({
|
|
941
948
|
__name: "MlFileReader",
|
|
942
949
|
emits: ["file-read"],
|
|
943
950
|
setup(t, { emit: e }) {
|
|
944
|
-
const n = e, i =
|
|
945
|
-
const
|
|
946
|
-
let
|
|
947
|
-
for (let c = 0, f =
|
|
948
|
-
c == f - 1 ?
|
|
949
|
-
return
|
|
951
|
+
const n = e, i = b(null), l = vt(), o = k(() => {
|
|
952
|
+
const r = Array.from(l.value);
|
|
953
|
+
let s = "";
|
|
954
|
+
for (let c = 0, f = r.length; c < f; ++c)
|
|
955
|
+
c == f - 1 ? s += `.${r[c]}` : s += `.${r[c]}, `;
|
|
956
|
+
return s;
|
|
950
957
|
});
|
|
951
|
-
|
|
958
|
+
O(() => {
|
|
952
959
|
j.on("open-file", () => {
|
|
953
|
-
var
|
|
954
|
-
(
|
|
960
|
+
var r;
|
|
961
|
+
(r = i.value) == null || r.click();
|
|
955
962
|
});
|
|
956
963
|
});
|
|
957
|
-
const a = (
|
|
958
|
-
var f,
|
|
959
|
-
const c = (f =
|
|
964
|
+
const a = (r) => {
|
|
965
|
+
var f, x;
|
|
966
|
+
const c = (f = r.target.files) == null ? void 0 : f[0];
|
|
960
967
|
if (c && c.name) {
|
|
961
|
-
const g = (
|
|
968
|
+
const g = (x = c.name.split(".").pop()) == null ? void 0 : x.toLocaleLowerCase(), h = new FileReader();
|
|
962
969
|
g == "dxf" ? h.readAsText(c) : g == "dwg" && h.readAsArrayBuffer(c), h.onload = (_) => {
|
|
963
970
|
var S;
|
|
964
971
|
const y = (S = _.target) == null ? void 0 : S.result;
|
|
@@ -968,16 +975,16 @@ const Et = /* @__PURE__ */ L({
|
|
|
968
975
|
};
|
|
969
976
|
}
|
|
970
977
|
};
|
|
971
|
-
return (
|
|
978
|
+
return (r, s) => (u(), w("input", {
|
|
972
979
|
type: "file",
|
|
973
980
|
ref_key: "fileInput",
|
|
974
981
|
ref: i,
|
|
975
982
|
accept: o.value,
|
|
976
983
|
style: { display: "none" },
|
|
977
984
|
onChange: a
|
|
978
|
-
}, null, 40,
|
|
985
|
+
}, null, 40, Et));
|
|
979
986
|
}
|
|
980
|
-
}),
|
|
987
|
+
}), Vt = /* @__PURE__ */ L({
|
|
981
988
|
__name: "MlToggleButton",
|
|
982
989
|
props: /* @__PURE__ */ Z({
|
|
983
990
|
size: { default: 30 },
|
|
@@ -991,30 +998,30 @@ const Et = /* @__PURE__ */ L({
|
|
|
991
998
|
Ce((c) => ({
|
|
992
999
|
a97b120a: a.value
|
|
993
1000
|
}));
|
|
994
|
-
const n = t, i =
|
|
1001
|
+
const n = t, i = ge(t, "modelValue"), l = e, o = k(() => i.value ? n.data.onIcon : n.data.offIcon), a = k(() => n.size + "px"), r = k(() => i.value ? n.data.onTooltip : n.data.offTooltip), s = () => {
|
|
995
1002
|
l("click", i.value);
|
|
996
1003
|
};
|
|
997
1004
|
return (c, f) => {
|
|
998
|
-
const
|
|
1005
|
+
const x = M("el-button"), g = M("el-tooltip");
|
|
999
1006
|
return u(), C(g, {
|
|
1000
|
-
content:
|
|
1007
|
+
content: r.value,
|
|
1001
1008
|
"hide-after": 0
|
|
1002
1009
|
}, {
|
|
1003
1010
|
default: p(() => [
|
|
1004
|
-
v(
|
|
1011
|
+
v(x, {
|
|
1005
1012
|
class: "ml-toggle-button",
|
|
1006
1013
|
icon: o.value,
|
|
1007
|
-
onClick:
|
|
1014
|
+
onClick: s
|
|
1008
1015
|
}, null, 8, ["icon"])
|
|
1009
1016
|
]),
|
|
1010
1017
|
_: 1
|
|
1011
1018
|
}, 8, ["content"]);
|
|
1012
1019
|
};
|
|
1013
1020
|
}
|
|
1014
|
-
}),
|
|
1021
|
+
}), Ae = /* @__PURE__ */ H(Vt, [["__scopeId", "data-v-48d6b055"]]), At = /* @__PURE__ */ L({
|
|
1015
1022
|
__name: "MlReplacementDlg",
|
|
1016
1023
|
setup(t) {
|
|
1017
|
-
const { t: e } = R(), { fonts: n, images: i } =
|
|
1024
|
+
const { t: e } = R(), { fonts: n, images: i } = Ve(), l = b(!0), o = k(() => n.size > 0 ? "font" : "image"), a = b(null), r = k(() => B.instance.avaiableFonts.map((h) => h.name[0])), s = () => {
|
|
1018
1025
|
const g = B.instance.curDocument.database;
|
|
1019
1026
|
i.forEach((_) => {
|
|
1020
1027
|
_.file && _.ids.forEach((y) => {
|
|
@@ -1036,17 +1043,17 @@ const Et = /* @__PURE__ */ L({
|
|
|
1036
1043
|
var _, y;
|
|
1037
1044
|
const h = (y = (_ = a.value) == null ? void 0 : _.files) == null ? void 0 : y[0];
|
|
1038
1045
|
h && (g.file = h);
|
|
1039
|
-
},
|
|
1046
|
+
}, x = (g, h) => {
|
|
1040
1047
|
n.set(g, h);
|
|
1041
1048
|
};
|
|
1042
1049
|
return (g, h) => {
|
|
1043
1050
|
const _ = M("el-col"), y = M("el-row"), S = M("el-option"), $ = M("el-select"), F = M("el-tab-pane"), V = M("el-table-column"), T = M("el-button"), G = M("el-table"), P = M("el-tabs");
|
|
1044
|
-
return u(), C(
|
|
1051
|
+
return u(), C(Ee, {
|
|
1045
1052
|
title: m(e)("dialog.replacementDlg.title"),
|
|
1046
1053
|
modelValue: l.value,
|
|
1047
1054
|
"onUpdate:modelValue": h[1] || (h[1] = (z) => l.value = z),
|
|
1048
1055
|
name: "ReplacementDlg",
|
|
1049
|
-
onOk:
|
|
1056
|
+
onOk: s
|
|
1050
1057
|
}, {
|
|
1051
1058
|
default: p(() => [
|
|
1052
1059
|
v(P, {
|
|
@@ -1095,14 +1102,14 @@ const Et = /* @__PURE__ */ L({
|
|
|
1095
1102
|
v($, {
|
|
1096
1103
|
"model-value": A,
|
|
1097
1104
|
placeholder: m(e)("dialog.replacementDlg.selectFont"),
|
|
1098
|
-
"onUpdate:modelValue": (
|
|
1105
|
+
"onUpdate:modelValue": (N) => x(z, N),
|
|
1099
1106
|
style: { width: "100%" }
|
|
1100
1107
|
}, {
|
|
1101
1108
|
default: p(() => [
|
|
1102
|
-
(u(!0), w(K, null, X(
|
|
1109
|
+
(u(!0), w(K, null, X(r.value, (N, de) => (u(), C(S, {
|
|
1103
1110
|
key: de,
|
|
1104
|
-
label:
|
|
1105
|
-
value:
|
|
1111
|
+
label: N,
|
|
1112
|
+
value: N
|
|
1106
1113
|
}, null, 8, ["label", "value"]))), 128))
|
|
1107
1114
|
]),
|
|
1108
1115
|
_: 2
|
|
@@ -1178,28 +1185,28 @@ const Et = /* @__PURE__ */ L({
|
|
|
1178
1185
|
}, 8, ["title", "modelValue"]);
|
|
1179
1186
|
};
|
|
1180
1187
|
}
|
|
1181
|
-
}),
|
|
1188
|
+
}), It = {
|
|
1182
1189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1183
1190
|
width: "1em",
|
|
1184
1191
|
height: "1em",
|
|
1185
1192
|
viewBox: "0 0 15 15"
|
|
1186
1193
|
};
|
|
1187
|
-
function
|
|
1188
|
-
return u(), w("svg",
|
|
1194
|
+
function Ft(t, e) {
|
|
1195
|
+
return u(), w("svg", It, e[0] || (e[0] = [
|
|
1189
1196
|
d("path", {
|
|
1190
1197
|
fill: "currentColor",
|
|
1191
1198
|
d: "M1.417 11.667h1.916v.833H0V9.167h.833v1.916l2.5-2.5.584.584zm9.666 0-2.5-2.5.584-.584 2.5 2.5V9.167h.833V12.5H9.167v-.833zM1.417.833l2.5 2.5-.584.584-2.5-2.5v1.916H0V0h3.333v.833zm9.666 0H9.167V0H12.5v3.333h-.833V1.417l-2.5 2.5-.584-.584z"
|
|
1192
1199
|
}, null, -1)
|
|
1193
1200
|
]));
|
|
1194
1201
|
}
|
|
1195
|
-
const be = { render:
|
|
1202
|
+
const be = { render: Ft }, Pt = {
|
|
1196
1203
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1197
1204
|
width: "1em",
|
|
1198
1205
|
height: "1em",
|
|
1199
1206
|
viewBox: "0 0 512 512"
|
|
1200
1207
|
};
|
|
1201
|
-
function
|
|
1202
|
-
return u(), w("svg",
|
|
1208
|
+
function Rt(t, e) {
|
|
1209
|
+
return u(), w("svg", Pt, e[0] || (e[0] = [
|
|
1203
1210
|
d("path", {
|
|
1204
1211
|
fill: "none",
|
|
1205
1212
|
stroke: "currentColor",
|
|
@@ -1218,24 +1225,24 @@ function Ot(t, e) {
|
|
|
1218
1225
|
}, null, -1)
|
|
1219
1226
|
]));
|
|
1220
1227
|
}
|
|
1221
|
-
const Nt = { render:
|
|
1228
|
+
const Nt = { render: Rt }, Ot = {
|
|
1222
1229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1223
1230
|
width: "1em",
|
|
1224
1231
|
height: "1em",
|
|
1225
1232
|
viewBox: "0 0 20 20"
|
|
1226
1233
|
};
|
|
1227
|
-
function
|
|
1228
|
-
return u(), w("svg",
|
|
1234
|
+
function Ht(t, e) {
|
|
1235
|
+
return u(), w("svg", Ot, e[0] || (e[0] = [
|
|
1229
1236
|
d("path", { d: "m15.08 12.854.002-.002V5.59c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.638-.414-.638 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.444c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.232c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388q-.39-.669-.776-1.338c-.338-.482-1.1-.15-.794.38l.978 1.698.02.04q.829 1.418 1.658 2.834c.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.792-.124 2.56-.612q.45-.285.816-.68a4 4 0 0 0 .734-1.204c.176-.482.258-.97.258-1.494m-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894a4.8 4.8 0 0 1-.964 1.576 5.9 5.9 0 0 1-1.046.884c-.978.612-2.146.862-3.26.774a5.34 5.34 0 0 1-3.098-1.352 5.4 5.4 0 0 1-.87-1.034l-1.672-2.88-.012-.028-.978-1.706c-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096q.061.11.122.218V4.234c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.972-.51 2.222.102 2.222 1.284v.06z" }, null, -1)
|
|
1230
1237
|
]));
|
|
1231
1238
|
}
|
|
1232
|
-
const
|
|
1239
|
+
const Gt = { render: Ht }, qt = {
|
|
1233
1240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1234
1241
|
width: "1em",
|
|
1235
1242
|
height: "1em",
|
|
1236
1243
|
viewBox: "0 0 20 20"
|
|
1237
1244
|
};
|
|
1238
|
-
function
|
|
1245
|
+
function Wt(t, e) {
|
|
1239
1246
|
return u(), w("svg", qt, e[0] || (e[0] = [
|
|
1240
1247
|
d("path", {
|
|
1241
1248
|
fill: "currentColor",
|
|
@@ -1243,323 +1250,323 @@ function Ut(t, e) {
|
|
|
1243
1250
|
}, null, -1)
|
|
1244
1251
|
]));
|
|
1245
1252
|
}
|
|
1246
|
-
const
|
|
1253
|
+
const Ut = { render: Wt }, jt = {
|
|
1247
1254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1248
1255
|
width: "1em",
|
|
1249
1256
|
height: "1em",
|
|
1250
1257
|
viewBox: "0 0 20 20"
|
|
1251
1258
|
};
|
|
1252
|
-
function
|
|
1253
|
-
return u(), w("svg",
|
|
1259
|
+
function Yt(t, e) {
|
|
1260
|
+
return u(), w("svg", jt, e[0] || (e[0] = [
|
|
1254
1261
|
d("path", {
|
|
1255
1262
|
fill: "currentColor",
|
|
1256
1263
|
d: "M15.083 14.808a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575a8.334 8.334 0 0 1-11.525-.692 8.326 8.326 0 0 1 .233-11.542C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525m-3.55-2.608V7.208H7.208v5.584zM5.875 5.875h8.25v8.25h-8.25z"
|
|
1257
1264
|
}, null, -1)
|
|
1258
1265
|
]));
|
|
1259
1266
|
}
|
|
1260
|
-
const
|
|
1267
|
+
const Kt = { render: Yt }, Xt = {
|
|
1261
1268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1262
1269
|
width: "1em",
|
|
1263
1270
|
height: "1em",
|
|
1264
1271
|
viewBox: "0 0 20 20"
|
|
1265
1272
|
};
|
|
1266
|
-
function
|
|
1267
|
-
return u(), w("svg",
|
|
1273
|
+
function Qt(t, e) {
|
|
1274
|
+
return u(), w("svg", Xt, e[0] || (e[0] = [
|
|
1268
1275
|
d("path", {
|
|
1269
1276
|
fill: "currentColor",
|
|
1270
1277
|
d: "m9.333 14.125-3.458-3.458v3.458zm4.792-3.458-3.458 3.458h3.458zm-3.458-4.792 3.458 3.458V5.875zM5.875 9.333l3.458-3.458H5.875zm9.208 5.475a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575c-3.408 2.9-8.492 2.591-11.525-.692S.942 7.275 4.108 4.108C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525"
|
|
1271
1278
|
}, null, -1)
|
|
1272
1279
|
]));
|
|
1273
1280
|
}
|
|
1274
|
-
const
|
|
1281
|
+
const Zt = { render: Qt }, Jt = {
|
|
1275
1282
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1276
1283
|
width: "1em",
|
|
1277
1284
|
height: "1em",
|
|
1278
1285
|
viewBox: "0 0 20 20"
|
|
1279
1286
|
};
|
|
1280
|
-
function
|
|
1281
|
-
return u(), w("svg",
|
|
1287
|
+
function en(t, e) {
|
|
1288
|
+
return u(), w("svg", Jt, e[0] || (e[0] = [
|
|
1282
1289
|
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
|
|
1283
1290
|
]));
|
|
1284
1291
|
}
|
|
1285
|
-
const
|
|
1292
|
+
const tn = { render: en }, nn = {
|
|
1286
1293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1287
1294
|
width: "1em",
|
|
1288
1295
|
height: "1em",
|
|
1289
1296
|
viewBox: "0 0 20 20"
|
|
1290
1297
|
};
|
|
1291
|
-
function
|
|
1292
|
-
return u(), w("svg",
|
|
1298
|
+
function on(t, e) {
|
|
1299
|
+
return u(), w("svg", nn);
|
|
1293
1300
|
}
|
|
1294
|
-
const
|
|
1301
|
+
const ln = { render: on }, an = {
|
|
1295
1302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1296
1303
|
width: "1em",
|
|
1297
1304
|
height: "1em",
|
|
1298
1305
|
viewBox: "0 0 20 20"
|
|
1299
1306
|
};
|
|
1300
|
-
function
|
|
1301
|
-
return u(), w("svg",
|
|
1307
|
+
function rn(t, e) {
|
|
1308
|
+
return u(), w("svg", an, e[0] || (e[0] = [
|
|
1302
1309
|
d("path", { d: "M2 9.5h16v1H2z" }, null, -1),
|
|
1303
1310
|
d("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
|
|
1304
1311
|
]));
|
|
1305
1312
|
}
|
|
1306
|
-
const
|
|
1313
|
+
const sn = { render: rn }, cn = {
|
|
1307
1314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1308
1315
|
width: "1em",
|
|
1309
1316
|
height: "1em",
|
|
1310
1317
|
viewBox: "0 0 20 20"
|
|
1311
1318
|
};
|
|
1312
|
-
function
|
|
1313
|
-
return u(), w("svg",
|
|
1319
|
+
function un(t, e) {
|
|
1320
|
+
return u(), w("svg", cn, e[0] || (e[0] = [
|
|
1314
1321
|
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1315
1322
|
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1316
1323
|
]));
|
|
1317
1324
|
}
|
|
1318
|
-
const
|
|
1325
|
+
const dn = { render: un }, mn = {
|
|
1319
1326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1320
1327
|
width: "1em",
|
|
1321
1328
|
height: "1em",
|
|
1322
1329
|
viewBox: "0 0 20 20"
|
|
1323
1330
|
};
|
|
1324
|
-
function
|
|
1325
|
-
return u(), w("svg",
|
|
1331
|
+
function pn(t, e) {
|
|
1332
|
+
return u(), w("svg", mn, e[0] || (e[0] = [
|
|
1326
1333
|
d("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
|
|
1327
1334
|
]));
|
|
1328
1335
|
}
|
|
1329
|
-
const
|
|
1336
|
+
const vn = { render: pn }, gn = {
|
|
1330
1337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1331
1338
|
width: "1em",
|
|
1332
1339
|
height: "1em",
|
|
1333
1340
|
viewBox: "0 0 20 20"
|
|
1334
1341
|
};
|
|
1335
|
-
function
|
|
1336
|
-
return u(), w("svg",
|
|
1342
|
+
function fn(t, e) {
|
|
1343
|
+
return u(), w("svg", gn, e[0] || (e[0] = [
|
|
1337
1344
|
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1338
1345
|
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1339
1346
|
]));
|
|
1340
1347
|
}
|
|
1341
|
-
const
|
|
1348
|
+
const hn = { render: fn }, _n = {
|
|
1342
1349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1343
1350
|
width: "1em",
|
|
1344
1351
|
height: "1em",
|
|
1345
1352
|
viewBox: "0 0 20 20"
|
|
1346
1353
|
};
|
|
1347
|
-
function
|
|
1348
|
-
return u(), w("svg",
|
|
1354
|
+
function wn(t, e) {
|
|
1355
|
+
return u(), w("svg", _n, e[0] || (e[0] = [
|
|
1349
1356
|
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1350
1357
|
]));
|
|
1351
1358
|
}
|
|
1352
|
-
const
|
|
1359
|
+
const yn = { render: wn }, bn = {
|
|
1353
1360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1354
1361
|
width: "1em",
|
|
1355
1362
|
height: "1em",
|
|
1356
1363
|
viewBox: "0 0 20 20"
|
|
1357
1364
|
};
|
|
1358
|
-
function
|
|
1359
|
-
return u(), w("svg",
|
|
1365
|
+
function xn(t, e) {
|
|
1366
|
+
return u(), w("svg", bn, e[0] || (e[0] = [
|
|
1360
1367
|
d("path", { d: "M3 9.5h14v1H3z" }, null, -1),
|
|
1361
1368
|
d("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
|
|
1362
1369
|
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1363
1370
|
]));
|
|
1364
1371
|
}
|
|
1365
|
-
const
|
|
1372
|
+
const kn = { render: xn }, Mn = {
|
|
1366
1373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1367
1374
|
width: "1em",
|
|
1368
1375
|
height: "1em",
|
|
1369
1376
|
viewBox: "0 0 20 20"
|
|
1370
1377
|
};
|
|
1371
|
-
function
|
|
1372
|
-
return u(), w("svg",
|
|
1378
|
+
function Sn(t, e) {
|
|
1379
|
+
return u(), w("svg", Mn, e[0] || (e[0] = [
|
|
1373
1380
|
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1374
1381
|
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
1375
1382
|
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1376
1383
|
]));
|
|
1377
1384
|
}
|
|
1378
|
-
const
|
|
1385
|
+
const Cn = { render: Sn }, Ln = {
|
|
1379
1386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1380
1387
|
width: "1em",
|
|
1381
1388
|
height: "1em",
|
|
1382
1389
|
viewBox: "0 0 20 20"
|
|
1383
1390
|
};
|
|
1384
|
-
function
|
|
1385
|
-
return u(), w("svg",
|
|
1391
|
+
function zn(t, e) {
|
|
1392
|
+
return u(), w("svg", Ln, e[0] || (e[0] = [
|
|
1386
1393
|
d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
1387
1394
|
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1388
1395
|
]));
|
|
1389
1396
|
}
|
|
1390
|
-
const
|
|
1397
|
+
const Dn = { render: zn }, Bn = {
|
|
1391
1398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1392
1399
|
width: "1em",
|
|
1393
1400
|
height: "1em",
|
|
1394
1401
|
viewBox: "0 0 20 20"
|
|
1395
1402
|
};
|
|
1396
|
-
function
|
|
1397
|
-
return u(), w("svg",
|
|
1403
|
+
function Tn(t, e) {
|
|
1404
|
+
return u(), w("svg", Bn, e[0] || (e[0] = [
|
|
1398
1405
|
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1399
1406
|
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1400
1407
|
]));
|
|
1401
1408
|
}
|
|
1402
|
-
const
|
|
1409
|
+
const En = { render: Tn }, $n = {
|
|
1403
1410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1404
1411
|
width: "1em",
|
|
1405
1412
|
height: "1em",
|
|
1406
1413
|
viewBox: "0 0 20 20"
|
|
1407
1414
|
};
|
|
1408
|
-
function
|
|
1409
|
-
return u(), w("svg",
|
|
1415
|
+
function Vn(t, e) {
|
|
1416
|
+
return u(), w("svg", $n, e[0] || (e[0] = [
|
|
1410
1417
|
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1411
1418
|
]));
|
|
1412
1419
|
}
|
|
1413
|
-
const
|
|
1420
|
+
const An = { render: Vn }, In = {
|
|
1414
1421
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1415
1422
|
width: "1em",
|
|
1416
1423
|
height: "1em",
|
|
1417
1424
|
viewBox: "0 0 20 20"
|
|
1418
1425
|
};
|
|
1419
|
-
function
|
|
1420
|
-
return u(), w("svg",
|
|
1426
|
+
function Fn(t, e) {
|
|
1427
|
+
return u(), w("svg", In, e[0] || (e[0] = [
|
|
1421
1428
|
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1422
1429
|
d("path", { d: "M3 9.58h14v1H3z" }, null, -1),
|
|
1423
1430
|
d("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
|
|
1424
1431
|
]));
|
|
1425
1432
|
}
|
|
1426
|
-
const
|
|
1433
|
+
const Pn = { render: Fn }, Rn = {
|
|
1427
1434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1428
1435
|
width: "1em",
|
|
1429
1436
|
height: "1em",
|
|
1430
1437
|
viewBox: "0 0 20 20"
|
|
1431
1438
|
};
|
|
1432
1439
|
function Nn(t, e) {
|
|
1433
|
-
return u(), w("svg",
|
|
1440
|
+
return u(), w("svg", Rn, e[0] || (e[0] = [
|
|
1434
1441
|
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1435
1442
|
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1436
1443
|
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1437
1444
|
]));
|
|
1438
1445
|
}
|
|
1439
|
-
const
|
|
1446
|
+
const On = { render: Nn }, Hn = {
|
|
1440
1447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1441
1448
|
width: "1em",
|
|
1442
1449
|
height: "1em",
|
|
1443
1450
|
viewBox: "0 0 20 20"
|
|
1444
1451
|
};
|
|
1445
|
-
function
|
|
1446
|
-
return u(), w("svg",
|
|
1452
|
+
function Gn(t, e) {
|
|
1453
|
+
return u(), w("svg", Hn, e[0] || (e[0] = [
|
|
1447
1454
|
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1448
1455
|
d("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
|
|
1449
1456
|
]));
|
|
1450
1457
|
}
|
|
1451
|
-
const qn = { render:
|
|
1458
|
+
const qn = { render: Gn }, Wn = {
|
|
1452
1459
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1453
1460
|
width: "1em",
|
|
1454
1461
|
height: "1em",
|
|
1455
1462
|
viewBox: "0 0 20 20"
|
|
1456
1463
|
};
|
|
1457
|
-
function
|
|
1458
|
-
return u(), w("svg",
|
|
1464
|
+
function Un(t, e) {
|
|
1465
|
+
return u(), w("svg", Wn, e[0] || (e[0] = [
|
|
1459
1466
|
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1460
1467
|
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1461
1468
|
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1462
1469
|
]));
|
|
1463
1470
|
}
|
|
1464
|
-
const
|
|
1471
|
+
const jn = { render: Un }, Yn = {
|
|
1465
1472
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1466
1473
|
width: "1em",
|
|
1467
1474
|
height: "1em",
|
|
1468
1475
|
viewBox: "0 0 20 20"
|
|
1469
1476
|
};
|
|
1470
|
-
function
|
|
1471
|
-
return u(), w("svg",
|
|
1477
|
+
function Kn(t, e) {
|
|
1478
|
+
return u(), w("svg", Yn, e[0] || (e[0] = [
|
|
1472
1479
|
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1473
1480
|
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1474
1481
|
]));
|
|
1475
1482
|
}
|
|
1476
|
-
const
|
|
1483
|
+
const Xn = { render: Kn }, Qn = {
|
|
1477
1484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1478
1485
|
width: "1em",
|
|
1479
1486
|
height: "1em",
|
|
1480
1487
|
viewBox: "0 0 20 20"
|
|
1481
1488
|
};
|
|
1482
|
-
function
|
|
1483
|
-
return u(), w("svg",
|
|
1489
|
+
function Zn(t, e) {
|
|
1490
|
+
return u(), w("svg", Qn, e[0] || (e[0] = [
|
|
1484
1491
|
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1485
1492
|
d("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
|
|
1486
1493
|
d("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
|
|
1487
1494
|
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1488
1495
|
]));
|
|
1489
1496
|
}
|
|
1490
|
-
const
|
|
1497
|
+
const Jn = { render: Zn }, eo = {
|
|
1491
1498
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1492
1499
|
width: "1em",
|
|
1493
1500
|
height: "1em",
|
|
1494
1501
|
viewBox: "0 0 20 20"
|
|
1495
1502
|
};
|
|
1496
|
-
function
|
|
1497
|
-
return u(), w("svg",
|
|
1503
|
+
function to(t, e) {
|
|
1504
|
+
return u(), w("svg", eo, e[0] || (e[0] = [
|
|
1498
1505
|
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1499
1506
|
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
1500
1507
|
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1501
1508
|
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1502
1509
|
]));
|
|
1503
1510
|
}
|
|
1504
|
-
const
|
|
1511
|
+
const no = { render: to }, oo = {
|
|
1505
1512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1506
1513
|
width: "1em",
|
|
1507
1514
|
height: "1em",
|
|
1508
1515
|
viewBox: "0 0 20 20"
|
|
1509
1516
|
};
|
|
1510
|
-
function
|
|
1511
|
-
return u(), w("svg",
|
|
1517
|
+
function lo(t, e) {
|
|
1518
|
+
return u(), w("svg", oo, e[0] || (e[0] = [
|
|
1512
1519
|
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1513
1520
|
d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
1514
1521
|
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1515
1522
|
]));
|
|
1516
1523
|
}
|
|
1517
|
-
const
|
|
1524
|
+
const ao = { render: lo }, io = /* @__PURE__ */ L({
|
|
1518
1525
|
__name: "MlPointStyleDlg",
|
|
1519
1526
|
setup(t) {
|
|
1520
|
-
const { t: e } = R(), n =
|
|
1527
|
+
const { t: e } = R(), n = Bt(B.instance), i = b(!0), l = b(0), o = [
|
|
1521
1528
|
[
|
|
1522
|
-
{ id: 0, icon:
|
|
1523
|
-
{ id: 1, icon:
|
|
1524
|
-
{ id: 2, icon:
|
|
1525
|
-
{ id: 3, icon:
|
|
1526
|
-
{ id: 4, icon:
|
|
1529
|
+
{ id: 0, icon: tn },
|
|
1530
|
+
{ id: 1, icon: ln },
|
|
1531
|
+
{ id: 2, icon: sn },
|
|
1532
|
+
{ id: 3, icon: dn },
|
|
1533
|
+
{ id: 4, icon: vn }
|
|
1527
1534
|
],
|
|
1528
1535
|
[
|
|
1529
|
-
{ id: 32, icon:
|
|
1530
|
-
{ id: 33, icon:
|
|
1531
|
-
{ id: 34, icon:
|
|
1532
|
-
{ id: 35, icon:
|
|
1533
|
-
{ id: 36, icon:
|
|
1536
|
+
{ id: 32, icon: hn },
|
|
1537
|
+
{ id: 33, icon: yn },
|
|
1538
|
+
{ id: 34, icon: kn },
|
|
1539
|
+
{ id: 35, icon: Cn },
|
|
1540
|
+
{ id: 36, icon: Dn }
|
|
1534
1541
|
],
|
|
1535
1542
|
[
|
|
1536
|
-
{ id: 64, icon:
|
|
1537
|
-
{ id: 65, icon:
|
|
1538
|
-
{ id: 66, icon:
|
|
1539
|
-
{ id: 67, icon:
|
|
1543
|
+
{ id: 64, icon: En },
|
|
1544
|
+
{ id: 65, icon: An },
|
|
1545
|
+
{ id: 66, icon: Pn },
|
|
1546
|
+
{ id: 67, icon: On },
|
|
1540
1547
|
{ id: 68, icon: qn }
|
|
1541
1548
|
],
|
|
1542
1549
|
[
|
|
1543
|
-
{ id: 96, icon:
|
|
1544
|
-
{ id: 97, icon:
|
|
1545
|
-
{ id: 98, icon:
|
|
1546
|
-
{ id: 99, icon:
|
|
1547
|
-
{ id: 100, icon:
|
|
1550
|
+
{ id: 96, icon: jn },
|
|
1551
|
+
{ id: 97, icon: Xn },
|
|
1552
|
+
{ id: 98, icon: Jn },
|
|
1553
|
+
{ id: 99, icon: no },
|
|
1554
|
+
{ id: 100, icon: ao }
|
|
1548
1555
|
]
|
|
1549
1556
|
], a = () => {
|
|
1550
1557
|
n.pdmode && (l.value = n.pdmode);
|
|
1551
1558
|
};
|
|
1552
1559
|
a();
|
|
1553
|
-
const
|
|
1554
|
-
l.value = o[
|
|
1560
|
+
const r = (x, g) => o[x][g].id == l.value ? "primary" : null, s = (x, g) => {
|
|
1561
|
+
l.value = o[x][g].id;
|
|
1555
1562
|
}, c = () => {
|
|
1556
1563
|
B.instance.curDocument.database.pdmode = l.value;
|
|
1557
1564
|
}, f = () => {
|
|
1558
1565
|
a();
|
|
1559
1566
|
};
|
|
1560
|
-
return (
|
|
1567
|
+
return (x, g) => {
|
|
1561
1568
|
const h = M("el-button"), _ = M("el-col"), y = M("el-row");
|
|
1562
|
-
return u(), C(
|
|
1569
|
+
return u(), C(Ee, {
|
|
1563
1570
|
title: m(e)("dialog.pointStyleDlg.title"),
|
|
1564
1571
|
width: 400,
|
|
1565
1572
|
modelValue: i.value,
|
|
@@ -1583,8 +1590,8 @@ const io = { render: ao }, ro = /* @__PURE__ */ L({
|
|
|
1583
1590
|
default: p(() => [
|
|
1584
1591
|
v(h, {
|
|
1585
1592
|
icon: F.icon,
|
|
1586
|
-
type:
|
|
1587
|
-
onClick: (T) =>
|
|
1593
|
+
type: r($, V),
|
|
1594
|
+
onClick: (T) => s($, V),
|
|
1588
1595
|
style: { "font-size": "25px" }
|
|
1589
1596
|
}, null, 8, ["icon", "type", "onClick"])
|
|
1590
1597
|
]),
|
|
@@ -1609,35 +1616,35 @@ const io = { render: ao }, ro = /* @__PURE__ */ L({
|
|
|
1609
1616
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
1610
1617
|
}
|
|
1611
1618
|
})();
|
|
1612
|
-
const
|
|
1619
|
+
const ro = {
|
|
1613
1620
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1614
1621
|
width: "1em",
|
|
1615
1622
|
height: "1em",
|
|
1616
1623
|
viewBox: "0 0 1024 1024"
|
|
1617
|
-
},
|
|
1624
|
+
}, so = /* @__PURE__ */ d("path", {
|
|
1618
1625
|
fill: "currentColor",
|
|
1619
1626
|
d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
|
|
1620
|
-
}, null, -1),
|
|
1621
|
-
|
|
1627
|
+
}, null, -1), co = [
|
|
1628
|
+
so
|
|
1622
1629
|
];
|
|
1623
|
-
function
|
|
1624
|
-
return u(), w("svg",
|
|
1630
|
+
function uo(t, e) {
|
|
1631
|
+
return u(), w("svg", ro, [...co]);
|
|
1625
1632
|
}
|
|
1626
|
-
const xe = { render:
|
|
1633
|
+
const xe = { render: uo }, mo = {
|
|
1627
1634
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1628
1635
|
width: "1em",
|
|
1629
1636
|
height: "1em",
|
|
1630
1637
|
viewBox: "0 0 1024 1024"
|
|
1631
|
-
},
|
|
1638
|
+
}, po = /* @__PURE__ */ d("path", {
|
|
1632
1639
|
fill: "currentColor",
|
|
1633
1640
|
d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
1634
|
-
}, null, -1),
|
|
1635
|
-
|
|
1641
|
+
}, null, -1), vo = [
|
|
1642
|
+
po
|
|
1636
1643
|
];
|
|
1637
|
-
function
|
|
1638
|
-
return u(), w("svg",
|
|
1644
|
+
function go(t, e) {
|
|
1645
|
+
return u(), w("svg", mo, [...vo]);
|
|
1639
1646
|
}
|
|
1640
|
-
const ke = { render:
|
|
1647
|
+
const ke = { render: go }, fo = /* @__PURE__ */ L({
|
|
1641
1648
|
__name: "MlCollapse",
|
|
1642
1649
|
props: /* @__PURE__ */ Z({
|
|
1643
1650
|
size: { default: 18 },
|
|
@@ -1648,23 +1655,23 @@ const ke = { render: fo }, ho = /* @__PURE__ */ L({
|
|
|
1648
1655
|
}),
|
|
1649
1656
|
emits: /* @__PURE__ */ Z(["change"], ["update:modelValue"]),
|
|
1650
1657
|
setup(t, { emit: e }) {
|
|
1651
|
-
const n = t, i =
|
|
1658
|
+
const n = t, i = ge(t, "modelValue"), l = e, o = k(() => n.reverse ? i.value ? xe : ke : i.value ? ke : xe), a = k(() => `${n.size}px`), r = () => {
|
|
1652
1659
|
l("change", i.value), i.value = !i.value;
|
|
1653
1660
|
};
|
|
1654
|
-
return (
|
|
1661
|
+
return (s, c) => {
|
|
1655
1662
|
const f = se;
|
|
1656
1663
|
return u(), C(f, {
|
|
1657
1664
|
size: a.value,
|
|
1658
|
-
onClick:
|
|
1665
|
+
onClick: r
|
|
1659
1666
|
}, {
|
|
1660
1667
|
default: p(() => [
|
|
1661
|
-
(u(), C(
|
|
1668
|
+
(u(), C(ve(o.value)))
|
|
1662
1669
|
]),
|
|
1663
1670
|
_: 1
|
|
1664
1671
|
}, 8, ["size"]);
|
|
1665
1672
|
};
|
|
1666
1673
|
}
|
|
1667
|
-
}),
|
|
1674
|
+
}), ho = (t) => (ze("data-v-3fc33b5d"), t = t(), De(), t), _o = /* @__PURE__ */ ho(() => /* @__PURE__ */ d("svg", {
|
|
1668
1675
|
preserveAspectRatio: "xMidYMid meet",
|
|
1669
1676
|
viewBox: "0 0 24 24",
|
|
1670
1677
|
width: "1.2em",
|
|
@@ -1675,7 +1682,7 @@ const ke = { render: fo }, ho = /* @__PURE__ */ L({
|
|
|
1675
1682
|
fill: "currentColor",
|
|
1676
1683
|
d: "m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"
|
|
1677
1684
|
})
|
|
1678
|
-
], -1)),
|
|
1685
|
+
], -1)), wo = /* @__PURE__ */ L({
|
|
1679
1686
|
__name: "MlDropdown",
|
|
1680
1687
|
props: {
|
|
1681
1688
|
icon: {},
|
|
@@ -1689,9 +1696,9 @@ const ke = { render: fo }, ho = /* @__PURE__ */ L({
|
|
|
1689
1696
|
const n = t, i = e, l = k(() => n.items.filter((a) => a.name !== n.current)), o = (a) => {
|
|
1690
1697
|
i("click", a);
|
|
1691
1698
|
};
|
|
1692
|
-
return (a,
|
|
1693
|
-
const
|
|
1694
|
-
return u(), C(
|
|
1699
|
+
return (a, r) => {
|
|
1700
|
+
const s = se, c = ot, f = nt, x = tt;
|
|
1701
|
+
return u(), C(x, { onCommand: o }, {
|
|
1695
1702
|
dropdown: p(() => [
|
|
1696
1703
|
v(f, null, {
|
|
1697
1704
|
default: p(() => [
|
|
@@ -1709,12 +1716,12 @@ const ke = { render: fo }, ho = /* @__PURE__ */ L({
|
|
|
1709
1716
|
})
|
|
1710
1717
|
]),
|
|
1711
1718
|
default: p(() => [
|
|
1712
|
-
v(
|
|
1719
|
+
v(s, {
|
|
1713
1720
|
size: "30",
|
|
1714
1721
|
class: "ml-dropdown-icon"
|
|
1715
1722
|
}, {
|
|
1716
1723
|
default: p(() => [
|
|
1717
|
-
|
|
1724
|
+
_o
|
|
1718
1725
|
]),
|
|
1719
1726
|
_: 1
|
|
1720
1727
|
})
|
|
@@ -1728,7 +1735,7 @@ const ke = { render: fo }, ho = /* @__PURE__ */ L({
|
|
|
1728
1735
|
for (const [i, l] of e)
|
|
1729
1736
|
n[i] = l;
|
|
1730
1737
|
return n;
|
|
1731
|
-
},
|
|
1738
|
+
}, yo = /* @__PURE__ */ ue(wo, [["__scopeId", "data-v-3fc33b5d"]]), bo = '<svg preserveAspectRatio="xMidYMid meet" viewBox="0 0 24 24" width="1.2em" height="1.2em" data-v-63d067da=""><path fill="currentColor" d="m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"></path></svg>', xo = /* @__PURE__ */ L({
|
|
1732
1739
|
__name: "MlLanguage",
|
|
1733
1740
|
props: {
|
|
1734
1741
|
languages: {},
|
|
@@ -1741,28 +1748,28 @@ const ke = { render: fo }, ho = /* @__PURE__ */ L({
|
|
|
1741
1748
|
const n = t, i = e, l = (o) => {
|
|
1742
1749
|
i("click", o);
|
|
1743
1750
|
};
|
|
1744
|
-
return (o, a) => (u(), C(
|
|
1745
|
-
icon:
|
|
1751
|
+
return (o, a) => (u(), C(yo, {
|
|
1752
|
+
icon: bo,
|
|
1746
1753
|
items: n.languages,
|
|
1747
1754
|
current: n.current,
|
|
1748
1755
|
onClick: l
|
|
1749
1756
|
}, null, 8, ["items", "current"]));
|
|
1750
1757
|
}
|
|
1751
|
-
}),
|
|
1752
|
-
function
|
|
1753
|
-
return u(), w("div",
|
|
1754
|
-
d("div",
|
|
1758
|
+
}), ko = {}, Mo = { class: "ml-status-bar" }, So = { class: "ml-status-bar-left" }, Co = { class: "ml-status-bar-right" };
|
|
1759
|
+
function Lo(t, e) {
|
|
1760
|
+
return u(), w("div", Mo, [
|
|
1761
|
+
d("div", So, [
|
|
1755
1762
|
ie(t.$slots, "left", {}, void 0, !0)
|
|
1756
1763
|
]),
|
|
1757
|
-
d("div",
|
|
1764
|
+
d("div", Co, [
|
|
1758
1765
|
ie(t.$slots, "right", {}, void 0, !0)
|
|
1759
1766
|
])
|
|
1760
1767
|
]);
|
|
1761
1768
|
}
|
|
1762
|
-
const
|
|
1769
|
+
const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf0"]]), Do = {
|
|
1763
1770
|
key: 0,
|
|
1764
1771
|
class: "ml-toolbar-button-text"
|
|
1765
|
-
},
|
|
1772
|
+
}, Bo = /* @__PURE__ */ L({
|
|
1766
1773
|
__name: "MlToolBar",
|
|
1767
1774
|
props: {
|
|
1768
1775
|
items: {},
|
|
@@ -1781,18 +1788,18 @@ const Do = /* @__PURE__ */ ue(Mo, [["render", zo], ["__scopeId", "data-v-d6a59cf
|
|
|
1781
1788
|
return 50;
|
|
1782
1789
|
}
|
|
1783
1790
|
return 70;
|
|
1784
|
-
}),
|
|
1791
|
+
}), r = (f) => f.description ? f.description : f.text, s = k(() => n.size === "large"), c = (f) => {
|
|
1785
1792
|
i("click", f);
|
|
1786
1793
|
};
|
|
1787
|
-
return (f,
|
|
1788
|
-
const g = se, h =
|
|
1794
|
+
return (f, x) => {
|
|
1795
|
+
const g = se, h = it, _ = at, y = lt;
|
|
1789
1796
|
return u(), C(y, {
|
|
1790
1797
|
class: Le(l.value)
|
|
1791
1798
|
}, {
|
|
1792
1799
|
default: p(() => [
|
|
1793
1800
|
(u(!0), w(K, null, X(f.items, (S, $) => (u(), C(_, {
|
|
1794
1801
|
key: S.text,
|
|
1795
|
-
content:
|
|
1802
|
+
content: r(S),
|
|
1796
1803
|
"hide-after": 0
|
|
1797
1804
|
}, {
|
|
1798
1805
|
default: p(() => [
|
|
@@ -1806,11 +1813,11 @@ const Do = /* @__PURE__ */ ue(Mo, [["render", zo], ["__scopeId", "data-v-d6a59cf
|
|
|
1806
1813
|
d("div", null, [
|
|
1807
1814
|
v(g, { size: o.value }, {
|
|
1808
1815
|
default: p(() => [
|
|
1809
|
-
(u(), C(
|
|
1816
|
+
(u(), C(ve(S.icon)))
|
|
1810
1817
|
]),
|
|
1811
1818
|
_: 2
|
|
1812
1819
|
}, 1032, ["size"]),
|
|
1813
|
-
|
|
1820
|
+
s.value ? (u(), w("div", Do, D(S.text), 1)) : U("", !0)
|
|
1814
1821
|
])
|
|
1815
1822
|
]),
|
|
1816
1823
|
_: 2
|
|
@@ -1823,35 +1830,35 @@ const Do = /* @__PURE__ */ ue(Mo, [["render", zo], ["__scopeId", "data-v-d6a59cf
|
|
|
1823
1830
|
}, 8, ["class"]);
|
|
1824
1831
|
};
|
|
1825
1832
|
}
|
|
1826
|
-
}),
|
|
1827
|
-
function
|
|
1828
|
-
const i =
|
|
1833
|
+
}), To = /* @__PURE__ */ ue(Bo, [["__scopeId", "data-v-3eed2087"]]), Me = 20;
|
|
1834
|
+
function Eo(t, e, n) {
|
|
1835
|
+
const i = b(!1), l = (s) => {
|
|
1829
1836
|
if (n.value && t.value) {
|
|
1830
|
-
const c = t.value.getBoundingClientRect(), f =
|
|
1837
|
+
const c = t.value.getBoundingClientRect(), f = s.clientX < c.left || s.clientX > c.right || s.clientY < c.top || s.clientY > c.bottom;
|
|
1831
1838
|
i.value = !f;
|
|
1832
1839
|
}
|
|
1833
1840
|
}, o = () => {
|
|
1834
1841
|
n.value && (i.value = !0);
|
|
1835
1842
|
}, a = () => {
|
|
1836
1843
|
e.value && e.value.addEventListener("mousemove", o), t.value && t.value.addEventListener("mousemove", o);
|
|
1837
|
-
},
|
|
1844
|
+
}, r = () => {
|
|
1838
1845
|
e.value && e.value.removeEventListener("mousemove", o), t.value && t.value.removeEventListener("mousemove", o);
|
|
1839
1846
|
};
|
|
1840
|
-
return
|
|
1847
|
+
return O(() => {
|
|
1841
1848
|
window.addEventListener("mousemove", l);
|
|
1842
1849
|
}), ee(() => {
|
|
1843
1850
|
window.removeEventListener("mousemove", l);
|
|
1844
|
-
}), E(n, (
|
|
1845
|
-
|
|
1846
|
-
}), E(t, (
|
|
1847
|
-
|
|
1851
|
+
}), E(n, (s) => {
|
|
1852
|
+
s && (i.value = !1);
|
|
1853
|
+
}), E(t, (s) => {
|
|
1854
|
+
s ? a() : r();
|
|
1848
1855
|
}), { autoOpened: i };
|
|
1849
1856
|
}
|
|
1850
|
-
function
|
|
1851
|
-
const i =
|
|
1857
|
+
function $o(t, e, n) {
|
|
1858
|
+
const i = b(!1), l = b(null), o = b(null), a = { x: 0, y: 0 }, r = k(() => l.value == null || o.value == null ? { x: 0, y: 0 } : {
|
|
1852
1859
|
x: l.value.x - o.value.x,
|
|
1853
1860
|
y: l.value.y - o.value.y
|
|
1854
|
-
}),
|
|
1861
|
+
}), s = () => {
|
|
1855
1862
|
if (t.value) {
|
|
1856
1863
|
const _ = t.value.getBoundingClientRect();
|
|
1857
1864
|
o.value = {
|
|
@@ -1863,16 +1870,16 @@ function Vo(t, e, n) {
|
|
|
1863
1870
|
};
|
|
1864
1871
|
}
|
|
1865
1872
|
}, c = () => {
|
|
1866
|
-
t.value && t.value.addEventListener("mousedown",
|
|
1873
|
+
t.value && t.value.addEventListener("mousedown", x);
|
|
1867
1874
|
}, f = () => {
|
|
1868
|
-
t.value && t.value.removeEventListener("mousedown",
|
|
1869
|
-
},
|
|
1875
|
+
t.value && t.value.removeEventListener("mousedown", x);
|
|
1876
|
+
}, x = (_) => {
|
|
1870
1877
|
if (t.value != null) {
|
|
1871
1878
|
if (e && e.value) {
|
|
1872
1879
|
const y = e.value.getBoundingClientRect();
|
|
1873
1880
|
if (_.clientX < y.left || _.clientX > y.right || _.clientY < y.top || _.clientY > y.bottom) return;
|
|
1874
1881
|
}
|
|
1875
|
-
i.value = !0, a.x = _.clientX, a.y = _.clientY,
|
|
1882
|
+
i.value = !0, a.x = _.clientX, a.y = _.clientY, s(), document.addEventListener("mousemove", g), document.addEventListener("mouseup", h);
|
|
1876
1883
|
}
|
|
1877
1884
|
}, g = (_) => {
|
|
1878
1885
|
if (i.value && o.value && l.value) {
|
|
@@ -1898,26 +1905,26 @@ function Vo(t, e, n) {
|
|
|
1898
1905
|
}, h = () => {
|
|
1899
1906
|
i.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", h);
|
|
1900
1907
|
};
|
|
1901
|
-
return
|
|
1902
|
-
t.value && (
|
|
1908
|
+
return O(() => {
|
|
1909
|
+
t.value && (s(), c());
|
|
1903
1910
|
}), ee(() => {
|
|
1904
|
-
t.value && t.value.removeEventListener("mousedown",
|
|
1911
|
+
t.value && t.value.removeEventListener("mousedown", x);
|
|
1905
1912
|
}), E(t, (_) => {
|
|
1906
|
-
_ ? (
|
|
1913
|
+
_ ? (s(), c()) : f();
|
|
1907
1914
|
}), {
|
|
1908
1915
|
isDragging: i,
|
|
1909
|
-
movement:
|
|
1916
|
+
movement: r,
|
|
1910
1917
|
position: l
|
|
1911
1918
|
};
|
|
1912
1919
|
}
|
|
1913
|
-
function
|
|
1914
|
-
const i =
|
|
1920
|
+
function Vo(t, e, n) {
|
|
1921
|
+
const i = b(!1), l = b("left"), { isDragging: o, movement: a, position: r } = $o(
|
|
1915
1922
|
t,
|
|
1916
1923
|
e,
|
|
1917
1924
|
n
|
|
1918
1925
|
);
|
|
1919
|
-
return E(a, (
|
|
1920
|
-
if (
|
|
1926
|
+
return E(a, (s) => {
|
|
1927
|
+
if (s && t.value) {
|
|
1921
1928
|
const c = t.value.getBoundingClientRect();
|
|
1922
1929
|
c.left <= n.value.offset.value.left ? (l.value = "left", i.value = !0) : window.innerWidth - c.left - c.width <= n.value.offset.value.right ? (l.value = "right", i.value = !0) : i.value = !1;
|
|
1923
1930
|
}
|
|
@@ -1926,36 +1933,36 @@ function Ao(t, e, n) {
|
|
|
1926
1933
|
orientation: l,
|
|
1927
1934
|
isDragging: o,
|
|
1928
1935
|
movement: a,
|
|
1929
|
-
position:
|
|
1936
|
+
position: r
|
|
1930
1937
|
};
|
|
1931
1938
|
}
|
|
1932
|
-
function
|
|
1933
|
-
const l =
|
|
1934
|
-
return E(t, (
|
|
1939
|
+
function Ao(t, e, n, i) {
|
|
1940
|
+
const l = b(null), o = b(null), a = b(null), r = b(null);
|
|
1941
|
+
return E(t, (s, c) => {
|
|
1935
1942
|
l.value = c;
|
|
1936
|
-
}), E(e, (
|
|
1943
|
+
}), E(e, (s, c) => {
|
|
1937
1944
|
o.value = c;
|
|
1938
|
-
}), E(n, (
|
|
1945
|
+
}), E(n, (s, c) => {
|
|
1939
1946
|
a.value = c;
|
|
1940
|
-
}), E(i, (
|
|
1941
|
-
|
|
1947
|
+
}), E(i, (s, c) => {
|
|
1948
|
+
r.value = c;
|
|
1942
1949
|
}), {
|
|
1943
1950
|
lastLeft: l,
|
|
1944
1951
|
lastTop: o,
|
|
1945
1952
|
lastWidth: a,
|
|
1946
|
-
lastHeight:
|
|
1953
|
+
lastHeight: r
|
|
1947
1954
|
};
|
|
1948
1955
|
}
|
|
1949
|
-
function
|
|
1950
|
-
const l =
|
|
1951
|
-
return E([a,
|
|
1956
|
+
function Io(t, e, n, i) {
|
|
1957
|
+
const l = b(t.value.width), o = b(t.value.left), a = k(() => t.value.width), r = k(() => t.value.left), s = k(() => n.value ? n.value.x : null);
|
|
1958
|
+
return E([a, r], ([c, f]) => {
|
|
1952
1959
|
(l.value == null || o.value == null || e.value) && (l.value = c, o.value = f);
|
|
1953
|
-
}), E(
|
|
1960
|
+
}), E(s, (c) => {
|
|
1954
1961
|
i.value && n.value && (o.value = c);
|
|
1955
1962
|
}), { left: o, width: l };
|
|
1956
1963
|
}
|
|
1957
|
-
function
|
|
1958
|
-
const n =
|
|
1964
|
+
function Fo(t, e = b({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
1965
|
+
const n = b({});
|
|
1959
1966
|
let i = !1;
|
|
1960
1967
|
const l = () => {
|
|
1961
1968
|
if (!i && t.value) {
|
|
@@ -1963,7 +1970,7 @@ function Po(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
1963
1970
|
n.value.left = Math.max(o.left, e.value.left), n.value.top = Math.max(o.top, e.value.top), n.value.width = o.width, n.value.height = o.height, i = !0;
|
|
1964
1971
|
}
|
|
1965
1972
|
};
|
|
1966
|
-
return
|
|
1973
|
+
return O(() => {
|
|
1967
1974
|
t.value && l();
|
|
1968
1975
|
}), E(t, (o) => {
|
|
1969
1976
|
o && l();
|
|
@@ -1972,19 +1979,19 @@ function Po(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
1972
1979
|
initialRect: n
|
|
1973
1980
|
};
|
|
1974
1981
|
}
|
|
1975
|
-
function
|
|
1976
|
-
const { initialRect: o } =
|
|
1977
|
-
let
|
|
1978
|
-
const g = 5, h =
|
|
1982
|
+
function Po(t, e = b(!1), n = b(!1), i = b({ left: 0, right: 0, top: 0, bottom: 0 }), l = { width: 20, height: 40 }) {
|
|
1983
|
+
const { initialRect: o } = Fo(t, i), a = b(!1);
|
|
1984
|
+
let r = 0, s = 0, c = 0, f = 0, x = 0;
|
|
1985
|
+
const g = 5, h = b(null), _ = (V) => {
|
|
1979
1986
|
if (!(!t.value || e.value))
|
|
1980
1987
|
if (a.value) {
|
|
1981
|
-
const T = V.clientX - f, G = V.clientY -
|
|
1988
|
+
const T = V.clientX - f, G = V.clientY - x;
|
|
1982
1989
|
if (h.value === "left" || h.value === "left-bottom-corner") {
|
|
1983
|
-
const P =
|
|
1984
|
-
P > l.width && (o.value.width = P, o.value.left =
|
|
1990
|
+
const P = s - T;
|
|
1991
|
+
P > l.width && (o.value.width = P, o.value.left = r + T, t.value.style.left = o.value.left + "px", t.value.style.width = o.value.width + "px");
|
|
1985
1992
|
}
|
|
1986
1993
|
if (h.value === "right" || h.value === "right-bottom-corner") {
|
|
1987
|
-
const P =
|
|
1994
|
+
const P = s + T;
|
|
1988
1995
|
P > l.width && (o.value.width = P, t.value.style.width = o.value.width + "px");
|
|
1989
1996
|
}
|
|
1990
1997
|
if (h.value === "bottom" || h.value === "left-bottom-corner" || h.value === "right-bottom-corner") {
|
|
@@ -1992,13 +1999,13 @@ function Ro(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom:
|
|
|
1992
1999
|
P > l.height && (o.value.height = P, t.value.style.height = o.value.height + "px");
|
|
1993
2000
|
}
|
|
1994
2001
|
} else {
|
|
1995
|
-
const T = t.value.getBoundingClientRect(), G = V.clientX - T.left, P = V.clientY - T.top, z = G <= g, A = G >= T.width - g,
|
|
1996
|
-
z &&
|
|
2002
|
+
const T = t.value.getBoundingClientRect(), G = V.clientX - T.left, P = V.clientY - T.top, z = G <= g, A = G >= T.width - g, N = P >= T.height - g;
|
|
2003
|
+
z && N && n.value ? (t.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : A && N && !n.value ? (t.value.style.cursor = "nwse-resize", h.value = "right-bottom-corner") : z && n.value ? (t.value.style.cursor = "ew-resize", h.value = "left") : A && !n.value ? (t.value.style.cursor = "ew-resize", h.value = "right") : N ? (t.value.style.cursor = "ns-resize", h.value = "bottom") : (t.value.style.cursor = "", h.value = null);
|
|
1997
2004
|
}
|
|
1998
2005
|
}, y = (V) => {
|
|
1999
2006
|
if (!t.value || !h.value) return;
|
|
2000
2007
|
const T = t.value.getBoundingClientRect();
|
|
2001
|
-
f = V.clientX,
|
|
2008
|
+
f = V.clientX, x = V.clientY, s = T.width, c = T.height, r = T.left, o.value.width = s, o.value.height = c, o.value.left = T.left, o.value.top = T.top, a.value = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", S);
|
|
2002
2009
|
}, S = () => {
|
|
2003
2010
|
a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", S);
|
|
2004
2011
|
}, $ = () => {
|
|
@@ -2006,7 +2013,7 @@ function Ro(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom:
|
|
|
2006
2013
|
}, F = () => {
|
|
2007
2014
|
t.value && (t.value.addEventListener("mousedown", y), t.value.addEventListener("mousemove", _));
|
|
2008
2015
|
};
|
|
2009
|
-
return
|
|
2016
|
+
return O(() => {
|
|
2010
2017
|
t.value && F();
|
|
2011
2018
|
}), Be(() => {
|
|
2012
2019
|
$();
|
|
@@ -2014,25 +2021,25 @@ function Ro(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom:
|
|
|
2014
2021
|
V ? F() : $();
|
|
2015
2022
|
}), { rect: o, isResizing: a };
|
|
2016
2023
|
}
|
|
2017
|
-
function
|
|
2024
|
+
function Ro(t, e, n, i) {
|
|
2018
2025
|
const l = () => {
|
|
2019
2026
|
if (t.value) {
|
|
2020
|
-
const
|
|
2021
|
-
e.value ?
|
|
2027
|
+
const s = t.value;
|
|
2028
|
+
e.value ? s.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : s.style.transition = "width 0.3s ease";
|
|
2022
2029
|
}
|
|
2023
2030
|
}, o = () => {
|
|
2024
2031
|
t.value && (t.value.style.transition = "");
|
|
2025
2032
|
}, a = () => {
|
|
2026
2033
|
t.value && t.value.removeEventListener("transitionend", o);
|
|
2027
|
-
},
|
|
2034
|
+
}, r = () => {
|
|
2028
2035
|
t.value && t.value.addEventListener("transitionend", o);
|
|
2029
2036
|
};
|
|
2030
|
-
|
|
2037
|
+
O(() => {
|
|
2031
2038
|
t.value && t.value.addEventListener("transitionend", o);
|
|
2032
2039
|
}), Be(() => {
|
|
2033
2040
|
t.value && t.value.removeEventListener("transitionend", o);
|
|
2034
|
-
}), E(t, (
|
|
2035
|
-
|
|
2041
|
+
}), E(t, (s) => {
|
|
2042
|
+
s ? r() : a();
|
|
2036
2043
|
}), E(n, () => {
|
|
2037
2044
|
l();
|
|
2038
2045
|
}), E(i, () => {
|
|
@@ -2040,48 +2047,48 @@ function Oo(t, e, n, i) {
|
|
|
2040
2047
|
});
|
|
2041
2048
|
}
|
|
2042
2049
|
function No(t, e, n, i) {
|
|
2043
|
-
const l =
|
|
2050
|
+
const l = b(window.innerWidth), o = b(window.innerHeight), { docked: a, orientation: r, movement: s, position: c, isDragging: f } = Vo(
|
|
2044
2051
|
t,
|
|
2045
2052
|
e,
|
|
2046
2053
|
i
|
|
2047
|
-
),
|
|
2054
|
+
), x = k(() => r.value === "right"), { rect: g, isResizing: h } = Po(
|
|
2048
2055
|
t,
|
|
2049
2056
|
n,
|
|
2050
|
-
|
|
2057
|
+
x,
|
|
2051
2058
|
i.value.offset
|
|
2052
|
-
), { width: _, left: y } =
|
|
2059
|
+
), { width: _, left: y } = Io(
|
|
2053
2060
|
g,
|
|
2054
2061
|
h,
|
|
2055
2062
|
c,
|
|
2056
2063
|
f
|
|
2057
|
-
), { lastTop: S, lastHeight: $ } =
|
|
2064
|
+
), { lastTop: S, lastHeight: $ } = Ao(
|
|
2058
2065
|
k(() => g.value.left),
|
|
2059
2066
|
k(() => g.value.top),
|
|
2060
2067
|
k(() => g.value.width),
|
|
2061
2068
|
k(() => g.value.height)
|
|
2062
|
-
), { autoOpened: F } =
|
|
2063
|
-
|
|
2069
|
+
), { autoOpened: F } = Eo(t, e, n);
|
|
2070
|
+
Ro(t, x, n, F);
|
|
2064
2071
|
const V = (z) => {
|
|
2065
2072
|
if (t.value) {
|
|
2066
|
-
const A = t.value.getBoundingClientRect(),
|
|
2067
|
-
if (
|
|
2068
|
-
g.value.left =
|
|
2073
|
+
const A = t.value.getBoundingClientRect(), N = A.left + z;
|
|
2074
|
+
if (x.value) {
|
|
2075
|
+
g.value.left = N;
|
|
2069
2076
|
const de = window.innerWidth - A.width - A.left;
|
|
2070
|
-
A.left <= 0 && de >= 0 && z < 0 && (g.value.left = Math.max(0,
|
|
2077
|
+
A.left <= 0 && de >= 0 && z < 0 && (g.value.left = Math.max(0, N)), window.innerWidth - A.width <= 0 && (g.value.left = window.innerWidth - A.width);
|
|
2071
2078
|
} else
|
|
2072
|
-
A.left + A.width >= window.innerWidth && z < 0 && (g.value.left = Math.max(0,
|
|
2079
|
+
A.left + A.width >= window.innerWidth && z < 0 && (g.value.left = Math.max(0, N));
|
|
2073
2080
|
}
|
|
2074
2081
|
}, T = () => {
|
|
2075
2082
|
const z = window.innerWidth - l.value;
|
|
2076
2083
|
l.value = window.innerWidth, o.value = window.innerHeight, V(z);
|
|
2077
2084
|
};
|
|
2078
|
-
|
|
2085
|
+
O(() => {
|
|
2079
2086
|
window.addEventListener("resize", T);
|
|
2080
2087
|
}), ee(() => {
|
|
2081
2088
|
window.removeEventListener("resize", T);
|
|
2082
2089
|
});
|
|
2083
2090
|
const G = (z) => {
|
|
2084
|
-
z ? (g.value.width = Me,
|
|
2091
|
+
z ? (g.value.width = Me, x.value && y.value && _.value && (g.value.left = y.value + _.value - Me)) : (g.value.width = _.value, x.value && y.value && _.value && (g.value.left = y.value));
|
|
2085
2092
|
}, P = () => {
|
|
2086
2093
|
a.value ? (g.value.top = i.value.offset.value.top, g.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (g.value.top = S.value, g.value.height = $.value);
|
|
2087
2094
|
};
|
|
@@ -2091,14 +2098,14 @@ function No(t, e, n, i) {
|
|
|
2091
2098
|
G(z);
|
|
2092
2099
|
}), E(F, (z) => {
|
|
2093
2100
|
n.value && !f.value && G(!z);
|
|
2094
|
-
}), E(
|
|
2101
|
+
}), E(s, (z) => {
|
|
2095
2102
|
if (z && t.value) {
|
|
2096
2103
|
const A = t.value.getBoundingClientRect();
|
|
2097
2104
|
g.value.left = A.left, g.value.top = A.top;
|
|
2098
2105
|
}
|
|
2099
|
-
}), { rect: g, orientation:
|
|
2106
|
+
}), { rect: g, orientation: r, reversed: x };
|
|
2100
2107
|
}
|
|
2101
|
-
const
|
|
2108
|
+
const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ */ Oo(() => /* @__PURE__ */ d("svg", {
|
|
2102
2109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2103
2110
|
width: "1em",
|
|
2104
2111
|
height: "1em",
|
|
@@ -2108,7 +2115,7 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2108
2115
|
fill: "currentColor",
|
|
2109
2116
|
d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
2110
2117
|
})
|
|
2111
|
-
], -1)),
|
|
2118
|
+
], -1)), Go = { class: "ml-tool-palette-title" }, qo = { class: "ml-tool-palette-content" }, Wo = /* @__PURE__ */ L({
|
|
2112
2119
|
__name: "MlToolPalette",
|
|
2113
2120
|
props: /* @__PURE__ */ Z({
|
|
2114
2121
|
title: { default: "" },
|
|
@@ -2122,8 +2129,8 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2122
2129
|
}),
|
|
2123
2130
|
emits: /* @__PURE__ */ Z(["close"], ["update:modelValue"]),
|
|
2124
2131
|
setup(t, { emit: e }) {
|
|
2125
|
-
const n = t, i =
|
|
2126
|
-
offset:
|
|
2132
|
+
const n = t, i = ge(t, "modelValue"), l = e, o = b(!1), a = b(null), r = b(null), s = k(() => ({
|
|
2133
|
+
offset: b({
|
|
2127
2134
|
left: n.leftOffset,
|
|
2128
2135
|
right: n.rightOffset,
|
|
2129
2136
|
top: n.topOffset,
|
|
@@ -2132,13 +2139,13 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2132
2139
|
})), {
|
|
2133
2140
|
rect: c,
|
|
2134
2141
|
orientation: f,
|
|
2135
|
-
reversed:
|
|
2136
|
-
} = No(
|
|
2142
|
+
reversed: x
|
|
2143
|
+
} = No(r, a, o, s), g = k(() => ({
|
|
2137
2144
|
left: `${c.value.left}px`,
|
|
2138
2145
|
top: `${c.value.top}px`,
|
|
2139
2146
|
width: `${c.value.width}px`,
|
|
2140
2147
|
height: `${c.value.height}px`
|
|
2141
|
-
})), h = k(() =>
|
|
2148
|
+
})), h = k(() => x.value ? {
|
|
2142
2149
|
borderLeft: "1px solid var(--el-border-color)",
|
|
2143
2150
|
borderRight: null
|
|
2144
2151
|
} : {
|
|
@@ -2146,7 +2153,7 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2146
2153
|
borderRight: "1px solid var(--el-border-color)"
|
|
2147
2154
|
}), _ = () => {
|
|
2148
2155
|
i.value = !1;
|
|
2149
|
-
const y =
|
|
2156
|
+
const y = r.value;
|
|
2150
2157
|
l("close", {
|
|
2151
2158
|
x: y ? y.clientLeft : 0,
|
|
2152
2159
|
y: y ? y.clientTop : 0
|
|
@@ -2157,7 +2164,7 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2157
2164
|
return i.value ? (u(), w("div", {
|
|
2158
2165
|
key: 0,
|
|
2159
2166
|
ref_key: "toolPaletteElement",
|
|
2160
|
-
ref:
|
|
2167
|
+
ref: r,
|
|
2161
2168
|
style: pe([g.value]),
|
|
2162
2169
|
class: "ml-tool-palette-dialog"
|
|
2163
2170
|
}, [
|
|
@@ -2176,17 +2183,17 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2176
2183
|
onClick: _
|
|
2177
2184
|
}, {
|
|
2178
2185
|
default: p(() => [
|
|
2179
|
-
|
|
2186
|
+
Ho
|
|
2180
2187
|
]),
|
|
2181
2188
|
_: 1
|
|
2182
2189
|
}),
|
|
2183
|
-
v(
|
|
2190
|
+
v(fo, {
|
|
2184
2191
|
class: "ml-tool-palette-dialog-icon",
|
|
2185
2192
|
modelValue: o.value,
|
|
2186
2193
|
"onUpdate:modelValue": S[0] || (S[0] = (F) => o.value = F),
|
|
2187
|
-
reverse: m(
|
|
2194
|
+
reverse: m(x)
|
|
2188
2195
|
}, null, 8, ["modelValue", "reverse"]),
|
|
2189
|
-
d("span",
|
|
2196
|
+
d("span", Go, D(n.title), 1)
|
|
2190
2197
|
], 4),
|
|
2191
2198
|
d("div", qo, [
|
|
2192
2199
|
ie(y.$slots, "default", {}, void 0, !0)
|
|
@@ -2195,23 +2202,23 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2195
2202
|
], 4)) : U("", !0);
|
|
2196
2203
|
};
|
|
2197
2204
|
}
|
|
2198
|
-
}),
|
|
2205
|
+
}), Uo = /* @__PURE__ */ ue(Wo, [["__scopeId", "data-v-11a64c54"]]), jo = { class: "ml-layer-list-cell" }, Yo = { class: "ml-layer-list-cell" }, Ko = /* @__PURE__ */ L({
|
|
2199
2206
|
__name: "MlLayerList",
|
|
2200
2207
|
props: {
|
|
2201
2208
|
editor: {}
|
|
2202
2209
|
},
|
|
2203
2210
|
setup(t) {
|
|
2204
|
-
const { t: e } = R(), n = t, i =
|
|
2205
|
-
o.value =
|
|
2206
|
-
},
|
|
2211
|
+
const { t: e } = R(), n = t, i = gt(n.editor), l = b(), o = b([]), a = (s) => {
|
|
2212
|
+
o.value = s;
|
|
2213
|
+
}, r = (s) => {
|
|
2207
2214
|
const c = n.editor.curDocument.database.tables.layerTable.getAt(
|
|
2208
|
-
|
|
2215
|
+
s.name
|
|
2209
2216
|
);
|
|
2210
|
-
c && (c.isOff = !
|
|
2217
|
+
c && (c.isOff = !s.isOn);
|
|
2211
2218
|
};
|
|
2212
|
-
return (
|
|
2213
|
-
const f = M("el-table-column"),
|
|
2214
|
-
return u(), C(m(
|
|
2219
|
+
return (s, c) => {
|
|
2220
|
+
const f = M("el-table-column"), x = M("el-checkbox"), g = M("el-tag");
|
|
2221
|
+
return u(), C(m(Ze), {
|
|
2215
2222
|
ref_key: "multipleTableRef",
|
|
2216
2223
|
ref: l,
|
|
2217
2224
|
data: m(i),
|
|
@@ -2236,11 +2243,11 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2236
2243
|
width: "50"
|
|
2237
2244
|
}, {
|
|
2238
2245
|
default: p((h) => [
|
|
2239
|
-
d("div",
|
|
2240
|
-
v(
|
|
2246
|
+
d("div", jo, [
|
|
2247
|
+
v(x, {
|
|
2241
2248
|
modelValue: h.row.isOn,
|
|
2242
2249
|
"onUpdate:modelValue": (_) => h.row.isOn = _,
|
|
2243
|
-
onChange: (_) =>
|
|
2250
|
+
onChange: (_) => r(h.row)
|
|
2244
2251
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
2245
2252
|
])
|
|
2246
2253
|
]),
|
|
@@ -2252,7 +2259,7 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2252
2259
|
width: "70"
|
|
2253
2260
|
}, {
|
|
2254
2261
|
default: p((h) => [
|
|
2255
|
-
d("div",
|
|
2262
|
+
d("div", Yo, [
|
|
2256
2263
|
v(g, {
|
|
2257
2264
|
color: h.row.color,
|
|
2258
2265
|
class: "ml-layer-list-color"
|
|
@@ -2266,14 +2273,14 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2266
2273
|
}, 8, ["data"]);
|
|
2267
2274
|
};
|
|
2268
2275
|
}
|
|
2269
|
-
}),
|
|
2276
|
+
}), Xo = { class: "ml-layer-list-wrapper" }, Qo = /* @__PURE__ */ L({
|
|
2270
2277
|
__name: "MlLayerManager",
|
|
2271
2278
|
props: {
|
|
2272
2279
|
editor: {}
|
|
2273
2280
|
},
|
|
2274
2281
|
setup(t) {
|
|
2275
2282
|
const e = t;
|
|
2276
|
-
return (n, i) => (u(), C(m(
|
|
2283
|
+
return (n, i) => (u(), C(m(Uo), {
|
|
2277
2284
|
class: "ml-layer-manager",
|
|
2278
2285
|
modelValue: m(Q).dialogs.layerManager,
|
|
2279
2286
|
"onUpdate:modelValue": i[0] || (i[0] = (l) => m(Q).dialogs.layerManager = l),
|
|
@@ -2281,8 +2288,8 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2281
2288
|
"bottom-offset": 30
|
|
2282
2289
|
}, {
|
|
2283
2290
|
default: p(() => [
|
|
2284
|
-
d("div",
|
|
2285
|
-
v(
|
|
2291
|
+
d("div", Xo, [
|
|
2292
|
+
v(Ko, {
|
|
2286
2293
|
editor: e.editor
|
|
2287
2294
|
}, null, 8, ["editor"])
|
|
2288
2295
|
])
|
|
@@ -2290,22 +2297,22 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2290
2297
|
_: 1
|
|
2291
2298
|
}, 8, ["modelValue"]));
|
|
2292
2299
|
}
|
|
2293
|
-
}),
|
|
2300
|
+
}), Zo = /* @__PURE__ */ H(Qo, [["__scopeId", "data-v-d49ba2cb"]]), Jo = { class: "autocomplete-container" }, el = /* @__PURE__ */ L({
|
|
2294
2301
|
__name: "MlCommandLine",
|
|
2295
2302
|
setup(t) {
|
|
2296
|
-
const { t: e } = R(), n = ce(), i =
|
|
2297
|
-
const
|
|
2303
|
+
const { t: e } = R(), n = ce(), i = dt(), l = b(""), o = b(""), a = (c, f) => {
|
|
2304
|
+
const x = c ? i.filter(
|
|
2298
2305
|
(g) => g.commandName.startsWith(c.toLowerCase())
|
|
2299
2306
|
) : i;
|
|
2300
|
-
f(
|
|
2301
|
-
},
|
|
2307
|
+
f(x);
|
|
2308
|
+
}, r = () => {
|
|
2302
2309
|
l.value && (B.instance.sendStringToExecute(l.value), o.value = l.value, l.value = "");
|
|
2303
|
-
},
|
|
2304
|
-
return (c, f) => (u(), w("div",
|
|
2305
|
-
m(n).isShowCommandLine ? (u(), C(m(
|
|
2310
|
+
}, s = (c, f) => `${f}: ${fe(c, f)}`;
|
|
2311
|
+
return (c, f) => (u(), w("div", Jo, [
|
|
2312
|
+
m(n).isShowCommandLine ? (u(), C(m(Je), {
|
|
2306
2313
|
key: 0,
|
|
2307
2314
|
modelValue: l.value,
|
|
2308
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
2315
|
+
"onUpdate:modelValue": f[0] || (f[0] = (x) => l.value = x),
|
|
2309
2316
|
"value-key": "commandName",
|
|
2310
2317
|
clearable: "",
|
|
2311
2318
|
"fetch-suggestions": a,
|
|
@@ -2313,12 +2320,12 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2313
2320
|
debounce: 300,
|
|
2314
2321
|
"trigger-on-focus": "",
|
|
2315
2322
|
"fit-input-width": !1,
|
|
2316
|
-
onSelect:
|
|
2317
|
-
onKeydown:
|
|
2323
|
+
onSelect: r,
|
|
2324
|
+
onKeydown: Oe(r, ["enter"]),
|
|
2318
2325
|
class: "autocomplete-input"
|
|
2319
2326
|
}, {
|
|
2320
|
-
default: p(({ item:
|
|
2321
|
-
d("div", null, D(
|
|
2327
|
+
default: p(({ item: x }) => [
|
|
2328
|
+
d("div", null, D(s(x.groupName, x.commandName)), 1)
|
|
2322
2329
|
]),
|
|
2323
2330
|
prepend: p(() => [
|
|
2324
2331
|
I(D(`> ${o.value}`), 1)
|
|
@@ -2327,21 +2334,21 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2327
2334
|
}, 8, ["modelValue", "placeholder"])) : U("", !0)
|
|
2328
2335
|
]));
|
|
2329
2336
|
}
|
|
2330
|
-
}),
|
|
2337
|
+
}), tl = /* @__PURE__ */ H(el, [["__scopeId", "data-v-082845cb"]]), nl = /* @__PURE__ */ L({
|
|
2331
2338
|
__name: "MlEntityInfo",
|
|
2332
2339
|
setup(t) {
|
|
2333
2340
|
Ce((g) => ({
|
|
2334
2341
|
"2d5cc4ca": a.value,
|
|
2335
|
-
"11fa7d7e":
|
|
2342
|
+
"11fa7d7e": r.value
|
|
2336
2343
|
}));
|
|
2337
|
-
const { t: e } = R(), n =
|
|
2344
|
+
const { t: e } = R(), n = b(!1), i = b(-1), l = b(-1), o = b(null), a = k(() => i.value + "px"), r = k(() => l.value + "px"), s = k(() => {
|
|
2338
2345
|
const g = B.instance.curDocument.database;
|
|
2339
2346
|
if (o.value) {
|
|
2340
2347
|
const h = g.tables.blockTable.modelSpace.getIdAt(o.value);
|
|
2341
2348
|
if (h)
|
|
2342
2349
|
return {
|
|
2343
|
-
type:
|
|
2344
|
-
color:
|
|
2350
|
+
type: Lt(h),
|
|
2351
|
+
color: zt(h.color.toString()),
|
|
2345
2352
|
layer: h.layer,
|
|
2346
2353
|
lineType: h.lineType
|
|
2347
2354
|
};
|
|
@@ -2352,17 +2359,17 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2352
2359
|
layer: "",
|
|
2353
2360
|
lineType: ""
|
|
2354
2361
|
};
|
|
2355
|
-
}), c = k(() => n.value &&
|
|
2362
|
+
}), c = k(() => n.value && s.value.type != ""), f = (g) => {
|
|
2356
2363
|
o.value = g.id, i.value = g.x, l.value = g.y, n.value = !0;
|
|
2357
|
-
},
|
|
2364
|
+
}, x = () => {
|
|
2358
2365
|
n.value = !1;
|
|
2359
2366
|
};
|
|
2360
|
-
return
|
|
2367
|
+
return O(() => {
|
|
2361
2368
|
const g = B.instance.curView.events;
|
|
2362
|
-
g.hover.addEventListener(f), g.unhover.addEventListener(
|
|
2369
|
+
g.hover.addEventListener(f), g.unhover.addEventListener(x);
|
|
2363
2370
|
}), ee(() => {
|
|
2364
2371
|
const g = B.instance.curView.events;
|
|
2365
|
-
g.hover.removeEventListener(f), g.unhover.removeEventListener(
|
|
2372
|
+
g.hover.removeEventListener(f), g.unhover.removeEventListener(x);
|
|
2366
2373
|
}), (g, h) => {
|
|
2367
2374
|
const _ = M("el-text"), y = M("el-col"), S = M("el-row"), $ = M("el-card");
|
|
2368
2375
|
return c.value ? (u(), C($, {
|
|
@@ -2379,7 +2386,7 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2379
2386
|
class: "ml-entity-info-title"
|
|
2380
2387
|
}, {
|
|
2381
2388
|
default: p(() => [
|
|
2382
|
-
I(D(
|
|
2389
|
+
I(D(s.value.type), 1)
|
|
2383
2390
|
]),
|
|
2384
2391
|
_: 1
|
|
2385
2392
|
})
|
|
@@ -2406,7 +2413,7 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2406
2413
|
default: p(() => [
|
|
2407
2414
|
v(_, { size: "small" }, {
|
|
2408
2415
|
default: p(() => [
|
|
2409
|
-
I(D(
|
|
2416
|
+
I(D(s.value.color), 1)
|
|
2410
2417
|
]),
|
|
2411
2418
|
_: 1
|
|
2412
2419
|
})
|
|
@@ -2433,7 +2440,7 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2433
2440
|
default: p(() => [
|
|
2434
2441
|
v(_, { size: "small" }, {
|
|
2435
2442
|
default: p(() => [
|
|
2436
|
-
I(D(
|
|
2443
|
+
I(D(s.value.layer), 1)
|
|
2437
2444
|
]),
|
|
2438
2445
|
_: 1
|
|
2439
2446
|
})
|
|
@@ -2460,7 +2467,7 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2460
2467
|
default: p(() => [
|
|
2461
2468
|
v(_, { size: "small" }, {
|
|
2462
2469
|
default: p(() => [
|
|
2463
|
-
I(D(
|
|
2470
|
+
I(D(s.value.lineType), 1)
|
|
2464
2471
|
]),
|
|
2465
2472
|
_: 1
|
|
2466
2473
|
})
|
|
@@ -2475,13 +2482,13 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2475
2482
|
})) : U("", !0);
|
|
2476
2483
|
};
|
|
2477
2484
|
}
|
|
2478
|
-
}),
|
|
2485
|
+
}), ol = /* @__PURE__ */ H(nl, [["__scopeId", "data-v-6a67bbe7"]]), ll = /* @__PURE__ */ L({
|
|
2479
2486
|
__name: "MlLanguageSelector",
|
|
2480
2487
|
props: {
|
|
2481
2488
|
currentLocale: { default: void 0 }
|
|
2482
2489
|
},
|
|
2483
2490
|
setup(t) {
|
|
2484
|
-
const e = t, { effectiveLocale: n, setLocale: i } =
|
|
2491
|
+
const e = t, { effectiveLocale: n, setLocale: i } = $e(e.currentLocale), l = W([
|
|
2485
2492
|
{
|
|
2486
2493
|
name: "en",
|
|
2487
2494
|
text: "English"
|
|
@@ -2493,16 +2500,16 @@ const Ho = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Go = /* @__PURE__ *
|
|
|
2493
2500
|
]), o = (a) => {
|
|
2494
2501
|
(a === "en" || a === "zh") && i(a);
|
|
2495
2502
|
};
|
|
2496
|
-
return (a,
|
|
2503
|
+
return (a, r) => (u(), C(m(xo), {
|
|
2497
2504
|
class: "ml-language-selector",
|
|
2498
2505
|
languages: l,
|
|
2499
2506
|
current: m(n),
|
|
2500
2507
|
onClick: o
|
|
2501
2508
|
}, null, 8, ["languages", "current"]));
|
|
2502
2509
|
}
|
|
2503
|
-
}),
|
|
2510
|
+
}), al = /* @__PURE__ */ H(ll, [["__scopeId", "data-v-1b9f7bc0"]]);
|
|
2504
2511
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
2505
|
-
var
|
|
2512
|
+
var il = /* @__PURE__ */ L({
|
|
2506
2513
|
name: "Check",
|
|
2507
2514
|
__name: "check",
|
|
2508
2515
|
setup(t) {
|
|
@@ -2516,7 +2523,7 @@ var rl = /* @__PURE__ */ L({
|
|
|
2516
2523
|
})
|
|
2517
2524
|
]));
|
|
2518
2525
|
}
|
|
2519
|
-
}), le =
|
|
2526
|
+
}), le = il, rl = /* @__PURE__ */ L({
|
|
2520
2527
|
name: "Menu",
|
|
2521
2528
|
__name: "menu",
|
|
2522
2529
|
setup(t) {
|
|
@@ -2530,7 +2537,7 @@ var rl = /* @__PURE__ */ L({
|
|
|
2530
2537
|
})
|
|
2531
2538
|
]));
|
|
2532
2539
|
}
|
|
2533
|
-
}),
|
|
2540
|
+
}), sl = rl, cl = /* @__PURE__ */ L({
|
|
2534
2541
|
name: "Moon",
|
|
2535
2542
|
__name: "moon",
|
|
2536
2543
|
setup(t) {
|
|
@@ -2544,7 +2551,7 @@ var rl = /* @__PURE__ */ L({
|
|
|
2544
2551
|
})
|
|
2545
2552
|
]));
|
|
2546
2553
|
}
|
|
2547
|
-
}),
|
|
2554
|
+
}), ul = cl, dl = /* @__PURE__ */ L({
|
|
2548
2555
|
name: "Operation",
|
|
2549
2556
|
__name: "operation",
|
|
2550
2557
|
setup(t) {
|
|
@@ -2558,7 +2565,7 @@ var rl = /* @__PURE__ */ L({
|
|
|
2558
2565
|
})
|
|
2559
2566
|
]));
|
|
2560
2567
|
}
|
|
2561
|
-
}),
|
|
2568
|
+
}), ml = dl, pl = /* @__PURE__ */ L({
|
|
2562
2569
|
name: "Setting",
|
|
2563
2570
|
__name: "setting",
|
|
2564
2571
|
setup(t) {
|
|
@@ -2572,7 +2579,7 @@ var rl = /* @__PURE__ */ L({
|
|
|
2572
2579
|
})
|
|
2573
2580
|
]));
|
|
2574
2581
|
}
|
|
2575
|
-
}),
|
|
2582
|
+
}), vl = pl, gl = /* @__PURE__ */ L({
|
|
2576
2583
|
name: "Sunny",
|
|
2577
2584
|
__name: "sunny",
|
|
2578
2585
|
setup(t) {
|
|
@@ -2586,7 +2593,7 @@ var rl = /* @__PURE__ */ L({
|
|
|
2586
2593
|
})
|
|
2587
2594
|
]));
|
|
2588
2595
|
}
|
|
2589
|
-
}),
|
|
2596
|
+
}), fl = gl, hl = /* @__PURE__ */ L({
|
|
2590
2597
|
name: "Warning",
|
|
2591
2598
|
__name: "warning",
|
|
2592
2599
|
setup(t) {
|
|
@@ -2600,22 +2607,22 @@ var rl = /* @__PURE__ */ L({
|
|
|
2600
2607
|
})
|
|
2601
2608
|
]));
|
|
2602
2609
|
}
|
|
2603
|
-
}),
|
|
2604
|
-
const
|
|
2610
|
+
}), _l = hl;
|
|
2611
|
+
const wl = /* @__PURE__ */ L({
|
|
2605
2612
|
__name: "MlMainMenu",
|
|
2606
2613
|
setup(t) {
|
|
2607
2614
|
const { t: e } = R(), n = (i) => {
|
|
2608
|
-
i === "Convert" ? new
|
|
2615
|
+
i === "Convert" ? new Ie().tirgger(B.instance.context) : i === "QNew" ? new Fe().tirgger(B.instance.context) : i === "Open" && new Pe().tirgger(B.instance.context);
|
|
2609
2616
|
};
|
|
2610
2617
|
return (i, l) => {
|
|
2611
|
-
const o = M("el-icon"), a = M("el-dropdown-item"),
|
|
2612
|
-
return u(), C(
|
|
2618
|
+
const o = M("el-icon"), a = M("el-dropdown-item"), r = M("el-dropdown-menu"), s = M("el-dropdown");
|
|
2619
|
+
return u(), C(s, {
|
|
2613
2620
|
"aria-hidden": "false",
|
|
2614
2621
|
class: "ml-main-menu-container",
|
|
2615
2622
|
onCommand: n
|
|
2616
2623
|
}, {
|
|
2617
2624
|
dropdown: p(() => [
|
|
2618
|
-
v(
|
|
2625
|
+
v(r, null, {
|
|
2619
2626
|
default: p(() => [
|
|
2620
2627
|
v(a, { command: "QNew" }, {
|
|
2621
2628
|
default: p(() => [
|
|
@@ -2639,7 +2646,7 @@ const yl = /* @__PURE__ */ L({
|
|
|
2639
2646
|
size: "30"
|
|
2640
2647
|
}, {
|
|
2641
2648
|
default: p(() => [
|
|
2642
|
-
v(m(
|
|
2649
|
+
v(m(sl))
|
|
2643
2650
|
]),
|
|
2644
2651
|
_: 1
|
|
2645
2652
|
})
|
|
@@ -2648,33 +2655,33 @@ const yl = /* @__PURE__ */ L({
|
|
|
2648
2655
|
});
|
|
2649
2656
|
};
|
|
2650
2657
|
}
|
|
2651
|
-
}),
|
|
2658
|
+
}), yl = /* @__PURE__ */ H(wl, [["__scopeId", "data-v-8c0c738e"]]), bl = {
|
|
2652
2659
|
key: 0,
|
|
2653
2660
|
class: "ml-vertical-toolbar-container"
|
|
2654
|
-
},
|
|
2661
|
+
}, xl = /* @__PURE__ */ L({
|
|
2655
2662
|
__name: "MlToolBars",
|
|
2656
2663
|
setup(t) {
|
|
2657
2664
|
const { t: e } = R(), n = ce(), i = k(() => [
|
|
2658
2665
|
{
|
|
2659
|
-
icon:
|
|
2666
|
+
icon: Ut,
|
|
2660
2667
|
text: e("main.verticalToolbar.select.text"),
|
|
2661
2668
|
command: "select",
|
|
2662
2669
|
description: e("main.verticalToolbar.select.description")
|
|
2663
2670
|
},
|
|
2664
2671
|
{
|
|
2665
|
-
icon:
|
|
2672
|
+
icon: Gt,
|
|
2666
2673
|
text: e("main.verticalToolbar.pan.text"),
|
|
2667
2674
|
command: "pan",
|
|
2668
2675
|
description: e("main.verticalToolbar.pan.description")
|
|
2669
2676
|
},
|
|
2670
2677
|
{
|
|
2671
|
-
icon:
|
|
2678
|
+
icon: Zt,
|
|
2672
2679
|
text: e("main.verticalToolbar.zoomToExtent.text"),
|
|
2673
2680
|
command: "zoom",
|
|
2674
2681
|
description: e("main.verticalToolbar.zoomToExtent.description")
|
|
2675
2682
|
},
|
|
2676
2683
|
{
|
|
2677
|
-
icon:
|
|
2684
|
+
icon: Kt,
|
|
2678
2685
|
text: e("main.verticalToolbar.zoomToBox.text"),
|
|
2679
2686
|
command: "zoomw",
|
|
2680
2687
|
description: e("main.verticalToolbar.zoomToBox.description")
|
|
@@ -2688,8 +2695,8 @@ const yl = /* @__PURE__ */ L({
|
|
|
2688
2695
|
]), l = (o) => {
|
|
2689
2696
|
B.instance.sendStringToExecute(o);
|
|
2690
2697
|
};
|
|
2691
|
-
return (o, a) => m(n).isShowToolbar ? (u(), w("div",
|
|
2692
|
-
v(m(
|
|
2698
|
+
return (o, a) => m(n).isShowToolbar ? (u(), w("div", bl, [
|
|
2699
|
+
v(m(To), {
|
|
2693
2700
|
items: i.value,
|
|
2694
2701
|
size: "small",
|
|
2695
2702
|
direction: "vertical",
|
|
@@ -2697,23 +2704,23 @@ const yl = /* @__PURE__ */ L({
|
|
|
2697
2704
|
}, null, 8, ["items"])
|
|
2698
2705
|
])) : U("", !0);
|
|
2699
2706
|
}
|
|
2700
|
-
}),
|
|
2707
|
+
}), kl = /* @__PURE__ */ L({
|
|
2701
2708
|
__name: "MlFullScreenButton",
|
|
2702
2709
|
setup(t) {
|
|
2703
|
-
const { t: e } = R(), { isFullscreen: n, toggle: i } =
|
|
2710
|
+
const { t: e } = R(), { isFullscreen: n, toggle: i } = je(), l = k(() => ({
|
|
2704
2711
|
onIcon: be,
|
|
2705
2712
|
offIcon: be,
|
|
2706
2713
|
onTooltip: e("main.statusBar.fullScreen.on"),
|
|
2707
2714
|
offTooltip: e("main.statusBar.fullScreen.off")
|
|
2708
2715
|
})), o = k(() => !n.value);
|
|
2709
|
-
return (a,
|
|
2716
|
+
return (a, r) => (u(), C(m(Ae), {
|
|
2710
2717
|
modelValue: o.value,
|
|
2711
|
-
"onUpdate:modelValue":
|
|
2718
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => o.value = s),
|
|
2712
2719
|
data: l.value,
|
|
2713
2720
|
onClick: m(i)
|
|
2714
2721
|
}, null, 8, ["modelValue", "data", "onClick"]));
|
|
2715
2722
|
}
|
|
2716
|
-
}),
|
|
2723
|
+
}), Ml = /* @__PURE__ */ L({
|
|
2717
2724
|
__name: "MlPointStyleButton",
|
|
2718
2725
|
setup(t) {
|
|
2719
2726
|
const { t: e } = R(), n = () => {
|
|
@@ -2728,43 +2735,43 @@ const yl = /* @__PURE__ */ L({
|
|
|
2728
2735
|
default: p(() => [
|
|
2729
2736
|
v(o, {
|
|
2730
2737
|
class: "ml-point-style-button",
|
|
2731
|
-
icon: m(
|
|
2732
|
-
onClick: l[0] || (l[0] = (
|
|
2738
|
+
icon: m(ml),
|
|
2739
|
+
onClick: l[0] || (l[0] = (r) => n())
|
|
2733
2740
|
}, null, 8, ["icon"])
|
|
2734
2741
|
]),
|
|
2735
2742
|
_: 1
|
|
2736
2743
|
}, 8, ["content"]);
|
|
2737
2744
|
};
|
|
2738
2745
|
}
|
|
2739
|
-
}),
|
|
2746
|
+
}), Sl = /* @__PURE__ */ H(Ml, [["__scopeId", "data-v-29692d7d"]]), Cl = {
|
|
2740
2747
|
key: 0,
|
|
2741
2748
|
class: "ml-progress"
|
|
2742
|
-
},
|
|
2749
|
+
}, Ll = /* @__PURE__ */ L({
|
|
2743
2750
|
__name: "MlProgress",
|
|
2744
2751
|
setup(t) {
|
|
2745
|
-
const { t: e } = R(), n =
|
|
2752
|
+
const { t: e } = R(), n = b(0), i = b(!1), l = (a) => {
|
|
2746
2753
|
if (a.stage === "CONVERSION") {
|
|
2747
|
-
const
|
|
2754
|
+
const r = we.service({
|
|
2748
2755
|
lock: !0
|
|
2749
2756
|
});
|
|
2750
2757
|
if (a.subStage) {
|
|
2751
|
-
const
|
|
2752
|
-
|
|
2758
|
+
const s = Dt(a.subStage);
|
|
2759
|
+
r.setText(s);
|
|
2753
2760
|
}
|
|
2754
|
-
n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1,
|
|
2761
|
+
n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, r.close(), B.instance.curView.zoomToFit());
|
|
2755
2762
|
} else if (a.stage === "FETCH_FILE") {
|
|
2756
|
-
const
|
|
2763
|
+
const r = we.service({
|
|
2757
2764
|
lock: !0
|
|
2758
2765
|
});
|
|
2759
|
-
|
|
2766
|
+
r.setText(e("main.message.fetchingDrawingFile")), n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, r.close());
|
|
2760
2767
|
}
|
|
2761
2768
|
}, o = (a) => `${a.toFixed(0)}%`;
|
|
2762
|
-
return
|
|
2769
|
+
return O(() => {
|
|
2763
2770
|
j.on("open-file-progress", l);
|
|
2764
2771
|
}), ee(() => {
|
|
2765
2772
|
j.off("open-file-progress", l);
|
|
2766
|
-
}), (a,
|
|
2767
|
-
v(m(
|
|
2773
|
+
}), (a, r) => i.value ? (u(), w("div", Cl, [
|
|
2774
|
+
v(m(et), {
|
|
2768
2775
|
"text-inside": !0,
|
|
2769
2776
|
"stroke-width": 20,
|
|
2770
2777
|
percentage: n.value,
|
|
@@ -2772,14 +2779,14 @@ const yl = /* @__PURE__ */ L({
|
|
|
2772
2779
|
}, null, 8, ["percentage"])
|
|
2773
2780
|
])) : U("", !0);
|
|
2774
2781
|
}
|
|
2775
|
-
}),
|
|
2782
|
+
}), zl = /* @__PURE__ */ H(Ll, [["__scopeId", "data-v-c4edb83e"]]), Dl = /* @__PURE__ */ L({
|
|
2776
2783
|
__name: "MlSettingButton",
|
|
2777
2784
|
setup(t) {
|
|
2778
2785
|
const { t: e } = R(), n = ce(), i = (l) => {
|
|
2779
2786
|
l == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, Y.instance.isShowCoordinate = n.isShowCoordinate) : l == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, Y.instance.isShowCommandLine = n.isShowCommandLine) : l == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, Y.instance.isShowToolbar = n.isShowToolbar) : l == "isShowStats" && (n.isShowStats = !n.isShowStats, Y.instance.isShowStats = n.isShowStats);
|
|
2780
2787
|
};
|
|
2781
2788
|
return (l, o) => {
|
|
2782
|
-
const a = M("el-button"),
|
|
2789
|
+
const a = M("el-button"), r = M("el-dropdown-item"), s = M("el-dropdown-menu"), c = M("el-dropdown"), f = M("el-tooltip");
|
|
2783
2790
|
return u(), C(f, {
|
|
2784
2791
|
content: m(e)("main.statusBar.setting.tooltip"),
|
|
2785
2792
|
"hide-after": 0
|
|
@@ -2790,9 +2797,9 @@ const yl = /* @__PURE__ */ L({
|
|
|
2790
2797
|
onCommand: i
|
|
2791
2798
|
}, {
|
|
2792
2799
|
dropdown: p(() => [
|
|
2793
|
-
v(
|
|
2800
|
+
v(s, null, {
|
|
2794
2801
|
default: p(() => [
|
|
2795
|
-
v(
|
|
2802
|
+
v(r, {
|
|
2796
2803
|
icon: m(n).isShowStats ? m(le) : "",
|
|
2797
2804
|
command: "isShowStats"
|
|
2798
2805
|
}, {
|
|
@@ -2801,7 +2808,7 @@ const yl = /* @__PURE__ */ L({
|
|
|
2801
2808
|
]),
|
|
2802
2809
|
_: 1
|
|
2803
2810
|
}, 8, ["icon"]),
|
|
2804
|
-
v(
|
|
2811
|
+
v(r, {
|
|
2805
2812
|
icon: m(n).isShowCommandLine ? m(le) : "",
|
|
2806
2813
|
command: "isShowCommandLine"
|
|
2807
2814
|
}, {
|
|
@@ -2810,7 +2817,7 @@ const yl = /* @__PURE__ */ L({
|
|
|
2810
2817
|
]),
|
|
2811
2818
|
_: 1
|
|
2812
2819
|
}, 8, ["icon"]),
|
|
2813
|
-
v(
|
|
2820
|
+
v(r, {
|
|
2814
2821
|
icon: m(n).isShowCoordinate ? m(le) : "",
|
|
2815
2822
|
command: "isShowCoordinate"
|
|
2816
2823
|
}, {
|
|
@@ -2819,7 +2826,7 @@ const yl = /* @__PURE__ */ L({
|
|
|
2819
2826
|
]),
|
|
2820
2827
|
_: 1
|
|
2821
2828
|
}, 8, ["icon"]),
|
|
2822
|
-
v(
|
|
2829
|
+
v(r, {
|
|
2823
2830
|
icon: m(n).isShowToolbar ? m(le) : "",
|
|
2824
2831
|
command: "isShowToolbar"
|
|
2825
2832
|
}, {
|
|
@@ -2835,7 +2842,7 @@ const yl = /* @__PURE__ */ L({
|
|
|
2835
2842
|
default: p(() => [
|
|
2836
2843
|
v(a, {
|
|
2837
2844
|
class: "ml-setting-button",
|
|
2838
|
-
icon: m(
|
|
2845
|
+
icon: m(vl)
|
|
2839
2846
|
}, null, 8, ["icon"])
|
|
2840
2847
|
]),
|
|
2841
2848
|
_: 1
|
|
@@ -2845,54 +2852,54 @@ const yl = /* @__PURE__ */ L({
|
|
|
2845
2852
|
}, 8, ["content"]);
|
|
2846
2853
|
};
|
|
2847
2854
|
}
|
|
2848
|
-
}),
|
|
2855
|
+
}), Bl = /* @__PURE__ */ H(Dl, [["__scopeId", "data-v-666f03a3"]]), Tl = /* @__PURE__ */ L({
|
|
2849
2856
|
__name: "MlThemeButton",
|
|
2850
2857
|
setup(t) {
|
|
2851
2858
|
const { t: e } = R(), n = k(() => ({
|
|
2852
|
-
onIcon:
|
|
2853
|
-
offIcon:
|
|
2859
|
+
onIcon: fl,
|
|
2860
|
+
offIcon: ul,
|
|
2854
2861
|
onTooltip: e("main.statusBar.theme.light"),
|
|
2855
2862
|
offTooltip: e("main.statusBar.theme.dark")
|
|
2856
2863
|
}));
|
|
2857
|
-
return (i, l) => (u(), C(m(
|
|
2864
|
+
return (i, l) => (u(), C(m(Ae), {
|
|
2858
2865
|
modelValue: m(ae),
|
|
2859
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) =>
|
|
2866
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => He(ae) ? ae.value = o : null),
|
|
2860
2867
|
data: n.value,
|
|
2861
|
-
onClick: l[1] || (l[1] = (o) => m(
|
|
2868
|
+
onClick: l[1] || (l[1] = (o) => m(pt)())
|
|
2862
2869
|
}, null, 8, ["modelValue", "data"]));
|
|
2863
2870
|
}
|
|
2864
|
-
}),
|
|
2871
|
+
}), El = /* @__PURE__ */ L({
|
|
2865
2872
|
__name: "MlWarningButton",
|
|
2866
2873
|
setup(t) {
|
|
2867
2874
|
const e = () => {
|
|
2868
2875
|
B.instance.sendStringToExecute("md");
|
|
2869
|
-
}, { fonts: n, images: i } =
|
|
2876
|
+
}, { fonts: n, images: i } = Ve(), l = k(() => i.size > 0 || n.size > 0);
|
|
2870
2877
|
return (o, a) => {
|
|
2871
|
-
const
|
|
2872
|
-
return l.value ? (u(), C(
|
|
2878
|
+
const r = M("el-button");
|
|
2879
|
+
return l.value ? (u(), C(r, {
|
|
2873
2880
|
key: 0,
|
|
2874
2881
|
class: "ml-warning-button",
|
|
2875
2882
|
type: "warning",
|
|
2876
|
-
icon: m(
|
|
2877
|
-
onClick: a[0] || (a[0] = (
|
|
2883
|
+
icon: m(_l),
|
|
2884
|
+
onClick: a[0] || (a[0] = (s) => e())
|
|
2878
2885
|
}, null, 8, ["icon"])) : U("", !0);
|
|
2879
2886
|
};
|
|
2880
2887
|
}
|
|
2881
|
-
}),
|
|
2888
|
+
}), $l = /* @__PURE__ */ H(El, [["__scopeId", "data-v-3411a3ec"]]), Vl = /* @__PURE__ */ L({
|
|
2882
2889
|
__name: "MlStatusBar",
|
|
2883
2890
|
setup(t) {
|
|
2884
|
-
const { text: e } =
|
|
2885
|
-
|
|
2891
|
+
const { text: e } = mt(B.instance.curView), n = ft(B.instance), i = ce(), l = (o) => {
|
|
2892
|
+
Te().layoutManager.setCurrentLayoutBtrId(
|
|
2886
2893
|
o.blockTableRecordId
|
|
2887
2894
|
);
|
|
2888
2895
|
};
|
|
2889
2896
|
return (o, a) => {
|
|
2890
|
-
const
|
|
2891
|
-
return u(), C(m(
|
|
2897
|
+
const r = M("el-button"), s = M("el-button-group");
|
|
2898
|
+
return u(), C(m(zo), { class: "ml-status-bar" }, {
|
|
2892
2899
|
left: p(() => [
|
|
2893
|
-
v(
|
|
2900
|
+
v(s, { class: "ml-status-bar-left-button-group" }, {
|
|
2894
2901
|
default: p(() => [
|
|
2895
|
-
(u(!0), w(K, null, X(m(n), (c) => (u(), C(
|
|
2902
|
+
(u(!0), w(K, null, X(m(n), (c) => (u(), C(r, {
|
|
2896
2903
|
class: "ml-status-bar-layout-button",
|
|
2897
2904
|
key: c.name,
|
|
2898
2905
|
type: c.isActive ? "primary" : "",
|
|
@@ -2908,10 +2915,10 @@ const yl = /* @__PURE__ */ L({
|
|
|
2908
2915
|
})
|
|
2909
2916
|
]),
|
|
2910
2917
|
right: p(() => [
|
|
2911
|
-
v(
|
|
2912
|
-
v(
|
|
2918
|
+
v(zl),
|
|
2919
|
+
v(s, { class: "ml-status-bar-right-button-group" }, {
|
|
2913
2920
|
default: p(() => [
|
|
2914
|
-
m(i).isShowCoordinate ? (u(), C(
|
|
2921
|
+
m(i).isShowCoordinate ? (u(), C(r, {
|
|
2915
2922
|
key: 0,
|
|
2916
2923
|
class: "ml-status-bar-current-pos"
|
|
2917
2924
|
}, {
|
|
@@ -2920,11 +2927,11 @@ const yl = /* @__PURE__ */ L({
|
|
|
2920
2927
|
]),
|
|
2921
2928
|
_: 1
|
|
2922
2929
|
})) : U("", !0),
|
|
2923
|
-
v(
|
|
2924
|
-
v(
|
|
2925
|
-
v(
|
|
2926
|
-
v(
|
|
2927
|
-
v(
|
|
2930
|
+
v($l),
|
|
2931
|
+
v(Tl),
|
|
2932
|
+
v(kl),
|
|
2933
|
+
v(Sl),
|
|
2934
|
+
v(Bl)
|
|
2928
2935
|
]),
|
|
2929
2936
|
_: 1
|
|
2930
2937
|
})
|
|
@@ -2933,48 +2940,30 @@ const yl = /* @__PURE__ */ L({
|
|
|
2933
2940
|
});
|
|
2934
2941
|
};
|
|
2935
2942
|
}
|
|
2936
|
-
}),
|
|
2943
|
+
}), Al = /* @__PURE__ */ H(Vl, [["__scopeId", "data-v-ee6f13c4"]]), Il = { class: "ml-file-name" }, da = /* @__PURE__ */ L({
|
|
2937
2944
|
__name: "MlCadViewer",
|
|
2938
2945
|
props: {
|
|
2939
2946
|
locale: { default: "default" },
|
|
2940
2947
|
url: { default: void 0 },
|
|
2941
2948
|
wait: { default: 10 },
|
|
2942
|
-
canvasId: {}
|
|
2949
|
+
canvasId: {},
|
|
2950
|
+
background: { default: void 0 }
|
|
2943
2951
|
},
|
|
2944
2952
|
setup(t) {
|
|
2945
2953
|
const e = t;
|
|
2946
|
-
|
|
2947
|
-
const n = ()
|
|
2948
|
-
const c =
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
}), f = () => Te.instance.get(
|
|
2952
|
-
We.DWG
|
|
2953
|
-
) ? (c.close(), r(), !0) : !1;
|
|
2954
|
-
if (f())
|
|
2955
|
-
return;
|
|
2956
|
-
let b = 0;
|
|
2957
|
-
const g = Math.floor(e.wait * 2), h = setInterval(() => {
|
|
2958
|
-
if (b++, f()) {
|
|
2959
|
-
clearInterval(h);
|
|
2960
|
-
return;
|
|
2961
|
-
}
|
|
2962
|
-
b >= g && (console.warn(
|
|
2963
|
-
`DWG converter loading timeout after ${e.wait} seconds - proceeding anyway`
|
|
2964
|
-
), c.close(), clearInterval(h), r());
|
|
2965
|
-
}, 500);
|
|
2966
|
-
}), { t: i } = R(), { effectiveLocale: l, elementPlusLocale: o } = Ve(e.locale), a = async (r, c) => {
|
|
2967
|
-
const f = { minimumChunkSize: 1e3 };
|
|
2968
|
-
await B.instance.openDocument(r, c, f), Q.fileName = r;
|
|
2969
|
-
}, s = async (r) => {
|
|
2954
|
+
Rl(e.canvasId);
|
|
2955
|
+
const { t: n } = R(), { effectiveLocale: i, elementPlusLocale: l } = $e(e.locale), o = async (r, s) => {
|
|
2956
|
+
const c = { minimumChunkSize: 1e3 };
|
|
2957
|
+
await B.instance.openDocument(r, s, c), Q.fileName = r;
|
|
2958
|
+
}, a = async (r) => {
|
|
2970
2959
|
try {
|
|
2971
|
-
const
|
|
2972
|
-
await B.instance.openUrl(r,
|
|
2973
|
-
const
|
|
2974
|
-
Q.fileName =
|
|
2975
|
-
} catch (
|
|
2976
|
-
console.error("Failed to open file from URL:",
|
|
2977
|
-
message:
|
|
2960
|
+
const s = { minimumChunkSize: 1e3 };
|
|
2961
|
+
await B.instance.openUrl(r, s);
|
|
2962
|
+
const c = r.split("/").pop();
|
|
2963
|
+
Q.fileName = c ?? "";
|
|
2964
|
+
} catch (s) {
|
|
2965
|
+
console.error("Failed to open file from URL:", s), te({
|
|
2966
|
+
message: n("main.message.failedToOpenFile", { fileName: r }),
|
|
2978
2967
|
grouping: !0,
|
|
2979
2968
|
type: "error",
|
|
2980
2969
|
showClose: !0
|
|
@@ -2984,10 +2973,15 @@ const yl = /* @__PURE__ */ L({
|
|
|
2984
2973
|
return E(
|
|
2985
2974
|
() => e.url,
|
|
2986
2975
|
async (r) => {
|
|
2987
|
-
r && (
|
|
2976
|
+
r && a(r);
|
|
2977
|
+
}
|
|
2978
|
+
), E(
|
|
2979
|
+
() => e.background,
|
|
2980
|
+
(r) => {
|
|
2981
|
+
r != null && (B.instance.curView.backgroundColor = r);
|
|
2988
2982
|
}
|
|
2989
|
-
),
|
|
2990
|
-
|
|
2983
|
+
), O(async () => {
|
|
2984
|
+
e.url && a(e.url), e.background != null && (B.instance.curView.backgroundColor = e.background);
|
|
2991
2985
|
}), j.on("message", (r) => {
|
|
2992
2986
|
te({
|
|
2993
2987
|
message: r.message,
|
|
@@ -2997,7 +2991,7 @@ const yl = /* @__PURE__ */ L({
|
|
|
2997
2991
|
});
|
|
2998
2992
|
}), j.on("font-not-loaded", (r) => {
|
|
2999
2993
|
te({
|
|
3000
|
-
message:
|
|
2994
|
+
message: n("main.message.fontNotLoaded", {
|
|
3001
2995
|
fontName: r.fontName,
|
|
3002
2996
|
url: r.url
|
|
3003
2997
|
}),
|
|
@@ -3007,83 +3001,83 @@ const yl = /* @__PURE__ */ L({
|
|
|
3007
3001
|
});
|
|
3008
3002
|
}), j.on("failed-to-get-avaiable-fonts", (r) => {
|
|
3009
3003
|
te({
|
|
3010
|
-
message:
|
|
3004
|
+
message: n("main.message.failedToGetAvaiableFonts", { url: r.url }),
|
|
3011
3005
|
grouping: !0,
|
|
3012
3006
|
type: "error",
|
|
3013
3007
|
showClose: !0
|
|
3014
3008
|
});
|
|
3015
3009
|
}), j.on("failed-to-open-file", (r) => {
|
|
3016
3010
|
te({
|
|
3017
|
-
message:
|
|
3011
|
+
message: n("main.message.failedToOpenFile", { fileName: r.fileName }),
|
|
3018
3012
|
grouping: !0,
|
|
3019
3013
|
type: "error",
|
|
3020
3014
|
showClose: !0
|
|
3021
3015
|
});
|
|
3022
|
-
}),
|
|
3023
|
-
const
|
|
3016
|
+
}), Pl(), (r, s) => {
|
|
3017
|
+
const c = M("el-config-provider");
|
|
3024
3018
|
return u(), w("div", null, [
|
|
3025
|
-
v(
|
|
3019
|
+
v(c, { locale: m(l) }, {
|
|
3026
3020
|
default: p(() => [
|
|
3027
3021
|
d("header", null, [
|
|
3028
|
-
v(m(
|
|
3029
|
-
v(m(
|
|
3022
|
+
v(m(yl)),
|
|
3023
|
+
v(m(al), { "current-locale": m(i) }, null, 8, ["current-locale"])
|
|
3030
3024
|
]),
|
|
3031
3025
|
d("main", null, [
|
|
3032
|
-
d("div",
|
|
3033
|
-
v(m(
|
|
3034
|
-
v(m(
|
|
3026
|
+
d("div", Il, D(m(Q).fileName), 1),
|
|
3027
|
+
v(m(xl)),
|
|
3028
|
+
v(m(Zo), {
|
|
3035
3029
|
editor: m(B).instance
|
|
3036
3030
|
}, null, 8, ["editor"]),
|
|
3037
|
-
v(m(
|
|
3031
|
+
v(m(Tt))
|
|
3038
3032
|
]),
|
|
3039
3033
|
d("footer", null, [
|
|
3040
|
-
v(m(
|
|
3041
|
-
v(m(
|
|
3034
|
+
v(m(tl)),
|
|
3035
|
+
v(m(Al))
|
|
3042
3036
|
]),
|
|
3043
|
-
v(m(
|
|
3044
|
-
v(m(
|
|
3037
|
+
v(m($t), { onFileRead: o }),
|
|
3038
|
+
v(m(ol))
|
|
3045
3039
|
]),
|
|
3046
3040
|
_: 1
|
|
3047
3041
|
}, 8, ["locale"])
|
|
3048
3042
|
]);
|
|
3049
3043
|
};
|
|
3050
3044
|
}
|
|
3051
|
-
}), { registerDialog: Se } = oe(),
|
|
3052
|
-
|
|
3053
|
-
|
|
3045
|
+
}), { registerDialog: Se } = oe(), Fl = () => {
|
|
3046
|
+
q.instance.addCommand(
|
|
3047
|
+
q.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3054
3048
|
"log",
|
|
3055
3049
|
"log",
|
|
3056
|
-
new
|
|
3057
|
-
),
|
|
3058
|
-
|
|
3050
|
+
new Ol()
|
|
3051
|
+
), q.instance.addCommand(
|
|
3052
|
+
q.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3059
3053
|
"la",
|
|
3060
3054
|
"la",
|
|
3061
3055
|
new Nl()
|
|
3062
|
-
),
|
|
3063
|
-
|
|
3056
|
+
), q.instance.addCommand(
|
|
3057
|
+
q.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3064
3058
|
"md",
|
|
3065
3059
|
"md",
|
|
3066
|
-
new
|
|
3067
|
-
),
|
|
3068
|
-
|
|
3060
|
+
new Hl()
|
|
3061
|
+
), q.instance.addCommand(
|
|
3062
|
+
q.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3069
3063
|
"pttype",
|
|
3070
3064
|
"pttype",
|
|
3071
|
-
new
|
|
3065
|
+
new Gl()
|
|
3072
3066
|
);
|
|
3073
|
-
},
|
|
3067
|
+
}, Pl = () => {
|
|
3074
3068
|
Se({
|
|
3075
3069
|
name: "ReplacementDlg",
|
|
3076
|
-
component:
|
|
3070
|
+
component: he(At),
|
|
3077
3071
|
props: {}
|
|
3078
3072
|
}), Se({
|
|
3079
3073
|
name: "PointStyleDlg",
|
|
3080
|
-
component:
|
|
3074
|
+
component: he(io),
|
|
3081
3075
|
props: {}
|
|
3082
3076
|
});
|
|
3083
|
-
},
|
|
3077
|
+
}, Rl = (t) => {
|
|
3084
3078
|
const e = document.getElementById(t);
|
|
3085
|
-
B.createInstance(e),
|
|
3086
|
-
}, Q =
|
|
3079
|
+
B.createInstance(e), Re(), Fl(), B.instance.loadDefaultFonts();
|
|
3080
|
+
}, Q = W({
|
|
3087
3081
|
fileName: "",
|
|
3088
3082
|
dialogs: {
|
|
3089
3083
|
layerManager: !1
|
|
@@ -3094,7 +3088,7 @@ class Nl extends re {
|
|
|
3094
3088
|
Q.dialogs.layerManager = !0;
|
|
3095
3089
|
}
|
|
3096
3090
|
}
|
|
3097
|
-
class
|
|
3091
|
+
class Ol extends re {
|
|
3098
3092
|
execute(e) {
|
|
3099
3093
|
this.printSelectionSet(e), this.printStats(e), this.printPerformanceData();
|
|
3100
3094
|
}
|
|
@@ -3110,20 +3104,20 @@ class Hl extends re {
|
|
|
3110
3104
|
console.log("Geometry information in current drawing:");
|
|
3111
3105
|
for (let i = 0; i < n.length; ++i) {
|
|
3112
3106
|
console.group(`Layout: ${i}`);
|
|
3113
|
-
const l = n[i], o = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0],
|
|
3114
|
-
name:
|
|
3107
|
+
const l = n[i], o = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], r = l.layers.map((s) => (o[0] = s.line.indexed.geometrySize / 1024, o[1] = s.line.nonIndexed.geometrySize / 1024, o[2] = s.mesh.indexed.geometrySize / 1024, o[3] = s.mesh.nonIndexed.geometrySize / 1024, o[4] = s.point.indexed.geometrySize / 1024, o[5] = s.point.nonIndexed.geometrySize / 1024, a[0] += o[0], a[1] += o[1], a[2] += o[2], a[3] += o[3], a[4] += o[4], a[5] += o[5], {
|
|
3108
|
+
name: s.name,
|
|
3115
3109
|
"idx line (KB)": o[0].toFixed(1),
|
|
3116
3110
|
"line (KB)": o[1].toFixed(1),
|
|
3117
3111
|
"idx mesh (KB)": o[2].toFixed(1),
|
|
3118
3112
|
"mesh (KB)": o[3].toFixed(1),
|
|
3119
3113
|
"idx point (KB)": o[4].toFixed(1),
|
|
3120
3114
|
"point (KB)": o[5].toFixed(1),
|
|
3121
|
-
"total geo (KB)": (
|
|
3122
|
-
"total mapping (KB)": (
|
|
3115
|
+
"total geo (KB)": (s.summary.totalGeometrySize / 1024).toFixed(1),
|
|
3116
|
+
"total mapping (KB)": (s.summary.totalMappingSize / 1024).toFixed(
|
|
3123
3117
|
1
|
|
3124
3118
|
)
|
|
3125
3119
|
}));
|
|
3126
|
-
|
|
3120
|
+
r.push({
|
|
3127
3121
|
name: "total",
|
|
3128
3122
|
"idx line (KB)": a[0].toFixed(1),
|
|
3129
3123
|
"line (KB)": a[1].toFixed(1),
|
|
@@ -3135,20 +3129,20 @@ class Hl extends re {
|
|
|
3135
3129
|
"total mapping (KB)": (l.summary.totalSize.mapping / 1024).toFixed(
|
|
3136
3130
|
1
|
|
3137
3131
|
)
|
|
3138
|
-
}), console.table(
|
|
3132
|
+
}), console.table(r), console.groupEnd();
|
|
3139
3133
|
}
|
|
3140
3134
|
}
|
|
3141
3135
|
printPerformanceData() {
|
|
3142
3136
|
qe.getInstance().printAll();
|
|
3143
3137
|
}
|
|
3144
3138
|
}
|
|
3145
|
-
class
|
|
3139
|
+
class Hl extends re {
|
|
3146
3140
|
execute(e) {
|
|
3147
3141
|
const { toggleDialog: n } = oe();
|
|
3148
3142
|
n("ReplacementDlg", !0);
|
|
3149
3143
|
}
|
|
3150
3144
|
}
|
|
3151
|
-
class
|
|
3145
|
+
class Gl extends re {
|
|
3152
3146
|
execute(e) {
|
|
3153
3147
|
const { toggleDialog: n } = oe();
|
|
3154
3148
|
n("PointStyleDlg", !0);
|
|
@@ -3156,40 +3150,40 @@ class Wl extends re {
|
|
|
3156
3150
|
}
|
|
3157
3151
|
export {
|
|
3158
3152
|
Nl as AcApLayerStateCmd,
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3153
|
+
Ol as AcApLogCmd,
|
|
3154
|
+
Hl as AcApMissedDataCmd,
|
|
3155
|
+
Gl as AcApPointStyleCmd,
|
|
3156
|
+
Ee as MlBaseDialog,
|
|
3157
|
+
da as MlCadViewer,
|
|
3158
|
+
tl as MlCommandLine,
|
|
3159
|
+
Tt as MlDialogManager,
|
|
3160
|
+
ol as MlEntityInfo,
|
|
3161
|
+
$t as MlFileReader,
|
|
3162
|
+
al as MlLanguageSelector,
|
|
3163
|
+
Zo as MlLayerManager,
|
|
3164
|
+
yl as MlMainMenu,
|
|
3165
|
+
io as MlPointStyleDlg,
|
|
3166
|
+
At as MlReplacementDlg,
|
|
3167
|
+
Al as MlStatusBar,
|
|
3168
|
+
Ae as MlToggleButton,
|
|
3169
|
+
xl as MlToolBars,
|
|
3170
|
+
fe as cmdDescription,
|
|
3171
|
+
zt as colorName,
|
|
3172
|
+
Dt as conversionSubStageName,
|
|
3173
|
+
Lt as entityName,
|
|
3180
3174
|
J as i18n,
|
|
3181
3175
|
ae as isDark,
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3176
|
+
ca as sysCmdDescription,
|
|
3177
|
+
pt as toggleDark,
|
|
3178
|
+
dt as useCommands,
|
|
3179
|
+
mt as useCurrentPos,
|
|
3186
3180
|
oe as useDialogManager,
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3181
|
+
vt as useFileTypes,
|
|
3182
|
+
gt as useLayers,
|
|
3183
|
+
ft as useLayouts,
|
|
3184
|
+
$e as useLocale,
|
|
3185
|
+
Ve as useMissedData,
|
|
3192
3186
|
ce as useSettings,
|
|
3193
|
-
|
|
3194
|
-
|
|
3187
|
+
Bt as useSystemVars,
|
|
3188
|
+
ua as userCmdDescription
|
|
3195
3189
|
};
|