@mlightcad/cad-viewer 1.1.5 → 1.1.8
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/statusBar/MlProgress.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +482 -470
- package/dist/locale/en/main.d.ts +1 -0
- package/dist/locale/en/main.d.ts.map +1 -1
- package/dist/locale/i18n.d.ts +2 -0
- package/dist/locale/i18n.d.ts.map +1 -1
- package/dist/locale/zh/main.d.ts +1 -0
- package/dist/locale/zh/main.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { AcEdCommandStack as W, AcApDocManager as
|
|
2
|
+
import { AcEdCommandStack as W, AcApDocManager as T, eventBus as Y, AcApSettingManager as K, AcApConvertToSvgCmd as Ae, AcApQNewCmd as Fe, AcApOpenCmd as Ie, registerWorkers as Re, AcEdCommand as re } from "@mlightcad/cad-simple-viewer";
|
|
3
3
|
import "element-plus/dist/index.css";
|
|
4
|
-
import { reactive as U, computed as k, defineComponent as L, onMounted as H, resolveComponent as M, createBlock as C, openBlock as
|
|
4
|
+
import { reactive as U, computed as k, defineComponent as L, onMounted as H, resolveComponent as M, createBlock as C, openBlock as u, unref as v, withCtx as p, renderSlot as ie, createVNode as g, createTextVNode as F, toDisplayString as D, createElementVNode as d, ref as x, onUnmounted as te, watch as E, createElementBlock as y, Fragment as j, renderList as X, resolveDynamicComponent as ge, mergeProps as Ne, mergeModels as J, useCssVars as Se, useModel as ve, createCommentVNode as q, normalizeStyle as pe, normalizeClass as Ce, pushScopeId as Le, popScopeId as ze, onBeforeUnmount as De, withKeys as Pe, isRef as Oe, markRaw as he } from "vue";
|
|
5
5
|
import { AcDbDatabaseConverterManager as He, acdbHostApplicationServices as Be, AcCmPerformanceCollector as Ge } from "@mlightcad/data-model";
|
|
6
6
|
import { useDark as We, useToggle as qe, useFullscreen as Ue } from "@vueuse/core";
|
|
7
7
|
import je from "element-plus/es/locale/lang/en";
|
|
8
8
|
import Ye from "element-plus/es/locale/lang/zh-cn";
|
|
9
9
|
import { useI18n as N, createI18n as Ke } from "vue-i18n";
|
|
10
|
-
import { ElDialog as Xe, ElButton as _e, ElTable as Qe, ElAutocomplete as Ze, ElProgress as Je, ElLoading as we, ElMessage as
|
|
10
|
+
import { ElDialog as Xe, ElButton as _e, ElTable as Qe, ElAutocomplete as Ze, ElProgress as Je, ElLoading as we, ElMessage as Q } from "element-plus";
|
|
11
11
|
import { ElIcon as se, ElDropdown as et, ElDropdownMenu as tt, ElDropdownItem as nt, ElButtonGroup as ot, ElTooltip as lt, ElButton as at } from "element-plus/es";
|
|
12
12
|
import "element-plus/es/components/base/style/css";
|
|
13
13
|
import "element-plus/es/components/icon/style/css";
|
|
@@ -75,32 +75,32 @@ const ct = /* @__PURE__ */ L({
|
|
|
75
75
|
component: "BaseDialog",
|
|
76
76
|
props: i.props
|
|
77
77
|
});
|
|
78
|
-
}), (r,
|
|
78
|
+
}), (r, c) => {
|
|
79
79
|
const w = M("el-divider");
|
|
80
|
-
return
|
|
80
|
+
return u(), C(v(Xe), {
|
|
81
81
|
"model-value": t.modelValue,
|
|
82
82
|
width: t.width,
|
|
83
83
|
close: "handleCancel",
|
|
84
84
|
class: "ml-dialog"
|
|
85
85
|
}, {
|
|
86
86
|
header: p(() => [
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
d("div", null, D(t.title), 1),
|
|
88
|
+
g(w, { class: "ml-dialog-header-bottom-line" })
|
|
89
89
|
]),
|
|
90
90
|
footer: p(() => [
|
|
91
|
-
|
|
92
|
-
v(
|
|
91
|
+
g(w, { class: "ml-dialog-footer-top-line" }),
|
|
92
|
+
g(v(_e), { onClick: s }, {
|
|
93
93
|
default: p(() => [
|
|
94
|
-
F(D(
|
|
94
|
+
F(D(v(n)("dialog.baseDialog.cancel")), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
v(
|
|
98
|
+
g(v(_e), {
|
|
99
99
|
type: "primary",
|
|
100
100
|
onClick: a
|
|
101
101
|
}, {
|
|
102
102
|
default: p(() => [
|
|
103
|
-
F(D(
|
|
103
|
+
F(D(v(n)("dialog.baseDialog.ok")), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
})
|
|
@@ -159,7 +159,7 @@ function pt() {
|
|
|
159
159
|
t.value.add(n.fileType);
|
|
160
160
|
}), t;
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function gt(t) {
|
|
163
163
|
const e = U([]), n = t.curDocument, i = (l) => {
|
|
164
164
|
const o = l.tables.layerTable.newIterator();
|
|
165
165
|
for (const a of o)
|
|
@@ -189,7 +189,7 @@ function vt(t) {
|
|
|
189
189
|
e.length = 0, i(l.doc.database);
|
|
190
190
|
}), e;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function vt(t) {
|
|
193
193
|
const e = U([]), n = t.curDocument, i = (l) => {
|
|
194
194
|
const o = l.dictionaries.layouts.newIterator();
|
|
195
195
|
e.length = 0;
|
|
@@ -511,7 +511,8 @@ const ft = {
|
|
|
511
511
|
fontNotLoaded: 'Font "{fontName}" can not be loaded from "{url}"!',
|
|
512
512
|
failedToGetAvaiableFonts: 'Failed to get avaiable fonts from "{url}"!',
|
|
513
513
|
failedToOpenFile: 'Failed to open file "{fileName}"!',
|
|
514
|
-
fetchingDrawingFile: "Fetching file ..."
|
|
514
|
+
fetchingDrawingFile: "Fetching file ...",
|
|
515
|
+
unknownEntities: "This drawing contains {count} unknown or unsupported entities! Those entities will not be shown."
|
|
515
516
|
}
|
|
516
517
|
}, yt = {
|
|
517
518
|
ACAD: {
|
|
@@ -809,9 +810,10 @@ const ft = {
|
|
|
809
810
|
loadingFonts: "正在加载字体...",
|
|
810
811
|
loadingDwgConverter: "正在加载DWG转换器...",
|
|
811
812
|
fontNotLoaded: '无法从"{url}"加载字体"{fontName}"!',
|
|
812
|
-
failedToGetAvaiableFonts: '无法从"{url}"
|
|
813
|
-
failedToOpenFile: '无法打开文件"{fileName}"
|
|
814
|
-
fetchingDrawingFile: "正在加载图纸文件..."
|
|
813
|
+
failedToGetAvaiableFonts: '无法从"{url}"获取可用的字体信息!',
|
|
814
|
+
failedToOpenFile: '无法打开文件"{fileName}"!',
|
|
815
|
+
fetchingDrawingFile: "正在加载图纸文件...",
|
|
816
|
+
unknownEntities: "这张图纸中包含了{count}个未知或不支持的实体,这些实体将无法显示!"
|
|
815
817
|
}
|
|
816
818
|
}, Mt = () => {
|
|
817
819
|
const t = localStorage.getItem("preferred_lang");
|
|
@@ -872,8 +874,8 @@ function Ee(t) {
|
|
|
872
874
|
() => e.value,
|
|
873
875
|
(r) => {
|
|
874
876
|
if (!t || t === "default") {
|
|
875
|
-
const
|
|
876
|
-
i.value =
|
|
877
|
+
const c = r === "zh" ? "zh" : "en";
|
|
878
|
+
i.value = c;
|
|
877
879
|
}
|
|
878
880
|
}
|
|
879
881
|
);
|
|
@@ -889,7 +891,7 @@ function Ee(t) {
|
|
|
889
891
|
}
|
|
890
892
|
function $e() {
|
|
891
893
|
const t = U(/* @__PURE__ */ new Map()), e = U(/* @__PURE__ */ new Map()), n = () => {
|
|
892
|
-
const i =
|
|
894
|
+
const i = T.instance.curView.missedData, l = K.instance.fontMapping;
|
|
893
895
|
t.clear(), Object.keys(i.fonts).forEach((o) => {
|
|
894
896
|
const a = l[o];
|
|
895
897
|
t.set(o, a || "");
|
|
@@ -901,7 +903,7 @@ function $e() {
|
|
|
901
903
|
});
|
|
902
904
|
});
|
|
903
905
|
};
|
|
904
|
-
return
|
|
906
|
+
return T.instance.events.documentActivated.addEventListener(() => {
|
|
905
907
|
n();
|
|
906
908
|
}), Y.on("font-not-found", (i) => {
|
|
907
909
|
n();
|
|
@@ -935,10 +937,10 @@ const Bt = /* @__PURE__ */ L({
|
|
|
935
937
|
return e({
|
|
936
938
|
toggleDialog: i,
|
|
937
939
|
registerDialog: l
|
|
938
|
-
}), (o, a) => (
|
|
940
|
+
}), (o, a) => (u(!0), y(j, null, X(v(n), (s) => (u(), y("div", {
|
|
939
941
|
key: s.name
|
|
940
942
|
}, [
|
|
941
|
-
(
|
|
943
|
+
(u(), C(ge(s.component), Ne({
|
|
942
944
|
modelValue: s.visible,
|
|
943
945
|
"onUpdate:modelValue": (r) => s.visible = r
|
|
944
946
|
}, { ref_for: !0 }, s.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
@@ -951,8 +953,8 @@ const Bt = /* @__PURE__ */ L({
|
|
|
951
953
|
const n = e, i = x(null), l = pt(), o = k(() => {
|
|
952
954
|
const s = Array.from(l.value);
|
|
953
955
|
let r = "";
|
|
954
|
-
for (let
|
|
955
|
-
|
|
956
|
+
for (let c = 0, w = s.length; c < w; ++c)
|
|
957
|
+
c == w - 1 ? r += `.${s[c]}` : r += `.${s[c]}, `;
|
|
956
958
|
return r;
|
|
957
959
|
});
|
|
958
960
|
H(() => {
|
|
@@ -963,19 +965,19 @@ const Bt = /* @__PURE__ */ L({
|
|
|
963
965
|
});
|
|
964
966
|
const a = (s) => {
|
|
965
967
|
var w, f;
|
|
966
|
-
const
|
|
967
|
-
if (
|
|
968
|
-
const
|
|
969
|
-
|
|
968
|
+
const c = (w = s.target.files) == null ? void 0 : w[0];
|
|
969
|
+
if (c && c.name) {
|
|
970
|
+
const m = (f = c.name.split(".").pop()) == null ? void 0 : f.toLocaleLowerCase(), h = new FileReader();
|
|
971
|
+
m == "dxf" ? h.readAsText(c) : m == "dwg" && h.readAsArrayBuffer(c), h.onload = (_) => {
|
|
970
972
|
var S;
|
|
971
973
|
const b = (S = _.target) == null ? void 0 : S.result;
|
|
972
|
-
b && n("file-read",
|
|
974
|
+
b && n("file-read", c.name, b);
|
|
973
975
|
}, h.onerror = () => {
|
|
974
976
|
console.error("Failed to read the file.");
|
|
975
977
|
};
|
|
976
978
|
}
|
|
977
979
|
};
|
|
978
|
-
return (s, r) => (
|
|
980
|
+
return (s, r) => (u(), y("input", {
|
|
979
981
|
type: "file",
|
|
980
982
|
ref_key: "fileInput",
|
|
981
983
|
ref: i,
|
|
@@ -995,20 +997,20 @@ const Bt = /* @__PURE__ */ L({
|
|
|
995
997
|
}),
|
|
996
998
|
emits: /* @__PURE__ */ J(["click"], ["update:modelValue"]),
|
|
997
999
|
setup(t, { emit: e }) {
|
|
998
|
-
Se((
|
|
1000
|
+
Se((c) => ({
|
|
999
1001
|
a97b120a: a.value
|
|
1000
1002
|
}));
|
|
1001
|
-
const n = t, i =
|
|
1003
|
+
const n = t, i = ve(t, "modelValue"), l = e, o = k(() => i.value ? n.data.onIcon : n.data.offIcon), a = k(() => n.size + "px"), s = k(() => i.value ? n.data.onTooltip : n.data.offTooltip), r = () => {
|
|
1002
1004
|
l("click", i.value);
|
|
1003
1005
|
};
|
|
1004
|
-
return (
|
|
1005
|
-
const f = M("el-button"),
|
|
1006
|
-
return
|
|
1006
|
+
return (c, w) => {
|
|
1007
|
+
const f = M("el-button"), m = M("el-tooltip");
|
|
1008
|
+
return u(), C(m, {
|
|
1007
1009
|
content: s.value,
|
|
1008
1010
|
"hide-after": 0
|
|
1009
1011
|
}, {
|
|
1010
1012
|
default: p(() => [
|
|
1011
|
-
|
|
1013
|
+
g(f, {
|
|
1012
1014
|
class: "ml-toggle-button",
|
|
1013
1015
|
icon: o.value,
|
|
1014
1016
|
onClick: r
|
|
@@ -1021,11 +1023,11 @@ const Bt = /* @__PURE__ */ L({
|
|
|
1021
1023
|
}), Ve = /* @__PURE__ */ G($t, [["__scopeId", "data-v-48d6b055"]]), Vt = /* @__PURE__ */ L({
|
|
1022
1024
|
__name: "MlReplacementDlg",
|
|
1023
1025
|
setup(t) {
|
|
1024
|
-
const { t: e } = N(), { fonts: n, images: i } = $e(), l = x(!0), o = k(() => n.size > 0 ? "font" : "image"), a = x(null), s = k(() =>
|
|
1025
|
-
const
|
|
1026
|
+
const { t: e } = N(), { fonts: n, images: i } = $e(), l = x(!0), o = k(() => n.size > 0 ? "font" : "image"), a = x(null), s = k(() => T.instance.avaiableFonts.map((h) => h.name[0])), r = () => {
|
|
1027
|
+
const m = T.instance.curDocument.database;
|
|
1026
1028
|
i.forEach((_) => {
|
|
1027
1029
|
_.file && _.ids.forEach((b) => {
|
|
1028
|
-
const S =
|
|
1030
|
+
const S = m.tables.blockTable.modelSpace.getIdAt(
|
|
1029
1031
|
b
|
|
1030
1032
|
);
|
|
1031
1033
|
S.image = _.file, S.triggerModifiedEvent();
|
|
@@ -1035,78 +1037,78 @@ const Bt = /* @__PURE__ */ L({
|
|
|
1035
1037
|
n.forEach((_, b) => {
|
|
1036
1038
|
b && _ && h.setFontMapping(b, _);
|
|
1037
1039
|
});
|
|
1038
|
-
},
|
|
1040
|
+
}, c = (m) => {
|
|
1039
1041
|
a.value && (a.value.click(), a.value.onchange = () => {
|
|
1040
|
-
w(
|
|
1042
|
+
w(m);
|
|
1041
1043
|
});
|
|
1042
|
-
}, w = (
|
|
1044
|
+
}, w = (m) => {
|
|
1043
1045
|
var _, b;
|
|
1044
1046
|
const h = (b = (_ = a.value) == null ? void 0 : _.files) == null ? void 0 : b[0];
|
|
1045
|
-
h && (
|
|
1046
|
-
}, f = (
|
|
1047
|
-
n.set(
|
|
1047
|
+
h && (m.file = h);
|
|
1048
|
+
}, f = (m, h) => {
|
|
1049
|
+
n.set(m, h);
|
|
1048
1050
|
};
|
|
1049
|
-
return (
|
|
1050
|
-
const _ = M("el-col"), b = M("el-row"), S = M("el-option"), $ = M("el-select"), I = M("el-tab-pane"), V = M("el-table-column"),
|
|
1051
|
-
return
|
|
1052
|
-
title:
|
|
1051
|
+
return (m, h) => {
|
|
1052
|
+
const _ = M("el-col"), b = M("el-row"), S = M("el-option"), $ = M("el-select"), I = M("el-tab-pane"), V = M("el-table-column"), B = M("el-button"), P = M("el-table"), R = M("el-tabs");
|
|
1053
|
+
return u(), C(Te, {
|
|
1054
|
+
title: v(e)("dialog.replacementDlg.title"),
|
|
1053
1055
|
modelValue: l.value,
|
|
1054
1056
|
"onUpdate:modelValue": h[1] || (h[1] = (z) => l.value = z),
|
|
1055
1057
|
name: "ReplacementDlg",
|
|
1056
1058
|
onOk: r
|
|
1057
1059
|
}, {
|
|
1058
1060
|
default: p(() => [
|
|
1059
|
-
|
|
1061
|
+
g(R, {
|
|
1060
1062
|
type: "card",
|
|
1061
1063
|
modelValue: o.value,
|
|
1062
1064
|
"onUpdate:modelValue": h[0] || (h[0] = (z) => o.value = z)
|
|
1063
1065
|
}, {
|
|
1064
1066
|
default: p(() => [
|
|
1065
|
-
|
|
1067
|
+
v(n).size > 0 ? (u(), C(I, {
|
|
1066
1068
|
key: 0,
|
|
1067
|
-
label:
|
|
1069
|
+
label: v(e)("dialog.replacementDlg.fontTabName"),
|
|
1068
1070
|
name: "font"
|
|
1069
1071
|
}, {
|
|
1070
1072
|
default: p(() => [
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
+
d("div", null, [
|
|
1074
|
+
g(b, null, {
|
|
1073
1075
|
default: p(() => [
|
|
1074
|
-
|
|
1076
|
+
g(_, { span: 12 }, {
|
|
1075
1077
|
default: p(() => [
|
|
1076
|
-
|
|
1078
|
+
d("span", null, D(v(e)("dialog.replacementDlg.missedFont")), 1)
|
|
1077
1079
|
]),
|
|
1078
1080
|
_: 1
|
|
1079
1081
|
}),
|
|
1080
|
-
|
|
1082
|
+
g(_, { span: 12 }, {
|
|
1081
1083
|
default: p(() => [
|
|
1082
|
-
|
|
1084
|
+
d("span", null, D(v(e)("dialog.replacementDlg.replacedFont")), 1)
|
|
1083
1085
|
]),
|
|
1084
1086
|
_: 1
|
|
1085
1087
|
})
|
|
1086
1088
|
]),
|
|
1087
1089
|
_: 1
|
|
1088
1090
|
}),
|
|
1089
|
-
(
|
|
1091
|
+
(u(!0), y(j, null, X(v(n), ([z, A]) => (u(), C(b, {
|
|
1090
1092
|
key: z,
|
|
1091
1093
|
style: { "margin-top": "10px" }
|
|
1092
1094
|
}, {
|
|
1093
1095
|
default: p(() => [
|
|
1094
|
-
|
|
1096
|
+
g(_, { span: 12 }, {
|
|
1095
1097
|
default: p(() => [
|
|
1096
|
-
|
|
1098
|
+
d("span", null, D(z), 1)
|
|
1097
1099
|
]),
|
|
1098
1100
|
_: 2
|
|
1099
1101
|
}, 1024),
|
|
1100
|
-
|
|
1102
|
+
g(_, { span: 12 }, {
|
|
1101
1103
|
default: p(() => [
|
|
1102
|
-
|
|
1104
|
+
g($, {
|
|
1103
1105
|
"model-value": A,
|
|
1104
|
-
placeholder:
|
|
1106
|
+
placeholder: v(e)("dialog.replacementDlg.selectFont"),
|
|
1105
1107
|
"onUpdate:modelValue": (O) => f(z, O),
|
|
1106
1108
|
style: { width: "100%" }
|
|
1107
1109
|
}, {
|
|
1108
1110
|
default: p(() => [
|
|
1109
|
-
(
|
|
1111
|
+
(u(!0), y(j, null, X(s.value, (O, de) => (u(), C(S, {
|
|
1110
1112
|
key: de,
|
|
1111
1113
|
label: O,
|
|
1112
1114
|
value: O
|
|
@@ -1124,35 +1126,35 @@ const Bt = /* @__PURE__ */ L({
|
|
|
1124
1126
|
]),
|
|
1125
1127
|
_: 1
|
|
1126
1128
|
}, 8, ["label"])) : q("", !0),
|
|
1127
|
-
|
|
1129
|
+
v(i).size > 0 ? (u(), C(I, {
|
|
1128
1130
|
key: 1,
|
|
1129
|
-
label:
|
|
1131
|
+
label: v(e)("dialog.replacementDlg.imageTabName"),
|
|
1130
1132
|
name: "image"
|
|
1131
1133
|
}, {
|
|
1132
1134
|
default: p(() => [
|
|
1133
|
-
|
|
1134
|
-
data: Array.from(
|
|
1135
|
+
g(P, {
|
|
1136
|
+
data: Array.from(v(i).values()),
|
|
1135
1137
|
style: { width: "100%" },
|
|
1136
1138
|
"v-show": !1
|
|
1137
1139
|
}, {
|
|
1138
1140
|
default: p(() => [
|
|
1139
|
-
|
|
1140
|
-
label:
|
|
1141
|
+
g(V, {
|
|
1142
|
+
label: v(e)("dialog.replacementDlg.file"),
|
|
1141
1143
|
prop: "fileName",
|
|
1142
1144
|
"min-width": 0,
|
|
1143
1145
|
flex: 1
|
|
1144
1146
|
}, null, 8, ["label"]),
|
|
1145
|
-
|
|
1146
|
-
label:
|
|
1147
|
+
g(V, {
|
|
1148
|
+
label: v(e)("dialog.replacementDlg.replace"),
|
|
1147
1149
|
fixed: "right",
|
|
1148
1150
|
width: "60"
|
|
1149
1151
|
}, {
|
|
1150
1152
|
default: p(({ row: z }) => [
|
|
1151
|
-
|
|
1153
|
+
g(B, {
|
|
1152
1154
|
link: "",
|
|
1153
1155
|
type: "primary",
|
|
1154
1156
|
size: "small",
|
|
1155
|
-
onClick: (A) =>
|
|
1157
|
+
onClick: (A) => c(z)
|
|
1156
1158
|
}, {
|
|
1157
1159
|
default: p(() => h[2] || (h[2] = [
|
|
1158
1160
|
F(" ... ", -1)
|
|
@@ -1166,7 +1168,7 @@ const Bt = /* @__PURE__ */ L({
|
|
|
1166
1168
|
]),
|
|
1167
1169
|
_: 1
|
|
1168
1170
|
}, 8, ["data"]),
|
|
1169
|
-
|
|
1171
|
+
d("input", {
|
|
1170
1172
|
type: "file",
|
|
1171
1173
|
ref_key: "fileInput",
|
|
1172
1174
|
ref: a,
|
|
@@ -1192,8 +1194,8 @@ const Bt = /* @__PURE__ */ L({
|
|
|
1192
1194
|
viewBox: "0 0 15 15"
|
|
1193
1195
|
};
|
|
1194
1196
|
function Ft(t, e) {
|
|
1195
|
-
return
|
|
1196
|
-
|
|
1197
|
+
return u(), y("svg", At, e[0] || (e[0] = [
|
|
1198
|
+
d("path", {
|
|
1197
1199
|
fill: "currentColor",
|
|
1198
1200
|
d: "M1.417 11.667h1.916v.833H0V9.167h.833v1.916l2.5-2.5.584.584zm9.666 0-2.5-2.5.584-.584 2.5 2.5V9.167h.833V12.5H9.167v-.833zM1.417.833l2.5 2.5-.584.584-2.5-2.5v1.916H0V0h3.333v.833zm9.666 0H9.167V0H12.5v3.333h-.833V1.417l-2.5 2.5-.584-.584z"
|
|
1199
1201
|
}, null, -1)
|
|
@@ -1206,8 +1208,8 @@ const be = { render: Ft }, It = {
|
|
|
1206
1208
|
viewBox: "0 0 512 512"
|
|
1207
1209
|
};
|
|
1208
1210
|
function Rt(t, e) {
|
|
1209
|
-
return
|
|
1210
|
-
|
|
1211
|
+
return u(), y("svg", It, e[0] || (e[0] = [
|
|
1212
|
+
d("path", {
|
|
1211
1213
|
fill: "none",
|
|
1212
1214
|
stroke: "currentColor",
|
|
1213
1215
|
"stroke-linecap": "round",
|
|
@@ -1215,7 +1217,7 @@ function Rt(t, e) {
|
|
|
1215
1217
|
"stroke-width": "32",
|
|
1216
1218
|
d: "m434.8 137.65-149.36-68.1c-16.19-7.4-42.69-7.4-58.88 0L77.3 137.65c-17.6 8-17.6 21.09 0 29.09l148 67.5c16.89 7.7 44.69 7.7 61.58 0l148-67.5c17.52-8 17.52-21.1-.08-29.09M160 308.52l-82.7 37.11c-17.6 8-17.6 21.1 0 29.1l148 67.5c16.89 7.69 44.69 7.69 61.58 0l148-67.5c17.6-8 17.6-21.1 0-29.1l-79.94-38.47"
|
|
1217
1219
|
}, null, -1),
|
|
1218
|
-
|
|
1220
|
+
d("path", {
|
|
1219
1221
|
fill: "none",
|
|
1220
1222
|
stroke: "currentColor",
|
|
1221
1223
|
"stroke-linecap": "round",
|
|
@@ -1232,8 +1234,8 @@ const Nt = { render: Rt }, Pt = {
|
|
|
1232
1234
|
viewBox: "0 0 20 20"
|
|
1233
1235
|
};
|
|
1234
1236
|
function Ot(t, e) {
|
|
1235
|
-
return
|
|
1236
|
-
|
|
1237
|
+
return u(), y("svg", Pt, e[0] || (e[0] = [
|
|
1238
|
+
d("path", { d: "m15.08 12.854.002-.002V5.59c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.638-.414-.638 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.444c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.232c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388q-.39-.669-.776-1.338c-.338-.482-1.1-.15-.794.38l.978 1.698.02.04q.829 1.418 1.658 2.834c.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.792-.124 2.56-.612q.45-.285.816-.68a4 4 0 0 0 .734-1.204c.176-.482.258-.97.258-1.494m-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894a4.8 4.8 0 0 1-.964 1.576 5.9 5.9 0 0 1-1.046.884c-.978.612-2.146.862-3.26.774a5.34 5.34 0 0 1-3.098-1.352 5.4 5.4 0 0 1-.87-1.034l-1.672-2.88-.012-.028-.978-1.706c-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096q.061.11.122.218V4.234c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.972-.51 2.222.102 2.222 1.284v.06z" }, null, -1)
|
|
1237
1239
|
]));
|
|
1238
1240
|
}
|
|
1239
1241
|
const Ht = { render: Ot }, Gt = {
|
|
@@ -1243,8 +1245,8 @@ const Ht = { render: Ot }, Gt = {
|
|
|
1243
1245
|
viewBox: "0 0 20 20"
|
|
1244
1246
|
};
|
|
1245
1247
|
function Wt(t, e) {
|
|
1246
|
-
return
|
|
1247
|
-
|
|
1248
|
+
return u(), y("svg", Gt, e[0] || (e[0] = [
|
|
1249
|
+
d("path", {
|
|
1248
1250
|
fill: "currentColor",
|
|
1249
1251
|
d: "M10.438 15.298h.002l4.86-4.86-9.722-4.86zM18 10l-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2L10 18 2.4 2.4z"
|
|
1250
1252
|
}, null, -1)
|
|
@@ -1257,8 +1259,8 @@ const qt = { render: Wt }, Ut = {
|
|
|
1257
1259
|
viewBox: "0 0 20 20"
|
|
1258
1260
|
};
|
|
1259
1261
|
function jt(t, e) {
|
|
1260
|
-
return
|
|
1261
|
-
|
|
1262
|
+
return u(), y("svg", Ut, e[0] || (e[0] = [
|
|
1263
|
+
d("path", {
|
|
1262
1264
|
fill: "currentColor",
|
|
1263
1265
|
d: "M15.083 14.808a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575a8.334 8.334 0 0 1-11.525-.692 8.326 8.326 0 0 1 .233-11.542C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525m-3.55-2.608V7.208H7.208v5.584zM5.875 5.875h8.25v8.25h-8.25z"
|
|
1264
1266
|
}, null, -1)
|
|
@@ -1271,8 +1273,8 @@ const Yt = { render: jt }, Kt = {
|
|
|
1271
1273
|
viewBox: "0 0 20 20"
|
|
1272
1274
|
};
|
|
1273
1275
|
function Xt(t, e) {
|
|
1274
|
-
return
|
|
1275
|
-
|
|
1276
|
+
return u(), y("svg", Kt, e[0] || (e[0] = [
|
|
1277
|
+
d("path", {
|
|
1276
1278
|
fill: "currentColor",
|
|
1277
1279
|
d: "m9.333 14.125-3.458-3.458v3.458zm4.792-3.458-3.458 3.458h3.458zm-3.458-4.792 3.458 3.458V5.875zM5.875 9.333l3.458-3.458H5.875zm9.208 5.475a7 7 0 0 0 1.909-4.825 7.001 7.001 0 1 0-2.167 5.083c.092-.083.175-.174.258-.258m1.259.592 2.575 2.575-.942.942-2.575-2.575c-3.408 2.9-8.492 2.591-11.525-.692S.942 7.275 4.108 4.108C7.267.942 12.367.842 15.65 3.875s3.592 8.117.692 11.525"
|
|
1278
1280
|
}, null, -1)
|
|
@@ -1285,8 +1287,8 @@ const Qt = { render: Xt }, Zt = {
|
|
|
1285
1287
|
viewBox: "0 0 20 20"
|
|
1286
1288
|
};
|
|
1287
1289
|
function Jt(t, e) {
|
|
1288
|
-
return
|
|
1289
|
-
|
|
1290
|
+
return u(), y("svg", Zt, e[0] || (e[0] = [
|
|
1291
|
+
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1)
|
|
1290
1292
|
]));
|
|
1291
1293
|
}
|
|
1292
1294
|
const en = { render: Jt }, tn = {
|
|
@@ -1296,7 +1298,7 @@ const en = { render: Jt }, tn = {
|
|
|
1296
1298
|
viewBox: "0 0 20 20"
|
|
1297
1299
|
};
|
|
1298
1300
|
function nn(t, e) {
|
|
1299
|
-
return
|
|
1301
|
+
return u(), y("svg", tn);
|
|
1300
1302
|
}
|
|
1301
1303
|
const on = { render: nn }, ln = {
|
|
1302
1304
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1305,9 +1307,9 @@ const on = { render: nn }, ln = {
|
|
|
1305
1307
|
viewBox: "0 0 20 20"
|
|
1306
1308
|
};
|
|
1307
1309
|
function an(t, e) {
|
|
1308
|
-
return
|
|
1309
|
-
|
|
1310
|
-
|
|
1310
|
+
return u(), y("svg", ln, e[0] || (e[0] = [
|
|
1311
|
+
d("path", { d: "M2 9.5h16v1H2z" }, null, -1),
|
|
1312
|
+
d("path", { d: "M9.5 2h1v16h-1z" }, null, -1)
|
|
1311
1313
|
]));
|
|
1312
1314
|
}
|
|
1313
1315
|
const rn = { render: an }, sn = {
|
|
@@ -1317,9 +1319,9 @@ const rn = { render: an }, sn = {
|
|
|
1317
1319
|
viewBox: "0 0 20 20"
|
|
1318
1320
|
};
|
|
1319
1321
|
function cn(t, e) {
|
|
1320
|
-
return
|
|
1321
|
-
|
|
1322
|
-
|
|
1322
|
+
return u(), y("svg", sn, e[0] || (e[0] = [
|
|
1323
|
+
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1324
|
+
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1323
1325
|
]));
|
|
1324
1326
|
}
|
|
1325
1327
|
const un = { render: cn }, dn = {
|
|
@@ -1329,31 +1331,31 @@ const un = { render: cn }, dn = {
|
|
|
1329
1331
|
viewBox: "0 0 20 20"
|
|
1330
1332
|
};
|
|
1331
1333
|
function mn(t, e) {
|
|
1332
|
-
return
|
|
1333
|
-
|
|
1334
|
+
return u(), y("svg", dn, e[0] || (e[0] = [
|
|
1335
|
+
d("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
|
|
1334
1336
|
]));
|
|
1335
1337
|
}
|
|
1336
|
-
const pn = { render: mn },
|
|
1338
|
+
const pn = { render: mn }, gn = {
|
|
1337
1339
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1338
1340
|
width: "1em",
|
|
1339
1341
|
height: "1em",
|
|
1340
1342
|
viewBox: "0 0 20 20"
|
|
1341
1343
|
};
|
|
1342
|
-
function
|
|
1343
|
-
return
|
|
1344
|
-
|
|
1345
|
-
|
|
1344
|
+
function vn(t, e) {
|
|
1345
|
+
return u(), y("svg", gn, e[0] || (e[0] = [
|
|
1346
|
+
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1347
|
+
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1346
1348
|
]));
|
|
1347
1349
|
}
|
|
1348
|
-
const fn = { render:
|
|
1350
|
+
const fn = { render: vn }, hn = {
|
|
1349
1351
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1350
1352
|
width: "1em",
|
|
1351
1353
|
height: "1em",
|
|
1352
1354
|
viewBox: "0 0 20 20"
|
|
1353
1355
|
};
|
|
1354
1356
|
function _n(t, e) {
|
|
1355
|
-
return
|
|
1356
|
-
|
|
1357
|
+
return u(), y("svg", hn, e[0] || (e[0] = [
|
|
1358
|
+
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1357
1359
|
]));
|
|
1358
1360
|
}
|
|
1359
1361
|
const wn = { render: _n }, yn = {
|
|
@@ -1363,10 +1365,10 @@ const wn = { render: _n }, yn = {
|
|
|
1363
1365
|
viewBox: "0 0 20 20"
|
|
1364
1366
|
};
|
|
1365
1367
|
function bn(t, e) {
|
|
1366
|
-
return
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1368
|
+
return u(), y("svg", yn, e[0] || (e[0] = [
|
|
1369
|
+
d("path", { d: "M3 9.5h14v1H3z" }, null, -1),
|
|
1370
|
+
d("path", { d: "M9.5 3h1v14h-1z" }, null, -1),
|
|
1371
|
+
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1370
1372
|
]));
|
|
1371
1373
|
}
|
|
1372
1374
|
const xn = { render: bn }, kn = {
|
|
@@ -1376,10 +1378,10 @@ const xn = { render: bn }, kn = {
|
|
|
1376
1378
|
viewBox: "0 0 20 20"
|
|
1377
1379
|
};
|
|
1378
1380
|
function Mn(t, e) {
|
|
1379
|
-
return
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1381
|
+
return u(), y("svg", kn, e[0] || (e[0] = [
|
|
1382
|
+
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1383
|
+
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
1384
|
+
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1383
1385
|
]));
|
|
1384
1386
|
}
|
|
1385
1387
|
const Sn = { render: Mn }, Cn = {
|
|
@@ -1389,9 +1391,9 @@ const Sn = { render: Mn }, Cn = {
|
|
|
1389
1391
|
viewBox: "0 0 20 20"
|
|
1390
1392
|
};
|
|
1391
1393
|
function Ln(t, e) {
|
|
1392
|
-
return
|
|
1393
|
-
|
|
1394
|
-
|
|
1394
|
+
return u(), y("svg", Cn, e[0] || (e[0] = [
|
|
1395
|
+
d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
1396
|
+
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1395
1397
|
]));
|
|
1396
1398
|
}
|
|
1397
1399
|
const zn = { render: Ln }, Dn = {
|
|
@@ -1401,9 +1403,9 @@ const zn = { render: Ln }, Dn = {
|
|
|
1401
1403
|
viewBox: "0 0 20 20"
|
|
1402
1404
|
};
|
|
1403
1405
|
function Bn(t, e) {
|
|
1404
|
-
return
|
|
1405
|
-
|
|
1406
|
-
|
|
1406
|
+
return u(), y("svg", Dn, e[0] || (e[0] = [
|
|
1407
|
+
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1408
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1407
1409
|
]));
|
|
1408
1410
|
}
|
|
1409
1411
|
const Tn = { render: Bn }, En = {
|
|
@@ -1413,8 +1415,8 @@ const Tn = { render: Bn }, En = {
|
|
|
1413
1415
|
viewBox: "0 0 20 20"
|
|
1414
1416
|
};
|
|
1415
1417
|
function $n(t, e) {
|
|
1416
|
-
return
|
|
1417
|
-
|
|
1418
|
+
return u(), y("svg", En, e[0] || (e[0] = [
|
|
1419
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1418
1420
|
]));
|
|
1419
1421
|
}
|
|
1420
1422
|
const Vn = { render: $n }, An = {
|
|
@@ -1424,10 +1426,10 @@ const Vn = { render: $n }, An = {
|
|
|
1424
1426
|
viewBox: "0 0 20 20"
|
|
1425
1427
|
};
|
|
1426
1428
|
function Fn(t, e) {
|
|
1427
|
-
return
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1429
|
+
return u(), y("svg", An, e[0] || (e[0] = [
|
|
1430
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1431
|
+
d("path", { d: "M3 9.58h14v1H3z" }, null, -1),
|
|
1432
|
+
d("path", { d: "M9.5 3.08h1v14h-1z" }, null, -1)
|
|
1431
1433
|
]));
|
|
1432
1434
|
}
|
|
1433
1435
|
const In = { render: Fn }, Rn = {
|
|
@@ -1437,10 +1439,10 @@ const In = { render: Fn }, Rn = {
|
|
|
1437
1439
|
viewBox: "0 0 20 20"
|
|
1438
1440
|
};
|
|
1439
1441
|
function Nn(t, e) {
|
|
1440
|
-
return
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1442
|
+
return u(), y("svg", Rn, e[0] || (e[0] = [
|
|
1443
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1444
|
+
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1445
|
+
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1444
1446
|
]));
|
|
1445
1447
|
}
|
|
1446
1448
|
const Pn = { render: Nn }, On = {
|
|
@@ -1450,9 +1452,9 @@ const Pn = { render: Nn }, On = {
|
|
|
1450
1452
|
viewBox: "0 0 20 20"
|
|
1451
1453
|
};
|
|
1452
1454
|
function Hn(t, e) {
|
|
1453
|
-
return
|
|
1454
|
-
|
|
1455
|
-
|
|
1455
|
+
return u(), y("svg", On, e[0] || (e[0] = [
|
|
1456
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1457
|
+
d("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
|
|
1456
1458
|
]));
|
|
1457
1459
|
}
|
|
1458
1460
|
const Gn = { render: Hn }, Wn = {
|
|
@@ -1462,10 +1464,10 @@ const Gn = { render: Hn }, Wn = {
|
|
|
1462
1464
|
viewBox: "0 0 20 20"
|
|
1463
1465
|
};
|
|
1464
1466
|
function qn(t, e) {
|
|
1465
|
-
return
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1467
|
+
return u(), y("svg", Wn, e[0] || (e[0] = [
|
|
1468
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1469
|
+
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1470
|
+
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1469
1471
|
]));
|
|
1470
1472
|
}
|
|
1471
1473
|
const Un = { render: qn }, jn = {
|
|
@@ -1475,9 +1477,9 @@ const Un = { render: qn }, jn = {
|
|
|
1475
1477
|
viewBox: "0 0 20 20"
|
|
1476
1478
|
};
|
|
1477
1479
|
function Yn(t, e) {
|
|
1478
|
-
return
|
|
1479
|
-
|
|
1480
|
-
|
|
1480
|
+
return u(), y("svg", jn, e[0] || (e[0] = [
|
|
1481
|
+
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1482
|
+
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1481
1483
|
]));
|
|
1482
1484
|
}
|
|
1483
1485
|
const Kn = { render: Yn }, Xn = {
|
|
@@ -1487,11 +1489,11 @@ const Kn = { render: Yn }, Xn = {
|
|
|
1487
1489
|
viewBox: "0 0 20 20"
|
|
1488
1490
|
};
|
|
1489
1491
|
function Qn(t, e) {
|
|
1490
|
-
return
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1492
|
+
return u(), y("svg", Xn, e[0] || (e[0] = [
|
|
1493
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1494
|
+
d("path", { d: "M3.88 9.6h12.25v.88H3.88z" }, null, -1),
|
|
1495
|
+
d("path", { d: "M9.56 3.91h.88v12.25h-.88z" }, null, -1),
|
|
1496
|
+
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1495
1497
|
]));
|
|
1496
1498
|
}
|
|
1497
1499
|
const Zn = { render: Qn }, Jn = {
|
|
@@ -1501,11 +1503,11 @@ const Zn = { render: Qn }, Jn = {
|
|
|
1501
1503
|
viewBox: "0 0 20 20"
|
|
1502
1504
|
};
|
|
1503
1505
|
function eo(t, e) {
|
|
1504
|
-
return
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1506
|
+
return u(), y("svg", Jn, e[0] || (e[0] = [
|
|
1507
|
+
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1508
|
+
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1),
|
|
1509
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1510
|
+
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1509
1511
|
]));
|
|
1510
1512
|
}
|
|
1511
1513
|
const to = { render: eo }, no = {
|
|
@@ -1515,16 +1517,16 @@ const to = { render: eo }, no = {
|
|
|
1515
1517
|
viewBox: "0 0 20 20"
|
|
1516
1518
|
};
|
|
1517
1519
|
function oo(t, e) {
|
|
1518
|
-
return
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1520
|
+
return u(), y("svg", no, e[0] || (e[0] = [
|
|
1521
|
+
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1),
|
|
1522
|
+
d("path", { d: "M9.5 5.04h1v5h-1z" }, null, -1),
|
|
1523
|
+
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
1522
1524
|
]));
|
|
1523
1525
|
}
|
|
1524
1526
|
const lo = { render: oo }, ao = /* @__PURE__ */ L({
|
|
1525
1527
|
__name: "MlPointStyleDlg",
|
|
1526
1528
|
setup(t) {
|
|
1527
|
-
const { t: e } = N(), n = Dt(
|
|
1529
|
+
const { t: e } = N(), n = Dt(T.instance), i = x(!0), l = x(0), o = [
|
|
1528
1530
|
[
|
|
1529
1531
|
{ id: 0, icon: en },
|
|
1530
1532
|
{ id: 1, icon: on },
|
|
@@ -1557,41 +1559,41 @@ const lo = { render: oo }, ao = /* @__PURE__ */ L({
|
|
|
1557
1559
|
n.pdmode && (l.value = n.pdmode);
|
|
1558
1560
|
};
|
|
1559
1561
|
a();
|
|
1560
|
-
const s = (f,
|
|
1561
|
-
l.value = o[f][
|
|
1562
|
-
},
|
|
1563
|
-
|
|
1562
|
+
const s = (f, m) => o[f][m].id == l.value ? "primary" : null, r = (f, m) => {
|
|
1563
|
+
l.value = o[f][m].id;
|
|
1564
|
+
}, c = () => {
|
|
1565
|
+
T.instance.curDocument.database.pdmode = l.value;
|
|
1564
1566
|
}, w = () => {
|
|
1565
1567
|
a();
|
|
1566
1568
|
};
|
|
1567
|
-
return (f,
|
|
1569
|
+
return (f, m) => {
|
|
1568
1570
|
const h = M("el-button"), _ = M("el-col"), b = M("el-row");
|
|
1569
|
-
return
|
|
1570
|
-
title:
|
|
1571
|
+
return u(), C(Te, {
|
|
1572
|
+
title: v(e)("dialog.pointStyleDlg.title"),
|
|
1571
1573
|
width: 400,
|
|
1572
1574
|
modelValue: i.value,
|
|
1573
|
-
"onUpdate:modelValue":
|
|
1575
|
+
"onUpdate:modelValue": m[0] || (m[0] = (S) => i.value = S),
|
|
1574
1576
|
name: "PointStyleDlg",
|
|
1575
|
-
onOk:
|
|
1577
|
+
onOk: c,
|
|
1576
1578
|
onCancel: w
|
|
1577
1579
|
}, {
|
|
1578
1580
|
default: p(() => [
|
|
1579
|
-
(
|
|
1581
|
+
(u(), y(j, null, X(o, (S, $) => g(b, {
|
|
1580
1582
|
key: $,
|
|
1581
1583
|
style: { "margin-top": "10px" },
|
|
1582
1584
|
gutter: 6,
|
|
1583
1585
|
justify: "space-between"
|
|
1584
1586
|
}, {
|
|
1585
1587
|
default: p(() => [
|
|
1586
|
-
(
|
|
1588
|
+
(u(!0), y(j, null, X(S, (I, V) => (u(), C(_, {
|
|
1587
1589
|
key: V,
|
|
1588
1590
|
span: 4
|
|
1589
1591
|
}, {
|
|
1590
1592
|
default: p(() => [
|
|
1591
|
-
|
|
1593
|
+
g(h, {
|
|
1592
1594
|
icon: I.icon,
|
|
1593
1595
|
type: s($, V),
|
|
1594
|
-
onClick: (
|
|
1596
|
+
onClick: (B) => r($, V),
|
|
1595
1597
|
style: { "font-size": "25px" }
|
|
1596
1598
|
}, null, 8, ["icon", "type", "onClick"])
|
|
1597
1599
|
]),
|
|
@@ -1621,30 +1623,30 @@ const io = {
|
|
|
1621
1623
|
width: "1em",
|
|
1622
1624
|
height: "1em",
|
|
1623
1625
|
viewBox: "0 0 1024 1024"
|
|
1624
|
-
}, ro = /* @__PURE__ */
|
|
1626
|
+
}, ro = /* @__PURE__ */ d("path", {
|
|
1625
1627
|
fill: "currentColor",
|
|
1626
1628
|
d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"
|
|
1627
1629
|
}, null, -1), so = [
|
|
1628
1630
|
ro
|
|
1629
1631
|
];
|
|
1630
1632
|
function co(t, e) {
|
|
1631
|
-
return
|
|
1633
|
+
return u(), y("svg", io, [...so]);
|
|
1632
1634
|
}
|
|
1633
1635
|
const xe = { render: co }, uo = {
|
|
1634
1636
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1635
1637
|
width: "1em",
|
|
1636
1638
|
height: "1em",
|
|
1637
1639
|
viewBox: "0 0 1024 1024"
|
|
1638
|
-
}, mo = /* @__PURE__ */
|
|
1640
|
+
}, mo = /* @__PURE__ */ d("path", {
|
|
1639
1641
|
fill: "currentColor",
|
|
1640
1642
|
d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
1641
1643
|
}, null, -1), po = [
|
|
1642
1644
|
mo
|
|
1643
1645
|
];
|
|
1644
|
-
function
|
|
1645
|
-
return
|
|
1646
|
+
function go(t, e) {
|
|
1647
|
+
return u(), y("svg", uo, [...po]);
|
|
1646
1648
|
}
|
|
1647
|
-
const ke = { render:
|
|
1649
|
+
const ke = { render: go }, vo = /* @__PURE__ */ L({
|
|
1648
1650
|
__name: "MlCollapse",
|
|
1649
1651
|
props: /* @__PURE__ */ J({
|
|
1650
1652
|
size: { default: 18 },
|
|
@@ -1655,30 +1657,30 @@ const ke = { render: vo }, go = /* @__PURE__ */ L({
|
|
|
1655
1657
|
}),
|
|
1656
1658
|
emits: /* @__PURE__ */ J(["change"], ["update:modelValue"]),
|
|
1657
1659
|
setup(t, { emit: e }) {
|
|
1658
|
-
const n = t, i =
|
|
1660
|
+
const n = t, i = ve(t, "modelValue"), l = e, o = k(() => n.reverse ? i.value ? xe : ke : i.value ? ke : xe), a = k(() => `${n.size}px`), s = () => {
|
|
1659
1661
|
l("change", i.value), i.value = !i.value;
|
|
1660
1662
|
};
|
|
1661
|
-
return (r,
|
|
1663
|
+
return (r, c) => {
|
|
1662
1664
|
const w = se;
|
|
1663
|
-
return
|
|
1665
|
+
return u(), C(w, {
|
|
1664
1666
|
size: a.value,
|
|
1665
1667
|
onClick: s
|
|
1666
1668
|
}, {
|
|
1667
1669
|
default: p(() => [
|
|
1668
|
-
(
|
|
1670
|
+
(u(), C(ge(o.value)))
|
|
1669
1671
|
]),
|
|
1670
1672
|
_: 1
|
|
1671
1673
|
}, 8, ["size"]);
|
|
1672
1674
|
};
|
|
1673
1675
|
}
|
|
1674
|
-
}), fo = (t) => (Le("data-v-3fc33b5d"), t = t(), ze(), t), ho = /* @__PURE__ */ fo(() => /* @__PURE__ */
|
|
1676
|
+
}), fo = (t) => (Le("data-v-3fc33b5d"), t = t(), ze(), t), ho = /* @__PURE__ */ fo(() => /* @__PURE__ */ d("svg", {
|
|
1675
1677
|
preserveAspectRatio: "xMidYMid meet",
|
|
1676
1678
|
viewBox: "0 0 24 24",
|
|
1677
1679
|
width: "1.2em",
|
|
1678
1680
|
height: "1.2em",
|
|
1679
1681
|
"data-v-63d067da": ""
|
|
1680
1682
|
}, [
|
|
1681
|
-
/* @__PURE__ */
|
|
1683
|
+
/* @__PURE__ */ d("path", {
|
|
1682
1684
|
fill: "currentColor",
|
|
1683
1685
|
d: "m18.5 10l4.4 11h-2.155l-1.201-3h-4.09l-1.199 3h-2.154L16.5 10h2zM10 2v2h6v2h-1.968a18.222 18.222 0 0 1-3.62 6.301a14.864 14.864 0 0 0 2.336 1.707l-.751 1.878A17.015 17.015 0 0 1 9 13.725a16.676 16.676 0 0 1-6.201 3.548l-.536-1.929a14.7 14.7 0 0 0 5.327-3.042A18.078 18.078 0 0 1 4.767 8h2.24A16.032 16.032 0 0 0 9 10.877a16.165 16.165 0 0 0 2.91-4.876L2 6V4h6V2h2zm7.5 10.885L16.253 16h2.492L17.5 12.885z"
|
|
1684
1686
|
})
|
|
@@ -1697,17 +1699,17 @@ const ke = { render: vo }, go = /* @__PURE__ */ L({
|
|
|
1697
1699
|
i("click", a);
|
|
1698
1700
|
};
|
|
1699
1701
|
return (a, s) => {
|
|
1700
|
-
const r = se,
|
|
1701
|
-
return
|
|
1702
|
+
const r = se, c = nt, w = tt, f = et;
|
|
1703
|
+
return u(), C(f, { onCommand: o }, {
|
|
1702
1704
|
dropdown: p(() => [
|
|
1703
|
-
|
|
1705
|
+
g(w, null, {
|
|
1704
1706
|
default: p(() => [
|
|
1705
|
-
(
|
|
1706
|
-
key:
|
|
1707
|
-
command:
|
|
1707
|
+
(u(!0), y(j, null, X(l.value, (m) => (u(), C(c, {
|
|
1708
|
+
key: m.text,
|
|
1709
|
+
command: m.name
|
|
1708
1710
|
}, {
|
|
1709
1711
|
default: p(() => [
|
|
1710
|
-
F(D(
|
|
1712
|
+
F(D(m.text), 1)
|
|
1711
1713
|
]),
|
|
1712
1714
|
_: 2
|
|
1713
1715
|
}, 1032, ["command"]))), 128))
|
|
@@ -1716,7 +1718,7 @@ const ke = { render: vo }, go = /* @__PURE__ */ L({
|
|
|
1716
1718
|
})
|
|
1717
1719
|
]),
|
|
1718
1720
|
default: p(() => [
|
|
1719
|
-
|
|
1721
|
+
g(r, {
|
|
1720
1722
|
size: "30",
|
|
1721
1723
|
class: "ml-dropdown-icon"
|
|
1722
1724
|
}, {
|
|
@@ -1748,7 +1750,7 @@ const ke = { render: vo }, go = /* @__PURE__ */ L({
|
|
|
1748
1750
|
const n = t, i = e, l = (o) => {
|
|
1749
1751
|
i("click", o);
|
|
1750
1752
|
};
|
|
1751
|
-
return (o, a) => (
|
|
1753
|
+
return (o, a) => (u(), C(wo, {
|
|
1752
1754
|
icon: yo,
|
|
1753
1755
|
items: n.languages,
|
|
1754
1756
|
current: n.current,
|
|
@@ -1757,11 +1759,11 @@ const ke = { render: vo }, go = /* @__PURE__ */ L({
|
|
|
1757
1759
|
}
|
|
1758
1760
|
}), xo = {}, ko = { class: "ml-status-bar" }, Mo = { class: "ml-status-bar-left" }, So = { class: "ml-status-bar-right" };
|
|
1759
1761
|
function Co(t, e) {
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1762
|
+
return u(), y("div", ko, [
|
|
1763
|
+
d("div", Mo, [
|
|
1762
1764
|
ie(t.$slots, "left", {}, void 0, !0)
|
|
1763
1765
|
]),
|
|
1764
|
-
|
|
1766
|
+
d("div", So, [
|
|
1765
1767
|
ie(t.$slots, "right", {}, void 0, !0)
|
|
1766
1768
|
])
|
|
1767
1769
|
]);
|
|
@@ -1788,36 +1790,36 @@ const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf
|
|
|
1788
1790
|
return 50;
|
|
1789
1791
|
}
|
|
1790
1792
|
return 70;
|
|
1791
|
-
}), s = (w) => w.description ? w.description : w.text, r = k(() => n.size === "large"),
|
|
1793
|
+
}), s = (w) => w.description ? w.description : w.text, r = k(() => n.size === "large"), c = (w) => {
|
|
1792
1794
|
i("click", w);
|
|
1793
1795
|
};
|
|
1794
1796
|
return (w, f) => {
|
|
1795
|
-
const
|
|
1796
|
-
return
|
|
1797
|
+
const m = se, h = at, _ = lt, b = ot;
|
|
1798
|
+
return u(), C(b, {
|
|
1797
1799
|
class: Ce(l.value)
|
|
1798
1800
|
}, {
|
|
1799
1801
|
default: p(() => [
|
|
1800
|
-
(
|
|
1802
|
+
(u(!0), y(j, null, X(w.items, (S, $) => (u(), C(_, {
|
|
1801
1803
|
key: S.text,
|
|
1802
1804
|
content: s(S),
|
|
1803
1805
|
"hide-after": 0
|
|
1804
1806
|
}, {
|
|
1805
1807
|
default: p(() => [
|
|
1806
|
-
(
|
|
1808
|
+
(u(), C(h, {
|
|
1807
1809
|
class: "ml-toolbar-button",
|
|
1808
1810
|
style: pe({ width: a.value + "px", height: a.value + "px" }),
|
|
1809
1811
|
key: $,
|
|
1810
|
-
onClick: (I) =>
|
|
1812
|
+
onClick: (I) => c(S.command)
|
|
1811
1813
|
}, {
|
|
1812
1814
|
default: p(() => [
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
+
d("div", null, [
|
|
1816
|
+
g(m, { size: o.value }, {
|
|
1815
1817
|
default: p(() => [
|
|
1816
|
-
(
|
|
1818
|
+
(u(), C(ge(S.icon)))
|
|
1817
1819
|
]),
|
|
1818
1820
|
_: 2
|
|
1819
1821
|
}, 1032, ["size"]),
|
|
1820
|
-
r.value ? (
|
|
1822
|
+
r.value ? (u(), y("div", zo, D(S.text), 1)) : q("", !0)
|
|
1821
1823
|
])
|
|
1822
1824
|
]),
|
|
1823
1825
|
_: 2
|
|
@@ -1834,7 +1836,7 @@ const Lo = /* @__PURE__ */ ue(xo, [["render", Co], ["__scopeId", "data-v-d6a59cf
|
|
|
1834
1836
|
function To(t, e, n) {
|
|
1835
1837
|
const i = x(!1), l = (r) => {
|
|
1836
1838
|
if (n.value && t.value) {
|
|
1837
|
-
const
|
|
1839
|
+
const c = t.value.getBoundingClientRect(), w = r.clientX < c.left || r.clientX > c.right || r.clientY < c.top || r.clientY > c.bottom;
|
|
1838
1840
|
i.value = !w;
|
|
1839
1841
|
}
|
|
1840
1842
|
}, o = () => {
|
|
@@ -1869,7 +1871,7 @@ function Eo(t, e, n) {
|
|
|
1869
1871
|
y: _.top
|
|
1870
1872
|
};
|
|
1871
1873
|
}
|
|
1872
|
-
},
|
|
1874
|
+
}, c = () => {
|
|
1873
1875
|
t.value && t.value.addEventListener("mousedown", f);
|
|
1874
1876
|
}, w = () => {
|
|
1875
1877
|
t.value && t.value.removeEventListener("mousedown", f);
|
|
@@ -1879,11 +1881,11 @@ function Eo(t, e, n) {
|
|
|
1879
1881
|
const b = e.value.getBoundingClientRect();
|
|
1880
1882
|
if (_.clientX < b.left || _.clientX > b.right || _.clientY < b.top || _.clientY > b.bottom) return;
|
|
1881
1883
|
}
|
|
1882
|
-
i.value = !0, a.x = _.clientX, a.y = _.clientY, r(), document.addEventListener("mousemove",
|
|
1884
|
+
i.value = !0, a.x = _.clientX, a.y = _.clientY, r(), document.addEventListener("mousemove", m), document.addEventListener("mouseup", h);
|
|
1883
1885
|
}
|
|
1884
|
-
},
|
|
1886
|
+
}, m = (_) => {
|
|
1885
1887
|
if (i.value && o.value && l.value) {
|
|
1886
|
-
const b = window.innerWidth, S = window.innerHeight, $ = t.value, I = $.getBoundingClientRect(), V = I.width,
|
|
1888
|
+
const b = window.innerWidth, S = window.innerHeight, $ = t.value, I = $.getBoundingClientRect(), V = I.width, B = I.height, P = o.value.x + (_.clientX - a.x), R = o.value.y + (_.clientY - a.y);
|
|
1887
1889
|
l.value.x = Math.max(
|
|
1888
1890
|
n ? n.value.offset.value.left : 0,
|
|
1889
1891
|
P
|
|
@@ -1894,23 +1896,23 @@ function Eo(t, e, n) {
|
|
|
1894
1896
|
l.value.x
|
|
1895
1897
|
), l.value.y = Math.max(
|
|
1896
1898
|
n ? n.value.offset.value.top : 0,
|
|
1897
|
-
Math.min(R, S -
|
|
1899
|
+
Math.min(R, S - B)
|
|
1898
1900
|
);
|
|
1899
|
-
const A = S -
|
|
1901
|
+
const A = S - B;
|
|
1900
1902
|
l.value.y = Math.min(
|
|
1901
1903
|
n ? A - n.value.offset.value.bottom : A,
|
|
1902
1904
|
l.value.y
|
|
1903
1905
|
), $.style.left = l.value.x + "px", $.style.top = l.value.y + "px";
|
|
1904
1906
|
}
|
|
1905
1907
|
}, h = () => {
|
|
1906
|
-
i.value = !1, document.removeEventListener("mousemove",
|
|
1908
|
+
i.value = !1, document.removeEventListener("mousemove", m), document.removeEventListener("mouseup", h);
|
|
1907
1909
|
};
|
|
1908
1910
|
return H(() => {
|
|
1909
|
-
t.value && (r(),
|
|
1911
|
+
t.value && (r(), c());
|
|
1910
1912
|
}), te(() => {
|
|
1911
1913
|
t.value && t.value.removeEventListener("mousedown", f);
|
|
1912
1914
|
}), E(t, (_) => {
|
|
1913
|
-
_ ? (r(),
|
|
1915
|
+
_ ? (r(), c()) : w();
|
|
1914
1916
|
}), {
|
|
1915
1917
|
isDragging: i,
|
|
1916
1918
|
movement: s,
|
|
@@ -1925,8 +1927,8 @@ function $o(t, e, n) {
|
|
|
1925
1927
|
);
|
|
1926
1928
|
return E(a, (r) => {
|
|
1927
1929
|
if (r && t.value) {
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1930
|
+
const c = t.value.getBoundingClientRect();
|
|
1931
|
+
c.left <= n.value.offset.value.left ? (l.value = "left", i.value = !0) : window.innerWidth - c.left - c.width <= n.value.offset.value.right ? (l.value = "right", i.value = !0) : i.value = !1;
|
|
1930
1932
|
}
|
|
1931
1933
|
}), {
|
|
1932
1934
|
docked: i,
|
|
@@ -1938,14 +1940,14 @@ function $o(t, e, n) {
|
|
|
1938
1940
|
}
|
|
1939
1941
|
function Vo(t, e, n, i) {
|
|
1940
1942
|
const l = x(null), o = x(null), a = x(null), s = x(null);
|
|
1941
|
-
return E(t, (r,
|
|
1942
|
-
l.value =
|
|
1943
|
-
}), E(e, (r,
|
|
1944
|
-
o.value =
|
|
1945
|
-
}), E(n, (r,
|
|
1946
|
-
a.value =
|
|
1947
|
-
}), E(i, (r,
|
|
1948
|
-
s.value =
|
|
1943
|
+
return E(t, (r, c) => {
|
|
1944
|
+
l.value = c;
|
|
1945
|
+
}), E(e, (r, c) => {
|
|
1946
|
+
o.value = c;
|
|
1947
|
+
}), E(n, (r, c) => {
|
|
1948
|
+
a.value = c;
|
|
1949
|
+
}), E(i, (r, c) => {
|
|
1950
|
+
s.value = c;
|
|
1949
1951
|
}), {
|
|
1950
1952
|
lastLeft: l,
|
|
1951
1953
|
lastTop: o,
|
|
@@ -1955,10 +1957,10 @@ function Vo(t, e, n, i) {
|
|
|
1955
1957
|
}
|
|
1956
1958
|
function Ao(t, e, n, i) {
|
|
1957
1959
|
const l = x(t.value.width), o = x(t.value.left), a = k(() => t.value.width), s = k(() => t.value.left), r = k(() => n.value ? n.value.x : null);
|
|
1958
|
-
return E([a, s], ([
|
|
1959
|
-
(l.value == null || o.value == null || e.value) && (l.value =
|
|
1960
|
-
}), E(r, (
|
|
1961
|
-
i.value && n.value && (o.value =
|
|
1960
|
+
return E([a, s], ([c, w]) => {
|
|
1961
|
+
(l.value == null || o.value == null || e.value) && (l.value = c, o.value = w);
|
|
1962
|
+
}), E(r, (c) => {
|
|
1963
|
+
i.value && n.value && (o.value = c);
|
|
1962
1964
|
}), { left: o, width: l };
|
|
1963
1965
|
}
|
|
1964
1966
|
function Fo(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
@@ -1981,31 +1983,31 @@ function Fo(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
1981
1983
|
}
|
|
1982
1984
|
function Io(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom: 0 }), l = { width: 20, height: 40 }) {
|
|
1983
1985
|
const { initialRect: o } = Fo(t, i), a = x(!1);
|
|
1984
|
-
let s = 0, r = 0,
|
|
1985
|
-
const
|
|
1986
|
+
let s = 0, r = 0, c = 0, w = 0, f = 0;
|
|
1987
|
+
const m = 5, h = x(null), _ = (V) => {
|
|
1986
1988
|
if (!(!t.value || e.value))
|
|
1987
1989
|
if (a.value) {
|
|
1988
|
-
const
|
|
1990
|
+
const B = V.clientX - w, P = V.clientY - f;
|
|
1989
1991
|
if (h.value === "left" || h.value === "left-bottom-corner") {
|
|
1990
|
-
const R = r -
|
|
1991
|
-
R > l.width && (o.value.width = R, o.value.left = s +
|
|
1992
|
+
const R = r - B;
|
|
1993
|
+
R > l.width && (o.value.width = R, o.value.left = s + B, t.value.style.left = o.value.left + "px", t.value.style.width = o.value.width + "px");
|
|
1992
1994
|
}
|
|
1993
1995
|
if (h.value === "right" || h.value === "right-bottom-corner") {
|
|
1994
|
-
const R = r +
|
|
1996
|
+
const R = r + B;
|
|
1995
1997
|
R > l.width && (o.value.width = R, t.value.style.width = o.value.width + "px");
|
|
1996
1998
|
}
|
|
1997
1999
|
if (h.value === "bottom" || h.value === "left-bottom-corner" || h.value === "right-bottom-corner") {
|
|
1998
|
-
const R =
|
|
2000
|
+
const R = c + P;
|
|
1999
2001
|
R > l.height && (o.value.height = R, t.value.style.height = o.value.height + "px");
|
|
2000
2002
|
}
|
|
2001
2003
|
} else {
|
|
2002
|
-
const
|
|
2004
|
+
const B = t.value.getBoundingClientRect(), P = V.clientX - B.left, R = V.clientY - B.top, z = P <= m, A = P >= B.width - m, O = R >= B.height - m;
|
|
2003
2005
|
z && O && n.value ? (t.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : A && O && !n.value ? (t.value.style.cursor = "nwse-resize", h.value = "right-bottom-corner") : z && n.value ? (t.value.style.cursor = "ew-resize", h.value = "left") : A && !n.value ? (t.value.style.cursor = "ew-resize", h.value = "right") : O ? (t.value.style.cursor = "ns-resize", h.value = "bottom") : (t.value.style.cursor = "", h.value = null);
|
|
2004
2006
|
}
|
|
2005
2007
|
}, b = (V) => {
|
|
2006
2008
|
if (!t.value || !h.value) return;
|
|
2007
|
-
const
|
|
2008
|
-
w = V.clientX, f = V.clientY, r =
|
|
2009
|
+
const B = t.value.getBoundingClientRect();
|
|
2010
|
+
w = V.clientX, f = V.clientY, r = B.width, c = B.height, s = B.left, o.value.width = r, o.value.height = c, o.value.left = B.left, o.value.top = B.top, a.value = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", S);
|
|
2009
2011
|
}, S = () => {
|
|
2010
2012
|
a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", S);
|
|
2011
2013
|
}, $ = () => {
|
|
@@ -2047,50 +2049,50 @@ function Ro(t, e, n, i) {
|
|
|
2047
2049
|
});
|
|
2048
2050
|
}
|
|
2049
2051
|
function No(t, e, n, i) {
|
|
2050
|
-
const l = x(window.innerWidth), o = x(window.innerHeight), { docked: a, orientation: s, movement: r, position:
|
|
2052
|
+
const l = x(window.innerWidth), o = x(window.innerHeight), { docked: a, orientation: s, movement: r, position: c, isDragging: w } = $o(
|
|
2051
2053
|
t,
|
|
2052
2054
|
e,
|
|
2053
2055
|
i
|
|
2054
|
-
), f = k(() => s.value === "right"), { rect:
|
|
2056
|
+
), f = k(() => s.value === "right"), { rect: m, isResizing: h } = Io(
|
|
2055
2057
|
t,
|
|
2056
2058
|
n,
|
|
2057
2059
|
f,
|
|
2058
2060
|
i.value.offset
|
|
2059
2061
|
), { width: _, left: b } = Ao(
|
|
2060
|
-
d,
|
|
2061
|
-
h,
|
|
2062
2062
|
m,
|
|
2063
|
+
h,
|
|
2064
|
+
c,
|
|
2063
2065
|
w
|
|
2064
2066
|
), { lastTop: S, lastHeight: $ } = Vo(
|
|
2065
|
-
k(() =>
|
|
2066
|
-
k(() =>
|
|
2067
|
-
k(() =>
|
|
2068
|
-
k(() =>
|
|
2067
|
+
k(() => m.value.left),
|
|
2068
|
+
k(() => m.value.top),
|
|
2069
|
+
k(() => m.value.width),
|
|
2070
|
+
k(() => m.value.height)
|
|
2069
2071
|
), { autoOpened: I } = To(t, e, n);
|
|
2070
2072
|
Ro(t, f, n, I);
|
|
2071
2073
|
const V = (z) => {
|
|
2072
2074
|
if (t.value) {
|
|
2073
2075
|
const A = t.value.getBoundingClientRect(), O = A.left + z;
|
|
2074
2076
|
if (f.value) {
|
|
2075
|
-
|
|
2077
|
+
m.value.left = O;
|
|
2076
2078
|
const de = window.innerWidth - A.width - A.left;
|
|
2077
|
-
A.left <= 0 && de >= 0 && z < 0 && (
|
|
2079
|
+
A.left <= 0 && de >= 0 && z < 0 && (m.value.left = Math.max(0, O)), window.innerWidth - A.width <= 0 && (m.value.left = window.innerWidth - A.width);
|
|
2078
2080
|
} else
|
|
2079
|
-
A.left + A.width >= window.innerWidth && z < 0 && (
|
|
2081
|
+
A.left + A.width >= window.innerWidth && z < 0 && (m.value.left = Math.max(0, O));
|
|
2080
2082
|
}
|
|
2081
|
-
},
|
|
2083
|
+
}, B = () => {
|
|
2082
2084
|
const z = window.innerWidth - l.value;
|
|
2083
2085
|
l.value = window.innerWidth, o.value = window.innerHeight, V(z);
|
|
2084
2086
|
};
|
|
2085
2087
|
H(() => {
|
|
2086
|
-
window.addEventListener("resize",
|
|
2088
|
+
window.addEventListener("resize", B);
|
|
2087
2089
|
}), te(() => {
|
|
2088
|
-
window.removeEventListener("resize",
|
|
2090
|
+
window.removeEventListener("resize", B);
|
|
2089
2091
|
});
|
|
2090
2092
|
const P = (z) => {
|
|
2091
|
-
z ? (
|
|
2093
|
+
z ? (m.value.width = Me, f.value && b.value && _.value && (m.value.left = b.value + _.value - Me)) : (m.value.width = _.value, f.value && b.value && _.value && (m.value.left = b.value));
|
|
2092
2094
|
}, R = () => {
|
|
2093
|
-
a.value ? (
|
|
2095
|
+
a.value ? (m.value.top = i.value.offset.value.top, m.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (m.value.top = S.value, m.value.height = $.value);
|
|
2094
2096
|
};
|
|
2095
2097
|
return E(a, () => {
|
|
2096
2098
|
R();
|
|
@@ -2101,17 +2103,17 @@ function No(t, e, n, i) {
|
|
|
2101
2103
|
}), E(r, (z) => {
|
|
2102
2104
|
if (z && t.value) {
|
|
2103
2105
|
const A = t.value.getBoundingClientRect();
|
|
2104
|
-
|
|
2106
|
+
m.value.left = A.left, m.value.top = A.top;
|
|
2105
2107
|
}
|
|
2106
|
-
}), { rect:
|
|
2108
|
+
}), { rect: m, orientation: s, reversed: f };
|
|
2107
2109
|
}
|
|
2108
|
-
const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ */ Po(() => /* @__PURE__ */
|
|
2110
|
+
const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ */ Po(() => /* @__PURE__ */ d("svg", {
|
|
2109
2111
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2110
2112
|
width: "1em",
|
|
2111
2113
|
height: "1em",
|
|
2112
2114
|
viewBox: "0 0 1024 1024"
|
|
2113
2115
|
}, [
|
|
2114
|
-
/* @__PURE__ */
|
|
2116
|
+
/* @__PURE__ */ d("path", {
|
|
2115
2117
|
fill: "currentColor",
|
|
2116
2118
|
d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
2117
2119
|
})
|
|
@@ -2129,7 +2131,7 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2129
2131
|
}),
|
|
2130
2132
|
emits: /* @__PURE__ */ J(["close"], ["update:modelValue"]),
|
|
2131
2133
|
setup(t, { emit: e }) {
|
|
2132
|
-
const n = t, i =
|
|
2134
|
+
const n = t, i = ve(t, "modelValue"), l = e, o = x(!1), a = x(null), s = x(null), r = k(() => ({
|
|
2133
2135
|
offset: x({
|
|
2134
2136
|
left: n.leftOffset,
|
|
2135
2137
|
right: n.rightOffset,
|
|
@@ -2137,14 +2139,14 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2137
2139
|
bottom: n.bottomOffset
|
|
2138
2140
|
})
|
|
2139
2141
|
})), {
|
|
2140
|
-
rect:
|
|
2142
|
+
rect: c,
|
|
2141
2143
|
orientation: w,
|
|
2142
2144
|
reversed: f
|
|
2143
|
-
} = No(s, a, o, r),
|
|
2144
|
-
left: `${
|
|
2145
|
-
top: `${
|
|
2146
|
-
width: `${
|
|
2147
|
-
height: `${
|
|
2145
|
+
} = No(s, a, o, r), m = k(() => ({
|
|
2146
|
+
left: `${c.value.left}px`,
|
|
2147
|
+
top: `${c.value.top}px`,
|
|
2148
|
+
width: `${c.value.width}px`,
|
|
2149
|
+
height: `${c.value.height}px`
|
|
2148
2150
|
})), h = k(() => f.value ? {
|
|
2149
2151
|
borderLeft: "1px solid var(--el-border-color)",
|
|
2150
2152
|
borderRight: null
|
|
@@ -2161,23 +2163,23 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2161
2163
|
};
|
|
2162
2164
|
return (b, S) => {
|
|
2163
2165
|
const $ = se;
|
|
2164
|
-
return i.value ? (
|
|
2166
|
+
return i.value ? (u(), y("div", {
|
|
2165
2167
|
key: 0,
|
|
2166
2168
|
ref_key: "toolPaletteElement",
|
|
2167
2169
|
ref: s,
|
|
2168
|
-
style: pe([
|
|
2170
|
+
style: pe([m.value]),
|
|
2169
2171
|
class: "ml-tool-palette-dialog"
|
|
2170
2172
|
}, [
|
|
2171
|
-
|
|
2172
|
-
class: Ce(["ml-tool-palette-dialog-layout",
|
|
2173
|
+
d("div", {
|
|
2174
|
+
class: Ce(["ml-tool-palette-dialog-layout", v(w)])
|
|
2173
2175
|
}, [
|
|
2174
|
-
|
|
2176
|
+
d("div", {
|
|
2175
2177
|
ref_key: "titleBarElement",
|
|
2176
2178
|
ref: a,
|
|
2177
2179
|
class: "ml-tool-palette-title-bar",
|
|
2178
2180
|
style: pe(h.value)
|
|
2179
2181
|
}, [
|
|
2180
|
-
|
|
2182
|
+
g($, {
|
|
2181
2183
|
size: 18,
|
|
2182
2184
|
class: "ml-tool-palette-dialog-icon",
|
|
2183
2185
|
onClick: _
|
|
@@ -2187,15 +2189,15 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2187
2189
|
]),
|
|
2188
2190
|
_: 1
|
|
2189
2191
|
}),
|
|
2190
|
-
|
|
2192
|
+
g(vo, {
|
|
2191
2193
|
class: "ml-tool-palette-dialog-icon",
|
|
2192
2194
|
modelValue: o.value,
|
|
2193
2195
|
"onUpdate:modelValue": S[0] || (S[0] = (I) => o.value = I),
|
|
2194
|
-
reverse:
|
|
2196
|
+
reverse: v(f)
|
|
2195
2197
|
}, null, 8, ["modelValue", "reverse"]),
|
|
2196
|
-
|
|
2198
|
+
d("span", Ho, D(n.title), 1)
|
|
2197
2199
|
], 4),
|
|
2198
|
-
|
|
2200
|
+
d("div", Go, [
|
|
2199
2201
|
ie(b.$slots, "default", {}, void 0, !0)
|
|
2200
2202
|
])
|
|
2201
2203
|
], 2)
|
|
@@ -2208,43 +2210,43 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2208
2210
|
editor: {}
|
|
2209
2211
|
},
|
|
2210
2212
|
setup(t) {
|
|
2211
|
-
const { t: e } = N(), n = t, i =
|
|
2213
|
+
const { t: e } = N(), n = t, i = gt(n.editor), l = x(), o = x([]), a = (r) => {
|
|
2212
2214
|
o.value = r;
|
|
2213
2215
|
}, s = (r) => {
|
|
2214
|
-
const
|
|
2216
|
+
const c = n.editor.curDocument.database.tables.layerTable.getAt(
|
|
2215
2217
|
r.name
|
|
2216
2218
|
);
|
|
2217
|
-
|
|
2219
|
+
c && (c.isOff = !r.isOn);
|
|
2218
2220
|
};
|
|
2219
|
-
return (r,
|
|
2220
|
-
const w = M("el-table-column"), f = M("el-checkbox"),
|
|
2221
|
-
return
|
|
2221
|
+
return (r, c) => {
|
|
2222
|
+
const w = M("el-table-column"), f = M("el-checkbox"), m = M("el-tag");
|
|
2223
|
+
return u(), C(v(Qe), {
|
|
2222
2224
|
ref_key: "multipleTableRef",
|
|
2223
2225
|
ref: l,
|
|
2224
|
-
data:
|
|
2226
|
+
data: v(i),
|
|
2225
2227
|
class: "ml-layer-list",
|
|
2226
2228
|
onSelectionChange: a
|
|
2227
2229
|
}, {
|
|
2228
2230
|
default: p(() => [
|
|
2229
|
-
|
|
2231
|
+
g(w, {
|
|
2230
2232
|
type: "selection",
|
|
2231
2233
|
width: "40"
|
|
2232
2234
|
}),
|
|
2233
|
-
|
|
2235
|
+
g(w, {
|
|
2234
2236
|
property: "name",
|
|
2235
|
-
label:
|
|
2237
|
+
label: v(e)("main.toolPalette.layerManager.layerList.name"),
|
|
2236
2238
|
width: "120",
|
|
2237
2239
|
sortable: "",
|
|
2238
2240
|
"show-overflow-tooltip": ""
|
|
2239
2241
|
}, null, 8, ["label"]),
|
|
2240
|
-
|
|
2242
|
+
g(w, {
|
|
2241
2243
|
property: "isOn",
|
|
2242
|
-
label:
|
|
2244
|
+
label: v(e)("main.toolPalette.layerManager.layerList.on"),
|
|
2243
2245
|
width: "50"
|
|
2244
2246
|
}, {
|
|
2245
2247
|
default: p((h) => [
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
+
d("div", Uo, [
|
|
2249
|
+
g(f, {
|
|
2248
2250
|
modelValue: h.row.isOn,
|
|
2249
2251
|
"onUpdate:modelValue": (_) => h.row.isOn = _,
|
|
2250
2252
|
onChange: (_) => s(h.row)
|
|
@@ -2253,14 +2255,14 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2253
2255
|
]),
|
|
2254
2256
|
_: 1
|
|
2255
2257
|
}, 8, ["label"]),
|
|
2256
|
-
|
|
2258
|
+
g(w, {
|
|
2257
2259
|
property: "color",
|
|
2258
|
-
label:
|
|
2260
|
+
label: v(e)("main.toolPalette.layerManager.layerList.color"),
|
|
2259
2261
|
width: "70"
|
|
2260
2262
|
}, {
|
|
2261
2263
|
default: p((h) => [
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
+
d("div", jo, [
|
|
2265
|
+
g(m, {
|
|
2264
2266
|
color: h.row.color,
|
|
2265
2267
|
class: "ml-layer-list-color"
|
|
2266
2268
|
}, null, 8, ["color"])
|
|
@@ -2280,16 +2282,16 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2280
2282
|
},
|
|
2281
2283
|
setup(t) {
|
|
2282
2284
|
const e = t;
|
|
2283
|
-
return (n, i) => (
|
|
2285
|
+
return (n, i) => (u(), C(v(qo), {
|
|
2284
2286
|
class: "ml-layer-manager",
|
|
2285
|
-
modelValue:
|
|
2286
|
-
"onUpdate:modelValue": i[0] || (i[0] = (l) =>
|
|
2287
|
+
modelValue: v(Z).dialogs.layerManager,
|
|
2288
|
+
"onUpdate:modelValue": i[0] || (i[0] = (l) => v(Z).dialogs.layerManager = l),
|
|
2287
2289
|
title: "Layers",
|
|
2288
2290
|
"bottom-offset": 30
|
|
2289
2291
|
}, {
|
|
2290
2292
|
default: p(() => [
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
+
d("div", Ko, [
|
|
2294
|
+
g(Yo, {
|
|
2293
2295
|
editor: e.editor
|
|
2294
2296
|
}, null, 8, ["editor"])
|
|
2295
2297
|
])
|
|
@@ -2300,23 +2302,23 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2300
2302
|
}), Qo = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d49ba2cb"]]), Zo = { class: "autocomplete-container" }, Jo = /* @__PURE__ */ L({
|
|
2301
2303
|
__name: "MlCommandLine",
|
|
2302
2304
|
setup(t) {
|
|
2303
|
-
const { t: e } = N(), n = ce(), i = ut(), l = x(""), o = x(""), a = (
|
|
2304
|
-
const f =
|
|
2305
|
-
(
|
|
2305
|
+
const { t: e } = N(), n = ce(), i = ut(), l = x(""), o = x(""), a = (c, w) => {
|
|
2306
|
+
const f = c ? i.filter(
|
|
2307
|
+
(m) => m.commandName.startsWith(c.toLowerCase())
|
|
2306
2308
|
) : i;
|
|
2307
2309
|
w(f);
|
|
2308
2310
|
}, s = () => {
|
|
2309
|
-
l.value && (
|
|
2310
|
-
}, r = (
|
|
2311
|
-
return (
|
|
2312
|
-
|
|
2311
|
+
l.value && (T.instance.sendStringToExecute(l.value), o.value = l.value, l.value = "");
|
|
2312
|
+
}, r = (c, w) => `${w}: ${fe(c, w)}`;
|
|
2313
|
+
return (c, w) => (u(), y("div", Zo, [
|
|
2314
|
+
v(n).isShowCommandLine ? (u(), C(v(Ze), {
|
|
2313
2315
|
key: 0,
|
|
2314
2316
|
modelValue: l.value,
|
|
2315
2317
|
"onUpdate:modelValue": w[0] || (w[0] = (f) => l.value = f),
|
|
2316
2318
|
"value-key": "commandName",
|
|
2317
2319
|
clearable: "",
|
|
2318
2320
|
"fetch-suggestions": a,
|
|
2319
|
-
placeholder:
|
|
2321
|
+
placeholder: v(e)("main.commandLine.prompt"),
|
|
2320
2322
|
debounce: 300,
|
|
2321
2323
|
"trigger-on-focus": "",
|
|
2322
2324
|
"fit-input-width": !1,
|
|
@@ -2325,7 +2327,7 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2325
2327
|
class: "autocomplete-input"
|
|
2326
2328
|
}, {
|
|
2327
2329
|
default: p(({ item: f }) => [
|
|
2328
|
-
|
|
2330
|
+
d("div", null, D(r(f.groupName, f.commandName)), 1)
|
|
2329
2331
|
]),
|
|
2330
2332
|
prepend: p(() => [
|
|
2331
2333
|
F(D(`> ${o.value}`), 1)
|
|
@@ -2337,14 +2339,14 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2337
2339
|
}), el = /* @__PURE__ */ G(Jo, [["__scopeId", "data-v-082845cb"]]), tl = /* @__PURE__ */ L({
|
|
2338
2340
|
__name: "MlEntityInfo",
|
|
2339
2341
|
setup(t) {
|
|
2340
|
-
Se((
|
|
2342
|
+
Se((m) => ({
|
|
2341
2343
|
"2d5cc4ca": a.value,
|
|
2342
2344
|
"11fa7d7e": s.value
|
|
2343
2345
|
}));
|
|
2344
2346
|
const { t: e } = N(), n = x(!1), i = x(-1), l = x(-1), o = x(null), a = k(() => i.value + "px"), s = k(() => l.value + "px"), r = k(() => {
|
|
2345
|
-
const
|
|
2347
|
+
const m = T.instance.curDocument.database;
|
|
2346
2348
|
if (o.value) {
|
|
2347
|
-
const h =
|
|
2349
|
+
const h = m.tables.blockTable.modelSpace.getIdAt(o.value);
|
|
2348
2350
|
if (h)
|
|
2349
2351
|
return {
|
|
2350
2352
|
type: Ct(h),
|
|
@@ -2359,29 +2361,29 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2359
2361
|
layer: "",
|
|
2360
2362
|
lineType: ""
|
|
2361
2363
|
};
|
|
2362
|
-
}),
|
|
2363
|
-
o.value =
|
|
2364
|
+
}), c = k(() => n.value && r.value.type != ""), w = (m) => {
|
|
2365
|
+
o.value = m.id, i.value = m.x, l.value = m.y, n.value = !0;
|
|
2364
2366
|
}, f = () => {
|
|
2365
2367
|
n.value = !1;
|
|
2366
2368
|
};
|
|
2367
2369
|
return H(() => {
|
|
2368
|
-
const
|
|
2369
|
-
|
|
2370
|
+
const m = T.instance.curView.events;
|
|
2371
|
+
m.hover.addEventListener(w), m.unhover.addEventListener(f);
|
|
2370
2372
|
}), te(() => {
|
|
2371
|
-
const
|
|
2372
|
-
|
|
2373
|
-
}), (
|
|
2373
|
+
const m = T.instance.curView.events;
|
|
2374
|
+
m.hover.removeEventListener(w), m.unhover.removeEventListener(f);
|
|
2375
|
+
}), (m, h) => {
|
|
2374
2376
|
const _ = M("el-text"), b = M("el-col"), S = M("el-row"), $ = M("el-card");
|
|
2375
|
-
return
|
|
2377
|
+
return c.value ? (u(), C($, {
|
|
2376
2378
|
key: 0,
|
|
2377
2379
|
class: "ml-entity-info"
|
|
2378
2380
|
}, {
|
|
2379
2381
|
default: p(() => [
|
|
2380
|
-
|
|
2382
|
+
g(S, { class: "ml-entity-info-text" }, {
|
|
2381
2383
|
default: p(() => [
|
|
2382
|
-
|
|
2384
|
+
g(b, { span: 24 }, {
|
|
2383
2385
|
default: p(() => [
|
|
2384
|
-
|
|
2386
|
+
g(_, {
|
|
2385
2387
|
size: "small",
|
|
2386
2388
|
class: "ml-entity-info-title"
|
|
2387
2389
|
}, {
|
|
@@ -2396,22 +2398,22 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2396
2398
|
]),
|
|
2397
2399
|
_: 1
|
|
2398
2400
|
}),
|
|
2399
|
-
|
|
2401
|
+
g(S, { class: "ml-entity-info-text" }, {
|
|
2400
2402
|
default: p(() => [
|
|
2401
|
-
|
|
2403
|
+
g(b, { span: 10 }, {
|
|
2402
2404
|
default: p(() => [
|
|
2403
|
-
|
|
2405
|
+
g(_, { size: "small" }, {
|
|
2404
2406
|
default: p(() => [
|
|
2405
|
-
F(D(
|
|
2407
|
+
F(D(v(e)("main.entityInfo.color")), 1)
|
|
2406
2408
|
]),
|
|
2407
2409
|
_: 1
|
|
2408
2410
|
})
|
|
2409
2411
|
]),
|
|
2410
2412
|
_: 1
|
|
2411
2413
|
}),
|
|
2412
|
-
|
|
2414
|
+
g(b, { span: 14 }, {
|
|
2413
2415
|
default: p(() => [
|
|
2414
|
-
|
|
2416
|
+
g(_, { size: "small" }, {
|
|
2415
2417
|
default: p(() => [
|
|
2416
2418
|
F(D(r.value.color), 1)
|
|
2417
2419
|
]),
|
|
@@ -2423,22 +2425,22 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2423
2425
|
]),
|
|
2424
2426
|
_: 1
|
|
2425
2427
|
}),
|
|
2426
|
-
|
|
2428
|
+
g(S, { class: "ml-entity-info-text" }, {
|
|
2427
2429
|
default: p(() => [
|
|
2428
|
-
|
|
2430
|
+
g(b, { span: 10 }, {
|
|
2429
2431
|
default: p(() => [
|
|
2430
|
-
|
|
2432
|
+
g(_, { size: "small" }, {
|
|
2431
2433
|
default: p(() => [
|
|
2432
|
-
F(D(
|
|
2434
|
+
F(D(v(e)("main.entityInfo.layer")), 1)
|
|
2433
2435
|
]),
|
|
2434
2436
|
_: 1
|
|
2435
2437
|
})
|
|
2436
2438
|
]),
|
|
2437
2439
|
_: 1
|
|
2438
2440
|
}),
|
|
2439
|
-
|
|
2441
|
+
g(b, { span: 14 }, {
|
|
2440
2442
|
default: p(() => [
|
|
2441
|
-
|
|
2443
|
+
g(_, { size: "small" }, {
|
|
2442
2444
|
default: p(() => [
|
|
2443
2445
|
F(D(r.value.layer), 1)
|
|
2444
2446
|
]),
|
|
@@ -2450,22 +2452,22 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2450
2452
|
]),
|
|
2451
2453
|
_: 1
|
|
2452
2454
|
}),
|
|
2453
|
-
|
|
2455
|
+
g(S, { class: "ml-entity-info-text" }, {
|
|
2454
2456
|
default: p(() => [
|
|
2455
|
-
|
|
2457
|
+
g(b, { span: 10 }, {
|
|
2456
2458
|
default: p(() => [
|
|
2457
|
-
|
|
2459
|
+
g(_, { size: "small" }, {
|
|
2458
2460
|
default: p(() => [
|
|
2459
|
-
F(D(
|
|
2461
|
+
F(D(v(e)("main.entityInfo.lineType")), 1)
|
|
2460
2462
|
]),
|
|
2461
2463
|
_: 1
|
|
2462
2464
|
})
|
|
2463
2465
|
]),
|
|
2464
2466
|
_: 1
|
|
2465
2467
|
}),
|
|
2466
|
-
|
|
2468
|
+
g(b, { span: 14 }, {
|
|
2467
2469
|
default: p(() => [
|
|
2468
|
-
|
|
2470
|
+
g(_, { size: "small" }, {
|
|
2469
2471
|
default: p(() => [
|
|
2470
2472
|
F(D(r.value.lineType), 1)
|
|
2471
2473
|
]),
|
|
@@ -2500,10 +2502,10 @@ const Po = (t) => (Le("data-v-11a64c54"), t = t(), ze(), t), Oo = /* @__PURE__ *
|
|
|
2500
2502
|
]), o = (a) => {
|
|
2501
2503
|
(a === "en" || a === "zh") && i(a);
|
|
2502
2504
|
};
|
|
2503
|
-
return (a, s) => (
|
|
2505
|
+
return (a, s) => (u(), C(v(bo), {
|
|
2504
2506
|
class: "ml-language-selector",
|
|
2505
2507
|
languages: l,
|
|
2506
|
-
current:
|
|
2508
|
+
current: v(n),
|
|
2507
2509
|
onClick: o
|
|
2508
2510
|
}, null, 8, ["languages", "current"]));
|
|
2509
2511
|
}
|
|
@@ -2513,11 +2515,11 @@ var al = /* @__PURE__ */ L({
|
|
|
2513
2515
|
name: "Check",
|
|
2514
2516
|
__name: "check",
|
|
2515
2517
|
setup(t) {
|
|
2516
|
-
return (e, n) => (
|
|
2518
|
+
return (e, n) => (u(), y("svg", {
|
|
2517
2519
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2518
2520
|
viewBox: "0 0 1024 1024"
|
|
2519
2521
|
}, [
|
|
2520
|
-
|
|
2522
|
+
d("path", {
|
|
2521
2523
|
fill: "currentColor",
|
|
2522
2524
|
d: "M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"
|
|
2523
2525
|
})
|
|
@@ -2527,11 +2529,11 @@ var al = /* @__PURE__ */ L({
|
|
|
2527
2529
|
name: "Menu",
|
|
2528
2530
|
__name: "menu",
|
|
2529
2531
|
setup(t) {
|
|
2530
|
-
return (e, n) => (
|
|
2532
|
+
return (e, n) => (u(), y("svg", {
|
|
2531
2533
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2532
2534
|
viewBox: "0 0 1024 1024"
|
|
2533
2535
|
}, [
|
|
2534
|
-
|
|
2536
|
+
d("path", {
|
|
2535
2537
|
fill: "currentColor",
|
|
2536
2538
|
d: "M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"
|
|
2537
2539
|
})
|
|
@@ -2541,11 +2543,11 @@ var al = /* @__PURE__ */ L({
|
|
|
2541
2543
|
name: "Moon",
|
|
2542
2544
|
__name: "moon",
|
|
2543
2545
|
setup(t) {
|
|
2544
|
-
return (e, n) => (
|
|
2546
|
+
return (e, n) => (u(), y("svg", {
|
|
2545
2547
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2546
2548
|
viewBox: "0 0 1024 1024"
|
|
2547
2549
|
}, [
|
|
2548
|
-
|
|
2550
|
+
d("path", {
|
|
2549
2551
|
fill: "currentColor",
|
|
2550
2552
|
d: "M240.448 240.448a384 384 0 1 0 559.424 525.696 448 448 0 0 1-542.016-542.08 390.592 390.592 0 0 0-17.408 16.384zm181.056 362.048a384 384 0 0 0 525.632 16.384A448 448 0 1 1 405.056 76.8a384 384 0 0 0 16.448 525.696"
|
|
2551
2553
|
})
|
|
@@ -2555,11 +2557,11 @@ var al = /* @__PURE__ */ L({
|
|
|
2555
2557
|
name: "Operation",
|
|
2556
2558
|
__name: "operation",
|
|
2557
2559
|
setup(t) {
|
|
2558
|
-
return (e, n) => (
|
|
2560
|
+
return (e, n) => (u(), y("svg", {
|
|
2559
2561
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2560
2562
|
viewBox: "0 0 1024 1024"
|
|
2561
2563
|
}, [
|
|
2562
|
-
|
|
2564
|
+
d("path", {
|
|
2563
2565
|
fill: "currentColor",
|
|
2564
2566
|
d: "M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"
|
|
2565
2567
|
})
|
|
@@ -2569,39 +2571,39 @@ var al = /* @__PURE__ */ L({
|
|
|
2569
2571
|
name: "Setting",
|
|
2570
2572
|
__name: "setting",
|
|
2571
2573
|
setup(t) {
|
|
2572
|
-
return (e, n) => (
|
|
2574
|
+
return (e, n) => (u(), y("svg", {
|
|
2573
2575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2574
2576
|
viewBox: "0 0 1024 1024"
|
|
2575
2577
|
}, [
|
|
2576
|
-
|
|
2578
|
+
d("path", {
|
|
2577
2579
|
fill: "currentColor",
|
|
2578
2580
|
d: "M600.704 64a32 32 0 0 1 30.464 22.208l35.2 109.376c14.784 7.232 28.928 15.36 42.432 24.512l112.384-24.192a32 32 0 0 1 34.432 15.36L944.32 364.8a32 32 0 0 1-4.032 37.504l-77.12 85.12a357.12 357.12 0 0 1 0 49.024l77.12 85.248a32 32 0 0 1 4.032 37.504l-88.704 153.6a32 32 0 0 1-34.432 15.296L708.8 803.904c-13.44 9.088-27.648 17.28-42.368 24.512l-35.264 109.376A32 32 0 0 1 600.704 960H423.296a32 32 0 0 1-30.464-22.208L357.696 828.48a351.616 351.616 0 0 1-42.56-24.64l-112.32 24.256a32 32 0 0 1-34.432-15.36L79.68 659.2a32 32 0 0 1 4.032-37.504l77.12-85.248a357.12 357.12 0 0 1 0-48.896l-77.12-85.248A32 32 0 0 1 79.68 364.8l88.704-153.6a32 32 0 0 1 34.432-15.296l112.32 24.256c13.568-9.152 27.776-17.408 42.56-24.64l35.2-109.312A32 32 0 0 1 423.232 64H600.64zm-23.424 64H446.72l-36.352 113.088-24.512 11.968a294.113 294.113 0 0 0-34.816 20.096l-22.656 15.36-116.224-25.088-65.28 113.152 79.68 88.192-1.92 27.136a293.12 293.12 0 0 0 0 40.192l1.92 27.136-79.808 88.192 65.344 113.152 116.224-25.024 22.656 15.296a294.113 294.113 0 0 0 34.816 20.096l24.512 11.968L446.72 896h130.688l36.48-113.152 24.448-11.904a288.282 288.282 0 0 0 34.752-20.096l22.592-15.296 116.288 25.024 65.28-113.152-79.744-88.192 1.92-27.136a293.12 293.12 0 0 0 0-40.256l-1.92-27.136 79.808-88.128-65.344-113.152-116.288 24.96-22.592-15.232a287.616 287.616 0 0 0-34.752-20.096l-24.448-11.904L577.344 128zM512 320a192 192 0 1 1 0 384 192 192 0 0 1 0-384m0 64a128 128 0 1 0 0 256 128 128 0 0 0 0-256"
|
|
2579
2581
|
})
|
|
2580
2582
|
]));
|
|
2581
2583
|
}
|
|
2582
|
-
}), pl = ml,
|
|
2584
|
+
}), pl = ml, gl = /* @__PURE__ */ L({
|
|
2583
2585
|
name: "Sunny",
|
|
2584
2586
|
__name: "sunny",
|
|
2585
2587
|
setup(t) {
|
|
2586
|
-
return (e, n) => (
|
|
2588
|
+
return (e, n) => (u(), y("svg", {
|
|
2587
2589
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2588
2590
|
viewBox: "0 0 1024 1024"
|
|
2589
2591
|
}, [
|
|
2590
|
-
|
|
2592
|
+
d("path", {
|
|
2591
2593
|
fill: "currentColor",
|
|
2592
2594
|
d: "M512 704a192 192 0 1 0 0-384 192 192 0 0 0 0 384m0 64a256 256 0 1 1 0-512 256 256 0 0 1 0 512m0-704a32 32 0 0 1 32 32v64a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 768a32 32 0 0 1 32 32v64a32 32 0 1 1-64 0v-64a32 32 0 0 1 32-32M195.2 195.2a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 1 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm543.104 543.104a32 32 0 0 1 45.248 0l45.248 45.248a32 32 0 0 1-45.248 45.248l-45.248-45.248a32 32 0 0 1 0-45.248M64 512a32 32 0 0 1 32-32h64a32 32 0 0 1 0 64H96a32 32 0 0 1-32-32m768 0a32 32 0 0 1 32-32h64a32 32 0 1 1 0 64h-64a32 32 0 0 1-32-32M195.2 828.8a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248L240.448 828.8a32 32 0 0 1-45.248 0zm543.104-543.104a32 32 0 0 1 0-45.248l45.248-45.248a32 32 0 0 1 45.248 45.248l-45.248 45.248a32 32 0 0 1-45.248 0"
|
|
2593
2595
|
})
|
|
2594
2596
|
]));
|
|
2595
2597
|
}
|
|
2596
|
-
}),
|
|
2598
|
+
}), vl = gl, fl = /* @__PURE__ */ L({
|
|
2597
2599
|
name: "Warning",
|
|
2598
2600
|
__name: "warning",
|
|
2599
2601
|
setup(t) {
|
|
2600
|
-
return (e, n) => (
|
|
2602
|
+
return (e, n) => (u(), y("svg", {
|
|
2601
2603
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2602
2604
|
viewBox: "0 0 1024 1024"
|
|
2603
2605
|
}, [
|
|
2604
|
-
|
|
2606
|
+
d("path", {
|
|
2605
2607
|
fill: "currentColor",
|
|
2606
2608
|
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 832a384 384 0 0 0 0-768 384 384 0 0 0 0 768m48-176a48 48 0 1 1-96 0 48 48 0 0 1 96 0m-48-464a32 32 0 0 1 32 32v288a32 32 0 0 1-64 0V288a32 32 0 0 1 32-32"
|
|
2607
2609
|
})
|
|
@@ -2612,27 +2614,27 @@ const _l = /* @__PURE__ */ L({
|
|
|
2612
2614
|
__name: "MlMainMenu",
|
|
2613
2615
|
setup(t) {
|
|
2614
2616
|
const { t: e } = N(), n = (i) => {
|
|
2615
|
-
i === "Convert" ? new Ae().tirgger(
|
|
2617
|
+
i === "Convert" ? new Ae().tirgger(T.instance.context) : i === "QNew" ? new Fe().tirgger(T.instance.context) : i === "Open" && new Ie().tirgger(T.instance.context);
|
|
2616
2618
|
};
|
|
2617
2619
|
return (i, l) => {
|
|
2618
2620
|
const o = M("el-icon"), a = M("el-dropdown-item"), s = M("el-dropdown-menu"), r = M("el-dropdown");
|
|
2619
|
-
return
|
|
2621
|
+
return u(), C(r, {
|
|
2620
2622
|
"aria-hidden": "false",
|
|
2621
2623
|
class: "ml-main-menu-container",
|
|
2622
2624
|
onCommand: n
|
|
2623
2625
|
}, {
|
|
2624
2626
|
dropdown: p(() => [
|
|
2625
|
-
|
|
2627
|
+
g(s, null, {
|
|
2626
2628
|
default: p(() => [
|
|
2627
|
-
|
|
2629
|
+
g(a, { command: "QNew" }, {
|
|
2628
2630
|
default: p(() => [
|
|
2629
|
-
F(D(
|
|
2631
|
+
F(D(v(e)("main.mainMenu.new")), 1)
|
|
2630
2632
|
]),
|
|
2631
2633
|
_: 1
|
|
2632
2634
|
}),
|
|
2633
|
-
|
|
2635
|
+
g(a, { command: "Open" }, {
|
|
2634
2636
|
default: p(() => [
|
|
2635
|
-
F(D(
|
|
2637
|
+
F(D(v(e)("main.mainMenu.open")), 1)
|
|
2636
2638
|
]),
|
|
2637
2639
|
_: 1
|
|
2638
2640
|
})
|
|
@@ -2641,12 +2643,12 @@ const _l = /* @__PURE__ */ L({
|
|
|
2641
2643
|
})
|
|
2642
2644
|
]),
|
|
2643
2645
|
default: p(() => [
|
|
2644
|
-
|
|
2646
|
+
g(o, {
|
|
2645
2647
|
class: "ml-main-menu-icon",
|
|
2646
2648
|
size: "30"
|
|
2647
2649
|
}, {
|
|
2648
2650
|
default: p(() => [
|
|
2649
|
-
v(
|
|
2651
|
+
g(v(rl))
|
|
2650
2652
|
]),
|
|
2651
2653
|
_: 1
|
|
2652
2654
|
})
|
|
@@ -2693,10 +2695,10 @@ const _l = /* @__PURE__ */ L({
|
|
|
2693
2695
|
description: e("main.verticalToolbar.layer.description")
|
|
2694
2696
|
}
|
|
2695
2697
|
]), l = (o) => {
|
|
2696
|
-
|
|
2698
|
+
T.instance.sendStringToExecute(o);
|
|
2697
2699
|
};
|
|
2698
|
-
return (o, a) =>
|
|
2699
|
-
v(
|
|
2700
|
+
return (o, a) => v(n).isShowToolbar ? (u(), y("div", yl, [
|
|
2701
|
+
g(v(Bo), {
|
|
2700
2702
|
items: i.value,
|
|
2701
2703
|
size: "small",
|
|
2702
2704
|
direction: "vertical",
|
|
@@ -2713,29 +2715,29 @@ const _l = /* @__PURE__ */ L({
|
|
|
2713
2715
|
onTooltip: e("main.statusBar.fullScreen.on"),
|
|
2714
2716
|
offTooltip: e("main.statusBar.fullScreen.off")
|
|
2715
2717
|
})), o = k(() => !n.value);
|
|
2716
|
-
return (a, s) => (
|
|
2718
|
+
return (a, s) => (u(), C(v(Ve), {
|
|
2717
2719
|
modelValue: o.value,
|
|
2718
2720
|
"onUpdate:modelValue": s[0] || (s[0] = (r) => o.value = r),
|
|
2719
2721
|
data: l.value,
|
|
2720
|
-
onClick:
|
|
2722
|
+
onClick: v(i)
|
|
2721
2723
|
}, null, 8, ["modelValue", "data", "onClick"]));
|
|
2722
2724
|
}
|
|
2723
2725
|
}), kl = /* @__PURE__ */ L({
|
|
2724
2726
|
__name: "MlPointStyleButton",
|
|
2725
2727
|
setup(t) {
|
|
2726
2728
|
const { t: e } = N(), n = () => {
|
|
2727
|
-
|
|
2729
|
+
T.instance.sendStringToExecute("pttype");
|
|
2728
2730
|
};
|
|
2729
2731
|
return (i, l) => {
|
|
2730
2732
|
const o = M("el-button"), a = M("el-tooltip");
|
|
2731
|
-
return
|
|
2732
|
-
content:
|
|
2733
|
+
return u(), C(a, {
|
|
2734
|
+
content: v(e)("main.statusBar.pointStyle.tooltip"),
|
|
2733
2735
|
"hide-after": 0
|
|
2734
2736
|
}, {
|
|
2735
2737
|
default: p(() => [
|
|
2736
|
-
|
|
2738
|
+
g(o, {
|
|
2737
2739
|
class: "ml-point-style-button",
|
|
2738
|
-
icon:
|
|
2740
|
+
icon: v(dl),
|
|
2739
2741
|
onClick: l[0] || (l[0] = (s) => n())
|
|
2740
2742
|
}, null, 8, ["icon"])
|
|
2741
2743
|
]),
|
|
@@ -2756,9 +2758,19 @@ const _l = /* @__PURE__ */ L({
|
|
|
2756
2758
|
});
|
|
2757
2759
|
if (a.subStage) {
|
|
2758
2760
|
const r = zt(a.subStage);
|
|
2759
|
-
s.setText(r)
|
|
2761
|
+
if (s.setText(r), a.subStage === "PARSE" && a.subStageStatus === "END" && a.data) {
|
|
2762
|
+
const c = a.data;
|
|
2763
|
+
c.unknownEntityCount > 0 && Q({
|
|
2764
|
+
showClose: !0,
|
|
2765
|
+
message: e("main.message.unknownEntities", {
|
|
2766
|
+
count: c.unknownEntityCount
|
|
2767
|
+
}),
|
|
2768
|
+
grouping: !0,
|
|
2769
|
+
type: "warning"
|
|
2770
|
+
});
|
|
2771
|
+
}
|
|
2760
2772
|
}
|
|
2761
|
-
n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close()
|
|
2773
|
+
n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
|
|
2762
2774
|
} else if (a.stage === "FETCH_FILE") {
|
|
2763
2775
|
const s = we.service({
|
|
2764
2776
|
lock: !0
|
|
@@ -2770,8 +2782,8 @@ const _l = /* @__PURE__ */ L({
|
|
|
2770
2782
|
Y.on("open-file-progress", l);
|
|
2771
2783
|
}), te(() => {
|
|
2772
2784
|
Y.off("open-file-progress", l);
|
|
2773
|
-
}), (a, s) => i.value ? (
|
|
2774
|
-
v(
|
|
2785
|
+
}), (a, s) => i.value ? (u(), y("div", Sl, [
|
|
2786
|
+
g(v(Je), {
|
|
2775
2787
|
"text-inside": !0,
|
|
2776
2788
|
"stroke-width": 20,
|
|
2777
2789
|
percentage: n.value,
|
|
@@ -2779,59 +2791,59 @@ const _l = /* @__PURE__ */ L({
|
|
|
2779
2791
|
}, null, 8, ["percentage"])
|
|
2780
2792
|
])) : q("", !0);
|
|
2781
2793
|
}
|
|
2782
|
-
}), Ll = /* @__PURE__ */ G(Cl, [["__scopeId", "data-v-
|
|
2794
|
+
}), Ll = /* @__PURE__ */ G(Cl, [["__scopeId", "data-v-fe8fa18d"]]), zl = /* @__PURE__ */ L({
|
|
2783
2795
|
__name: "MlSettingButton",
|
|
2784
2796
|
setup(t) {
|
|
2785
2797
|
const { t: e } = N(), n = ce(), i = (l) => {
|
|
2786
2798
|
l == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, K.instance.isShowCoordinate = n.isShowCoordinate) : l == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, K.instance.isShowCommandLine = n.isShowCommandLine) : l == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, K.instance.isShowToolbar = n.isShowToolbar) : l == "isShowStats" && (n.isShowStats = !n.isShowStats, K.instance.isShowStats = n.isShowStats);
|
|
2787
2799
|
};
|
|
2788
2800
|
return (l, o) => {
|
|
2789
|
-
const a = M("el-button"), s = M("el-dropdown-item"), r = M("el-dropdown-menu"),
|
|
2790
|
-
return
|
|
2791
|
-
content:
|
|
2801
|
+
const a = M("el-button"), s = M("el-dropdown-item"), r = M("el-dropdown-menu"), c = M("el-dropdown"), w = M("el-tooltip");
|
|
2802
|
+
return u(), C(w, {
|
|
2803
|
+
content: v(e)("main.statusBar.setting.tooltip"),
|
|
2792
2804
|
"hide-after": 0
|
|
2793
2805
|
}, {
|
|
2794
2806
|
default: p(() => [
|
|
2795
|
-
|
|
2807
|
+
g(c, {
|
|
2796
2808
|
trigger: "click",
|
|
2797
2809
|
onCommand: i
|
|
2798
2810
|
}, {
|
|
2799
2811
|
dropdown: p(() => [
|
|
2800
|
-
|
|
2812
|
+
g(r, null, {
|
|
2801
2813
|
default: p(() => [
|
|
2802
|
-
|
|
2803
|
-
icon:
|
|
2814
|
+
g(s, {
|
|
2815
|
+
icon: v(n).isShowStats ? v(le) : "",
|
|
2804
2816
|
command: "isShowStats"
|
|
2805
2817
|
}, {
|
|
2806
2818
|
default: p(() => [
|
|
2807
|
-
F(D(
|
|
2819
|
+
F(D(v(e)("main.statusBar.setting.stats")), 1)
|
|
2808
2820
|
]),
|
|
2809
2821
|
_: 1
|
|
2810
2822
|
}, 8, ["icon"]),
|
|
2811
|
-
|
|
2812
|
-
icon:
|
|
2823
|
+
g(s, {
|
|
2824
|
+
icon: v(n).isShowCommandLine ? v(le) : "",
|
|
2813
2825
|
command: "isShowCommandLine"
|
|
2814
2826
|
}, {
|
|
2815
2827
|
default: p(() => [
|
|
2816
|
-
F(D(
|
|
2828
|
+
F(D(v(e)("main.statusBar.setting.commandLine")), 1)
|
|
2817
2829
|
]),
|
|
2818
2830
|
_: 1
|
|
2819
2831
|
}, 8, ["icon"]),
|
|
2820
|
-
|
|
2821
|
-
icon:
|
|
2832
|
+
g(s, {
|
|
2833
|
+
icon: v(n).isShowCoordinate ? v(le) : "",
|
|
2822
2834
|
command: "isShowCoordinate"
|
|
2823
2835
|
}, {
|
|
2824
2836
|
default: p(() => [
|
|
2825
|
-
F(D(
|
|
2837
|
+
F(D(v(e)("main.statusBar.setting.coordinate")), 1)
|
|
2826
2838
|
]),
|
|
2827
2839
|
_: 1
|
|
2828
2840
|
}, 8, ["icon"]),
|
|
2829
|
-
|
|
2830
|
-
icon:
|
|
2841
|
+
g(s, {
|
|
2842
|
+
icon: v(n).isShowToolbar ? v(le) : "",
|
|
2831
2843
|
command: "isShowToolbar"
|
|
2832
2844
|
}, {
|
|
2833
2845
|
default: p(() => [
|
|
2834
|
-
F(D(
|
|
2846
|
+
F(D(v(e)("main.statusBar.setting.toolbar")), 1)
|
|
2835
2847
|
]),
|
|
2836
2848
|
_: 1
|
|
2837
2849
|
}, 8, ["icon"])
|
|
@@ -2840,9 +2852,9 @@ const _l = /* @__PURE__ */ L({
|
|
|
2840
2852
|
})
|
|
2841
2853
|
]),
|
|
2842
2854
|
default: p(() => [
|
|
2843
|
-
|
|
2855
|
+
g(a, {
|
|
2844
2856
|
class: "ml-setting-button",
|
|
2845
|
-
icon:
|
|
2857
|
+
icon: v(pl)
|
|
2846
2858
|
}, null, 8, ["icon"])
|
|
2847
2859
|
]),
|
|
2848
2860
|
_: 1
|
|
@@ -2856,31 +2868,31 @@ const _l = /* @__PURE__ */ L({
|
|
|
2856
2868
|
__name: "MlThemeButton",
|
|
2857
2869
|
setup(t) {
|
|
2858
2870
|
const { t: e } = N(), n = k(() => ({
|
|
2859
|
-
onIcon:
|
|
2871
|
+
onIcon: vl,
|
|
2860
2872
|
offIcon: cl,
|
|
2861
2873
|
onTooltip: e("main.statusBar.theme.light"),
|
|
2862
2874
|
offTooltip: e("main.statusBar.theme.dark")
|
|
2863
2875
|
}));
|
|
2864
|
-
return (i, l) => (
|
|
2865
|
-
modelValue:
|
|
2876
|
+
return (i, l) => (u(), C(v(Ve), {
|
|
2877
|
+
modelValue: v(ae),
|
|
2866
2878
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => Oe(ae) ? ae.value = o : null),
|
|
2867
2879
|
data: n.value,
|
|
2868
|
-
onClick: l[1] || (l[1] = (o) =>
|
|
2880
|
+
onClick: l[1] || (l[1] = (o) => v(mt)())
|
|
2869
2881
|
}, null, 8, ["modelValue", "data"]));
|
|
2870
2882
|
}
|
|
2871
2883
|
}), Tl = /* @__PURE__ */ L({
|
|
2872
2884
|
__name: "MlWarningButton",
|
|
2873
2885
|
setup(t) {
|
|
2874
2886
|
const e = () => {
|
|
2875
|
-
|
|
2887
|
+
T.instance.sendStringToExecute("md");
|
|
2876
2888
|
}, { fonts: n, images: i } = $e(), l = k(() => i.size > 0 || n.size > 0);
|
|
2877
2889
|
return (o, a) => {
|
|
2878
2890
|
const s = M("el-button");
|
|
2879
|
-
return l.value ? (
|
|
2891
|
+
return l.value ? (u(), C(s, {
|
|
2880
2892
|
key: 0,
|
|
2881
2893
|
class: "ml-warning-button",
|
|
2882
2894
|
type: "warning",
|
|
2883
|
-
icon:
|
|
2895
|
+
icon: v(hl),
|
|
2884
2896
|
onClick: a[0] || (a[0] = (r) => e())
|
|
2885
2897
|
}, null, 8, ["icon"])) : q("", !0);
|
|
2886
2898
|
};
|
|
@@ -2888,25 +2900,25 @@ const _l = /* @__PURE__ */ L({
|
|
|
2888
2900
|
}), El = /* @__PURE__ */ G(Tl, [["__scopeId", "data-v-3411a3ec"]]), $l = /* @__PURE__ */ L({
|
|
2889
2901
|
__name: "MlStatusBar",
|
|
2890
2902
|
setup(t) {
|
|
2891
|
-
const { text: e } = dt(
|
|
2903
|
+
const { text: e } = dt(T.instance.curView), n = vt(T.instance), i = ce(), l = (o) => {
|
|
2892
2904
|
Be().layoutManager.setCurrentLayoutBtrId(
|
|
2893
2905
|
o.blockTableRecordId
|
|
2894
2906
|
);
|
|
2895
2907
|
};
|
|
2896
2908
|
return (o, a) => {
|
|
2897
2909
|
const s = M("el-button"), r = M("el-button-group");
|
|
2898
|
-
return
|
|
2910
|
+
return u(), C(v(Lo), { class: "ml-status-bar" }, {
|
|
2899
2911
|
left: p(() => [
|
|
2900
|
-
|
|
2912
|
+
g(r, { class: "ml-status-bar-left-button-group" }, {
|
|
2901
2913
|
default: p(() => [
|
|
2902
|
-
(
|
|
2914
|
+
(u(!0), y(j, null, X(v(n), (c) => (u(), C(s, {
|
|
2903
2915
|
class: "ml-status-bar-layout-button",
|
|
2904
|
-
key:
|
|
2905
|
-
type:
|
|
2906
|
-
onClick: (w) => l(
|
|
2916
|
+
key: c.name,
|
|
2917
|
+
type: c.isActive ? "primary" : "",
|
|
2918
|
+
onClick: (w) => l(c)
|
|
2907
2919
|
}, {
|
|
2908
2920
|
default: p(() => [
|
|
2909
|
-
F(D(
|
|
2921
|
+
F(D(c.name), 1)
|
|
2910
2922
|
]),
|
|
2911
2923
|
_: 2
|
|
2912
2924
|
}, 1032, ["type", "onClick"]))), 128))
|
|
@@ -2915,23 +2927,23 @@ const _l = /* @__PURE__ */ L({
|
|
|
2915
2927
|
})
|
|
2916
2928
|
]),
|
|
2917
2929
|
right: p(() => [
|
|
2918
|
-
|
|
2919
|
-
|
|
2930
|
+
g(Ll),
|
|
2931
|
+
g(r, { class: "ml-status-bar-right-button-group" }, {
|
|
2920
2932
|
default: p(() => [
|
|
2921
|
-
|
|
2933
|
+
v(i).isShowCoordinate ? (u(), C(s, {
|
|
2922
2934
|
key: 0,
|
|
2923
2935
|
class: "ml-status-bar-current-pos"
|
|
2924
2936
|
}, {
|
|
2925
2937
|
default: p(() => [
|
|
2926
|
-
F(D(
|
|
2938
|
+
F(D(v(e)), 1)
|
|
2927
2939
|
]),
|
|
2928
2940
|
_: 1
|
|
2929
2941
|
})) : q("", !0),
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2942
|
+
g(El),
|
|
2943
|
+
g(Bl),
|
|
2944
|
+
g(xl),
|
|
2945
|
+
g(Ml),
|
|
2946
|
+
g(Dl)
|
|
2935
2947
|
]),
|
|
2936
2948
|
_: 1
|
|
2937
2949
|
})
|
|
@@ -2952,17 +2964,17 @@ const _l = /* @__PURE__ */ L({
|
|
|
2952
2964
|
background: { default: void 0 }
|
|
2953
2965
|
},
|
|
2954
2966
|
setup(t) {
|
|
2955
|
-
const e = t, { t: n } = N(), { effectiveLocale: i, elementPlusLocale: l } = Ee(e.locale), o = x(), a = x(null), s = k(() => a.value), r = async (f,
|
|
2967
|
+
const e = t, { t: n } = N(), { effectiveLocale: i, elementPlusLocale: l } = Ee(e.locale), o = x(), a = x(null), s = k(() => a.value), r = async (f, m) => {
|
|
2956
2968
|
const h = { minimumChunkSize: 1e3 };
|
|
2957
|
-
await
|
|
2958
|
-
},
|
|
2969
|
+
await T.instance.openDocument(f, m, h), Z.fileName = f;
|
|
2970
|
+
}, c = async (f) => {
|
|
2959
2971
|
try {
|
|
2960
|
-
const
|
|
2961
|
-
await
|
|
2972
|
+
const m = { minimumChunkSize: 1e3 };
|
|
2973
|
+
await T.instance.openUrl(f, m);
|
|
2962
2974
|
const h = f.split("/").pop();
|
|
2963
|
-
|
|
2964
|
-
} catch (
|
|
2965
|
-
console.error("Failed to open file from URL:",
|
|
2975
|
+
Z.fileName = h ?? "";
|
|
2976
|
+
} catch (m) {
|
|
2977
|
+
console.error("Failed to open file from URL:", m), Q({
|
|
2966
2978
|
message: n("main.message.failedToOpenFile", { fileName: f }),
|
|
2967
2979
|
grouping: !0,
|
|
2968
2980
|
type: "error",
|
|
@@ -2970,9 +2982,9 @@ const _l = /* @__PURE__ */ L({
|
|
|
2970
2982
|
});
|
|
2971
2983
|
}
|
|
2972
2984
|
}, w = async (f) => {
|
|
2973
|
-
var
|
|
2985
|
+
var m;
|
|
2974
2986
|
try {
|
|
2975
|
-
const h = (
|
|
2987
|
+
const h = (m = f.name.split(".").pop()) == null ? void 0 : m.toLowerCase(), _ = new FileReader();
|
|
2976
2988
|
if (h === "dxf")
|
|
2977
2989
|
_.readAsText(f);
|
|
2978
2990
|
else if (h === "dwg")
|
|
@@ -2983,14 +2995,14 @@ const _l = /* @__PURE__ */ L({
|
|
|
2983
2995
|
($, I) => {
|
|
2984
2996
|
_.onload = (V) => {
|
|
2985
2997
|
var P;
|
|
2986
|
-
const
|
|
2987
|
-
|
|
2998
|
+
const B = (P = V.target) == null ? void 0 : P.result;
|
|
2999
|
+
B ? $(B) : I(new Error("Failed to read file content"));
|
|
2988
3000
|
}, _.onerror = () => I(new Error("Failed to read file"));
|
|
2989
3001
|
}
|
|
2990
3002
|
), S = { minimumChunkSize: 1e3 };
|
|
2991
|
-
await
|
|
3003
|
+
await T.instance.openDocument(f.name, b, S), Z.fileName = f.name;
|
|
2992
3004
|
} catch (h) {
|
|
2993
|
-
console.error("Failed to open local file:", h),
|
|
3005
|
+
console.error("Failed to open local file:", h), Q({
|
|
2994
3006
|
message: n("main.message.failedToOpenFile", { fileName: f.name }),
|
|
2995
3007
|
grouping: !0,
|
|
2996
3008
|
type: "error",
|
|
@@ -3001,7 +3013,7 @@ const _l = /* @__PURE__ */ L({
|
|
|
3001
3013
|
return E(
|
|
3002
3014
|
() => e.url,
|
|
3003
3015
|
async (f) => {
|
|
3004
|
-
f &&
|
|
3016
|
+
f && c(f);
|
|
3005
3017
|
}
|
|
3006
3018
|
), E(
|
|
3007
3019
|
() => e.localFile,
|
|
@@ -3011,19 +3023,19 @@ const _l = /* @__PURE__ */ L({
|
|
|
3011
3023
|
), E(
|
|
3012
3024
|
() => e.background,
|
|
3013
3025
|
(f) => {
|
|
3014
|
-
f != null && (
|
|
3026
|
+
f != null && (T.instance.curView.backgroundColor = f);
|
|
3015
3027
|
}
|
|
3016
3028
|
), H(async () => {
|
|
3017
|
-
o.value && (Nl(o.value), Rl(), a.value =
|
|
3029
|
+
o.value && (Nl(o.value), Rl(), a.value = T.instance), e.url ? c(e.url) : e.localFile && w(e.localFile), e.background != null && (T.instance.curView.backgroundColor = e.background);
|
|
3018
3030
|
}), Y.on("message", (f) => {
|
|
3019
|
-
|
|
3031
|
+
Q({
|
|
3020
3032
|
message: f.message,
|
|
3021
3033
|
grouping: !0,
|
|
3022
3034
|
type: f.type,
|
|
3023
3035
|
showClose: !0
|
|
3024
3036
|
});
|
|
3025
3037
|
}), Y.on("font-not-loaded", (f) => {
|
|
3026
|
-
|
|
3038
|
+
Q({
|
|
3027
3039
|
message: n("main.message.fontNotLoaded", {
|
|
3028
3040
|
fontName: f.fontName,
|
|
3029
3041
|
url: f.url
|
|
@@ -3033,46 +3045,46 @@ const _l = /* @__PURE__ */ L({
|
|
|
3033
3045
|
showClose: !0
|
|
3034
3046
|
});
|
|
3035
3047
|
}), Y.on("failed-to-get-avaiable-fonts", (f) => {
|
|
3036
|
-
|
|
3048
|
+
Q({
|
|
3037
3049
|
message: n("main.message.failedToGetAvaiableFonts", { url: f.url }),
|
|
3038
3050
|
grouping: !0,
|
|
3039
3051
|
type: "error",
|
|
3040
3052
|
showClose: !0
|
|
3041
3053
|
});
|
|
3042
3054
|
}), Y.on("failed-to-open-file", (f) => {
|
|
3043
|
-
|
|
3055
|
+
Q({
|
|
3044
3056
|
message: n("main.message.failedToOpenFile", { fileName: f.fileName }),
|
|
3045
3057
|
grouping: !0,
|
|
3046
3058
|
type: "error",
|
|
3047
3059
|
showClose: !0
|
|
3048
3060
|
});
|
|
3049
|
-
}), (f,
|
|
3061
|
+
}), (f, m) => {
|
|
3050
3062
|
const h = M("el-config-provider");
|
|
3051
|
-
return
|
|
3052
|
-
|
|
3063
|
+
return u(), y(j, null, [
|
|
3064
|
+
d("canvas", {
|
|
3053
3065
|
ref_key: "canvasRef",
|
|
3054
3066
|
ref: o,
|
|
3055
3067
|
class: "ml-cad-canvas"
|
|
3056
3068
|
}, null, 512),
|
|
3057
|
-
a.value ? (
|
|
3058
|
-
|
|
3069
|
+
a.value ? (u(), y("div", Al, [
|
|
3070
|
+
g(h, { locale: v(l) }, {
|
|
3059
3071
|
default: p(() => [
|
|
3060
|
-
|
|
3061
|
-
v(
|
|
3062
|
-
v(
|
|
3072
|
+
d("header", null, [
|
|
3073
|
+
g(v(wl)),
|
|
3074
|
+
g(v(ll), { "current-locale": v(i) }, null, 8, ["current-locale"])
|
|
3063
3075
|
]),
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
v(
|
|
3067
|
-
v(
|
|
3068
|
-
v(
|
|
3076
|
+
d("main", null, [
|
|
3077
|
+
d("div", Fl, D(v(Z).fileName), 1),
|
|
3078
|
+
g(v(bl)),
|
|
3079
|
+
g(v(Qo), { editor: s.value }, null, 8, ["editor"]),
|
|
3080
|
+
g(v(Bt))
|
|
3069
3081
|
]),
|
|
3070
|
-
|
|
3071
|
-
v(
|
|
3072
|
-
v(
|
|
3082
|
+
d("footer", null, [
|
|
3083
|
+
g(v(el)),
|
|
3084
|
+
g(v(Vl))
|
|
3073
3085
|
]),
|
|
3074
|
-
v(
|
|
3075
|
-
v(
|
|
3086
|
+
g(v(Et), { onFileRead: r }),
|
|
3087
|
+
g(v(nl))
|
|
3076
3088
|
]),
|
|
3077
3089
|
_: 1
|
|
3078
3090
|
}, 8, ["locale"])
|
|
@@ -3114,8 +3126,8 @@ const _l = /* @__PURE__ */ L({
|
|
|
3114
3126
|
props: {}
|
|
3115
3127
|
});
|
|
3116
3128
|
}, Nl = (t) => {
|
|
3117
|
-
|
|
3118
|
-
},
|
|
3129
|
+
T.createInstance(t), Re(), Il(), T.instance.loadDefaultFonts();
|
|
3130
|
+
}, Z = U({
|
|
3119
3131
|
fileName: "",
|
|
3120
3132
|
dialogs: {
|
|
3121
3133
|
layerManager: !1
|
|
@@ -3123,7 +3135,7 @@ const _l = /* @__PURE__ */ L({
|
|
|
3123
3135
|
});
|
|
3124
3136
|
class Pl extends re {
|
|
3125
3137
|
execute(e) {
|
|
3126
|
-
|
|
3138
|
+
Z.dialogs.layerManager = !0;
|
|
3127
3139
|
}
|
|
3128
3140
|
}
|
|
3129
3141
|
class Ol extends re {
|
|
@@ -3217,8 +3229,8 @@ export {
|
|
|
3217
3229
|
dt as useCurrentPos,
|
|
3218
3230
|
oe as useDialogManager,
|
|
3219
3231
|
pt as useFileTypes,
|
|
3220
|
-
|
|
3221
|
-
|
|
3232
|
+
gt as useLayers,
|
|
3233
|
+
vt as useLayouts,
|
|
3222
3234
|
Ee as useLocale,
|
|
3223
3235
|
$e as useMissedData,
|
|
3224
3236
|
ce as useSettings,
|