@mlightcad/cad-viewer 1.0.14 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import "./index.css";
2
- import { AcEdCommandStack as W, AcApDocManager as B, eventBus as j, AcApSettingManager as Y, AcApConvertToSvgCmd as Fe, AcApQNewCmd as Pe, AcApOpenCmd as Re, AcEdCommand as re } from "@mlightcad/cad-simple-viewer";
2
+ import { AcEdCommandStack as q, AcApDocManager as B, eventBus as j, AcApSettingManager as Y, AcApConvertToSvgCmd as Ie, AcApQNewCmd as Fe, AcApOpenCmd as Pe, registerConverters as Re, AcEdCommand as re } from "@mlightcad/cad-simple-viewer";
3
3
  import "element-plus/dist/index.css";
4
- import { reactive as q, computed as k, defineComponent as L, onMounted as N, resolveComponent as M, createBlock as C, openBlock as u, unref as m, withCtx as p, renderSlot as ie, createVNode as v, createTextVNode as I, toDisplayString as D, createElementVNode as d, ref as x, onUnmounted as ee, watch as E, createElementBlock as w, Fragment as K, renderList as X, resolveDynamicComponent as ge, mergeProps as Oe, mergeModels as Z, useCssVars as Ce, useModel as fe, createCommentVNode as U, normalizeStyle as pe, normalizeClass as Le, pushScopeId as ze, popScopeId as De, onBeforeUnmount as Be, withKeys as Ne, isRef as He, markRaw as _e } from "vue";
5
- import { AcDbDatabaseConverterManager as Te, acdbHostApplicationServices as Ee, AcDbFileType as Ge, AcCmPerformanceCollector as We } from "@mlightcad/data-model";
6
- import { useDark as qe, useToggle as Ue, useFullscreen as je } from "@vueuse/core";
4
+ import { reactive as W, computed as k, defineComponent as L, onMounted as N, resolveComponent as M, createBlock as C, openBlock as u, unref as m, withCtx as p, renderSlot as ie, createVNode as v, createTextVNode as I, toDisplayString as D, createElementVNode as d, ref as b, onUnmounted as ee, watch as E, createElementBlock as w, Fragment as K, renderList as X, resolveDynamicComponent as ve, mergeProps as Oe, mergeModels as Z, useCssVars as Ce, useModel as ge, createCommentVNode as U, normalizeStyle as pe, normalizeClass as Le, pushScopeId as ze, popScopeId as De, onBeforeUnmount as Be, withKeys as Ne, isRef as He, markRaw as he } from "vue";
5
+ import { AcDbDatabaseConverterManager as Ge, acdbHostApplicationServices as Te, AcCmPerformanceCollector as qe } from "@mlightcad/data-model";
6
+ import { useDark as We, useToggle as Ue, useFullscreen as je } from "@vueuse/core";
7
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";
10
- import { ElDialog as Qe, ElButton as we, ElTable as Ze, ElAutocomplete as Je, ElProgress as et, ElLoading as ve, ElMessage as te } from "element-plus";
10
+ import { ElDialog as Qe, ElButton as _e, ElTable as Ze, ElAutocomplete as Je, ElProgress as et, ElLoading as we, ElMessage as te } from "element-plus";
11
11
  import { ElIcon as se, ElDropdown as tt, ElDropdownMenu as nt, ElDropdownItem as ot, ElButtonGroup as lt, ElTooltip as at, ElButton as it } from "element-plus/es";
12
12
  import "element-plus/es/components/base/style/css";
13
13
  import "element-plus/es/components/icon/style/css";
@@ -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 = q([]);
20
+ const ne = W([]);
21
21
  function rt(t) {
22
22
  ne.find((n) => n.name === t.name) || ne.push({ ...t, visible: !1 });
23
23
  }
@@ -66,7 +66,7 @@ const ut = /* @__PURE__ */ L({
66
66
  function a() {
67
67
  l("ok"), l("update:modelValue", !1);
68
68
  }
69
- function s() {
69
+ function r() {
70
70
  l("cancel"), l("update:modelValue", !1);
71
71
  }
72
72
  return N(() => {
@@ -75,7 +75,7 @@ const ut = /* @__PURE__ */ L({
75
75
  component: "BaseDialog",
76
76
  props: i.props
77
77
  });
78
- }), (r, c) => {
78
+ }), (s, c) => {
79
79
  const f = M("el-divider");
80
80
  return u(), C(m(Qe), {
81
81
  "model-value": t.modelValue,
@@ -89,13 +89,13 @@ const ut = /* @__PURE__ */ L({
89
89
  ]),
90
90
  footer: p(() => [
91
91
  v(f, { class: "ml-dialog-footer-top-line" }),
92
- v(m(we), { onClick: s }, {
92
+ v(m(_e), { onClick: r }, {
93
93
  default: p(() => [
94
94
  I(D(m(n)("dialog.baseDialog.cancel")), 1)
95
95
  ]),
96
96
  _: 1
97
97
  }),
98
- v(m(we), {
98
+ v(m(_e), {
99
99
  type: "primary",
100
100
  onClick: a
101
101
  }, {
@@ -106,7 +106,7 @@ const ut = /* @__PURE__ */ L({
106
106
  })
107
107
  ]),
108
108
  default: p(() => [
109
- ie(r.$slots, "default", {}, void 0, !0)
109
+ ie(s.$slots, "default", {}, void 0, !0)
110
110
  ]),
111
111
  _: 3
112
112
  }, 8, ["model-value", "width"]);
@@ -117,9 +117,9 @@ const ut = /* @__PURE__ */ L({
117
117
  for (const [i, l] of e)
118
118
  n[i] = l;
119
119
  return n;
120
- }, $e = /* @__PURE__ */ H(ut, [["__scopeId", "data-v-8df470d5"]]);
120
+ }, Ee = /* @__PURE__ */ H(ut, [["__scopeId", "data-v-8df470d5"]]);
121
121
  function dt() {
122
- const t = q([]), e = W.instance.iterator();
122
+ const t = W([]), e = q.instance.iterator();
123
123
  for (const n of e)
124
124
  t.push({
125
125
  commandName: n.command.localName,
@@ -135,7 +135,7 @@ const ye = new Intl.NumberFormat("en-US", {
135
135
  maximumFractionDigits: 2
136
136
  });
137
137
  function mt(t) {
138
- const e = x(0), n = x(0);
138
+ const e = b(0), n = b(0);
139
139
  function i(o) {
140
140
  e.value = o.x, n.value = o.y;
141
141
  }
@@ -143,9 +143,9 @@ function mt(t) {
143
143
  const l = k(() => `${ye.format(e.value)}, ${ye.format(n.value)}`);
144
144
  return { x: e, y: n, text: l };
145
145
  }
146
- const ae = qe(), pt = Ue(ae);
146
+ const ae = We(), pt = Ue(ae);
147
147
  function vt() {
148
- const t = x(/* @__PURE__ */ new Set()), e = Te.instance;
148
+ const t = b(/* @__PURE__ */ new Set()), e = Ge.instance;
149
149
  for (const n of e.fileTypes)
150
150
  t.value.add(n);
151
151
  return e.events.registered.addEventListener((n) => {
@@ -153,7 +153,7 @@ function vt() {
153
153
  }), t;
154
154
  }
155
155
  function gt(t) {
156
- const e = q([]), n = t.curDocument, i = (l) => {
156
+ const e = W([]), n = t.curDocument, i = (l) => {
157
157
  const o = l.tables.layerTable.newIterator();
158
158
  for (const a of o)
159
159
  e.push({
@@ -183,7 +183,7 @@ function gt(t) {
183
183
  }), e;
184
184
  }
185
185
  function ft(t) {
186
- const e = q([]), n = t.curDocument, i = (l) => {
186
+ const e = W([]), n = t.curDocument, i = (l) => {
187
187
  const o = l.dictionaries.layouts.newIterator();
188
188
  e.length = 0;
189
189
  for (const a of o)
@@ -193,11 +193,11 @@ function ft(t) {
193
193
  blockTableRecordId: a.blockTableRecordId,
194
194
  isActive: a.blockTableRecordId == l.currentSpaceId
195
195
  });
196
- e.sort((a, s) => a.tabOrder - s.tabOrder);
196
+ e.sort((a, r) => a.tabOrder - r.tabOrder);
197
197
  };
198
198
  return i(n.database), t.events.documentActivated.addEventListener((l) => {
199
199
  e.length = 0, i(l.doc.database);
200
- }), Ee().layoutManager.events.layoutSwitched.addEventListener(
200
+ }), Te().layoutManager.events.layoutSwitched.addEventListener(
201
201
  (l) => {
202
202
  const o = l.newLayout;
203
203
  e.forEach((a) => {
@@ -829,10 +829,10 @@ const ht = {
829
829
  fallbackLocale: "en",
830
830
  allowComposition: !0,
831
831
  globalInjection: !0
832
- }), he = (t, e) => {
832
+ }), fe = (t, e) => {
833
833
  const n = J.global.t, i = `command.${t}.${e}`;
834
834
  return n(i, "");
835
- }, ca = (t) => he(W.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => he(W.DEFAUT_COMMAND_GROUP_NAME, t), Lt = (t) => {
835
+ }, ca = (t) => fe(q.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => fe(q.DEFAUT_COMMAND_GROUP_NAME, t), Lt = (t) => {
836
836
  const e = J.global.t, n = "entity.entityName." + t.type;
837
837
  return e(n, t.type, { missingWarn: !1 });
838
838
  }, zt = (t) => {
@@ -847,48 +847,48 @@ const ht = {
847
847
  return e(n, t);
848
848
  }, me = "preferred_lang";
849
849
  function Ve(t) {
850
- const { locale: e } = R(), i = x((() => {
851
- const r = localStorage.getItem(me);
852
- return r === "en" || r === "zh" ? r : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
853
- })()), l = k(() => i.value), o = (r) => {
854
- J.global.locale.value = r, i.value = r, (!t || t === "default") && localStorage.setItem(me, r);
850
+ const { locale: e } = R(), i = b((() => {
851
+ const s = localStorage.getItem(me);
852
+ return s === "en" || s === "zh" ? s : navigator.language.toLowerCase().substring(0, 2) === "zh" ? "zh" : "en";
853
+ })()), l = k(() => i.value), o = (s) => {
854
+ J.global.locale.value = s, i.value = s, (!t || t === "default") && localStorage.setItem(me, s);
855
855
  }, a = () => {
856
856
  localStorage.removeItem(me);
857
857
  };
858
858
  t && E(
859
859
  () => t,
860
- (r) => {
861
- r && r !== "default" && (i.value = r, J.global.locale.value = r, a());
860
+ (s) => {
861
+ s && s !== "default" && (i.value = s, J.global.locale.value = s, a());
862
862
  },
863
863
  { immediate: !0 }
864
864
  ), E(
865
865
  () => e.value,
866
- (r) => {
866
+ (s) => {
867
867
  if (!t || t === "default") {
868
- const c = r === "zh" ? "zh" : "en";
868
+ const c = s === "zh" ? "zh" : "en";
869
869
  i.value = c;
870
870
  }
871
871
  }
872
872
  );
873
- const s = k(() => l.value === "en" ? Ye : Ke);
873
+ const r = k(() => l.value === "en" ? Ye : Ke);
874
874
  return {
875
875
  currentLocale: i,
876
876
  effectiveLocale: l,
877
- elementPlusLocale: s,
877
+ elementPlusLocale: r,
878
878
  setLocale: o,
879
879
  clearStoragePreference: a,
880
880
  isControlled: k(() => !!(t && t !== "default"))
881
881
  };
882
882
  }
883
- function Ae() {
884
- const t = q(/* @__PURE__ */ new Map()), e = q(/* @__PURE__ */ new Map()), n = () => {
883
+ function $e() {
884
+ const t = W(/* @__PURE__ */ new Map()), e = W(/* @__PURE__ */ new Map()), n = () => {
885
885
  const i = B.instance.curView.missedData, l = Y.instance.fontMapping;
886
886
  t.clear(), Object.keys(i.fonts).forEach((o) => {
887
887
  const a = l[o];
888
888
  t.set(o, a || "");
889
889
  }), e.clear(), i.images.forEach((o, a) => {
890
- const s = e.get(o);
891
- s ? s.ids.add(a) : e.set(o, {
890
+ const r = e.get(o);
891
+ r ? r.ids.add(a) : e.set(o, {
892
892
  fileName: o,
893
893
  ids: /* @__PURE__ */ new Set([a])
894
894
  });
@@ -904,7 +904,7 @@ function Ae() {
904
904
  };
905
905
  }
906
906
  function ce() {
907
- const t = q(
907
+ const t = W(
908
908
  Y.instance.settings
909
909
  );
910
910
  return Y.instance.events.modified.addEventListener((e) => {
@@ -912,7 +912,7 @@ function ce() {
912
912
  }), t;
913
913
  }
914
914
  function Bt(t) {
915
- const e = q({}), n = t.curDocument, i = (l) => {
915
+ const e = W({}), n = t.curDocument, i = (l) => {
916
916
  e.pdmode = l.pdmode, e.pdmode = l.pdsize;
917
917
  };
918
918
  return i(n.database), n.database.events.headerSysVarChanged.addEventListener((l) => {
@@ -928,37 +928,37 @@ const Tt = /* @__PURE__ */ L({
928
928
  return e({
929
929
  toggleDialog: i,
930
930
  registerDialog: l
931
- }), (o, a) => (u(!0), w(K, null, X(m(n), (s) => (u(), w("div", {
932
- key: s.name
931
+ }), (o, a) => (u(!0), w(K, null, X(m(n), (r) => (u(), w("div", {
932
+ key: r.name
933
933
  }, [
934
- (u(), C(ge(s.component), Oe({
935
- modelValue: s.visible,
936
- "onUpdate:modelValue": (r) => s.visible = r
937
- }, { ref_for: !0 }, s.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
934
+ (u(), C(ve(r.component), Oe({
935
+ modelValue: r.visible,
936
+ "onUpdate:modelValue": (s) => r.visible = s
937
+ }, { ref_for: !0 }, r.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
938
938
  ]))), 128));
939
939
  }
940
- }), Et = ["accept"], $t = /* @__PURE__ */ L({
940
+ }), Et = ["accept"], Vt = /* @__PURE__ */ L({
941
941
  __name: "MlFileReader",
942
942
  emits: ["file-read"],
943
943
  setup(t, { emit: e }) {
944
- const n = e, i = x(null), l = vt(), o = k(() => {
945
- const s = Array.from(l.value);
946
- let r = "";
947
- for (let c = 0, f = s.length; c < f; ++c)
948
- c == f - 1 ? r += `.${s[c]}` : r += `.${s[c]}, `;
949
- return r;
944
+ const n = e, i = b(null), l = vt(), o = k(() => {
945
+ const r = Array.from(l.value);
946
+ let s = "";
947
+ for (let c = 0, f = r.length; c < f; ++c)
948
+ c == f - 1 ? s += `.${r[c]}` : s += `.${r[c]}, `;
949
+ return s;
950
950
  });
951
951
  N(() => {
952
952
  j.on("open-file", () => {
953
- var s;
954
- (s = i.value) == null || s.click();
953
+ var r;
954
+ (r = i.value) == null || r.click();
955
955
  });
956
956
  });
957
- const a = (s) => {
958
- var f, b;
959
- const c = (f = s.target.files) == null ? void 0 : f[0];
957
+ const a = (r) => {
958
+ var f, x;
959
+ const c = (f = r.target.files) == null ? void 0 : f[0];
960
960
  if (c && c.name) {
961
- const g = (b = c.name.split(".").pop()) == null ? void 0 : b.toLocaleLowerCase(), h = new FileReader();
961
+ const g = (x = c.name.split(".").pop()) == null ? void 0 : x.toLocaleLowerCase(), h = new FileReader();
962
962
  g == "dxf" ? h.readAsText(c) : g == "dwg" && h.readAsArrayBuffer(c), h.onload = (_) => {
963
963
  var S;
964
964
  const y = (S = _.target) == null ? void 0 : S.result;
@@ -968,7 +968,7 @@ const Tt = /* @__PURE__ */ L({
968
968
  };
969
969
  }
970
970
  };
971
- return (s, r) => (u(), w("input", {
971
+ return (r, s) => (u(), w("input", {
972
972
  type: "file",
973
973
  ref_key: "fileInput",
974
974
  ref: i,
@@ -977,7 +977,7 @@ const Tt = /* @__PURE__ */ L({
977
977
  onChange: a
978
978
  }, null, 40, Et));
979
979
  }
980
- }), Vt = /* @__PURE__ */ L({
980
+ }), $t = /* @__PURE__ */ L({
981
981
  __name: "MlToggleButton",
982
982
  props: /* @__PURE__ */ Z({
983
983
  size: { default: 30 },
@@ -991,30 +991,30 @@ const Tt = /* @__PURE__ */ L({
991
991
  Ce((c) => ({
992
992
  a97b120a: a.value
993
993
  }));
994
- const n = t, i = fe(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 = () => {
994
+ const n = t, i = ge(t, "modelValue"), l = e, o = k(() => i.value ? n.data.onIcon : n.data.offIcon), a = k(() => n.size + "px"), r = k(() => i.value ? n.data.onTooltip : n.data.offTooltip), s = () => {
995
995
  l("click", i.value);
996
996
  };
997
997
  return (c, f) => {
998
- const b = M("el-button"), g = M("el-tooltip");
998
+ const x = M("el-button"), g = M("el-tooltip");
999
999
  return u(), C(g, {
1000
- content: s.value,
1000
+ content: r.value,
1001
1001
  "hide-after": 0
1002
1002
  }, {
1003
1003
  default: p(() => [
1004
- v(b, {
1004
+ v(x, {
1005
1005
  class: "ml-toggle-button",
1006
1006
  icon: o.value,
1007
- onClick: r
1007
+ onClick: s
1008
1008
  }, null, 8, ["icon"])
1009
1009
  ]),
1010
1010
  _: 1
1011
1011
  }, 8, ["content"]);
1012
1012
  };
1013
1013
  }
1014
- }), Ie = /* @__PURE__ */ H(Vt, [["__scopeId", "data-v-48d6b055"]]), At = /* @__PURE__ */ L({
1014
+ }), Ae = /* @__PURE__ */ H($t, [["__scopeId", "data-v-48d6b055"]]), At = /* @__PURE__ */ L({
1015
1015
  __name: "MlReplacementDlg",
1016
1016
  setup(t) {
1017
- const { t: e } = R(), { fonts: n, images: i } = Ae(), l = x(!0), o = k(() => n.size > 0 ? "font" : "image"), a = x(null), s = k(() => B.instance.avaiableFonts.map((h) => h.name[0])), r = () => {
1017
+ const { t: e } = R(), { fonts: n, images: i } = $e(), l = b(!0), o = k(() => n.size > 0 ? "font" : "image"), a = b(null), r = k(() => B.instance.avaiableFonts.map((h) => h.name[0])), s = () => {
1018
1018
  const g = B.instance.curDocument.database;
1019
1019
  i.forEach((_) => {
1020
1020
  _.file && _.ids.forEach((y) => {
@@ -1036,17 +1036,17 @@ const Tt = /* @__PURE__ */ L({
1036
1036
  var _, y;
1037
1037
  const h = (y = (_ = a.value) == null ? void 0 : _.files) == null ? void 0 : y[0];
1038
1038
  h && (g.file = h);
1039
- }, b = (g, h) => {
1039
+ }, x = (g, h) => {
1040
1040
  n.set(g, h);
1041
1041
  };
1042
1042
  return (g, h) => {
1043
- const _ = M("el-col"), y = M("el-row"), S = M("el-option"), $ = M("el-select"), F = M("el-tab-pane"), V = M("el-table-column"), T = M("el-button"), G = M("el-table"), P = M("el-tabs");
1044
- return u(), C($e, {
1043
+ const _ = M("el-col"), y = M("el-row"), S = M("el-option"), V = M("el-select"), F = M("el-tab-pane"), $ = M("el-table-column"), T = M("el-button"), G = M("el-table"), P = M("el-tabs");
1044
+ return u(), C(Ee, {
1045
1045
  title: m(e)("dialog.replacementDlg.title"),
1046
1046
  modelValue: l.value,
1047
1047
  "onUpdate:modelValue": h[1] || (h[1] = (z) => l.value = z),
1048
1048
  name: "ReplacementDlg",
1049
- onOk: r
1049
+ onOk: s
1050
1050
  }, {
1051
1051
  default: p(() => [
1052
1052
  v(P, {
@@ -1092,14 +1092,14 @@ const Tt = /* @__PURE__ */ L({
1092
1092
  }, 1024),
1093
1093
  v(_, { span: 12 }, {
1094
1094
  default: p(() => [
1095
- v($, {
1095
+ v(V, {
1096
1096
  "model-value": A,
1097
1097
  placeholder: m(e)("dialog.replacementDlg.selectFont"),
1098
- "onUpdate:modelValue": (O) => b(z, O),
1098
+ "onUpdate:modelValue": (O) => x(z, O),
1099
1099
  style: { width: "100%" }
1100
1100
  }, {
1101
1101
  default: p(() => [
1102
- (u(!0), w(K, null, X(s.value, (O, de) => (u(), C(S, {
1102
+ (u(!0), w(K, null, X(r.value, (O, de) => (u(), C(S, {
1103
1103
  key: de,
1104
1104
  label: O,
1105
1105
  value: O
@@ -1129,13 +1129,13 @@ const Tt = /* @__PURE__ */ L({
1129
1129
  "v-show": !1
1130
1130
  }, {
1131
1131
  default: p(() => [
1132
- v(V, {
1132
+ v($, {
1133
1133
  label: m(e)("dialog.replacementDlg.file"),
1134
1134
  prop: "fileName",
1135
1135
  "min-width": 0,
1136
1136
  flex: 1
1137
1137
  }, null, 8, ["label"]),
1138
- v(V, {
1138
+ v($, {
1139
1139
  label: m(e)("dialog.replacementDlg.replace"),
1140
1140
  fixed: "right",
1141
1141
  width: "60"
@@ -1229,21 +1229,21 @@ function Ht(t, e) {
1229
1229
  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
1230
  ]));
1231
1231
  }
1232
- const Gt = { render: Ht }, Wt = {
1232
+ const Gt = { render: Ht }, qt = {
1233
1233
  xmlns: "http://www.w3.org/2000/svg",
1234
1234
  width: "1em",
1235
1235
  height: "1em",
1236
1236
  viewBox: "0 0 20 20"
1237
1237
  };
1238
- function qt(t, e) {
1239
- return u(), w("svg", Wt, e[0] || (e[0] = [
1238
+ function Wt(t, e) {
1239
+ return u(), w("svg", qt, e[0] || (e[0] = [
1240
1240
  d("path", {
1241
1241
  fill: "currentColor",
1242
1242
  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
1243
  }, null, -1)
1244
1244
  ]));
1245
1245
  }
1246
- const Ut = { render: qt }, jt = {
1246
+ const Ut = { render: Wt }, jt = {
1247
1247
  xmlns: "http://www.w3.org/2000/svg",
1248
1248
  width: "1em",
1249
1249
  height: "1em",
@@ -1399,18 +1399,18 @@ function Tn(t, e) {
1399
1399
  d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
1400
1400
  ]));
1401
1401
  }
1402
- const En = { render: Tn }, $n = {
1402
+ const En = { render: Tn }, Vn = {
1403
1403
  xmlns: "http://www.w3.org/2000/svg",
1404
1404
  width: "1em",
1405
1405
  height: "1em",
1406
1406
  viewBox: "0 0 20 20"
1407
1407
  };
1408
- function Vn(t, e) {
1409
- return u(), w("svg", $n, e[0] || (e[0] = [
1408
+ function $n(t, e) {
1409
+ return u(), w("svg", Vn, e[0] || (e[0] = [
1410
1410
  d("path", { d: "M17 3v14H3V3zm1-1H2v16h16z" }, null, -1)
1411
1411
  ]));
1412
1412
  }
1413
- const An = { render: Vn }, In = {
1413
+ const An = { render: $n }, In = {
1414
1414
  xmlns: "http://www.w3.org/2000/svg",
1415
1415
  width: "1em",
1416
1416
  height: "1em",
@@ -1448,14 +1448,14 @@ function Gn(t, e) {
1448
1448
  d("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
1449
1449
  ]));
1450
1450
  }
1451
- const Wn = { render: Gn }, qn = {
1451
+ const qn = { render: Gn }, Wn = {
1452
1452
  xmlns: "http://www.w3.org/2000/svg",
1453
1453
  width: "1em",
1454
1454
  height: "1em",
1455
1455
  viewBox: "0 0 20 20"
1456
1456
  };
1457
1457
  function Un(t, e) {
1458
- return u(), w("svg", qn, e[0] || (e[0] = [
1458
+ return u(), w("svg", Wn, e[0] || (e[0] = [
1459
1459
  d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1460
1460
  d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1461
1461
  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)
@@ -1517,7 +1517,7 @@ function lo(t, e) {
1517
1517
  const ao = { render: lo }, io = /* @__PURE__ */ L({
1518
1518
  __name: "MlPointStyleDlg",
1519
1519
  setup(t) {
1520
- const { t: e } = R(), n = Bt(B.instance), i = x(!0), l = x(0), o = [
1520
+ const { t: e } = R(), n = Bt(B.instance), i = b(!0), l = b(0), o = [
1521
1521
  [
1522
1522
  { id: 0, icon: tn },
1523
1523
  { id: 1, icon: ln },
@@ -1537,7 +1537,7 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
1537
1537
  { id: 65, icon: An },
1538
1538
  { id: 66, icon: Pn },
1539
1539
  { id: 67, icon: Nn },
1540
- { id: 68, icon: Wn }
1540
+ { id: 68, icon: qn }
1541
1541
  ],
1542
1542
  [
1543
1543
  { id: 96, icon: jn },
@@ -1550,16 +1550,16 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
1550
1550
  n.pdmode && (l.value = n.pdmode);
1551
1551
  };
1552
1552
  a();
1553
- const s = (b, g) => o[b][g].id == l.value ? "primary" : null, r = (b, g) => {
1554
- l.value = o[b][g].id;
1553
+ const r = (x, g) => o[x][g].id == l.value ? "primary" : null, s = (x, g) => {
1554
+ l.value = o[x][g].id;
1555
1555
  }, c = () => {
1556
1556
  B.instance.curDocument.database.pdmode = l.value;
1557
1557
  }, f = () => {
1558
1558
  a();
1559
1559
  };
1560
- return (b, g) => {
1560
+ return (x, g) => {
1561
1561
  const h = M("el-button"), _ = M("el-col"), y = M("el-row");
1562
- return u(), C($e, {
1562
+ return u(), C(Ee, {
1563
1563
  title: m(e)("dialog.pointStyleDlg.title"),
1564
1564
  width: 400,
1565
1565
  modelValue: i.value,
@@ -1569,22 +1569,22 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
1569
1569
  onCancel: f
1570
1570
  }, {
1571
1571
  default: p(() => [
1572
- (u(), w(K, null, X(o, (S, $) => v(y, {
1573
- key: $,
1572
+ (u(), w(K, null, X(o, (S, V) => v(y, {
1573
+ key: V,
1574
1574
  style: { "margin-top": "10px" },
1575
1575
  gutter: 6,
1576
1576
  justify: "space-between"
1577
1577
  }, {
1578
1578
  default: p(() => [
1579
- (u(!0), w(K, null, X(S, (F, V) => (u(), C(_, {
1580
- key: V,
1579
+ (u(!0), w(K, null, X(S, (F, $) => (u(), C(_, {
1580
+ key: $,
1581
1581
  span: 4
1582
1582
  }, {
1583
1583
  default: p(() => [
1584
1584
  v(h, {
1585
1585
  icon: F.icon,
1586
- type: s($, V),
1587
- onClick: (T) => r($, V),
1586
+ type: r(V, $),
1587
+ onClick: (T) => s(V, $),
1588
1588
  style: { "font-size": "25px" }
1589
1589
  }, null, 8, ["icon", "type", "onClick"])
1590
1590
  ]),
@@ -1648,17 +1648,17 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
1648
1648
  }),
1649
1649
  emits: /* @__PURE__ */ Z(["change"], ["update:modelValue"]),
1650
1650
  setup(t, { emit: e }) {
1651
- const n = t, i = fe(t, "modelValue"), l = e, o = k(() => n.reverse ? i.value ? xe : ke : i.value ? ke : xe), a = k(() => `${n.size}px`), s = () => {
1651
+ const n = t, i = ge(t, "modelValue"), l = e, o = k(() => n.reverse ? i.value ? xe : ke : i.value ? ke : xe), a = k(() => `${n.size}px`), r = () => {
1652
1652
  l("change", i.value), i.value = !i.value;
1653
1653
  };
1654
- return (r, c) => {
1654
+ return (s, c) => {
1655
1655
  const f = se;
1656
1656
  return u(), C(f, {
1657
1657
  size: a.value,
1658
- onClick: s
1658
+ onClick: r
1659
1659
  }, {
1660
1660
  default: p(() => [
1661
- (u(), C(ge(o.value)))
1661
+ (u(), C(ve(o.value)))
1662
1662
  ]),
1663
1663
  _: 1
1664
1664
  }, 8, ["size"]);
@@ -1689,9 +1689,9 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
1689
1689
  const n = t, i = e, l = k(() => n.items.filter((a) => a.name !== n.current)), o = (a) => {
1690
1690
  i("click", a);
1691
1691
  };
1692
- return (a, s) => {
1693
- const r = se, c = ot, f = nt, b = tt;
1694
- return u(), C(b, { onCommand: o }, {
1692
+ return (a, r) => {
1693
+ const s = se, c = ot, f = nt, x = tt;
1694
+ return u(), C(x, { onCommand: o }, {
1695
1695
  dropdown: p(() => [
1696
1696
  v(f, null, {
1697
1697
  default: p(() => [
@@ -1709,7 +1709,7 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
1709
1709
  })
1710
1710
  ]),
1711
1711
  default: p(() => [
1712
- v(r, {
1712
+ v(s, {
1713
1713
  size: "30",
1714
1714
  class: "ml-dropdown-icon"
1715
1715
  }, {
@@ -1781,36 +1781,36 @@ const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf
1781
1781
  return 50;
1782
1782
  }
1783
1783
  return 70;
1784
- }), s = (f) => f.description ? f.description : f.text, r = k(() => n.size === "large"), c = (f) => {
1784
+ }), r = (f) => f.description ? f.description : f.text, s = k(() => n.size === "large"), c = (f) => {
1785
1785
  i("click", f);
1786
1786
  };
1787
- return (f, b) => {
1787
+ return (f, x) => {
1788
1788
  const g = se, h = it, _ = at, y = lt;
1789
1789
  return u(), C(y, {
1790
1790
  class: Le(l.value)
1791
1791
  }, {
1792
1792
  default: p(() => [
1793
- (u(!0), w(K, null, X(f.items, (S, $) => (u(), C(_, {
1793
+ (u(!0), w(K, null, X(f.items, (S, V) => (u(), C(_, {
1794
1794
  key: S.text,
1795
- content: s(S),
1795
+ content: r(S),
1796
1796
  "hide-after": 0
1797
1797
  }, {
1798
1798
  default: p(() => [
1799
1799
  (u(), C(h, {
1800
1800
  class: "ml-toolbar-button",
1801
1801
  style: pe({ width: a.value + "px", height: a.value + "px" }),
1802
- key: $,
1802
+ key: V,
1803
1803
  onClick: (F) => c(S.command)
1804
1804
  }, {
1805
1805
  default: p(() => [
1806
1806
  d("div", null, [
1807
1807
  v(g, { size: o.value }, {
1808
1808
  default: p(() => [
1809
- (u(), C(ge(S.icon)))
1809
+ (u(), C(ve(S.icon)))
1810
1810
  ]),
1811
1811
  _: 2
1812
1812
  }, 1032, ["size"]),
1813
- r.value ? (u(), w("div", Do, D(S.text), 1)) : U("", !0)
1813
+ s.value ? (u(), w("div", Do, D(S.text), 1)) : U("", !0)
1814
1814
  ])
1815
1815
  ]),
1816
1816
  _: 2
@@ -1825,33 +1825,33 @@ const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf
1825
1825
  }
1826
1826
  }), To = /* @__PURE__ */ ue(Bo, [["__scopeId", "data-v-3eed2087"]]), Me = 20;
1827
1827
  function Eo(t, e, n) {
1828
- const i = x(!1), l = (r) => {
1828
+ const i = b(!1), l = (s) => {
1829
1829
  if (n.value && t.value) {
1830
- const c = t.value.getBoundingClientRect(), f = r.clientX < c.left || r.clientX > c.right || r.clientY < c.top || r.clientY > c.bottom;
1830
+ const c = t.value.getBoundingClientRect(), f = s.clientX < c.left || s.clientX > c.right || s.clientY < c.top || s.clientY > c.bottom;
1831
1831
  i.value = !f;
1832
1832
  }
1833
1833
  }, o = () => {
1834
1834
  n.value && (i.value = !0);
1835
1835
  }, a = () => {
1836
1836
  e.value && e.value.addEventListener("mousemove", o), t.value && t.value.addEventListener("mousemove", o);
1837
- }, s = () => {
1837
+ }, r = () => {
1838
1838
  e.value && e.value.removeEventListener("mousemove", o), t.value && t.value.removeEventListener("mousemove", o);
1839
1839
  };
1840
1840
  return N(() => {
1841
1841
  window.addEventListener("mousemove", l);
1842
1842
  }), ee(() => {
1843
1843
  window.removeEventListener("mousemove", l);
1844
- }), E(n, (r) => {
1845
- r && (i.value = !1);
1846
- }), E(t, (r) => {
1847
- r ? a() : s();
1844
+ }), E(n, (s) => {
1845
+ s && (i.value = !1);
1846
+ }), E(t, (s) => {
1847
+ s ? a() : r();
1848
1848
  }), { autoOpened: i };
1849
1849
  }
1850
- function $o(t, e, n) {
1851
- const i = x(!1), l = x(null), o = x(null), a = { x: 0, y: 0 }, s = k(() => l.value == null || o.value == null ? { x: 0, y: 0 } : {
1850
+ function Vo(t, e, n) {
1851
+ 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
1852
  x: l.value.x - o.value.x,
1853
1853
  y: l.value.y - o.value.y
1854
- }), r = () => {
1854
+ }), s = () => {
1855
1855
  if (t.value) {
1856
1856
  const _ = t.value.getBoundingClientRect();
1857
1857
  o.value = {
@@ -1863,25 +1863,25 @@ function $o(t, e, n) {
1863
1863
  };
1864
1864
  }
1865
1865
  }, c = () => {
1866
- t.value && t.value.addEventListener("mousedown", b);
1866
+ t.value && t.value.addEventListener("mousedown", x);
1867
1867
  }, f = () => {
1868
- t.value && t.value.removeEventListener("mousedown", b);
1869
- }, b = (_) => {
1868
+ t.value && t.value.removeEventListener("mousedown", x);
1869
+ }, x = (_) => {
1870
1870
  if (t.value != null) {
1871
1871
  if (e && e.value) {
1872
1872
  const y = e.value.getBoundingClientRect();
1873
1873
  if (_.clientX < y.left || _.clientX > y.right || _.clientY < y.top || _.clientY > y.bottom) return;
1874
1874
  }
1875
- i.value = !0, a.x = _.clientX, a.y = _.clientY, r(), document.addEventListener("mousemove", g), document.addEventListener("mouseup", h);
1875
+ i.value = !0, a.x = _.clientX, a.y = _.clientY, s(), document.addEventListener("mousemove", g), document.addEventListener("mouseup", h);
1876
1876
  }
1877
1877
  }, g = (_) => {
1878
1878
  if (i.value && o.value && l.value) {
1879
- 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);
1879
+ const y = window.innerWidth, S = window.innerHeight, V = t.value, F = V.getBoundingClientRect(), $ = F.width, T = F.height, G = o.value.x + (_.clientX - a.x), P = o.value.y + (_.clientY - a.y);
1880
1880
  l.value.x = Math.max(
1881
1881
  n ? n.value.offset.value.left : 0,
1882
1882
  G
1883
1883
  );
1884
- const z = y - V;
1884
+ const z = y - $;
1885
1885
  l.value.x = Math.min(
1886
1886
  n ? z - n.value.offset.value.right : z,
1887
1887
  l.value.x
@@ -1893,31 +1893,31 @@ function $o(t, e, n) {
1893
1893
  l.value.y = Math.min(
1894
1894
  n ? A - n.value.offset.value.bottom : A,
1895
1895
  l.value.y
1896
- ), $.style.left = l.value.x + "px", $.style.top = l.value.y + "px";
1896
+ ), V.style.left = l.value.x + "px", V.style.top = l.value.y + "px";
1897
1897
  }
1898
1898
  }, h = () => {
1899
1899
  i.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", h);
1900
1900
  };
1901
1901
  return N(() => {
1902
- t.value && (r(), c());
1902
+ t.value && (s(), c());
1903
1903
  }), ee(() => {
1904
- t.value && t.value.removeEventListener("mousedown", b);
1904
+ t.value && t.value.removeEventListener("mousedown", x);
1905
1905
  }), E(t, (_) => {
1906
- _ ? (r(), c()) : f();
1906
+ _ ? (s(), c()) : f();
1907
1907
  }), {
1908
1908
  isDragging: i,
1909
- movement: s,
1909
+ movement: r,
1910
1910
  position: l
1911
1911
  };
1912
1912
  }
1913
- function Vo(t, e, n) {
1914
- const i = x(!1), l = x("left"), { isDragging: o, movement: a, position: s } = $o(
1913
+ function $o(t, e, n) {
1914
+ const i = b(!1), l = b("left"), { isDragging: o, movement: a, position: r } = Vo(
1915
1915
  t,
1916
1916
  e,
1917
1917
  n
1918
1918
  );
1919
- return E(a, (r) => {
1920
- if (r && t.value) {
1919
+ return E(a, (s) => {
1920
+ if (s && t.value) {
1921
1921
  const c = t.value.getBoundingClientRect();
1922
1922
  c.left <= n.value.offset.value.left ? (l.value = "left", i.value = !0) : window.innerWidth - c.left - c.width <= n.value.offset.value.right ? (l.value = "right", i.value = !0) : i.value = !1;
1923
1923
  }
@@ -1926,36 +1926,36 @@ function Vo(t, e, n) {
1926
1926
  orientation: l,
1927
1927
  isDragging: o,
1928
1928
  movement: a,
1929
- position: s
1929
+ position: r
1930
1930
  };
1931
1931
  }
1932
1932
  function Ao(t, e, n, i) {
1933
- const l = x(null), o = x(null), a = x(null), s = x(null);
1934
- return E(t, (r, c) => {
1933
+ const l = b(null), o = b(null), a = b(null), r = b(null);
1934
+ return E(t, (s, c) => {
1935
1935
  l.value = c;
1936
- }), E(e, (r, c) => {
1936
+ }), E(e, (s, c) => {
1937
1937
  o.value = c;
1938
- }), E(n, (r, c) => {
1938
+ }), E(n, (s, c) => {
1939
1939
  a.value = c;
1940
- }), E(i, (r, c) => {
1941
- s.value = c;
1940
+ }), E(i, (s, c) => {
1941
+ r.value = c;
1942
1942
  }), {
1943
1943
  lastLeft: l,
1944
1944
  lastTop: o,
1945
1945
  lastWidth: a,
1946
- lastHeight: s
1946
+ lastHeight: r
1947
1947
  };
1948
1948
  }
1949
1949
  function Io(t, e, n, i) {
1950
- 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);
1951
- return E([a, s], ([c, f]) => {
1950
+ const l = b(t.value.width), o = b(t.value.left), a = k(() => t.value.width), r = k(() => t.value.left), s = k(() => n.value ? n.value.x : null);
1951
+ return E([a, r], ([c, f]) => {
1952
1952
  (l.value == null || o.value == null || e.value) && (l.value = c, o.value = f);
1953
- }), E(r, (c) => {
1953
+ }), E(s, (c) => {
1954
1954
  i.value && n.value && (o.value = c);
1955
1955
  }), { left: o, width: l };
1956
1956
  }
1957
- function Fo(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
1958
- const n = x({});
1957
+ function Fo(t, e = b({ left: 0, right: 0, top: 0, bottom: 0 })) {
1958
+ const n = b({});
1959
1959
  let i = !1;
1960
1960
  const l = () => {
1961
1961
  if (!i && t.value) {
@@ -1972,19 +1972,19 @@ function Fo(t, e = x({ left: 0, right: 0, top: 0, bottom: 0 })) {
1972
1972
  initialRect: n
1973
1973
  };
1974
1974
  }
1975
- function Po(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom: 0 }), l = { width: 20, height: 40 }) {
1976
- const { initialRect: o } = Fo(t, i), a = x(!1);
1977
- let s = 0, r = 0, c = 0, f = 0, b = 0;
1978
- const g = 5, h = x(null), _ = (V) => {
1975
+ 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
+ const { initialRect: o } = Fo(t, i), a = b(!1);
1977
+ let r = 0, s = 0, c = 0, f = 0, x = 0;
1978
+ const g = 5, h = b(null), _ = ($) => {
1979
1979
  if (!(!t.value || e.value))
1980
1980
  if (a.value) {
1981
- const T = V.clientX - f, G = V.clientY - b;
1981
+ const T = $.clientX - f, G = $.clientY - x;
1982
1982
  if (h.value === "left" || h.value === "left-bottom-corner") {
1983
- const P = r - T;
1984
- P > l.width && (o.value.width = P, o.value.left = s + T, t.value.style.left = o.value.left + "px", t.value.style.width = o.value.width + "px");
1983
+ const P = s - T;
1984
+ P > l.width && (o.value.width = P, o.value.left = r + T, t.value.style.left = o.value.left + "px", t.value.style.width = o.value.width + "px");
1985
1985
  }
1986
1986
  if (h.value === "right" || h.value === "right-bottom-corner") {
1987
- const P = r + T;
1987
+ const P = s + T;
1988
1988
  P > l.width && (o.value.width = P, t.value.style.width = o.value.width + "px");
1989
1989
  }
1990
1990
  if (h.value === "bottom" || h.value === "left-bottom-corner" || h.value === "right-bottom-corner") {
@@ -1992,16 +1992,16 @@ function Po(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom:
1992
1992
  P > l.height && (o.value.height = P, t.value.style.height = o.value.height + "px");
1993
1993
  }
1994
1994
  } else {
1995
- const T = t.value.getBoundingClientRect(), G = V.clientX - T.left, P = V.clientY - T.top, z = G <= g, A = G >= T.width - g, O = P >= T.height - g;
1995
+ const T = t.value.getBoundingClientRect(), G = $.clientX - T.left, P = $.clientY - T.top, z = G <= g, A = G >= T.width - g, O = P >= T.height - g;
1996
1996
  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);
1997
1997
  }
1998
- }, y = (V) => {
1998
+ }, y = ($) => {
1999
1999
  if (!t.value || !h.value) return;
2000
2000
  const T = t.value.getBoundingClientRect();
2001
- f = V.clientX, b = V.clientY, r = T.width, c = T.height, s = T.left, o.value.width = r, o.value.height = c, o.value.left = T.left, o.value.top = T.top, a.value = !0, document.addEventListener("mousemove", _), document.addEventListener("mouseup", S);
2001
+ f = $.clientX, x = $.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
2002
  }, S = () => {
2003
2003
  a.value = !1, h.value = null, t.value && (t.value.style.cursor = ""), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", S);
2004
- }, $ = () => {
2004
+ }, V = () => {
2005
2005
  t.value && (t.value.removeEventListener("mousedown", y), t.value.removeEventListener("mousemove", _)), document.removeEventListener("mouseup", S);
2006
2006
  }, F = () => {
2007
2007
  t.value && (t.value.addEventListener("mousedown", y), t.value.addEventListener("mousemove", _));
@@ -2009,30 +2009,30 @@ function Po(t, e = x(!1), n = x(!1), i = x({ left: 0, right: 0, top: 0, bottom:
2009
2009
  return N(() => {
2010
2010
  t.value && F();
2011
2011
  }), Be(() => {
2012
- $();
2013
- }), E(t, (V) => {
2014
- V ? F() : $();
2012
+ V();
2013
+ }), E(t, ($) => {
2014
+ $ ? F() : V();
2015
2015
  }), { rect: o, isResizing: a };
2016
2016
  }
2017
2017
  function Ro(t, e, n, i) {
2018
2018
  const l = () => {
2019
2019
  if (t.value) {
2020
- const r = t.value;
2021
- e.value ? r.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : r.style.transition = "width 0.3s ease";
2020
+ const s = t.value;
2021
+ e.value ? s.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : s.style.transition = "width 0.3s ease";
2022
2022
  }
2023
2023
  }, o = () => {
2024
2024
  t.value && (t.value.style.transition = "");
2025
2025
  }, a = () => {
2026
2026
  t.value && t.value.removeEventListener("transitionend", o);
2027
- }, s = () => {
2027
+ }, r = () => {
2028
2028
  t.value && t.value.addEventListener("transitionend", o);
2029
2029
  };
2030
2030
  N(() => {
2031
2031
  t.value && t.value.addEventListener("transitionend", o);
2032
2032
  }), Be(() => {
2033
2033
  t.value && t.value.removeEventListener("transitionend", o);
2034
- }), E(t, (r) => {
2035
- r ? s() : a();
2034
+ }), E(t, (s) => {
2035
+ s ? r() : a();
2036
2036
  }), E(n, () => {
2037
2037
  l();
2038
2038
  }), E(i, () => {
@@ -2040,31 +2040,31 @@ function Ro(t, e, n, i) {
2040
2040
  });
2041
2041
  }
2042
2042
  function Oo(t, e, n, i) {
2043
- const l = x(window.innerWidth), o = x(window.innerHeight), { docked: a, orientation: s, movement: r, position: c, isDragging: f } = Vo(
2043
+ const l = b(window.innerWidth), o = b(window.innerHeight), { docked: a, orientation: r, movement: s, position: c, isDragging: f } = $o(
2044
2044
  t,
2045
2045
  e,
2046
2046
  i
2047
- ), b = k(() => s.value === "right"), { rect: g, isResizing: h } = Po(
2047
+ ), x = k(() => r.value === "right"), { rect: g, isResizing: h } = Po(
2048
2048
  t,
2049
2049
  n,
2050
- b,
2050
+ x,
2051
2051
  i.value.offset
2052
2052
  ), { width: _, left: y } = Io(
2053
2053
  g,
2054
2054
  h,
2055
2055
  c,
2056
2056
  f
2057
- ), { lastTop: S, lastHeight: $ } = Ao(
2057
+ ), { lastTop: S, lastHeight: V } = Ao(
2058
2058
  k(() => g.value.left),
2059
2059
  k(() => g.value.top),
2060
2060
  k(() => g.value.width),
2061
2061
  k(() => g.value.height)
2062
2062
  ), { autoOpened: F } = Eo(t, e, n);
2063
- Ro(t, b, n, F);
2064
- const V = (z) => {
2063
+ Ro(t, x, n, F);
2064
+ const $ = (z) => {
2065
2065
  if (t.value) {
2066
2066
  const A = t.value.getBoundingClientRect(), O = A.left + z;
2067
- if (b.value) {
2067
+ if (x.value) {
2068
2068
  g.value.left = O;
2069
2069
  const de = window.innerWidth - A.width - A.left;
2070
2070
  A.left <= 0 && de >= 0 && z < 0 && (g.value.left = Math.max(0, O)), window.innerWidth - A.width <= 0 && (g.value.left = window.innerWidth - A.width);
@@ -2073,7 +2073,7 @@ function Oo(t, e, n, i) {
2073
2073
  }
2074
2074
  }, T = () => {
2075
2075
  const z = window.innerWidth - l.value;
2076
- l.value = window.innerWidth, o.value = window.innerHeight, V(z);
2076
+ l.value = window.innerWidth, o.value = window.innerHeight, $(z);
2077
2077
  };
2078
2078
  N(() => {
2079
2079
  window.addEventListener("resize", T);
@@ -2081,9 +2081,9 @@ function Oo(t, e, n, i) {
2081
2081
  window.removeEventListener("resize", T);
2082
2082
  });
2083
2083
  const G = (z) => {
2084
- z ? (g.value.width = Me, b.value && y.value && _.value && (g.value.left = y.value + _.value - Me)) : (g.value.width = _.value, b.value && y.value && _.value && (g.value.left = y.value));
2084
+ z ? (g.value.width = Me, x.value && y.value && _.value && (g.value.left = y.value + _.value - Me)) : (g.value.width = _.value, x.value && y.value && _.value && (g.value.left = y.value));
2085
2085
  }, P = () => {
2086
- a.value ? (g.value.top = i.value.offset.value.top, g.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (g.value.top = S.value, g.value.height = $.value);
2086
+ a.value ? (g.value.top = i.value.offset.value.top, g.value.height = window.innerHeight - i.value.offset.value.top - i.value.offset.value.bottom) : (g.value.top = S.value, g.value.height = V.value);
2087
2087
  };
2088
2088
  return E(a, () => {
2089
2089
  P();
@@ -2091,12 +2091,12 @@ function Oo(t, e, n, i) {
2091
2091
  G(z);
2092
2092
  }), E(F, (z) => {
2093
2093
  n.value && !f.value && G(!z);
2094
- }), E(r, (z) => {
2094
+ }), E(s, (z) => {
2095
2095
  if (z && t.value) {
2096
2096
  const A = t.value.getBoundingClientRect();
2097
2097
  g.value.left = A.left, g.value.top = A.top;
2098
2098
  }
2099
- }), { rect: g, orientation: s, reversed: b };
2099
+ }), { rect: g, orientation: r, reversed: x };
2100
2100
  }
2101
2101
  const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ */ No(() => /* @__PURE__ */ d("svg", {
2102
2102
  xmlns: "http://www.w3.org/2000/svg",
@@ -2108,7 +2108,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2108
2108
  fill: "currentColor",
2109
2109
  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
2110
  })
2111
- ], -1)), Go = { class: "ml-tool-palette-title" }, Wo = { class: "ml-tool-palette-content" }, qo = /* @__PURE__ */ L({
2111
+ ], -1)), Go = { class: "ml-tool-palette-title" }, qo = { class: "ml-tool-palette-content" }, Wo = /* @__PURE__ */ L({
2112
2112
  __name: "MlToolPalette",
2113
2113
  props: /* @__PURE__ */ Z({
2114
2114
  title: { default: "" },
@@ -2122,8 +2122,8 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2122
2122
  }),
2123
2123
  emits: /* @__PURE__ */ Z(["close"], ["update:modelValue"]),
2124
2124
  setup(t, { emit: e }) {
2125
- const n = t, i = fe(t, "modelValue"), l = e, o = x(!1), a = x(null), s = x(null), r = k(() => ({
2126
- offset: x({
2125
+ const n = t, i = ge(t, "modelValue"), l = e, o = b(!1), a = b(null), r = b(null), s = k(() => ({
2126
+ offset: b({
2127
2127
  left: n.leftOffset,
2128
2128
  right: n.rightOffset,
2129
2129
  top: n.topOffset,
@@ -2132,13 +2132,13 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2132
2132
  })), {
2133
2133
  rect: c,
2134
2134
  orientation: f,
2135
- reversed: b
2136
- } = Oo(s, a, o, r), g = k(() => ({
2135
+ reversed: x
2136
+ } = Oo(r, a, o, s), g = k(() => ({
2137
2137
  left: `${c.value.left}px`,
2138
2138
  top: `${c.value.top}px`,
2139
2139
  width: `${c.value.width}px`,
2140
2140
  height: `${c.value.height}px`
2141
- })), h = k(() => b.value ? {
2141
+ })), h = k(() => x.value ? {
2142
2142
  borderLeft: "1px solid var(--el-border-color)",
2143
2143
  borderRight: null
2144
2144
  } : {
@@ -2146,18 +2146,18 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2146
2146
  borderRight: "1px solid var(--el-border-color)"
2147
2147
  }), _ = () => {
2148
2148
  i.value = !1;
2149
- const y = s.value;
2149
+ const y = r.value;
2150
2150
  l("close", {
2151
2151
  x: y ? y.clientLeft : 0,
2152
2152
  y: y ? y.clientTop : 0
2153
2153
  });
2154
2154
  };
2155
2155
  return (y, S) => {
2156
- const $ = se;
2156
+ const V = se;
2157
2157
  return i.value ? (u(), w("div", {
2158
2158
  key: 0,
2159
2159
  ref_key: "toolPaletteElement",
2160
- ref: s,
2160
+ ref: r,
2161
2161
  style: pe([g.value]),
2162
2162
  class: "ml-tool-palette-dialog"
2163
2163
  }, [
@@ -2170,7 +2170,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2170
2170
  class: "ml-tool-palette-title-bar",
2171
2171
  style: pe(h.value)
2172
2172
  }, [
2173
- v($, {
2173
+ v(V, {
2174
2174
  size: 18,
2175
2175
  class: "ml-tool-palette-dialog-icon",
2176
2176
  onClick: _
@@ -2184,33 +2184,33 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2184
2184
  class: "ml-tool-palette-dialog-icon",
2185
2185
  modelValue: o.value,
2186
2186
  "onUpdate:modelValue": S[0] || (S[0] = (F) => o.value = F),
2187
- reverse: m(b)
2187
+ reverse: m(x)
2188
2188
  }, null, 8, ["modelValue", "reverse"]),
2189
2189
  d("span", Go, D(n.title), 1)
2190
2190
  ], 4),
2191
- d("div", Wo, [
2191
+ d("div", qo, [
2192
2192
  ie(y.$slots, "default", {}, void 0, !0)
2193
2193
  ])
2194
2194
  ], 2)
2195
2195
  ], 4)) : U("", !0);
2196
2196
  };
2197
2197
  }
2198
- }), Uo = /* @__PURE__ */ ue(qo, [["__scopeId", "data-v-11a64c54"]]), jo = { class: "ml-layer-list-cell" }, Yo = { class: "ml-layer-list-cell" }, Ko = /* @__PURE__ */ L({
2198
+ }), Uo = /* @__PURE__ */ ue(Wo, [["__scopeId", "data-v-11a64c54"]]), jo = { class: "ml-layer-list-cell" }, Yo = { class: "ml-layer-list-cell" }, Ko = /* @__PURE__ */ L({
2199
2199
  __name: "MlLayerList",
2200
2200
  props: {
2201
2201
  editor: {}
2202
2202
  },
2203
2203
  setup(t) {
2204
- const { t: e } = R(), n = t, i = gt(n.editor), l = x(), o = x([]), a = (r) => {
2205
- o.value = r;
2206
- }, s = (r) => {
2204
+ const { t: e } = R(), n = t, i = gt(n.editor), l = b(), o = b([]), a = (s) => {
2205
+ o.value = s;
2206
+ }, r = (s) => {
2207
2207
  const c = n.editor.curDocument.database.tables.layerTable.getAt(
2208
- r.name
2208
+ s.name
2209
2209
  );
2210
- c && (c.isOff = !r.isOn);
2210
+ c && (c.isOff = !s.isOn);
2211
2211
  };
2212
- return (r, c) => {
2213
- const f = M("el-table-column"), b = M("el-checkbox"), g = M("el-tag");
2212
+ return (s, c) => {
2213
+ const f = M("el-table-column"), x = M("el-checkbox"), g = M("el-tag");
2214
2214
  return u(), C(m(Ze), {
2215
2215
  ref_key: "multipleTableRef",
2216
2216
  ref: l,
@@ -2237,10 +2237,10 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2237
2237
  }, {
2238
2238
  default: p((h) => [
2239
2239
  d("div", jo, [
2240
- v(b, {
2240
+ v(x, {
2241
2241
  modelValue: h.row.isOn,
2242
2242
  "onUpdate:modelValue": (_) => h.row.isOn = _,
2243
- onChange: (_) => s(h.row)
2243
+ onChange: (_) => r(h.row)
2244
2244
  }, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
2245
2245
  ])
2246
2246
  ]),
@@ -2293,19 +2293,19 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2293
2293
  }), Zo = /* @__PURE__ */ H(Qo, [["__scopeId", "data-v-d49ba2cb"]]), Jo = { class: "autocomplete-container" }, el = /* @__PURE__ */ L({
2294
2294
  __name: "MlCommandLine",
2295
2295
  setup(t) {
2296
- const { t: e } = R(), n = ce(), i = dt(), l = x(""), o = x(""), a = (c, f) => {
2297
- const b = c ? i.filter(
2296
+ const { t: e } = R(), n = ce(), i = dt(), l = b(""), o = b(""), a = (c, f) => {
2297
+ const x = c ? i.filter(
2298
2298
  (g) => g.commandName.startsWith(c.toLowerCase())
2299
2299
  ) : i;
2300
- f(b);
2301
- }, s = () => {
2300
+ f(x);
2301
+ }, r = () => {
2302
2302
  l.value && (B.instance.sendStringToExecute(l.value), o.value = l.value, l.value = "");
2303
- }, r = (c, f) => `${f}: ${he(c, f)}`;
2303
+ }, s = (c, f) => `${f}: ${fe(c, f)}`;
2304
2304
  return (c, f) => (u(), w("div", Jo, [
2305
2305
  m(n).isShowCommandLine ? (u(), C(m(Je), {
2306
2306
  key: 0,
2307
2307
  modelValue: l.value,
2308
- "onUpdate:modelValue": f[0] || (f[0] = (b) => l.value = b),
2308
+ "onUpdate:modelValue": f[0] || (f[0] = (x) => l.value = x),
2309
2309
  "value-key": "commandName",
2310
2310
  clearable: "",
2311
2311
  "fetch-suggestions": a,
@@ -2313,12 +2313,12 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2313
2313
  debounce: 300,
2314
2314
  "trigger-on-focus": "",
2315
2315
  "fit-input-width": !1,
2316
- onSelect: s,
2317
- onKeydown: Ne(s, ["enter"]),
2316
+ onSelect: r,
2317
+ onKeydown: Ne(r, ["enter"]),
2318
2318
  class: "autocomplete-input"
2319
2319
  }, {
2320
- default: p(({ item: b }) => [
2321
- d("div", null, D(r(b.groupName, b.commandName)), 1)
2320
+ default: p(({ item: x }) => [
2321
+ d("div", null, D(s(x.groupName, x.commandName)), 1)
2322
2322
  ]),
2323
2323
  prepend: p(() => [
2324
2324
  I(D(`> ${o.value}`), 1)
@@ -2332,9 +2332,9 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2332
2332
  setup(t) {
2333
2333
  Ce((g) => ({
2334
2334
  "2d5cc4ca": a.value,
2335
- "11fa7d7e": s.value
2335
+ "11fa7d7e": r.value
2336
2336
  }));
2337
- const { t: e } = R(), n = x(!1), i = x(-1), l = x(-1), o = x(null), a = k(() => i.value + "px"), s = k(() => l.value + "px"), r = k(() => {
2337
+ 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
2338
  const g = B.instance.curDocument.database;
2339
2339
  if (o.value) {
2340
2340
  const h = g.tables.blockTable.modelSpace.getIdAt(o.value);
@@ -2352,20 +2352,20 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2352
2352
  layer: "",
2353
2353
  lineType: ""
2354
2354
  };
2355
- }), c = k(() => n.value && r.value.type != ""), f = (g) => {
2355
+ }), c = k(() => n.value && s.value.type != ""), f = (g) => {
2356
2356
  o.value = g.id, i.value = g.x, l.value = g.y, n.value = !0;
2357
- }, b = () => {
2357
+ }, x = () => {
2358
2358
  n.value = !1;
2359
2359
  };
2360
2360
  return N(() => {
2361
2361
  const g = B.instance.curView.events;
2362
- g.hover.addEventListener(f), g.unhover.addEventListener(b);
2362
+ g.hover.addEventListener(f), g.unhover.addEventListener(x);
2363
2363
  }), ee(() => {
2364
2364
  const g = B.instance.curView.events;
2365
- g.hover.removeEventListener(f), g.unhover.removeEventListener(b);
2365
+ g.hover.removeEventListener(f), g.unhover.removeEventListener(x);
2366
2366
  }), (g, h) => {
2367
- const _ = M("el-text"), y = M("el-col"), S = M("el-row"), $ = M("el-card");
2368
- return c.value ? (u(), C($, {
2367
+ const _ = M("el-text"), y = M("el-col"), S = M("el-row"), V = M("el-card");
2368
+ return c.value ? (u(), C(V, {
2369
2369
  key: 0,
2370
2370
  class: "ml-entity-info"
2371
2371
  }, {
@@ -2379,7 +2379,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2379
2379
  class: "ml-entity-info-title"
2380
2380
  }, {
2381
2381
  default: p(() => [
2382
- I(D(r.value.type), 1)
2382
+ I(D(s.value.type), 1)
2383
2383
  ]),
2384
2384
  _: 1
2385
2385
  })
@@ -2406,7 +2406,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2406
2406
  default: p(() => [
2407
2407
  v(_, { size: "small" }, {
2408
2408
  default: p(() => [
2409
- I(D(r.value.color), 1)
2409
+ I(D(s.value.color), 1)
2410
2410
  ]),
2411
2411
  _: 1
2412
2412
  })
@@ -2433,7 +2433,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2433
2433
  default: p(() => [
2434
2434
  v(_, { size: "small" }, {
2435
2435
  default: p(() => [
2436
- I(D(r.value.layer), 1)
2436
+ I(D(s.value.layer), 1)
2437
2437
  ]),
2438
2438
  _: 1
2439
2439
  })
@@ -2460,7 +2460,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2460
2460
  default: p(() => [
2461
2461
  v(_, { size: "small" }, {
2462
2462
  default: p(() => [
2463
- I(D(r.value.lineType), 1)
2463
+ I(D(s.value.lineType), 1)
2464
2464
  ]),
2465
2465
  _: 1
2466
2466
  })
@@ -2481,7 +2481,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2481
2481
  currentLocale: { default: void 0 }
2482
2482
  },
2483
2483
  setup(t) {
2484
- const e = t, { effectiveLocale: n, setLocale: i } = Ve(e.currentLocale), l = q([
2484
+ const e = t, { effectiveLocale: n, setLocale: i } = Ve(e.currentLocale), l = W([
2485
2485
  {
2486
2486
  name: "en",
2487
2487
  text: "English"
@@ -2493,7 +2493,7 @@ const No = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2493
2493
  ]), o = (a) => {
2494
2494
  (a === "en" || a === "zh") && i(a);
2495
2495
  };
2496
- return (a, s) => (u(), C(m(xo), {
2496
+ return (a, r) => (u(), C(m(xo), {
2497
2497
  class: "ml-language-selector",
2498
2498
  languages: l,
2499
2499
  current: m(n),
@@ -2605,17 +2605,17 @@ const wl = /* @__PURE__ */ L({
2605
2605
  __name: "MlMainMenu",
2606
2606
  setup(t) {
2607
2607
  const { t: e } = R(), n = (i) => {
2608
- i === "Convert" ? new Fe().tirgger(B.instance.context) : i === "QNew" ? new Pe().tirgger(B.instance.context) : i === "Open" && new Re().tirgger(B.instance.context);
2608
+ i === "Convert" ? new Ie().tirgger(B.instance.context) : i === "QNew" ? new Fe().tirgger(B.instance.context) : i === "Open" && new Pe().tirgger(B.instance.context);
2609
2609
  };
2610
2610
  return (i, l) => {
2611
- const o = M("el-icon"), a = M("el-dropdown-item"), s = M("el-dropdown-menu"), r = M("el-dropdown");
2612
- return u(), C(r, {
2611
+ const o = M("el-icon"), a = M("el-dropdown-item"), r = M("el-dropdown-menu"), s = M("el-dropdown");
2612
+ return u(), C(s, {
2613
2613
  "aria-hidden": "false",
2614
2614
  class: "ml-main-menu-container",
2615
2615
  onCommand: n
2616
2616
  }, {
2617
2617
  dropdown: p(() => [
2618
- v(s, null, {
2618
+ v(r, null, {
2619
2619
  default: p(() => [
2620
2620
  v(a, { command: "QNew" }, {
2621
2621
  default: p(() => [
@@ -2706,9 +2706,9 @@ const wl = /* @__PURE__ */ L({
2706
2706
  onTooltip: e("main.statusBar.fullScreen.on"),
2707
2707
  offTooltip: e("main.statusBar.fullScreen.off")
2708
2708
  })), o = k(() => !n.value);
2709
- return (a, s) => (u(), C(m(Ie), {
2709
+ return (a, r) => (u(), C(m(Ae), {
2710
2710
  modelValue: o.value,
2711
- "onUpdate:modelValue": s[0] || (s[0] = (r) => o.value = r),
2711
+ "onUpdate:modelValue": r[0] || (r[0] = (s) => o.value = s),
2712
2712
  data: l.value,
2713
2713
  onClick: m(i)
2714
2714
  }, null, 8, ["modelValue", "data", "onClick"]));
@@ -2729,7 +2729,7 @@ const wl = /* @__PURE__ */ L({
2729
2729
  v(o, {
2730
2730
  class: "ml-point-style-button",
2731
2731
  icon: m(ml),
2732
- onClick: l[0] || (l[0] = (s) => n())
2732
+ onClick: l[0] || (l[0] = (r) => n())
2733
2733
  }, null, 8, ["icon"])
2734
2734
  ]),
2735
2735
  _: 1
@@ -2742,28 +2742,28 @@ const wl = /* @__PURE__ */ L({
2742
2742
  }, Ll = /* @__PURE__ */ L({
2743
2743
  __name: "MlProgress",
2744
2744
  setup(t) {
2745
- const { t: e } = R(), n = x(0), i = x(!1), l = (a) => {
2745
+ const { t: e } = R(), n = b(0), i = b(!1), l = (a) => {
2746
2746
  if (a.stage === "CONVERSION") {
2747
- const s = ve.service({
2747
+ const r = we.service({
2748
2748
  lock: !0
2749
2749
  });
2750
2750
  if (a.subStage) {
2751
- const r = Dt(a.subStage);
2752
- s.setText(r);
2751
+ const s = Dt(a.subStage);
2752
+ r.setText(s);
2753
2753
  }
2754
- n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close(), B.instance.curView.zoomToFit());
2754
+ n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, r.close(), B.instance.curView.zoomToFit());
2755
2755
  } else if (a.stage === "FETCH_FILE") {
2756
- const s = ve.service({
2756
+ const r = we.service({
2757
2757
  lock: !0
2758
2758
  });
2759
- s.setText(e("main.message.fetchingDrawingFile")), n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, s.close());
2759
+ r.setText(e("main.message.fetchingDrawingFile")), n.value = a.percentage, n.value < 100 ? i.value = !0 : (i.value = !1, r.close());
2760
2760
  }
2761
2761
  }, o = (a) => `${a.toFixed(0)}%`;
2762
2762
  return N(() => {
2763
2763
  j.on("open-file-progress", l);
2764
2764
  }), ee(() => {
2765
2765
  j.off("open-file-progress", l);
2766
- }), (a, s) => i.value ? (u(), w("div", Cl, [
2766
+ }), (a, r) => i.value ? (u(), w("div", Cl, [
2767
2767
  v(m(et), {
2768
2768
  "text-inside": !0,
2769
2769
  "stroke-width": 20,
@@ -2779,7 +2779,7 @@ const wl = /* @__PURE__ */ L({
2779
2779
  l == "isShowCoordinate" ? (n.isShowCoordinate = !n.isShowCoordinate, Y.instance.isShowCoordinate = n.isShowCoordinate) : l == "isShowCommandLine" ? (n.isShowCommandLine = !n.isShowCommandLine, Y.instance.isShowCommandLine = n.isShowCommandLine) : l == "isShowToolbar" ? (n.isShowToolbar = !n.isShowToolbar, Y.instance.isShowToolbar = n.isShowToolbar) : l == "isShowStats" && (n.isShowStats = !n.isShowStats, Y.instance.isShowStats = n.isShowStats);
2780
2780
  };
2781
2781
  return (l, o) => {
2782
- const a = M("el-button"), s = M("el-dropdown-item"), r = M("el-dropdown-menu"), c = M("el-dropdown"), f = M("el-tooltip");
2782
+ const a = M("el-button"), r = M("el-dropdown-item"), s = M("el-dropdown-menu"), c = M("el-dropdown"), f = M("el-tooltip");
2783
2783
  return u(), C(f, {
2784
2784
  content: m(e)("main.statusBar.setting.tooltip"),
2785
2785
  "hide-after": 0
@@ -2790,9 +2790,9 @@ const wl = /* @__PURE__ */ L({
2790
2790
  onCommand: i
2791
2791
  }, {
2792
2792
  dropdown: p(() => [
2793
- v(r, null, {
2793
+ v(s, null, {
2794
2794
  default: p(() => [
2795
- v(s, {
2795
+ v(r, {
2796
2796
  icon: m(n).isShowStats ? m(le) : "",
2797
2797
  command: "isShowStats"
2798
2798
  }, {
@@ -2801,7 +2801,7 @@ const wl = /* @__PURE__ */ L({
2801
2801
  ]),
2802
2802
  _: 1
2803
2803
  }, 8, ["icon"]),
2804
- v(s, {
2804
+ v(r, {
2805
2805
  icon: m(n).isShowCommandLine ? m(le) : "",
2806
2806
  command: "isShowCommandLine"
2807
2807
  }, {
@@ -2810,7 +2810,7 @@ const wl = /* @__PURE__ */ L({
2810
2810
  ]),
2811
2811
  _: 1
2812
2812
  }, 8, ["icon"]),
2813
- v(s, {
2813
+ v(r, {
2814
2814
  icon: m(n).isShowCoordinate ? m(le) : "",
2815
2815
  command: "isShowCoordinate"
2816
2816
  }, {
@@ -2819,7 +2819,7 @@ const wl = /* @__PURE__ */ L({
2819
2819
  ]),
2820
2820
  _: 1
2821
2821
  }, 8, ["icon"]),
2822
- v(s, {
2822
+ v(r, {
2823
2823
  icon: m(n).isShowToolbar ? m(le) : "",
2824
2824
  command: "isShowToolbar"
2825
2825
  }, {
@@ -2854,7 +2854,7 @@ const wl = /* @__PURE__ */ L({
2854
2854
  onTooltip: e("main.statusBar.theme.light"),
2855
2855
  offTooltip: e("main.statusBar.theme.dark")
2856
2856
  }));
2857
- return (i, l) => (u(), C(m(Ie), {
2857
+ return (i, l) => (u(), C(m(Ae), {
2858
2858
  modelValue: m(ae),
2859
2859
  "onUpdate:modelValue": l[0] || (l[0] = (o) => He(ae) ? ae.value = o : null),
2860
2860
  data: n.value,
@@ -2866,33 +2866,33 @@ const wl = /* @__PURE__ */ L({
2866
2866
  setup(t) {
2867
2867
  const e = () => {
2868
2868
  B.instance.sendStringToExecute("md");
2869
- }, { fonts: n, images: i } = Ae(), l = k(() => i.size > 0 || n.size > 0);
2869
+ }, { fonts: n, images: i } = $e(), l = k(() => i.size > 0 || n.size > 0);
2870
2870
  return (o, a) => {
2871
- const s = M("el-button");
2872
- return l.value ? (u(), C(s, {
2871
+ const r = M("el-button");
2872
+ return l.value ? (u(), C(r, {
2873
2873
  key: 0,
2874
2874
  class: "ml-warning-button",
2875
2875
  type: "warning",
2876
2876
  icon: m(_l),
2877
- onClick: a[0] || (a[0] = (r) => e())
2877
+ onClick: a[0] || (a[0] = (s) => e())
2878
2878
  }, null, 8, ["icon"])) : U("", !0);
2879
2879
  };
2880
2880
  }
2881
- }), $l = /* @__PURE__ */ H(El, [["__scopeId", "data-v-3411a3ec"]]), Vl = /* @__PURE__ */ L({
2881
+ }), Vl = /* @__PURE__ */ H(El, [["__scopeId", "data-v-3411a3ec"]]), $l = /* @__PURE__ */ L({
2882
2882
  __name: "MlStatusBar",
2883
2883
  setup(t) {
2884
2884
  const { text: e } = mt(B.instance.curView), n = ft(B.instance), i = ce(), l = (o) => {
2885
- Ee().layoutManager.setCurrentLayoutBtrId(
2885
+ Te().layoutManager.setCurrentLayoutBtrId(
2886
2886
  o.blockTableRecordId
2887
2887
  );
2888
2888
  };
2889
2889
  return (o, a) => {
2890
- const s = M("el-button"), r = M("el-button-group");
2890
+ const r = M("el-button"), s = M("el-button-group");
2891
2891
  return u(), C(m(zo), { class: "ml-status-bar" }, {
2892
2892
  left: p(() => [
2893
- v(r, { class: "ml-status-bar-left-button-group" }, {
2893
+ v(s, { class: "ml-status-bar-left-button-group" }, {
2894
2894
  default: p(() => [
2895
- (u(!0), w(K, null, X(m(n), (c) => (u(), C(s, {
2895
+ (u(!0), w(K, null, X(m(n), (c) => (u(), C(r, {
2896
2896
  class: "ml-status-bar-layout-button",
2897
2897
  key: c.name,
2898
2898
  type: c.isActive ? "primary" : "",
@@ -2909,9 +2909,9 @@ const wl = /* @__PURE__ */ L({
2909
2909
  ]),
2910
2910
  right: p(() => [
2911
2911
  v(zl),
2912
- v(r, { class: "ml-status-bar-right-button-group" }, {
2912
+ v(s, { class: "ml-status-bar-right-button-group" }, {
2913
2913
  default: p(() => [
2914
- m(i).isShowCoordinate ? (u(), C(s, {
2914
+ m(i).isShowCoordinate ? (u(), C(r, {
2915
2915
  key: 0,
2916
2916
  class: "ml-status-bar-current-pos"
2917
2917
  }, {
@@ -2920,7 +2920,7 @@ const wl = /* @__PURE__ */ L({
2920
2920
  ]),
2921
2921
  _: 1
2922
2922
  })) : U("", !0),
2923
- v($l),
2923
+ v(Vl),
2924
2924
  v(Tl),
2925
2925
  v(kl),
2926
2926
  v(Sl),
@@ -2933,48 +2933,30 @@ const wl = /* @__PURE__ */ L({
2933
2933
  });
2934
2934
  };
2935
2935
  }
2936
- }), Al = /* @__PURE__ */ H(Vl, [["__scopeId", "data-v-ee6f13c4"]]), Il = { class: "ml-file-name" }, da = /* @__PURE__ */ L({
2936
+ }), Al = /* @__PURE__ */ H($l, [["__scopeId", "data-v-ee6f13c4"]]), Il = { class: "ml-file-name" }, da = /* @__PURE__ */ L({
2937
2937
  __name: "MlCadViewer",
2938
2938
  props: {
2939
2939
  locale: { default: "default" },
2940
2940
  url: { default: void 0 },
2941
2941
  wait: { default: 10 },
2942
- canvasId: {}
2942
+ canvasId: {},
2943
+ background: { default: void 0 }
2943
2944
  },
2944
2945
  setup(t) {
2945
2946
  const e = t;
2946
2947
  Rl(e.canvasId);
2947
- const n = () => e.wait <= 0 ? Promise.resolve() : new Promise((r) => {
2948
- const c = ve.service({
2949
- lock: !0,
2950
- text: i("main.message.loadingDwgConverter")
2951
- }), f = () => Te.instance.get(
2952
- Ge.DWG
2953
- ) ? (c.close(), r(), !0) : !1;
2954
- if (f())
2955
- return;
2956
- let b = 0;
2957
- const g = Math.floor(e.wait * 2), h = setInterval(() => {
2958
- if (b++, f()) {
2959
- clearInterval(h);
2960
- return;
2961
- }
2962
- b >= g && (console.warn(
2963
- `DWG converter loading timeout after ${e.wait} seconds - proceeding anyway`
2964
- ), c.close(), clearInterval(h), r());
2965
- }, 500);
2966
- }), { t: i } = R(), { effectiveLocale: l, elementPlusLocale: o } = Ve(e.locale), a = async (r, c) => {
2967
- const f = { minimumChunkSize: 1e3 };
2968
- await B.instance.openDocument(r, c, f), Q.fileName = r;
2969
- }, s = async (r) => {
2948
+ const { t: n } = R(), { effectiveLocale: i, elementPlusLocale: l } = Ve(e.locale), o = async (r, s) => {
2949
+ const c = { minimumChunkSize: 1e3 };
2950
+ await B.instance.openDocument(r, s, c), Q.fileName = r;
2951
+ }, a = async (r) => {
2970
2952
  try {
2971
- const c = { minimumChunkSize: 1e3 };
2972
- await B.instance.openUrl(r, c);
2973
- const f = r.split("/").pop();
2974
- Q.fileName = f ?? "";
2975
- } catch (c) {
2976
- console.error("Failed to open file from URL:", c), te({
2977
- message: i("main.message.failedToOpenFile", { fileName: r }),
2953
+ const s = { minimumChunkSize: 1e3 };
2954
+ await B.instance.openUrl(r, s);
2955
+ const c = r.split("/").pop();
2956
+ Q.fileName = c ?? "";
2957
+ } catch (s) {
2958
+ console.error("Failed to open file from URL:", s), te({
2959
+ message: n("main.message.failedToOpenFile", { fileName: r }),
2978
2960
  grouping: !0,
2979
2961
  type: "error",
2980
2962
  showClose: !0
@@ -2984,10 +2966,15 @@ const wl = /* @__PURE__ */ L({
2984
2966
  return E(
2985
2967
  () => e.url,
2986
2968
  async (r) => {
2987
- r && (await n(), s(r));
2969
+ r && a(r);
2970
+ }
2971
+ ), E(
2972
+ () => e.background,
2973
+ (r) => {
2974
+ r != null && (B.instance.curView.backgroundColor = r);
2988
2975
  }
2989
2976
  ), N(async () => {
2990
- await n(), e.url && s(e.url);
2977
+ e.url && a(e.url), e.background != null && (B.instance.curView.backgroundColor = e.background);
2991
2978
  }), j.on("message", (r) => {
2992
2979
  te({
2993
2980
  message: r.message,
@@ -2997,7 +2984,7 @@ const wl = /* @__PURE__ */ L({
2997
2984
  });
2998
2985
  }), j.on("font-not-loaded", (r) => {
2999
2986
  te({
3000
- message: i("main.message.fontNotLoaded", {
2987
+ message: n("main.message.fontNotLoaded", {
3001
2988
  fontName: r.fontName,
3002
2989
  url: r.url
3003
2990
  }),
@@ -3007,26 +2994,26 @@ const wl = /* @__PURE__ */ L({
3007
2994
  });
3008
2995
  }), j.on("failed-to-get-avaiable-fonts", (r) => {
3009
2996
  te({
3010
- message: i("main.message.failedToGetAvaiableFonts", { url: r.url }),
2997
+ message: n("main.message.failedToGetAvaiableFonts", { url: r.url }),
3011
2998
  grouping: !0,
3012
2999
  type: "error",
3013
3000
  showClose: !0
3014
3001
  });
3015
3002
  }), j.on("failed-to-open-file", (r) => {
3016
3003
  te({
3017
- message: i("main.message.failedToOpenFile", { fileName: r.fileName }),
3004
+ message: n("main.message.failedToOpenFile", { fileName: r.fileName }),
3018
3005
  grouping: !0,
3019
3006
  type: "error",
3020
3007
  showClose: !0
3021
3008
  });
3022
- }), Pl(), (r, c) => {
3023
- const f = M("el-config-provider");
3009
+ }), Pl(), (r, s) => {
3010
+ const c = M("el-config-provider");
3024
3011
  return u(), w("div", null, [
3025
- v(f, { locale: m(o) }, {
3012
+ v(c, { locale: m(l) }, {
3026
3013
  default: p(() => [
3027
3014
  d("header", null, [
3028
3015
  v(m(yl)),
3029
- v(m(al), { "current-locale": m(l) }, null, 8, ["current-locale"])
3016
+ v(m(al), { "current-locale": m(i) }, null, 8, ["current-locale"])
3030
3017
  ]),
3031
3018
  d("main", null, [
3032
3019
  d("div", Il, D(m(Q).fileName), 1),
@@ -3040,7 +3027,7 @@ const wl = /* @__PURE__ */ L({
3040
3027
  v(m(tl)),
3041
3028
  v(m(Al))
3042
3029
  ]),
3043
- v(m($t), { onFileRead: a }),
3030
+ v(m(Vt), { onFileRead: o }),
3044
3031
  v(m(ol))
3045
3032
  ]),
3046
3033
  _: 1
@@ -3049,23 +3036,23 @@ const wl = /* @__PURE__ */ L({
3049
3036
  };
3050
3037
  }
3051
3038
  }), { registerDialog: Se } = oe(), Fl = () => {
3052
- W.instance.addCommand(
3053
- W.SYSTEMT_COMMAND_GROUP_NAME,
3039
+ q.instance.addCommand(
3040
+ q.SYSTEMT_COMMAND_GROUP_NAME,
3054
3041
  "log",
3055
3042
  "log",
3056
3043
  new Nl()
3057
- ), W.instance.addCommand(
3058
- W.SYSTEMT_COMMAND_GROUP_NAME,
3044
+ ), q.instance.addCommand(
3045
+ q.SYSTEMT_COMMAND_GROUP_NAME,
3059
3046
  "la",
3060
3047
  "la",
3061
3048
  new Ol()
3062
- ), W.instance.addCommand(
3063
- W.SYSTEMT_COMMAND_GROUP_NAME,
3049
+ ), q.instance.addCommand(
3050
+ q.SYSTEMT_COMMAND_GROUP_NAME,
3064
3051
  "md",
3065
3052
  "md",
3066
3053
  new Hl()
3067
- ), W.instance.addCommand(
3068
- W.SYSTEMT_COMMAND_GROUP_NAME,
3054
+ ), q.instance.addCommand(
3055
+ q.SYSTEMT_COMMAND_GROUP_NAME,
3069
3056
  "pttype",
3070
3057
  "pttype",
3071
3058
  new Gl()
@@ -3073,17 +3060,17 @@ const wl = /* @__PURE__ */ L({
3073
3060
  }, Pl = () => {
3074
3061
  Se({
3075
3062
  name: "ReplacementDlg",
3076
- component: _e(At),
3063
+ component: he(At),
3077
3064
  props: {}
3078
3065
  }), Se({
3079
3066
  name: "PointStyleDlg",
3080
- component: _e(io),
3067
+ component: he(io),
3081
3068
  props: {}
3082
3069
  });
3083
3070
  }, Rl = (t) => {
3084
3071
  const e = document.getElementById(t);
3085
- B.createInstance(e), Fl(), B.instance.loadDefaultFonts();
3086
- }, Q = q({
3072
+ B.createInstance(e), Re(), Fl(), B.instance.loadDefaultFonts();
3073
+ }, Q = W({
3087
3074
  fileName: "",
3088
3075
  dialogs: {
3089
3076
  layerManager: !1
@@ -3110,20 +3097,20 @@ class Nl extends re {
3110
3097
  console.log("Geometry information in current drawing:");
3111
3098
  for (let i = 0; i < n.length; ++i) {
3112
3099
  console.group(`Layout: ${i}`);
3113
- const l = n[i], o = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], s = l.layers.map((r) => (o[0] = r.line.indexed.geometrySize / 1024, o[1] = r.line.nonIndexed.geometrySize / 1024, o[2] = r.mesh.indexed.geometrySize / 1024, o[3] = r.mesh.nonIndexed.geometrySize / 1024, o[4] = r.point.indexed.geometrySize / 1024, o[5] = r.point.nonIndexed.geometrySize / 1024, a[0] += o[0], a[1] += o[1], a[2] += o[2], a[3] += o[3], a[4] += o[4], a[5] += o[5], {
3114
- name: r.name,
3100
+ const l = n[i], o = [0, 0, 0, 0, 0, 0], a = [0, 0, 0, 0, 0, 0], r = l.layers.map((s) => (o[0] = s.line.indexed.geometrySize / 1024, o[1] = s.line.nonIndexed.geometrySize / 1024, o[2] = s.mesh.indexed.geometrySize / 1024, o[3] = s.mesh.nonIndexed.geometrySize / 1024, o[4] = s.point.indexed.geometrySize / 1024, o[5] = s.point.nonIndexed.geometrySize / 1024, a[0] += o[0], a[1] += o[1], a[2] += o[2], a[3] += o[3], a[4] += o[4], a[5] += o[5], {
3101
+ name: s.name,
3115
3102
  "idx line (KB)": o[0].toFixed(1),
3116
3103
  "line (KB)": o[1].toFixed(1),
3117
3104
  "idx mesh (KB)": o[2].toFixed(1),
3118
3105
  "mesh (KB)": o[3].toFixed(1),
3119
3106
  "idx point (KB)": o[4].toFixed(1),
3120
3107
  "point (KB)": o[5].toFixed(1),
3121
- "total geo (KB)": (r.summary.totalGeometrySize / 1024).toFixed(1),
3122
- "total mapping (KB)": (r.summary.totalMappingSize / 1024).toFixed(
3108
+ "total geo (KB)": (s.summary.totalGeometrySize / 1024).toFixed(1),
3109
+ "total mapping (KB)": (s.summary.totalMappingSize / 1024).toFixed(
3123
3110
  1
3124
3111
  )
3125
3112
  }));
3126
- s.push({
3113
+ r.push({
3127
3114
  name: "total",
3128
3115
  "idx line (KB)": a[0].toFixed(1),
3129
3116
  "line (KB)": a[1].toFixed(1),
@@ -3135,11 +3122,11 @@ class Nl extends re {
3135
3122
  "total mapping (KB)": (l.summary.totalSize.mapping / 1024).toFixed(
3136
3123
  1
3137
3124
  )
3138
- }), console.table(s), console.groupEnd();
3125
+ }), console.table(r), console.groupEnd();
3139
3126
  }
3140
3127
  }
3141
3128
  printPerformanceData() {
3142
- We.getInstance().printAll();
3129
+ qe.getInstance().printAll();
3143
3130
  }
3144
3131
  }
3145
3132
  class Hl extends re {
@@ -3159,21 +3146,21 @@ export {
3159
3146
  Nl as AcApLogCmd,
3160
3147
  Hl as AcApMissedDataCmd,
3161
3148
  Gl as AcApPointStyleCmd,
3162
- $e as MlBaseDialog,
3149
+ Ee as MlBaseDialog,
3163
3150
  da as MlCadViewer,
3164
3151
  tl as MlCommandLine,
3165
3152
  Tt as MlDialogManager,
3166
3153
  ol as MlEntityInfo,
3167
- $t as MlFileReader,
3154
+ Vt as MlFileReader,
3168
3155
  al as MlLanguageSelector,
3169
3156
  Zo as MlLayerManager,
3170
3157
  yl as MlMainMenu,
3171
3158
  io as MlPointStyleDlg,
3172
3159
  At as MlReplacementDlg,
3173
3160
  Al as MlStatusBar,
3174
- Ie as MlToggleButton,
3161
+ Ae as MlToggleButton,
3175
3162
  xl as MlToolBars,
3176
- he as cmdDescription,
3163
+ fe as cmdDescription,
3177
3164
  zt as colorName,
3178
3165
  Dt as conversionSubStageName,
3179
3166
  Lt as entityName,
@@ -3188,7 +3175,7 @@ export {
3188
3175
  gt as useLayers,
3189
3176
  ft as useLayouts,
3190
3177
  Ve as useLocale,
3191
- Ae as useMissedData,
3178
+ $e as useMissedData,
3192
3179
  ce as useSettings,
3193
3180
  Bt as useSystemVars,
3194
3181
  ua as userCmdDescription