@mlightcad/cad-viewer 1.0.16 → 1.0.19
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/app/app.d.ts.map +1 -1
- package/dist/composable/useCurrentPos.d.ts.map +1 -1
- package/dist/index.js +284 -277
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
|
-
import { AcEdCommandStack as
|
|
2
|
+
import { AcEdCommandStack as W, AcApDocManager as B, eventBus as j, AcApSettingManager as Y, AcApConvertToSvgCmd as Ie, AcApQNewCmd as Fe, AcApOpenCmd as Pe, registerWorkers as Re, AcEdCommand as re } from "@mlightcad/cad-simple-viewer";
|
|
3
3
|
import "element-plus/dist/index.css";
|
|
4
|
-
import { reactive as
|
|
5
|
-
import { AcDbDatabaseConverterManager as Ge, acdbHostApplicationServices as Te, AcCmPerformanceCollector as
|
|
6
|
-
import { useDark as
|
|
4
|
+
import { reactive as q, computed as k, defineComponent as L, onMounted as O, resolveComponent as M, createBlock as C, openBlock as u, unref as m, withCtx as p, renderSlot as ie, createVNode as g, createTextVNode as I, toDisplayString as D, createElementVNode as d, ref as b, onUnmounted as ee, watch as E, createElementBlock as w, Fragment as K, renderList as X, resolveDynamicComponent as ge, mergeProps as Ne, mergeModels as Z, useCssVars as Ce, useModel as ve, createCommentVNode as U, normalizeStyle as pe, normalizeClass as Le, pushScopeId as ze, popScopeId as De, onBeforeUnmount as Be, withKeys as Oe, isRef as He, markRaw as he } from "vue";
|
|
5
|
+
import { AcDbDatabaseConverterManager as Ge, acdbHostApplicationServices as Te, AcCmPerformanceCollector as We } from "@mlightcad/data-model";
|
|
6
|
+
import { useDark as qe, useToggle as Ue, useFullscreen as je } from "@vueuse/core";
|
|
7
7
|
import Ye from "element-plus/es/locale/lang/en";
|
|
8
8
|
import Ke from "element-plus/es/locale/lang/zh-cn";
|
|
9
9
|
import { useI18n as R, createI18n as Xe } from "vue-i18n";
|
|
@@ -17,7 +17,7 @@ import "element-plus/es/components/dropdown-item/style/css";
|
|
|
17
17
|
import "element-plus/es/components/tooltip/style/css";
|
|
18
18
|
import "element-plus/es/components/button/style/css";
|
|
19
19
|
import "element-plus/es/components/button-group/style/css";
|
|
20
|
-
const ne =
|
|
20
|
+
const ne = q([]);
|
|
21
21
|
function rt(t) {
|
|
22
22
|
ne.find((n) => n.name === t.name) || ne.push({ ...t, visible: !1 });
|
|
23
23
|
}
|
|
@@ -69,7 +69,7 @@ const ut = /* @__PURE__ */ L({
|
|
|
69
69
|
function r() {
|
|
70
70
|
l("cancel"), l("update:modelValue", !1);
|
|
71
71
|
}
|
|
72
|
-
return
|
|
72
|
+
return O(() => {
|
|
73
73
|
o({
|
|
74
74
|
name: i.name,
|
|
75
75
|
component: "BaseDialog",
|
|
@@ -85,17 +85,17 @@ const ut = /* @__PURE__ */ L({
|
|
|
85
85
|
}, {
|
|
86
86
|
header: p(() => [
|
|
87
87
|
d("div", null, D(t.title), 1),
|
|
88
|
-
|
|
88
|
+
g(f, { class: "ml-dialog-header-bottom-line" })
|
|
89
89
|
]),
|
|
90
90
|
footer: p(() => [
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
g(f, { class: "ml-dialog-footer-top-line" }),
|
|
92
|
+
g(m(_e), { onClick: r }, {
|
|
93
93
|
default: p(() => [
|
|
94
94
|
I(D(m(n)("dialog.baseDialog.cancel")), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}),
|
|
98
|
-
|
|
98
|
+
g(m(_e), {
|
|
99
99
|
type: "primary",
|
|
100
100
|
onClick: a
|
|
101
101
|
}, {
|
|
@@ -119,7 +119,7 @@ const ut = /* @__PURE__ */ L({
|
|
|
119
119
|
return n;
|
|
120
120
|
}, Ee = /* @__PURE__ */ H(ut, [["__scopeId", "data-v-8df470d5"]]);
|
|
121
121
|
function dt() {
|
|
122
|
-
const t =
|
|
122
|
+
const t = q([]), e = W.instance.iterator();
|
|
123
123
|
for (const n of e)
|
|
124
124
|
t.push({
|
|
125
125
|
commandName: n.command.localName,
|
|
@@ -129,22 +129,29 @@ function dt() {
|
|
|
129
129
|
(n, i) => n.commandName.toLowerCase().localeCompare(i.commandName.toLowerCase())
|
|
130
130
|
), t;
|
|
131
131
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
132
|
+
function ye(t, e = "en-US") {
|
|
133
|
+
const n = Math.abs(t);
|
|
134
|
+
if (n !== 0 && (n < 1e-3 || n >= 1e6)) {
|
|
135
|
+
const [i, l] = t.toExponential(3).split("e");
|
|
136
|
+
return `${new Intl.NumberFormat(e, {
|
|
137
|
+
maximumFractionDigits: 3
|
|
138
|
+
}).format(Number(i))}e${l}`;
|
|
139
|
+
} else
|
|
140
|
+
return new Intl.NumberFormat(e, {
|
|
141
|
+
maximumFractionDigits: 6
|
|
142
|
+
}).format(t);
|
|
143
|
+
}
|
|
137
144
|
function mt(t) {
|
|
138
145
|
const e = b(0), n = b(0);
|
|
139
146
|
function i(o) {
|
|
140
147
|
e.value = o.x, n.value = o.y;
|
|
141
148
|
}
|
|
142
|
-
|
|
143
|
-
const l = k(() => `${ye
|
|
149
|
+
O(() => t.events.mouseMove.addEventListener(i)), ee(() => t.events.mouseMove.removeEventListener(i));
|
|
150
|
+
const l = k(() => `${ye(e.value)}, ${ye(n.value)}`);
|
|
144
151
|
return { x: e, y: n, text: l };
|
|
145
152
|
}
|
|
146
|
-
const ae =
|
|
147
|
-
function
|
|
153
|
+
const ae = qe(), pt = Ue(ae);
|
|
154
|
+
function gt() {
|
|
148
155
|
const t = b(/* @__PURE__ */ new Set()), e = Ge.instance;
|
|
149
156
|
for (const n of e.fileTypes)
|
|
150
157
|
t.value.add(n);
|
|
@@ -152,8 +159,8 @@ function vt() {
|
|
|
152
159
|
t.value.add(n.fileType);
|
|
153
160
|
}), t;
|
|
154
161
|
}
|
|
155
|
-
function
|
|
156
|
-
const e =
|
|
162
|
+
function vt(t) {
|
|
163
|
+
const e = q([]), n = t.curDocument, i = (l) => {
|
|
157
164
|
const o = l.tables.layerTable.newIterator();
|
|
158
165
|
for (const a of o)
|
|
159
166
|
e.push({
|
|
@@ -183,7 +190,7 @@ function gt(t) {
|
|
|
183
190
|
}), e;
|
|
184
191
|
}
|
|
185
192
|
function ft(t) {
|
|
186
|
-
const e =
|
|
193
|
+
const e = q([]), n = t.curDocument, i = (l) => {
|
|
187
194
|
const o = l.dictionaries.layouts.newIterator();
|
|
188
195
|
e.length = 0;
|
|
189
196
|
for (const a of o)
|
|
@@ -199,7 +206,7 @@ function ft(t) {
|
|
|
199
206
|
e.length = 0, i(l.doc.database);
|
|
200
207
|
}), Te().layoutManager.events.layoutSwitched.addEventListener(
|
|
201
208
|
(l) => {
|
|
202
|
-
const o = l.
|
|
209
|
+
const o = l.layout;
|
|
203
210
|
e.forEach((a) => {
|
|
204
211
|
a.name == o.layoutName ? a.isActive = !0 : a.isActive = !1;
|
|
205
212
|
});
|
|
@@ -832,7 +839,7 @@ const ht = {
|
|
|
832
839
|
}), fe = (t, e) => {
|
|
833
840
|
const n = J.global.t, i = `command.${t}.${e}`;
|
|
834
841
|
return n(i, "");
|
|
835
|
-
}, ca = (t) => fe(
|
|
842
|
+
}, ca = (t) => fe(W.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => fe(W.DEFAUT_COMMAND_GROUP_NAME, t), Lt = (t) => {
|
|
836
843
|
const e = J.global.t, n = "entity.entityName." + t.type;
|
|
837
844
|
return e(n, t.type, { missingWarn: !1 });
|
|
838
845
|
}, zt = (t) => {
|
|
@@ -846,7 +853,7 @@ const ht = {
|
|
|
846
853
|
const e = J.global.t, n = "main.progress." + t.replace(/_/g, "").toLowerCase();
|
|
847
854
|
return e(n, t);
|
|
848
855
|
}, me = "preferred_lang";
|
|
849
|
-
function
|
|
856
|
+
function $e(t) {
|
|
850
857
|
const { locale: e } = R(), i = b((() => {
|
|
851
858
|
const s = localStorage.getItem(me);
|
|
852
859
|
return s === "en" || s === "zh" ? s : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
|
|
@@ -880,8 +887,8 @@ function Ve(t) {
|
|
|
880
887
|
isControlled: k(() => !!(t && t !== "default"))
|
|
881
888
|
};
|
|
882
889
|
}
|
|
883
|
-
function
|
|
884
|
-
const t =
|
|
890
|
+
function Ve() {
|
|
891
|
+
const t = q(/* @__PURE__ */ new Map()), e = q(/* @__PURE__ */ new Map()), n = () => {
|
|
885
892
|
const i = B.instance.curView.missedData, l = Y.instance.fontMapping;
|
|
886
893
|
t.clear(), Object.keys(i.fonts).forEach((o) => {
|
|
887
894
|
const a = l[o];
|
|
@@ -904,7 +911,7 @@ function $e() {
|
|
|
904
911
|
};
|
|
905
912
|
}
|
|
906
913
|
function ce() {
|
|
907
|
-
const t =
|
|
914
|
+
const t = q(
|
|
908
915
|
Y.instance.settings
|
|
909
916
|
);
|
|
910
917
|
return Y.instance.events.modified.addEventListener((e) => {
|
|
@@ -912,7 +919,7 @@ function ce() {
|
|
|
912
919
|
}), t;
|
|
913
920
|
}
|
|
914
921
|
function Bt(t) {
|
|
915
|
-
const e =
|
|
922
|
+
const e = q({}), n = t.curDocument, i = (l) => {
|
|
916
923
|
e.pdmode = l.pdmode, e.pdmode = l.pdsize;
|
|
917
924
|
};
|
|
918
925
|
return i(n.database), n.database.events.headerSysVarChanged.addEventListener((l) => {
|
|
@@ -931,24 +938,24 @@ const Tt = /* @__PURE__ */ L({
|
|
|
931
938
|
}), (o, a) => (u(!0), w(K, null, X(m(n), (r) => (u(), w("div", {
|
|
932
939
|
key: r.name
|
|
933
940
|
}, [
|
|
934
|
-
(u(), C(
|
|
941
|
+
(u(), C(ge(r.component), Ne({
|
|
935
942
|
modelValue: r.visible,
|
|
936
943
|
"onUpdate:modelValue": (s) => r.visible = s
|
|
937
944
|
}, { ref_for: !0 }, r.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
|
|
938
945
|
]))), 128));
|
|
939
946
|
}
|
|
940
|
-
}), Et = ["accept"],
|
|
947
|
+
}), Et = ["accept"], $t = /* @__PURE__ */ L({
|
|
941
948
|
__name: "MlFileReader",
|
|
942
949
|
emits: ["file-read"],
|
|
943
950
|
setup(t, { emit: e }) {
|
|
944
|
-
const n = e, i = b(null), l =
|
|
951
|
+
const n = e, i = b(null), l = gt(), o = k(() => {
|
|
945
952
|
const r = Array.from(l.value);
|
|
946
953
|
let s = "";
|
|
947
954
|
for (let c = 0, f = r.length; c < f; ++c)
|
|
948
955
|
c == f - 1 ? s += `.${r[c]}` : s += `.${r[c]}, `;
|
|
949
956
|
return s;
|
|
950
957
|
});
|
|
951
|
-
|
|
958
|
+
O(() => {
|
|
952
959
|
j.on("open-file", () => {
|
|
953
960
|
var r;
|
|
954
961
|
(r = i.value) == null || r.click();
|
|
@@ -958,8 +965,8 @@ const Tt = /* @__PURE__ */ L({
|
|
|
958
965
|
var f, x;
|
|
959
966
|
const c = (f = r.target.files) == null ? void 0 : f[0];
|
|
960
967
|
if (c && c.name) {
|
|
961
|
-
const
|
|
962
|
-
|
|
968
|
+
const v = (x = c.name.split(".").pop()) == null ? void 0 : x.toLocaleLowerCase(), h = new FileReader();
|
|
969
|
+
v == "dxf" ? h.readAsText(c) : v == "dwg" && h.readAsArrayBuffer(c), h.onload = (_) => {
|
|
963
970
|
var S;
|
|
964
971
|
const y = (S = _.target) == null ? void 0 : S.result;
|
|
965
972
|
y && n("file-read", c.name, y);
|
|
@@ -977,7 +984,7 @@ const Tt = /* @__PURE__ */ L({
|
|
|
977
984
|
onChange: a
|
|
978
985
|
}, null, 40, Et));
|
|
979
986
|
}
|
|
980
|
-
}),
|
|
987
|
+
}), Vt = /* @__PURE__ */ L({
|
|
981
988
|
__name: "MlToggleButton",
|
|
982
989
|
props: /* @__PURE__ */ Z({
|
|
983
990
|
size: { default: 30 },
|
|
@@ -991,17 +998,17 @@ const Tt = /* @__PURE__ */ L({
|
|
|
991
998
|
Ce((c) => ({
|
|
992
999
|
a97b120a: a.value
|
|
993
1000
|
}));
|
|
994
|
-
const n = t, i =
|
|
1001
|
+
const n = t, i = ve(t, "modelValue"), l = e, o = k(() => i.value ? n.data.onIcon : n.data.offIcon), a = k(() => n.size + "px"), r = k(() => i.value ? n.data.onTooltip : n.data.offTooltip), s = () => {
|
|
995
1002
|
l("click", i.value);
|
|
996
1003
|
};
|
|
997
1004
|
return (c, f) => {
|
|
998
|
-
const x = M("el-button"),
|
|
999
|
-
return u(), C(
|
|
1005
|
+
const x = M("el-button"), v = M("el-tooltip");
|
|
1006
|
+
return u(), C(v, {
|
|
1000
1007
|
content: r.value,
|
|
1001
1008
|
"hide-after": 0
|
|
1002
1009
|
}, {
|
|
1003
1010
|
default: p(() => [
|
|
1004
|
-
|
|
1011
|
+
g(x, {
|
|
1005
1012
|
class: "ml-toggle-button",
|
|
1006
1013
|
icon: o.value,
|
|
1007
1014
|
onClick: s
|
|
@@ -1011,14 +1018,14 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1011
1018
|
}, 8, ["content"]);
|
|
1012
1019
|
};
|
|
1013
1020
|
}
|
|
1014
|
-
}), Ae = /* @__PURE__ */ H(
|
|
1021
|
+
}), Ae = /* @__PURE__ */ H(Vt, [["__scopeId", "data-v-48d6b055"]]), At = /* @__PURE__ */ L({
|
|
1015
1022
|
__name: "MlReplacementDlg",
|
|
1016
1023
|
setup(t) {
|
|
1017
|
-
const { t: e } = R(), { fonts: n, images: i } =
|
|
1018
|
-
const
|
|
1024
|
+
const { t: e } = R(), { fonts: n, images: i } = Ve(), l = b(!0), o = k(() => n.size > 0 ? "font" : "image"), a = b(null), r = k(() => B.instance.avaiableFonts.map((h) => h.name[0])), s = () => {
|
|
1025
|
+
const v = B.instance.curDocument.database;
|
|
1019
1026
|
i.forEach((_) => {
|
|
1020
1027
|
_.file && _.ids.forEach((y) => {
|
|
1021
|
-
const S =
|
|
1028
|
+
const S = v.tables.blockTable.modelSpace.getIdAt(
|
|
1022
1029
|
y
|
|
1023
1030
|
);
|
|
1024
1031
|
S.image = _.file, S.triggerModifiedEvent();
|
|
@@ -1028,19 +1035,19 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1028
1035
|
n.forEach((_, y) => {
|
|
1029
1036
|
y && _ && h.setFontMapping(y, _);
|
|
1030
1037
|
});
|
|
1031
|
-
}, c = (
|
|
1038
|
+
}, c = (v) => {
|
|
1032
1039
|
a.value && (a.value.click(), a.value.onchange = () => {
|
|
1033
|
-
f(
|
|
1040
|
+
f(v);
|
|
1034
1041
|
});
|
|
1035
|
-
}, f = (
|
|
1042
|
+
}, f = (v) => {
|
|
1036
1043
|
var _, y;
|
|
1037
1044
|
const h = (y = (_ = a.value) == null ? void 0 : _.files) == null ? void 0 : y[0];
|
|
1038
|
-
h && (
|
|
1039
|
-
}, x = (
|
|
1040
|
-
n.set(
|
|
1045
|
+
h && (v.file = h);
|
|
1046
|
+
}, x = (v, h) => {
|
|
1047
|
+
n.set(v, h);
|
|
1041
1048
|
};
|
|
1042
|
-
return (
|
|
1043
|
-
const _ = M("el-col"), y = M("el-row"), S = M("el-option"),
|
|
1049
|
+
return (v, h) => {
|
|
1050
|
+
const _ = M("el-col"), y = M("el-row"), S = M("el-option"), $ = M("el-select"), F = M("el-tab-pane"), V = M("el-table-column"), T = M("el-button"), G = M("el-table"), P = M("el-tabs");
|
|
1044
1051
|
return u(), C(Ee, {
|
|
1045
1052
|
title: m(e)("dialog.replacementDlg.title"),
|
|
1046
1053
|
modelValue: l.value,
|
|
@@ -1049,7 +1056,7 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1049
1056
|
onOk: s
|
|
1050
1057
|
}, {
|
|
1051
1058
|
default: p(() => [
|
|
1052
|
-
|
|
1059
|
+
g(P, {
|
|
1053
1060
|
type: "card",
|
|
1054
1061
|
modelValue: o.value,
|
|
1055
1062
|
"onUpdate:modelValue": h[0] || (h[0] = (z) => o.value = z)
|
|
@@ -1062,15 +1069,15 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1062
1069
|
}, {
|
|
1063
1070
|
default: p(() => [
|
|
1064
1071
|
d("div", null, [
|
|
1065
|
-
|
|
1072
|
+
g(y, null, {
|
|
1066
1073
|
default: p(() => [
|
|
1067
|
-
|
|
1074
|
+
g(_, { span: 12 }, {
|
|
1068
1075
|
default: p(() => [
|
|
1069
1076
|
d("span", null, D(m(e)("dialog.replacementDlg.missedFont")), 1)
|
|
1070
1077
|
]),
|
|
1071
1078
|
_: 1
|
|
1072
1079
|
}),
|
|
1073
|
-
|
|
1080
|
+
g(_, { span: 12 }, {
|
|
1074
1081
|
default: p(() => [
|
|
1075
1082
|
d("span", null, D(m(e)("dialog.replacementDlg.replacedFont")), 1)
|
|
1076
1083
|
]),
|
|
@@ -1084,25 +1091,25 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1084
1091
|
style: { "margin-top": "10px" }
|
|
1085
1092
|
}, {
|
|
1086
1093
|
default: p(() => [
|
|
1087
|
-
|
|
1094
|
+
g(_, { span: 12 }, {
|
|
1088
1095
|
default: p(() => [
|
|
1089
1096
|
d("span", null, D(z), 1)
|
|
1090
1097
|
]),
|
|
1091
1098
|
_: 2
|
|
1092
1099
|
}, 1024),
|
|
1093
|
-
|
|
1100
|
+
g(_, { span: 12 }, {
|
|
1094
1101
|
default: p(() => [
|
|
1095
|
-
|
|
1102
|
+
g($, {
|
|
1096
1103
|
"model-value": A,
|
|
1097
1104
|
placeholder: m(e)("dialog.replacementDlg.selectFont"),
|
|
1098
|
-
"onUpdate:modelValue": (
|
|
1105
|
+
"onUpdate:modelValue": (N) => x(z, N),
|
|
1099
1106
|
style: { width: "100%" }
|
|
1100
1107
|
}, {
|
|
1101
1108
|
default: p(() => [
|
|
1102
|
-
(u(!0), w(K, null, X(r.value, (
|
|
1109
|
+
(u(!0), w(K, null, X(r.value, (N, de) => (u(), C(S, {
|
|
1103
1110
|
key: de,
|
|
1104
|
-
label:
|
|
1105
|
-
value:
|
|
1111
|
+
label: N,
|
|
1112
|
+
value: N
|
|
1106
1113
|
}, null, 8, ["label", "value"]))), 128))
|
|
1107
1114
|
]),
|
|
1108
1115
|
_: 2
|
|
@@ -1123,25 +1130,25 @@ const Tt = /* @__PURE__ */ L({
|
|
|
1123
1130
|
name: "image"
|
|
1124
1131
|
}, {
|
|
1125
1132
|
default: p(() => [
|
|
1126
|
-
|
|
1133
|
+
g(G, {
|
|
1127
1134
|
data: Array.from(m(i).values()),
|
|
1128
1135
|
style: { width: "100%" },
|
|
1129
1136
|
"v-show": !1
|
|
1130
1137
|
}, {
|
|
1131
1138
|
default: p(() => [
|
|
1132
|
-
|
|
1139
|
+
g(V, {
|
|
1133
1140
|
label: m(e)("dialog.replacementDlg.file"),
|
|
1134
1141
|
prop: "fileName",
|
|
1135
1142
|
"min-width": 0,
|
|
1136
1143
|
flex: 1
|
|
1137
1144
|
}, null, 8, ["label"]),
|
|
1138
|
-
|
|
1145
|
+
g(V, {
|
|
1139
1146
|
label: m(e)("dialog.replacementDlg.replace"),
|
|
1140
1147
|
fixed: "right",
|
|
1141
1148
|
width: "60"
|
|
1142
1149
|
}, {
|
|
1143
1150
|
default: p(({ row: z }) => [
|
|
1144
|
-
|
|
1151
|
+
g(T, {
|
|
1145
1152
|
link: "",
|
|
1146
1153
|
type: "primary",
|
|
1147
1154
|
size: "small",
|
|
@@ -1218,32 +1225,32 @@ function Rt(t, e) {
|
|
|
1218
1225
|
}, null, -1)
|
|
1219
1226
|
]));
|
|
1220
1227
|
}
|
|
1221
|
-
const
|
|
1228
|
+
const Nt = { render: Rt }, Ot = {
|
|
1222
1229
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1223
1230
|
width: "1em",
|
|
1224
1231
|
height: "1em",
|
|
1225
1232
|
viewBox: "0 0 20 20"
|
|
1226
1233
|
};
|
|
1227
1234
|
function Ht(t, e) {
|
|
1228
|
-
return u(), w("svg",
|
|
1235
|
+
return u(), w("svg", Ot, e[0] || (e[0] = [
|
|
1229
1236
|
d("path", { d: "m15.08 12.854.002-.002V5.59c0-.422-.652-.414-.652 0v3.466c0 .938-1.482.95-1.482 0v-4.83c0-.414-.638-.414-.638 0h-.014v4.83c.014.95-1.482.95-1.482 0V3.444c0-.42-.638-.414-.638 0v5.612c0 .95-1.494.95-1.494 0V4.232c0-.408-.64-.42-.64 0v6.756c0 .802-1.094 1.088-1.494.388q-.39-.669-.776-1.338c-.338-.482-1.1-.15-.794.38l.978 1.698.02.04q.829 1.418 1.658 2.834c.19.3.422.578.666.802h-.006c.672.61 1.528.964 2.418 1.052.888.06 1.792-.124 2.56-.612q.45-.285.816-.68a4 4 0 0 0 .734-1.204c.176-.482.258-.97.258-1.494m-.91-8.608-.004-.002c.958-.38 2.058.244 2.058 1.346v7.266c0 .652-.108 1.29-.332 1.894a4.8 4.8 0 0 1-.964 1.576 5.9 5.9 0 0 1-1.046.884c-.978.612-2.146.862-3.26.774a5.34 5.34 0 0 1-3.098-1.352 5.4 5.4 0 0 1-.87-1.034l-1.672-2.88-.012-.028-.978-1.706c-.59-1.018.068-2.186 1.156-2.336.536-.074 1.126.116 1.562.72.026.028.04.062.054.096q.061.11.122.218V4.234c0-1.176 1.244-1.788 2.202-1.278.42-1.278 2.378-1.264 2.792-.014.972-.51 2.222.102 2.222 1.284v.06z" }, null, -1)
|
|
1230
1237
|
]));
|
|
1231
1238
|
}
|
|
1232
|
-
const Gt = { render: Ht },
|
|
1239
|
+
const Gt = { render: Ht }, Wt = {
|
|
1233
1240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1234
1241
|
width: "1em",
|
|
1235
1242
|
height: "1em",
|
|
1236
1243
|
viewBox: "0 0 20 20"
|
|
1237
1244
|
};
|
|
1238
|
-
function
|
|
1239
|
-
return u(), w("svg",
|
|
1245
|
+
function qt(t, e) {
|
|
1246
|
+
return u(), w("svg", Wt, e[0] || (e[0] = [
|
|
1240
1247
|
d("path", {
|
|
1241
1248
|
fill: "currentColor",
|
|
1242
1249
|
d: "M10.438 15.298h.002l4.86-4.86-9.722-4.86zM18 10l-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2L10 18 2.4 2.4z"
|
|
1243
1250
|
}, null, -1)
|
|
1244
1251
|
]));
|
|
1245
1252
|
}
|
|
1246
|
-
const Ut = { render:
|
|
1253
|
+
const Ut = { render: qt }, jt = {
|
|
1247
1254
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1248
1255
|
width: "1em",
|
|
1249
1256
|
height: "1em",
|
|
@@ -1326,14 +1333,14 @@ function pn(t, e) {
|
|
|
1326
1333
|
d("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
|
|
1327
1334
|
]));
|
|
1328
1335
|
}
|
|
1329
|
-
const
|
|
1336
|
+
const gn = { render: pn }, vn = {
|
|
1330
1337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1331
1338
|
width: "1em",
|
|
1332
1339
|
height: "1em",
|
|
1333
1340
|
viewBox: "0 0 20 20"
|
|
1334
1341
|
};
|
|
1335
1342
|
function fn(t, e) {
|
|
1336
|
-
return u(), w("svg",
|
|
1343
|
+
return u(), w("svg", vn, e[0] || (e[0] = [
|
|
1337
1344
|
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1338
1345
|
d("path", { d: "M10 3a7 7 0 1 1-7 7 7 7 0 0 1 7-7m0-1a8 8 0 1 0 8 8 8 8 0 0 0-8-8" }, null, -1)
|
|
1339
1346
|
]));
|
|
@@ -1399,18 +1406,18 @@ function Tn(t, e) {
|
|
|
1399
1406
|
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1400
1407
|
]));
|
|
1401
1408
|
}
|
|
1402
|
-
const En = { render: Tn },
|
|
1409
|
+
const En = { render: Tn }, $n = {
|
|
1403
1410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1404
1411
|
width: "1em",
|
|
1405
1412
|
height: "1em",
|
|
1406
1413
|
viewBox: "0 0 20 20"
|
|
1407
1414
|
};
|
|
1408
|
-
function
|
|
1409
|
-
return u(), w("svg",
|
|
1415
|
+
function Vn(t, e) {
|
|
1416
|
+
return u(), w("svg", $n, e[0] || (e[0] = [
|
|
1410
1417
|
d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
|
|
1411
1418
|
]));
|
|
1412
1419
|
}
|
|
1413
|
-
const An = { render:
|
|
1420
|
+
const An = { render: Vn }, In = {
|
|
1414
1421
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1415
1422
|
width: "1em",
|
|
1416
1423
|
height: "1em",
|
|
@@ -1429,14 +1436,14 @@ const Pn = { render: Fn }, Rn = {
|
|
|
1429
1436
|
height: "1em",
|
|
1430
1437
|
viewBox: "0 0 20 20"
|
|
1431
1438
|
};
|
|
1432
|
-
function
|
|
1439
|
+
function Nn(t, e) {
|
|
1433
1440
|
return u(), w("svg", Rn, e[0] || (e[0] = [
|
|
1434
1441
|
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1435
1442
|
d("path", { d: "m2.146 2.851.707-.707 14.998 14.998-.707.707z" }, null, -1),
|
|
1436
1443
|
d("path", { d: "M2.146 17.149 17.144 2.15l.707.707L2.853 17.856z" }, null, -1)
|
|
1437
1444
|
]));
|
|
1438
1445
|
}
|
|
1439
|
-
const
|
|
1446
|
+
const On = { render: Nn }, Hn = {
|
|
1440
1447
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1441
1448
|
width: "1em",
|
|
1442
1449
|
height: "1em",
|
|
@@ -1448,14 +1455,14 @@ function Gn(t, e) {
|
|
|
1448
1455
|
d("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
|
|
1449
1456
|
]));
|
|
1450
1457
|
}
|
|
1451
|
-
const
|
|
1458
|
+
const Wn = { render: Gn }, qn = {
|
|
1452
1459
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1453
1460
|
width: "1em",
|
|
1454
1461
|
height: "1em",
|
|
1455
1462
|
viewBox: "0 0 20 20"
|
|
1456
1463
|
};
|
|
1457
1464
|
function Un(t, e) {
|
|
1458
|
-
return u(), w("svg",
|
|
1465
|
+
return u(), w("svg", qn, e[0] || (e[0] = [
|
|
1459
1466
|
d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
|
|
1460
1467
|
d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
|
|
1461
1468
|
d("path", { d: "M10 4a6 6 0 1 1-6 6 6 6 0 0 1 6-6m0-1a7 7 0 1 0 7 7 7 7 0 0 0-7-7" }, null, -1)
|
|
@@ -1523,7 +1530,7 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
|
|
|
1523
1530
|
{ id: 1, icon: ln },
|
|
1524
1531
|
{ id: 2, icon: sn },
|
|
1525
1532
|
{ id: 3, icon: dn },
|
|
1526
|
-
{ id: 4, icon:
|
|
1533
|
+
{ id: 4, icon: gn }
|
|
1527
1534
|
],
|
|
1528
1535
|
[
|
|
1529
1536
|
{ id: 32, icon: hn },
|
|
@@ -1536,8 +1543,8 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
|
|
|
1536
1543
|
{ id: 64, icon: En },
|
|
1537
1544
|
{ id: 65, icon: An },
|
|
1538
1545
|
{ id: 66, icon: Pn },
|
|
1539
|
-
{ id: 67, icon:
|
|
1540
|
-
{ id: 68, icon:
|
|
1546
|
+
{ id: 67, icon: On },
|
|
1547
|
+
{ id: 68, icon: Wn }
|
|
1541
1548
|
],
|
|
1542
1549
|
[
|
|
1543
1550
|
{ id: 96, icon: jn },
|
|
@@ -1550,41 +1557,41 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
|
|
|
1550
1557
|
n.pdmode && (l.value = n.pdmode);
|
|
1551
1558
|
};
|
|
1552
1559
|
a();
|
|
1553
|
-
const r = (x,
|
|
1554
|
-
l.value = o[x][
|
|
1560
|
+
const r = (x, v) => o[x][v].id == l.value ? "primary" : null, s = (x, v) => {
|
|
1561
|
+
l.value = o[x][v].id;
|
|
1555
1562
|
}, c = () => {
|
|
1556
1563
|
B.instance.curDocument.database.pdmode = l.value;
|
|
1557
1564
|
}, f = () => {
|
|
1558
1565
|
a();
|
|
1559
1566
|
};
|
|
1560
|
-
return (x,
|
|
1567
|
+
return (x, v) => {
|
|
1561
1568
|
const h = M("el-button"), _ = M("el-col"), y = M("el-row");
|
|
1562
1569
|
return u(), C(Ee, {
|
|
1563
1570
|
title: m(e)("dialog.pointStyleDlg.title"),
|
|
1564
1571
|
width: 400,
|
|
1565
1572
|
modelValue: i.value,
|
|
1566
|
-
"onUpdate:modelValue":
|
|
1573
|
+
"onUpdate:modelValue": v[0] || (v[0] = (S) => i.value = S),
|
|
1567
1574
|
name: "PointStyleDlg",
|
|
1568
1575
|
onOk: c,
|
|
1569
1576
|
onCancel: f
|
|
1570
1577
|
}, {
|
|
1571
1578
|
default: p(() => [
|
|
1572
|
-
(u(), w(K, null, X(o, (S,
|
|
1573
|
-
key:
|
|
1579
|
+
(u(), w(K, null, X(o, (S, $) => g(y, {
|
|
1580
|
+
key: $,
|
|
1574
1581
|
style: { "margin-top": "10px" },
|
|
1575
1582
|
gutter: 6,
|
|
1576
1583
|
justify: "space-between"
|
|
1577
1584
|
}, {
|
|
1578
1585
|
default: p(() => [
|
|
1579
|
-
(u(!0), w(K, null, X(S, (F,
|
|
1580
|
-
key:
|
|
1586
|
+
(u(!0), w(K, null, X(S, (F, V) => (u(), C(_, {
|
|
1587
|
+
key: V,
|
|
1581
1588
|
span: 4
|
|
1582
1589
|
}, {
|
|
1583
1590
|
default: p(() => [
|
|
1584
|
-
|
|
1591
|
+
g(h, {
|
|
1585
1592
|
icon: F.icon,
|
|
1586
|
-
type: r(V
|
|
1587
|
-
onClick: (T) => s(V
|
|
1593
|
+
type: r($, V),
|
|
1594
|
+
onClick: (T) => s($, V),
|
|
1588
1595
|
style: { "font-size": "25px" }
|
|
1589
1596
|
}, null, 8, ["icon", "type", "onClick"])
|
|
1590
1597
|
]),
|
|
@@ -1631,13 +1638,13 @@ const xe = { render: uo }, mo = {
|
|
|
1631
1638
|
}, po = /* @__PURE__ */ d("path", {
|
|
1632
1639
|
fill: "currentColor",
|
|
1633
1640
|
d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
1634
|
-
}, null, -1),
|
|
1641
|
+
}, null, -1), go = [
|
|
1635
1642
|
po
|
|
1636
1643
|
];
|
|
1637
|
-
function
|
|
1638
|
-
return u(), w("svg", mo, [...
|
|
1644
|
+
function vo(t, e) {
|
|
1645
|
+
return u(), w("svg", mo, [...go]);
|
|
1639
1646
|
}
|
|
1640
|
-
const ke = { render:
|
|
1647
|
+
const ke = { render: vo }, fo = /* @__PURE__ */ L({
|
|
1641
1648
|
__name: "MlCollapse",
|
|
1642
1649
|
props: /* @__PURE__ */ Z({
|
|
1643
1650
|
size: { default: 18 },
|
|
@@ -1648,7 +1655,7 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
|
|
|
1648
1655
|
}),
|
|
1649
1656
|
emits: /* @__PURE__ */ Z(["change"], ["update:modelValue"]),
|
|
1650
1657
|
setup(t, { emit: e }) {
|
|
1651
|
-
const n = t, i =
|
|
1658
|
+
const n = t, i = ve(t, "modelValue"), l = e, o = k(() => n.reverse ? i.value ? xe : ke : i.value ? ke : xe), a = k(() => `${n.size}px`), r = () => {
|
|
1652
1659
|
l("change", i.value), i.value = !i.value;
|
|
1653
1660
|
};
|
|
1654
1661
|
return (s, c) => {
|
|
@@ -1658,7 +1665,7 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
|
|
|
1658
1665
|
onClick: r
|
|
1659
1666
|
}, {
|
|
1660
1667
|
default: p(() => [
|
|
1661
|
-
(u(), C(
|
|
1668
|
+
(u(), C(ge(o.value)))
|
|
1662
1669
|
]),
|
|
1663
1670
|
_: 1
|
|
1664
1671
|
}, 8, ["size"]);
|
|
@@ -1693,14 +1700,14 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
|
|
|
1693
1700
|
const s = se, c = ot, f = nt, x = tt;
|
|
1694
1701
|
return u(), C(x, { onCommand: o }, {
|
|
1695
1702
|
dropdown: p(() => [
|
|
1696
|
-
|
|
1703
|
+
g(f, null, {
|
|
1697
1704
|
default: p(() => [
|
|
1698
|
-
(u(!0), w(K, null, X(l.value, (
|
|
1699
|
-
key:
|
|
1700
|
-
command:
|
|
1705
|
+
(u(!0), w(K, null, X(l.value, (v) => (u(), C(c, {
|
|
1706
|
+
key: v.text,
|
|
1707
|
+
command: v.name
|
|
1701
1708
|
}, {
|
|
1702
1709
|
default: p(() => [
|
|
1703
|
-
I(D(
|
|
1710
|
+
I(D(v.text), 1)
|
|
1704
1711
|
]),
|
|
1705
1712
|
_: 2
|
|
1706
1713
|
}, 1032, ["command"]))), 128))
|
|
@@ -1709,7 +1716,7 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
|
|
|
1709
1716
|
})
|
|
1710
1717
|
]),
|
|
1711
1718
|
default: p(() => [
|
|
1712
|
-
|
|
1719
|
+
g(s, {
|
|
1713
1720
|
size: "30",
|
|
1714
1721
|
class: "ml-dropdown-icon"
|
|
1715
1722
|
}, {
|
|
@@ -1785,12 +1792,12 @@ const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf
|
|
|
1785
1792
|
i("click", f);
|
|
1786
1793
|
};
|
|
1787
1794
|
return (f, x) => {
|
|
1788
|
-
const
|
|
1795
|
+
const v = se, h = it, _ = at, y = lt;
|
|
1789
1796
|
return u(), C(y, {
|
|
1790
1797
|
class: Le(l.value)
|
|
1791
1798
|
}, {
|
|
1792
1799
|
default: p(() => [
|
|
1793
|
-
(u(!0), w(K, null, X(f.items, (S,
|
|
1800
|
+
(u(!0), w(K, null, X(f.items, (S, $) => (u(), C(_, {
|
|
1794
1801
|
key: S.text,
|
|
1795
1802
|
content: r(S),
|
|
1796
1803
|
"hide-after": 0
|
|
@@ -1799,14 +1806,14 @@ const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf
|
|
|
1799
1806
|
(u(), C(h, {
|
|
1800
1807
|
class: "ml-toolbar-button",
|
|
1801
1808
|
style: pe({ width: a.value + "px", height: a.value + "px" }),
|
|
1802
|
-
key:
|
|
1809
|
+
key: $,
|
|
1803
1810
|
onClick: (F) => c(S.command)
|
|
1804
1811
|
}, {
|
|
1805
1812
|
default: p(() => [
|
|
1806
1813
|
d("div", null, [
|
|
1807
|
-
v
|
|
1814
|
+
g(v, { size: o.value }, {
|
|
1808
1815
|
default: p(() => [
|
|
1809
|
-
(u(), C(
|
|
1816
|
+
(u(), C(ge(S.icon)))
|
|
1810
1817
|
]),
|
|
1811
1818
|
_: 2
|
|
1812
1819
|
}, 1032, ["size"]),
|
|
@@ -1837,7 +1844,7 @@ function Eo(t, e, n) {
|
|
|
1837
1844
|
}, r = () => {
|
|
1838
1845
|
e.value && e.value.removeEventListener("mousemove", o), t.value && t.value.removeEventListener("mousemove", o);
|
|
1839
1846
|
};
|
|
1840
|
-
return
|
|
1847
|
+
return O(() => {
|
|
1841
1848
|
window.addEventListener("mousemove", l);
|
|
1842
1849
|
}), ee(() => {
|
|
1843
1850
|
window.removeEventListener("mousemove", l);
|
|
@@ -1847,7 +1854,7 @@ function Eo(t, e, n) {
|
|
|
1847
1854
|
s ? a() : r();
|
|
1848
1855
|
}), { autoOpened: i };
|
|
1849
1856
|
}
|
|
1850
|
-
function
|
|
1857
|
+
function $o(t, e, n) {
|
|
1851
1858
|
const i = b(!1), l = b(null), o = b(null), a = { x: 0, y: 0 }, r = k(() => l.value == null || o.value == null ? { x: 0, y: 0 } : {
|
|
1852
1859
|
x: l.value.x - o.value.x,
|
|
1853
1860
|
y: l.value.y - o.value.y
|
|
@@ -1872,16 +1879,16 @@ function Vo(t, e, n) {
|
|
|
1872
1879
|
const y = e.value.getBoundingClientRect();
|
|
1873
1880
|
if (_.clientX < y.left || _.clientX > y.right || _.clientY < y.top || _.clientY > y.bottom) return;
|
|
1874
1881
|
}
|
|
1875
|
-
i.value = !0, a.x = _.clientX, a.y = _.clientY, s(), document.addEventListener("mousemove",
|
|
1882
|
+
i.value = !0, a.x = _.clientX, a.y = _.clientY, s(), document.addEventListener("mousemove", v), document.addEventListener("mouseup", h);
|
|
1876
1883
|
}
|
|
1877
|
-
},
|
|
1884
|
+
}, v = (_) => {
|
|
1878
1885
|
if (i.value && o.value && l.value) {
|
|
1879
|
-
const y = window.innerWidth, S = window.innerHeight,
|
|
1886
|
+
const y = window.innerWidth, S = window.innerHeight, $ = t.value, F = $.getBoundingClientRect(), V = F.width, T = F.height, G = o.value.x + (_.clientX - a.x), P = o.value.y + (_.clientY - a.y);
|
|
1880
1887
|
l.value.x = Math.max(
|
|
1881
1888
|
n ? n.value.offset.value.left : 0,
|
|
1882
1889
|
G
|
|
1883
1890
|
);
|
|
1884
|
-
const z = y -
|
|
1891
|
+
const z = y - V;
|
|
1885
1892
|
l.value.x = Math.min(
|
|
1886
1893
|
n ? z - n.value.offset.value.right : z,
|
|
1887
1894
|
l.value.x
|
|
@@ -1893,12 +1900,12 @@ function Vo(t, e, n) {
|
|
|
1893
1900
|
l.value.y = Math.min(
|
|
1894
1901
|
n ? A - n.value.offset.value.bottom : A,
|
|
1895
1902
|
l.value.y
|
|
1896
|
-
),
|
|
1903
|
+
), $.style.left = l.value.x + "px", $.style.top = l.value.y + "px";
|
|
1897
1904
|
}
|
|
1898
1905
|
}, h = () => {
|
|
1899
|
-
i.value = !1, document.removeEventListener("mousemove",
|
|
1906
|
+
i.value = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", h);
|
|
1900
1907
|
};
|
|
1901
|
-
return
|
|
1908
|
+
return O(() => {
|
|
1902
1909
|
t.value && (s(), c());
|
|
1903
1910
|
}), ee(() => {
|
|
1904
1911
|
t.value && t.value.removeEventListener("mousedown", x);
|
|
@@ -1910,8 +1917,8 @@ function Vo(t, e, n) {
|
|
|
1910
1917
|
position: l
|
|
1911
1918
|
};
|
|
1912
1919
|
}
|
|
1913
|
-
function
|
|
1914
|
-
const i = b(!1), l = b("left"), { isDragging: o, movement: a, position: r } =
|
|
1920
|
+
function Vo(t, e, n) {
|
|
1921
|
+
const i = b(!1), l = b("left"), { isDragging: o, movement: a, position: r } = $o(
|
|
1915
1922
|
t,
|
|
1916
1923
|
e,
|
|
1917
1924
|
n
|
|
@@ -1963,7 +1970,7 @@ function Fo(t, e = b({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
1963
1970
|
n.value.left = Math.max(o.left, e.value.left), n.value.top = Math.max(o.top, e.value.top), n.value.width = o.width, n.value.height = o.height, i = !0;
|
|
1964
1971
|
}
|
|
1965
1972
|
};
|
|
1966
|
-
return
|
|
1973
|
+
return O(() => {
|
|
1967
1974
|
t.value && l();
|
|
1968
1975
|
}), E(t, (o) => {
|
|
1969
1976
|
o && l();
|
|
@@ -1975,10 +1982,10 @@ function Fo(t, e = b({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
1975
1982
|
function Po(t, e = b(!1), n = b(!1), i = b({ left: 0, right: 0, top: 0, bottom: 0 }), l = { width: 20, height: 40 }) {
|
|
1976
1983
|
const { initialRect: o } = Fo(t, i), a = b(!1);
|
|
1977
1984
|
let r = 0, s = 0, c = 0, f = 0, x = 0;
|
|
1978
|
-
const
|
|
1985
|
+
const v = 5, h = b(null), _ = (V) => {
|
|
1979
1986
|
if (!(!t.value || e.value))
|
|
1980
1987
|
if (a.value) {
|
|
1981
|
-
const T =
|
|
1988
|
+
const T = V.clientX - f, G = V.clientY - x;
|
|
1982
1989
|
if (h.value === "left" || h.value === "left-bottom-corner") {
|
|
1983
1990
|
const P = s - T;
|
|
1984
1991
|
P > l.width && (o.value.width = P, o.value.left = r + T, t.value.style.left = o.value.left + "px", t.value.style.width = o.value.width + "px");
|
|
@@ -1992,26 +1999,26 @@ function Po(t, e = b(!1), n = b(!1), i = b({ left: 0, right: 0, top: 0, bottom:
|
|
|
1992
1999
|
P > l.height && (o.value.height = P, t.value.style.height = o.value.height + "px");
|
|
1993
2000
|
}
|
|
1994
2001
|
} else {
|
|
1995
|
-
const T = t.value.getBoundingClientRect(), G =
|
|
1996
|
-
z &&
|
|
2002
|
+
const T = t.value.getBoundingClientRect(), G = V.clientX - T.left, P = V.clientY - T.top, z = G <= v, A = G >= T.width - v, N = P >= T.height - v;
|
|
2003
|
+
z && N && n.value ? (t.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : A && N && !n.value ? (t.value.style.cursor = "nwse-resize", h.value = "right-bottom-corner") : z && n.value ? (t.value.style.cursor = "ew-resize", h.value = "left") : A && !n.value ? (t.value.style.cursor = "ew-resize", h.value = "right") : N ? (t.value.style.cursor = "ns-resize", h.value = "bottom") : (t.value.style.cursor = "", h.value = null);
|
|
1997
2004
|
}
|
|
1998
|
-
}, y = (
|
|
2005
|
+
}, y = (V) => {
|
|
1999
2006
|
if (!t.value || !h.value) return;
|
|
2000
2007
|
const T = t.value.getBoundingClientRect();
|
|
2001
|
-
f =
|
|
2008
|
+
f = V.clientX, x = V.clientY, s = T.width, c = T.height, r = T.left, o.value.width = s, o.value.height = c, o.value.left = T.left, o.value.top = T.top, a.value = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", S);
|
|
2002
2009
|
}, S = () => {
|
|
2003
2010
|
a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", S);
|
|
2004
|
-
},
|
|
2011
|
+
}, $ = () => {
|
|
2005
2012
|
t.value && (t.value.removeEventListener("mousedown", y), t.value.removeEventListener("mousemove", _)), document.removeEventListener("mouseup", S);
|
|
2006
2013
|
}, F = () => {
|
|
2007
2014
|
t.value && (t.value.addEventListener("mousedown", y), t.value.addEventListener("mousemove", _));
|
|
2008
2015
|
};
|
|
2009
|
-
return
|
|
2016
|
+
return O(() => {
|
|
2010
2017
|
t.value && F();
|
|
2011
2018
|
}), Be(() => {
|
|
2012
|
-
|
|
2013
|
-
}), E(t, (
|
|
2014
|
-
|
|
2019
|
+
$();
|
|
2020
|
+
}), E(t, (V) => {
|
|
2021
|
+
V ? F() : $();
|
|
2015
2022
|
}), { rect: o, isResizing: a };
|
|
2016
2023
|
}
|
|
2017
2024
|
function Ro(t, e, n, i) {
|
|
@@ -2027,7 +2034,7 @@ function Ro(t, e, n, i) {
|
|
|
2027
2034
|
}, r = () => {
|
|
2028
2035
|
t.value && t.value.addEventListener("transitionend", o);
|
|
2029
2036
|
};
|
|
2030
|
-
|
|
2037
|
+
O(() => {
|
|
2031
2038
|
t.value && t.value.addEventListener("transitionend", o);
|
|
2032
2039
|
}), Be(() => {
|
|
2033
2040
|
t.value && t.value.removeEventListener("transitionend", o);
|
|
@@ -2039,51 +2046,51 @@ function Ro(t, e, n, i) {
|
|
|
2039
2046
|
l();
|
|
2040
2047
|
});
|
|
2041
2048
|
}
|
|
2042
|
-
function
|
|
2043
|
-
const l = b(window.innerWidth), o = b(window.innerHeight), { docked: a, orientation: r, movement: s, position: c, isDragging: f } =
|
|
2049
|
+
function No(t, e, n, i) {
|
|
2050
|
+
const l = b(window.innerWidth), o = b(window.innerHeight), { docked: a, orientation: r, movement: s, position: c, isDragging: f } = Vo(
|
|
2044
2051
|
t,
|
|
2045
2052
|
e,
|
|
2046
2053
|
i
|
|
2047
|
-
), x = k(() => r.value === "right"), { rect:
|
|
2054
|
+
), x = k(() => r.value === "right"), { rect: v, isResizing: h } = Po(
|
|
2048
2055
|
t,
|
|
2049
2056
|
n,
|
|
2050
2057
|
x,
|
|
2051
2058
|
i.value.offset
|
|
2052
2059
|
), { width: _, left: y } = Io(
|
|
2053
|
-
|
|
2060
|
+
v,
|
|
2054
2061
|
h,
|
|
2055
2062
|
c,
|
|
2056
2063
|
f
|
|
2057
|
-
), { lastTop: S, lastHeight:
|
|
2058
|
-
k(() =>
|
|
2059
|
-
k(() =>
|
|
2060
|
-
k(() =>
|
|
2061
|
-
k(() =>
|
|
2064
|
+
), { lastTop: S, lastHeight: $ } = Ao(
|
|
2065
|
+
k(() => v.value.left),
|
|
2066
|
+
k(() => v.value.top),
|
|
2067
|
+
k(() => v.value.width),
|
|
2068
|
+
k(() => v.value.height)
|
|
2062
2069
|
), { autoOpened: F } = Eo(t, e, n);
|
|
2063
2070
|
Ro(t, x, n, F);
|
|
2064
|
-
const
|
|
2071
|
+
const V = (z) => {
|
|
2065
2072
|
if (t.value) {
|
|
2066
|
-
const A = t.value.getBoundingClientRect(),
|
|
2073
|
+
const A = t.value.getBoundingClientRect(), N = A.left + z;
|
|
2067
2074
|
if (x.value) {
|
|
2068
|
-
|
|
2075
|
+
v.value.left = N;
|
|
2069
2076
|
const de = window.innerWidth - A.width - A.left;
|
|
2070
|
-
A.left <= 0 && de >= 0 && z < 0 && (
|
|
2077
|
+
A.left <= 0 && de >= 0 && z < 0 && (v.value.left = Math.max(0, N)), window.innerWidth - A.width <= 0 && (v.value.left = window.innerWidth - A.width);
|
|
2071
2078
|
} else
|
|
2072
|
-
A.left + A.width >= window.innerWidth && z < 0 && (
|
|
2079
|
+
A.left + A.width >= window.innerWidth && z < 0 && (v.value.left = Math.max(0, N));
|
|
2073
2080
|
}
|
|
2074
2081
|
}, T = () => {
|
|
2075
2082
|
const z = window.innerWidth - l.value;
|
|
2076
|
-
l.value = window.innerWidth, o.value = window.innerHeight,
|
|
2083
|
+
l.value = window.innerWidth, o.value = window.innerHeight, V(z);
|
|
2077
2084
|
};
|
|
2078
|
-
|
|
2085
|
+
O(() => {
|
|
2079
2086
|
window.addEventListener("resize", T);
|
|
2080
2087
|
}), ee(() => {
|
|
2081
2088
|
window.removeEventListener("resize", T);
|
|
2082
2089
|
});
|
|
2083
2090
|
const G = (z) => {
|
|
2084
|
-
z ? (
|
|
2091
|
+
z ? (v.value.width = Me, x.value && y.value && _.value && (v.value.left = y.value + _.value - Me)) : (v.value.width = _.value, x.value && y.value && _.value && (v.value.left = y.value));
|
|
2085
2092
|
}, P = () => {
|
|
2086
|
-
a.value ? (
|
|
2093
|
+
a.value ? (v.value.top = i.value.offset.value.top, v.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (v.value.top = S.value, v.value.height = $.value);
|
|
2087
2094
|
};
|
|
2088
2095
|
return E(a, () => {
|
|
2089
2096
|
P();
|
|
@@ -2094,11 +2101,11 @@ function Oo(t, e, n, i) {
|
|
|
2094
2101
|
}), E(s, (z) => {
|
|
2095
2102
|
if (z && t.value) {
|
|
2096
2103
|
const A = t.value.getBoundingClientRect();
|
|
2097
|
-
|
|
2104
|
+
v.value.left = A.left, v.value.top = A.top;
|
|
2098
2105
|
}
|
|
2099
|
-
}), { rect:
|
|
2106
|
+
}), { rect: v, orientation: r, reversed: x };
|
|
2100
2107
|
}
|
|
2101
|
-
const
|
|
2108
|
+
const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ */ Oo(() => /* @__PURE__ */ d("svg", {
|
|
2102
2109
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2103
2110
|
width: "1em",
|
|
2104
2111
|
height: "1em",
|
|
@@ -2108,7 +2115,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2108
2115
|
fill: "currentColor",
|
|
2109
2116
|
d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
2110
2117
|
})
|
|
2111
|
-
], -1)), Go = { class: "ml-tool-palette-title" },
|
|
2118
|
+
], -1)), Go = { class: "ml-tool-palette-title" }, Wo = { class: "ml-tool-palette-content" }, qo = /* @__PURE__ */ L({
|
|
2112
2119
|
__name: "MlToolPalette",
|
|
2113
2120
|
props: /* @__PURE__ */ Z({
|
|
2114
2121
|
title: { default: "" },
|
|
@@ -2122,7 +2129,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2122
2129
|
}),
|
|
2123
2130
|
emits: /* @__PURE__ */ Z(["close"], ["update:modelValue"]),
|
|
2124
2131
|
setup(t, { emit: e }) {
|
|
2125
|
-
const n = t, i =
|
|
2132
|
+
const n = t, i = ve(t, "modelValue"), l = e, o = b(!1), a = b(null), r = b(null), s = k(() => ({
|
|
2126
2133
|
offset: b({
|
|
2127
2134
|
left: n.leftOffset,
|
|
2128
2135
|
right: n.rightOffset,
|
|
@@ -2133,7 +2140,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2133
2140
|
rect: c,
|
|
2134
2141
|
orientation: f,
|
|
2135
2142
|
reversed: x
|
|
2136
|
-
} =
|
|
2143
|
+
} = No(r, a, o, s), v = k(() => ({
|
|
2137
2144
|
left: `${c.value.left}px`,
|
|
2138
2145
|
top: `${c.value.top}px`,
|
|
2139
2146
|
width: `${c.value.width}px`,
|
|
@@ -2153,12 +2160,12 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2153
2160
|
});
|
|
2154
2161
|
};
|
|
2155
2162
|
return (y, S) => {
|
|
2156
|
-
const
|
|
2163
|
+
const $ = se;
|
|
2157
2164
|
return i.value ? (u(), w("div", {
|
|
2158
2165
|
key: 0,
|
|
2159
2166
|
ref_key: "toolPaletteElement",
|
|
2160
2167
|
ref: r,
|
|
2161
|
-
style: pe([
|
|
2168
|
+
style: pe([v.value]),
|
|
2162
2169
|
class: "ml-tool-palette-dialog"
|
|
2163
2170
|
}, [
|
|
2164
2171
|
d("div", {
|
|
@@ -2170,7 +2177,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2170
2177
|
class: "ml-tool-palette-title-bar",
|
|
2171
2178
|
style: pe(h.value)
|
|
2172
2179
|
}, [
|
|
2173
|
-
|
|
2180
|
+
g($, {
|
|
2174
2181
|
size: 18,
|
|
2175
2182
|
class: "ml-tool-palette-dialog-icon",
|
|
2176
2183
|
onClick: _
|
|
@@ -2180,7 +2187,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2180
2187
|
]),
|
|
2181
2188
|
_: 1
|
|
2182
2189
|
}),
|
|
2183
|
-
|
|
2190
|
+
g(fo, {
|
|
2184
2191
|
class: "ml-tool-palette-dialog-icon",
|
|
2185
2192
|
modelValue: o.value,
|
|
2186
2193
|
"onUpdate:modelValue": S[0] || (S[0] = (F) => o.value = F),
|
|
@@ -2188,20 +2195,20 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2188
2195
|
}, null, 8, ["modelValue", "reverse"]),
|
|
2189
2196
|
d("span", Go, D(n.title), 1)
|
|
2190
2197
|
], 4),
|
|
2191
|
-
d("div",
|
|
2198
|
+
d("div", Wo, [
|
|
2192
2199
|
ie(y.$slots, "default", {}, void 0, !0)
|
|
2193
2200
|
])
|
|
2194
2201
|
], 2)
|
|
2195
2202
|
], 4)) : U("", !0);
|
|
2196
2203
|
};
|
|
2197
2204
|
}
|
|
2198
|
-
}), Uo = /* @__PURE__ */ ue(
|
|
2205
|
+
}), Uo = /* @__PURE__ */ ue(qo, [["__scopeId", "data-v-11a64c54"]]), jo = { class: "ml-layer-list-cell" }, Yo = { class: "ml-layer-list-cell" }, Ko = /* @__PURE__ */ L({
|
|
2199
2206
|
__name: "MlLayerList",
|
|
2200
2207
|
props: {
|
|
2201
2208
|
editor: {}
|
|
2202
2209
|
},
|
|
2203
2210
|
setup(t) {
|
|
2204
|
-
const { t: e } = R(), n = t, i =
|
|
2211
|
+
const { t: e } = R(), n = t, i = vt(n.editor), l = b(), o = b([]), a = (s) => {
|
|
2205
2212
|
o.value = s;
|
|
2206
2213
|
}, r = (s) => {
|
|
2207
2214
|
const c = n.editor.curDocument.database.tables.layerTable.getAt(
|
|
@@ -2210,7 +2217,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2210
2217
|
c && (c.isOff = !s.isOn);
|
|
2211
2218
|
};
|
|
2212
2219
|
return (s, c) => {
|
|
2213
|
-
const f = M("el-table-column"), x = M("el-checkbox"),
|
|
2220
|
+
const f = M("el-table-column"), x = M("el-checkbox"), v = M("el-tag");
|
|
2214
2221
|
return u(), C(m(Ze), {
|
|
2215
2222
|
ref_key: "multipleTableRef",
|
|
2216
2223
|
ref: l,
|
|
@@ -2219,25 +2226,25 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2219
2226
|
onSelectionChange: a
|
|
2220
2227
|
}, {
|
|
2221
2228
|
default: p(() => [
|
|
2222
|
-
|
|
2229
|
+
g(f, {
|
|
2223
2230
|
type: "selection",
|
|
2224
2231
|
width: "40"
|
|
2225
2232
|
}),
|
|
2226
|
-
|
|
2233
|
+
g(f, {
|
|
2227
2234
|
property: "name",
|
|
2228
2235
|
label: m(e)("main.toolPalette.layerManager.layerList.name"),
|
|
2229
2236
|
width: "120",
|
|
2230
2237
|
sortable: "",
|
|
2231
2238
|
"show-overflow-tooltip": ""
|
|
2232
2239
|
}, null, 8, ["label"]),
|
|
2233
|
-
|
|
2240
|
+
g(f, {
|
|
2234
2241
|
property: "isOn",
|
|
2235
2242
|
label: m(e)("main.toolPalette.layerManager.layerList.on"),
|
|
2236
2243
|
width: "50"
|
|
2237
2244
|
}, {
|
|
2238
2245
|
default: p((h) => [
|
|
2239
2246
|
d("div", jo, [
|
|
2240
|
-
|
|
2247
|
+
g(x, {
|
|
2241
2248
|
modelValue: h.row.isOn,
|
|
2242
2249
|
"onUpdate:modelValue": (_) => h.row.isOn = _,
|
|
2243
2250
|
onChange: (_) => r(h.row)
|
|
@@ -2246,14 +2253,14 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2246
2253
|
]),
|
|
2247
2254
|
_: 1
|
|
2248
2255
|
}, 8, ["label"]),
|
|
2249
|
-
|
|
2256
|
+
g(f, {
|
|
2250
2257
|
property: "color",
|
|
2251
2258
|
label: m(e)("main.toolPalette.layerManager.layerList.color"),
|
|
2252
2259
|
width: "70"
|
|
2253
2260
|
}, {
|
|
2254
2261
|
default: p((h) => [
|
|
2255
2262
|
d("div", Yo, [
|
|
2256
|
-
v
|
|
2263
|
+
g(v, {
|
|
2257
2264
|
color: h.row.color,
|
|
2258
2265
|
class: "ml-layer-list-color"
|
|
2259
2266
|
}, null, 8, ["color"])
|
|
@@ -2282,7 +2289,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2282
2289
|
}, {
|
|
2283
2290
|
default: p(() => [
|
|
2284
2291
|
d("div", Xo, [
|
|
2285
|
-
|
|
2292
|
+
g(Ko, {
|
|
2286
2293
|
editor: e.editor
|
|
2287
2294
|
}, null, 8, ["editor"])
|
|
2288
2295
|
])
|
|
@@ -2295,7 +2302,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2295
2302
|
setup(t) {
|
|
2296
2303
|
const { t: e } = R(), n = ce(), i = dt(), l = b(""), o = b(""), a = (c, f) => {
|
|
2297
2304
|
const x = c ? i.filter(
|
|
2298
|
-
(
|
|
2305
|
+
(v) => v.commandName.startsWith(c.toLowerCase())
|
|
2299
2306
|
) : i;
|
|
2300
2307
|
f(x);
|
|
2301
2308
|
}, r = () => {
|
|
@@ -2314,7 +2321,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2314
2321
|
"trigger-on-focus": "",
|
|
2315
2322
|
"fit-input-width": !1,
|
|
2316
2323
|
onSelect: r,
|
|
2317
|
-
onKeydown:
|
|
2324
|
+
onKeydown: Oe(r, ["enter"]),
|
|
2318
2325
|
class: "autocomplete-input"
|
|
2319
2326
|
}, {
|
|
2320
2327
|
default: p(({ item: x }) => [
|
|
@@ -2330,14 +2337,14 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2330
2337
|
}), tl = /* @__PURE__ */ H(el, [["__scopeId", "data-v-082845cb"]]), nl = /* @__PURE__ */ L({
|
|
2331
2338
|
__name: "MlEntityInfo",
|
|
2332
2339
|
setup(t) {
|
|
2333
|
-
Ce((
|
|
2340
|
+
Ce((v) => ({
|
|
2334
2341
|
"2d5cc4ca": a.value,
|
|
2335
2342
|
"11fa7d7e": r.value
|
|
2336
2343
|
}));
|
|
2337
2344
|
const { t: e } = R(), n = b(!1), i = b(-1), l = b(-1), o = b(null), a = k(() => i.value + "px"), r = k(() => l.value + "px"), s = k(() => {
|
|
2338
|
-
const
|
|
2345
|
+
const v = B.instance.curDocument.database;
|
|
2339
2346
|
if (o.value) {
|
|
2340
|
-
const h =
|
|
2347
|
+
const h = v.tables.blockTable.modelSpace.getIdAt(o.value);
|
|
2341
2348
|
if (h)
|
|
2342
2349
|
return {
|
|
2343
2350
|
type: Lt(h),
|
|
@@ -2352,29 +2359,29 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2352
2359
|
layer: "",
|
|
2353
2360
|
lineType: ""
|
|
2354
2361
|
};
|
|
2355
|
-
}), c = k(() => n.value && s.value.type != ""), f = (
|
|
2356
|
-
o.value =
|
|
2362
|
+
}), c = k(() => n.value && s.value.type != ""), f = (v) => {
|
|
2363
|
+
o.value = v.id, i.value = v.x, l.value = v.y, n.value = !0;
|
|
2357
2364
|
}, x = () => {
|
|
2358
2365
|
n.value = !1;
|
|
2359
2366
|
};
|
|
2360
|
-
return
|
|
2361
|
-
const
|
|
2362
|
-
|
|
2367
|
+
return O(() => {
|
|
2368
|
+
const v = B.instance.curView.events;
|
|
2369
|
+
v.hover.addEventListener(f), v.unhover.addEventListener(x);
|
|
2363
2370
|
}), ee(() => {
|
|
2364
|
-
const
|
|
2365
|
-
|
|
2366
|
-
}), (
|
|
2367
|
-
const _ = M("el-text"), y = M("el-col"), S = M("el-row"),
|
|
2368
|
-
return c.value ? (u(), C(
|
|
2371
|
+
const v = B.instance.curView.events;
|
|
2372
|
+
v.hover.removeEventListener(f), v.unhover.removeEventListener(x);
|
|
2373
|
+
}), (v, h) => {
|
|
2374
|
+
const _ = M("el-text"), y = M("el-col"), S = M("el-row"), $ = M("el-card");
|
|
2375
|
+
return c.value ? (u(), C($, {
|
|
2369
2376
|
key: 0,
|
|
2370
2377
|
class: "ml-entity-info"
|
|
2371
2378
|
}, {
|
|
2372
2379
|
default: p(() => [
|
|
2373
|
-
|
|
2380
|
+
g(S, { class: "ml-entity-info-text" }, {
|
|
2374
2381
|
default: p(() => [
|
|
2375
|
-
|
|
2382
|
+
g(y, { span: 24 }, {
|
|
2376
2383
|
default: p(() => [
|
|
2377
|
-
|
|
2384
|
+
g(_, {
|
|
2378
2385
|
size: "small",
|
|
2379
2386
|
class: "ml-entity-info-title"
|
|
2380
2387
|
}, {
|
|
@@ -2389,11 +2396,11 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2389
2396
|
]),
|
|
2390
2397
|
_: 1
|
|
2391
2398
|
}),
|
|
2392
|
-
|
|
2399
|
+
g(S, { class: "ml-entity-info-text" }, {
|
|
2393
2400
|
default: p(() => [
|
|
2394
|
-
|
|
2401
|
+
g(y, { span: 10 }, {
|
|
2395
2402
|
default: p(() => [
|
|
2396
|
-
|
|
2403
|
+
g(_, { size: "small" }, {
|
|
2397
2404
|
default: p(() => [
|
|
2398
2405
|
I(D(m(e)("main.entityInfo.color")), 1)
|
|
2399
2406
|
]),
|
|
@@ -2402,9 +2409,9 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2402
2409
|
]),
|
|
2403
2410
|
_: 1
|
|
2404
2411
|
}),
|
|
2405
|
-
|
|
2412
|
+
g(y, { span: 14 }, {
|
|
2406
2413
|
default: p(() => [
|
|
2407
|
-
|
|
2414
|
+
g(_, { size: "small" }, {
|
|
2408
2415
|
default: p(() => [
|
|
2409
2416
|
I(D(s.value.color), 1)
|
|
2410
2417
|
]),
|
|
@@ -2416,11 +2423,11 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2416
2423
|
]),
|
|
2417
2424
|
_: 1
|
|
2418
2425
|
}),
|
|
2419
|
-
|
|
2426
|
+
g(S, { class: "ml-entity-info-text" }, {
|
|
2420
2427
|
default: p(() => [
|
|
2421
|
-
|
|
2428
|
+
g(y, { span: 10 }, {
|
|
2422
2429
|
default: p(() => [
|
|
2423
|
-
|
|
2430
|
+
g(_, { size: "small" }, {
|
|
2424
2431
|
default: p(() => [
|
|
2425
2432
|
I(D(m(e)("main.entityInfo.layer")), 1)
|
|
2426
2433
|
]),
|
|
@@ -2429,9 +2436,9 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2429
2436
|
]),
|
|
2430
2437
|
_: 1
|
|
2431
2438
|
}),
|
|
2432
|
-
|
|
2439
|
+
g(y, { span: 14 }, {
|
|
2433
2440
|
default: p(() => [
|
|
2434
|
-
|
|
2441
|
+
g(_, { size: "small" }, {
|
|
2435
2442
|
default: p(() => [
|
|
2436
2443
|
I(D(s.value.layer), 1)
|
|
2437
2444
|
]),
|
|
@@ -2443,11 +2450,11 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2443
2450
|
]),
|
|
2444
2451
|
_: 1
|
|
2445
2452
|
}),
|
|
2446
|
-
|
|
2453
|
+
g(S, { class: "ml-entity-info-text" }, {
|
|
2447
2454
|
default: p(() => [
|
|
2448
|
-
|
|
2455
|
+
g(y, { span: 10 }, {
|
|
2449
2456
|
default: p(() => [
|
|
2450
|
-
|
|
2457
|
+
g(_, { size: "small" }, {
|
|
2451
2458
|
default: p(() => [
|
|
2452
2459
|
I(D(m(e)("main.entityInfo.lineType")), 1)
|
|
2453
2460
|
]),
|
|
@@ -2456,9 +2463,9 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2456
2463
|
]),
|
|
2457
2464
|
_: 1
|
|
2458
2465
|
}),
|
|
2459
|
-
|
|
2466
|
+
g(y, { span: 14 }, {
|
|
2460
2467
|
default: p(() => [
|
|
2461
|
-
|
|
2468
|
+
g(_, { size: "small" }, {
|
|
2462
2469
|
default: p(() => [
|
|
2463
2470
|
I(D(s.value.lineType), 1)
|
|
2464
2471
|
]),
|
|
@@ -2481,7 +2488,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
|
|
|
2481
2488
|
currentLocale: { default: void 0 }
|
|
2482
2489
|
},
|
|
2483
2490
|
setup(t) {
|
|
2484
|
-
const e = t, { effectiveLocale: n, setLocale: i } =
|
|
2491
|
+
const e = t, { effectiveLocale: n, setLocale: i } = $e(e.currentLocale), l = q([
|
|
2485
2492
|
{
|
|
2486
2493
|
name: "en",
|
|
2487
2494
|
text: "English"
|
|
@@ -2572,7 +2579,7 @@ var il = /* @__PURE__ */ L({
|
|
|
2572
2579
|
})
|
|
2573
2580
|
]));
|
|
2574
2581
|
}
|
|
2575
|
-
}),
|
|
2582
|
+
}), gl = pl, vl = /* @__PURE__ */ L({
|
|
2576
2583
|
name: "Sunny",
|
|
2577
2584
|
__name: "sunny",
|
|
2578
2585
|
setup(t) {
|
|
@@ -2586,7 +2593,7 @@ var il = /* @__PURE__ */ L({
|
|
|
2586
2593
|
})
|
|
2587
2594
|
]));
|
|
2588
2595
|
}
|
|
2589
|
-
}), fl =
|
|
2596
|
+
}), fl = vl, hl = /* @__PURE__ */ L({
|
|
2590
2597
|
name: "Warning",
|
|
2591
2598
|
__name: "warning",
|
|
2592
2599
|
setup(t) {
|
|
@@ -2615,15 +2622,15 @@ const wl = /* @__PURE__ */ L({
|
|
|
2615
2622
|
onCommand: n
|
|
2616
2623
|
}, {
|
|
2617
2624
|
dropdown: p(() => [
|
|
2618
|
-
|
|
2625
|
+
g(r, null, {
|
|
2619
2626
|
default: p(() => [
|
|
2620
|
-
|
|
2627
|
+
g(a, { command: "QNew" }, {
|
|
2621
2628
|
default: p(() => [
|
|
2622
2629
|
I(D(m(e)("main.mainMenu.new")), 1)
|
|
2623
2630
|
]),
|
|
2624
2631
|
_: 1
|
|
2625
2632
|
}),
|
|
2626
|
-
|
|
2633
|
+
g(a, { command: "Open" }, {
|
|
2627
2634
|
default: p(() => [
|
|
2628
2635
|
I(D(m(e)("main.mainMenu.open")), 1)
|
|
2629
2636
|
]),
|
|
@@ -2634,12 +2641,12 @@ const wl = /* @__PURE__ */ L({
|
|
|
2634
2641
|
})
|
|
2635
2642
|
]),
|
|
2636
2643
|
default: p(() => [
|
|
2637
|
-
|
|
2644
|
+
g(o, {
|
|
2638
2645
|
class: "ml-main-menu-icon",
|
|
2639
2646
|
size: "30"
|
|
2640
2647
|
}, {
|
|
2641
2648
|
default: p(() => [
|
|
2642
|
-
|
|
2649
|
+
g(m(sl))
|
|
2643
2650
|
]),
|
|
2644
2651
|
_: 1
|
|
2645
2652
|
})
|
|
@@ -2680,7 +2687,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2680
2687
|
description: e("main.verticalToolbar.zoomToBox.description")
|
|
2681
2688
|
},
|
|
2682
2689
|
{
|
|
2683
|
-
icon:
|
|
2690
|
+
icon: Nt,
|
|
2684
2691
|
text: e("main.verticalToolbar.layer.text"),
|
|
2685
2692
|
command: "la",
|
|
2686
2693
|
description: e("main.verticalToolbar.layer.description")
|
|
@@ -2689,7 +2696,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2689
2696
|
B.instance.sendStringToExecute(o);
|
|
2690
2697
|
};
|
|
2691
2698
|
return (o, a) => m(n).isShowToolbar ? (u(), w("div", bl, [
|
|
2692
|
-
|
|
2699
|
+
g(m(To), {
|
|
2693
2700
|
items: i.value,
|
|
2694
2701
|
size: "small",
|
|
2695
2702
|
direction: "vertical",
|
|
@@ -2726,7 +2733,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2726
2733
|
"hide-after": 0
|
|
2727
2734
|
}, {
|
|
2728
2735
|
default: p(() => [
|
|
2729
|
-
|
|
2736
|
+
g(o, {
|
|
2730
2737
|
class: "ml-point-style-button",
|
|
2731
2738
|
icon: m(ml),
|
|
2732
2739
|
onClick: l[0] || (l[0] = (r) => n())
|
|
@@ -2759,12 +2766,12 @@ const wl = /* @__PURE__ */ L({
|
|
|
2759
2766
|
r.setText(e("main.message.fetchingDrawingFile")), n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, r.close());
|
|
2760
2767
|
}
|
|
2761
2768
|
}, o = (a) => `${a.toFixed(0)}%`;
|
|
2762
|
-
return
|
|
2769
|
+
return O(() => {
|
|
2763
2770
|
j.on("open-file-progress", l);
|
|
2764
2771
|
}), ee(() => {
|
|
2765
2772
|
j.off("open-file-progress", l);
|
|
2766
2773
|
}), (a, r) => i.value ? (u(), w("div", Cl, [
|
|
2767
|
-
|
|
2774
|
+
g(m(et), {
|
|
2768
2775
|
"text-inside": !0,
|
|
2769
2776
|
"stroke-width": 20,
|
|
2770
2777
|
percentage: n.value,
|
|
@@ -2785,14 +2792,14 @@ const wl = /* @__PURE__ */ L({
|
|
|
2785
2792
|
"hide-after": 0
|
|
2786
2793
|
}, {
|
|
2787
2794
|
default: p(() => [
|
|
2788
|
-
|
|
2795
|
+
g(c, {
|
|
2789
2796
|
trigger: "click",
|
|
2790
2797
|
onCommand: i
|
|
2791
2798
|
}, {
|
|
2792
2799
|
dropdown: p(() => [
|
|
2793
|
-
|
|
2800
|
+
g(s, null, {
|
|
2794
2801
|
default: p(() => [
|
|
2795
|
-
|
|
2802
|
+
g(r, {
|
|
2796
2803
|
icon: m(n).isShowStats ? m(le) : "",
|
|
2797
2804
|
command: "isShowStats"
|
|
2798
2805
|
}, {
|
|
@@ -2801,7 +2808,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2801
2808
|
]),
|
|
2802
2809
|
_: 1
|
|
2803
2810
|
}, 8, ["icon"]),
|
|
2804
|
-
|
|
2811
|
+
g(r, {
|
|
2805
2812
|
icon: m(n).isShowCommandLine ? m(le) : "",
|
|
2806
2813
|
command: "isShowCommandLine"
|
|
2807
2814
|
}, {
|
|
@@ -2810,7 +2817,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2810
2817
|
]),
|
|
2811
2818
|
_: 1
|
|
2812
2819
|
}, 8, ["icon"]),
|
|
2813
|
-
|
|
2820
|
+
g(r, {
|
|
2814
2821
|
icon: m(n).isShowCoordinate ? m(le) : "",
|
|
2815
2822
|
command: "isShowCoordinate"
|
|
2816
2823
|
}, {
|
|
@@ -2819,7 +2826,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2819
2826
|
]),
|
|
2820
2827
|
_: 1
|
|
2821
2828
|
}, 8, ["icon"]),
|
|
2822
|
-
|
|
2829
|
+
g(r, {
|
|
2823
2830
|
icon: m(n).isShowToolbar ? m(le) : "",
|
|
2824
2831
|
command: "isShowToolbar"
|
|
2825
2832
|
}, {
|
|
@@ -2833,9 +2840,9 @@ const wl = /* @__PURE__ */ L({
|
|
|
2833
2840
|
})
|
|
2834
2841
|
]),
|
|
2835
2842
|
default: p(() => [
|
|
2836
|
-
|
|
2843
|
+
g(a, {
|
|
2837
2844
|
class: "ml-setting-button",
|
|
2838
|
-
icon: m(
|
|
2845
|
+
icon: m(gl)
|
|
2839
2846
|
}, null, 8, ["icon"])
|
|
2840
2847
|
]),
|
|
2841
2848
|
_: 1
|
|
@@ -2866,7 +2873,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2866
2873
|
setup(t) {
|
|
2867
2874
|
const e = () => {
|
|
2868
2875
|
B.instance.sendStringToExecute("md");
|
|
2869
|
-
}, { fonts: n, images: i } =
|
|
2876
|
+
}, { fonts: n, images: i } = Ve(), l = k(() => i.size > 0 || n.size > 0);
|
|
2870
2877
|
return (o, a) => {
|
|
2871
2878
|
const r = M("el-button");
|
|
2872
2879
|
return l.value ? (u(), C(r, {
|
|
@@ -2878,7 +2885,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2878
2885
|
}, null, 8, ["icon"])) : U("", !0);
|
|
2879
2886
|
};
|
|
2880
2887
|
}
|
|
2881
|
-
}),
|
|
2888
|
+
}), $l = /* @__PURE__ */ H(El, [["__scopeId", "data-v-3411a3ec"]]), Vl = /* @__PURE__ */ L({
|
|
2882
2889
|
__name: "MlStatusBar",
|
|
2883
2890
|
setup(t) {
|
|
2884
2891
|
const { text: e } = mt(B.instance.curView), n = ft(B.instance), i = ce(), l = (o) => {
|
|
@@ -2890,7 +2897,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2890
2897
|
const r = M("el-button"), s = M("el-button-group");
|
|
2891
2898
|
return u(), C(m(zo), { class: "ml-status-bar" }, {
|
|
2892
2899
|
left: p(() => [
|
|
2893
|
-
|
|
2900
|
+
g(s, { class: "ml-status-bar-left-button-group" }, {
|
|
2894
2901
|
default: p(() => [
|
|
2895
2902
|
(u(!0), w(K, null, X(m(n), (c) => (u(), C(r, {
|
|
2896
2903
|
class: "ml-status-bar-layout-button",
|
|
@@ -2908,8 +2915,8 @@ const wl = /* @__PURE__ */ L({
|
|
|
2908
2915
|
})
|
|
2909
2916
|
]),
|
|
2910
2917
|
right: p(() => [
|
|
2911
|
-
|
|
2912
|
-
|
|
2918
|
+
g(zl),
|
|
2919
|
+
g(s, { class: "ml-status-bar-right-button-group" }, {
|
|
2913
2920
|
default: p(() => [
|
|
2914
2921
|
m(i).isShowCoordinate ? (u(), C(r, {
|
|
2915
2922
|
key: 0,
|
|
@@ -2920,11 +2927,11 @@ const wl = /* @__PURE__ */ L({
|
|
|
2920
2927
|
]),
|
|
2921
2928
|
_: 1
|
|
2922
2929
|
})) : U("", !0),
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2930
|
+
g($l),
|
|
2931
|
+
g(Tl),
|
|
2932
|
+
g(kl),
|
|
2933
|
+
g(Sl),
|
|
2934
|
+
g(Bl)
|
|
2928
2935
|
]),
|
|
2929
2936
|
_: 1
|
|
2930
2937
|
})
|
|
@@ -2933,7 +2940,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2933
2940
|
});
|
|
2934
2941
|
};
|
|
2935
2942
|
}
|
|
2936
|
-
}), Al = /* @__PURE__ */ H(
|
|
2943
|
+
}), Al = /* @__PURE__ */ H(Vl, [["__scopeId", "data-v-ee6f13c4"]]), Il = { class: "ml-file-name" }, da = /* @__PURE__ */ L({
|
|
2937
2944
|
__name: "MlCadViewer",
|
|
2938
2945
|
props: {
|
|
2939
2946
|
locale: { default: "default" },
|
|
@@ -2945,7 +2952,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2945
2952
|
setup(t) {
|
|
2946
2953
|
const e = t;
|
|
2947
2954
|
Rl(e.canvasId);
|
|
2948
|
-
const { t: n } = R(), { effectiveLocale: i, elementPlusLocale: l } =
|
|
2955
|
+
const { t: n } = R(), { effectiveLocale: i, elementPlusLocale: l } = $e(e.locale), o = async (r, s) => {
|
|
2949
2956
|
const c = { minimumChunkSize: 1e3 };
|
|
2950
2957
|
await B.instance.openDocument(r, s, c), Q.fileName = r;
|
|
2951
2958
|
}, a = async (r) => {
|
|
@@ -2973,7 +2980,7 @@ const wl = /* @__PURE__ */ L({
|
|
|
2973
2980
|
(r) => {
|
|
2974
2981
|
r != null && (B.instance.curView.backgroundColor = r);
|
|
2975
2982
|
}
|
|
2976
|
-
),
|
|
2983
|
+
), O(async () => {
|
|
2977
2984
|
e.url && a(e.url), e.background != null && (B.instance.curView.backgroundColor = e.background);
|
|
2978
2985
|
}), j.on("message", (r) => {
|
|
2979
2986
|
te({
|
|
@@ -3009,26 +3016,26 @@ const wl = /* @__PURE__ */ L({
|
|
|
3009
3016
|
}), Pl(), (r, s) => {
|
|
3010
3017
|
const c = M("el-config-provider");
|
|
3011
3018
|
return u(), w("div", null, [
|
|
3012
|
-
|
|
3019
|
+
g(c, { locale: m(l) }, {
|
|
3013
3020
|
default: p(() => [
|
|
3014
3021
|
d("header", null, [
|
|
3015
|
-
|
|
3016
|
-
|
|
3022
|
+
g(m(yl)),
|
|
3023
|
+
g(m(al), { "current-locale": m(i) }, null, 8, ["current-locale"])
|
|
3017
3024
|
]),
|
|
3018
3025
|
d("main", null, [
|
|
3019
3026
|
d("div", Il, D(m(Q).fileName), 1),
|
|
3020
|
-
|
|
3021
|
-
|
|
3027
|
+
g(m(xl)),
|
|
3028
|
+
g(m(Zo), {
|
|
3022
3029
|
editor: m(B).instance
|
|
3023
3030
|
}, null, 8, ["editor"]),
|
|
3024
|
-
|
|
3031
|
+
g(m(Tt))
|
|
3025
3032
|
]),
|
|
3026
3033
|
d("footer", null, [
|
|
3027
|
-
|
|
3028
|
-
|
|
3034
|
+
g(m(tl)),
|
|
3035
|
+
g(m(Al))
|
|
3029
3036
|
]),
|
|
3030
|
-
|
|
3031
|
-
|
|
3037
|
+
g(m($t), { onFileRead: o }),
|
|
3038
|
+
g(m(ol))
|
|
3032
3039
|
]),
|
|
3033
3040
|
_: 1
|
|
3034
3041
|
}, 8, ["locale"])
|
|
@@ -3036,23 +3043,23 @@ const wl = /* @__PURE__ */ L({
|
|
|
3036
3043
|
};
|
|
3037
3044
|
}
|
|
3038
3045
|
}), { registerDialog: Se } = oe(), Fl = () => {
|
|
3039
|
-
|
|
3040
|
-
|
|
3046
|
+
W.instance.addCommand(
|
|
3047
|
+
W.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3041
3048
|
"log",
|
|
3042
3049
|
"log",
|
|
3043
|
-
new
|
|
3044
|
-
),
|
|
3045
|
-
|
|
3050
|
+
new Ol()
|
|
3051
|
+
), W.instance.addCommand(
|
|
3052
|
+
W.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3046
3053
|
"la",
|
|
3047
3054
|
"la",
|
|
3048
|
-
new
|
|
3049
|
-
),
|
|
3050
|
-
|
|
3055
|
+
new Nl()
|
|
3056
|
+
), W.instance.addCommand(
|
|
3057
|
+
W.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3051
3058
|
"md",
|
|
3052
3059
|
"md",
|
|
3053
3060
|
new Hl()
|
|
3054
|
-
),
|
|
3055
|
-
|
|
3061
|
+
), W.instance.addCommand(
|
|
3062
|
+
W.SYSTEMT_COMMAND_GROUP_NAME,
|
|
3056
3063
|
"pttype",
|
|
3057
3064
|
"pttype",
|
|
3058
3065
|
new Gl()
|
|
@@ -3069,19 +3076,19 @@ const wl = /* @__PURE__ */ L({
|
|
|
3069
3076
|
});
|
|
3070
3077
|
}, Rl = (t) => {
|
|
3071
3078
|
const e = document.getElementById(t);
|
|
3072
|
-
B.createInstance(e), Re(), Fl()
|
|
3073
|
-
}, Q =
|
|
3079
|
+
B.createInstance(e), Re(), Fl();
|
|
3080
|
+
}, Q = q({
|
|
3074
3081
|
fileName: "",
|
|
3075
3082
|
dialogs: {
|
|
3076
3083
|
layerManager: !1
|
|
3077
3084
|
}
|
|
3078
3085
|
});
|
|
3079
|
-
class
|
|
3086
|
+
class Nl extends re {
|
|
3080
3087
|
execute(e) {
|
|
3081
3088
|
Q.dialogs.layerManager = !0;
|
|
3082
3089
|
}
|
|
3083
3090
|
}
|
|
3084
|
-
class
|
|
3091
|
+
class Ol extends re {
|
|
3085
3092
|
execute(e) {
|
|
3086
3093
|
this.printSelectionSet(e), this.printStats(e), this.printPerformanceData();
|
|
3087
3094
|
}
|
|
@@ -3126,7 +3133,7 @@ class Nl extends re {
|
|
|
3126
3133
|
}
|
|
3127
3134
|
}
|
|
3128
3135
|
printPerformanceData() {
|
|
3129
|
-
|
|
3136
|
+
We.getInstance().printAll();
|
|
3130
3137
|
}
|
|
3131
3138
|
}
|
|
3132
3139
|
class Hl extends re {
|
|
@@ -3142,8 +3149,8 @@ class Gl extends re {
|
|
|
3142
3149
|
}
|
|
3143
3150
|
}
|
|
3144
3151
|
export {
|
|
3145
|
-
|
|
3146
|
-
|
|
3152
|
+
Nl as AcApLayerStateCmd,
|
|
3153
|
+
Ol as AcApLogCmd,
|
|
3147
3154
|
Hl as AcApMissedDataCmd,
|
|
3148
3155
|
Gl as AcApPointStyleCmd,
|
|
3149
3156
|
Ee as MlBaseDialog,
|
|
@@ -3151,7 +3158,7 @@ export {
|
|
|
3151
3158
|
tl as MlCommandLine,
|
|
3152
3159
|
Tt as MlDialogManager,
|
|
3153
3160
|
ol as MlEntityInfo,
|
|
3154
|
-
|
|
3161
|
+
$t as MlFileReader,
|
|
3155
3162
|
al as MlLanguageSelector,
|
|
3156
3163
|
Zo as MlLayerManager,
|
|
3157
3164
|
yl as MlMainMenu,
|
|
@@ -3171,11 +3178,11 @@ export {
|
|
|
3171
3178
|
dt as useCommands,
|
|
3172
3179
|
mt as useCurrentPos,
|
|
3173
3180
|
oe as useDialogManager,
|
|
3174
|
-
|
|
3175
|
-
|
|
3181
|
+
gt as useFileTypes,
|
|
3182
|
+
vt as useLayers,
|
|
3176
3183
|
ft as useLayouts,
|
|
3177
|
-
|
|
3178
|
-
|
|
3184
|
+
$e as useLocale,
|
|
3185
|
+
Ve as useMissedData,
|
|
3179
3186
|
ce as useSettings,
|
|
3180
3187
|
Bt as useSystemVars,
|
|
3181
3188
|
ua as userCmdDescription
|