@mlightcad/cad-viewer 1.1.12 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
- package/dist/component/common/MlFileReader.vue.d.ts.map +1 -1
- package/dist/component/notification/MlNotificationCenter.vue.d.ts.map +1 -1
- package/dist/component/statusBar/MlStatusBar.vue.d.ts.map +1 -1
- package/dist/composable/index.d.ts +1 -0
- package/dist/composable/index.d.ts.map +1 -1
- package/dist/composable/useIsMobile.d.ts +4 -0
- package/dist/composable/useIsMobile.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +587 -576
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { AcEdCommandStack as q, AcApDocManager as E, eventBus as X, AcApSettingManager as Q, AcApConvertToSvgCmd as
|
|
2
|
+
import { AcEdCommandStack as q, AcApDocManager as E, eventBus as X, AcApSettingManager as Q, AcApConvertToSvgCmd as Oe, AcApQNewCmd as Re, AcApOpenCmd as He, registerWorkers as Ge, AcEdCommand as ce } from "@mlightcad/cad-simple-viewer";
|
|
3
3
|
import "element-plus/dist/index.css";
|
|
4
|
-
import { reactive as Y, computed 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 de, ElDropdown as
|
|
4
|
+
import { reactive as Y, computed as M, defineComponent as S, onMounted as U, resolveComponent as C, createBlock as z, openBlock as u, unref as d, withCtx as f, renderSlot as re, createVNode as m, createTextVNode as N, toDisplayString as T, createElementVNode as c, ref as x, onUnmounted as ne, watch as A, createElementBlock as _, Fragment as j, renderList as K, resolveDynamicComponent as ue, mergeProps as We, mergeModels as ee, useCssVars as De, useModel as _e, createCommentVNode as R, normalizeStyle as ge, normalizeClass as we, pushScopeId as Te, popScopeId as $e, onBeforeUnmount as Ee, withKeys as Ue, isRef as qe, markRaw as be } from "vue";
|
|
5
|
+
import { AcDbDatabaseConverterManager as je, acdbHostApplicationServices as Ae, AcCmPerformanceCollector as Ye } from "@mlightcad/data-model";
|
|
6
|
+
import { useDark as Ke, useToggle as Xe, useMediaQuery as Qe, useFullscreen as Ze } from "@vueuse/core";
|
|
7
|
+
import Je from "element-plus/es/locale/lang/en";
|
|
8
|
+
import et from "element-plus/es/locale/lang/zh-cn";
|
|
9
|
+
import { useI18n as O, createI18n as tt } from "vue-i18n";
|
|
10
|
+
import { ElDialog as nt, ElButton as xe, ElTable as ot, ElAutocomplete as lt, ElProgress as at, ElLoading as ke, ElMessage as oe } from "element-plus";
|
|
11
|
+
import { ElIcon as de, ElDropdown as it, ElDropdownMenu as st, ElDropdownItem as rt, ElButtonGroup as ct, ElTooltip as ut, ElButton as dt } 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";
|
|
@@ -18,25 +18,25 @@ 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
20
|
const le = Y([]);
|
|
21
|
-
function
|
|
21
|
+
function mt(t) {
|
|
22
22
|
le.find((n) => n.name === t.name) || le.push({ ...t, visible: !1 });
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function pt(t, e) {
|
|
25
25
|
const n = le.find((i) => i.name === t);
|
|
26
26
|
n && (n.visible = e);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function ft(t) {
|
|
29
29
|
return le.find((e) => e.name === t);
|
|
30
30
|
}
|
|
31
31
|
function ae() {
|
|
32
32
|
return {
|
|
33
|
-
dialogs:
|
|
34
|
-
registerDialog:
|
|
35
|
-
toggleDialog:
|
|
36
|
-
getDialogByName:
|
|
33
|
+
dialogs: M(() => le),
|
|
34
|
+
registerDialog: mt,
|
|
35
|
+
toggleDialog: pt,
|
|
36
|
+
getDialogByName: ft
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
const
|
|
39
|
+
const vt = /* @__PURE__ */ S({
|
|
40
40
|
__name: "MlBaseDialog",
|
|
41
41
|
props: {
|
|
42
42
|
title: {
|
|
@@ -62,22 +62,22 @@ const gt = /* @__PURE__ */ S({
|
|
|
62
62
|
},
|
|
63
63
|
emits: ["update:modelValue", "ok", "cancel"],
|
|
64
64
|
setup(t, { emit: e }) {
|
|
65
|
-
const { t: n } =
|
|
65
|
+
const { t: n } = O(), i = t, l = e, { registerDialog: o } = ae();
|
|
66
66
|
function a() {
|
|
67
|
-
|
|
67
|
+
l("ok"), l("update:modelValue", !1);
|
|
68
68
|
}
|
|
69
69
|
function r() {
|
|
70
|
-
|
|
70
|
+
l("cancel"), l("update:modelValue", !1);
|
|
71
71
|
}
|
|
72
72
|
return U(() => {
|
|
73
|
-
|
|
73
|
+
o({
|
|
74
74
|
name: i.name,
|
|
75
75
|
component: "BaseDialog",
|
|
76
76
|
props: i.props
|
|
77
77
|
});
|
|
78
78
|
}), (s, p) => {
|
|
79
|
-
const g =
|
|
80
|
-
return u(),
|
|
79
|
+
const g = C("el-divider");
|
|
80
|
+
return u(), z(d(nt), {
|
|
81
81
|
"model-value": t.modelValue,
|
|
82
82
|
width: t.width,
|
|
83
83
|
close: "handleCancel",
|
|
@@ -89,13 +89,13 @@ const gt = /* @__PURE__ */ S({
|
|
|
89
89
|
]),
|
|
90
90
|
footer: f(() => [
|
|
91
91
|
m(g, { class: "ml-dialog-footer-top-line" }),
|
|
92
|
-
m(d(
|
|
92
|
+
m(d(xe), { onClick: r }, {
|
|
93
93
|
default: f(() => [
|
|
94
94
|
N(T(d(n)("dialog.baseDialog.cancel")), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
m(d(
|
|
98
|
+
m(d(xe), {
|
|
99
99
|
type: "primary",
|
|
100
100
|
onClick: a
|
|
101
101
|
}, {
|
|
@@ -114,11 +114,11 @@ const gt = /* @__PURE__ */ S({
|
|
|
114
114
|
}
|
|
115
115
|
}), W = (t, e) => {
|
|
116
116
|
const n = t.__vccOpts || t;
|
|
117
|
-
for (const [i,
|
|
118
|
-
n[i] =
|
|
117
|
+
for (const [i, l] of e)
|
|
118
|
+
n[i] = l;
|
|
119
119
|
return n;
|
|
120
|
-
},
|
|
121
|
-
function
|
|
120
|
+
}, Ve = /* @__PURE__ */ W(vt, [["__scopeId", "data-v-8df470d5"]]);
|
|
121
|
+
function gt() {
|
|
122
122
|
const t = Y([]), e = q.instance.iterator();
|
|
123
123
|
for (const n of e)
|
|
124
124
|
t.push({
|
|
@@ -129,40 +129,40 @@ function ht() {
|
|
|
129
129
|
(n, i) => n.commandName.toLowerCase().localeCompare(i.commandName.toLowerCase())
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function Me(t, e = "en-US") {
|
|
133
133
|
const n = Math.abs(t);
|
|
134
134
|
if (n !== 0 && (n < 1e-3 || n >= 1e6)) {
|
|
135
|
-
const [i,
|
|
135
|
+
const [i, l] = t.toExponential(3).split("e");
|
|
136
136
|
return `${new Intl.NumberFormat(e, {
|
|
137
137
|
maximumFractionDigits: 3
|
|
138
|
-
}).format(Number(i))}e${
|
|
138
|
+
}).format(Number(i))}e${l}`;
|
|
139
139
|
} else
|
|
140
140
|
return new Intl.NumberFormat(e, {
|
|
141
141
|
maximumFractionDigits: 6
|
|
142
142
|
}).format(t);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
const e =
|
|
146
|
-
function i(
|
|
147
|
-
e.value =
|
|
148
|
-
}
|
|
149
|
-
U(() => t.events.mouseMove.addEventListener(i)),
|
|
150
|
-
const
|
|
151
|
-
return { x: e, y: n, text:
|
|
144
|
+
function ht(t) {
|
|
145
|
+
const e = x(0), n = x(0);
|
|
146
|
+
function i(o) {
|
|
147
|
+
e.value = o.x, n.value = o.y;
|
|
148
|
+
}
|
|
149
|
+
U(() => t.events.mouseMove.addEventListener(i)), ne(() => t.events.mouseMove.removeEventListener(i));
|
|
150
|
+
const l = M(() => `${Me(e.value)}, ${Me(n.value)}`);
|
|
151
|
+
return { x: e, y: n, text: l };
|
|
152
152
|
}
|
|
153
|
-
const se =
|
|
154
|
-
function
|
|
155
|
-
const t =
|
|
153
|
+
const se = Ke(), _t = Xe(se);
|
|
154
|
+
function wt() {
|
|
155
|
+
const t = x(/* @__PURE__ */ new Set()), e = je.instance;
|
|
156
156
|
for (const n of e.fileTypes)
|
|
157
157
|
t.value.add(n);
|
|
158
158
|
return e.events.registered.addEventListener((n) => {
|
|
159
159
|
t.value.add(n.fileType);
|
|
160
160
|
}), t;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
163
|
-
const e = Y([]), n = t.curDocument, i = (
|
|
164
|
-
const
|
|
165
|
-
for (const a of
|
|
162
|
+
function yt(t) {
|
|
163
|
+
const e = Y([]), n = t.curDocument, i = (l) => {
|
|
164
|
+
const o = l.tables.layerTable.newIterator();
|
|
165
|
+
for (const a of o)
|
|
166
166
|
e.push({
|
|
167
167
|
name: a.name,
|
|
168
168
|
color: a.color.cssColor,
|
|
@@ -176,44 +176,44 @@ function bt(t) {
|
|
|
176
176
|
lineWeight: a.lineWeight
|
|
177
177
|
});
|
|
178
178
|
};
|
|
179
|
-
return i(n.database), n.database.events.layerModified.addEventListener((
|
|
180
|
-
let
|
|
181
|
-
(a) => a.name ==
|
|
179
|
+
return i(n.database), n.database.events.layerModified.addEventListener((l) => {
|
|
180
|
+
let o = e.find(
|
|
181
|
+
(a) => a.name == l.layer.name
|
|
182
182
|
);
|
|
183
|
-
if (
|
|
184
|
-
|
|
185
|
-
const a =
|
|
186
|
-
a.color != null && (
|
|
183
|
+
if (o) {
|
|
184
|
+
o = o;
|
|
185
|
+
const a = l.changes;
|
|
186
|
+
a.color != null && (o.color = a.color.cssColor), a.isLocoked != null && (o.isLocked = a.isLocked), a.isHidden != null && (o.isHidden = a.isHidden), a.isInUse != null && (o.isInUse = a.isInUse), a.isOff != null && (o.isOn = !a.isOff), a.isPlottable != null && (o.isPlottable = a.isPlottable), a.transparency != null && (o.transparency = a.transparency), a.linetype != null && (o.linetype = a.linetype), a.lineWeight != null && (o.lineWeight = a.lineWeight);
|
|
187
187
|
}
|
|
188
|
-
}), t.events.documentActivated.addEventListener((
|
|
189
|
-
e.length = 0, i(
|
|
188
|
+
}), t.events.documentActivated.addEventListener((l) => {
|
|
189
|
+
e.length = 0, i(l.doc.database);
|
|
190
190
|
}), e;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
const e = Y([]), n = t.curDocument, i = (
|
|
194
|
-
const
|
|
192
|
+
function bt(t) {
|
|
193
|
+
const e = Y([]), n = t.curDocument, i = (l) => {
|
|
194
|
+
const o = l.dictionaries.layouts.newIterator();
|
|
195
195
|
e.length = 0;
|
|
196
|
-
for (const a of
|
|
196
|
+
for (const a of o)
|
|
197
197
|
e.push({
|
|
198
198
|
name: a.layoutName,
|
|
199
199
|
tabOrder: a.tabOrder,
|
|
200
200
|
blockTableRecordId: a.blockTableRecordId,
|
|
201
|
-
isActive: a.blockTableRecordId ==
|
|
201
|
+
isActive: a.blockTableRecordId == l.currentSpaceId
|
|
202
202
|
});
|
|
203
203
|
e.sort((a, r) => a.tabOrder - r.tabOrder);
|
|
204
204
|
};
|
|
205
|
-
return i(n.database), t.events.documentActivated.addEventListener((
|
|
206
|
-
e.length = 0, i(
|
|
207
|
-
}),
|
|
208
|
-
(
|
|
209
|
-
const
|
|
205
|
+
return i(n.database), t.events.documentActivated.addEventListener((l) => {
|
|
206
|
+
e.length = 0, i(l.doc.database);
|
|
207
|
+
}), Ae().layoutManager.events.layoutSwitched.addEventListener(
|
|
208
|
+
(l) => {
|
|
209
|
+
const o = l.layout;
|
|
210
210
|
e.forEach((a) => {
|
|
211
|
-
a.name ==
|
|
211
|
+
a.name == o.layoutName ? a.isActive = !0 : a.isActive = !1;
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
), e;
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const xt = {
|
|
217
217
|
ACAD: {
|
|
218
218
|
csvg: "Converts current drawing to SVG",
|
|
219
219
|
la: "Layer properties manager",
|
|
@@ -228,7 +228,7 @@ const kt = {
|
|
|
228
228
|
zoomw: "Zooms to display an area specified by a rectangular window"
|
|
229
229
|
},
|
|
230
230
|
USER: {}
|
|
231
|
-
},
|
|
231
|
+
}, kt = {
|
|
232
232
|
baseDialog: {
|
|
233
233
|
ok: "OK",
|
|
234
234
|
cancel: "Cancel"
|
|
@@ -247,7 +247,7 @@ const kt = {
|
|
|
247
247
|
title: "Point Style",
|
|
248
248
|
pointSize: "Point Size:"
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, Mt = {
|
|
251
251
|
entityName: {
|
|
252
252
|
"3PointAngularDimension": "Three Point Angular Dimension",
|
|
253
253
|
AlignedDimension: "Aligned Dimension",
|
|
@@ -421,7 +421,7 @@ const kt = {
|
|
|
421
421
|
yellow: "Yellow",
|
|
422
422
|
yellowgreen: "Yellow Green"
|
|
423
423
|
}
|
|
424
|
-
},
|
|
424
|
+
}, Ct = {
|
|
425
425
|
mainMenu: {
|
|
426
426
|
new: "New Drawing",
|
|
427
427
|
open: "Open Drawing",
|
|
@@ -538,7 +538,7 @@ const kt = {
|
|
|
538
538
|
parsingWarning: "Issues on Parsing Drawing"
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
|
-
},
|
|
541
|
+
}, St = {
|
|
542
542
|
ACAD: {
|
|
543
543
|
csvg: "转换当前图纸为SVG格式",
|
|
544
544
|
la: "图层属性管理器",
|
|
@@ -553,7 +553,7 @@ const kt = {
|
|
|
553
553
|
zoomw: "缩放以显示矩形窗口内的对象"
|
|
554
554
|
},
|
|
555
555
|
USER: {}
|
|
556
|
-
},
|
|
556
|
+
}, Lt = {
|
|
557
557
|
baseDialog: {
|
|
558
558
|
ok: "确定",
|
|
559
559
|
cancel: "取消"
|
|
@@ -572,7 +572,7 @@ const kt = {
|
|
|
572
572
|
title: "点样式",
|
|
573
573
|
pointSize: "点大小:"
|
|
574
574
|
}
|
|
575
|
-
},
|
|
575
|
+
}, zt = {
|
|
576
576
|
entityName: {
|
|
577
577
|
"3PointAngularDimension": "三点角度标注",
|
|
578
578
|
AlignedDimension: "线性标注",
|
|
@@ -746,7 +746,7 @@ const kt = {
|
|
|
746
746
|
yellow: "黄色",
|
|
747
747
|
yellowgreen: "黄绿色"
|
|
748
748
|
}
|
|
749
|
-
},
|
|
749
|
+
}, Bt = {
|
|
750
750
|
mainMenu: {
|
|
751
751
|
new: "新建图纸",
|
|
752
752
|
open: "打开图纸",
|
|
@@ -863,59 +863,59 @@ const kt = {
|
|
|
863
863
|
parsingWarning: "解析图纸问题"
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
|
-
},
|
|
866
|
+
}, Dt = () => {
|
|
867
867
|
const t = localStorage.getItem("preferred_lang");
|
|
868
868
|
return t === "en" || t === "zh" ? t : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
869
|
-
},
|
|
869
|
+
}, Tt = {
|
|
870
870
|
en: {
|
|
871
|
-
main:
|
|
872
|
-
command:
|
|
873
|
-
dialog:
|
|
874
|
-
entity:
|
|
871
|
+
main: Ct,
|
|
872
|
+
command: xt,
|
|
873
|
+
dialog: kt,
|
|
874
|
+
entity: Mt
|
|
875
875
|
},
|
|
876
876
|
zh: {
|
|
877
|
-
main:
|
|
878
|
-
command:
|
|
879
|
-
dialog:
|
|
880
|
-
entity:
|
|
877
|
+
main: Bt,
|
|
878
|
+
command: St,
|
|
879
|
+
dialog: Lt,
|
|
880
|
+
entity: zt
|
|
881
881
|
}
|
|
882
|
-
},
|
|
882
|
+
}, te = tt({
|
|
883
883
|
legacy: !1,
|
|
884
|
-
messages:
|
|
885
|
-
locale:
|
|
884
|
+
messages: Tt,
|
|
885
|
+
locale: Dt(),
|
|
886
886
|
fallbackLocale: "en",
|
|
887
887
|
allowComposition: !0,
|
|
888
888
|
globalInjection: !0
|
|
889
889
|
}), ye = (t, e) => {
|
|
890
|
-
const n =
|
|
890
|
+
const n = te.global.t, i = `command.${t}.${e}`;
|
|
891
891
|
return n(i, "");
|
|
892
|
-
}, Ka = (t) => ye(q.SYSTEMT_COMMAND_GROUP_NAME, t), Xa = (t) => ye(q.DEFAUT_COMMAND_GROUP_NAME, t),
|
|
893
|
-
const e =
|
|
892
|
+
}, Ka = (t) => ye(q.SYSTEMT_COMMAND_GROUP_NAME, t), Xa = (t) => ye(q.DEFAUT_COMMAND_GROUP_NAME, t), $t = (t) => {
|
|
893
|
+
const e = te.global.t, n = "entity.entityName." + t.type;
|
|
894
894
|
return e(n, t.type, { missingWarn: !1 });
|
|
895
|
-
},
|
|
895
|
+
}, Et = (t) => {
|
|
896
896
|
if (t == "ByLayer" || t == "ByBlock")
|
|
897
897
|
return t;
|
|
898
898
|
{
|
|
899
|
-
const e =
|
|
899
|
+
const e = te.global.t, n = "entity.color." + t;
|
|
900
900
|
return e(n, t, { missingWarn: !1 });
|
|
901
901
|
}
|
|
902
|
-
},
|
|
903
|
-
const e =
|
|
902
|
+
}, At = (t) => {
|
|
903
|
+
const e = te.global.t, n = "main.progress." + t.replace(/_/g, "").toLowerCase();
|
|
904
904
|
return e(n, t);
|
|
905
905
|
}, ve = "preferred_lang";
|
|
906
|
-
function
|
|
907
|
-
const { locale: e } =
|
|
906
|
+
function Fe(t) {
|
|
907
|
+
const { locale: e } = O(), i = x((() => {
|
|
908
908
|
const s = localStorage.getItem(ve);
|
|
909
909
|
return s === "en" || s === "zh" ? s : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
910
|
-
})()),
|
|
911
|
-
|
|
910
|
+
})()), l = M(() => i.value), o = (s) => {
|
|
911
|
+
te.global.locale.value = s, i.value = s, (!t || t === "default") && localStorage.setItem(ve, s);
|
|
912
912
|
}, a = () => {
|
|
913
913
|
localStorage.removeItem(ve);
|
|
914
914
|
};
|
|
915
915
|
t && A(
|
|
916
916
|
() => t,
|
|
917
917
|
(s) => {
|
|
918
|
-
s && s !== "default" && (i.value = s,
|
|
918
|
+
s && s !== "default" && (i.value = s, te.global.locale.value = s, a());
|
|
919
919
|
},
|
|
920
920
|
{ immediate: !0 }
|
|
921
921
|
), A(
|
|
@@ -927,26 +927,26 @@ function Ie(t) {
|
|
|
927
927
|
}
|
|
928
928
|
}
|
|
929
929
|
);
|
|
930
|
-
const r =
|
|
930
|
+
const r = M(() => l.value === "en" ? Je : et);
|
|
931
931
|
return {
|
|
932
932
|
currentLocale: i,
|
|
933
|
-
effectiveLocale:
|
|
933
|
+
effectiveLocale: l,
|
|
934
934
|
elementPlusLocale: r,
|
|
935
|
-
setLocale:
|
|
935
|
+
setLocale: o,
|
|
936
936
|
clearStoragePreference: a,
|
|
937
|
-
isControlled:
|
|
937
|
+
isControlled: M(() => !!(t && t !== "default"))
|
|
938
938
|
};
|
|
939
939
|
}
|
|
940
|
-
function
|
|
940
|
+
function Ne() {
|
|
941
941
|
const t = Y(/* @__PURE__ */ new Map()), e = Y(/* @__PURE__ */ new Map()), n = () => {
|
|
942
|
-
const i = E.instance.curView.missedData,
|
|
943
|
-
t.clear(), Object.keys(i.fonts).forEach((
|
|
944
|
-
const a = o
|
|
945
|
-
t.set(
|
|
946
|
-
}), e.clear(), i.images.forEach((
|
|
947
|
-
const r = e.get(
|
|
948
|
-
r ? r.ids.add(a) : e.set(
|
|
949
|
-
fileName:
|
|
942
|
+
const i = E.instance.curView.missedData, l = Q.instance.fontMapping;
|
|
943
|
+
t.clear(), Object.keys(i.fonts).forEach((o) => {
|
|
944
|
+
const a = l[o];
|
|
945
|
+
t.set(o, a || "");
|
|
946
|
+
}), e.clear(), i.images.forEach((o, a) => {
|
|
947
|
+
const r = e.get(o);
|
|
948
|
+
r ? r.ids.add(a) : e.set(o, {
|
|
949
|
+
fileName: o,
|
|
950
950
|
ids: /* @__PURE__ */ new Set([a])
|
|
951
951
|
});
|
|
952
952
|
});
|
|
@@ -960,18 +960,18 @@ function Re() {
|
|
|
960
960
|
images: e
|
|
961
961
|
};
|
|
962
962
|
}
|
|
963
|
-
class
|
|
963
|
+
class Vt {
|
|
964
964
|
constructor() {
|
|
965
|
-
this.notifications =
|
|
965
|
+
this.notifications = x([]), this.nextId = 1;
|
|
966
966
|
}
|
|
967
967
|
get allNotifications() {
|
|
968
|
-
return
|
|
968
|
+
return M(() => this.notifications.value);
|
|
969
969
|
}
|
|
970
970
|
get unreadCount() {
|
|
971
|
-
return
|
|
971
|
+
return M(() => this.notifications.value.length);
|
|
972
972
|
}
|
|
973
973
|
get hasNotifications() {
|
|
974
|
-
return
|
|
974
|
+
return M(() => this.notifications.value.length > 0);
|
|
975
975
|
}
|
|
976
976
|
add(e) {
|
|
977
977
|
const n = {
|
|
@@ -1027,7 +1027,7 @@ class Ft {
|
|
|
1027
1027
|
});
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
const I = new
|
|
1030
|
+
const I = new Vt();
|
|
1031
1031
|
function me() {
|
|
1032
1032
|
return {
|
|
1033
1033
|
/** Reactive list of all notifications */
|
|
@@ -1062,38 +1062,54 @@ function pe() {
|
|
|
1062
1062
|
t[e.key] = e.value;
|
|
1063
1063
|
}), t;
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1066
|
-
const e = Y({}), n = t.curDocument, i = (
|
|
1067
|
-
e.pdmode =
|
|
1065
|
+
function Ft(t) {
|
|
1066
|
+
const e = Y({}), n = t.curDocument, i = (l) => {
|
|
1067
|
+
e.pdmode = l.pdmode, e.pdmode = l.pdsize;
|
|
1068
1068
|
};
|
|
1069
|
-
return i(n.database), n.database.events.headerSysVarChanged.addEventListener((
|
|
1070
|
-
e[
|
|
1071
|
-
}), t.events.documentActivated.addEventListener((
|
|
1072
|
-
i(
|
|
1069
|
+
return i(n.database), n.database.events.headerSysVarChanged.addEventListener((l) => {
|
|
1070
|
+
e[l.name] = l.database[l.name];
|
|
1071
|
+
}), t.events.documentActivated.addEventListener((l) => {
|
|
1072
|
+
i(l.doc.database);
|
|
1073
1073
|
}), e;
|
|
1074
1074
|
}
|
|
1075
|
+
function Nt() {
|
|
1076
|
+
const t = Qe("(max-width: 768px)"), e = x(!1), n = x(!1);
|
|
1077
|
+
return U(() => {
|
|
1078
|
+
var l;
|
|
1079
|
+
try {
|
|
1080
|
+
const o = window.navigator, a = o.maxTouchPoints ?? o.msMaxTouchPoints ?? 0, r = ((l = window.matchMedia) == null ? void 0 : l.call(window, "(pointer: coarse)").matches) ?? !1;
|
|
1081
|
+
e.value = a > 0 || r || "ontouchstart" in window;
|
|
1082
|
+
const s = o.userAgent || "";
|
|
1083
|
+
n.value = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
1084
|
+
s
|
|
1085
|
+
);
|
|
1086
|
+
} catch {
|
|
1087
|
+
e.value = !1, n.value = !1;
|
|
1088
|
+
}
|
|
1089
|
+
}), { isMobile: M(() => !!t.value && (e.value || n.value)) };
|
|
1090
|
+
}
|
|
1075
1091
|
const It = /* @__PURE__ */ S({
|
|
1076
1092
|
__name: "MlDialogManager",
|
|
1077
1093
|
setup(t, { expose: e }) {
|
|
1078
|
-
const { dialogs: n, toggleDialog: i, registerDialog:
|
|
1094
|
+
const { dialogs: n, toggleDialog: i, registerDialog: l } = ae();
|
|
1079
1095
|
return e({
|
|
1080
1096
|
toggleDialog: i,
|
|
1081
|
-
registerDialog:
|
|
1082
|
-
}), (
|
|
1097
|
+
registerDialog: l
|
|
1098
|
+
}), (o, a) => (u(!0), _(j, null, K(d(n), (r) => (u(), _("div", {
|
|
1083
1099
|
key: r.name
|
|
1084
1100
|
}, [
|
|
1085
|
-
(u(),
|
|
1101
|
+
(u(), z(ue(r.component), We({
|
|
1086
1102
|
modelValue: r.visible,
|
|
1087
1103
|
"onUpdate:modelValue": (s) => r.visible = s
|
|
1088
1104
|
}, { ref_for: !0 }, r.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
1089
1105
|
]))), 128));
|
|
1090
1106
|
}
|
|
1091
|
-
}),
|
|
1107
|
+
}), Pt = ["accept"], Ot = /* @__PURE__ */ S({
|
|
1092
1108
|
__name: "MlFileReader",
|
|
1093
1109
|
emits: ["file-read"],
|
|
1094
1110
|
setup(t, { emit: e }) {
|
|
1095
|
-
const n = e, i =
|
|
1096
|
-
const r = Array.from(
|
|
1111
|
+
const n = e, i = x(null), l = wt(), o = M(() => {
|
|
1112
|
+
const r = Array.from(l.value);
|
|
1097
1113
|
let s = "";
|
|
1098
1114
|
for (let p = 0, g = r.length; p < g; ++p)
|
|
1099
1115
|
p == g - 1 ? s += `.${r[p]}` : s += `.${r[p]}, `;
|
|
@@ -1106,15 +1122,15 @@ const It = /* @__PURE__ */ S({
|
|
|
1106
1122
|
});
|
|
1107
1123
|
});
|
|
1108
1124
|
const a = (r) => {
|
|
1109
|
-
var g
|
|
1125
|
+
var g;
|
|
1110
1126
|
const p = (g = r.target.files) == null ? void 0 : g[0];
|
|
1111
1127
|
if (p && p.name) {
|
|
1112
|
-
const
|
|
1113
|
-
|
|
1114
|
-
var
|
|
1115
|
-
const
|
|
1116
|
-
|
|
1117
|
-
},
|
|
1128
|
+
const b = new FileReader();
|
|
1129
|
+
b.readAsArrayBuffer(p), b.onload = (v) => {
|
|
1130
|
+
var w;
|
|
1131
|
+
const h = (w = v.target) == null ? void 0 : w.result;
|
|
1132
|
+
h && n("file-read", p.name, h);
|
|
1133
|
+
}, b.onerror = () => {
|
|
1118
1134
|
console.error("Failed to read the file.");
|
|
1119
1135
|
};
|
|
1120
1136
|
}
|
|
@@ -1123,38 +1139,38 @@ const It = /* @__PURE__ */ S({
|
|
|
1123
1139
|
type: "file",
|
|
1124
1140
|
ref_key: "fileInput",
|
|
1125
1141
|
ref: i,
|
|
1126
|
-
accept:
|
|
1142
|
+
accept: o.value,
|
|
1127
1143
|
style: { display: "none" },
|
|
1128
1144
|
onChange: a
|
|
1129
|
-
}, null, 40,
|
|
1145
|
+
}, null, 40, Pt));
|
|
1130
1146
|
}
|
|
1131
|
-
}),
|
|
1147
|
+
}), Rt = /* @__PURE__ */ S({
|
|
1132
1148
|
__name: "MlToggleButton",
|
|
1133
|
-
props: /* @__PURE__ */
|
|
1149
|
+
props: /* @__PURE__ */ ee({
|
|
1134
1150
|
size: { default: 30 },
|
|
1135
1151
|
data: {}
|
|
1136
1152
|
}, {
|
|
1137
1153
|
modelValue: { default: !1 },
|
|
1138
1154
|
modelModifiers: {}
|
|
1139
1155
|
}),
|
|
1140
|
-
emits: /* @__PURE__ */
|
|
1156
|
+
emits: /* @__PURE__ */ ee(["click"], ["update:modelValue"]),
|
|
1141
1157
|
setup(t, { emit: e }) {
|
|
1142
|
-
|
|
1158
|
+
De((p) => ({
|
|
1143
1159
|
a97b120a: a.value
|
|
1144
1160
|
}));
|
|
1145
|
-
const n = t, i = _e(t, "modelValue"),
|
|
1146
|
-
|
|
1161
|
+
const n = t, i = _e(t, "modelValue"), l = e, o = M(() => i.value ? n.data.onIcon : n.data.offIcon), a = M(() => n.size + "px"), r = M(() => i.value ? n.data.onTooltip : n.data.offTooltip), s = () => {
|
|
1162
|
+
l("click", i.value);
|
|
1147
1163
|
};
|
|
1148
1164
|
return (p, g) => {
|
|
1149
|
-
const b =
|
|
1150
|
-
return u(),
|
|
1165
|
+
const b = C("el-button"), v = C("el-tooltip");
|
|
1166
|
+
return u(), z(v, {
|
|
1151
1167
|
content: r.value,
|
|
1152
1168
|
"hide-after": 0
|
|
1153
1169
|
}, {
|
|
1154
1170
|
default: f(() => [
|
|
1155
1171
|
m(b, {
|
|
1156
1172
|
class: "ml-toggle-button",
|
|
1157
|
-
icon:
|
|
1173
|
+
icon: o.value,
|
|
1158
1174
|
onClick: s
|
|
1159
1175
|
}, null, 8, ["icon"])
|
|
1160
1176
|
]),
|
|
@@ -1162,58 +1178,58 @@ const It = /* @__PURE__ */ S({
|
|
|
1162
1178
|
}, 8, ["content"]);
|
|
1163
1179
|
};
|
|
1164
1180
|
}
|
|
1165
|
-
}),
|
|
1181
|
+
}), Ie = /* @__PURE__ */ W(Rt, [["__scopeId", "data-v-48d6b055"]]), Ht = /* @__PURE__ */ S({
|
|
1166
1182
|
__name: "MlReplacementDlg",
|
|
1167
1183
|
setup(t) {
|
|
1168
|
-
const { t: e } =
|
|
1184
|
+
const { t: e } = O(), { fonts: n, images: i } = Ne(), l = x(!0), o = M(() => n.size > 0 ? "font" : "image"), a = x(null), r = M(() => E.instance.avaiableFonts.map((h) => h.name[0])), s = () => {
|
|
1169
1185
|
const v = E.instance.curDocument.database;
|
|
1170
1186
|
i.forEach((w) => {
|
|
1171
|
-
w.file && w.ids.forEach((
|
|
1172
|
-
const
|
|
1173
|
-
|
|
1187
|
+
w.file && w.ids.forEach((k) => {
|
|
1188
|
+
const B = v.tables.blockTable.modelSpace.getIdAt(
|
|
1189
|
+
k
|
|
1174
1190
|
);
|
|
1175
|
-
|
|
1191
|
+
B.image = w.file, B.triggerModifiedEvent();
|
|
1176
1192
|
});
|
|
1177
1193
|
});
|
|
1178
1194
|
const h = Q.instance;
|
|
1179
|
-
n.forEach((w,
|
|
1180
|
-
|
|
1195
|
+
n.forEach((w, k) => {
|
|
1196
|
+
k && w && h.setFontMapping(k, w);
|
|
1181
1197
|
});
|
|
1182
1198
|
}, p = (v) => {
|
|
1183
1199
|
a.value && (a.value.click(), a.value.onchange = () => {
|
|
1184
1200
|
g(v);
|
|
1185
1201
|
});
|
|
1186
1202
|
}, g = (v) => {
|
|
1187
|
-
var w,
|
|
1188
|
-
const h = (
|
|
1203
|
+
var w, k;
|
|
1204
|
+
const h = (k = (w = a.value) == null ? void 0 : w.files) == null ? void 0 : k[0];
|
|
1189
1205
|
h && (v.file = h);
|
|
1190
1206
|
}, b = (v, h) => {
|
|
1191
1207
|
n.set(v, h);
|
|
1192
1208
|
};
|
|
1193
1209
|
return (v, h) => {
|
|
1194
|
-
const w =
|
|
1195
|
-
return u(),
|
|
1210
|
+
const w = C("el-col"), k = C("el-row"), B = C("el-option"), V = C("el-select"), y = C("el-tab-pane"), L = C("el-table-column"), D = C("el-button"), H = C("el-table"), P = C("el-tabs");
|
|
1211
|
+
return u(), z(Ve, {
|
|
1196
1212
|
title: d(e)("dialog.replacementDlg.title"),
|
|
1197
|
-
modelValue:
|
|
1198
|
-
"onUpdate:modelValue": h[1] || (h[1] = ($) =>
|
|
1213
|
+
modelValue: l.value,
|
|
1214
|
+
"onUpdate:modelValue": h[1] || (h[1] = ($) => l.value = $),
|
|
1199
1215
|
name: "ReplacementDlg",
|
|
1200
1216
|
onOk: s
|
|
1201
1217
|
}, {
|
|
1202
1218
|
default: f(() => [
|
|
1203
|
-
m(
|
|
1219
|
+
m(P, {
|
|
1204
1220
|
type: "card",
|
|
1205
|
-
modelValue:
|
|
1206
|
-
"onUpdate:modelValue": h[0] || (h[0] = ($) =>
|
|
1221
|
+
modelValue: o.value,
|
|
1222
|
+
"onUpdate:modelValue": h[0] || (h[0] = ($) => o.value = $)
|
|
1207
1223
|
}, {
|
|
1208
1224
|
default: f(() => [
|
|
1209
|
-
d(n).size > 0 ? (u(),
|
|
1225
|
+
d(n).size > 0 ? (u(), z(y, {
|
|
1210
1226
|
key: 0,
|
|
1211
1227
|
label: d(e)("dialog.replacementDlg.fontTabName"),
|
|
1212
1228
|
name: "font"
|
|
1213
1229
|
}, {
|
|
1214
1230
|
default: f(() => [
|
|
1215
1231
|
c("div", null, [
|
|
1216
|
-
m(
|
|
1232
|
+
m(k, null, {
|
|
1217
1233
|
default: f(() => [
|
|
1218
1234
|
m(w, { span: 12 }, {
|
|
1219
1235
|
default: f(() => [
|
|
@@ -1230,7 +1246,7 @@ const It = /* @__PURE__ */ S({
|
|
|
1230
1246
|
]),
|
|
1231
1247
|
_: 1
|
|
1232
1248
|
}),
|
|
1233
|
-
(u(!0), _(j, null, K(d(n), ([$, F]) => (u(),
|
|
1249
|
+
(u(!0), _(j, null, K(d(n), ([$, F]) => (u(), z(k, {
|
|
1234
1250
|
key: $,
|
|
1235
1251
|
style: { "margin-top": "10px" }
|
|
1236
1252
|
}, {
|
|
@@ -1250,8 +1266,8 @@ const It = /* @__PURE__ */ S({
|
|
|
1250
1266
|
style: { width: "100%" }
|
|
1251
1267
|
}, {
|
|
1252
1268
|
default: f(() => [
|
|
1253
|
-
(u(!0), _(j, null, K(r.value, (G,
|
|
1254
|
-
key:
|
|
1269
|
+
(u(!0), _(j, null, K(r.value, (G, J) => (u(), z(B, {
|
|
1270
|
+
key: J,
|
|
1255
1271
|
label: G,
|
|
1256
1272
|
value: G
|
|
1257
1273
|
}, null, 8, ["label", "value"]))), 128))
|
|
@@ -1267,32 +1283,32 @@ const It = /* @__PURE__ */ S({
|
|
|
1267
1283
|
])
|
|
1268
1284
|
]),
|
|
1269
1285
|
_: 1
|
|
1270
|
-
}, 8, ["label"])) :
|
|
1271
|
-
d(i).size > 0 ? (u(),
|
|
1286
|
+
}, 8, ["label"])) : R("", !0),
|
|
1287
|
+
d(i).size > 0 ? (u(), z(y, {
|
|
1272
1288
|
key: 1,
|
|
1273
1289
|
label: d(e)("dialog.replacementDlg.imageTabName"),
|
|
1274
1290
|
name: "image"
|
|
1275
1291
|
}, {
|
|
1276
1292
|
default: f(() => [
|
|
1277
|
-
m(
|
|
1293
|
+
m(H, {
|
|
1278
1294
|
data: Array.from(d(i).values()),
|
|
1279
1295
|
style: { width: "100%" },
|
|
1280
1296
|
"v-show": !1
|
|
1281
1297
|
}, {
|
|
1282
1298
|
default: f(() => [
|
|
1283
|
-
m(
|
|
1299
|
+
m(L, {
|
|
1284
1300
|
label: d(e)("dialog.replacementDlg.file"),
|
|
1285
1301
|
prop: "fileName",
|
|
1286
1302
|
"min-width": 0,
|
|
1287
1303
|
flex: 1
|
|
1288
1304
|
}, null, 8, ["label"]),
|
|
1289
|
-
m(
|
|
1305
|
+
m(L, {
|
|
1290
1306
|
label: d(e)("dialog.replacementDlg.replace"),
|
|
1291
1307
|
fixed: "right",
|
|
1292
1308
|
width: "60"
|
|
1293
1309
|
}, {
|
|
1294
1310
|
default: f(({ row: $ }) => [
|
|
1295
|
-
m(
|
|
1311
|
+
m(D, {
|
|
1296
1312
|
link: "",
|
|
1297
1313
|
type: "primary",
|
|
1298
1314
|
size: "small",
|
|
@@ -1320,7 +1336,7 @@ const It = /* @__PURE__ */ S({
|
|
|
1320
1336
|
}, null, 544)
|
|
1321
1337
|
]),
|
|
1322
1338
|
_: 1
|
|
1323
|
-
}, 8, ["label"])) :
|
|
1339
|
+
}, 8, ["label"])) : R("", !0)
|
|
1324
1340
|
]),
|
|
1325
1341
|
_: 1
|
|
1326
1342
|
}, 8, ["modelValue"])
|
|
@@ -1343,7 +1359,7 @@ function Wt(t, e) {
|
|
|
1343
1359
|
}, null, -1)
|
|
1344
1360
|
]));
|
|
1345
1361
|
}
|
|
1346
|
-
const
|
|
1362
|
+
const Ce = { render: Wt }, Ut = {
|
|
1347
1363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1348
1364
|
width: "1em",
|
|
1349
1365
|
height: "1em",
|
|
@@ -1550,18 +1566,18 @@ function In(t, e) {
|
|
|
1550
1566
|
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1551
1567
|
]));
|
|
1552
1568
|
}
|
|
1553
|
-
const
|
|
1569
|
+
const Pn = { render: In }, On = {
|
|
1554
1570
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1555
1571
|
width: "1em",
|
|
1556
1572
|
height: "1em",
|
|
1557
1573
|
viewBox: "0 0 20 20"
|
|
1558
1574
|
};
|
|
1559
|
-
function
|
|
1575
|
+
function Rn(t, e) {
|
|
1560
1576
|
return u(), _("svg", On, e[0] || (e[0] = [
|
|
1561
1577
|
c("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1562
1578
|
]));
|
|
1563
1579
|
}
|
|
1564
|
-
const Hn = { render:
|
|
1580
|
+
const Hn = { render: Rn }, Gn = {
|
|
1565
1581
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1566
1582
|
width: "1em",
|
|
1567
1583
|
height: "1em",
|
|
@@ -1668,7 +1684,7 @@ function mo(t, e) {
|
|
|
1668
1684
|
const po = { render: mo }, fo = /* @__PURE__ */ S({
|
|
1669
1685
|
__name: "MlPointStyleDlg",
|
|
1670
1686
|
setup(t) {
|
|
1671
|
-
const { t: e } =
|
|
1687
|
+
const { t: e } = O(), n = Ft(E.instance), i = x(!0), l = x(0), o = [
|
|
1672
1688
|
[
|
|
1673
1689
|
{ id: 0, icon: cn },
|
|
1674
1690
|
{ id: 1, icon: mn },
|
|
@@ -1684,7 +1700,7 @@ const po = { render: mo }, fo = /* @__PURE__ */ S({
|
|
|
1684
1700
|
{ id: 36, icon: Fn }
|
|
1685
1701
|
],
|
|
1686
1702
|
[
|
|
1687
|
-
{ id: 64, icon:
|
|
1703
|
+
{ id: 64, icon: Pn },
|
|
1688
1704
|
{ id: 65, icon: Hn },
|
|
1689
1705
|
{ id: 66, icon: Un },
|
|
1690
1706
|
{ id: 67, icon: Yn },
|
|
@@ -1698,44 +1714,44 @@ const po = { render: mo }, fo = /* @__PURE__ */ S({
|
|
|
1698
1714
|
{ id: 100, icon: po }
|
|
1699
1715
|
]
|
|
1700
1716
|
], a = () => {
|
|
1701
|
-
n.pdmode && (
|
|
1717
|
+
n.pdmode && (l.value = n.pdmode);
|
|
1702
1718
|
};
|
|
1703
1719
|
a();
|
|
1704
|
-
const r = (b, v) =>
|
|
1705
|
-
|
|
1720
|
+
const r = (b, v) => o[b][v].id == l.value ? "primary" : null, s = (b, v) => {
|
|
1721
|
+
l.value = o[b][v].id;
|
|
1706
1722
|
}, p = () => {
|
|
1707
|
-
E.instance.curDocument.database.pdmode =
|
|
1723
|
+
E.instance.curDocument.database.pdmode = l.value;
|
|
1708
1724
|
}, g = () => {
|
|
1709
1725
|
a();
|
|
1710
1726
|
};
|
|
1711
1727
|
return (b, v) => {
|
|
1712
|
-
const h =
|
|
1713
|
-
return u(),
|
|
1728
|
+
const h = C("el-button"), w = C("el-col"), k = C("el-row");
|
|
1729
|
+
return u(), z(Ve, {
|
|
1714
1730
|
title: d(e)("dialog.pointStyleDlg.title"),
|
|
1715
1731
|
width: 400,
|
|
1716
1732
|
modelValue: i.value,
|
|
1717
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
1733
|
+
"onUpdate:modelValue": v[0] || (v[0] = (B) => i.value = B),
|
|
1718
1734
|
name: "PointStyleDlg",
|
|
1719
1735
|
onOk: p,
|
|
1720
1736
|
onCancel: g
|
|
1721
1737
|
}, {
|
|
1722
1738
|
default: f(() => [
|
|
1723
|
-
(u(), _(j, null, K(
|
|
1739
|
+
(u(), _(j, null, K(o, (B, V) => m(k, {
|
|
1724
1740
|
key: V,
|
|
1725
1741
|
style: { "margin-top": "10px" },
|
|
1726
1742
|
gutter: 6,
|
|
1727
1743
|
justify: "space-between"
|
|
1728
1744
|
}, {
|
|
1729
1745
|
default: f(() => [
|
|
1730
|
-
(u(!0), _(j, null, K(
|
|
1731
|
-
key:
|
|
1746
|
+
(u(!0), _(j, null, K(B, (y, L) => (u(), z(w, {
|
|
1747
|
+
key: L,
|
|
1732
1748
|
span: 4
|
|
1733
1749
|
}, {
|
|
1734
1750
|
default: f(() => [
|
|
1735
1751
|
m(h, {
|
|
1736
1752
|
icon: y.icon,
|
|
1737
|
-
type: r(V,
|
|
1738
|
-
onClick: (
|
|
1753
|
+
type: r(V, L),
|
|
1754
|
+
onClick: (D) => s(V, L),
|
|
1739
1755
|
style: { "font-size": "25px" }
|
|
1740
1756
|
}, null, 8, ["icon", "type", "onClick"])
|
|
1741
1757
|
]),
|
|
@@ -1774,7 +1790,7 @@ const vo = {
|
|
|
1774
1790
|
function _o(t, e) {
|
|
1775
1791
|
return u(), _("svg", vo, [...ho]);
|
|
1776
1792
|
}
|
|
1777
|
-
const
|
|
1793
|
+
const Se = { render: _o }, wo = {
|
|
1778
1794
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1779
1795
|
width: "1em",
|
|
1780
1796
|
height: "1em",
|
|
@@ -1788,34 +1804,34 @@ const ze = { render: _o }, wo = {
|
|
|
1788
1804
|
function xo(t, e) {
|
|
1789
1805
|
return u(), _("svg", wo, [...bo]);
|
|
1790
1806
|
}
|
|
1791
|
-
const
|
|
1807
|
+
const Le = { render: xo }, ko = /* @__PURE__ */ S({
|
|
1792
1808
|
__name: "MlCollapse",
|
|
1793
|
-
props: /* @__PURE__ */
|
|
1809
|
+
props: /* @__PURE__ */ ee({
|
|
1794
1810
|
size: { default: 18 },
|
|
1795
1811
|
reverse: { type: Boolean, default: !1 }
|
|
1796
1812
|
}, {
|
|
1797
1813
|
modelValue: { default: !0 },
|
|
1798
1814
|
modelModifiers: {}
|
|
1799
1815
|
}),
|
|
1800
|
-
emits: /* @__PURE__ */
|
|
1816
|
+
emits: /* @__PURE__ */ ee(["change"], ["update:modelValue"]),
|
|
1801
1817
|
setup(t, { emit: e }) {
|
|
1802
|
-
const n = t, i = _e(t, "modelValue"),
|
|
1803
|
-
|
|
1818
|
+
const n = t, i = _e(t, "modelValue"), l = e, o = M(() => n.reverse ? i.value ? Se : Le : i.value ? Le : Se), a = M(() => `${n.size}px`), r = () => {
|
|
1819
|
+
l("change", i.value), i.value = !i.value;
|
|
1804
1820
|
};
|
|
1805
1821
|
return (s, p) => {
|
|
1806
1822
|
const g = de;
|
|
1807
|
-
return u(),
|
|
1823
|
+
return u(), z(g, {
|
|
1808
1824
|
size: a.value,
|
|
1809
1825
|
onClick: r
|
|
1810
1826
|
}, {
|
|
1811
1827
|
default: f(() => [
|
|
1812
|
-
(u(),
|
|
1828
|
+
(u(), z(ue(o.value)))
|
|
1813
1829
|
]),
|
|
1814
1830
|
_: 1
|
|
1815
1831
|
}, 8, ["size"]);
|
|
1816
1832
|
};
|
|
1817
1833
|
}
|
|
1818
|
-
}), Mo = (t) => (
|
|
1834
|
+
}), Mo = (t) => (Te("data-v-3fc33b5d"), t = t(), $e(), t), Co = /* @__PURE__ */ Mo(() => /* @__PURE__ */ c("svg", {
|
|
1819
1835
|
preserveAspectRatio: "xMidYMid meet",
|
|
1820
1836
|
viewBox: "0 0 24 24",
|
|
1821
1837
|
width: "1.2em",
|
|
@@ -1837,16 +1853,16 @@ const Be = { render: xo }, ko = /* @__PURE__ */ S({
|
|
|
1837
1853
|
click: null
|
|
1838
1854
|
},
|
|
1839
1855
|
setup(t, { emit: e }) {
|
|
1840
|
-
const n = t, i = e,
|
|
1856
|
+
const n = t, i = e, l = M(() => n.items.filter((a) => a.name !== n.current)), o = (a) => {
|
|
1841
1857
|
i("click", a);
|
|
1842
1858
|
};
|
|
1843
1859
|
return (a, r) => {
|
|
1844
|
-
const s = de, p =
|
|
1845
|
-
return u(),
|
|
1860
|
+
const s = de, p = rt, g = st, b = it;
|
|
1861
|
+
return u(), z(b, { onCommand: o }, {
|
|
1846
1862
|
dropdown: f(() => [
|
|
1847
1863
|
m(g, null, {
|
|
1848
1864
|
default: f(() => [
|
|
1849
|
-
(u(!0), _(j, null, K(
|
|
1865
|
+
(u(!0), _(j, null, K(l.value, (v) => (u(), z(p, {
|
|
1850
1866
|
key: v.text,
|
|
1851
1867
|
command: v.name
|
|
1852
1868
|
}, {
|
|
@@ -1876,8 +1892,8 @@ const Be = { render: xo }, ko = /* @__PURE__ */ S({
|
|
|
1876
1892
|
}
|
|
1877
1893
|
}), fe = (t, e) => {
|
|
1878
1894
|
const n = t.__vccOpts || t;
|
|
1879
|
-
for (const [i,
|
|
1880
|
-
n[i] =
|
|
1895
|
+
for (const [i, l] of e)
|
|
1896
|
+
n[i] = l;
|
|
1881
1897
|
return n;
|
|
1882
1898
|
}, Lo = /* @__PURE__ */ fe(So, [["__scopeId", "data-v-3fc33b5d"]]), zo = '<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__ */ S({
|
|
1883
1899
|
__name: "MlLanguage",
|
|
@@ -1889,14 +1905,14 @@ const Be = { render: xo }, ko = /* @__PURE__ */ S({
|
|
|
1889
1905
|
click: null
|
|
1890
1906
|
},
|
|
1891
1907
|
setup(t, { emit: e }) {
|
|
1892
|
-
const n = t, i = e,
|
|
1893
|
-
i("click",
|
|
1908
|
+
const n = t, i = e, l = (o) => {
|
|
1909
|
+
i("click", o);
|
|
1894
1910
|
};
|
|
1895
|
-
return (
|
|
1911
|
+
return (o, a) => (u(), z(Lo, {
|
|
1896
1912
|
icon: zo,
|
|
1897
1913
|
items: n.languages,
|
|
1898
1914
|
current: n.current,
|
|
1899
|
-
onClick:
|
|
1915
|
+
onClick: l
|
|
1900
1916
|
}, null, 8, ["items", "current"]));
|
|
1901
1917
|
}
|
|
1902
1918
|
}), Do = {}, To = { class: "ml-status-bar" }, $o = { class: "ml-status-bar-left" }, Eo = { class: "ml-status-bar-right" };
|
|
@@ -1924,7 +1940,7 @@ const Vo = /* @__PURE__ */ fe(Do, [["render", Ao], ["__scopeId", "data-v-d6a59cf
|
|
|
1924
1940
|
click: null
|
|
1925
1941
|
},
|
|
1926
1942
|
setup(t, { emit: e }) {
|
|
1927
|
-
const n = t, i = e,
|
|
1943
|
+
const n = t, i = e, l = M(() => n.direction === "vertical" ? "ml-vertical-toolbar-button-group" : "ml-horizontal-toolbar-button-group"), o = M(() => n.size === "small" ? 20 : 30), a = M(() => {
|
|
1928
1944
|
switch (n.size) {
|
|
1929
1945
|
case "small":
|
|
1930
1946
|
return 30;
|
|
@@ -1932,36 +1948,36 @@ const Vo = /* @__PURE__ */ fe(Do, [["render", Ao], ["__scopeId", "data-v-d6a59cf
|
|
|
1932
1948
|
return 50;
|
|
1933
1949
|
}
|
|
1934
1950
|
return 70;
|
|
1935
|
-
}), r = (g) => g.description ? g.description : g.text, s =
|
|
1951
|
+
}), r = (g) => g.description ? g.description : g.text, s = M(() => n.size === "large"), p = (g) => {
|
|
1936
1952
|
i("click", g);
|
|
1937
1953
|
};
|
|
1938
1954
|
return (g, b) => {
|
|
1939
|
-
const v = de, h =
|
|
1940
|
-
return u(),
|
|
1941
|
-
class: we(
|
|
1955
|
+
const v = de, h = dt, w = ut, k = ct;
|
|
1956
|
+
return u(), z(k, {
|
|
1957
|
+
class: we(l.value)
|
|
1942
1958
|
}, {
|
|
1943
1959
|
default: f(() => [
|
|
1944
|
-
(u(!0), _(j, null, K(g.items, (
|
|
1945
|
-
key:
|
|
1946
|
-
content: r(
|
|
1960
|
+
(u(!0), _(j, null, K(g.items, (B, V) => (u(), z(w, {
|
|
1961
|
+
key: B.text,
|
|
1962
|
+
content: r(B),
|
|
1947
1963
|
"hide-after": 0
|
|
1948
1964
|
}, {
|
|
1949
1965
|
default: f(() => [
|
|
1950
|
-
(u(),
|
|
1966
|
+
(u(), z(h, {
|
|
1951
1967
|
class: "ml-toolbar-button",
|
|
1952
1968
|
style: ge({ width: a.value + "px", height: a.value + "px" }),
|
|
1953
1969
|
key: V,
|
|
1954
|
-
onClick: (y) => p(
|
|
1970
|
+
onClick: (y) => p(B.command)
|
|
1955
1971
|
}, {
|
|
1956
1972
|
default: f(() => [
|
|
1957
1973
|
c("div", null, [
|
|
1958
|
-
m(v, { size:
|
|
1974
|
+
m(v, { size: o.value }, {
|
|
1959
1975
|
default: f(() => [
|
|
1960
|
-
(u(),
|
|
1976
|
+
(u(), z(ue(B.icon)))
|
|
1961
1977
|
]),
|
|
1962
1978
|
_: 2
|
|
1963
1979
|
}, 1032, ["size"]),
|
|
1964
|
-
s.value ? (u(), _("div", Fo, T(
|
|
1980
|
+
s.value ? (u(), _("div", Fo, T(B.text), 1)) : R("", !0)
|
|
1965
1981
|
])
|
|
1966
1982
|
]),
|
|
1967
1983
|
_: 2
|
|
@@ -1974,24 +1990,24 @@ const Vo = /* @__PURE__ */ fe(Do, [["render", Ao], ["__scopeId", "data-v-d6a59cf
|
|
|
1974
1990
|
}, 8, ["class"]);
|
|
1975
1991
|
};
|
|
1976
1992
|
}
|
|
1977
|
-
}), Io = /* @__PURE__ */ fe(No, [["__scopeId", "data-v-5261c686"]]),
|
|
1978
|
-
function
|
|
1979
|
-
const i =
|
|
1993
|
+
}), Io = /* @__PURE__ */ fe(No, [["__scopeId", "data-v-5261c686"]]), ze = 20;
|
|
1994
|
+
function Po(t, e, n) {
|
|
1995
|
+
const i = x(!1), l = (s) => {
|
|
1980
1996
|
if (n.value && t.value) {
|
|
1981
1997
|
const p = t.value.getBoundingClientRect(), g = s.clientX < p.left || s.clientX > p.right || s.clientY < p.top || s.clientY > p.bottom;
|
|
1982
1998
|
i.value = !g;
|
|
1983
1999
|
}
|
|
1984
|
-
},
|
|
2000
|
+
}, o = () => {
|
|
1985
2001
|
n.value && (i.value = !0);
|
|
1986
2002
|
}, a = () => {
|
|
1987
|
-
e.value && e.value.addEventListener("mousemove",
|
|
2003
|
+
e.value && e.value.addEventListener("mousemove", o), t.value && t.value.addEventListener("mousemove", o);
|
|
1988
2004
|
}, r = () => {
|
|
1989
|
-
e.value && e.value.removeEventListener("mousemove",
|
|
2005
|
+
e.value && e.value.removeEventListener("mousemove", o), t.value && t.value.removeEventListener("mousemove", o);
|
|
1990
2006
|
};
|
|
1991
2007
|
return U(() => {
|
|
1992
|
-
window.addEventListener("mousemove",
|
|
1993
|
-
}),
|
|
1994
|
-
window.removeEventListener("mousemove",
|
|
2008
|
+
window.addEventListener("mousemove", l);
|
|
2009
|
+
}), ne(() => {
|
|
2010
|
+
window.removeEventListener("mousemove", l);
|
|
1995
2011
|
}), A(n, (s) => {
|
|
1996
2012
|
s && (i.value = !1);
|
|
1997
2013
|
}), A(t, (s) => {
|
|
@@ -1999,16 +2015,16 @@ function Ro(t, e, n) {
|
|
|
1999
2015
|
}), { autoOpened: i };
|
|
2000
2016
|
}
|
|
2001
2017
|
function Oo(t, e, n) {
|
|
2002
|
-
const i =
|
|
2003
|
-
x:
|
|
2004
|
-
y:
|
|
2018
|
+
const i = x(!1), l = x(null), o = x(null), a = { x: 0, y: 0 }, r = M(() => l.value == null || o.value == null ? { x: 0, y: 0 } : {
|
|
2019
|
+
x: l.value.x - o.value.x,
|
|
2020
|
+
y: l.value.y - o.value.y
|
|
2005
2021
|
}), s = () => {
|
|
2006
2022
|
if (t.value) {
|
|
2007
2023
|
const w = t.value.getBoundingClientRect();
|
|
2008
|
-
|
|
2024
|
+
o.value = {
|
|
2009
2025
|
x: w.left,
|
|
2010
2026
|
y: w.top
|
|
2011
|
-
},
|
|
2027
|
+
}, l.value = {
|
|
2012
2028
|
x: w.left,
|
|
2013
2029
|
y: w.top
|
|
2014
2030
|
};
|
|
@@ -2020,49 +2036,49 @@ function Oo(t, e, n) {
|
|
|
2020
2036
|
}, b = (w) => {
|
|
2021
2037
|
if (t.value != null) {
|
|
2022
2038
|
if (e && e.value) {
|
|
2023
|
-
const
|
|
2024
|
-
if (w.clientX <
|
|
2039
|
+
const k = e.value.getBoundingClientRect();
|
|
2040
|
+
if (w.clientX < k.left || w.clientX > k.right || w.clientY < k.top || w.clientY > k.bottom) return;
|
|
2025
2041
|
}
|
|
2026
2042
|
i.value = !0, a.x = w.clientX, a.y = w.clientY, s(), document.addEventListener("mousemove", v), document.addEventListener("mouseup", h);
|
|
2027
2043
|
}
|
|
2028
2044
|
}, v = (w) => {
|
|
2029
|
-
if (i.value &&
|
|
2030
|
-
const
|
|
2031
|
-
|
|
2045
|
+
if (i.value && o.value && l.value) {
|
|
2046
|
+
const k = window.innerWidth, B = window.innerHeight, V = t.value, y = V.getBoundingClientRect(), L = y.width, D = y.height, H = o.value.x + (w.clientX - a.x), P = o.value.y + (w.clientY - a.y);
|
|
2047
|
+
l.value.x = Math.max(
|
|
2032
2048
|
n ? n.value.offset.value.left : 0,
|
|
2033
|
-
|
|
2049
|
+
H
|
|
2034
2050
|
);
|
|
2035
|
-
const $ =
|
|
2036
|
-
|
|
2051
|
+
const $ = k - L;
|
|
2052
|
+
l.value.x = Math.min(
|
|
2037
2053
|
n ? $ - n.value.offset.value.right : $,
|
|
2038
|
-
|
|
2039
|
-
),
|
|
2054
|
+
l.value.x
|
|
2055
|
+
), l.value.y = Math.max(
|
|
2040
2056
|
n ? n.value.offset.value.top : 0,
|
|
2041
|
-
Math.min(
|
|
2057
|
+
Math.min(P, B - D)
|
|
2042
2058
|
);
|
|
2043
|
-
const F =
|
|
2044
|
-
|
|
2059
|
+
const F = B - D;
|
|
2060
|
+
l.value.y = Math.min(
|
|
2045
2061
|
n ? F - n.value.offset.value.bottom : F,
|
|
2046
|
-
|
|
2047
|
-
), V.style.left =
|
|
2062
|
+
l.value.y
|
|
2063
|
+
), V.style.left = l.value.x + "px", V.style.top = l.value.y + "px";
|
|
2048
2064
|
}
|
|
2049
2065
|
}, h = () => {
|
|
2050
2066
|
i.value = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", h);
|
|
2051
2067
|
};
|
|
2052
2068
|
return U(() => {
|
|
2053
2069
|
t.value && (s(), p());
|
|
2054
|
-
}),
|
|
2070
|
+
}), ne(() => {
|
|
2055
2071
|
t.value && t.value.removeEventListener("mousedown", b);
|
|
2056
2072
|
}), A(t, (w) => {
|
|
2057
2073
|
w ? (s(), p()) : g();
|
|
2058
2074
|
}), {
|
|
2059
2075
|
isDragging: i,
|
|
2060
2076
|
movement: r,
|
|
2061
|
-
position:
|
|
2077
|
+
position: l
|
|
2062
2078
|
};
|
|
2063
2079
|
}
|
|
2064
|
-
function
|
|
2065
|
-
const i =
|
|
2080
|
+
function Ro(t, e, n) {
|
|
2081
|
+
const i = x(!1), l = x("left"), { isDragging: o, movement: a, position: r } = Oo(
|
|
2066
2082
|
t,
|
|
2067
2083
|
e,
|
|
2068
2084
|
n
|
|
@@ -2070,178 +2086,178 @@ function Po(t, e, n) {
|
|
|
2070
2086
|
return A(a, (s) => {
|
|
2071
2087
|
if (s && t.value) {
|
|
2072
2088
|
const p = t.value.getBoundingClientRect();
|
|
2073
|
-
p.left <= n.value.offset.value.left ? (
|
|
2089
|
+
p.left <= n.value.offset.value.left ? (l.value = "left", i.value = !0) : window.innerWidth - p.left - p.width <= n.value.offset.value.right ? (l.value = "right", i.value = !0) : i.value = !1;
|
|
2074
2090
|
}
|
|
2075
2091
|
}), {
|
|
2076
2092
|
docked: i,
|
|
2077
|
-
orientation:
|
|
2078
|
-
isDragging:
|
|
2093
|
+
orientation: l,
|
|
2094
|
+
isDragging: o,
|
|
2079
2095
|
movement: a,
|
|
2080
2096
|
position: r
|
|
2081
2097
|
};
|
|
2082
2098
|
}
|
|
2083
2099
|
function Ho(t, e, n, i) {
|
|
2084
|
-
const
|
|
2100
|
+
const l = x(null), o = x(null), a = x(null), r = x(null);
|
|
2085
2101
|
return A(t, (s, p) => {
|
|
2086
|
-
o.value = p;
|
|
2087
|
-
}), A(e, (s, p) => {
|
|
2088
2102
|
l.value = p;
|
|
2103
|
+
}), A(e, (s, p) => {
|
|
2104
|
+
o.value = p;
|
|
2089
2105
|
}), A(n, (s, p) => {
|
|
2090
2106
|
a.value = p;
|
|
2091
2107
|
}), A(i, (s, p) => {
|
|
2092
2108
|
r.value = p;
|
|
2093
2109
|
}), {
|
|
2094
|
-
lastLeft:
|
|
2095
|
-
lastTop:
|
|
2110
|
+
lastLeft: l,
|
|
2111
|
+
lastTop: o,
|
|
2096
2112
|
lastWidth: a,
|
|
2097
2113
|
lastHeight: r
|
|
2098
2114
|
};
|
|
2099
2115
|
}
|
|
2100
2116
|
function Go(t, e, n, i) {
|
|
2101
|
-
const
|
|
2117
|
+
const l = x(t.value.width), o = x(t.value.left), a = M(() => t.value.width), r = M(() => t.value.left), s = M(() => n.value ? n.value.x : null);
|
|
2102
2118
|
return A([a, r], ([p, g]) => {
|
|
2103
|
-
(
|
|
2119
|
+
(l.value == null || o.value == null || e.value) && (l.value = p, o.value = g);
|
|
2104
2120
|
}), A(s, (p) => {
|
|
2105
|
-
i.value && n.value && (
|
|
2106
|
-
}), { left:
|
|
2121
|
+
i.value && n.value && (o.value = p);
|
|
2122
|
+
}), { left: o, width: l };
|
|
2107
2123
|
}
|
|
2108
|
-
function Wo(t, e =
|
|
2109
|
-
const n =
|
|
2124
|
+
function Wo(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
2125
|
+
const n = x({});
|
|
2110
2126
|
let i = !1;
|
|
2111
|
-
const
|
|
2127
|
+
const l = () => {
|
|
2112
2128
|
if (!i && t.value) {
|
|
2113
|
-
const
|
|
2114
|
-
n.value.left = Math.max(
|
|
2129
|
+
const o = t.value.getBoundingClientRect();
|
|
2130
|
+
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;
|
|
2115
2131
|
}
|
|
2116
2132
|
};
|
|
2117
2133
|
return U(() => {
|
|
2118
|
-
t.value &&
|
|
2119
|
-
}), A(t, (
|
|
2120
|
-
|
|
2134
|
+
t.value && l();
|
|
2135
|
+
}), A(t, (o) => {
|
|
2136
|
+
o && l();
|
|
2121
2137
|
}), {
|
|
2122
2138
|
isIntialized: i,
|
|
2123
2139
|
initialRect: n
|
|
2124
2140
|
};
|
|
2125
2141
|
}
|
|
2126
|
-
function Uo(t, e =
|
|
2127
|
-
const { initialRect:
|
|
2142
|
+
function Uo(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom: 0 }), l = { width: 20, height: 40 }) {
|
|
2143
|
+
const { initialRect: o } = Wo(t, i), a = x(!1);
|
|
2128
2144
|
let r = 0, s = 0, p = 0, g = 0, b = 0;
|
|
2129
|
-
const v = 5, h =
|
|
2145
|
+
const v = 5, h = x(null), w = (L) => {
|
|
2130
2146
|
if (!(!t.value || e.value))
|
|
2131
2147
|
if (a.value) {
|
|
2132
|
-
const
|
|
2148
|
+
const D = L.clientX - g, H = L.clientY - b;
|
|
2133
2149
|
if (h.value === "left" || h.value === "left-bottom-corner") {
|
|
2134
|
-
const
|
|
2135
|
-
|
|
2150
|
+
const P = s - D;
|
|
2151
|
+
P > l.width && (o.value.width = P, o.value.left = r + D, t.value.style.left = o.value.left + "px", t.value.style.width = o.value.width + "px");
|
|
2136
2152
|
}
|
|
2137
2153
|
if (h.value === "right" || h.value === "right-bottom-corner") {
|
|
2138
|
-
const
|
|
2139
|
-
|
|
2154
|
+
const P = s + D;
|
|
2155
|
+
P > l.width && (o.value.width = P, t.value.style.width = o.value.width + "px");
|
|
2140
2156
|
}
|
|
2141
2157
|
if (h.value === "bottom" || h.value === "left-bottom-corner" || h.value === "right-bottom-corner") {
|
|
2142
|
-
const
|
|
2143
|
-
|
|
2158
|
+
const P = p + H;
|
|
2159
|
+
P > l.height && (o.value.height = P, t.value.style.height = o.value.height + "px");
|
|
2144
2160
|
}
|
|
2145
2161
|
} else {
|
|
2146
|
-
const
|
|
2162
|
+
const D = t.value.getBoundingClientRect(), H = L.clientX - D.left, P = L.clientY - D.top, $ = H <= v, F = H >= D.width - v, G = P >= D.height - v;
|
|
2147
2163
|
$ && G && n.value ? (t.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : F && G && !n.value ? (t.value.style.cursor = "nwse-resize", h.value = "right-bottom-corner") : $ && n.value ? (t.value.style.cursor = "ew-resize", h.value = "left") : F && !n.value ? (t.value.style.cursor = "ew-resize", h.value = "right") : G ? (t.value.style.cursor = "ns-resize", h.value = "bottom") : (t.value.style.cursor = "", h.value = null);
|
|
2148
2164
|
}
|
|
2149
|
-
},
|
|
2165
|
+
}, k = (L) => {
|
|
2150
2166
|
if (!t.value || !h.value) return;
|
|
2151
|
-
const
|
|
2152
|
-
g =
|
|
2153
|
-
},
|
|
2154
|
-
a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup",
|
|
2167
|
+
const D = t.value.getBoundingClientRect();
|
|
2168
|
+
g = L.clientX, b = L.clientY, s = D.width, p = D.height, r = D.left, o.value.width = s, o.value.height = p, o.value.left = D.left, o.value.top = D.top, a.value = !0, document.addEventListener("mousemove", w), document.addEventListener("mouseup", B);
|
|
2169
|
+
}, B = () => {
|
|
2170
|
+
a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", w), document.removeEventListener("mouseup", B);
|
|
2155
2171
|
}, V = () => {
|
|
2156
|
-
t.value && (t.value.removeEventListener("mousedown",
|
|
2172
|
+
t.value && (t.value.removeEventListener("mousedown", k), t.value.removeEventListener("mousemove", w)), document.removeEventListener("mouseup", B);
|
|
2157
2173
|
}, y = () => {
|
|
2158
|
-
t.value && (t.value.addEventListener("mousedown",
|
|
2174
|
+
t.value && (t.value.addEventListener("mousedown", k), t.value.addEventListener("mousemove", w));
|
|
2159
2175
|
};
|
|
2160
2176
|
return U(() => {
|
|
2161
2177
|
t.value && y();
|
|
2162
|
-
}),
|
|
2178
|
+
}), Ee(() => {
|
|
2163
2179
|
V();
|
|
2164
|
-
}), A(t, (
|
|
2165
|
-
|
|
2166
|
-
}), { rect:
|
|
2180
|
+
}), A(t, (L) => {
|
|
2181
|
+
L ? y() : V();
|
|
2182
|
+
}), { rect: o, isResizing: a };
|
|
2167
2183
|
}
|
|
2168
2184
|
function qo(t, e, n, i) {
|
|
2169
|
-
const
|
|
2185
|
+
const l = () => {
|
|
2170
2186
|
if (t.value) {
|
|
2171
2187
|
const s = t.value;
|
|
2172
2188
|
e.value ? s.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : s.style.transition = "width 0.3s ease";
|
|
2173
2189
|
}
|
|
2174
|
-
},
|
|
2190
|
+
}, o = () => {
|
|
2175
2191
|
t.value && (t.value.style.transition = "");
|
|
2176
2192
|
}, a = () => {
|
|
2177
|
-
t.value && t.value.removeEventListener("transitionend",
|
|
2193
|
+
t.value && t.value.removeEventListener("transitionend", o);
|
|
2178
2194
|
}, r = () => {
|
|
2179
|
-
t.value && t.value.addEventListener("transitionend",
|
|
2195
|
+
t.value && t.value.addEventListener("transitionend", o);
|
|
2180
2196
|
};
|
|
2181
2197
|
U(() => {
|
|
2182
|
-
t.value && t.value.addEventListener("transitionend",
|
|
2183
|
-
}),
|
|
2184
|
-
t.value && t.value.removeEventListener("transitionend",
|
|
2198
|
+
t.value && t.value.addEventListener("transitionend", o);
|
|
2199
|
+
}), Ee(() => {
|
|
2200
|
+
t.value && t.value.removeEventListener("transitionend", o);
|
|
2185
2201
|
}), A(t, (s) => {
|
|
2186
2202
|
s ? r() : a();
|
|
2187
2203
|
}), A(n, () => {
|
|
2188
|
-
|
|
2204
|
+
l();
|
|
2189
2205
|
}), A(i, () => {
|
|
2190
|
-
|
|
2206
|
+
l();
|
|
2191
2207
|
});
|
|
2192
2208
|
}
|
|
2193
2209
|
function jo(t, e, n, i) {
|
|
2194
|
-
const
|
|
2210
|
+
const l = x(window.innerWidth), o = x(window.innerHeight), { docked: a, orientation: r, movement: s, position: p, isDragging: g } = Ro(
|
|
2195
2211
|
t,
|
|
2196
2212
|
e,
|
|
2197
2213
|
i
|
|
2198
|
-
), b =
|
|
2214
|
+
), b = M(() => r.value === "right"), { rect: v, isResizing: h } = Uo(
|
|
2199
2215
|
t,
|
|
2200
2216
|
n,
|
|
2201
2217
|
b,
|
|
2202
2218
|
i.value.offset
|
|
2203
|
-
), { width: w, left:
|
|
2219
|
+
), { width: w, left: k } = Go(
|
|
2204
2220
|
v,
|
|
2205
2221
|
h,
|
|
2206
2222
|
p,
|
|
2207
2223
|
g
|
|
2208
|
-
), { lastTop:
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
), { autoOpened: y } =
|
|
2224
|
+
), { lastTop: B, lastHeight: V } = Ho(
|
|
2225
|
+
M(() => v.value.left),
|
|
2226
|
+
M(() => v.value.top),
|
|
2227
|
+
M(() => v.value.width),
|
|
2228
|
+
M(() => v.value.height)
|
|
2229
|
+
), { autoOpened: y } = Po(t, e, n);
|
|
2214
2230
|
qo(t, b, n, y);
|
|
2215
|
-
const
|
|
2231
|
+
const L = ($) => {
|
|
2216
2232
|
if (t.value) {
|
|
2217
2233
|
const F = t.value.getBoundingClientRect(), G = F.left + $;
|
|
2218
2234
|
if (b.value) {
|
|
2219
2235
|
v.value.left = G;
|
|
2220
|
-
const
|
|
2221
|
-
F.left <= 0 &&
|
|
2236
|
+
const J = window.innerWidth - F.width - F.left;
|
|
2237
|
+
F.left <= 0 && J >= 0 && $ < 0 && (v.value.left = Math.max(0, G)), window.innerWidth - F.width <= 0 && (v.value.left = window.innerWidth - F.width);
|
|
2222
2238
|
} else
|
|
2223
2239
|
F.left + F.width >= window.innerWidth && $ < 0 && (v.value.left = Math.max(0, G));
|
|
2224
2240
|
}
|
|
2225
|
-
},
|
|
2226
|
-
const $ = window.innerWidth -
|
|
2227
|
-
|
|
2241
|
+
}, D = () => {
|
|
2242
|
+
const $ = window.innerWidth - l.value;
|
|
2243
|
+
l.value = window.innerWidth, o.value = window.innerHeight, L($);
|
|
2228
2244
|
};
|
|
2229
2245
|
U(() => {
|
|
2230
|
-
window.addEventListener("resize",
|
|
2231
|
-
}),
|
|
2232
|
-
window.removeEventListener("resize",
|
|
2246
|
+
window.addEventListener("resize", D);
|
|
2247
|
+
}), ne(() => {
|
|
2248
|
+
window.removeEventListener("resize", D);
|
|
2233
2249
|
});
|
|
2234
|
-
const
|
|
2235
|
-
$ ? (v.value.width =
|
|
2236
|
-
},
|
|
2237
|
-
a.value ? (v.value.top = i.value.offset.value.top, v.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (v.value.top =
|
|
2250
|
+
const H = ($) => {
|
|
2251
|
+
$ ? (v.value.width = ze, b.value && k.value && w.value && (v.value.left = k.value + w.value - ze)) : (v.value.width = w.value, b.value && k.value && w.value && (v.value.left = k.value));
|
|
2252
|
+
}, P = () => {
|
|
2253
|
+
a.value ? (v.value.top = i.value.offset.value.top, v.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (v.value.top = B.value, v.value.height = V.value);
|
|
2238
2254
|
};
|
|
2239
2255
|
return A(a, () => {
|
|
2240
|
-
|
|
2256
|
+
P();
|
|
2241
2257
|
}), A(n, ($) => {
|
|
2242
|
-
|
|
2258
|
+
H($);
|
|
2243
2259
|
}), A(y, ($) => {
|
|
2244
|
-
n.value && !g.value &&
|
|
2260
|
+
n.value && !g.value && H(!$);
|
|
2245
2261
|
}), A(s, ($) => {
|
|
2246
2262
|
if ($ && t.value) {
|
|
2247
2263
|
const F = t.value.getBoundingClientRect();
|
|
@@ -2249,7 +2265,7 @@ function jo(t, e, n, i) {
|
|
|
2249
2265
|
}
|
|
2250
2266
|
}), { rect: v, orientation: r, reversed: b };
|
|
2251
2267
|
}
|
|
2252
|
-
const Yo = (t) => (
|
|
2268
|
+
const Yo = (t) => (Te("data-v-8645db4f"), t = t(), $e(), t), Ko = /* @__PURE__ */ Yo(() => /* @__PURE__ */ c("svg", {
|
|
2253
2269
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2254
2270
|
width: "1em",
|
|
2255
2271
|
height: "1em",
|
|
@@ -2261,7 +2277,7 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2261
2277
|
})
|
|
2262
2278
|
], -1)), Xo = { class: "ml-tool-palette-title" }, Qo = { class: "ml-tool-palette-content" }, Zo = /* @__PURE__ */ S({
|
|
2263
2279
|
__name: "MlToolPalette",
|
|
2264
|
-
props: /* @__PURE__ */
|
|
2280
|
+
props: /* @__PURE__ */ ee({
|
|
2265
2281
|
title: { default: "" },
|
|
2266
2282
|
leftOffset: { default: 0 },
|
|
2267
2283
|
rightOffset: { default: 0 },
|
|
@@ -2271,10 +2287,10 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2271
2287
|
modelValue: { default: !0 },
|
|
2272
2288
|
modelModifiers: {}
|
|
2273
2289
|
}),
|
|
2274
|
-
emits: /* @__PURE__ */
|
|
2290
|
+
emits: /* @__PURE__ */ ee(["close"], ["update:modelValue"]),
|
|
2275
2291
|
setup(t, { emit: e }) {
|
|
2276
|
-
const n = t, i = _e(t, "modelValue"),
|
|
2277
|
-
offset:
|
|
2292
|
+
const n = t, i = _e(t, "modelValue"), l = e, o = x(!1), a = x(null), r = x(null), s = M(() => ({
|
|
2293
|
+
offset: x({
|
|
2278
2294
|
left: n.leftOffset,
|
|
2279
2295
|
right: n.rightOffset,
|
|
2280
2296
|
top: n.topOffset,
|
|
@@ -2284,12 +2300,12 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2284
2300
|
rect: p,
|
|
2285
2301
|
orientation: g,
|
|
2286
2302
|
reversed: b
|
|
2287
|
-
} = jo(r, a,
|
|
2303
|
+
} = jo(r, a, o, s), v = M(() => ({
|
|
2288
2304
|
left: `${p.value.left}px`,
|
|
2289
2305
|
top: `${p.value.top}px`,
|
|
2290
2306
|
width: `${p.value.width}px`,
|
|
2291
2307
|
height: `${p.value.height}px`
|
|
2292
|
-
})), h =
|
|
2308
|
+
})), h = M(() => b.value ? {
|
|
2293
2309
|
borderLeft: "1px solid var(--el-border-color)",
|
|
2294
2310
|
borderRight: null
|
|
2295
2311
|
} : {
|
|
@@ -2297,13 +2313,13 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2297
2313
|
borderRight: "1px solid var(--el-border-color)"
|
|
2298
2314
|
}), w = () => {
|
|
2299
2315
|
i.value = !1;
|
|
2300
|
-
const
|
|
2301
|
-
|
|
2302
|
-
x:
|
|
2303
|
-
y:
|
|
2316
|
+
const k = r.value;
|
|
2317
|
+
l("close", {
|
|
2318
|
+
x: k ? k.clientLeft : 0,
|
|
2319
|
+
y: k ? k.clientTop : 0
|
|
2304
2320
|
});
|
|
2305
2321
|
};
|
|
2306
|
-
return (
|
|
2322
|
+
return (k, B) => {
|
|
2307
2323
|
const V = de;
|
|
2308
2324
|
return i.value ? (u(), _("div", {
|
|
2309
2325
|
key: 0,
|
|
@@ -2333,17 +2349,17 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2333
2349
|
}),
|
|
2334
2350
|
m(ko, {
|
|
2335
2351
|
class: "ml-tool-palette-dialog-icon",
|
|
2336
|
-
modelValue:
|
|
2337
|
-
"onUpdate:modelValue":
|
|
2352
|
+
modelValue: o.value,
|
|
2353
|
+
"onUpdate:modelValue": B[0] || (B[0] = (y) => o.value = y),
|
|
2338
2354
|
reverse: d(b)
|
|
2339
2355
|
}, null, 8, ["modelValue", "reverse"]),
|
|
2340
2356
|
c("span", Xo, T(n.title), 1)
|
|
2341
2357
|
], 4),
|
|
2342
2358
|
c("div", Qo, [
|
|
2343
|
-
re(
|
|
2359
|
+
re(k.$slots, "default", {}, void 0, !0)
|
|
2344
2360
|
])
|
|
2345
2361
|
], 2)
|
|
2346
|
-
], 4)) :
|
|
2362
|
+
], 4)) : R("", !0);
|
|
2347
2363
|
};
|
|
2348
2364
|
}
|
|
2349
2365
|
}), Jo = /* @__PURE__ */ fe(Zo, [["__scopeId", "data-v-8645db4f"]]), el = { class: "ml-layer-list-cell" }, tl = { class: "ml-layer-list-cell" }, nl = /* @__PURE__ */ S({
|
|
@@ -2352,8 +2368,8 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2352
2368
|
editor: {}
|
|
2353
2369
|
},
|
|
2354
2370
|
setup(t) {
|
|
2355
|
-
const { t: e } =
|
|
2356
|
-
|
|
2371
|
+
const { t: e } = O(), n = t, i = yt(n.editor), l = x(), o = x([]), a = (s) => {
|
|
2372
|
+
o.value = s;
|
|
2357
2373
|
}, r = (s) => {
|
|
2358
2374
|
const p = n.editor.curDocument.database.tables.layerTable.getAt(
|
|
2359
2375
|
s.name
|
|
@@ -2361,10 +2377,10 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2361
2377
|
p && (p.isOff = !s.isOn);
|
|
2362
2378
|
};
|
|
2363
2379
|
return (s, p) => {
|
|
2364
|
-
const g =
|
|
2365
|
-
return u(),
|
|
2380
|
+
const g = C("el-table-column"), b = C("el-checkbox"), v = C("el-tag");
|
|
2381
|
+
return u(), z(d(ot), {
|
|
2366
2382
|
ref_key: "multipleTableRef",
|
|
2367
|
-
ref:
|
|
2383
|
+
ref: l,
|
|
2368
2384
|
data: d(i),
|
|
2369
2385
|
class: "ml-layer-list",
|
|
2370
2386
|
onSelectionChange: a
|
|
@@ -2420,10 +2436,10 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2420
2436
|
},
|
|
2421
2437
|
setup(t) {
|
|
2422
2438
|
const e = t;
|
|
2423
|
-
return (n, i) => (u(),
|
|
2439
|
+
return (n, i) => (u(), z(d(Jo), {
|
|
2424
2440
|
class: "ml-layer-manager",
|
|
2425
2441
|
modelValue: d(Z).dialogs.layerManager,
|
|
2426
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
2442
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => d(Z).dialogs.layerManager = l),
|
|
2427
2443
|
title: "Layers",
|
|
2428
2444
|
"bottom-offset": 30
|
|
2429
2445
|
}, {
|
|
@@ -2440,19 +2456,19 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2440
2456
|
}), al = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-d49ba2cb"]]), il = { class: "autocomplete-container" }, sl = /* @__PURE__ */ S({
|
|
2441
2457
|
__name: "MlCommandLine",
|
|
2442
2458
|
setup(t) {
|
|
2443
|
-
const { t: e } =
|
|
2459
|
+
const { t: e } = O(), n = pe(), i = gt(), l = x(""), o = x(""), a = (p, g) => {
|
|
2444
2460
|
const b = p ? i.filter(
|
|
2445
2461
|
(v) => v.commandName.startsWith(p.toLowerCase())
|
|
2446
2462
|
) : i;
|
|
2447
2463
|
g(b);
|
|
2448
2464
|
}, r = () => {
|
|
2449
|
-
|
|
2465
|
+
l.value && (E.instance.sendStringToExecute(l.value), o.value = l.value, l.value = "");
|
|
2450
2466
|
}, s = (p, g) => `${g}: ${ye(p, g)}`;
|
|
2451
2467
|
return (p, g) => (u(), _("div", il, [
|
|
2452
|
-
d(n).isShowCommandLine ? (u(),
|
|
2468
|
+
d(n).isShowCommandLine ? (u(), z(d(lt), {
|
|
2453
2469
|
key: 0,
|
|
2454
|
-
modelValue:
|
|
2455
|
-
"onUpdate:modelValue": g[0] || (g[0] = (b) =>
|
|
2470
|
+
modelValue: l.value,
|
|
2471
|
+
"onUpdate:modelValue": g[0] || (g[0] = (b) => l.value = b),
|
|
2456
2472
|
"value-key": "commandName",
|
|
2457
2473
|
clearable: "",
|
|
2458
2474
|
"fetch-suggestions": a,
|
|
@@ -2461,34 +2477,34 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2461
2477
|
"trigger-on-focus": "",
|
|
2462
2478
|
"fit-input-width": !1,
|
|
2463
2479
|
onSelect: r,
|
|
2464
|
-
onKeydown:
|
|
2480
|
+
onKeydown: Ue(r, ["enter"]),
|
|
2465
2481
|
class: "autocomplete-input"
|
|
2466
2482
|
}, {
|
|
2467
2483
|
default: f(({ item: b }) => [
|
|
2468
2484
|
c("div", null, T(s(b.groupName, b.commandName)), 1)
|
|
2469
2485
|
]),
|
|
2470
2486
|
prepend: f(() => [
|
|
2471
|
-
N(T(`> ${
|
|
2487
|
+
N(T(`> ${o.value}`), 1)
|
|
2472
2488
|
]),
|
|
2473
2489
|
_: 1
|
|
2474
|
-
}, 8, ["modelValue", "placeholder"])) :
|
|
2490
|
+
}, 8, ["modelValue", "placeholder"])) : R("", !0)
|
|
2475
2491
|
]));
|
|
2476
2492
|
}
|
|
2477
2493
|
}), rl = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-082845cb"]]), cl = /* @__PURE__ */ S({
|
|
2478
2494
|
__name: "MlEntityInfo",
|
|
2479
2495
|
setup(t) {
|
|
2480
|
-
|
|
2496
|
+
De((v) => ({
|
|
2481
2497
|
"2d5cc4ca": a.value,
|
|
2482
2498
|
"11fa7d7e": r.value
|
|
2483
2499
|
}));
|
|
2484
|
-
const { t: e } =
|
|
2500
|
+
const { t: e } = O(), n = x(!1), i = x(-1), l = x(-1), o = x(null), a = M(() => i.value + "px"), r = M(() => l.value + "px"), s = M(() => {
|
|
2485
2501
|
const v = E.instance.curDocument.database;
|
|
2486
|
-
if (
|
|
2487
|
-
const h = v.tables.blockTable.modelSpace.getIdAt(
|
|
2502
|
+
if (o.value) {
|
|
2503
|
+
const h = v.tables.blockTable.modelSpace.getIdAt(o.value);
|
|
2488
2504
|
if (h)
|
|
2489
2505
|
return {
|
|
2490
|
-
type:
|
|
2491
|
-
color:
|
|
2506
|
+
type: $t(h),
|
|
2507
|
+
color: Et(h.color.toString()),
|
|
2492
2508
|
layer: h.layer,
|
|
2493
2509
|
lineType: h.lineType
|
|
2494
2510
|
};
|
|
@@ -2499,27 +2515,27 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2499
2515
|
layer: "",
|
|
2500
2516
|
lineType: ""
|
|
2501
2517
|
};
|
|
2502
|
-
}), p =
|
|
2503
|
-
|
|
2518
|
+
}), p = M(() => n.value && s.value.type != ""), g = (v) => {
|
|
2519
|
+
o.value = v.id, i.value = v.x, l.value = v.y, n.value = !0;
|
|
2504
2520
|
}, b = () => {
|
|
2505
2521
|
n.value = !1;
|
|
2506
2522
|
};
|
|
2507
2523
|
return U(() => {
|
|
2508
2524
|
const v = E.instance.curView.events;
|
|
2509
2525
|
v.hover.addEventListener(g), v.unhover.addEventListener(b);
|
|
2510
|
-
}),
|
|
2526
|
+
}), ne(() => {
|
|
2511
2527
|
const v = E.instance.curView.events;
|
|
2512
2528
|
v.hover.removeEventListener(g), v.unhover.removeEventListener(b);
|
|
2513
2529
|
}), (v, h) => {
|
|
2514
|
-
const w =
|
|
2515
|
-
return p.value ? (u(),
|
|
2530
|
+
const w = C("el-text"), k = C("el-col"), B = C("el-row"), V = C("el-card");
|
|
2531
|
+
return p.value ? (u(), z(V, {
|
|
2516
2532
|
key: 0,
|
|
2517
2533
|
class: "ml-entity-info"
|
|
2518
2534
|
}, {
|
|
2519
2535
|
default: f(() => [
|
|
2520
|
-
m(
|
|
2536
|
+
m(B, { class: "ml-entity-info-text" }, {
|
|
2521
2537
|
default: f(() => [
|
|
2522
|
-
m(
|
|
2538
|
+
m(k, { span: 24 }, {
|
|
2523
2539
|
default: f(() => [
|
|
2524
2540
|
m(w, {
|
|
2525
2541
|
size: "small",
|
|
@@ -2536,9 +2552,9 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2536
2552
|
]),
|
|
2537
2553
|
_: 1
|
|
2538
2554
|
}),
|
|
2539
|
-
m(
|
|
2555
|
+
m(B, { class: "ml-entity-info-text" }, {
|
|
2540
2556
|
default: f(() => [
|
|
2541
|
-
m(
|
|
2557
|
+
m(k, { span: 10 }, {
|
|
2542
2558
|
default: f(() => [
|
|
2543
2559
|
m(w, { size: "small" }, {
|
|
2544
2560
|
default: f(() => [
|
|
@@ -2549,7 +2565,7 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2549
2565
|
]),
|
|
2550
2566
|
_: 1
|
|
2551
2567
|
}),
|
|
2552
|
-
m(
|
|
2568
|
+
m(k, { span: 14 }, {
|
|
2553
2569
|
default: f(() => [
|
|
2554
2570
|
m(w, { size: "small" }, {
|
|
2555
2571
|
default: f(() => [
|
|
@@ -2563,9 +2579,9 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2563
2579
|
]),
|
|
2564
2580
|
_: 1
|
|
2565
2581
|
}),
|
|
2566
|
-
m(
|
|
2582
|
+
m(B, { class: "ml-entity-info-text" }, {
|
|
2567
2583
|
default: f(() => [
|
|
2568
|
-
m(
|
|
2584
|
+
m(k, { span: 10 }, {
|
|
2569
2585
|
default: f(() => [
|
|
2570
2586
|
m(w, { size: "small" }, {
|
|
2571
2587
|
default: f(() => [
|
|
@@ -2576,7 +2592,7 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2576
2592
|
]),
|
|
2577
2593
|
_: 1
|
|
2578
2594
|
}),
|
|
2579
|
-
m(
|
|
2595
|
+
m(k, { span: 14 }, {
|
|
2580
2596
|
default: f(() => [
|
|
2581
2597
|
m(w, { size: "small" }, {
|
|
2582
2598
|
default: f(() => [
|
|
@@ -2590,9 +2606,9 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2590
2606
|
]),
|
|
2591
2607
|
_: 1
|
|
2592
2608
|
}),
|
|
2593
|
-
m(
|
|
2609
|
+
m(B, { class: "ml-entity-info-text" }, {
|
|
2594
2610
|
default: f(() => [
|
|
2595
|
-
m(
|
|
2611
|
+
m(k, { span: 10 }, {
|
|
2596
2612
|
default: f(() => [
|
|
2597
2613
|
m(w, { size: "small" }, {
|
|
2598
2614
|
default: f(() => [
|
|
@@ -2603,7 +2619,7 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2603
2619
|
]),
|
|
2604
2620
|
_: 1
|
|
2605
2621
|
}),
|
|
2606
|
-
m(
|
|
2622
|
+
m(k, { span: 14 }, {
|
|
2607
2623
|
default: f(() => [
|
|
2608
2624
|
m(w, { size: "small" }, {
|
|
2609
2625
|
default: f(() => [
|
|
@@ -2619,7 +2635,7 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2619
2635
|
})
|
|
2620
2636
|
]),
|
|
2621
2637
|
_: 1
|
|
2622
|
-
})) :
|
|
2638
|
+
})) : R("", !0);
|
|
2623
2639
|
};
|
|
2624
2640
|
}
|
|
2625
2641
|
}), ul = /* @__PURE__ */ W(cl, [["__scopeId", "data-v-6a67bbe7"]]), dl = /* @__PURE__ */ S({
|
|
@@ -2628,7 +2644,7 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2628
2644
|
currentLocale: { default: void 0 }
|
|
2629
2645
|
},
|
|
2630
2646
|
setup(t) {
|
|
2631
|
-
const e = t, { effectiveLocale: n, setLocale: i } =
|
|
2647
|
+
const e = t, { effectiveLocale: n, setLocale: i } = Fe(e.currentLocale), l = Y([
|
|
2632
2648
|
{
|
|
2633
2649
|
name: "en",
|
|
2634
2650
|
text: "English"
|
|
@@ -2637,14 +2653,14 @@ const Yo = (t) => (Ee("data-v-8645db4f"), t = t(), Ae(), t), Ko = /* @__PURE__ *
|
|
|
2637
2653
|
name: "zh",
|
|
2638
2654
|
text: "简体中文"
|
|
2639
2655
|
}
|
|
2640
|
-
]),
|
|
2656
|
+
]), o = (a) => {
|
|
2641
2657
|
(a === "en" || a === "zh") && i(a);
|
|
2642
2658
|
};
|
|
2643
|
-
return (a, r) => (u(),
|
|
2659
|
+
return (a, r) => (u(), z(d(Bo), {
|
|
2644
2660
|
class: "ml-language-selector",
|
|
2645
|
-
languages:
|
|
2661
|
+
languages: l,
|
|
2646
2662
|
current: d(n),
|
|
2647
|
-
onClick:
|
|
2663
|
+
onClick: o
|
|
2648
2664
|
}, null, 8, ["languages", "current"]));
|
|
2649
2665
|
}
|
|
2650
2666
|
}), ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1b9f7bc0"]]);
|
|
@@ -2741,7 +2757,7 @@ var pl = /* @__PURE__ */ S({
|
|
|
2741
2757
|
})
|
|
2742
2758
|
]));
|
|
2743
2759
|
}
|
|
2744
|
-
}),
|
|
2760
|
+
}), Be = yl, bl = /* @__PURE__ */ S({
|
|
2745
2761
|
name: "Menu",
|
|
2746
2762
|
__name: "menu",
|
|
2747
2763
|
setup(t) {
|
|
@@ -2857,12 +2873,12 @@ var pl = /* @__PURE__ */ S({
|
|
|
2857
2873
|
const Nl = /* @__PURE__ */ S({
|
|
2858
2874
|
__name: "MlMainMenu",
|
|
2859
2875
|
setup(t) {
|
|
2860
|
-
const { t: e } =
|
|
2861
|
-
i === "Convert" ? new
|
|
2876
|
+
const { t: e } = O(), n = (i) => {
|
|
2877
|
+
i === "Convert" ? new Oe().tirgger(E.instance.context) : i === "QNew" ? new Re().tirgger(E.instance.context) : i === "Open" && new He().tirgger(E.instance.context);
|
|
2862
2878
|
};
|
|
2863
|
-
return (i,
|
|
2864
|
-
const
|
|
2865
|
-
return u(),
|
|
2879
|
+
return (i, l) => {
|
|
2880
|
+
const o = C("el-icon"), a = C("el-dropdown-item"), r = C("el-dropdown-menu"), s = C("el-dropdown");
|
|
2881
|
+
return u(), z(s, {
|
|
2866
2882
|
"aria-hidden": "false",
|
|
2867
2883
|
class: "ml-main-menu-container",
|
|
2868
2884
|
onCommand: n
|
|
@@ -2887,7 +2903,7 @@ const Nl = /* @__PURE__ */ S({
|
|
|
2887
2903
|
})
|
|
2888
2904
|
]),
|
|
2889
2905
|
default: f(() => [
|
|
2890
|
-
m(
|
|
2906
|
+
m(o, {
|
|
2891
2907
|
class: "ml-main-menu-icon",
|
|
2892
2908
|
size: "30"
|
|
2893
2909
|
}, {
|
|
@@ -2901,13 +2917,13 @@ const Nl = /* @__PURE__ */ S({
|
|
|
2901
2917
|
});
|
|
2902
2918
|
};
|
|
2903
2919
|
}
|
|
2904
|
-
}), Il = /* @__PURE__ */ W(Nl, [["__scopeId", "data-v-8c0c738e"]]),
|
|
2920
|
+
}), Il = /* @__PURE__ */ W(Nl, [["__scopeId", "data-v-8c0c738e"]]), Pl = {
|
|
2905
2921
|
key: 0,
|
|
2906
2922
|
class: "ml-vertical-toolbar-container"
|
|
2907
2923
|
}, Ol = /* @__PURE__ */ S({
|
|
2908
2924
|
__name: "MlToolBars",
|
|
2909
2925
|
setup(t) {
|
|
2910
|
-
const { t: e } =
|
|
2926
|
+
const { t: e } = O(), n = pe(), i = M(() => [
|
|
2911
2927
|
{
|
|
2912
2928
|
icon: Jt,
|
|
2913
2929
|
text: e("main.verticalToolbar.select.text"),
|
|
@@ -2938,19 +2954,19 @@ const Nl = /* @__PURE__ */ S({
|
|
|
2938
2954
|
command: "la",
|
|
2939
2955
|
description: e("main.verticalToolbar.layer.description")
|
|
2940
2956
|
}
|
|
2941
|
-
]),
|
|
2942
|
-
E.instance.sendStringToExecute(
|
|
2957
|
+
]), l = (o) => {
|
|
2958
|
+
E.instance.sendStringToExecute(o);
|
|
2943
2959
|
};
|
|
2944
|
-
return (
|
|
2960
|
+
return (o, a) => d(n).isShowToolbar ? (u(), _("div", Pl, [
|
|
2945
2961
|
m(d(Io), {
|
|
2946
2962
|
items: i.value,
|
|
2947
2963
|
size: "small",
|
|
2948
2964
|
direction: "vertical",
|
|
2949
|
-
onClick:
|
|
2965
|
+
onClick: l
|
|
2950
2966
|
}, null, 8, ["items"])
|
|
2951
|
-
])) :
|
|
2967
|
+
])) : R("", !0);
|
|
2952
2968
|
}
|
|
2953
|
-
}),
|
|
2969
|
+
}), Rl = { class: "ml-notification-item-icon" }, Hl = { class: "ml-notification-item-content" }, Gl = { class: "ml-notification-item-header" }, Wl = { class: "ml-notification-item-title" }, Ul = { class: "ml-notification-item-actions" }, ql = {
|
|
2954
2970
|
key: 0,
|
|
2955
2971
|
class: "ml-notification-item-message"
|
|
2956
2972
|
}, jl = { class: "ml-notification-item-footer" }, Yl = { class: "ml-notification-item-time" }, Kl = /* @__PURE__ */ S({
|
|
@@ -2960,10 +2976,10 @@ const Nl = /* @__PURE__ */ S({
|
|
|
2960
2976
|
},
|
|
2961
2977
|
emits: ["close", "action"],
|
|
2962
2978
|
setup(t) {
|
|
2963
|
-
const e = t, { t: n } =
|
|
2979
|
+
const e = t, { t: n } = O(), i = M(() => {
|
|
2964
2980
|
switch (e.notification.type) {
|
|
2965
2981
|
case "info":
|
|
2966
|
-
return
|
|
2982
|
+
return Be;
|
|
2967
2983
|
case "warning":
|
|
2968
2984
|
return Al;
|
|
2969
2985
|
case "error":
|
|
@@ -2971,23 +2987,23 @@ const Nl = /* @__PURE__ */ S({
|
|
|
2971
2987
|
case "success":
|
|
2972
2988
|
return Dl;
|
|
2973
2989
|
default:
|
|
2974
|
-
return
|
|
2990
|
+
return Be;
|
|
2975
2991
|
}
|
|
2976
|
-
}),
|
|
2992
|
+
}), l = (a) => {
|
|
2977
2993
|
a.action();
|
|
2978
|
-
},
|
|
2994
|
+
}, o = (a) => {
|
|
2979
2995
|
const s = (/* @__PURE__ */ new Date()).getTime() - a.getTime(), p = Math.floor(s / 6e4), g = Math.floor(s / 36e5), b = Math.floor(s / 864e5);
|
|
2980
2996
|
return b > 0 ? n("main.notification.time.daysAgo", { count: b }) : g > 0 ? n("main.notification.time.hoursAgo", { count: g }) : p > 0 ? n("main.notification.time.minutesAgo", { count: p }) : n("main.notification.time.justNow");
|
|
2981
2997
|
};
|
|
2982
2998
|
return (a, r) => {
|
|
2983
|
-
const s =
|
|
2999
|
+
const s = C("el-icon"), p = C("el-button");
|
|
2984
3000
|
return u(), _("div", {
|
|
2985
3001
|
class: we(["ml-notification-item", `ml-notification-item--${a.notification.type}`])
|
|
2986
3002
|
}, [
|
|
2987
|
-
c("div",
|
|
3003
|
+
c("div", Rl, [
|
|
2988
3004
|
m(s, null, {
|
|
2989
3005
|
default: f(() => [
|
|
2990
|
-
(u(),
|
|
3006
|
+
(u(), z(ue(i.value)))
|
|
2991
3007
|
]),
|
|
2992
3008
|
_: 1
|
|
2993
3009
|
})
|
|
@@ -2996,17 +3012,17 @@ const Nl = /* @__PURE__ */ S({
|
|
|
2996
3012
|
c("div", Gl, [
|
|
2997
3013
|
c("h4", Wl, T(a.notification.title), 1),
|
|
2998
3014
|
c("div", Ul, [
|
|
2999
|
-
a.notification.actions && a.notification.actions.length > 0 ? (u(!0), _(j, { key: 0 }, K(a.notification.actions, (g) => (u(),
|
|
3015
|
+
a.notification.actions && a.notification.actions.length > 0 ? (u(!0), _(j, { key: 0 }, K(a.notification.actions, (g) => (u(), z(p, {
|
|
3000
3016
|
key: g.label,
|
|
3001
3017
|
type: g.primary ? "primary" : "default",
|
|
3002
3018
|
size: "small",
|
|
3003
|
-
onClick: (b) =>
|
|
3019
|
+
onClick: (b) => l(g)
|
|
3004
3020
|
}, {
|
|
3005
3021
|
default: f(() => [
|
|
3006
3022
|
N(T(g.label), 1)
|
|
3007
3023
|
]),
|
|
3008
3024
|
_: 2
|
|
3009
|
-
}, 1032, ["type", "onClick"]))), 128)) :
|
|
3025
|
+
}, 1032, ["type", "onClick"]))), 128)) : R("", !0),
|
|
3010
3026
|
m(p, {
|
|
3011
3027
|
text: "",
|
|
3012
3028
|
size: "small",
|
|
@@ -3024,9 +3040,9 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3024
3040
|
})
|
|
3025
3041
|
])
|
|
3026
3042
|
]),
|
|
3027
|
-
a.notification.message ? (u(), _("p", ql, T(a.notification.message), 1)) :
|
|
3043
|
+
a.notification.message ? (u(), _("p", ql, T(a.notification.message), 1)) : R("", !0),
|
|
3028
3044
|
c("div", jl, [
|
|
3029
|
-
c("span", Yl, T(
|
|
3045
|
+
c("span", Yl, T(o(a.notification.timestamp)), 1)
|
|
3030
3046
|
])
|
|
3031
3047
|
])
|
|
3032
3048
|
], 2);
|
|
@@ -3045,13 +3061,13 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3045
3061
|
},
|
|
3046
3062
|
emits: ["close"],
|
|
3047
3063
|
setup(t) {
|
|
3048
|
-
const { t: e } =
|
|
3064
|
+
const { t: e } = O(), n = t, i = M(
|
|
3049
3065
|
() => n.title ?? e("main.notification.center.title")
|
|
3050
|
-
), { notifications:
|
|
3066
|
+
), { notifications: l, remove: o, clearAll: a } = me(), r = (s) => {
|
|
3051
3067
|
s.action();
|
|
3052
3068
|
};
|
|
3053
3069
|
return (s, p) => {
|
|
3054
|
-
const g =
|
|
3070
|
+
const g = C("el-icon"), b = C("el-button"), v = C("el-tooltip");
|
|
3055
3071
|
return u(), _("div", Ql, [
|
|
3056
3072
|
c("div", Zl, [
|
|
3057
3073
|
c("div", Jl, [
|
|
@@ -3064,7 +3080,7 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3064
3080
|
c("span", null, T(i.value), 1)
|
|
3065
3081
|
]),
|
|
3066
3082
|
c("div", ea, [
|
|
3067
|
-
d(
|
|
3083
|
+
d(l).length > 0 ? (u(), z(v, {
|
|
3068
3084
|
key: 0,
|
|
3069
3085
|
content: d(e)("main.notification.center.clearAll"),
|
|
3070
3086
|
"hide-after": 0
|
|
@@ -3089,7 +3105,7 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3089
3105
|
}, 8, ["onClick"])
|
|
3090
3106
|
]),
|
|
3091
3107
|
_: 1
|
|
3092
|
-
}, 8, ["content"])) :
|
|
3108
|
+
}, 8, ["content"])) : R("", !0),
|
|
3093
3109
|
m(b, {
|
|
3094
3110
|
text: "",
|
|
3095
3111
|
size: "small",
|
|
@@ -3109,7 +3125,7 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3109
3125
|
])
|
|
3110
3126
|
]),
|
|
3111
3127
|
c("div", ta, [
|
|
3112
|
-
d(
|
|
3128
|
+
d(l).length === 0 ? (u(), _("div", na, [
|
|
3113
3129
|
m(g, { class: "ml-notification-center-empty-icon" }, {
|
|
3114
3130
|
default: f(() => [
|
|
3115
3131
|
m(d(he))
|
|
@@ -3118,10 +3134,10 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3118
3134
|
}),
|
|
3119
3135
|
c("p", null, T(d(e)("main.notification.center.noNotifications")), 1)
|
|
3120
3136
|
])) : (u(), _("div", oa, [
|
|
3121
|
-
(u(!0), _(j, null, K(d(
|
|
3137
|
+
(u(!0), _(j, null, K(d(l), (h) => (u(), z(Xl, {
|
|
3122
3138
|
key: h.id,
|
|
3123
3139
|
notification: h,
|
|
3124
|
-
onClose: (w) => d(
|
|
3140
|
+
onClose: (w) => d(o)(h.id),
|
|
3125
3141
|
onAction: r
|
|
3126
3142
|
}, null, 8, ["notification", "onClose"]))), 128))
|
|
3127
3143
|
]))
|
|
@@ -3129,19 +3145,19 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3129
3145
|
]);
|
|
3130
3146
|
};
|
|
3131
3147
|
}
|
|
3132
|
-
}), aa = /* @__PURE__ */ W(la, [["__scopeId", "data-v-
|
|
3148
|
+
}), aa = /* @__PURE__ */ W(la, [["__scopeId", "data-v-56d037f5"]]), ia = /* @__PURE__ */ S({
|
|
3133
3149
|
__name: "MlFullScreenButton",
|
|
3134
3150
|
setup(t) {
|
|
3135
|
-
const { t: e } =
|
|
3136
|
-
onIcon:
|
|
3137
|
-
offIcon:
|
|
3151
|
+
const { t: e } = O(), { isFullscreen: n, toggle: i } = Ze(), l = M(() => ({
|
|
3152
|
+
onIcon: Ce,
|
|
3153
|
+
offIcon: Ce,
|
|
3138
3154
|
onTooltip: e("main.statusBar.fullScreen.on"),
|
|
3139
3155
|
offTooltip: e("main.statusBar.fullScreen.off")
|
|
3140
|
-
})),
|
|
3141
|
-
return (a, r) => (u(),
|
|
3142
|
-
modelValue:
|
|
3143
|
-
"onUpdate:modelValue": r[0] || (r[0] = (s) =>
|
|
3144
|
-
data:
|
|
3156
|
+
})), o = M(() => !n.value);
|
|
3157
|
+
return (a, r) => (u(), z(d(Ie), {
|
|
3158
|
+
modelValue: o.value,
|
|
3159
|
+
"onUpdate:modelValue": r[0] || (r[0] = (s) => o.value = s),
|
|
3160
|
+
data: l.value,
|
|
3145
3161
|
onClick: d(i)
|
|
3146
3162
|
}, null, 8, ["modelValue", "data", "onClick"]));
|
|
3147
3163
|
}
|
|
@@ -3149,12 +3165,12 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3149
3165
|
__name: "MlNotificationButton",
|
|
3150
3166
|
emits: ["click"],
|
|
3151
3167
|
setup(t, { emit: e }) {
|
|
3152
|
-
const { t: n } =
|
|
3153
|
-
|
|
3168
|
+
const { t: n } = O(), { unreadCount: i } = me(), l = e, o = () => {
|
|
3169
|
+
l("click");
|
|
3154
3170
|
};
|
|
3155
3171
|
return (a, r) => {
|
|
3156
|
-
const s =
|
|
3157
|
-
return u(),
|
|
3172
|
+
const s = C("el-badge"), p = C("el-button"), g = C("el-tooltip");
|
|
3173
|
+
return u(), z(g, {
|
|
3158
3174
|
content: d(n)("main.statusBar.notification.tooltip"),
|
|
3159
3175
|
"hide-after": 0
|
|
3160
3176
|
}, {
|
|
@@ -3162,15 +3178,15 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3162
3178
|
m(p, {
|
|
3163
3179
|
class: "ml-notification-button",
|
|
3164
3180
|
icon: d(he),
|
|
3165
|
-
onClick:
|
|
3181
|
+
onClick: o
|
|
3166
3182
|
}, {
|
|
3167
3183
|
default: f(() => [
|
|
3168
|
-
d(i) > 0 ? (u(),
|
|
3184
|
+
d(i) > 0 ? (u(), z(s, {
|
|
3169
3185
|
key: 0,
|
|
3170
3186
|
value: d(i),
|
|
3171
3187
|
max: 99,
|
|
3172
3188
|
class: "ml-notification-badge"
|
|
3173
|
-
}, null, 8, ["value"])) :
|
|
3189
|
+
}, null, 8, ["value"])) : R("", !0)
|
|
3174
3190
|
]),
|
|
3175
3191
|
_: 1
|
|
3176
3192
|
}, 8, ["icon"])
|
|
@@ -3182,20 +3198,20 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3182
3198
|
}), ra = /* @__PURE__ */ W(sa, [["__scopeId", "data-v-48c740b7"]]), ca = /* @__PURE__ */ S({
|
|
3183
3199
|
__name: "MlPointStyleButton",
|
|
3184
3200
|
setup(t) {
|
|
3185
|
-
const { t: e } =
|
|
3201
|
+
const { t: e } = O(), n = () => {
|
|
3186
3202
|
E.instance.sendStringToExecute("pttype");
|
|
3187
3203
|
};
|
|
3188
|
-
return (i,
|
|
3189
|
-
const
|
|
3190
|
-
return u(),
|
|
3204
|
+
return (i, l) => {
|
|
3205
|
+
const o = C("el-button"), a = C("el-tooltip");
|
|
3206
|
+
return u(), z(a, {
|
|
3191
3207
|
content: d(e)("main.statusBar.pointStyle.tooltip"),
|
|
3192
3208
|
"hide-after": 0
|
|
3193
3209
|
}, {
|
|
3194
3210
|
default: f(() => [
|
|
3195
|
-
m(
|
|
3211
|
+
m(o, {
|
|
3196
3212
|
class: "ml-point-style-button",
|
|
3197
3213
|
icon: d(Sl),
|
|
3198
|
-
onClick:
|
|
3214
|
+
onClick: l[0] || (l[0] = (r) => n())
|
|
3199
3215
|
}, null, 8, ["icon"])
|
|
3200
3216
|
]),
|
|
3201
3217
|
_: 1
|
|
@@ -3208,16 +3224,16 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3208
3224
|
}, ma = /* @__PURE__ */ S({
|
|
3209
3225
|
__name: "MlProgress",
|
|
3210
3226
|
setup(t) {
|
|
3211
|
-
const { t: e } =
|
|
3227
|
+
const { t: e } = O(), n = x(0), i = x(!1), { warning: l } = me(), o = (r) => {
|
|
3212
3228
|
if (r.stage === "CONVERSION") {
|
|
3213
|
-
const s =
|
|
3229
|
+
const s = ke.service({
|
|
3214
3230
|
lock: !0
|
|
3215
3231
|
});
|
|
3216
3232
|
if (r.subStage) {
|
|
3217
|
-
const p =
|
|
3233
|
+
const p = At(r.subStage);
|
|
3218
3234
|
if (s.setText(p), r.subStage === "PARSE" && r.subStageStatus === "END" && r.data) {
|
|
3219
3235
|
const g = r.data;
|
|
3220
|
-
g.unknownEntityCount > 0 &&
|
|
3236
|
+
g.unknownEntityCount > 0 && l(
|
|
3221
3237
|
e("main.notification.title.parsingWarning"),
|
|
3222
3238
|
e("main.message.unknownEntities", {
|
|
3223
3239
|
count: g.unknownEntityCount
|
|
@@ -3227,34 +3243,34 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3227
3243
|
}
|
|
3228
3244
|
n.value = r.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
|
|
3229
3245
|
} else if (r.stage === "FETCH_FILE") {
|
|
3230
|
-
const s =
|
|
3246
|
+
const s = ke.service({
|
|
3231
3247
|
lock: !0
|
|
3232
3248
|
});
|
|
3233
3249
|
s.setText(e("main.message.fetchingDrawingFile")), n.value = r.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
|
|
3234
3250
|
}
|
|
3235
3251
|
}, a = (r) => `${r.toFixed(0)}%`;
|
|
3236
3252
|
return U(() => {
|
|
3237
|
-
X.on("open-file-progress",
|
|
3238
|
-
}),
|
|
3239
|
-
X.off("open-file-progress",
|
|
3253
|
+
X.on("open-file-progress", o);
|
|
3254
|
+
}), ne(() => {
|
|
3255
|
+
X.off("open-file-progress", o);
|
|
3240
3256
|
}), (r, s) => i.value ? (u(), _("div", da, [
|
|
3241
|
-
m(d(
|
|
3257
|
+
m(d(at), {
|
|
3242
3258
|
"text-inside": !0,
|
|
3243
3259
|
"stroke-width": 20,
|
|
3244
3260
|
percentage: n.value,
|
|
3245
3261
|
format: a
|
|
3246
3262
|
}, null, 8, ["percentage"])
|
|
3247
|
-
])) :
|
|
3263
|
+
])) : R("", !0);
|
|
3248
3264
|
}
|
|
3249
3265
|
}), pa = /* @__PURE__ */ W(ma, [["__scopeId", "data-v-35ad24b9"]]), fa = /* @__PURE__ */ S({
|
|
3250
3266
|
__name: "MlSettingButton",
|
|
3251
3267
|
setup(t) {
|
|
3252
|
-
const { t: e } =
|
|
3253
|
-
|
|
3268
|
+
const { t: e } = O(), n = pe(), i = (l) => {
|
|
3269
|
+
l == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, Q.instance.isShowCoordinate = n.isShowCoordinate) : l == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, Q.instance.isShowCommandLine = n.isShowCommandLine) : l == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, Q.instance.isShowToolbar = n.isShowToolbar) : l == "isShowStats" && (n.isShowStats = !n.isShowStats, Q.instance.isShowStats = n.isShowStats);
|
|
3254
3270
|
};
|
|
3255
|
-
return (
|
|
3256
|
-
const a =
|
|
3257
|
-
return u(),
|
|
3271
|
+
return (l, o) => {
|
|
3272
|
+
const a = C("el-button"), r = C("el-dropdown-item"), s = C("el-dropdown-menu"), p = C("el-dropdown"), g = C("el-tooltip");
|
|
3273
|
+
return u(), z(g, {
|
|
3258
3274
|
content: d(e)("main.statusBar.setting.tooltip"),
|
|
3259
3275
|
"hide-after": 0
|
|
3260
3276
|
}, {
|
|
@@ -3322,17 +3338,17 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3322
3338
|
}), va = /* @__PURE__ */ W(fa, [["__scopeId", "data-v-666f03a3"]]), ga = /* @__PURE__ */ S({
|
|
3323
3339
|
__name: "MlThemeButton",
|
|
3324
3340
|
setup(t) {
|
|
3325
|
-
const { t: e } =
|
|
3341
|
+
const { t: e } = O(), n = M(() => ({
|
|
3326
3342
|
onIcon: $l,
|
|
3327
3343
|
offIcon: Ml,
|
|
3328
3344
|
onTooltip: e("main.statusBar.theme.light"),
|
|
3329
3345
|
offTooltip: e("main.statusBar.theme.dark")
|
|
3330
3346
|
}));
|
|
3331
|
-
return (i,
|
|
3347
|
+
return (i, l) => (u(), z(d(Ie), {
|
|
3332
3348
|
modelValue: d(se),
|
|
3333
|
-
"onUpdate:modelValue":
|
|
3349
|
+
"onUpdate:modelValue": l[0] || (l[0] = (o) => qe(se) ? se.value = o : null),
|
|
3334
3350
|
data: n.value,
|
|
3335
|
-
onClick:
|
|
3351
|
+
onClick: l[1] || (l[1] = (o) => d(_t)())
|
|
3336
3352
|
}, null, 8, ["modelValue", "data"]));
|
|
3337
3353
|
}
|
|
3338
3354
|
}), ha = /* @__PURE__ */ S({
|
|
@@ -3340,43 +3356,43 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3340
3356
|
setup(t) {
|
|
3341
3357
|
const e = () => {
|
|
3342
3358
|
E.instance.sendStringToExecute("md");
|
|
3343
|
-
}, { fonts: n, images: i } =
|
|
3344
|
-
return (
|
|
3345
|
-
const r =
|
|
3346
|
-
return
|
|
3359
|
+
}, { fonts: n, images: i } = Ne(), l = M(() => i.size > 0 || n.size > 0);
|
|
3360
|
+
return (o, a) => {
|
|
3361
|
+
const r = C("el-button");
|
|
3362
|
+
return l.value ? (u(), z(r, {
|
|
3347
3363
|
key: 0,
|
|
3348
3364
|
class: "ml-warning-button",
|
|
3349
3365
|
type: "warning",
|
|
3350
3366
|
icon: d(Fl),
|
|
3351
3367
|
onClick: a[0] || (a[0] = (s) => e())
|
|
3352
|
-
}, null, 8, ["icon"])) :
|
|
3368
|
+
}, null, 8, ["icon"])) : R("", !0);
|
|
3353
3369
|
};
|
|
3354
3370
|
}
|
|
3355
3371
|
}), _a = /* @__PURE__ */ W(ha, [["__scopeId", "data-v-3411a3ec"]]), wa = /* @__PURE__ */ S({
|
|
3356
3372
|
__name: "MlStatusBar",
|
|
3357
3373
|
emits: ["toggleNotificationCenter"],
|
|
3358
3374
|
setup(t, { emit: e }) {
|
|
3359
|
-
const { text: n } =
|
|
3360
|
-
|
|
3361
|
-
|
|
3375
|
+
const { text: n } = ht(E.instance.curView), i = bt(E.instance), l = pe(), { isMobile: o } = Nt(), a = (p) => {
|
|
3376
|
+
Ae().layoutManager.setCurrentLayoutBtrId(
|
|
3377
|
+
p.blockTableRecordId
|
|
3362
3378
|
);
|
|
3363
|
-
},
|
|
3364
|
-
|
|
3379
|
+
}, r = e, s = () => {
|
|
3380
|
+
r("toggleNotificationCenter");
|
|
3365
3381
|
};
|
|
3366
|
-
return (
|
|
3367
|
-
const
|
|
3368
|
-
return u(),
|
|
3382
|
+
return (p, g) => {
|
|
3383
|
+
const b = C("el-button"), v = C("el-button-group");
|
|
3384
|
+
return u(), z(d(Vo), { class: "ml-status-bar" }, {
|
|
3369
3385
|
left: f(() => [
|
|
3370
|
-
m(
|
|
3386
|
+
m(v, { class: "ml-status-bar-left-button-group" }, {
|
|
3371
3387
|
default: f(() => [
|
|
3372
|
-
(u(!0), _(j, null, K(d(i), (
|
|
3388
|
+
(u(!0), _(j, null, K(d(i), (h) => (u(), z(b, {
|
|
3373
3389
|
class: "ml-status-bar-layout-button",
|
|
3374
|
-
key:
|
|
3375
|
-
type:
|
|
3376
|
-
onClick: (
|
|
3390
|
+
key: h.name,
|
|
3391
|
+
type: h.isActive ? "primary" : "",
|
|
3392
|
+
onClick: (w) => a(h)
|
|
3377
3393
|
}, {
|
|
3378
3394
|
default: f(() => [
|
|
3379
|
-
N(T(
|
|
3395
|
+
N(T(h.name), 1)
|
|
3380
3396
|
]),
|
|
3381
3397
|
_: 2
|
|
3382
3398
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -3386,9 +3402,9 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3386
3402
|
]),
|
|
3387
3403
|
right: f(() => [
|
|
3388
3404
|
m(pa),
|
|
3389
|
-
m(
|
|
3405
|
+
m(v, { class: "ml-status-bar-right-button-group" }, {
|
|
3390
3406
|
default: f(() => [
|
|
3391
|
-
d(
|
|
3407
|
+
d(l).isShowCoordinate && !d(o) ? (u(), z(b, {
|
|
3392
3408
|
key: 0,
|
|
3393
3409
|
class: "ml-status-bar-current-pos"
|
|
3394
3410
|
}, {
|
|
@@ -3396,9 +3412,9 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3396
3412
|
N(T(d(n)), 1)
|
|
3397
3413
|
]),
|
|
3398
3414
|
_: 1
|
|
3399
|
-
})) :
|
|
3415
|
+
})) : R("", !0),
|
|
3400
3416
|
m(_a),
|
|
3401
|
-
m(ra, { onClick:
|
|
3417
|
+
m(ra, { onClick: s }),
|
|
3402
3418
|
m(ga),
|
|
3403
3419
|
m(ia),
|
|
3404
3420
|
m(ua),
|
|
@@ -3411,7 +3427,7 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3411
3427
|
});
|
|
3412
3428
|
};
|
|
3413
3429
|
}
|
|
3414
|
-
}), ya = /* @__PURE__ */ W(wa, [["__scopeId", "data-v-
|
|
3430
|
+
}), ya = /* @__PURE__ */ W(wa, [["__scopeId", "data-v-24578503"]]), ba = {
|
|
3415
3431
|
key: 0,
|
|
3416
3432
|
class: "ml-cad-viewer-container"
|
|
3417
3433
|
}, xa = { class: "ml-file-name" }, Qa = /* @__PURE__ */ S({
|
|
@@ -3424,45 +3440,39 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3424
3440
|
baseUrl: { default: void 0 }
|
|
3425
3441
|
},
|
|
3426
3442
|
setup(t) {
|
|
3427
|
-
const e = t, { t: n } =
|
|
3428
|
-
const
|
|
3429
|
-
await E.instance.openDocument(y,
|
|
3443
|
+
const e = t, { t: n } = O(), { effectiveLocale: i, elementPlusLocale: l } = Fe(e.locale), { info: o, warning: a, error: r, success: s } = me(), p = x(), g = x(null), b = M(() => g.value), v = x(!1), h = async (y, L) => {
|
|
3444
|
+
const D = { minimumChunkSize: 1e3 };
|
|
3445
|
+
await E.instance.openDocument(y, L, D), Z.fileName = y;
|
|
3430
3446
|
}, w = async (y) => {
|
|
3431
3447
|
try {
|
|
3432
|
-
const
|
|
3433
|
-
await E.instance.openUrl(y,
|
|
3434
|
-
const
|
|
3435
|
-
Z.fileName =
|
|
3436
|
-
} catch (
|
|
3437
|
-
console.error("Failed to open file from URL:",
|
|
3448
|
+
const L = { minimumChunkSize: 1e3 };
|
|
3449
|
+
await E.instance.openUrl(y, L);
|
|
3450
|
+
const D = y.split("/").pop();
|
|
3451
|
+
Z.fileName = D ?? "";
|
|
3452
|
+
} catch (L) {
|
|
3453
|
+
console.error("Failed to open file from URL:", L), oe({
|
|
3438
3454
|
message: n("main.message.failedToOpenFile", { fileName: y }),
|
|
3439
3455
|
grouping: !0,
|
|
3440
3456
|
type: "error",
|
|
3441
3457
|
showClose: !0
|
|
3442
3458
|
});
|
|
3443
3459
|
}
|
|
3444
|
-
},
|
|
3445
|
-
var z;
|
|
3460
|
+
}, k = async (y) => {
|
|
3446
3461
|
try {
|
|
3447
|
-
const
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
R.onload = (ne) => {
|
|
3457
|
-
var xe;
|
|
3458
|
-
const be = (xe = ne.target) == null ? void 0 : xe.result;
|
|
3459
|
-
be ? F(be) : G(new Error("Failed to read file content"));
|
|
3460
|
-
}, R.onerror = () => G(new Error("Failed to read file"));
|
|
3462
|
+
const L = new FileReader();
|
|
3463
|
+
L.readAsArrayBuffer(y);
|
|
3464
|
+
const D = await new Promise(
|
|
3465
|
+
(P, $) => {
|
|
3466
|
+
L.onload = (F) => {
|
|
3467
|
+
var J;
|
|
3468
|
+
const G = (J = F.target) == null ? void 0 : J.result;
|
|
3469
|
+
G ? P(G) : $(new Error("Failed to read file content"));
|
|
3470
|
+
}, L.onerror = () => $(new Error("Failed to read file"));
|
|
3461
3471
|
}
|
|
3462
|
-
),
|
|
3463
|
-
await E.instance.openDocument(y.name,
|
|
3464
|
-
} catch (
|
|
3465
|
-
console.error("Failed to open local file:",
|
|
3472
|
+
), H = { minimumChunkSize: 1e3 };
|
|
3473
|
+
await E.instance.openDocument(y.name, D, H), Z.fileName = y.name;
|
|
3474
|
+
} catch (L) {
|
|
3475
|
+
console.error("Failed to open local file:", L), oe({
|
|
3466
3476
|
message: n("main.message.failedToOpenFile", { fileName: y.name }),
|
|
3467
3477
|
grouping: !0,
|
|
3468
3478
|
type: "error",
|
|
@@ -3478,7 +3488,7 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3478
3488
|
), A(
|
|
3479
3489
|
() => e.localFile,
|
|
3480
3490
|
async (y) => {
|
|
3481
|
-
y &&
|
|
3491
|
+
y && k(y);
|
|
3482
3492
|
}
|
|
3483
3493
|
), A(
|
|
3484
3494
|
() => e.background,
|
|
@@ -3491,7 +3501,7 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3491
3501
|
y && (E.instance.baseUrl = y);
|
|
3492
3502
|
}
|
|
3493
3503
|
), U(async () => {
|
|
3494
|
-
p.value && (Ca(p.value), Ma(), g.value = E.instance), e.url ? w(e.url) : e.localFile &&
|
|
3504
|
+
p.value && (Ca(p.value), Ma(), g.value = E.instance), e.url ? w(e.url) : e.localFile && k(e.localFile), e.background != null && (E.instance.curView.backgroundColor = e.background), e.baseUrl && (E.instance.baseUrl = e.baseUrl);
|
|
3495
3505
|
}), X.on("message", (y) => {
|
|
3496
3506
|
switch (oe({
|
|
3497
3507
|
message: y.message,
|
|
@@ -3509,17 +3519,17 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3509
3519
|
r("System Error", y.message);
|
|
3510
3520
|
break;
|
|
3511
3521
|
default:
|
|
3512
|
-
|
|
3522
|
+
o("System Info", y.message);
|
|
3513
3523
|
break;
|
|
3514
3524
|
}
|
|
3515
3525
|
}), X.on("fonts-not-loaded", (y) => {
|
|
3516
|
-
const
|
|
3517
|
-
r(n("main.notification.title.fontNotFound"),
|
|
3526
|
+
const L = y.fonts.map((H) => H.fontName).join(", "), D = n("main.message.fontsNotLoaded", { fonts: L });
|
|
3527
|
+
r(n("main.notification.title.fontNotFound"), D);
|
|
3518
3528
|
}), X.on("fonts-not-found", (y) => {
|
|
3519
|
-
const
|
|
3529
|
+
const L = n("main.message.fontsNotFound", {
|
|
3520
3530
|
fonts: y.fonts.join(", ")
|
|
3521
3531
|
});
|
|
3522
|
-
a(n("main.notification.title.fontNotFound"),
|
|
3532
|
+
a(n("main.notification.title.fontNotFound"), L);
|
|
3523
3533
|
}), X.on("failed-to-get-avaiable-fonts", (y) => {
|
|
3524
3534
|
oe({
|
|
3525
3535
|
message: n("main.message.failedToGetAvaiableFonts", { url: y.url }),
|
|
@@ -3528,23 +3538,23 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3528
3538
|
showClose: !0
|
|
3529
3539
|
});
|
|
3530
3540
|
}), X.on("failed-to-open-file", (y) => {
|
|
3531
|
-
const
|
|
3541
|
+
const L = n("main.message.failedToOpenFile", {
|
|
3532
3542
|
fileName: y.fileName
|
|
3533
3543
|
});
|
|
3534
3544
|
oe({
|
|
3535
|
-
message:
|
|
3545
|
+
message: L,
|
|
3536
3546
|
grouping: !0,
|
|
3537
3547
|
type: "error",
|
|
3538
3548
|
showClose: !0
|
|
3539
|
-
}), r("File Opening Failed",
|
|
3549
|
+
}), r("File Opening Failed", L);
|
|
3540
3550
|
});
|
|
3541
|
-
const
|
|
3551
|
+
const B = () => {
|
|
3542
3552
|
v.value = !v.value;
|
|
3543
3553
|
}, V = () => {
|
|
3544
3554
|
v.value = !1;
|
|
3545
3555
|
};
|
|
3546
|
-
return (y,
|
|
3547
|
-
const
|
|
3556
|
+
return (y, L) => {
|
|
3557
|
+
const D = C("el-config-provider");
|
|
3548
3558
|
return u(), _(j, null, [
|
|
3549
3559
|
c("canvas", {
|
|
3550
3560
|
ref_key: "canvasRef",
|
|
@@ -3552,7 +3562,7 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3552
3562
|
class: "ml-cad-canvas"
|
|
3553
3563
|
}, null, 512),
|
|
3554
3564
|
g.value ? (u(), _("div", ba, [
|
|
3555
|
-
m(
|
|
3565
|
+
m(D, { locale: d(l) }, {
|
|
3556
3566
|
default: f(() => [
|
|
3557
3567
|
c("header", null, [
|
|
3558
3568
|
m(d(Il)),
|
|
@@ -3566,18 +3576,18 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3566
3576
|
]),
|
|
3567
3577
|
c("footer", null, [
|
|
3568
3578
|
m(d(rl)),
|
|
3569
|
-
m(d(ya), { onToggleNotificationCenter:
|
|
3579
|
+
m(d(ya), { onToggleNotificationCenter: B })
|
|
3570
3580
|
]),
|
|
3571
3581
|
m(d(Ot), { onFileRead: h }),
|
|
3572
3582
|
m(d(ul)),
|
|
3573
|
-
v.value ? (u(),
|
|
3583
|
+
v.value ? (u(), z(d(aa), {
|
|
3574
3584
|
key: 0,
|
|
3575
3585
|
onClose: V
|
|
3576
|
-
})) :
|
|
3586
|
+
})) : R("", !0)
|
|
3577
3587
|
]),
|
|
3578
3588
|
_: 1
|
|
3579
3589
|
}, 8, ["locale"])
|
|
3580
|
-
])) :
|
|
3590
|
+
])) : R("", !0)
|
|
3581
3591
|
], 64);
|
|
3582
3592
|
};
|
|
3583
3593
|
}
|
|
@@ -3607,15 +3617,15 @@ const Nl = /* @__PURE__ */ S({
|
|
|
3607
3617
|
const { registerDialog: t } = ae();
|
|
3608
3618
|
t({
|
|
3609
3619
|
name: "ReplacementDlg",
|
|
3610
|
-
component:
|
|
3620
|
+
component: be(Ht),
|
|
3611
3621
|
props: {}
|
|
3612
3622
|
}), t({
|
|
3613
3623
|
name: "PointStyleDlg",
|
|
3614
|
-
component:
|
|
3624
|
+
component: be(fo),
|
|
3615
3625
|
props: {}
|
|
3616
3626
|
});
|
|
3617
3627
|
}, Ca = (t) => {
|
|
3618
|
-
E.createInstance(t),
|
|
3628
|
+
E.createInstance(t), Ge(), ka(), E.instance.loadDefaultFonts();
|
|
3619
3629
|
}, Z = Y({
|
|
3620
3630
|
fileName: "",
|
|
3621
3631
|
dialogs: {
|
|
@@ -3634,8 +3644,8 @@ class La extends ce {
|
|
|
3634
3644
|
printSelectionSet(e) {
|
|
3635
3645
|
const n = e.doc.database.tables.blockTable.modelSpace;
|
|
3636
3646
|
e.view.selectionSet.ids.forEach((i) => {
|
|
3637
|
-
const
|
|
3638
|
-
|
|
3647
|
+
const l = n.getIdAt(i);
|
|
3648
|
+
l && console.log(l);
|
|
3639
3649
|
});
|
|
3640
3650
|
}
|
|
3641
3651
|
printStats(e) {
|
|
@@ -3643,14 +3653,14 @@ class La extends ce {
|
|
|
3643
3653
|
console.log("Geometry information in current drawing:");
|
|
3644
3654
|
for (let i = 0; i < n.length; ++i) {
|
|
3645
3655
|
console.group(`Layout: ${i}`);
|
|
3646
|
-
const
|
|
3656
|
+
const l = n[i], o = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], r = l.layers.map((s) => (o[0] = s.line.indexed.geometrySize / 1024, o[1] = s.line.nonIndexed.geometrySize / 1024, o[2] = s.mesh.indexed.geometrySize / 1024, o[3] = s.mesh.nonIndexed.geometrySize / 1024, o[4] = s.point.indexed.geometrySize / 1024, o[5] = s.point.nonIndexed.geometrySize / 1024, a[0] += o[0], a[1] += o[1], a[2] += o[2], a[3] += o[3], a[4] += o[4], a[5] += o[5], {
|
|
3647
3657
|
name: s.name,
|
|
3648
|
-
"idx line (KB)":
|
|
3649
|
-
"line (KB)":
|
|
3650
|
-
"idx mesh (KB)":
|
|
3651
|
-
"mesh (KB)":
|
|
3652
|
-
"idx point (KB)":
|
|
3653
|
-
"point (KB)":
|
|
3658
|
+
"idx line (KB)": o[0].toFixed(1),
|
|
3659
|
+
"line (KB)": o[1].toFixed(1),
|
|
3660
|
+
"idx mesh (KB)": o[2].toFixed(1),
|
|
3661
|
+
"mesh (KB)": o[3].toFixed(1),
|
|
3662
|
+
"idx point (KB)": o[4].toFixed(1),
|
|
3663
|
+
"point (KB)": o[5].toFixed(1),
|
|
3654
3664
|
"total geo (KB)": (s.summary.totalGeometrySize / 1024).toFixed(1),
|
|
3655
3665
|
"total mapping (KB)": (s.summary.totalMappingSize / 1024).toFixed(
|
|
3656
3666
|
1
|
|
@@ -3664,15 +3674,15 @@ class La extends ce {
|
|
|
3664
3674
|
"mesh (KB)": a[3].toFixed(1),
|
|
3665
3675
|
"idx point (KB)": a[4].toFixed(1),
|
|
3666
3676
|
"point (KB)": a[5].toFixed(1),
|
|
3667
|
-
"total geo (KB)": (
|
|
3668
|
-
"total mapping (KB)": (
|
|
3677
|
+
"total geo (KB)": (l.summary.totalSize.geometry / 1024).toFixed(1),
|
|
3678
|
+
"total mapping (KB)": (l.summary.totalSize.mapping / 1024).toFixed(
|
|
3669
3679
|
1
|
|
3670
3680
|
)
|
|
3671
3681
|
}), console.table(r), console.groupEnd();
|
|
3672
3682
|
}
|
|
3673
3683
|
}
|
|
3674
3684
|
printPerformanceData() {
|
|
3675
|
-
|
|
3685
|
+
Ye.getInstance().printAll();
|
|
3676
3686
|
}
|
|
3677
3687
|
}
|
|
3678
3688
|
class za extends ce {
|
|
@@ -3692,7 +3702,7 @@ export {
|
|
|
3692
3702
|
La as AcApLogCmd,
|
|
3693
3703
|
za as AcApMissedDataCmd,
|
|
3694
3704
|
Ba as AcApPointStyleCmd,
|
|
3695
|
-
|
|
3705
|
+
Ve as MlBaseDialog,
|
|
3696
3706
|
Qa as MlCadViewer,
|
|
3697
3707
|
rl as MlCommandLine,
|
|
3698
3708
|
It as MlDialogManager,
|
|
@@ -3706,26 +3716,27 @@ export {
|
|
|
3706
3716
|
fo as MlPointStyleDlg,
|
|
3707
3717
|
Ht as MlReplacementDlg,
|
|
3708
3718
|
ya as MlStatusBar,
|
|
3709
|
-
|
|
3719
|
+
Ie as MlToggleButton,
|
|
3710
3720
|
Ol as MlToolBars,
|
|
3711
3721
|
ye as cmdDescription,
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3722
|
+
Et as colorName,
|
|
3723
|
+
At as conversionSubStageName,
|
|
3724
|
+
$t as entityName,
|
|
3725
|
+
te as i18n,
|
|
3716
3726
|
se as isDark,
|
|
3717
3727
|
Ka as sysCmdDescription,
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3728
|
+
_t as toggleDark,
|
|
3729
|
+
gt as useCommands,
|
|
3730
|
+
ht as useCurrentPos,
|
|
3721
3731
|
ae as useDialogManager,
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3732
|
+
wt as useFileTypes,
|
|
3733
|
+
Nt as useIsMobile,
|
|
3734
|
+
yt as useLayers,
|
|
3735
|
+
bt as useLayouts,
|
|
3736
|
+
Fe as useLocale,
|
|
3737
|
+
Ne as useMissedData,
|
|
3727
3738
|
me as useNotificationCenter,
|
|
3728
3739
|
pe as useSettings,
|
|
3729
|
-
|
|
3740
|
+
Ft as useSystemVars,
|
|
3730
3741
|
Xa as userCmdDescription
|
|
3731
3742
|
};
|