@mlightcad/cad-viewer 1.0.22 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -10
- package/dist/app/app.d.ts +1 -1
- package/dist/app/app.d.ts.map +1 -1
- package/dist/app/register.d.ts.map +1 -1
- package/dist/component/MlCadViewer.vue.d.ts +5 -2
- package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +955 -916
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { AcEdCommandStack as W, AcApDocManager as
|
|
2
|
+
import { AcEdCommandStack as W, AcApDocManager as T, eventBus as Y, AcApSettingManager as K, AcApConvertToSvgCmd as Ae, AcApQNewCmd as Fe, AcApOpenCmd as Ie, registerWorkers 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
|
|
10
|
-
import { ElDialog as
|
|
11
|
-
import { ElIcon as se, ElDropdown as
|
|
4
|
+
import { reactive as U, computed as k, defineComponent as L, onMounted as H, resolveComponent as M, createBlock as C, openBlock as c, unref as g, withCtx as p, renderSlot as ie, createVNode as v, createTextVNode as F, toDisplayString as D, createElementVNode as u, ref as x, onUnmounted as te, watch as E, createElementBlock as y, Fragment as j, renderList as X, resolveDynamicComponent as ve, mergeProps as Ne, mergeModels as J, useCssVars as Se, useModel as ge, createCommentVNode as q, normalizeStyle as pe, normalizeClass as Ce, pushScopeId as Le, popScopeId as ze, onBeforeUnmount as De, withKeys as Pe, isRef as Oe, markRaw as he } from "vue";
|
|
5
|
+
import { AcDbDatabaseConverterManager as He, acdbHostApplicationServices as Be, AcCmPerformanceCollector as Ge } from "@mlightcad/data-model";
|
|
6
|
+
import { useDark as We, useToggle as qe, useFullscreen as Ue } from "@vueuse/core";
|
|
7
|
+
import je from "element-plus/es/locale/lang/en";
|
|
8
|
+
import Ye from "element-plus/es/locale/lang/zh-cn";
|
|
9
|
+
import { useI18n as N, createI18n as Ke } from "vue-i18n";
|
|
10
|
+
import { ElDialog as Xe, ElButton as _e, ElTable as Qe, ElAutocomplete as Ze, ElProgress as Je, ElLoading as we, ElMessage as Z } from "element-plus";
|
|
11
|
+
import { ElIcon as se, ElDropdown as et, ElDropdownMenu as tt, ElDropdownItem as nt, ElButtonGroup as ot, ElTooltip as lt, ElButton as at } 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 = U([]);
|
|
21
|
+
function it(t) {
|
|
22
22
|
ne.find((n) => n.name === t.name) || ne.push({ ...t, visible: !1 });
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function rt(t, e) {
|
|
25
25
|
const n = ne.find((i) => i.name === t);
|
|
26
26
|
n && (n.visible = e);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function st(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: it,
|
|
35
|
+
toggleDialog: rt,
|
|
36
|
+
getDialogByName: st
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const ct = /* @__PURE__ */ L({
|
|
40
40
|
__name: "MlBaseDialog",
|
|
41
41
|
props: {
|
|
42
42
|
title: {
|
|
@@ -62,64 +62,64 @@ const ut = /* @__PURE__ */ L({
|
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:modelValue", "ok", "cancel"],
|
|
64
64
|
setup(t, { emit: e }) {
|
|
65
|
-
const { t: n } =
|
|
65
|
+
const { t: n } = N(), i = t, l = e, { registerDialog: o } = oe();
|
|
66
66
|
function a() {
|
|
67
67
|
l("ok"), l("update:modelValue", !1);
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function s() {
|
|
70
70
|
l("cancel"), l("update:modelValue", !1);
|
|
71
71
|
}
|
|
72
|
-
return
|
|
72
|
+
return H(() => {
|
|
73
73
|
o({
|
|
74
74
|
name: i.name,
|
|
75
75
|
component: "BaseDialog",
|
|
76
76
|
props: i.props
|
|
77
77
|
});
|
|
78
|
-
}), (
|
|
79
|
-
const
|
|
80
|
-
return
|
|
78
|
+
}), (r, m) => {
|
|
79
|
+
const w = M("el-divider");
|
|
80
|
+
return c(), C(g(Xe), {
|
|
81
81
|
"model-value": t.modelValue,
|
|
82
82
|
width: t.width,
|
|
83
83
|
close: "handleCancel",
|
|
84
84
|
class: "ml-dialog"
|
|
85
85
|
}, {
|
|
86
86
|
header: p(() => [
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
u("div", null, D(t.title), 1),
|
|
88
|
+
v(w, { class: "ml-dialog-header-bottom-line" })
|
|
89
89
|
]),
|
|
90
90
|
footer: p(() => [
|
|
91
|
-
|
|
92
|
-
g(
|
|
91
|
+
v(w, { class: "ml-dialog-footer-top-line" }),
|
|
92
|
+
v(g(_e), { onClick: s }, {
|
|
93
93
|
default: p(() => [
|
|
94
|
-
|
|
94
|
+
F(D(g(n)("dialog.baseDialog.cancel")), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
g(
|
|
98
|
+
v(g(_e), {
|
|
99
99
|
type: "primary",
|
|
100
100
|
onClick: a
|
|
101
101
|
}, {
|
|
102
102
|
default: p(() => [
|
|
103
|
-
|
|
103
|
+
F(D(g(n)("dialog.baseDialog.ok")), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
})
|
|
107
107
|
]),
|
|
108
108
|
default: p(() => [
|
|
109
|
-
ie(
|
|
109
|
+
ie(r.$slots, "default", {}, void 0, !0)
|
|
110
110
|
]),
|
|
111
111
|
_: 3
|
|
112
112
|
}, 8, ["model-value", "width"]);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
}),
|
|
115
|
+
}), G = (t, e) => {
|
|
116
116
|
const n = t.__vccOpts || t;
|
|
117
117
|
for (const [i, l] of e)
|
|
118
118
|
n[i] = l;
|
|
119
119
|
return n;
|
|
120
|
-
},
|
|
121
|
-
function
|
|
122
|
-
const t =
|
|
120
|
+
}, Te = /* @__PURE__ */ G(ct, [["__scopeId", "data-v-8df470d5"]]);
|
|
121
|
+
function ut() {
|
|
122
|
+
const t = U([]), e = W.instance.iterator();
|
|
123
123
|
for (const n of e)
|
|
124
124
|
t.push({
|
|
125
125
|
commandName: n.command.localName,
|
|
@@ -141,18 +141,18 @@ function ye(t, e = "en-US") {
|
|
|
141
141
|
maximumFractionDigits: 6
|
|
142
142
|
}).format(t);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
const e =
|
|
144
|
+
function dt(t) {
|
|
145
|
+
const e = x(0), n = x(0);
|
|
146
146
|
function i(o) {
|
|
147
147
|
e.value = o.x, n.value = o.y;
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
H(() => t.events.mouseMove.addEventListener(i)), te(() => t.events.mouseMove.removeEventListener(i));
|
|
150
150
|
const l = k(() => `${ye(e.value)}, ${ye(n.value)}`);
|
|
151
151
|
return { x: e, y: n, text: l };
|
|
152
152
|
}
|
|
153
|
-
const ae =
|
|
154
|
-
function
|
|
155
|
-
const t =
|
|
153
|
+
const ae = We(), mt = qe(ae);
|
|
154
|
+
function pt() {
|
|
155
|
+
const t = x(/* @__PURE__ */ new Set()), e = He.instance;
|
|
156
156
|
for (const n of e.fileTypes)
|
|
157
157
|
t.value.add(n);
|
|
158
158
|
return e.events.registered.addEventListener((n) => {
|
|
@@ -160,7 +160,7 @@ function gt() {
|
|
|
160
160
|
}), t;
|
|
161
161
|
}
|
|
162
162
|
function vt(t) {
|
|
163
|
-
const e =
|
|
163
|
+
const e = U([]), n = t.curDocument, i = (l) => {
|
|
164
164
|
const o = l.tables.layerTable.newIterator();
|
|
165
165
|
for (const a of o)
|
|
166
166
|
e.push({
|
|
@@ -189,8 +189,8 @@ function vt(t) {
|
|
|
189
189
|
e.length = 0, i(l.doc.database);
|
|
190
190
|
}), e;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const e =
|
|
192
|
+
function gt(t) {
|
|
193
|
+
const e = U([]), n = t.curDocument, i = (l) => {
|
|
194
194
|
const o = l.dictionaries.layouts.newIterator();
|
|
195
195
|
e.length = 0;
|
|
196
196
|
for (const a of o)
|
|
@@ -200,11 +200,11 @@ function ft(t) {
|
|
|
200
200
|
blockTableRecordId: a.blockTableRecordId,
|
|
201
201
|
isActive: a.blockTableRecordId == l.currentSpaceId
|
|
202
202
|
});
|
|
203
|
-
e.sort((a,
|
|
203
|
+
e.sort((a, s) => a.tabOrder - s.tabOrder);
|
|
204
204
|
};
|
|
205
205
|
return i(n.database), t.events.documentActivated.addEventListener((l) => {
|
|
206
206
|
e.length = 0, i(l.doc.database);
|
|
207
|
-
}),
|
|
207
|
+
}), Be().layoutManager.events.layoutSwitched.addEventListener(
|
|
208
208
|
(l) => {
|
|
209
209
|
const o = l.layout;
|
|
210
210
|
e.forEach((a) => {
|
|
@@ -213,7 +213,7 @@ function ft(t) {
|
|
|
213
213
|
}
|
|
214
214
|
), e;
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const ft = {
|
|
217
217
|
ACAD: {
|
|
218
218
|
csvg: "Converts current drawing to SVG",
|
|
219
219
|
la: "Layer properties manager",
|
|
@@ -228,7 +228,7 @@ const ht = {
|
|
|
228
228
|
zoomw: "Zooms to display an area specified by a rectangular window"
|
|
229
229
|
},
|
|
230
230
|
USER: {}
|
|
231
|
-
},
|
|
231
|
+
}, ht = {
|
|
232
232
|
baseDialog: {
|
|
233
233
|
ok: "OK",
|
|
234
234
|
cancel: "Cancel"
|
|
@@ -247,7 +247,7 @@ const ht = {
|
|
|
247
247
|
title: "Point Style",
|
|
248
248
|
pointSize: "Point Size:"
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, _t = {
|
|
251
251
|
entityName: {
|
|
252
252
|
"3PointAngularDimension": "Three Point Angular Dimension",
|
|
253
253
|
AlignedDimension: "Aligned Dimension",
|
|
@@ -420,7 +420,7 @@ const ht = {
|
|
|
420
420
|
yellow: "Yellow",
|
|
421
421
|
yellowgreen: "Yellow Green"
|
|
422
422
|
}
|
|
423
|
-
},
|
|
423
|
+
}, wt = {
|
|
424
424
|
mainMenu: {
|
|
425
425
|
new: "New Drawing",
|
|
426
426
|
open: "Open Drawing",
|
|
@@ -513,7 +513,7 @@ const ht = {
|
|
|
513
513
|
failedToOpenFile: 'Failed to open file "{fileName}"!',
|
|
514
514
|
fetchingDrawingFile: "Fetching file ..."
|
|
515
515
|
}
|
|
516
|
-
},
|
|
516
|
+
}, yt = {
|
|
517
517
|
ACAD: {
|
|
518
518
|
csvg: "转换当前图纸为SVG格式",
|
|
519
519
|
la: "图层属性管理器",
|
|
@@ -528,7 +528,7 @@ const ht = {
|
|
|
528
528
|
zoomw: "缩放以显示矩形窗口内的对象"
|
|
529
529
|
},
|
|
530
530
|
USER: {}
|
|
531
|
-
},
|
|
531
|
+
}, bt = {
|
|
532
532
|
baseDialog: {
|
|
533
533
|
ok: "确定",
|
|
534
534
|
cancel: "取消"
|
|
@@ -547,7 +547,7 @@ const ht = {
|
|
|
547
547
|
title: "点样式",
|
|
548
548
|
pointSize: "点大小:"
|
|
549
549
|
}
|
|
550
|
-
},
|
|
550
|
+
}, xt = {
|
|
551
551
|
entityName: {
|
|
552
552
|
"3PointAngularDimension": "三点角度标注",
|
|
553
553
|
AlignedDimension: "线性标注",
|
|
@@ -720,7 +720,7 @@ const ht = {
|
|
|
720
720
|
yellow: "黄色",
|
|
721
721
|
yellowgreen: "黄绿色"
|
|
722
722
|
}
|
|
723
|
-
},
|
|
723
|
+
}, kt = {
|
|
724
724
|
mainMenu: {
|
|
725
725
|
new: "新建图纸",
|
|
726
726
|
open: "打开图纸",
|
|
@@ -813,97 +813,97 @@ const ht = {
|
|
|
813
813
|
failedToOpenFile: '无法打开文件"{fileName}"!',
|
|
814
814
|
fetchingDrawingFile: "正在加载图纸文件..."
|
|
815
815
|
}
|
|
816
|
-
},
|
|
816
|
+
}, Mt = () => {
|
|
817
817
|
const t = localStorage.getItem("preferred_lang");
|
|
818
818
|
return t === "en" || t === "zh" ? t : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
819
|
-
},
|
|
819
|
+
}, St = {
|
|
820
820
|
en: {
|
|
821
|
-
main:
|
|
822
|
-
command:
|
|
823
|
-
dialog:
|
|
824
|
-
entity:
|
|
821
|
+
main: wt,
|
|
822
|
+
command: ft,
|
|
823
|
+
dialog: ht,
|
|
824
|
+
entity: _t
|
|
825
825
|
},
|
|
826
826
|
zh: {
|
|
827
|
-
main:
|
|
828
|
-
command:
|
|
829
|
-
dialog:
|
|
830
|
-
entity:
|
|
827
|
+
main: kt,
|
|
828
|
+
command: yt,
|
|
829
|
+
dialog: bt,
|
|
830
|
+
entity: xt
|
|
831
831
|
}
|
|
832
|
-
},
|
|
832
|
+
}, ee = Ke({
|
|
833
833
|
legacy: !1,
|
|
834
|
-
messages:
|
|
835
|
-
locale:
|
|
834
|
+
messages: St,
|
|
835
|
+
locale: Mt(),
|
|
836
836
|
fallbackLocale: "en",
|
|
837
837
|
allowComposition: !0,
|
|
838
838
|
globalInjection: !0
|
|
839
839
|
}), fe = (t, e) => {
|
|
840
|
-
const n =
|
|
840
|
+
const n = ee.global.t, i = `command.${t}.${e}`;
|
|
841
841
|
return n(i, "");
|
|
842
|
-
}, ca = (t) => fe(W.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => fe(W.DEFAUT_COMMAND_GROUP_NAME, t),
|
|
843
|
-
const e =
|
|
842
|
+
}, ca = (t) => fe(W.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => fe(W.DEFAUT_COMMAND_GROUP_NAME, t), Ct = (t) => {
|
|
843
|
+
const e = ee.global.t, n = "entity.entityName." + t.type;
|
|
844
844
|
return e(n, t.type, { missingWarn: !1 });
|
|
845
|
-
},
|
|
845
|
+
}, Lt = (t) => {
|
|
846
846
|
if (t == "ByLayer" || t == "ByBlock")
|
|
847
847
|
return t;
|
|
848
848
|
{
|
|
849
|
-
const e =
|
|
849
|
+
const e = ee.global.t, n = "entity.color." + t;
|
|
850
850
|
return e(n, t, { missingWarn: !1 });
|
|
851
851
|
}
|
|
852
|
-
},
|
|
853
|
-
const e =
|
|
852
|
+
}, zt = (t) => {
|
|
853
|
+
const e = ee.global.t, n = "main.progress." + t.replace(/_/g, "").toLowerCase();
|
|
854
854
|
return e(n, t);
|
|
855
855
|
}, me = "preferred_lang";
|
|
856
|
-
function
|
|
857
|
-
const { locale: e } =
|
|
858
|
-
const
|
|
859
|
-
return
|
|
860
|
-
})()), l = k(() => i.value), o = (
|
|
861
|
-
|
|
856
|
+
function Ee(t) {
|
|
857
|
+
const { locale: e } = N(), i = x((() => {
|
|
858
|
+
const r = localStorage.getItem(me);
|
|
859
|
+
return r === "en" || r === "zh" ? r : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
860
|
+
})()), l = k(() => i.value), o = (r) => {
|
|
861
|
+
ee.global.locale.value = r, i.value = r, (!t || t === "default") && localStorage.setItem(me, r);
|
|
862
862
|
}, a = () => {
|
|
863
863
|
localStorage.removeItem(me);
|
|
864
864
|
};
|
|
865
865
|
t && E(
|
|
866
866
|
() => t,
|
|
867
|
-
(
|
|
868
|
-
|
|
867
|
+
(r) => {
|
|
868
|
+
r && r !== "default" && (i.value = r, ee.global.locale.value = r, a());
|
|
869
869
|
},
|
|
870
870
|
{ immediate: !0 }
|
|
871
871
|
), E(
|
|
872
872
|
() => e.value,
|
|
873
|
-
(
|
|
873
|
+
(r) => {
|
|
874
874
|
if (!t || t === "default") {
|
|
875
|
-
const
|
|
876
|
-
i.value =
|
|
875
|
+
const m = r === "zh" ? "zh" : "en";
|
|
876
|
+
i.value = m;
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
);
|
|
880
|
-
const
|
|
880
|
+
const s = k(() => l.value === "en" ? je : Ye);
|
|
881
881
|
return {
|
|
882
882
|
currentLocale: i,
|
|
883
883
|
effectiveLocale: l,
|
|
884
|
-
elementPlusLocale:
|
|
884
|
+
elementPlusLocale: s,
|
|
885
885
|
setLocale: o,
|
|
886
886
|
clearStoragePreference: a,
|
|
887
887
|
isControlled: k(() => !!(t && t !== "default"))
|
|
888
888
|
};
|
|
889
889
|
}
|
|
890
|
-
function
|
|
891
|
-
const t =
|
|
892
|
-
const i =
|
|
890
|
+
function $e() {
|
|
891
|
+
const t = U(/* @__PURE__ */ new Map()), e = U(/* @__PURE__ */ new Map()), n = () => {
|
|
892
|
+
const i = T.instance.curView.missedData, l = K.instance.fontMapping;
|
|
893
893
|
t.clear(), Object.keys(i.fonts).forEach((o) => {
|
|
894
894
|
const a = l[o];
|
|
895
895
|
t.set(o, a || "");
|
|
896
896
|
}), e.clear(), i.images.forEach((o, a) => {
|
|
897
|
-
const
|
|
898
|
-
|
|
897
|
+
const s = e.get(o);
|
|
898
|
+
s ? s.ids.add(a) : e.set(o, {
|
|
899
899
|
fileName: o,
|
|
900
900
|
ids: /* @__PURE__ */ new Set([a])
|
|
901
901
|
});
|
|
902
902
|
});
|
|
903
903
|
};
|
|
904
|
-
return
|
|
904
|
+
return T.instance.events.documentActivated.addEventListener(() => {
|
|
905
905
|
n();
|
|
906
|
-
}),
|
|
906
|
+
}), Y.on("font-not-found", (i) => {
|
|
907
907
|
n();
|
|
908
908
|
}), {
|
|
909
909
|
fonts: t,
|
|
@@ -911,15 +911,15 @@ function Ve() {
|
|
|
911
911
|
};
|
|
912
912
|
}
|
|
913
913
|
function ce() {
|
|
914
|
-
const t =
|
|
915
|
-
|
|
914
|
+
const t = U(
|
|
915
|
+
K.instance.settings
|
|
916
916
|
);
|
|
917
|
-
return
|
|
917
|
+
return K.instance.events.modified.addEventListener((e) => {
|
|
918
918
|
t[e.key] = e.value;
|
|
919
919
|
}), t;
|
|
920
920
|
}
|
|
921
|
-
function
|
|
922
|
-
const e =
|
|
921
|
+
function Dt(t) {
|
|
922
|
+
const e = U({}), n = t.curDocument, i = (l) => {
|
|
923
923
|
e.pdmode = l.pdmode, e.pdmode = l.pdsize;
|
|
924
924
|
};
|
|
925
925
|
return i(n.database), n.database.events.headerSysVarChanged.addEventListener((l) => {
|
|
@@ -928,188 +928,188 @@ function Bt(t) {
|
|
|
928
928
|
i(l.doc.database);
|
|
929
929
|
}), e;
|
|
930
930
|
}
|
|
931
|
-
const
|
|
931
|
+
const Bt = /* @__PURE__ */ L({
|
|
932
932
|
__name: "MlDialogManager",
|
|
933
933
|
setup(t, { expose: e }) {
|
|
934
934
|
const { dialogs: n, toggleDialog: i, registerDialog: l } = oe();
|
|
935
935
|
return e({
|
|
936
936
|
toggleDialog: i,
|
|
937
937
|
registerDialog: l
|
|
938
|
-
}), (o, a) => (
|
|
939
|
-
key:
|
|
938
|
+
}), (o, a) => (c(!0), y(j, null, X(g(n), (s) => (c(), y("div", {
|
|
939
|
+
key: s.name
|
|
940
940
|
}, [
|
|
941
|
-
(
|
|
942
|
-
modelValue:
|
|
943
|
-
"onUpdate:modelValue": (
|
|
944
|
-
}, { ref_for: !0 },
|
|
941
|
+
(c(), C(ve(s.component), Ne({
|
|
942
|
+
modelValue: s.visible,
|
|
943
|
+
"onUpdate:modelValue": (r) => s.visible = r
|
|
944
|
+
}, { ref_for: !0 }, s.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
945
945
|
]))), 128));
|
|
946
946
|
}
|
|
947
|
-
}),
|
|
947
|
+
}), Tt = ["accept"], Et = /* @__PURE__ */ L({
|
|
948
948
|
__name: "MlFileReader",
|
|
949
949
|
emits: ["file-read"],
|
|
950
950
|
setup(t, { emit: e }) {
|
|
951
|
-
const n = e, i =
|
|
952
|
-
const
|
|
953
|
-
let
|
|
954
|
-
for (let
|
|
955
|
-
|
|
956
|
-
return
|
|
951
|
+
const n = e, i = x(null), l = pt(), o = k(() => {
|
|
952
|
+
const s = Array.from(l.value);
|
|
953
|
+
let r = "";
|
|
954
|
+
for (let m = 0, w = s.length; m < w; ++m)
|
|
955
|
+
m == w - 1 ? r += `.${s[m]}` : r += `.${s[m]}, `;
|
|
956
|
+
return r;
|
|
957
957
|
});
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
var
|
|
961
|
-
(
|
|
958
|
+
H(() => {
|
|
959
|
+
Y.on("open-file", () => {
|
|
960
|
+
var s;
|
|
961
|
+
(s = i.value) == null || s.click();
|
|
962
962
|
});
|
|
963
963
|
});
|
|
964
|
-
const a = (
|
|
965
|
-
var
|
|
966
|
-
const
|
|
967
|
-
if (
|
|
968
|
-
const
|
|
969
|
-
|
|
964
|
+
const a = (s) => {
|
|
965
|
+
var w, f;
|
|
966
|
+
const m = (w = s.target.files) == null ? void 0 : w[0];
|
|
967
|
+
if (m && m.name) {
|
|
968
|
+
const d = (f = m.name.split(".").pop()) == null ? void 0 : f.toLocaleLowerCase(), h = new FileReader();
|
|
969
|
+
d == "dxf" ? h.readAsText(m) : d == "dwg" && h.readAsArrayBuffer(m), h.onload = (_) => {
|
|
970
970
|
var S;
|
|
971
|
-
const
|
|
972
|
-
|
|
971
|
+
const b = (S = _.target) == null ? void 0 : S.result;
|
|
972
|
+
b && n("file-read", m.name, b);
|
|
973
973
|
}, h.onerror = () => {
|
|
974
974
|
console.error("Failed to read the file.");
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
977
|
};
|
|
978
|
-
return (
|
|
978
|
+
return (s, r) => (c(), y("input", {
|
|
979
979
|
type: "file",
|
|
980
980
|
ref_key: "fileInput",
|
|
981
981
|
ref: i,
|
|
982
982
|
accept: o.value,
|
|
983
983
|
style: { display: "none" },
|
|
984
984
|
onChange: a
|
|
985
|
-
}, null, 40,
|
|
985
|
+
}, null, 40, Tt));
|
|
986
986
|
}
|
|
987
|
-
}),
|
|
987
|
+
}), $t = /* @__PURE__ */ L({
|
|
988
988
|
__name: "MlToggleButton",
|
|
989
|
-
props: /* @__PURE__ */
|
|
989
|
+
props: /* @__PURE__ */ J({
|
|
990
990
|
size: { default: 30 },
|
|
991
991
|
data: {}
|
|
992
992
|
}, {
|
|
993
993
|
modelValue: { default: !1 },
|
|
994
994
|
modelModifiers: {}
|
|
995
995
|
}),
|
|
996
|
-
emits: /* @__PURE__ */
|
|
996
|
+
emits: /* @__PURE__ */ J(["click"], ["update:modelValue"]),
|
|
997
997
|
setup(t, { emit: e }) {
|
|
998
|
-
|
|
998
|
+
Se((m) => ({
|
|
999
999
|
a97b120a: a.value
|
|
1000
1000
|
}));
|
|
1001
|
-
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"), s = k(() => i.value ? n.data.onTooltip : n.data.offTooltip), r = () => {
|
|
1002
1002
|
l("click", i.value);
|
|
1003
1003
|
};
|
|
1004
|
-
return (
|
|
1005
|
-
const
|
|
1006
|
-
return
|
|
1007
|
-
content:
|
|
1004
|
+
return (m, w) => {
|
|
1005
|
+
const f = M("el-button"), d = M("el-tooltip");
|
|
1006
|
+
return c(), C(d, {
|
|
1007
|
+
content: s.value,
|
|
1008
1008
|
"hide-after": 0
|
|
1009
1009
|
}, {
|
|
1010
1010
|
default: p(() => [
|
|
1011
|
-
|
|
1011
|
+
v(f, {
|
|
1012
1012
|
class: "ml-toggle-button",
|
|
1013
1013
|
icon: o.value,
|
|
1014
|
-
onClick:
|
|
1014
|
+
onClick: r
|
|
1015
1015
|
}, null, 8, ["icon"])
|
|
1016
1016
|
]),
|
|
1017
1017
|
_: 1
|
|
1018
1018
|
}, 8, ["content"]);
|
|
1019
1019
|
};
|
|
1020
1020
|
}
|
|
1021
|
-
}),
|
|
1021
|
+
}), Ve = /* @__PURE__ */ G($t, [["__scopeId", "data-v-48d6b055"]]), Vt = /* @__PURE__ */ L({
|
|
1022
1022
|
__name: "MlReplacementDlg",
|
|
1023
1023
|
setup(t) {
|
|
1024
|
-
const { t: e } =
|
|
1025
|
-
const
|
|
1024
|
+
const { t: e } = N(), { fonts: n, images: i } = $e(), l = x(!0), o = k(() => n.size > 0 ? "font" : "image"), a = x(null), s = k(() => T.instance.avaiableFonts.map((h) => h.name[0])), r = () => {
|
|
1025
|
+
const d = T.instance.curDocument.database;
|
|
1026
1026
|
i.forEach((_) => {
|
|
1027
|
-
_.file && _.ids.forEach((
|
|
1028
|
-
const S =
|
|
1029
|
-
|
|
1027
|
+
_.file && _.ids.forEach((b) => {
|
|
1028
|
+
const S = d.tables.blockTable.modelSpace.getIdAt(
|
|
1029
|
+
b
|
|
1030
1030
|
);
|
|
1031
1031
|
S.image = _.file, S.triggerModifiedEvent();
|
|
1032
1032
|
});
|
|
1033
1033
|
});
|
|
1034
|
-
const h =
|
|
1035
|
-
n.forEach((_,
|
|
1036
|
-
|
|
1034
|
+
const h = K.instance;
|
|
1035
|
+
n.forEach((_, b) => {
|
|
1036
|
+
b && _ && h.setFontMapping(b, _);
|
|
1037
1037
|
});
|
|
1038
|
-
},
|
|
1038
|
+
}, m = (d) => {
|
|
1039
1039
|
a.value && (a.value.click(), a.value.onchange = () => {
|
|
1040
|
-
|
|
1040
|
+
w(d);
|
|
1041
1041
|
});
|
|
1042
|
-
},
|
|
1043
|
-
var _,
|
|
1044
|
-
const h = (
|
|
1045
|
-
h && (
|
|
1046
|
-
},
|
|
1047
|
-
n.set(
|
|
1042
|
+
}, w = (d) => {
|
|
1043
|
+
var _, b;
|
|
1044
|
+
const h = (b = (_ = a.value) == null ? void 0 : _.files) == null ? void 0 : b[0];
|
|
1045
|
+
h && (d.file = h);
|
|
1046
|
+
}, f = (d, h) => {
|
|
1047
|
+
n.set(d, h);
|
|
1048
1048
|
};
|
|
1049
|
-
return (
|
|
1050
|
-
const _ = M("el-col"),
|
|
1051
|
-
return
|
|
1052
|
-
title:
|
|
1049
|
+
return (d, h) => {
|
|
1050
|
+
const _ = M("el-col"), b = M("el-row"), S = M("el-option"), $ = M("el-select"), I = M("el-tab-pane"), V = M("el-table-column"), B = M("el-button"), P = M("el-table"), R = M("el-tabs");
|
|
1051
|
+
return c(), C(Te, {
|
|
1052
|
+
title: g(e)("dialog.replacementDlg.title"),
|
|
1053
1053
|
modelValue: l.value,
|
|
1054
1054
|
"onUpdate:modelValue": h[1] || (h[1] = (z) => l.value = z),
|
|
1055
1055
|
name: "ReplacementDlg",
|
|
1056
|
-
onOk:
|
|
1056
|
+
onOk: r
|
|
1057
1057
|
}, {
|
|
1058
1058
|
default: p(() => [
|
|
1059
|
-
|
|
1059
|
+
v(R, {
|
|
1060
1060
|
type: "card",
|
|
1061
1061
|
modelValue: o.value,
|
|
1062
1062
|
"onUpdate:modelValue": h[0] || (h[0] = (z) => o.value = z)
|
|
1063
1063
|
}, {
|
|
1064
1064
|
default: p(() => [
|
|
1065
|
-
|
|
1065
|
+
g(n).size > 0 ? (c(), C(I, {
|
|
1066
1066
|
key: 0,
|
|
1067
|
-
label:
|
|
1067
|
+
label: g(e)("dialog.replacementDlg.fontTabName"),
|
|
1068
1068
|
name: "font"
|
|
1069
1069
|
}, {
|
|
1070
1070
|
default: p(() => [
|
|
1071
|
-
|
|
1072
|
-
|
|
1071
|
+
u("div", null, [
|
|
1072
|
+
v(b, null, {
|
|
1073
1073
|
default: p(() => [
|
|
1074
|
-
|
|
1074
|
+
v(_, { span: 12 }, {
|
|
1075
1075
|
default: p(() => [
|
|
1076
|
-
|
|
1076
|
+
u("span", null, D(g(e)("dialog.replacementDlg.missedFont")), 1)
|
|
1077
1077
|
]),
|
|
1078
1078
|
_: 1
|
|
1079
1079
|
}),
|
|
1080
|
-
|
|
1080
|
+
v(_, { span: 12 }, {
|
|
1081
1081
|
default: p(() => [
|
|
1082
|
-
|
|
1082
|
+
u("span", null, D(g(e)("dialog.replacementDlg.replacedFont")), 1)
|
|
1083
1083
|
]),
|
|
1084
1084
|
_: 1
|
|
1085
1085
|
})
|
|
1086
1086
|
]),
|
|
1087
1087
|
_: 1
|
|
1088
1088
|
}),
|
|
1089
|
-
(
|
|
1089
|
+
(c(!0), y(j, null, X(g(n), ([z, A]) => (c(), C(b, {
|
|
1090
1090
|
key: z,
|
|
1091
1091
|
style: { "margin-top": "10px" }
|
|
1092
1092
|
}, {
|
|
1093
1093
|
default: p(() => [
|
|
1094
|
-
|
|
1094
|
+
v(_, { span: 12 }, {
|
|
1095
1095
|
default: p(() => [
|
|
1096
|
-
|
|
1096
|
+
u("span", null, D(z), 1)
|
|
1097
1097
|
]),
|
|
1098
1098
|
_: 2
|
|
1099
1099
|
}, 1024),
|
|
1100
|
-
|
|
1100
|
+
v(_, { span: 12 }, {
|
|
1101
1101
|
default: p(() => [
|
|
1102
|
-
|
|
1102
|
+
v($, {
|
|
1103
1103
|
"model-value": A,
|
|
1104
|
-
placeholder:
|
|
1105
|
-
"onUpdate:modelValue": (
|
|
1104
|
+
placeholder: g(e)("dialog.replacementDlg.selectFont"),
|
|
1105
|
+
"onUpdate:modelValue": (O) => f(z, O),
|
|
1106
1106
|
style: { width: "100%" }
|
|
1107
1107
|
}, {
|
|
1108
1108
|
default: p(() => [
|
|
1109
|
-
(
|
|
1109
|
+
(c(!0), y(j, null, X(s.value, (O, de) => (c(), C(S, {
|
|
1110
1110
|
key: de,
|
|
1111
|
-
label:
|
|
1112
|
-
value:
|
|
1111
|
+
label: O,
|
|
1112
|
+
value: O
|
|
1113
1113
|
}, null, 8, ["label", "value"]))), 128))
|
|
1114
1114
|
]),
|
|
1115
1115
|
_: 2
|
|
@@ -1123,39 +1123,39 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1123
1123
|
])
|
|
1124
1124
|
]),
|
|
1125
1125
|
_: 1
|
|
1126
|
-
}, 8, ["label"])) :
|
|
1127
|
-
|
|
1126
|
+
}, 8, ["label"])) : q("", !0),
|
|
1127
|
+
g(i).size > 0 ? (c(), C(I, {
|
|
1128
1128
|
key: 1,
|
|
1129
|
-
label:
|
|
1129
|
+
label: g(e)("dialog.replacementDlg.imageTabName"),
|
|
1130
1130
|
name: "image"
|
|
1131
1131
|
}, {
|
|
1132
1132
|
default: p(() => [
|
|
1133
|
-
|
|
1134
|
-
data: Array.from(
|
|
1133
|
+
v(P, {
|
|
1134
|
+
data: Array.from(g(i).values()),
|
|
1135
1135
|
style: { width: "100%" },
|
|
1136
1136
|
"v-show": !1
|
|
1137
1137
|
}, {
|
|
1138
1138
|
default: p(() => [
|
|
1139
|
-
|
|
1140
|
-
label:
|
|
1139
|
+
v(V, {
|
|
1140
|
+
label: g(e)("dialog.replacementDlg.file"),
|
|
1141
1141
|
prop: "fileName",
|
|
1142
1142
|
"min-width": 0,
|
|
1143
1143
|
flex: 1
|
|
1144
1144
|
}, null, 8, ["label"]),
|
|
1145
|
-
|
|
1146
|
-
label:
|
|
1145
|
+
v(V, {
|
|
1146
|
+
label: g(e)("dialog.replacementDlg.replace"),
|
|
1147
1147
|
fixed: "right",
|
|
1148
1148
|
width: "60"
|
|
1149
1149
|
}, {
|
|
1150
1150
|
default: p(({ row: z }) => [
|
|
1151
|
-
|
|
1151
|
+
v(B, {
|
|
1152
1152
|
link: "",
|
|
1153
1153
|
type: "primary",
|
|
1154
1154
|
size: "small",
|
|
1155
|
-
onClick: (A) =>
|
|
1155
|
+
onClick: (A) => m(z)
|
|
1156
1156
|
}, {
|
|
1157
1157
|
default: p(() => h[2] || (h[2] = [
|
|
1158
|
-
|
|
1158
|
+
F(" ... ", -1)
|
|
1159
1159
|
])),
|
|
1160
1160
|
_: 2,
|
|
1161
1161
|
__: [2]
|
|
@@ -1166,17 +1166,17 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1166
1166
|
]),
|
|
1167
1167
|
_: 1
|
|
1168
1168
|
}, 8, ["data"]),
|
|
1169
|
-
|
|
1169
|
+
u("input", {
|
|
1170
1170
|
type: "file",
|
|
1171
1171
|
ref_key: "fileInput",
|
|
1172
1172
|
ref: a,
|
|
1173
1173
|
accept: ".png,.jpg,.jpeg",
|
|
1174
|
-
onChange:
|
|
1174
|
+
onChange: w,
|
|
1175
1175
|
style: { display: "none" }
|
|
1176
1176
|
}, null, 544)
|
|
1177
1177
|
]),
|
|
1178
1178
|
_: 1
|
|
1179
|
-
}, 8, ["label"])) :
|
|
1179
|
+
}, 8, ["label"])) : q("", !0)
|
|
1180
1180
|
]),
|
|
1181
1181
|
_: 1
|
|
1182
1182
|
}, 8, ["modelValue"])
|
|
@@ -1185,29 +1185,29 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1185
1185
|
}, 8, ["title", "modelValue"]);
|
|
1186
1186
|
};
|
|
1187
1187
|
}
|
|
1188
|
-
}),
|
|
1188
|
+
}), At = {
|
|
1189
1189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1190
1190
|
width: "1em",
|
|
1191
1191
|
height: "1em",
|
|
1192
1192
|
viewBox: "0 0 15 15"
|
|
1193
1193
|
};
|
|
1194
1194
|
function Ft(t, e) {
|
|
1195
|
-
return
|
|
1196
|
-
|
|
1195
|
+
return c(), y("svg", At, e[0] || (e[0] = [
|
|
1196
|
+
u("path", {
|
|
1197
1197
|
fill: "currentColor",
|
|
1198
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"
|
|
1199
1199
|
}, null, -1)
|
|
1200
1200
|
]));
|
|
1201
1201
|
}
|
|
1202
|
-
const be = { render: Ft },
|
|
1202
|
+
const be = { render: Ft }, It = {
|
|
1203
1203
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1204
1204
|
width: "1em",
|
|
1205
1205
|
height: "1em",
|
|
1206
1206
|
viewBox: "0 0 512 512"
|
|
1207
1207
|
};
|
|
1208
1208
|
function Rt(t, e) {
|
|
1209
|
-
return
|
|
1210
|
-
|
|
1209
|
+
return c(), y("svg", It, e[0] || (e[0] = [
|
|
1210
|
+
u("path", {
|
|
1211
1211
|
fill: "none",
|
|
1212
1212
|
stroke: "currentColor",
|
|
1213
1213
|
"stroke-linecap": "round",
|
|
@@ -1215,7 +1215,7 @@ function Rt(t, e) {
|
|
|
1215
1215
|
"stroke-width": "32",
|
|
1216
1216
|
d: "m434.8 137.65-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"
|
|
1217
1217
|
}, null, -1),
|
|
1218
|
-
|
|
1218
|
+
u("path", {
|
|
1219
1219
|
fill: "none",
|
|
1220
1220
|
stroke: "currentColor",
|
|
1221
1221
|
"stroke-linecap": "round",
|
|
@@ -1225,373 +1225,373 @@ function Rt(t, e) {
|
|
|
1225
1225
|
}, null, -1)
|
|
1226
1226
|
]));
|
|
1227
1227
|
}
|
|
1228
|
-
const Nt = { render: Rt },
|
|
1228
|
+
const Nt = { render: Rt }, Pt = {
|
|
1229
1229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1230
1230
|
width: "1em",
|
|
1231
1231
|
height: "1em",
|
|
1232
1232
|
viewBox: "0 0 20 20"
|
|
1233
1233
|
};
|
|
1234
|
-
function
|
|
1235
|
-
return
|
|
1236
|
-
|
|
1234
|
+
function Ot(t, e) {
|
|
1235
|
+
return c(), y("svg", Pt, e[0] || (e[0] = [
|
|
1236
|
+
u("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)
|
|
1237
1237
|
]));
|
|
1238
1238
|
}
|
|
1239
|
-
const
|
|
1239
|
+
const Ht = { render: Ot }, Gt = {
|
|
1240
1240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1241
1241
|
width: "1em",
|
|
1242
1242
|
height: "1em",
|
|
1243
1243
|
viewBox: "0 0 20 20"
|
|
1244
1244
|
};
|
|
1245
|
-
function
|
|
1246
|
-
return
|
|
1247
|
-
|
|
1245
|
+
function Wt(t, e) {
|
|
1246
|
+
return c(), y("svg", Gt, e[0] || (e[0] = [
|
|
1247
|
+
u("path", {
|
|
1248
1248
|
fill: "currentColor",
|
|
1249
1249
|
d: "M10.438 15.298h.002l4.86-4.86-9.722-4.86zM18 10l-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2L10 18 2.4 2.4z"
|
|
1250
1250
|
}, null, -1)
|
|
1251
1251
|
]));
|
|
1252
1252
|
}
|
|
1253
|
-
const
|
|
1253
|
+
const qt = { render: Wt }, Ut = {
|
|
1254
1254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1255
1255
|
width: "1em",
|
|
1256
1256
|
height: "1em",
|
|
1257
1257
|
viewBox: "0 0 20 20"
|
|
1258
1258
|
};
|
|
1259
|
-
function
|
|
1260
|
-
return
|
|
1261
|
-
|
|
1259
|
+
function jt(t, e) {
|
|
1260
|
+
return c(), y("svg", Ut, e[0] || (e[0] = [
|
|
1261
|
+
u("path", {
|
|
1262
1262
|
fill: "currentColor",
|
|
1263
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"
|
|
1264
1264
|
}, null, -1)
|
|
1265
1265
|
]));
|
|
1266
1266
|
}
|
|
1267
|
-
const
|
|
1267
|
+
const Yt = { render: jt }, Kt = {
|
|
1268
1268
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1269
1269
|
width: "1em",
|
|
1270
1270
|
height: "1em",
|
|
1271
1271
|
viewBox: "0 0 20 20"
|
|
1272
1272
|
};
|
|
1273
|
-
function
|
|
1274
|
-
return
|
|
1275
|
-
|
|
1273
|
+
function Xt(t, e) {
|
|
1274
|
+
return c(), y("svg", Kt, e[0] || (e[0] = [
|
|
1275
|
+
u("path", {
|
|
1276
1276
|
fill: "currentColor",
|
|
1277
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"
|
|
1278
1278
|
}, null, -1)
|
|
1279
1279
|
]));
|
|
1280
1280
|
}
|
|
1281
|
-
const
|
|
1281
|
+
const Qt = { render: Xt }, Zt = {
|
|
1282
1282
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1283
1283
|
width: "1em",
|
|
1284
1284
|
height: "1em",
|
|
1285
1285
|
viewBox: "0 0 20 20"
|
|
1286
1286
|
};
|
|
1287
|
-
function
|
|
1288
|
-
return
|
|
1289
|
-
|
|
1287
|
+
function Jt(t, e) {
|
|
1288
|
+
return c(), y("svg", Zt, e[0] || (e[0] = [
|
|
1289
|
+
u("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
|
|
1290
1290
|
]));
|
|
1291
1291
|
}
|
|
1292
|
-
const
|
|
1292
|
+
const en = { render: Jt }, tn = {
|
|
1293
1293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1294
1294
|
width: "1em",
|
|
1295
1295
|
height: "1em",
|
|
1296
1296
|
viewBox: "0 0 20 20"
|
|
1297
1297
|
};
|
|
1298
|
-
function
|
|
1299
|
-
return
|
|
1298
|
+
function nn(t, e) {
|
|
1299
|
+
return c(), y("svg", tn);
|
|
1300
1300
|
}
|
|
1301
|
-
const
|
|
1301
|
+
const on = { render: nn }, ln = {
|
|
1302
1302
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1303
1303
|
width: "1em",
|
|
1304
1304
|
height: "1em",
|
|
1305
1305
|
viewBox: "0 0 20 20"
|
|
1306
1306
|
};
|
|
1307
|
-
function
|
|
1308
|
-
return
|
|
1309
|
-
|
|
1310
|
-
|
|
1307
|
+
function an(t, e) {
|
|
1308
|
+
return c(), y("svg", ln, e[0] || (e[0] = [
|
|
1309
|
+
u("path", { d: "M2 9.5h16v1H2z" }, null, -1),
|
|
1310
|
+
u("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
|
|
1311
1311
|
]));
|
|
1312
1312
|
}
|
|
1313
|
-
const
|
|
1313
|
+
const rn = { render: an }, sn = {
|
|
1314
1314
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1315
1315
|
width: "1em",
|
|
1316
1316
|
height: "1em",
|
|
1317
1317
|
viewBox: "0 0 20 20"
|
|
1318
1318
|
};
|
|
1319
|
-
function
|
|
1320
|
-
return
|
|
1321
|
-
|
|
1322
|
-
|
|
1319
|
+
function cn(t, e) {
|
|
1320
|
+
return c(), y("svg", sn, e[0] || (e[0] = [
|
|
1321
|
+
u("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1322
|
+
u("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1323
1323
|
]));
|
|
1324
1324
|
}
|
|
1325
|
-
const
|
|
1325
|
+
const un = { render: cn }, dn = {
|
|
1326
1326
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1327
1327
|
width: "1em",
|
|
1328
1328
|
height: "1em",
|
|
1329
1329
|
viewBox: "0 0 20 20"
|
|
1330
1330
|
};
|
|
1331
|
-
function
|
|
1332
|
-
return
|
|
1333
|
-
|
|
1331
|
+
function mn(t, e) {
|
|
1332
|
+
return c(), y("svg", dn, e[0] || (e[0] = [
|
|
1333
|
+
u("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
|
|
1334
1334
|
]));
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1336
|
+
const pn = { render: mn }, vn = {
|
|
1337
1337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1338
1338
|
width: "1em",
|
|
1339
1339
|
height: "1em",
|
|
1340
1340
|
viewBox: "0 0 20 20"
|
|
1341
1341
|
};
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1344
|
-
|
|
1345
|
-
|
|
1342
|
+
function gn(t, e) {
|
|
1343
|
+
return c(), y("svg", vn, e[0] || (e[0] = [
|
|
1344
|
+
u("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1345
|
+
u("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)
|
|
1346
1346
|
]));
|
|
1347
1347
|
}
|
|
1348
|
-
const
|
|
1348
|
+
const fn = { render: gn }, hn = {
|
|
1349
1349
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1350
1350
|
width: "1em",
|
|
1351
1351
|
height: "1em",
|
|
1352
1352
|
viewBox: "0 0 20 20"
|
|
1353
1353
|
};
|
|
1354
|
-
function
|
|
1355
|
-
return
|
|
1356
|
-
|
|
1354
|
+
function _n(t, e) {
|
|
1355
|
+
return c(), y("svg", hn, e[0] || (e[0] = [
|
|
1356
|
+
u("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)
|
|
1357
1357
|
]));
|
|
1358
1358
|
}
|
|
1359
|
-
const
|
|
1359
|
+
const wn = { render: _n }, yn = {
|
|
1360
1360
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1361
1361
|
width: "1em",
|
|
1362
1362
|
height: "1em",
|
|
1363
1363
|
viewBox: "0 0 20 20"
|
|
1364
1364
|
};
|
|
1365
|
-
function
|
|
1366
|
-
return
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1365
|
+
function bn(t, e) {
|
|
1366
|
+
return c(), y("svg", yn, e[0] || (e[0] = [
|
|
1367
|
+
u("path", { d: "M3 9.5h14v1H3z" }, null, -1),
|
|
1368
|
+
u("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
|
|
1369
|
+
u("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)
|
|
1370
1370
|
]));
|
|
1371
1371
|
}
|
|
1372
|
-
const
|
|
1372
|
+
const xn = { render: bn }, kn = {
|
|
1373
1373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1374
1374
|
width: "1em",
|
|
1375
1375
|
height: "1em",
|
|
1376
1376
|
viewBox: "0 0 20 20"
|
|
1377
1377
|
};
|
|
1378
|
-
function
|
|
1379
|
-
return
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1378
|
+
function Mn(t, e) {
|
|
1379
|
+
return c(), y("svg", kn, e[0] || (e[0] = [
|
|
1380
|
+
u("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1381
|
+
u("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
1382
|
+
u("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)
|
|
1383
1383
|
]));
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1385
|
+
const Sn = { render: Mn }, Cn = {
|
|
1386
1386
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1387
1387
|
width: "1em",
|
|
1388
1388
|
height: "1em",
|
|
1389
1389
|
viewBox: "0 0 20 20"
|
|
1390
1390
|
};
|
|
1391
|
-
function
|
|
1392
|
-
return
|
|
1393
|
-
|
|
1394
|
-
|
|
1391
|
+
function Ln(t, e) {
|
|
1392
|
+
return c(), y("svg", Cn, e[0] || (e[0] = [
|
|
1393
|
+
u("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
1394
|
+
u("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)
|
|
1395
1395
|
]));
|
|
1396
1396
|
}
|
|
1397
|
-
const
|
|
1397
|
+
const zn = { render: Ln }, Dn = {
|
|
1398
1398
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1399
1399
|
width: "1em",
|
|
1400
1400
|
height: "1em",
|
|
1401
1401
|
viewBox: "0 0 20 20"
|
|
1402
1402
|
};
|
|
1403
|
-
function
|
|
1404
|
-
return
|
|
1405
|
-
|
|
1406
|
-
|
|
1403
|
+
function Bn(t, e) {
|
|
1404
|
+
return c(), y("svg", Dn, e[0] || (e[0] = [
|
|
1405
|
+
u("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1406
|
+
u("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1407
1407
|
]));
|
|
1408
1408
|
}
|
|
1409
|
-
const
|
|
1409
|
+
const Tn = { render: Bn }, En = {
|
|
1410
1410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1411
1411
|
width: "1em",
|
|
1412
1412
|
height: "1em",
|
|
1413
1413
|
viewBox: "0 0 20 20"
|
|
1414
1414
|
};
|
|
1415
|
-
function
|
|
1416
|
-
return
|
|
1417
|
-
|
|
1415
|
+
function $n(t, e) {
|
|
1416
|
+
return c(), y("svg", En, e[0] || (e[0] = [
|
|
1417
|
+
u("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1418
1418
|
]));
|
|
1419
1419
|
}
|
|
1420
|
-
const
|
|
1420
|
+
const Vn = { render: $n }, An = {
|
|
1421
1421
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1422
1422
|
width: "1em",
|
|
1423
1423
|
height: "1em",
|
|
1424
1424
|
viewBox: "0 0 20 20"
|
|
1425
1425
|
};
|
|
1426
1426
|
function Fn(t, e) {
|
|
1427
|
-
return
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1427
|
+
return c(), y("svg", An, e[0] || (e[0] = [
|
|
1428
|
+
u("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1429
|
+
u("path", { d: "M3 9.58h14v1H3z" }, null, -1),
|
|
1430
|
+
u("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
|
|
1431
1431
|
]));
|
|
1432
1432
|
}
|
|
1433
|
-
const
|
|
1433
|
+
const In = { render: Fn }, Rn = {
|
|
1434
1434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1435
1435
|
width: "1em",
|
|
1436
1436
|
height: "1em",
|
|
1437
1437
|
viewBox: "0 0 20 20"
|
|
1438
1438
|
};
|
|
1439
1439
|
function Nn(t, e) {
|
|
1440
|
-
return
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1440
|
+
return c(), y("svg", Rn, e[0] || (e[0] = [
|
|
1441
|
+
u("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1442
|
+
u("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1443
|
+
u("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1444
1444
|
]));
|
|
1445
1445
|
}
|
|
1446
|
-
const
|
|
1446
|
+
const Pn = { render: Nn }, On = {
|
|
1447
1447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1448
1448
|
width: "1em",
|
|
1449
1449
|
height: "1em",
|
|
1450
1450
|
viewBox: "0 0 20 20"
|
|
1451
1451
|
};
|
|
1452
|
-
function
|
|
1453
|
-
return
|
|
1454
|
-
|
|
1455
|
-
|
|
1452
|
+
function Hn(t, e) {
|
|
1453
|
+
return c(), y("svg", On, e[0] || (e[0] = [
|
|
1454
|
+
u("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1455
|
+
u("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
|
|
1456
1456
|
]));
|
|
1457
1457
|
}
|
|
1458
|
-
const
|
|
1458
|
+
const Gn = { render: Hn }, Wn = {
|
|
1459
1459
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1460
1460
|
width: "1em",
|
|
1461
1461
|
height: "1em",
|
|
1462
1462
|
viewBox: "0 0 20 20"
|
|
1463
1463
|
};
|
|
1464
|
-
function
|
|
1465
|
-
return
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1464
|
+
function qn(t, e) {
|
|
1465
|
+
return c(), y("svg", Wn, e[0] || (e[0] = [
|
|
1466
|
+
u("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1467
|
+
u("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1468
|
+
u("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)
|
|
1469
1469
|
]));
|
|
1470
1470
|
}
|
|
1471
|
-
const
|
|
1471
|
+
const Un = { render: qn }, jn = {
|
|
1472
1472
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1473
1473
|
width: "1em",
|
|
1474
1474
|
height: "1em",
|
|
1475
1475
|
viewBox: "0 0 20 20"
|
|
1476
1476
|
};
|
|
1477
|
-
function
|
|
1478
|
-
return
|
|
1479
|
-
|
|
1480
|
-
|
|
1477
|
+
function Yn(t, e) {
|
|
1478
|
+
return c(), y("svg", jn, e[0] || (e[0] = [
|
|
1479
|
+
u("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1480
|
+
u("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)
|
|
1481
1481
|
]));
|
|
1482
1482
|
}
|
|
1483
|
-
const
|
|
1483
|
+
const Kn = { render: Yn }, Xn = {
|
|
1484
1484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1485
1485
|
width: "1em",
|
|
1486
1486
|
height: "1em",
|
|
1487
1487
|
viewBox: "0 0 20 20"
|
|
1488
1488
|
};
|
|
1489
|
-
function
|
|
1490
|
-
return
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1489
|
+
function Qn(t, e) {
|
|
1490
|
+
return c(), y("svg", Xn, e[0] || (e[0] = [
|
|
1491
|
+
u("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1492
|
+
u("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
|
|
1493
|
+
u("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
|
|
1494
|
+
u("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)
|
|
1495
1495
|
]));
|
|
1496
1496
|
}
|
|
1497
|
-
const
|
|
1497
|
+
const Zn = { render: Qn }, Jn = {
|
|
1498
1498
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1499
1499
|
width: "1em",
|
|
1500
1500
|
height: "1em",
|
|
1501
1501
|
viewBox: "0 0 20 20"
|
|
1502
1502
|
};
|
|
1503
|
-
function
|
|
1504
|
-
return
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1503
|
+
function eo(t, e) {
|
|
1504
|
+
return c(), y("svg", Jn, e[0] || (e[0] = [
|
|
1505
|
+
u("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1506
|
+
u("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
1507
|
+
u("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1508
|
+
u("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)
|
|
1509
1509
|
]));
|
|
1510
1510
|
}
|
|
1511
|
-
const
|
|
1511
|
+
const to = { render: eo }, no = {
|
|
1512
1512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1513
1513
|
width: "1em",
|
|
1514
1514
|
height: "1em",
|
|
1515
1515
|
viewBox: "0 0 20 20"
|
|
1516
1516
|
};
|
|
1517
|
-
function
|
|
1518
|
-
return
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1517
|
+
function oo(t, e) {
|
|
1518
|
+
return c(), y("svg", no, e[0] || (e[0] = [
|
|
1519
|
+
u("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1520
|
+
u("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
1521
|
+
u("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)
|
|
1522
1522
|
]));
|
|
1523
1523
|
}
|
|
1524
|
-
const
|
|
1524
|
+
const lo = { render: oo }, ao = /* @__PURE__ */ L({
|
|
1525
1525
|
__name: "MlPointStyleDlg",
|
|
1526
1526
|
setup(t) {
|
|
1527
|
-
const { t: e } =
|
|
1527
|
+
const { t: e } = N(), n = Dt(T.instance), i = x(!0), l = x(0), o = [
|
|
1528
1528
|
[
|
|
1529
|
-
{ id: 0, icon:
|
|
1530
|
-
{ id: 1, icon:
|
|
1531
|
-
{ id: 2, icon:
|
|
1532
|
-
{ id: 3, icon:
|
|
1533
|
-
{ id: 4, icon:
|
|
1529
|
+
{ id: 0, icon: en },
|
|
1530
|
+
{ id: 1, icon: on },
|
|
1531
|
+
{ id: 2, icon: rn },
|
|
1532
|
+
{ id: 3, icon: un },
|
|
1533
|
+
{ id: 4, icon: pn }
|
|
1534
1534
|
],
|
|
1535
1535
|
[
|
|
1536
|
-
{ id: 32, icon:
|
|
1537
|
-
{ id: 33, icon:
|
|
1538
|
-
{ id: 34, icon:
|
|
1539
|
-
{ id: 35, icon:
|
|
1540
|
-
{ id: 36, icon:
|
|
1536
|
+
{ id: 32, icon: fn },
|
|
1537
|
+
{ id: 33, icon: wn },
|
|
1538
|
+
{ id: 34, icon: xn },
|
|
1539
|
+
{ id: 35, icon: Sn },
|
|
1540
|
+
{ id: 36, icon: zn }
|
|
1541
1541
|
],
|
|
1542
1542
|
[
|
|
1543
|
-
{ id: 64, icon:
|
|
1544
|
-
{ id: 65, icon:
|
|
1545
|
-
{ id: 66, icon:
|
|
1546
|
-
{ id: 67, icon:
|
|
1547
|
-
{ id: 68, icon:
|
|
1543
|
+
{ id: 64, icon: Tn },
|
|
1544
|
+
{ id: 65, icon: Vn },
|
|
1545
|
+
{ id: 66, icon: In },
|
|
1546
|
+
{ id: 67, icon: Pn },
|
|
1547
|
+
{ id: 68, icon: Gn }
|
|
1548
1548
|
],
|
|
1549
1549
|
[
|
|
1550
|
-
{ id: 96, icon:
|
|
1551
|
-
{ id: 97, icon:
|
|
1552
|
-
{ id: 98, icon:
|
|
1553
|
-
{ id: 99, icon:
|
|
1554
|
-
{ id: 100, icon:
|
|
1550
|
+
{ id: 96, icon: Un },
|
|
1551
|
+
{ id: 97, icon: Kn },
|
|
1552
|
+
{ id: 98, icon: Zn },
|
|
1553
|
+
{ id: 99, icon: to },
|
|
1554
|
+
{ id: 100, icon: lo }
|
|
1555
1555
|
]
|
|
1556
1556
|
], a = () => {
|
|
1557
1557
|
n.pdmode && (l.value = n.pdmode);
|
|
1558
1558
|
};
|
|
1559
1559
|
a();
|
|
1560
|
-
const
|
|
1561
|
-
l.value = o[
|
|
1562
|
-
},
|
|
1563
|
-
|
|
1564
|
-
},
|
|
1560
|
+
const s = (f, d) => o[f][d].id == l.value ? "primary" : null, r = (f, d) => {
|
|
1561
|
+
l.value = o[f][d].id;
|
|
1562
|
+
}, m = () => {
|
|
1563
|
+
T.instance.curDocument.database.pdmode = l.value;
|
|
1564
|
+
}, w = () => {
|
|
1565
1565
|
a();
|
|
1566
1566
|
};
|
|
1567
|
-
return (
|
|
1568
|
-
const h = M("el-button"), _ = M("el-col"),
|
|
1569
|
-
return
|
|
1570
|
-
title:
|
|
1567
|
+
return (f, d) => {
|
|
1568
|
+
const h = M("el-button"), _ = M("el-col"), b = M("el-row");
|
|
1569
|
+
return c(), C(Te, {
|
|
1570
|
+
title: g(e)("dialog.pointStyleDlg.title"),
|
|
1571
1571
|
width: 400,
|
|
1572
1572
|
modelValue: i.value,
|
|
1573
|
-
"onUpdate:modelValue":
|
|
1573
|
+
"onUpdate:modelValue": d[0] || (d[0] = (S) => i.value = S),
|
|
1574
1574
|
name: "PointStyleDlg",
|
|
1575
|
-
onOk:
|
|
1576
|
-
onCancel:
|
|
1575
|
+
onOk: m,
|
|
1576
|
+
onCancel: w
|
|
1577
1577
|
}, {
|
|
1578
1578
|
default: p(() => [
|
|
1579
|
-
(
|
|
1579
|
+
(c(), y(j, null, X(o, (S, $) => v(b, {
|
|
1580
1580
|
key: $,
|
|
1581
1581
|
style: { "margin-top": "10px" },
|
|
1582
1582
|
gutter: 6,
|
|
1583
1583
|
justify: "space-between"
|
|
1584
1584
|
}, {
|
|
1585
1585
|
default: p(() => [
|
|
1586
|
-
(
|
|
1586
|
+
(c(!0), y(j, null, X(S, (I, V) => (c(), C(_, {
|
|
1587
1587
|
key: V,
|
|
1588
1588
|
span: 4
|
|
1589
1589
|
}, {
|
|
1590
1590
|
default: p(() => [
|
|
1591
|
-
|
|
1592
|
-
icon:
|
|
1593
|
-
type:
|
|
1594
|
-
onClick: (
|
|
1591
|
+
v(h, {
|
|
1592
|
+
icon: I.icon,
|
|
1593
|
+
type: s($, V),
|
|
1594
|
+
onClick: (B) => r($, V),
|
|
1595
1595
|
style: { "font-size": "25px" }
|
|
1596
1596
|
}, null, 8, ["icon", "type", "onClick"])
|
|
1597
1597
|
]),
|
|
@@ -1616,73 +1616,73 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
|
|
|
1616
1616
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
1617
1617
|
}
|
|
1618
1618
|
})();
|
|
1619
|
-
const
|
|
1619
|
+
const io = {
|
|
1620
1620
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1621
1621
|
width: "1em",
|
|
1622
1622
|
height: "1em",
|
|
1623
1623
|
viewBox: "0 0 1024 1024"
|
|
1624
|
-
},
|
|
1624
|
+
}, ro = /* @__PURE__ */ u("path", {
|
|
1625
1625
|
fill: "currentColor",
|
|
1626
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"
|
|
1627
|
-
}, null, -1),
|
|
1628
|
-
|
|
1627
|
+
}, null, -1), so = [
|
|
1628
|
+
ro
|
|
1629
1629
|
];
|
|
1630
|
-
function
|
|
1631
|
-
return
|
|
1630
|
+
function co(t, e) {
|
|
1631
|
+
return c(), y("svg", io, [...so]);
|
|
1632
1632
|
}
|
|
1633
|
-
const xe = { render:
|
|
1633
|
+
const xe = { render: co }, uo = {
|
|
1634
1634
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1635
1635
|
width: "1em",
|
|
1636
1636
|
height: "1em",
|
|
1637
1637
|
viewBox: "0 0 1024 1024"
|
|
1638
|
-
},
|
|
1638
|
+
}, mo = /* @__PURE__ */ u("path", {
|
|
1639
1639
|
fill: "currentColor",
|
|
1640
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"
|
|
1641
|
-
}, null, -1),
|
|
1642
|
-
|
|
1641
|
+
}, null, -1), po = [
|
|
1642
|
+
mo
|
|
1643
1643
|
];
|
|
1644
1644
|
function vo(t, e) {
|
|
1645
|
-
return
|
|
1645
|
+
return c(), y("svg", uo, [...po]);
|
|
1646
1646
|
}
|
|
1647
|
-
const ke = { render: vo },
|
|
1647
|
+
const ke = { render: vo }, go = /* @__PURE__ */ L({
|
|
1648
1648
|
__name: "MlCollapse",
|
|
1649
|
-
props: /* @__PURE__ */
|
|
1649
|
+
props: /* @__PURE__ */ J({
|
|
1650
1650
|
size: { default: 18 },
|
|
1651
1651
|
reverse: { type: Boolean, default: !1 }
|
|
1652
1652
|
}, {
|
|
1653
1653
|
modelValue: { default: !0 },
|
|
1654
1654
|
modelModifiers: {}
|
|
1655
1655
|
}),
|
|
1656
|
-
emits: /* @__PURE__ */
|
|
1656
|
+
emits: /* @__PURE__ */ J(["change"], ["update:modelValue"]),
|
|
1657
1657
|
setup(t, { emit: e }) {
|
|
1658
|
-
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`), s = () => {
|
|
1659
1659
|
l("change", i.value), i.value = !i.value;
|
|
1660
1660
|
};
|
|
1661
|
-
return (
|
|
1662
|
-
const
|
|
1663
|
-
return
|
|
1661
|
+
return (r, m) => {
|
|
1662
|
+
const w = se;
|
|
1663
|
+
return c(), C(w, {
|
|
1664
1664
|
size: a.value,
|
|
1665
|
-
onClick:
|
|
1665
|
+
onClick: s
|
|
1666
1666
|
}, {
|
|
1667
1667
|
default: p(() => [
|
|
1668
|
-
(
|
|
1668
|
+
(c(), C(ve(o.value)))
|
|
1669
1669
|
]),
|
|
1670
1670
|
_: 1
|
|
1671
1671
|
}, 8, ["size"]);
|
|
1672
1672
|
};
|
|
1673
1673
|
}
|
|
1674
|
-
}),
|
|
1674
|
+
}), fo = (t) => (Le("data-v-3fc33b5d"), t = t(), ze(), t), ho = /* @__PURE__ */ fo(() => /* @__PURE__ */ u("svg", {
|
|
1675
1675
|
preserveAspectRatio: "xMidYMid meet",
|
|
1676
1676
|
viewBox: "0 0 24 24",
|
|
1677
1677
|
width: "1.2em",
|
|
1678
1678
|
height: "1.2em",
|
|
1679
1679
|
"data-v-63d067da": ""
|
|
1680
1680
|
}, [
|
|
1681
|
-
/* @__PURE__ */
|
|
1681
|
+
/* @__PURE__ */ u("path", {
|
|
1682
1682
|
fill: "currentColor",
|
|
1683
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"
|
|
1684
1684
|
})
|
|
1685
|
-
], -1)),
|
|
1685
|
+
], -1)), _o = /* @__PURE__ */ L({
|
|
1686
1686
|
__name: "MlDropdown",
|
|
1687
1687
|
props: {
|
|
1688
1688
|
icon: {},
|
|
@@ -1696,18 +1696,18 @@ const ke = { render: vo }, fo = /* @__PURE__ */ L({
|
|
|
1696
1696
|
const n = t, i = e, l = k(() => n.items.filter((a) => a.name !== n.current)), o = (a) => {
|
|
1697
1697
|
i("click", a);
|
|
1698
1698
|
};
|
|
1699
|
-
return (a,
|
|
1700
|
-
const
|
|
1701
|
-
return
|
|
1699
|
+
return (a, s) => {
|
|
1700
|
+
const r = se, m = nt, w = tt, f = et;
|
|
1701
|
+
return c(), C(f, { onCommand: o }, {
|
|
1702
1702
|
dropdown: p(() => [
|
|
1703
|
-
|
|
1703
|
+
v(w, null, {
|
|
1704
1704
|
default: p(() => [
|
|
1705
|
-
(
|
|
1706
|
-
key:
|
|
1707
|
-
command:
|
|
1705
|
+
(c(!0), y(j, null, X(l.value, (d) => (c(), C(m, {
|
|
1706
|
+
key: d.text,
|
|
1707
|
+
command: d.name
|
|
1708
1708
|
}, {
|
|
1709
1709
|
default: p(() => [
|
|
1710
|
-
|
|
1710
|
+
F(D(d.text), 1)
|
|
1711
1711
|
]),
|
|
1712
1712
|
_: 2
|
|
1713
1713
|
}, 1032, ["command"]))), 128))
|
|
@@ -1716,12 +1716,12 @@ const ke = { render: vo }, fo = /* @__PURE__ */ L({
|
|
|
1716
1716
|
})
|
|
1717
1717
|
]),
|
|
1718
1718
|
default: p(() => [
|
|
1719
|
-
|
|
1719
|
+
v(r, {
|
|
1720
1720
|
size: "30",
|
|
1721
1721
|
class: "ml-dropdown-icon"
|
|
1722
1722
|
}, {
|
|
1723
1723
|
default: p(() => [
|
|
1724
|
-
|
|
1724
|
+
ho
|
|
1725
1725
|
]),
|
|
1726
1726
|
_: 1
|
|
1727
1727
|
})
|
|
@@ -1735,7 +1735,7 @@ const ke = { render: vo }, fo = /* @__PURE__ */ L({
|
|
|
1735
1735
|
for (const [i, l] of e)
|
|
1736
1736
|
n[i] = l;
|
|
1737
1737
|
return n;
|
|
1738
|
-
},
|
|
1738
|
+
}, wo = /* @__PURE__ */ ue(_o, [["__scopeId", "data-v-3fc33b5d"]]), yo = '<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>', bo = /* @__PURE__ */ L({
|
|
1739
1739
|
__name: "MlLanguage",
|
|
1740
1740
|
props: {
|
|
1741
1741
|
languages: {},
|
|
@@ -1748,28 +1748,28 @@ const ke = { render: vo }, fo = /* @__PURE__ */ L({
|
|
|
1748
1748
|
const n = t, i = e, l = (o) => {
|
|
1749
1749
|
i("click", o);
|
|
1750
1750
|
};
|
|
1751
|
-
return (o, a) => (
|
|
1752
|
-
icon:
|
|
1751
|
+
return (o, a) => (c(), C(wo, {
|
|
1752
|
+
icon: yo,
|
|
1753
1753
|
items: n.languages,
|
|
1754
1754
|
current: n.current,
|
|
1755
1755
|
onClick: l
|
|
1756
1756
|
}, null, 8, ["items", "current"]));
|
|
1757
1757
|
}
|
|
1758
|
-
}),
|
|
1759
|
-
function
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1758
|
+
}), xo = {}, ko = { class: "ml-status-bar" }, Mo = { class: "ml-status-bar-left" }, So = { class: "ml-status-bar-right" };
|
|
1759
|
+
function Co(t, e) {
|
|
1760
|
+
return c(), y("div", ko, [
|
|
1761
|
+
u("div", Mo, [
|
|
1762
1762
|
ie(t.$slots, "left", {}, void 0, !0)
|
|
1763
1763
|
]),
|
|
1764
|
-
|
|
1764
|
+
u("div", So, [
|
|
1765
1765
|
ie(t.$slots, "right", {}, void 0, !0)
|
|
1766
1766
|
])
|
|
1767
1767
|
]);
|
|
1768
1768
|
}
|
|
1769
|
-
const
|
|
1769
|
+
const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf0"]]), zo = {
|
|
1770
1770
|
key: 0,
|
|
1771
1771
|
class: "ml-toolbar-button-text"
|
|
1772
|
-
},
|
|
1772
|
+
}, Do = /* @__PURE__ */ L({
|
|
1773
1773
|
__name: "MlToolBar",
|
|
1774
1774
|
props: {
|
|
1775
1775
|
items: {},
|
|
@@ -1788,36 +1788,36 @@ const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf
|
|
|
1788
1788
|
return 50;
|
|
1789
1789
|
}
|
|
1790
1790
|
return 70;
|
|
1791
|
-
}),
|
|
1792
|
-
i("click",
|
|
1791
|
+
}), s = (w) => w.description ? w.description : w.text, r = k(() => n.size === "large"), m = (w) => {
|
|
1792
|
+
i("click", w);
|
|
1793
1793
|
};
|
|
1794
|
-
return (
|
|
1795
|
-
const
|
|
1796
|
-
return
|
|
1797
|
-
class:
|
|
1794
|
+
return (w, f) => {
|
|
1795
|
+
const d = se, h = at, _ = lt, b = ot;
|
|
1796
|
+
return c(), C(b, {
|
|
1797
|
+
class: Ce(l.value)
|
|
1798
1798
|
}, {
|
|
1799
1799
|
default: p(() => [
|
|
1800
|
-
(
|
|
1800
|
+
(c(!0), y(j, null, X(w.items, (S, $) => (c(), C(_, {
|
|
1801
1801
|
key: S.text,
|
|
1802
|
-
content:
|
|
1802
|
+
content: s(S),
|
|
1803
1803
|
"hide-after": 0
|
|
1804
1804
|
}, {
|
|
1805
1805
|
default: p(() => [
|
|
1806
|
-
(
|
|
1806
|
+
(c(), C(h, {
|
|
1807
1807
|
class: "ml-toolbar-button",
|
|
1808
1808
|
style: pe({ width: a.value + "px", height: a.value + "px" }),
|
|
1809
1809
|
key: $,
|
|
1810
|
-
onClick: (
|
|
1810
|
+
onClick: (I) => m(S.command)
|
|
1811
1811
|
}, {
|
|
1812
1812
|
default: p(() => [
|
|
1813
|
-
|
|
1814
|
-
|
|
1813
|
+
u("div", null, [
|
|
1814
|
+
v(d, { size: o.value }, {
|
|
1815
1815
|
default: p(() => [
|
|
1816
|
-
(
|
|
1816
|
+
(c(), C(ve(S.icon)))
|
|
1817
1817
|
]),
|
|
1818
1818
|
_: 2
|
|
1819
1819
|
}, 1032, ["size"]),
|
|
1820
|
-
|
|
1820
|
+
r.value ? (c(), y("div", zo, D(S.text), 1)) : q("", !0)
|
|
1821
1821
|
])
|
|
1822
1822
|
]),
|
|
1823
1823
|
_: 2
|
|
@@ -1830,35 +1830,35 @@ const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf
|
|
|
1830
1830
|
}, 8, ["class"]);
|
|
1831
1831
|
};
|
|
1832
1832
|
}
|
|
1833
|
-
}),
|
|
1834
|
-
function
|
|
1835
|
-
const i =
|
|
1833
|
+
}), Bo = /* @__PURE__ */ ue(Do, [["__scopeId", "data-v-3eed2087"]]), Me = 20;
|
|
1834
|
+
function To(t, e, n) {
|
|
1835
|
+
const i = x(!1), l = (r) => {
|
|
1836
1836
|
if (n.value && t.value) {
|
|
1837
|
-
const
|
|
1838
|
-
i.value = !
|
|
1837
|
+
const m = t.value.getBoundingClientRect(), w = r.clientX < m.left || r.clientX > m.right || r.clientY < m.top || r.clientY > m.bottom;
|
|
1838
|
+
i.value = !w;
|
|
1839
1839
|
}
|
|
1840
1840
|
}, o = () => {
|
|
1841
1841
|
n.value && (i.value = !0);
|
|
1842
1842
|
}, a = () => {
|
|
1843
1843
|
e.value && e.value.addEventListener("mousemove", o), t.value && t.value.addEventListener("mousemove", o);
|
|
1844
|
-
},
|
|
1844
|
+
}, s = () => {
|
|
1845
1845
|
e.value && e.value.removeEventListener("mousemove", o), t.value && t.value.removeEventListener("mousemove", o);
|
|
1846
1846
|
};
|
|
1847
|
-
return
|
|
1847
|
+
return H(() => {
|
|
1848
1848
|
window.addEventListener("mousemove", l);
|
|
1849
|
-
}),
|
|
1849
|
+
}), te(() => {
|
|
1850
1850
|
window.removeEventListener("mousemove", l);
|
|
1851
|
-
}), E(n, (
|
|
1852
|
-
|
|
1853
|
-
}), E(t, (
|
|
1854
|
-
|
|
1851
|
+
}), E(n, (r) => {
|
|
1852
|
+
r && (i.value = !1);
|
|
1853
|
+
}), E(t, (r) => {
|
|
1854
|
+
r ? a() : s();
|
|
1855
1855
|
}), { autoOpened: i };
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1858
|
-
const i =
|
|
1857
|
+
function Eo(t, e, n) {
|
|
1858
|
+
const i = x(!1), l = x(null), o = x(null), a = { x: 0, y: 0 }, s = k(() => l.value == null || o.value == null ? { x: 0, y: 0 } : {
|
|
1859
1859
|
x: l.value.x - o.value.x,
|
|
1860
1860
|
y: l.value.y - o.value.y
|
|
1861
|
-
}),
|
|
1861
|
+
}), r = () => {
|
|
1862
1862
|
if (t.value) {
|
|
1863
1863
|
const _ = t.value.getBoundingClientRect();
|
|
1864
1864
|
o.value = {
|
|
@@ -1869,100 +1869,100 @@ function $o(t, e, n) {
|
|
|
1869
1869
|
y: _.top
|
|
1870
1870
|
};
|
|
1871
1871
|
}
|
|
1872
|
-
},
|
|
1873
|
-
t.value && t.value.addEventListener("mousedown",
|
|
1874
|
-
},
|
|
1875
|
-
t.value && t.value.removeEventListener("mousedown",
|
|
1876
|
-
},
|
|
1872
|
+
}, m = () => {
|
|
1873
|
+
t.value && t.value.addEventListener("mousedown", f);
|
|
1874
|
+
}, w = () => {
|
|
1875
|
+
t.value && t.value.removeEventListener("mousedown", f);
|
|
1876
|
+
}, f = (_) => {
|
|
1877
1877
|
if (t.value != null) {
|
|
1878
1878
|
if (e && e.value) {
|
|
1879
|
-
const
|
|
1880
|
-
if (_.clientX <
|
|
1879
|
+
const b = e.value.getBoundingClientRect();
|
|
1880
|
+
if (_.clientX < b.left || _.clientX > b.right || _.clientY < b.top || _.clientY > b.bottom) return;
|
|
1881
1881
|
}
|
|
1882
|
-
i.value = !0, a.x = _.clientX, a.y = _.clientY,
|
|
1882
|
+
i.value = !0, a.x = _.clientX, a.y = _.clientY, r(), document.addEventListener("mousemove", d), document.addEventListener("mouseup", h);
|
|
1883
1883
|
}
|
|
1884
|
-
},
|
|
1884
|
+
}, d = (_) => {
|
|
1885
1885
|
if (i.value && o.value && l.value) {
|
|
1886
|
-
const
|
|
1886
|
+
const b = window.innerWidth, S = window.innerHeight, $ = t.value, I = $.getBoundingClientRect(), V = I.width, B = I.height, P = o.value.x + (_.clientX - a.x), R = o.value.y + (_.clientY - a.y);
|
|
1887
1887
|
l.value.x = Math.max(
|
|
1888
1888
|
n ? n.value.offset.value.left : 0,
|
|
1889
|
-
|
|
1889
|
+
P
|
|
1890
1890
|
);
|
|
1891
|
-
const z =
|
|
1891
|
+
const z = b - V;
|
|
1892
1892
|
l.value.x = Math.min(
|
|
1893
1893
|
n ? z - n.value.offset.value.right : z,
|
|
1894
1894
|
l.value.x
|
|
1895
1895
|
), l.value.y = Math.max(
|
|
1896
1896
|
n ? n.value.offset.value.top : 0,
|
|
1897
|
-
Math.min(
|
|
1897
|
+
Math.min(R, S - B)
|
|
1898
1898
|
);
|
|
1899
|
-
const A = S -
|
|
1899
|
+
const A = S - B;
|
|
1900
1900
|
l.value.y = Math.min(
|
|
1901
1901
|
n ? A - n.value.offset.value.bottom : A,
|
|
1902
1902
|
l.value.y
|
|
1903
1903
|
), $.style.left = l.value.x + "px", $.style.top = l.value.y + "px";
|
|
1904
1904
|
}
|
|
1905
1905
|
}, h = () => {
|
|
1906
|
-
i.value = !1, document.removeEventListener("mousemove",
|
|
1906
|
+
i.value = !1, document.removeEventListener("mousemove", d), document.removeEventListener("mouseup", h);
|
|
1907
1907
|
};
|
|
1908
|
-
return
|
|
1909
|
-
t.value && (
|
|
1910
|
-
}),
|
|
1911
|
-
t.value && t.value.removeEventListener("mousedown",
|
|
1908
|
+
return H(() => {
|
|
1909
|
+
t.value && (r(), m());
|
|
1910
|
+
}), te(() => {
|
|
1911
|
+
t.value && t.value.removeEventListener("mousedown", f);
|
|
1912
1912
|
}), E(t, (_) => {
|
|
1913
|
-
_ ? (
|
|
1913
|
+
_ ? (r(), m()) : w();
|
|
1914
1914
|
}), {
|
|
1915
1915
|
isDragging: i,
|
|
1916
|
-
movement:
|
|
1916
|
+
movement: s,
|
|
1917
1917
|
position: l
|
|
1918
1918
|
};
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1921
|
-
const i =
|
|
1920
|
+
function $o(t, e, n) {
|
|
1921
|
+
const i = x(!1), l = x("left"), { isDragging: o, movement: a, position: s } = Eo(
|
|
1922
1922
|
t,
|
|
1923
1923
|
e,
|
|
1924
1924
|
n
|
|
1925
1925
|
);
|
|
1926
|
-
return E(a, (
|
|
1927
|
-
if (
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1926
|
+
return E(a, (r) => {
|
|
1927
|
+
if (r && t.value) {
|
|
1928
|
+
const m = t.value.getBoundingClientRect();
|
|
1929
|
+
m.left <= n.value.offset.value.left ? (l.value = "left", i.value = !0) : window.innerWidth - m.left - m.width <= n.value.offset.value.right ? (l.value = "right", i.value = !0) : i.value = !1;
|
|
1930
1930
|
}
|
|
1931
1931
|
}), {
|
|
1932
1932
|
docked: i,
|
|
1933
1933
|
orientation: l,
|
|
1934
1934
|
isDragging: o,
|
|
1935
1935
|
movement: a,
|
|
1936
|
-
position:
|
|
1936
|
+
position: s
|
|
1937
1937
|
};
|
|
1938
1938
|
}
|
|
1939
|
-
function
|
|
1940
|
-
const l =
|
|
1941
|
-
return E(t, (
|
|
1942
|
-
l.value =
|
|
1943
|
-
}), E(e, (
|
|
1944
|
-
o.value =
|
|
1945
|
-
}), E(n, (
|
|
1946
|
-
a.value =
|
|
1947
|
-
}), E(i, (
|
|
1948
|
-
|
|
1939
|
+
function Vo(t, e, n, i) {
|
|
1940
|
+
const l = x(null), o = x(null), a = x(null), s = x(null);
|
|
1941
|
+
return E(t, (r, m) => {
|
|
1942
|
+
l.value = m;
|
|
1943
|
+
}), E(e, (r, m) => {
|
|
1944
|
+
o.value = m;
|
|
1945
|
+
}), E(n, (r, m) => {
|
|
1946
|
+
a.value = m;
|
|
1947
|
+
}), E(i, (r, m) => {
|
|
1948
|
+
s.value = m;
|
|
1949
1949
|
}), {
|
|
1950
1950
|
lastLeft: l,
|
|
1951
1951
|
lastTop: o,
|
|
1952
1952
|
lastWidth: a,
|
|
1953
|
-
lastHeight:
|
|
1953
|
+
lastHeight: s
|
|
1954
1954
|
};
|
|
1955
1955
|
}
|
|
1956
|
-
function
|
|
1957
|
-
const l =
|
|
1958
|
-
return E([a,
|
|
1959
|
-
(l.value == null || o.value == null || e.value) && (l.value =
|
|
1960
|
-
}), E(
|
|
1961
|
-
i.value && n.value && (o.value =
|
|
1956
|
+
function Ao(t, e, n, i) {
|
|
1957
|
+
const l = x(t.value.width), o = x(t.value.left), a = k(() => t.value.width), s = k(() => t.value.left), r = k(() => n.value ? n.value.x : null);
|
|
1958
|
+
return E([a, s], ([m, w]) => {
|
|
1959
|
+
(l.value == null || o.value == null || e.value) && (l.value = m, o.value = w);
|
|
1960
|
+
}), E(r, (m) => {
|
|
1961
|
+
i.value && n.value && (o.value = m);
|
|
1962
1962
|
}), { left: o, width: l };
|
|
1963
1963
|
}
|
|
1964
|
-
function Fo(t, e =
|
|
1965
|
-
const n =
|
|
1964
|
+
function Fo(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
1965
|
+
const n = x({});
|
|
1966
1966
|
let i = !1;
|
|
1967
1967
|
const l = () => {
|
|
1968
1968
|
if (!i && t.value) {
|
|
@@ -1970,7 +1970,7 @@ function Fo(t, e = b({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
1970
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;
|
|
1971
1971
|
}
|
|
1972
1972
|
};
|
|
1973
|
-
return
|
|
1973
|
+
return H(() => {
|
|
1974
1974
|
t.value && l();
|
|
1975
1975
|
}), E(t, (o) => {
|
|
1976
1976
|
o && l();
|
|
@@ -1979,67 +1979,67 @@ function Fo(t, e = b({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
1979
1979
|
initialRect: n
|
|
1980
1980
|
};
|
|
1981
1981
|
}
|
|
1982
|
-
function
|
|
1983
|
-
const { initialRect: o } = Fo(t, i), a =
|
|
1984
|
-
let
|
|
1985
|
-
const
|
|
1982
|
+
function Io(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom: 0 }), l = { width: 20, height: 40 }) {
|
|
1983
|
+
const { initialRect: o } = Fo(t, i), a = x(!1);
|
|
1984
|
+
let s = 0, r = 0, m = 0, w = 0, f = 0;
|
|
1985
|
+
const d = 5, h = x(null), _ = (V) => {
|
|
1986
1986
|
if (!(!t.value || e.value))
|
|
1987
1987
|
if (a.value) {
|
|
1988
|
-
const
|
|
1988
|
+
const B = V.clientX - w, P = V.clientY - f;
|
|
1989
1989
|
if (h.value === "left" || h.value === "left-bottom-corner") {
|
|
1990
|
-
const
|
|
1991
|
-
|
|
1990
|
+
const R = r - B;
|
|
1991
|
+
R > l.width && (o.value.width = R, o.value.left = s + B, t.value.style.left = o.value.left + "px", t.value.style.width = o.value.width + "px");
|
|
1992
1992
|
}
|
|
1993
1993
|
if (h.value === "right" || h.value === "right-bottom-corner") {
|
|
1994
|
-
const
|
|
1995
|
-
|
|
1994
|
+
const R = r + B;
|
|
1995
|
+
R > l.width && (o.value.width = R, t.value.style.width = o.value.width + "px");
|
|
1996
1996
|
}
|
|
1997
1997
|
if (h.value === "bottom" || h.value === "left-bottom-corner" || h.value === "right-bottom-corner") {
|
|
1998
|
-
const
|
|
1999
|
-
|
|
1998
|
+
const R = m + P;
|
|
1999
|
+
R > l.height && (o.value.height = R, t.value.style.height = o.value.height + "px");
|
|
2000
2000
|
}
|
|
2001
2001
|
} else {
|
|
2002
|
-
const
|
|
2003
|
-
z &&
|
|
2002
|
+
const B = t.value.getBoundingClientRect(), P = V.clientX - B.left, R = V.clientY - B.top, z = P <= d, A = P >= B.width - d, O = R >= B.height - d;
|
|
2003
|
+
z && O && n.value ? (t.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : A && O && !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") : O ? (t.value.style.cursor = "ns-resize", h.value = "bottom") : (t.value.style.cursor = "", h.value = null);
|
|
2004
2004
|
}
|
|
2005
|
-
},
|
|
2005
|
+
}, b = (V) => {
|
|
2006
2006
|
if (!t.value || !h.value) return;
|
|
2007
|
-
const
|
|
2008
|
-
|
|
2007
|
+
const B = t.value.getBoundingClientRect();
|
|
2008
|
+
w = V.clientX, f = V.clientY, r = B.width, m = B.height, s = B.left, o.value.width = r, o.value.height = m, o.value.left = B.left, o.value.top = B.top, a.value = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", S);
|
|
2009
2009
|
}, S = () => {
|
|
2010
2010
|
a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", S);
|
|
2011
2011
|
}, $ = () => {
|
|
2012
|
-
t.value && (t.value.removeEventListener("mousedown",
|
|
2013
|
-
},
|
|
2014
|
-
t.value && (t.value.addEventListener("mousedown",
|
|
2012
|
+
t.value && (t.value.removeEventListener("mousedown", b), t.value.removeEventListener("mousemove", _)), document.removeEventListener("mouseup", S);
|
|
2013
|
+
}, I = () => {
|
|
2014
|
+
t.value && (t.value.addEventListener("mousedown", b), t.value.addEventListener("mousemove", _));
|
|
2015
2015
|
};
|
|
2016
|
-
return
|
|
2017
|
-
t.value &&
|
|
2018
|
-
}),
|
|
2016
|
+
return H(() => {
|
|
2017
|
+
t.value && I();
|
|
2018
|
+
}), De(() => {
|
|
2019
2019
|
$();
|
|
2020
2020
|
}), E(t, (V) => {
|
|
2021
|
-
V ?
|
|
2021
|
+
V ? I() : $();
|
|
2022
2022
|
}), { rect: o, isResizing: a };
|
|
2023
2023
|
}
|
|
2024
2024
|
function Ro(t, e, n, i) {
|
|
2025
2025
|
const l = () => {
|
|
2026
2026
|
if (t.value) {
|
|
2027
|
-
const
|
|
2028
|
-
e.value ?
|
|
2027
|
+
const r = t.value;
|
|
2028
|
+
e.value ? r.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : r.style.transition = "width 0.3s ease";
|
|
2029
2029
|
}
|
|
2030
2030
|
}, o = () => {
|
|
2031
2031
|
t.value && (t.value.style.transition = "");
|
|
2032
2032
|
}, a = () => {
|
|
2033
2033
|
t.value && t.value.removeEventListener("transitionend", o);
|
|
2034
|
-
},
|
|
2034
|
+
}, s = () => {
|
|
2035
2035
|
t.value && t.value.addEventListener("transitionend", o);
|
|
2036
2036
|
};
|
|
2037
|
-
|
|
2037
|
+
H(() => {
|
|
2038
2038
|
t.value && t.value.addEventListener("transitionend", o);
|
|
2039
|
-
}),
|
|
2039
|
+
}), De(() => {
|
|
2040
2040
|
t.value && t.value.removeEventListener("transitionend", o);
|
|
2041
|
-
}), E(t, (
|
|
2042
|
-
|
|
2041
|
+
}), E(t, (r) => {
|
|
2042
|
+
r ? s() : a();
|
|
2043
2043
|
}), E(n, () => {
|
|
2044
2044
|
l();
|
|
2045
2045
|
}), E(i, () => {
|
|
@@ -2047,77 +2047,77 @@ function Ro(t, e, n, i) {
|
|
|
2047
2047
|
});
|
|
2048
2048
|
}
|
|
2049
2049
|
function No(t, e, n, i) {
|
|
2050
|
-
const l =
|
|
2050
|
+
const l = x(window.innerWidth), o = x(window.innerHeight), { docked: a, orientation: s, movement: r, position: m, isDragging: w } = $o(
|
|
2051
2051
|
t,
|
|
2052
2052
|
e,
|
|
2053
2053
|
i
|
|
2054
|
-
),
|
|
2054
|
+
), f = k(() => s.value === "right"), { rect: d, isResizing: h } = Io(
|
|
2055
2055
|
t,
|
|
2056
2056
|
n,
|
|
2057
|
-
|
|
2057
|
+
f,
|
|
2058
2058
|
i.value.offset
|
|
2059
|
-
), { width: _, left:
|
|
2060
|
-
|
|
2059
|
+
), { width: _, left: b } = Ao(
|
|
2060
|
+
d,
|
|
2061
2061
|
h,
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
), { lastTop: S, lastHeight: $ } =
|
|
2065
|
-
k(() =>
|
|
2066
|
-
k(() =>
|
|
2067
|
-
k(() =>
|
|
2068
|
-
k(() =>
|
|
2069
|
-
), { autoOpened:
|
|
2070
|
-
Ro(t,
|
|
2062
|
+
m,
|
|
2063
|
+
w
|
|
2064
|
+
), { lastTop: S, lastHeight: $ } = Vo(
|
|
2065
|
+
k(() => d.value.left),
|
|
2066
|
+
k(() => d.value.top),
|
|
2067
|
+
k(() => d.value.width),
|
|
2068
|
+
k(() => d.value.height)
|
|
2069
|
+
), { autoOpened: I } = To(t, e, n);
|
|
2070
|
+
Ro(t, f, n, I);
|
|
2071
2071
|
const V = (z) => {
|
|
2072
2072
|
if (t.value) {
|
|
2073
|
-
const A = t.value.getBoundingClientRect(),
|
|
2074
|
-
if (
|
|
2075
|
-
|
|
2073
|
+
const A = t.value.getBoundingClientRect(), O = A.left + z;
|
|
2074
|
+
if (f.value) {
|
|
2075
|
+
d.value.left = O;
|
|
2076
2076
|
const de = window.innerWidth - A.width - A.left;
|
|
2077
|
-
A.left <= 0 && de >= 0 && z < 0 && (
|
|
2077
|
+
A.left <= 0 && de >= 0 && z < 0 && (d.value.left = Math.max(0, O)), window.innerWidth - A.width <= 0 && (d.value.left = window.innerWidth - A.width);
|
|
2078
2078
|
} else
|
|
2079
|
-
A.left + A.width >= window.innerWidth && z < 0 && (
|
|
2079
|
+
A.left + A.width >= window.innerWidth && z < 0 && (d.value.left = Math.max(0, O));
|
|
2080
2080
|
}
|
|
2081
|
-
},
|
|
2081
|
+
}, B = () => {
|
|
2082
2082
|
const z = window.innerWidth - l.value;
|
|
2083
2083
|
l.value = window.innerWidth, o.value = window.innerHeight, V(z);
|
|
2084
2084
|
};
|
|
2085
|
-
|
|
2086
|
-
window.addEventListener("resize",
|
|
2087
|
-
}),
|
|
2088
|
-
window.removeEventListener("resize",
|
|
2085
|
+
H(() => {
|
|
2086
|
+
window.addEventListener("resize", B);
|
|
2087
|
+
}), te(() => {
|
|
2088
|
+
window.removeEventListener("resize", B);
|
|
2089
2089
|
});
|
|
2090
|
-
const
|
|
2091
|
-
z ? (
|
|
2092
|
-
},
|
|
2093
|
-
a.value ? (
|
|
2090
|
+
const P = (z) => {
|
|
2091
|
+
z ? (d.value.width = Me, f.value && b.value && _.value && (d.value.left = b.value + _.value - Me)) : (d.value.width = _.value, f.value && b.value && _.value && (d.value.left = b.value));
|
|
2092
|
+
}, R = () => {
|
|
2093
|
+
a.value ? (d.value.top = i.value.offset.value.top, d.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (d.value.top = S.value, d.value.height = $.value);
|
|
2094
2094
|
};
|
|
2095
2095
|
return E(a, () => {
|
|
2096
|
-
|
|
2096
|
+
R();
|
|
2097
2097
|
}), E(n, (z) => {
|
|
2098
|
-
|
|
2099
|
-
}), E(
|
|
2100
|
-
n.value && !
|
|
2101
|
-
}), E(
|
|
2098
|
+
P(z);
|
|
2099
|
+
}), E(I, (z) => {
|
|
2100
|
+
n.value && !w.value && P(!z);
|
|
2101
|
+
}), E(r, (z) => {
|
|
2102
2102
|
if (z && t.value) {
|
|
2103
2103
|
const A = t.value.getBoundingClientRect();
|
|
2104
|
-
|
|
2104
|
+
d.value.left = A.left, d.value.top = A.top;
|
|
2105
2105
|
}
|
|
2106
|
-
}), { rect:
|
|
2106
|
+
}), { rect: d, orientation: s, reversed: f };
|
|
2107
2107
|
}
|
|
2108
|
-
const
|
|
2108
|
+
const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ */ Po(() => /* @__PURE__ */ u("svg", {
|
|
2109
2109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2110
2110
|
width: "1em",
|
|
2111
2111
|
height: "1em",
|
|
2112
2112
|
viewBox: "0 0 1024 1024"
|
|
2113
2113
|
}, [
|
|
2114
|
-
/* @__PURE__ */
|
|
2114
|
+
/* @__PURE__ */ u("path", {
|
|
2115
2115
|
fill: "currentColor",
|
|
2116
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"
|
|
2117
2117
|
})
|
|
2118
|
-
], -1)),
|
|
2118
|
+
], -1)), Ho = { class: "ml-tool-palette-title" }, Go = { class: "ml-tool-palette-content" }, Wo = /* @__PURE__ */ L({
|
|
2119
2119
|
__name: "MlToolPalette",
|
|
2120
|
-
props: /* @__PURE__ */
|
|
2120
|
+
props: /* @__PURE__ */ J({
|
|
2121
2121
|
title: { default: "" },
|
|
2122
2122
|
leftOffset: { default: 0 },
|
|
2123
2123
|
rightOffset: { default: 0 },
|
|
@@ -2127,25 +2127,25 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2127
2127
|
modelValue: { default: !0 },
|
|
2128
2128
|
modelModifiers: {}
|
|
2129
2129
|
}),
|
|
2130
|
-
emits: /* @__PURE__ */
|
|
2130
|
+
emits: /* @__PURE__ */ J(["close"], ["update:modelValue"]),
|
|
2131
2131
|
setup(t, { emit: e }) {
|
|
2132
|
-
const n = t, i =
|
|
2133
|
-
offset:
|
|
2132
|
+
const n = t, i = ge(t, "modelValue"), l = e, o = x(!1), a = x(null), s = x(null), r = k(() => ({
|
|
2133
|
+
offset: x({
|
|
2134
2134
|
left: n.leftOffset,
|
|
2135
2135
|
right: n.rightOffset,
|
|
2136
2136
|
top: n.topOffset,
|
|
2137
2137
|
bottom: n.bottomOffset
|
|
2138
2138
|
})
|
|
2139
2139
|
})), {
|
|
2140
|
-
rect:
|
|
2141
|
-
orientation:
|
|
2142
|
-
reversed:
|
|
2143
|
-
} = No(
|
|
2144
|
-
left: `${
|
|
2145
|
-
top: `${
|
|
2146
|
-
width: `${
|
|
2147
|
-
height: `${
|
|
2148
|
-
})), h = k(() =>
|
|
2140
|
+
rect: m,
|
|
2141
|
+
orientation: w,
|
|
2142
|
+
reversed: f
|
|
2143
|
+
} = No(s, a, o, r), d = k(() => ({
|
|
2144
|
+
left: `${m.value.left}px`,
|
|
2145
|
+
top: `${m.value.top}px`,
|
|
2146
|
+
width: `${m.value.width}px`,
|
|
2147
|
+
height: `${m.value.height}px`
|
|
2148
|
+
})), h = k(() => f.value ? {
|
|
2149
2149
|
borderLeft: "1px solid var(--el-border-color)",
|
|
2150
2150
|
borderRight: null
|
|
2151
2151
|
} : {
|
|
@@ -2153,114 +2153,114 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2153
2153
|
borderRight: "1px solid var(--el-border-color)"
|
|
2154
2154
|
}), _ = () => {
|
|
2155
2155
|
i.value = !1;
|
|
2156
|
-
const
|
|
2156
|
+
const b = s.value;
|
|
2157
2157
|
l("close", {
|
|
2158
|
-
x:
|
|
2159
|
-
y:
|
|
2158
|
+
x: b ? b.clientLeft : 0,
|
|
2159
|
+
y: b ? b.clientTop : 0
|
|
2160
2160
|
});
|
|
2161
2161
|
};
|
|
2162
|
-
return (
|
|
2162
|
+
return (b, S) => {
|
|
2163
2163
|
const $ = se;
|
|
2164
|
-
return i.value ? (
|
|
2164
|
+
return i.value ? (c(), y("div", {
|
|
2165
2165
|
key: 0,
|
|
2166
2166
|
ref_key: "toolPaletteElement",
|
|
2167
|
-
ref:
|
|
2168
|
-
style: pe([
|
|
2167
|
+
ref: s,
|
|
2168
|
+
style: pe([d.value]),
|
|
2169
2169
|
class: "ml-tool-palette-dialog"
|
|
2170
2170
|
}, [
|
|
2171
|
-
|
|
2172
|
-
class:
|
|
2171
|
+
u("div", {
|
|
2172
|
+
class: Ce(["ml-tool-palette-dialog-layout", g(w)])
|
|
2173
2173
|
}, [
|
|
2174
|
-
|
|
2174
|
+
u("div", {
|
|
2175
2175
|
ref_key: "titleBarElement",
|
|
2176
2176
|
ref: a,
|
|
2177
2177
|
class: "ml-tool-palette-title-bar",
|
|
2178
2178
|
style: pe(h.value)
|
|
2179
2179
|
}, [
|
|
2180
|
-
|
|
2180
|
+
v($, {
|
|
2181
2181
|
size: 18,
|
|
2182
2182
|
class: "ml-tool-palette-dialog-icon",
|
|
2183
2183
|
onClick: _
|
|
2184
2184
|
}, {
|
|
2185
2185
|
default: p(() => [
|
|
2186
|
-
|
|
2186
|
+
Oo
|
|
2187
2187
|
]),
|
|
2188
2188
|
_: 1
|
|
2189
2189
|
}),
|
|
2190
|
-
|
|
2190
|
+
v(go, {
|
|
2191
2191
|
class: "ml-tool-palette-dialog-icon",
|
|
2192
2192
|
modelValue: o.value,
|
|
2193
|
-
"onUpdate:modelValue": S[0] || (S[0] = (
|
|
2194
|
-
reverse:
|
|
2193
|
+
"onUpdate:modelValue": S[0] || (S[0] = (I) => o.value = I),
|
|
2194
|
+
reverse: g(f)
|
|
2195
2195
|
}, null, 8, ["modelValue", "reverse"]),
|
|
2196
|
-
|
|
2196
|
+
u("span", Ho, D(n.title), 1)
|
|
2197
2197
|
], 4),
|
|
2198
|
-
|
|
2199
|
-
ie(
|
|
2198
|
+
u("div", Go, [
|
|
2199
|
+
ie(b.$slots, "default", {}, void 0, !0)
|
|
2200
2200
|
])
|
|
2201
2201
|
], 2)
|
|
2202
|
-
], 4)) :
|
|
2202
|
+
], 4)) : q("", !0);
|
|
2203
2203
|
};
|
|
2204
2204
|
}
|
|
2205
|
-
}),
|
|
2205
|
+
}), qo = /* @__PURE__ */ ue(Wo, [["__scopeId", "data-v-11a64c54"]]), Uo = { class: "ml-layer-list-cell" }, jo = { class: "ml-layer-list-cell" }, Yo = /* @__PURE__ */ L({
|
|
2206
2206
|
__name: "MlLayerList",
|
|
2207
2207
|
props: {
|
|
2208
2208
|
editor: {}
|
|
2209
2209
|
},
|
|
2210
2210
|
setup(t) {
|
|
2211
|
-
const { t: e } =
|
|
2212
|
-
o.value =
|
|
2213
|
-
},
|
|
2214
|
-
const
|
|
2215
|
-
|
|
2211
|
+
const { t: e } = N(), n = t, i = vt(n.editor), l = x(), o = x([]), a = (r) => {
|
|
2212
|
+
o.value = r;
|
|
2213
|
+
}, s = (r) => {
|
|
2214
|
+
const m = n.editor.curDocument.database.tables.layerTable.getAt(
|
|
2215
|
+
r.name
|
|
2216
2216
|
);
|
|
2217
|
-
|
|
2217
|
+
m && (m.isOff = !r.isOn);
|
|
2218
2218
|
};
|
|
2219
|
-
return (
|
|
2220
|
-
const
|
|
2221
|
-
return
|
|
2219
|
+
return (r, m) => {
|
|
2220
|
+
const w = M("el-table-column"), f = M("el-checkbox"), d = M("el-tag");
|
|
2221
|
+
return c(), C(g(Qe), {
|
|
2222
2222
|
ref_key: "multipleTableRef",
|
|
2223
2223
|
ref: l,
|
|
2224
|
-
data:
|
|
2224
|
+
data: g(i),
|
|
2225
2225
|
class: "ml-layer-list",
|
|
2226
2226
|
onSelectionChange: a
|
|
2227
2227
|
}, {
|
|
2228
2228
|
default: p(() => [
|
|
2229
|
-
|
|
2229
|
+
v(w, {
|
|
2230
2230
|
type: "selection",
|
|
2231
2231
|
width: "40"
|
|
2232
2232
|
}),
|
|
2233
|
-
|
|
2233
|
+
v(w, {
|
|
2234
2234
|
property: "name",
|
|
2235
|
-
label:
|
|
2235
|
+
label: g(e)("main.toolPalette.layerManager.layerList.name"),
|
|
2236
2236
|
width: "120",
|
|
2237
2237
|
sortable: "",
|
|
2238
2238
|
"show-overflow-tooltip": ""
|
|
2239
2239
|
}, null, 8, ["label"]),
|
|
2240
|
-
|
|
2240
|
+
v(w, {
|
|
2241
2241
|
property: "isOn",
|
|
2242
|
-
label:
|
|
2242
|
+
label: g(e)("main.toolPalette.layerManager.layerList.on"),
|
|
2243
2243
|
width: "50"
|
|
2244
2244
|
}, {
|
|
2245
2245
|
default: p((h) => [
|
|
2246
|
-
|
|
2247
|
-
|
|
2246
|
+
u("div", Uo, [
|
|
2247
|
+
v(f, {
|
|
2248
2248
|
modelValue: h.row.isOn,
|
|
2249
2249
|
"onUpdate:modelValue": (_) => h.row.isOn = _,
|
|
2250
|
-
onChange: (_) =>
|
|
2250
|
+
onChange: (_) => s(h.row)
|
|
2251
2251
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
2252
2252
|
])
|
|
2253
2253
|
]),
|
|
2254
2254
|
_: 1
|
|
2255
2255
|
}, 8, ["label"]),
|
|
2256
|
-
|
|
2256
|
+
v(w, {
|
|
2257
2257
|
property: "color",
|
|
2258
|
-
label:
|
|
2258
|
+
label: g(e)("main.toolPalette.layerManager.layerList.color"),
|
|
2259
2259
|
width: "70"
|
|
2260
2260
|
}, {
|
|
2261
2261
|
default: p((h) => [
|
|
2262
|
-
|
|
2263
|
-
|
|
2262
|
+
u("div", jo, [
|
|
2263
|
+
v(d, {
|
|
2264
2264
|
color: h.row.color,
|
|
2265
2265
|
class: "ml-layer-list-color"
|
|
2266
2266
|
}, null, 8, ["color"])
|
|
@@ -2273,23 +2273,23 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2273
2273
|
}, 8, ["data"]);
|
|
2274
2274
|
};
|
|
2275
2275
|
}
|
|
2276
|
-
}),
|
|
2276
|
+
}), Ko = { class: "ml-layer-list-wrapper" }, Xo = /* @__PURE__ */ L({
|
|
2277
2277
|
__name: "MlLayerManager",
|
|
2278
2278
|
props: {
|
|
2279
2279
|
editor: {}
|
|
2280
2280
|
},
|
|
2281
2281
|
setup(t) {
|
|
2282
2282
|
const e = t;
|
|
2283
|
-
return (n, i) => (
|
|
2283
|
+
return (n, i) => (c(), C(g(qo), {
|
|
2284
2284
|
class: "ml-layer-manager",
|
|
2285
|
-
modelValue:
|
|
2286
|
-
"onUpdate:modelValue": i[0] || (i[0] = (l) =>
|
|
2285
|
+
modelValue: g(Q).dialogs.layerManager,
|
|
2286
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => g(Q).dialogs.layerManager = l),
|
|
2287
2287
|
title: "Layers",
|
|
2288
2288
|
"bottom-offset": 30
|
|
2289
2289
|
}, {
|
|
2290
2290
|
default: p(() => [
|
|
2291
|
-
|
|
2292
|
-
|
|
2291
|
+
u("div", Ko, [
|
|
2292
|
+
v(Yo, {
|
|
2293
2293
|
editor: e.editor
|
|
2294
2294
|
}, null, 8, ["editor"])
|
|
2295
2295
|
])
|
|
@@ -2297,58 +2297,58 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2297
2297
|
_: 1
|
|
2298
2298
|
}, 8, ["modelValue"]));
|
|
2299
2299
|
}
|
|
2300
|
-
}),
|
|
2300
|
+
}), Qo = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d49ba2cb"]]), Zo = { class: "autocomplete-container" }, Jo = /* @__PURE__ */ L({
|
|
2301
2301
|
__name: "MlCommandLine",
|
|
2302
2302
|
setup(t) {
|
|
2303
|
-
const { t: e } =
|
|
2304
|
-
const
|
|
2305
|
-
(
|
|
2303
|
+
const { t: e } = N(), n = ce(), i = ut(), l = x(""), o = x(""), a = (m, w) => {
|
|
2304
|
+
const f = m ? i.filter(
|
|
2305
|
+
(d) => d.commandName.startsWith(m.toLowerCase())
|
|
2306
2306
|
) : i;
|
|
2307
|
-
f
|
|
2308
|
-
},
|
|
2309
|
-
l.value && (
|
|
2310
|
-
},
|
|
2311
|
-
return (
|
|
2312
|
-
|
|
2307
|
+
w(f);
|
|
2308
|
+
}, s = () => {
|
|
2309
|
+
l.value && (T.instance.sendStringToExecute(l.value), o.value = l.value, l.value = "");
|
|
2310
|
+
}, r = (m, w) => `${w}: ${fe(m, w)}`;
|
|
2311
|
+
return (m, w) => (c(), y("div", Zo, [
|
|
2312
|
+
g(n).isShowCommandLine ? (c(), C(g(Ze), {
|
|
2313
2313
|
key: 0,
|
|
2314
2314
|
modelValue: l.value,
|
|
2315
|
-
"onUpdate:modelValue":
|
|
2315
|
+
"onUpdate:modelValue": w[0] || (w[0] = (f) => l.value = f),
|
|
2316
2316
|
"value-key": "commandName",
|
|
2317
2317
|
clearable: "",
|
|
2318
2318
|
"fetch-suggestions": a,
|
|
2319
|
-
placeholder:
|
|
2319
|
+
placeholder: g(e)("main.commandLine.prompt"),
|
|
2320
2320
|
debounce: 300,
|
|
2321
2321
|
"trigger-on-focus": "",
|
|
2322
2322
|
"fit-input-width": !1,
|
|
2323
|
-
onSelect:
|
|
2324
|
-
onKeydown:
|
|
2323
|
+
onSelect: s,
|
|
2324
|
+
onKeydown: Pe(s, ["enter"]),
|
|
2325
2325
|
class: "autocomplete-input"
|
|
2326
2326
|
}, {
|
|
2327
|
-
default: p(({ item:
|
|
2328
|
-
|
|
2327
|
+
default: p(({ item: f }) => [
|
|
2328
|
+
u("div", null, D(r(f.groupName, f.commandName)), 1)
|
|
2329
2329
|
]),
|
|
2330
2330
|
prepend: p(() => [
|
|
2331
|
-
|
|
2331
|
+
F(D(`> ${o.value}`), 1)
|
|
2332
2332
|
]),
|
|
2333
2333
|
_: 1
|
|
2334
|
-
}, 8, ["modelValue", "placeholder"])) :
|
|
2334
|
+
}, 8, ["modelValue", "placeholder"])) : q("", !0)
|
|
2335
2335
|
]));
|
|
2336
2336
|
}
|
|
2337
|
-
}),
|
|
2337
|
+
}), el = /* @__PURE__ */ G(Jo, [["__scopeId", "data-v-082845cb"]]), tl = /* @__PURE__ */ L({
|
|
2338
2338
|
__name: "MlEntityInfo",
|
|
2339
2339
|
setup(t) {
|
|
2340
|
-
|
|
2340
|
+
Se((d) => ({
|
|
2341
2341
|
"2d5cc4ca": a.value,
|
|
2342
|
-
"11fa7d7e":
|
|
2342
|
+
"11fa7d7e": s.value
|
|
2343
2343
|
}));
|
|
2344
|
-
const { t: e } =
|
|
2345
|
-
const
|
|
2344
|
+
const { t: e } = N(), n = x(!1), i = x(-1), l = x(-1), o = x(null), a = k(() => i.value + "px"), s = k(() => l.value + "px"), r = k(() => {
|
|
2345
|
+
const d = T.instance.curDocument.database;
|
|
2346
2346
|
if (o.value) {
|
|
2347
|
-
const h =
|
|
2347
|
+
const h = d.tables.blockTable.modelSpace.getIdAt(o.value);
|
|
2348
2348
|
if (h)
|
|
2349
2349
|
return {
|
|
2350
|
-
type:
|
|
2351
|
-
color:
|
|
2350
|
+
type: Ct(h),
|
|
2351
|
+
color: Lt(h.color.toString()),
|
|
2352
2352
|
layer: h.layer,
|
|
2353
2353
|
lineType: h.lineType
|
|
2354
2354
|
};
|
|
@@ -2359,34 +2359,34 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2359
2359
|
layer: "",
|
|
2360
2360
|
lineType: ""
|
|
2361
2361
|
};
|
|
2362
|
-
}),
|
|
2363
|
-
o.value =
|
|
2364
|
-
},
|
|
2362
|
+
}), m = k(() => n.value && r.value.type != ""), w = (d) => {
|
|
2363
|
+
o.value = d.id, i.value = d.x, l.value = d.y, n.value = !0;
|
|
2364
|
+
}, f = () => {
|
|
2365
2365
|
n.value = !1;
|
|
2366
2366
|
};
|
|
2367
|
-
return
|
|
2368
|
-
const
|
|
2369
|
-
|
|
2370
|
-
}),
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2373
|
-
}), (
|
|
2374
|
-
const _ = M("el-text"),
|
|
2375
|
-
return
|
|
2367
|
+
return H(() => {
|
|
2368
|
+
const d = T.instance.curView.events;
|
|
2369
|
+
d.hover.addEventListener(w), d.unhover.addEventListener(f);
|
|
2370
|
+
}), te(() => {
|
|
2371
|
+
const d = T.instance.curView.events;
|
|
2372
|
+
d.hover.removeEventListener(w), d.unhover.removeEventListener(f);
|
|
2373
|
+
}), (d, h) => {
|
|
2374
|
+
const _ = M("el-text"), b = M("el-col"), S = M("el-row"), $ = M("el-card");
|
|
2375
|
+
return m.value ? (c(), C($, {
|
|
2376
2376
|
key: 0,
|
|
2377
2377
|
class: "ml-entity-info"
|
|
2378
2378
|
}, {
|
|
2379
2379
|
default: p(() => [
|
|
2380
|
-
|
|
2380
|
+
v(S, { class: "ml-entity-info-text" }, {
|
|
2381
2381
|
default: p(() => [
|
|
2382
|
-
|
|
2382
|
+
v(b, { span: 24 }, {
|
|
2383
2383
|
default: p(() => [
|
|
2384
|
-
|
|
2384
|
+
v(_, {
|
|
2385
2385
|
size: "small",
|
|
2386
2386
|
class: "ml-entity-info-title"
|
|
2387
2387
|
}, {
|
|
2388
2388
|
default: p(() => [
|
|
2389
|
-
|
|
2389
|
+
F(D(r.value.type), 1)
|
|
2390
2390
|
]),
|
|
2391
2391
|
_: 1
|
|
2392
2392
|
})
|
|
@@ -2396,24 +2396,24 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2396
2396
|
]),
|
|
2397
2397
|
_: 1
|
|
2398
2398
|
}),
|
|
2399
|
-
|
|
2399
|
+
v(S, { class: "ml-entity-info-text" }, {
|
|
2400
2400
|
default: p(() => [
|
|
2401
|
-
|
|
2401
|
+
v(b, { span: 10 }, {
|
|
2402
2402
|
default: p(() => [
|
|
2403
|
-
|
|
2403
|
+
v(_, { size: "small" }, {
|
|
2404
2404
|
default: p(() => [
|
|
2405
|
-
|
|
2405
|
+
F(D(g(e)("main.entityInfo.color")), 1)
|
|
2406
2406
|
]),
|
|
2407
2407
|
_: 1
|
|
2408
2408
|
})
|
|
2409
2409
|
]),
|
|
2410
2410
|
_: 1
|
|
2411
2411
|
}),
|
|
2412
|
-
|
|
2412
|
+
v(b, { span: 14 }, {
|
|
2413
2413
|
default: p(() => [
|
|
2414
|
-
|
|
2414
|
+
v(_, { size: "small" }, {
|
|
2415
2415
|
default: p(() => [
|
|
2416
|
-
|
|
2416
|
+
F(D(r.value.color), 1)
|
|
2417
2417
|
]),
|
|
2418
2418
|
_: 1
|
|
2419
2419
|
})
|
|
@@ -2423,24 +2423,24 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2423
2423
|
]),
|
|
2424
2424
|
_: 1
|
|
2425
2425
|
}),
|
|
2426
|
-
|
|
2426
|
+
v(S, { class: "ml-entity-info-text" }, {
|
|
2427
2427
|
default: p(() => [
|
|
2428
|
-
|
|
2428
|
+
v(b, { span: 10 }, {
|
|
2429
2429
|
default: p(() => [
|
|
2430
|
-
|
|
2430
|
+
v(_, { size: "small" }, {
|
|
2431
2431
|
default: p(() => [
|
|
2432
|
-
|
|
2432
|
+
F(D(g(e)("main.entityInfo.layer")), 1)
|
|
2433
2433
|
]),
|
|
2434
2434
|
_: 1
|
|
2435
2435
|
})
|
|
2436
2436
|
]),
|
|
2437
2437
|
_: 1
|
|
2438
2438
|
}),
|
|
2439
|
-
|
|
2439
|
+
v(b, { span: 14 }, {
|
|
2440
2440
|
default: p(() => [
|
|
2441
|
-
|
|
2441
|
+
v(_, { size: "small" }, {
|
|
2442
2442
|
default: p(() => [
|
|
2443
|
-
|
|
2443
|
+
F(D(r.value.layer), 1)
|
|
2444
2444
|
]),
|
|
2445
2445
|
_: 1
|
|
2446
2446
|
})
|
|
@@ -2450,24 +2450,24 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2450
2450
|
]),
|
|
2451
2451
|
_: 1
|
|
2452
2452
|
}),
|
|
2453
|
-
|
|
2453
|
+
v(S, { class: "ml-entity-info-text" }, {
|
|
2454
2454
|
default: p(() => [
|
|
2455
|
-
|
|
2455
|
+
v(b, { span: 10 }, {
|
|
2456
2456
|
default: p(() => [
|
|
2457
|
-
|
|
2457
|
+
v(_, { size: "small" }, {
|
|
2458
2458
|
default: p(() => [
|
|
2459
|
-
|
|
2459
|
+
F(D(g(e)("main.entityInfo.lineType")), 1)
|
|
2460
2460
|
]),
|
|
2461
2461
|
_: 1
|
|
2462
2462
|
})
|
|
2463
2463
|
]),
|
|
2464
2464
|
_: 1
|
|
2465
2465
|
}),
|
|
2466
|
-
|
|
2466
|
+
v(b, { span: 14 }, {
|
|
2467
2467
|
default: p(() => [
|
|
2468
|
-
|
|
2468
|
+
v(_, { size: "small" }, {
|
|
2469
2469
|
default: p(() => [
|
|
2470
|
-
|
|
2470
|
+
F(D(r.value.lineType), 1)
|
|
2471
2471
|
]),
|
|
2472
2472
|
_: 1
|
|
2473
2473
|
})
|
|
@@ -2479,16 +2479,16 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2479
2479
|
})
|
|
2480
2480
|
]),
|
|
2481
2481
|
_: 1
|
|
2482
|
-
})) :
|
|
2482
|
+
})) : q("", !0);
|
|
2483
2483
|
};
|
|
2484
2484
|
}
|
|
2485
|
-
}),
|
|
2485
|
+
}), nl = /* @__PURE__ */ G(tl, [["__scopeId", "data-v-6a67bbe7"]]), ol = /* @__PURE__ */ L({
|
|
2486
2486
|
__name: "MlLanguageSelector",
|
|
2487
2487
|
props: {
|
|
2488
2488
|
currentLocale: { default: void 0 }
|
|
2489
2489
|
},
|
|
2490
2490
|
setup(t) {
|
|
2491
|
-
const e = t, { effectiveLocale: n, setLocale: i } =
|
|
2491
|
+
const e = t, { effectiveLocale: n, setLocale: i } = Ee(e.currentLocale), l = U([
|
|
2492
2492
|
{
|
|
2493
2493
|
name: "en",
|
|
2494
2494
|
text: "English"
|
|
@@ -2500,139 +2500,139 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2500
2500
|
]), o = (a) => {
|
|
2501
2501
|
(a === "en" || a === "zh") && i(a);
|
|
2502
2502
|
};
|
|
2503
|
-
return (a,
|
|
2503
|
+
return (a, s) => (c(), C(g(bo), {
|
|
2504
2504
|
class: "ml-language-selector",
|
|
2505
2505
|
languages: l,
|
|
2506
|
-
current:
|
|
2506
|
+
current: g(n),
|
|
2507
2507
|
onClick: o
|
|
2508
2508
|
}, null, 8, ["languages", "current"]));
|
|
2509
2509
|
}
|
|
2510
|
-
}),
|
|
2510
|
+
}), ll = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-1b9f7bc0"]]);
|
|
2511
2511
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
2512
|
-
var
|
|
2512
|
+
var al = /* @__PURE__ */ L({
|
|
2513
2513
|
name: "Check",
|
|
2514
2514
|
__name: "check",
|
|
2515
2515
|
setup(t) {
|
|
2516
|
-
return (e, n) => (
|
|
2516
|
+
return (e, n) => (c(), y("svg", {
|
|
2517
2517
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2518
2518
|
viewBox: "0 0 1024 1024"
|
|
2519
2519
|
}, [
|
|
2520
|
-
|
|
2520
|
+
u("path", {
|
|
2521
2521
|
fill: "currentColor",
|
|
2522
2522
|
d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
|
|
2523
2523
|
})
|
|
2524
2524
|
]));
|
|
2525
2525
|
}
|
|
2526
|
-
}), le =
|
|
2526
|
+
}), le = al, il = /* @__PURE__ */ L({
|
|
2527
2527
|
name: "Menu",
|
|
2528
2528
|
__name: "menu",
|
|
2529
2529
|
setup(t) {
|
|
2530
|
-
return (e, n) => (
|
|
2530
|
+
return (e, n) => (c(), y("svg", {
|
|
2531
2531
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2532
2532
|
viewBox: "0 0 1024 1024"
|
|
2533
2533
|
}, [
|
|
2534
|
-
|
|
2534
|
+
u("path", {
|
|
2535
2535
|
fill: "currentColor",
|
|
2536
2536
|
d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"
|
|
2537
2537
|
})
|
|
2538
2538
|
]));
|
|
2539
2539
|
}
|
|
2540
|
-
}),
|
|
2540
|
+
}), rl = il, sl = /* @__PURE__ */ L({
|
|
2541
2541
|
name: "Moon",
|
|
2542
2542
|
__name: "moon",
|
|
2543
2543
|
setup(t) {
|
|
2544
|
-
return (e, n) => (
|
|
2544
|
+
return (e, n) => (c(), y("svg", {
|
|
2545
2545
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2546
2546
|
viewBox: "0 0 1024 1024"
|
|
2547
2547
|
}, [
|
|
2548
|
-
|
|
2548
|
+
u("path", {
|
|
2549
2549
|
fill: "currentColor",
|
|
2550
2550
|
d: "M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"
|
|
2551
2551
|
})
|
|
2552
2552
|
]));
|
|
2553
2553
|
}
|
|
2554
|
-
}),
|
|
2554
|
+
}), cl = sl, ul = /* @__PURE__ */ L({
|
|
2555
2555
|
name: "Operation",
|
|
2556
2556
|
__name: "operation",
|
|
2557
2557
|
setup(t) {
|
|
2558
|
-
return (e, n) => (
|
|
2558
|
+
return (e, n) => (c(), y("svg", {
|
|
2559
2559
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2560
2560
|
viewBox: "0 0 1024 1024"
|
|
2561
2561
|
}, [
|
|
2562
|
-
|
|
2562
|
+
u("path", {
|
|
2563
2563
|
fill: "currentColor",
|
|
2564
2564
|
d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
|
|
2565
2565
|
})
|
|
2566
2566
|
]));
|
|
2567
2567
|
}
|
|
2568
|
-
}),
|
|
2568
|
+
}), dl = ul, ml = /* @__PURE__ */ L({
|
|
2569
2569
|
name: "Setting",
|
|
2570
2570
|
__name: "setting",
|
|
2571
2571
|
setup(t) {
|
|
2572
|
-
return (e, n) => (
|
|
2572
|
+
return (e, n) => (c(), y("svg", {
|
|
2573
2573
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2574
2574
|
viewBox: "0 0 1024 1024"
|
|
2575
2575
|
}, [
|
|
2576
|
-
|
|
2576
|
+
u("path", {
|
|
2577
2577
|
fill: "currentColor",
|
|
2578
2578
|
d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
|
|
2579
2579
|
})
|
|
2580
2580
|
]));
|
|
2581
2581
|
}
|
|
2582
|
-
}),
|
|
2582
|
+
}), pl = ml, vl = /* @__PURE__ */ L({
|
|
2583
2583
|
name: "Sunny",
|
|
2584
2584
|
__name: "sunny",
|
|
2585
2585
|
setup(t) {
|
|
2586
|
-
return (e, n) => (
|
|
2586
|
+
return (e, n) => (c(), y("svg", {
|
|
2587
2587
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2588
2588
|
viewBox: "0 0 1024 1024"
|
|
2589
2589
|
}, [
|
|
2590
|
-
|
|
2590
|
+
u("path", {
|
|
2591
2591
|
fill: "currentColor",
|
|
2592
2592
|
d: "M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"
|
|
2593
2593
|
})
|
|
2594
2594
|
]));
|
|
2595
2595
|
}
|
|
2596
|
-
}),
|
|
2596
|
+
}), gl = vl, fl = /* @__PURE__ */ L({
|
|
2597
2597
|
name: "Warning",
|
|
2598
2598
|
__name: "warning",
|
|
2599
2599
|
setup(t) {
|
|
2600
|
-
return (e, n) => (
|
|
2600
|
+
return (e, n) => (c(), y("svg", {
|
|
2601
2601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2602
2602
|
viewBox: "0 0 1024 1024"
|
|
2603
2603
|
}, [
|
|
2604
|
-
|
|
2604
|
+
u("path", {
|
|
2605
2605
|
fill: "currentColor",
|
|
2606
2606
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"
|
|
2607
2607
|
})
|
|
2608
2608
|
]));
|
|
2609
2609
|
}
|
|
2610
|
-
}),
|
|
2611
|
-
const
|
|
2610
|
+
}), hl = fl;
|
|
2611
|
+
const _l = /* @__PURE__ */ L({
|
|
2612
2612
|
__name: "MlMainMenu",
|
|
2613
2613
|
setup(t) {
|
|
2614
|
-
const { t: e } =
|
|
2615
|
-
i === "Convert" ? new
|
|
2614
|
+
const { t: e } = N(), n = (i) => {
|
|
2615
|
+
i === "Convert" ? new Ae().tirgger(T.instance.context) : i === "QNew" ? new Fe().tirgger(T.instance.context) : i === "Open" && new Ie().tirgger(T.instance.context);
|
|
2616
2616
|
};
|
|
2617
2617
|
return (i, l) => {
|
|
2618
|
-
const o = M("el-icon"), a = M("el-dropdown-item"),
|
|
2619
|
-
return
|
|
2618
|
+
const o = M("el-icon"), a = M("el-dropdown-item"), s = M("el-dropdown-menu"), r = M("el-dropdown");
|
|
2619
|
+
return c(), C(r, {
|
|
2620
2620
|
"aria-hidden": "false",
|
|
2621
2621
|
class: "ml-main-menu-container",
|
|
2622
2622
|
onCommand: n
|
|
2623
2623
|
}, {
|
|
2624
2624
|
dropdown: p(() => [
|
|
2625
|
-
|
|
2625
|
+
v(s, null, {
|
|
2626
2626
|
default: p(() => [
|
|
2627
|
-
|
|
2627
|
+
v(a, { command: "QNew" }, {
|
|
2628
2628
|
default: p(() => [
|
|
2629
|
-
|
|
2629
|
+
F(D(g(e)("main.mainMenu.new")), 1)
|
|
2630
2630
|
]),
|
|
2631
2631
|
_: 1
|
|
2632
2632
|
}),
|
|
2633
|
-
|
|
2633
|
+
v(a, { command: "Open" }, {
|
|
2634
2634
|
default: p(() => [
|
|
2635
|
-
|
|
2635
|
+
F(D(g(e)("main.mainMenu.open")), 1)
|
|
2636
2636
|
]),
|
|
2637
2637
|
_: 1
|
|
2638
2638
|
})
|
|
@@ -2641,12 +2641,12 @@ const wl = /* @__PURE__ */ L({
|
|
|
2641
2641
|
})
|
|
2642
2642
|
]),
|
|
2643
2643
|
default: p(() => [
|
|
2644
|
-
|
|
2644
|
+
v(o, {
|
|
2645
2645
|
class: "ml-main-menu-icon",
|
|
2646
2646
|
size: "30"
|
|
2647
2647
|
}, {
|
|
2648
2648
|
default: p(() => [
|
|
2649
|
-
g(
|
|
2649
|
+
v(g(rl))
|
|
2650
2650
|
]),
|
|
2651
2651
|
_: 1
|
|
2652
2652
|
})
|
|
@@ -2655,33 +2655,33 @@ const wl = /* @__PURE__ */ L({
|
|
|
2655
2655
|
});
|
|
2656
2656
|
};
|
|
2657
2657
|
}
|
|
2658
|
-
}),
|
|
2658
|
+
}), wl = /* @__PURE__ */ G(_l, [["__scopeId", "data-v-8c0c738e"]]), yl = {
|
|
2659
2659
|
key: 0,
|
|
2660
2660
|
class: "ml-vertical-toolbar-container"
|
|
2661
|
-
},
|
|
2661
|
+
}, bl = /* @__PURE__ */ L({
|
|
2662
2662
|
__name: "MlToolBars",
|
|
2663
2663
|
setup(t) {
|
|
2664
|
-
const { t: e } =
|
|
2664
|
+
const { t: e } = N(), n = ce(), i = k(() => [
|
|
2665
2665
|
{
|
|
2666
|
-
icon:
|
|
2666
|
+
icon: qt,
|
|
2667
2667
|
text: e("main.verticalToolbar.select.text"),
|
|
2668
2668
|
command: "select",
|
|
2669
2669
|
description: e("main.verticalToolbar.select.description")
|
|
2670
2670
|
},
|
|
2671
2671
|
{
|
|
2672
|
-
icon:
|
|
2672
|
+
icon: Ht,
|
|
2673
2673
|
text: e("main.verticalToolbar.pan.text"),
|
|
2674
2674
|
command: "pan",
|
|
2675
2675
|
description: e("main.verticalToolbar.pan.description")
|
|
2676
2676
|
},
|
|
2677
2677
|
{
|
|
2678
|
-
icon:
|
|
2678
|
+
icon: Qt,
|
|
2679
2679
|
text: e("main.verticalToolbar.zoomToExtent.text"),
|
|
2680
2680
|
command: "zoom",
|
|
2681
2681
|
description: e("main.verticalToolbar.zoomToExtent.description")
|
|
2682
2682
|
},
|
|
2683
2683
|
{
|
|
2684
|
-
icon:
|
|
2684
|
+
icon: Yt,
|
|
2685
2685
|
text: e("main.verticalToolbar.zoomToBox.text"),
|
|
2686
2686
|
command: "zoomw",
|
|
2687
2687
|
description: e("main.verticalToolbar.zoomToBox.description")
|
|
@@ -2693,145 +2693,145 @@ const wl = /* @__PURE__ */ L({
|
|
|
2693
2693
|
description: e("main.verticalToolbar.layer.description")
|
|
2694
2694
|
}
|
|
2695
2695
|
]), l = (o) => {
|
|
2696
|
-
|
|
2696
|
+
T.instance.sendStringToExecute(o);
|
|
2697
2697
|
};
|
|
2698
|
-
return (o, a) =>
|
|
2699
|
-
g(
|
|
2698
|
+
return (o, a) => g(n).isShowToolbar ? (c(), y("div", yl, [
|
|
2699
|
+
v(g(Bo), {
|
|
2700
2700
|
items: i.value,
|
|
2701
2701
|
size: "small",
|
|
2702
2702
|
direction: "vertical",
|
|
2703
2703
|
onClick: l
|
|
2704
2704
|
}, null, 8, ["items"])
|
|
2705
|
-
])) :
|
|
2705
|
+
])) : q("", !0);
|
|
2706
2706
|
}
|
|
2707
|
-
}),
|
|
2707
|
+
}), xl = /* @__PURE__ */ L({
|
|
2708
2708
|
__name: "MlFullScreenButton",
|
|
2709
2709
|
setup(t) {
|
|
2710
|
-
const { t: e } =
|
|
2710
|
+
const { t: e } = N(), { isFullscreen: n, toggle: i } = Ue(), l = k(() => ({
|
|
2711
2711
|
onIcon: be,
|
|
2712
2712
|
offIcon: be,
|
|
2713
2713
|
onTooltip: e("main.statusBar.fullScreen.on"),
|
|
2714
2714
|
offTooltip: e("main.statusBar.fullScreen.off")
|
|
2715
2715
|
})), o = k(() => !n.value);
|
|
2716
|
-
return (a,
|
|
2716
|
+
return (a, s) => (c(), C(g(Ve), {
|
|
2717
2717
|
modelValue: o.value,
|
|
2718
|
-
"onUpdate:modelValue":
|
|
2718
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => o.value = r),
|
|
2719
2719
|
data: l.value,
|
|
2720
|
-
onClick:
|
|
2720
|
+
onClick: g(i)
|
|
2721
2721
|
}, null, 8, ["modelValue", "data", "onClick"]));
|
|
2722
2722
|
}
|
|
2723
|
-
}),
|
|
2723
|
+
}), kl = /* @__PURE__ */ L({
|
|
2724
2724
|
__name: "MlPointStyleButton",
|
|
2725
2725
|
setup(t) {
|
|
2726
|
-
const { t: e } =
|
|
2727
|
-
|
|
2726
|
+
const { t: e } = N(), n = () => {
|
|
2727
|
+
T.instance.sendStringToExecute("pttype");
|
|
2728
2728
|
};
|
|
2729
2729
|
return (i, l) => {
|
|
2730
2730
|
const o = M("el-button"), a = M("el-tooltip");
|
|
2731
|
-
return
|
|
2732
|
-
content:
|
|
2731
|
+
return c(), C(a, {
|
|
2732
|
+
content: g(e)("main.statusBar.pointStyle.tooltip"),
|
|
2733
2733
|
"hide-after": 0
|
|
2734
2734
|
}, {
|
|
2735
2735
|
default: p(() => [
|
|
2736
|
-
|
|
2736
|
+
v(o, {
|
|
2737
2737
|
class: "ml-point-style-button",
|
|
2738
|
-
icon:
|
|
2739
|
-
onClick: l[0] || (l[0] = (
|
|
2738
|
+
icon: g(dl),
|
|
2739
|
+
onClick: l[0] || (l[0] = (s) => n())
|
|
2740
2740
|
}, null, 8, ["icon"])
|
|
2741
2741
|
]),
|
|
2742
2742
|
_: 1
|
|
2743
2743
|
}, 8, ["content"]);
|
|
2744
2744
|
};
|
|
2745
2745
|
}
|
|
2746
|
-
}),
|
|
2746
|
+
}), Ml = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-29692d7d"]]), Sl = {
|
|
2747
2747
|
key: 0,
|
|
2748
2748
|
class: "ml-progress"
|
|
2749
|
-
},
|
|
2749
|
+
}, Cl = /* @__PURE__ */ L({
|
|
2750
2750
|
__name: "MlProgress",
|
|
2751
2751
|
setup(t) {
|
|
2752
|
-
const { t: e } =
|
|
2752
|
+
const { t: e } = N(), n = x(0), i = x(!1), l = (a) => {
|
|
2753
2753
|
if (a.stage === "CONVERSION") {
|
|
2754
|
-
const
|
|
2754
|
+
const s = we.service({
|
|
2755
2755
|
lock: !0
|
|
2756
2756
|
});
|
|
2757
2757
|
if (a.subStage) {
|
|
2758
|
-
const
|
|
2759
|
-
|
|
2758
|
+
const r = zt(a.subStage);
|
|
2759
|
+
s.setText(r);
|
|
2760
2760
|
}
|
|
2761
|
-
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, s.close(), T.instance.curView.zoomToFit());
|
|
2762
2762
|
} else if (a.stage === "FETCH_FILE") {
|
|
2763
|
-
const
|
|
2763
|
+
const s = we.service({
|
|
2764
2764
|
lock: !0
|
|
2765
2765
|
});
|
|
2766
|
-
|
|
2766
|
+
s.setText(e("main.message.fetchingDrawingFile")), n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
|
|
2767
2767
|
}
|
|
2768
2768
|
}, o = (a) => `${a.toFixed(0)}%`;
|
|
2769
|
-
return
|
|
2770
|
-
|
|
2771
|
-
}),
|
|
2772
|
-
|
|
2773
|
-
}), (a,
|
|
2774
|
-
g(
|
|
2769
|
+
return H(() => {
|
|
2770
|
+
Y.on("open-file-progress", l);
|
|
2771
|
+
}), te(() => {
|
|
2772
|
+
Y.off("open-file-progress", l);
|
|
2773
|
+
}), (a, s) => i.value ? (c(), y("div", Sl, [
|
|
2774
|
+
v(g(Je), {
|
|
2775
2775
|
"text-inside": !0,
|
|
2776
2776
|
"stroke-width": 20,
|
|
2777
2777
|
percentage: n.value,
|
|
2778
2778
|
format: o
|
|
2779
2779
|
}, null, 8, ["percentage"])
|
|
2780
|
-
])) :
|
|
2780
|
+
])) : q("", !0);
|
|
2781
2781
|
}
|
|
2782
|
-
}),
|
|
2782
|
+
}), Ll = /* @__PURE__ */ G(Cl, [["__scopeId", "data-v-c4edb83e"]]), zl = /* @__PURE__ */ L({
|
|
2783
2783
|
__name: "MlSettingButton",
|
|
2784
2784
|
setup(t) {
|
|
2785
|
-
const { t: e } =
|
|
2786
|
-
l == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate,
|
|
2785
|
+
const { t: e } = N(), n = ce(), i = (l) => {
|
|
2786
|
+
l == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, K.instance.isShowCoordinate = n.isShowCoordinate) : l == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, K.instance.isShowCommandLine = n.isShowCommandLine) : l == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, K.instance.isShowToolbar = n.isShowToolbar) : l == "isShowStats" && (n.isShowStats = !n.isShowStats, K.instance.isShowStats = n.isShowStats);
|
|
2787
2787
|
};
|
|
2788
2788
|
return (l, o) => {
|
|
2789
|
-
const a = M("el-button"),
|
|
2790
|
-
return
|
|
2791
|
-
content:
|
|
2789
|
+
const a = M("el-button"), s = M("el-dropdown-item"), r = M("el-dropdown-menu"), m = M("el-dropdown"), w = M("el-tooltip");
|
|
2790
|
+
return c(), C(w, {
|
|
2791
|
+
content: g(e)("main.statusBar.setting.tooltip"),
|
|
2792
2792
|
"hide-after": 0
|
|
2793
2793
|
}, {
|
|
2794
2794
|
default: p(() => [
|
|
2795
|
-
|
|
2795
|
+
v(m, {
|
|
2796
2796
|
trigger: "click",
|
|
2797
2797
|
onCommand: i
|
|
2798
2798
|
}, {
|
|
2799
2799
|
dropdown: p(() => [
|
|
2800
|
-
|
|
2800
|
+
v(r, null, {
|
|
2801
2801
|
default: p(() => [
|
|
2802
|
-
|
|
2803
|
-
icon:
|
|
2802
|
+
v(s, {
|
|
2803
|
+
icon: g(n).isShowStats ? g(le) : "",
|
|
2804
2804
|
command: "isShowStats"
|
|
2805
2805
|
}, {
|
|
2806
2806
|
default: p(() => [
|
|
2807
|
-
|
|
2807
|
+
F(D(g(e)("main.statusBar.setting.stats")), 1)
|
|
2808
2808
|
]),
|
|
2809
2809
|
_: 1
|
|
2810
2810
|
}, 8, ["icon"]),
|
|
2811
|
-
|
|
2812
|
-
icon:
|
|
2811
|
+
v(s, {
|
|
2812
|
+
icon: g(n).isShowCommandLine ? g(le) : "",
|
|
2813
2813
|
command: "isShowCommandLine"
|
|
2814
2814
|
}, {
|
|
2815
2815
|
default: p(() => [
|
|
2816
|
-
|
|
2816
|
+
F(D(g(e)("main.statusBar.setting.commandLine")), 1)
|
|
2817
2817
|
]),
|
|
2818
2818
|
_: 1
|
|
2819
2819
|
}, 8, ["icon"]),
|
|
2820
|
-
|
|
2821
|
-
icon:
|
|
2820
|
+
v(s, {
|
|
2821
|
+
icon: g(n).isShowCoordinate ? g(le) : "",
|
|
2822
2822
|
command: "isShowCoordinate"
|
|
2823
2823
|
}, {
|
|
2824
2824
|
default: p(() => [
|
|
2825
|
-
|
|
2825
|
+
F(D(g(e)("main.statusBar.setting.coordinate")), 1)
|
|
2826
2826
|
]),
|
|
2827
2827
|
_: 1
|
|
2828
2828
|
}, 8, ["icon"]),
|
|
2829
|
-
|
|
2830
|
-
icon:
|
|
2829
|
+
v(s, {
|
|
2830
|
+
icon: g(n).isShowToolbar ? g(le) : "",
|
|
2831
2831
|
command: "isShowToolbar"
|
|
2832
2832
|
}, {
|
|
2833
2833
|
default: p(() => [
|
|
2834
|
-
|
|
2834
|
+
F(D(g(e)("main.statusBar.setting.toolbar")), 1)
|
|
2835
2835
|
]),
|
|
2836
2836
|
_: 1
|
|
2837
2837
|
}, 8, ["icon"])
|
|
@@ -2840,9 +2840,9 @@ const wl = /* @__PURE__ */ L({
|
|
|
2840
2840
|
})
|
|
2841
2841
|
]),
|
|
2842
2842
|
default: p(() => [
|
|
2843
|
-
|
|
2843
|
+
v(a, {
|
|
2844
2844
|
class: "ml-setting-button",
|
|
2845
|
-
icon:
|
|
2845
|
+
icon: g(pl)
|
|
2846
2846
|
}, null, 8, ["icon"])
|
|
2847
2847
|
]),
|
|
2848
2848
|
_: 1
|
|
@@ -2852,61 +2852,61 @@ const wl = /* @__PURE__ */ L({
|
|
|
2852
2852
|
}, 8, ["content"]);
|
|
2853
2853
|
};
|
|
2854
2854
|
}
|
|
2855
|
-
}),
|
|
2855
|
+
}), Dl = /* @__PURE__ */ G(zl, [["__scopeId", "data-v-666f03a3"]]), Bl = /* @__PURE__ */ L({
|
|
2856
2856
|
__name: "MlThemeButton",
|
|
2857
2857
|
setup(t) {
|
|
2858
|
-
const { t: e } =
|
|
2859
|
-
onIcon:
|
|
2860
|
-
offIcon:
|
|
2858
|
+
const { t: e } = N(), n = k(() => ({
|
|
2859
|
+
onIcon: gl,
|
|
2860
|
+
offIcon: cl,
|
|
2861
2861
|
onTooltip: e("main.statusBar.theme.light"),
|
|
2862
2862
|
offTooltip: e("main.statusBar.theme.dark")
|
|
2863
2863
|
}));
|
|
2864
|
-
return (i, l) => (
|
|
2865
|
-
modelValue:
|
|
2866
|
-
"onUpdate:modelValue": l[0] || (l[0] = (o) =>
|
|
2864
|
+
return (i, l) => (c(), C(g(Ve), {
|
|
2865
|
+
modelValue: g(ae),
|
|
2866
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => Oe(ae) ? ae.value = o : null),
|
|
2867
2867
|
data: n.value,
|
|
2868
|
-
onClick: l[1] || (l[1] = (o) =>
|
|
2868
|
+
onClick: l[1] || (l[1] = (o) => g(mt)())
|
|
2869
2869
|
}, null, 8, ["modelValue", "data"]));
|
|
2870
2870
|
}
|
|
2871
|
-
}),
|
|
2871
|
+
}), Tl = /* @__PURE__ */ L({
|
|
2872
2872
|
__name: "MlWarningButton",
|
|
2873
2873
|
setup(t) {
|
|
2874
2874
|
const e = () => {
|
|
2875
|
-
|
|
2876
|
-
}, { fonts: n, images: i } =
|
|
2875
|
+
T.instance.sendStringToExecute("md");
|
|
2876
|
+
}, { fonts: n, images: i } = $e(), l = k(() => i.size > 0 || n.size > 0);
|
|
2877
2877
|
return (o, a) => {
|
|
2878
|
-
const
|
|
2879
|
-
return l.value ? (
|
|
2878
|
+
const s = M("el-button");
|
|
2879
|
+
return l.value ? (c(), C(s, {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
class: "ml-warning-button",
|
|
2882
2882
|
type: "warning",
|
|
2883
|
-
icon:
|
|
2884
|
-
onClick: a[0] || (a[0] = (
|
|
2885
|
-
}, null, 8, ["icon"])) :
|
|
2883
|
+
icon: g(hl),
|
|
2884
|
+
onClick: a[0] || (a[0] = (r) => e())
|
|
2885
|
+
}, null, 8, ["icon"])) : q("", !0);
|
|
2886
2886
|
};
|
|
2887
2887
|
}
|
|
2888
|
-
}),
|
|
2888
|
+
}), El = /* @__PURE__ */ G(Tl, [["__scopeId", "data-v-3411a3ec"]]), $l = /* @__PURE__ */ L({
|
|
2889
2889
|
__name: "MlStatusBar",
|
|
2890
2890
|
setup(t) {
|
|
2891
|
-
const { text: e } =
|
|
2892
|
-
|
|
2891
|
+
const { text: e } = dt(T.instance.curView), n = gt(T.instance), i = ce(), l = (o) => {
|
|
2892
|
+
Be().layoutManager.setCurrentLayoutBtrId(
|
|
2893
2893
|
o.blockTableRecordId
|
|
2894
2894
|
);
|
|
2895
2895
|
};
|
|
2896
2896
|
return (o, a) => {
|
|
2897
|
-
const
|
|
2898
|
-
return
|
|
2897
|
+
const s = M("el-button"), r = M("el-button-group");
|
|
2898
|
+
return c(), C(g(Lo), { class: "ml-status-bar" }, {
|
|
2899
2899
|
left: p(() => [
|
|
2900
|
-
|
|
2900
|
+
v(r, { class: "ml-status-bar-left-button-group" }, {
|
|
2901
2901
|
default: p(() => [
|
|
2902
|
-
(
|
|
2902
|
+
(c(!0), y(j, null, X(g(n), (m) => (c(), C(s, {
|
|
2903
2903
|
class: "ml-status-bar-layout-button",
|
|
2904
|
-
key:
|
|
2905
|
-
type:
|
|
2906
|
-
onClick: (
|
|
2904
|
+
key: m.name,
|
|
2905
|
+
type: m.isActive ? "primary" : "",
|
|
2906
|
+
onClick: (w) => l(m)
|
|
2907
2907
|
}, {
|
|
2908
2908
|
default: p(() => [
|
|
2909
|
-
|
|
2909
|
+
F(D(m.name), 1)
|
|
2910
2910
|
]),
|
|
2911
2911
|
_: 2
|
|
2912
2912
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -2915,23 +2915,23 @@ const wl = /* @__PURE__ */ L({
|
|
|
2915
2915
|
})
|
|
2916
2916
|
]),
|
|
2917
2917
|
right: p(() => [
|
|
2918
|
-
|
|
2919
|
-
|
|
2918
|
+
v(Ll),
|
|
2919
|
+
v(r, { class: "ml-status-bar-right-button-group" }, {
|
|
2920
2920
|
default: p(() => [
|
|
2921
|
-
|
|
2921
|
+
g(i).isShowCoordinate ? (c(), C(s, {
|
|
2922
2922
|
key: 0,
|
|
2923
2923
|
class: "ml-status-bar-current-pos"
|
|
2924
2924
|
}, {
|
|
2925
2925
|
default: p(() => [
|
|
2926
|
-
|
|
2926
|
+
F(D(g(e)), 1)
|
|
2927
2927
|
]),
|
|
2928
2928
|
_: 1
|
|
2929
|
-
})) :
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2929
|
+
})) : q("", !0),
|
|
2930
|
+
v(El),
|
|
2931
|
+
v(Bl),
|
|
2932
|
+
v(xl),
|
|
2933
|
+
v(Ml),
|
|
2934
|
+
v(Dl)
|
|
2935
2935
|
]),
|
|
2936
2936
|
_: 1
|
|
2937
2937
|
})
|
|
@@ -2940,30 +2940,59 @@ const wl = /* @__PURE__ */ L({
|
|
|
2940
2940
|
});
|
|
2941
2941
|
};
|
|
2942
2942
|
}
|
|
2943
|
-
}),
|
|
2943
|
+
}), Vl = /* @__PURE__ */ G($l, [["__scopeId", "data-v-ee6f13c4"]]), Al = {
|
|
2944
|
+
key: 0,
|
|
2945
|
+
class: "ml-cad-viewer-container"
|
|
2946
|
+
}, Fl = { class: "ml-file-name" }, da = /* @__PURE__ */ L({
|
|
2944
2947
|
__name: "MlCadViewer",
|
|
2945
2948
|
props: {
|
|
2946
2949
|
locale: { default: "default" },
|
|
2947
2950
|
url: { default: void 0 },
|
|
2951
|
+
localFile: { default: void 0 },
|
|
2948
2952
|
wait: { default: 10 },
|
|
2949
|
-
canvasId: {},
|
|
2950
2953
|
background: { default: void 0 }
|
|
2951
2954
|
},
|
|
2952
2955
|
setup(t) {
|
|
2953
|
-
const e = t
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2956
|
+
const e = t, { t: n } = N(), { effectiveLocale: i, elementPlusLocale: l } = Ee(e.locale), o = x(), a = x(null), s = k(() => a.value), r = async (f, d) => {
|
|
2957
|
+
const h = { minimumChunkSize: 1e3 };
|
|
2958
|
+
await T.instance.openDocument(f, d, h), Q.fileName = f;
|
|
2959
|
+
}, m = async (f) => {
|
|
2960
|
+
try {
|
|
2961
|
+
const d = { minimumChunkSize: 1e3 };
|
|
2962
|
+
await T.instance.openUrl(f, d);
|
|
2963
|
+
const h = f.split("/").pop();
|
|
2964
|
+
Q.fileName = h ?? "";
|
|
2965
|
+
} catch (d) {
|
|
2966
|
+
console.error("Failed to open file from URL:", d), Z({
|
|
2967
|
+
message: n("main.message.failedToOpenFile", { fileName: f }),
|
|
2968
|
+
grouping: !0,
|
|
2969
|
+
type: "error",
|
|
2970
|
+
showClose: !0
|
|
2971
|
+
});
|
|
2972
|
+
}
|
|
2973
|
+
}, w = async (f) => {
|
|
2974
|
+
var d;
|
|
2959
2975
|
try {
|
|
2960
|
-
const
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2976
|
+
const h = (d = f.name.split(".").pop()) == null ? void 0 : d.toLowerCase(), _ = new FileReader();
|
|
2977
|
+
if (h === "dxf")
|
|
2978
|
+
_.readAsText(f);
|
|
2979
|
+
else if (h === "dwg")
|
|
2980
|
+
_.readAsArrayBuffer(f);
|
|
2981
|
+
else
|
|
2982
|
+
throw new Error(`Unsupported file type: ${h}`);
|
|
2983
|
+
const b = await new Promise(
|
|
2984
|
+
($, I) => {
|
|
2985
|
+
_.onload = (V) => {
|
|
2986
|
+
var P;
|
|
2987
|
+
const B = (P = V.target) == null ? void 0 : P.result;
|
|
2988
|
+
B ? $(B) : I(new Error("Failed to read file content"));
|
|
2989
|
+
}, _.onerror = () => I(new Error("Failed to read file"));
|
|
2990
|
+
}
|
|
2991
|
+
), S = { minimumChunkSize: 1e3 };
|
|
2992
|
+
await T.instance.openDocument(f.name, b, S), Q.fileName = f.name;
|
|
2993
|
+
} catch (h) {
|
|
2994
|
+
console.error("Failed to open local file:", h), Z({
|
|
2995
|
+
message: n("main.message.failedToOpenFile", { fileName: f.name }),
|
|
2967
2996
|
grouping: !0,
|
|
2968
2997
|
type: "error",
|
|
2969
2998
|
showClose: !0
|
|
@@ -2972,77 +3001,87 @@ const wl = /* @__PURE__ */ L({
|
|
|
2972
3001
|
};
|
|
2973
3002
|
return E(
|
|
2974
3003
|
() => e.url,
|
|
2975
|
-
async (
|
|
2976
|
-
|
|
3004
|
+
async (f) => {
|
|
3005
|
+
f && m(f);
|
|
3006
|
+
}
|
|
3007
|
+
), E(
|
|
3008
|
+
() => e.localFile,
|
|
3009
|
+
async (f) => {
|
|
3010
|
+
f && w(f);
|
|
2977
3011
|
}
|
|
2978
3012
|
), E(
|
|
2979
3013
|
() => e.background,
|
|
2980
|
-
(
|
|
2981
|
-
|
|
3014
|
+
(f) => {
|
|
3015
|
+
f != null && (T.instance.curView.backgroundColor = f);
|
|
2982
3016
|
}
|
|
2983
|
-
),
|
|
2984
|
-
e.url
|
|
2985
|
-
}),
|
|
2986
|
-
|
|
2987
|
-
message:
|
|
3017
|
+
), H(async () => {
|
|
3018
|
+
o.value && (Nl(o.value), Rl(), a.value = T.instance), e.url ? m(e.url) : e.localFile && w(e.localFile), e.background != null && (T.instance.curView.backgroundColor = e.background);
|
|
3019
|
+
}), Y.on("message", (f) => {
|
|
3020
|
+
Z({
|
|
3021
|
+
message: f.message,
|
|
2988
3022
|
grouping: !0,
|
|
2989
|
-
type:
|
|
3023
|
+
type: f.type,
|
|
2990
3024
|
showClose: !0
|
|
2991
3025
|
});
|
|
2992
|
-
}),
|
|
2993
|
-
|
|
3026
|
+
}), Y.on("font-not-loaded", (f) => {
|
|
3027
|
+
Z({
|
|
2994
3028
|
message: n("main.message.fontNotLoaded", {
|
|
2995
|
-
fontName:
|
|
2996
|
-
url:
|
|
3029
|
+
fontName: f.fontName,
|
|
3030
|
+
url: f.url
|
|
2997
3031
|
}),
|
|
2998
3032
|
grouping: !0,
|
|
2999
3033
|
type: "error",
|
|
3000
3034
|
showClose: !0
|
|
3001
3035
|
});
|
|
3002
|
-
}),
|
|
3003
|
-
|
|
3004
|
-
message: n("main.message.failedToGetAvaiableFonts", { url:
|
|
3036
|
+
}), Y.on("failed-to-get-avaiable-fonts", (f) => {
|
|
3037
|
+
Z({
|
|
3038
|
+
message: n("main.message.failedToGetAvaiableFonts", { url: f.url }),
|
|
3005
3039
|
grouping: !0,
|
|
3006
3040
|
type: "error",
|
|
3007
3041
|
showClose: !0
|
|
3008
3042
|
});
|
|
3009
|
-
}),
|
|
3010
|
-
|
|
3011
|
-
message: n("main.message.failedToOpenFile", { fileName:
|
|
3043
|
+
}), Y.on("failed-to-open-file", (f) => {
|
|
3044
|
+
Z({
|
|
3045
|
+
message: n("main.message.failedToOpenFile", { fileName: f.fileName }),
|
|
3012
3046
|
grouping: !0,
|
|
3013
3047
|
type: "error",
|
|
3014
3048
|
showClose: !0
|
|
3015
3049
|
});
|
|
3016
|
-
}),
|
|
3017
|
-
const
|
|
3018
|
-
return
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3050
|
+
}), (f, d) => {
|
|
3051
|
+
const h = M("el-config-provider");
|
|
3052
|
+
return c(), y(j, null, [
|
|
3053
|
+
u("canvas", {
|
|
3054
|
+
ref_key: "canvasRef",
|
|
3055
|
+
ref: o,
|
|
3056
|
+
class: "ml-cad-canvas"
|
|
3057
|
+
}, null, 512),
|
|
3058
|
+
a.value ? (c(), y("div", Al, [
|
|
3059
|
+
v(h, { locale: g(l) }, {
|
|
3060
|
+
default: p(() => [
|
|
3061
|
+
u("header", null, [
|
|
3062
|
+
v(g(wl)),
|
|
3063
|
+
v(g(ll), { "current-locale": g(i) }, null, 8, ["current-locale"])
|
|
3064
|
+
]),
|
|
3065
|
+
u("main", null, [
|
|
3066
|
+
u("div", Fl, D(g(Q).fileName), 1),
|
|
3067
|
+
v(g(bl)),
|
|
3068
|
+
v(g(Qo), { editor: s.value }, null, 8, ["editor"]),
|
|
3069
|
+
v(g(Bt))
|
|
3070
|
+
]),
|
|
3071
|
+
u("footer", null, [
|
|
3072
|
+
v(g(el)),
|
|
3073
|
+
v(g(Vl))
|
|
3074
|
+
]),
|
|
3075
|
+
v(g(Et), { onFileRead: r }),
|
|
3076
|
+
v(g(nl))
|
|
3036
3077
|
]),
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
}, 8, ["locale"])
|
|
3042
|
-
]);
|
|
3078
|
+
_: 1
|
|
3079
|
+
}, 8, ["locale"])
|
|
3080
|
+
])) : q("", !0)
|
|
3081
|
+
], 64);
|
|
3043
3082
|
};
|
|
3044
3083
|
}
|
|
3045
|
-
}),
|
|
3084
|
+
}), Il = () => {
|
|
3046
3085
|
W.instance.addCommand(
|
|
3047
3086
|
W.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3048
3087
|
"log",
|
|
@@ -3052,7 +3091,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
3052
3091
|
W.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3053
3092
|
"la",
|
|
3054
3093
|
"la",
|
|
3055
|
-
new
|
|
3094
|
+
new Pl()
|
|
3056
3095
|
), W.instance.addCommand(
|
|
3057
3096
|
W.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3058
3097
|
"md",
|
|
@@ -3064,26 +3103,26 @@ const wl = /* @__PURE__ */ L({
|
|
|
3064
3103
|
"pttype",
|
|
3065
3104
|
new Gl()
|
|
3066
3105
|
);
|
|
3067
|
-
},
|
|
3068
|
-
|
|
3106
|
+
}, Rl = () => {
|
|
3107
|
+
const { registerDialog: t } = oe();
|
|
3108
|
+
t({
|
|
3069
3109
|
name: "ReplacementDlg",
|
|
3070
|
-
component: he(
|
|
3110
|
+
component: he(Vt),
|
|
3071
3111
|
props: {}
|
|
3072
|
-
}),
|
|
3112
|
+
}), t({
|
|
3073
3113
|
name: "PointStyleDlg",
|
|
3074
|
-
component: he(
|
|
3114
|
+
component: he(ao),
|
|
3075
3115
|
props: {}
|
|
3076
3116
|
});
|
|
3077
|
-
},
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
}, Q = q({
|
|
3117
|
+
}, Nl = (t) => {
|
|
3118
|
+
T.createInstance(t), Re(), Il();
|
|
3119
|
+
}, Q = U({
|
|
3081
3120
|
fileName: "",
|
|
3082
3121
|
dialogs: {
|
|
3083
3122
|
layerManager: !1
|
|
3084
3123
|
}
|
|
3085
3124
|
});
|
|
3086
|
-
class
|
|
3125
|
+
class Pl extends re {
|
|
3087
3126
|
execute(e) {
|
|
3088
3127
|
Q.dialogs.layerManager = !0;
|
|
3089
3128
|
}
|
|
@@ -3104,20 +3143,20 @@ class Ol extends re {
|
|
|
3104
3143
|
console.log("Geometry information in current drawing:");
|
|
3105
3144
|
for (let i = 0; i < n.length; ++i) {
|
|
3106
3145
|
console.group(`Layout: ${i}`);
|
|
3107
|
-
const l = n[i], o = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0],
|
|
3108
|
-
name:
|
|
3146
|
+
const l = n[i], o = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], s = l.layers.map((r) => (o[0] = r.line.indexed.geometrySize / 1024, o[1] = r.line.nonIndexed.geometrySize / 1024, o[2] = r.mesh.indexed.geometrySize / 1024, o[3] = r.mesh.nonIndexed.geometrySize / 1024, o[4] = r.point.indexed.geometrySize / 1024, o[5] = r.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], {
|
|
3147
|
+
name: r.name,
|
|
3109
3148
|
"idx line (KB)": o[0].toFixed(1),
|
|
3110
3149
|
"line (KB)": o[1].toFixed(1),
|
|
3111
3150
|
"idx mesh (KB)": o[2].toFixed(1),
|
|
3112
3151
|
"mesh (KB)": o[3].toFixed(1),
|
|
3113
3152
|
"idx point (KB)": o[4].toFixed(1),
|
|
3114
3153
|
"point (KB)": o[5].toFixed(1),
|
|
3115
|
-
"total geo (KB)": (
|
|
3116
|
-
"total mapping (KB)": (
|
|
3154
|
+
"total geo (KB)": (r.summary.totalGeometrySize / 1024).toFixed(1),
|
|
3155
|
+
"total mapping (KB)": (r.summary.totalMappingSize / 1024).toFixed(
|
|
3117
3156
|
1
|
|
3118
3157
|
)
|
|
3119
3158
|
}));
|
|
3120
|
-
|
|
3159
|
+
s.push({
|
|
3121
3160
|
name: "total",
|
|
3122
3161
|
"idx line (KB)": a[0].toFixed(1),
|
|
3123
3162
|
"line (KB)": a[1].toFixed(1),
|
|
@@ -3129,11 +3168,11 @@ class Ol extends re {
|
|
|
3129
3168
|
"total mapping (KB)": (l.summary.totalSize.mapping / 1024).toFixed(
|
|
3130
3169
|
1
|
|
3131
3170
|
)
|
|
3132
|
-
}), console.table(
|
|
3171
|
+
}), console.table(s), console.groupEnd();
|
|
3133
3172
|
}
|
|
3134
3173
|
}
|
|
3135
3174
|
printPerformanceData() {
|
|
3136
|
-
|
|
3175
|
+
Ge.getInstance().printAll();
|
|
3137
3176
|
}
|
|
3138
3177
|
}
|
|
3139
3178
|
class Hl extends re {
|
|
@@ -3149,41 +3188,41 @@ class Gl extends re {
|
|
|
3149
3188
|
}
|
|
3150
3189
|
}
|
|
3151
3190
|
export {
|
|
3152
|
-
|
|
3191
|
+
Pl as AcApLayerStateCmd,
|
|
3153
3192
|
Ol as AcApLogCmd,
|
|
3154
3193
|
Hl as AcApMissedDataCmd,
|
|
3155
3194
|
Gl as AcApPointStyleCmd,
|
|
3156
|
-
|
|
3195
|
+
Te as MlBaseDialog,
|
|
3157
3196
|
da as MlCadViewer,
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3197
|
+
el as MlCommandLine,
|
|
3198
|
+
Bt as MlDialogManager,
|
|
3199
|
+
nl as MlEntityInfo,
|
|
3200
|
+
Et as MlFileReader,
|
|
3201
|
+
ll as MlLanguageSelector,
|
|
3202
|
+
Qo as MlLayerManager,
|
|
3203
|
+
wl as MlMainMenu,
|
|
3204
|
+
ao as MlPointStyleDlg,
|
|
3205
|
+
Vt as MlReplacementDlg,
|
|
3206
|
+
Vl as MlStatusBar,
|
|
3207
|
+
Ve as MlToggleButton,
|
|
3208
|
+
bl as MlToolBars,
|
|
3170
3209
|
fe as cmdDescription,
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3210
|
+
Lt as colorName,
|
|
3211
|
+
zt as conversionSubStageName,
|
|
3212
|
+
Ct as entityName,
|
|
3213
|
+
ee as i18n,
|
|
3175
3214
|
ae as isDark,
|
|
3176
3215
|
ca as sysCmdDescription,
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3216
|
+
mt as toggleDark,
|
|
3217
|
+
ut as useCommands,
|
|
3218
|
+
dt as useCurrentPos,
|
|
3180
3219
|
oe as useDialogManager,
|
|
3181
|
-
|
|
3220
|
+
pt as useFileTypes,
|
|
3182
3221
|
vt as useLayers,
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3222
|
+
gt as useLayouts,
|
|
3223
|
+
Ee as useLocale,
|
|
3224
|
+
$e as useMissedData,
|
|
3186
3225
|
ce as useSettings,
|
|
3187
|
-
|
|
3226
|
+
Dt as useSystemVars,
|
|
3188
3227
|
ua as userCmdDescription
|
|
3189
3228
|
};
|