@mlightcad/cad-viewer 1.0.18 → 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.
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app/app.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAA;AACpC,OAAO,oBAAoB,CAAA;AAC3B,OAAO,qBAAqB,CAAA;AAS5B,eAAO,MAAM,mBAAmB,GAAI,WAAW,MAAM,SAMpD,CAAA"}
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app/app.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAA;AACpC,OAAO,oBAAoB,CAAA;AAC3B,OAAO,qBAAqB,CAAA;AAM5B,eAAO,MAAM,mBAAmB,GAAI,WAAW,MAAM,SAKpD,CAAA"}
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./index.css";
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";
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 W, 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 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 Ne, 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 Oe, 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";
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 = W([]);
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
  }
@@ -85,17 +85,17 @@ const ut = /* @__PURE__ */ L({
85
85
  }, {
86
86
  header: p(() => [
87
87
  d("div", null, D(t.title), 1),
88
- v(f, { class: "ml-dialog-header-bottom-line" })
88
+ g(f, { class: "ml-dialog-header-bottom-line" })
89
89
  ]),
90
90
  footer: p(() => [
91
- v(f, { class: "ml-dialog-footer-top-line" }),
92
- v(m(_e), { onClick: r }, {
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
- v(m(_e), {
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 = W([]), e = q.instance.iterator();
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,
@@ -150,8 +150,8 @@ function mt(t) {
150
150
  const l = k(() => `${ye(e.value)}, ${ye(n.value)}`);
151
151
  return { x: e, y: n, text: l };
152
152
  }
153
- const ae = We(), pt = Ue(ae);
154
- function vt() {
153
+ const ae = qe(), pt = Ue(ae);
154
+ function gt() {
155
155
  const t = b(/* @__PURE__ */ new Set()), e = Ge.instance;
156
156
  for (const n of e.fileTypes)
157
157
  t.value.add(n);
@@ -159,8 +159,8 @@ function vt() {
159
159
  t.value.add(n.fileType);
160
160
  }), t;
161
161
  }
162
- function gt(t) {
163
- const e = W([]), n = t.curDocument, i = (l) => {
162
+ function vt(t) {
163
+ const e = q([]), n = t.curDocument, i = (l) => {
164
164
  const o = l.tables.layerTable.newIterator();
165
165
  for (const a of o)
166
166
  e.push({
@@ -190,7 +190,7 @@ function gt(t) {
190
190
  }), e;
191
191
  }
192
192
  function ft(t) {
193
- const e = W([]), n = t.curDocument, i = (l) => {
193
+ const e = q([]), n = t.curDocument, i = (l) => {
194
194
  const o = l.dictionaries.layouts.newIterator();
195
195
  e.length = 0;
196
196
  for (const a of o)
@@ -839,7 +839,7 @@ const ht = {
839
839
  }), fe = (t, e) => {
840
840
  const n = J.global.t, i = `command.${t}.${e}`;
841
841
  return n(i, "");
842
- }, ca = (t) => fe(q.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => fe(q.DEFAUT_COMMAND_GROUP_NAME, t), Lt = (t) => {
842
+ }, ca = (t) => fe(W.SYSTEMT_COMMAND_GROUP_NAME, t), ua = (t) => fe(W.DEFAUT_COMMAND_GROUP_NAME, t), Lt = (t) => {
843
843
  const e = J.global.t, n = "entity.entityName." + t.type;
844
844
  return e(n, t.type, { missingWarn: !1 });
845
845
  }, zt = (t) => {
@@ -888,7 +888,7 @@ function $e(t) {
888
888
  };
889
889
  }
890
890
  function Ve() {
891
- const t = W(/* @__PURE__ */ new Map()), e = W(/* @__PURE__ */ new Map()), n = () => {
891
+ const t = q(/* @__PURE__ */ new Map()), e = q(/* @__PURE__ */ new Map()), n = () => {
892
892
  const i = B.instance.curView.missedData, l = Y.instance.fontMapping;
893
893
  t.clear(), Object.keys(i.fonts).forEach((o) => {
894
894
  const a = l[o];
@@ -911,7 +911,7 @@ function Ve() {
911
911
  };
912
912
  }
913
913
  function ce() {
914
- const t = W(
914
+ const t = q(
915
915
  Y.instance.settings
916
916
  );
917
917
  return Y.instance.events.modified.addEventListener((e) => {
@@ -919,7 +919,7 @@ function ce() {
919
919
  }), t;
920
920
  }
921
921
  function Bt(t) {
922
- const e = W({}), n = t.curDocument, i = (l) => {
922
+ const e = q({}), n = t.curDocument, i = (l) => {
923
923
  e.pdmode = l.pdmode, e.pdmode = l.pdsize;
924
924
  };
925
925
  return i(n.database), n.database.events.headerSysVarChanged.addEventListener((l) => {
@@ -938,7 +938,7 @@ const Tt = /* @__PURE__ */ L({
938
938
  }), (o, a) => (u(!0), w(K, null, X(m(n), (r) => (u(), w("div", {
939
939
  key: r.name
940
940
  }, [
941
- (u(), C(ve(r.component), Ne({
941
+ (u(), C(ge(r.component), Ne({
942
942
  modelValue: r.visible,
943
943
  "onUpdate:modelValue": (s) => r.visible = s
944
944
  }, { ref_for: !0 }, r.props), null, 16, ["modelValue", "onUpdate:modelValue"]))
@@ -948,7 +948,7 @@ const Tt = /* @__PURE__ */ L({
948
948
  __name: "MlFileReader",
949
949
  emits: ["file-read"],
950
950
  setup(t, { emit: e }) {
951
- const n = e, i = b(null), l = vt(), o = k(() => {
951
+ const n = e, i = b(null), l = gt(), o = k(() => {
952
952
  const r = Array.from(l.value);
953
953
  let s = "";
954
954
  for (let c = 0, f = r.length; c < f; ++c)
@@ -965,8 +965,8 @@ const Tt = /* @__PURE__ */ L({
965
965
  var f, x;
966
966
  const c = (f = r.target.files) == null ? void 0 : f[0];
967
967
  if (c && c.name) {
968
- const g = (x = c.name.split(".").pop()) == null ? void 0 : x.toLocaleLowerCase(), h = new FileReader();
969
- g == "dxf" ? h.readAsText(c) : g == "dwg" && h.readAsArrayBuffer(c), h.onload = (_) => {
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 = (_) => {
970
970
  var S;
971
971
  const y = (S = _.target) == null ? void 0 : S.result;
972
972
  y && n("file-read", c.name, y);
@@ -998,17 +998,17 @@ const Tt = /* @__PURE__ */ L({
998
998
  Ce((c) => ({
999
999
  a97b120a: a.value
1000
1000
  }));
1001
- const n = t, i = ge(t, "modelValue"), l = e, o = k(() => i.value ? n.data.onIcon : n.data.offIcon), a = k(() => n.size + "px"), r = k(() => i.value ? n.data.onTooltip : n.data.offTooltip), s = () => {
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 = () => {
1002
1002
  l("click", i.value);
1003
1003
  };
1004
1004
  return (c, f) => {
1005
- const x = M("el-button"), g = M("el-tooltip");
1006
- return u(), C(g, {
1005
+ const x = M("el-button"), v = M("el-tooltip");
1006
+ return u(), C(v, {
1007
1007
  content: r.value,
1008
1008
  "hide-after": 0
1009
1009
  }, {
1010
1010
  default: p(() => [
1011
- v(x, {
1011
+ g(x, {
1012
1012
  class: "ml-toggle-button",
1013
1013
  icon: o.value,
1014
1014
  onClick: s
@@ -1022,10 +1022,10 @@ const Tt = /* @__PURE__ */ L({
1022
1022
  __name: "MlReplacementDlg",
1023
1023
  setup(t) {
1024
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 g = B.instance.curDocument.database;
1025
+ const v = B.instance.curDocument.database;
1026
1026
  i.forEach((_) => {
1027
1027
  _.file && _.ids.forEach((y) => {
1028
- const S = g.tables.blockTable.modelSpace.getIdAt(
1028
+ const S = v.tables.blockTable.modelSpace.getIdAt(
1029
1029
  y
1030
1030
  );
1031
1031
  S.image = _.file, S.triggerModifiedEvent();
@@ -1035,18 +1035,18 @@ const Tt = /* @__PURE__ */ L({
1035
1035
  n.forEach((_, y) => {
1036
1036
  y && _ && h.setFontMapping(y, _);
1037
1037
  });
1038
- }, c = (g) => {
1038
+ }, c = (v) => {
1039
1039
  a.value && (a.value.click(), a.value.onchange = () => {
1040
- f(g);
1040
+ f(v);
1041
1041
  });
1042
- }, f = (g) => {
1042
+ }, f = (v) => {
1043
1043
  var _, y;
1044
1044
  const h = (y = (_ = a.value) == null ? void 0 : _.files) == null ? void 0 : y[0];
1045
- h && (g.file = h);
1046
- }, x = (g, h) => {
1047
- n.set(g, h);
1045
+ h && (v.file = h);
1046
+ }, x = (v, h) => {
1047
+ n.set(v, h);
1048
1048
  };
1049
- return (g, h) => {
1049
+ return (v, h) => {
1050
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");
1051
1051
  return u(), C(Ee, {
1052
1052
  title: m(e)("dialog.replacementDlg.title"),
@@ -1056,7 +1056,7 @@ const Tt = /* @__PURE__ */ L({
1056
1056
  onOk: s
1057
1057
  }, {
1058
1058
  default: p(() => [
1059
- v(P, {
1059
+ g(P, {
1060
1060
  type: "card",
1061
1061
  modelValue: o.value,
1062
1062
  "onUpdate:modelValue": h[0] || (h[0] = (z) => o.value = z)
@@ -1069,15 +1069,15 @@ const Tt = /* @__PURE__ */ L({
1069
1069
  }, {
1070
1070
  default: p(() => [
1071
1071
  d("div", null, [
1072
- v(y, null, {
1072
+ g(y, null, {
1073
1073
  default: p(() => [
1074
- v(_, { span: 12 }, {
1074
+ g(_, { span: 12 }, {
1075
1075
  default: p(() => [
1076
1076
  d("span", null, D(m(e)("dialog.replacementDlg.missedFont")), 1)
1077
1077
  ]),
1078
1078
  _: 1
1079
1079
  }),
1080
- v(_, { span: 12 }, {
1080
+ g(_, { span: 12 }, {
1081
1081
  default: p(() => [
1082
1082
  d("span", null, D(m(e)("dialog.replacementDlg.replacedFont")), 1)
1083
1083
  ]),
@@ -1091,15 +1091,15 @@ const Tt = /* @__PURE__ */ L({
1091
1091
  style: { "margin-top": "10px" }
1092
1092
  }, {
1093
1093
  default: p(() => [
1094
- v(_, { span: 12 }, {
1094
+ g(_, { span: 12 }, {
1095
1095
  default: p(() => [
1096
1096
  d("span", null, D(z), 1)
1097
1097
  ]),
1098
1098
  _: 2
1099
1099
  }, 1024),
1100
- v(_, { span: 12 }, {
1100
+ g(_, { span: 12 }, {
1101
1101
  default: p(() => [
1102
- v($, {
1102
+ g($, {
1103
1103
  "model-value": A,
1104
1104
  placeholder: m(e)("dialog.replacementDlg.selectFont"),
1105
1105
  "onUpdate:modelValue": (N) => x(z, N),
@@ -1130,25 +1130,25 @@ const Tt = /* @__PURE__ */ L({
1130
1130
  name: "image"
1131
1131
  }, {
1132
1132
  default: p(() => [
1133
- v(G, {
1133
+ g(G, {
1134
1134
  data: Array.from(m(i).values()),
1135
1135
  style: { width: "100%" },
1136
1136
  "v-show": !1
1137
1137
  }, {
1138
1138
  default: p(() => [
1139
- v(V, {
1139
+ g(V, {
1140
1140
  label: m(e)("dialog.replacementDlg.file"),
1141
1141
  prop: "fileName",
1142
1142
  "min-width": 0,
1143
1143
  flex: 1
1144
1144
  }, null, 8, ["label"]),
1145
- v(V, {
1145
+ g(V, {
1146
1146
  label: m(e)("dialog.replacementDlg.replace"),
1147
1147
  fixed: "right",
1148
1148
  width: "60"
1149
1149
  }, {
1150
1150
  default: p(({ row: z }) => [
1151
- v(T, {
1151
+ g(T, {
1152
1152
  link: "",
1153
1153
  type: "primary",
1154
1154
  size: "small",
@@ -1236,21 +1236,21 @@ function Ht(t, e) {
1236
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)
1237
1237
  ]));
1238
1238
  }
1239
- const Gt = { render: Ht }, qt = {
1239
+ const Gt = { render: Ht }, Wt = {
1240
1240
  xmlns: "http://www.w3.org/2000/svg",
1241
1241
  width: "1em",
1242
1242
  height: "1em",
1243
1243
  viewBox: "0 0 20 20"
1244
1244
  };
1245
- function Wt(t, e) {
1246
- return u(), w("svg", qt, e[0] || (e[0] = [
1245
+ function qt(t, e) {
1246
+ return u(), w("svg", Wt, e[0] || (e[0] = [
1247
1247
  d("path", {
1248
1248
  fill: "currentColor",
1249
1249
  d: "M10.438 15.298h.002l4.86-4.86-9.722-4.86zM18 10l-3.434 3.434 3.2 3.2-1.132 1.132-3.2-3.2L10 18 2.4 2.4z"
1250
1250
  }, null, -1)
1251
1251
  ]));
1252
1252
  }
1253
- const Ut = { render: Wt }, jt = {
1253
+ const Ut = { render: qt }, jt = {
1254
1254
  xmlns: "http://www.w3.org/2000/svg",
1255
1255
  width: "1em",
1256
1256
  height: "1em",
@@ -1333,14 +1333,14 @@ function pn(t, e) {
1333
1333
  d("path", { d: "M9.5 2.04h1v8h-1z" }, null, -1)
1334
1334
  ]));
1335
1335
  }
1336
- const vn = { render: pn }, gn = {
1336
+ const gn = { render: pn }, vn = {
1337
1337
  xmlns: "http://www.w3.org/2000/svg",
1338
1338
  width: "1em",
1339
1339
  height: "1em",
1340
1340
  viewBox: "0 0 20 20"
1341
1341
  };
1342
1342
  function fn(t, e) {
1343
- return u(), w("svg", gn, e[0] || (e[0] = [
1343
+ return u(), w("svg", vn, e[0] || (e[0] = [
1344
1344
  d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1345
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)
1346
1346
  ]));
@@ -1455,14 +1455,14 @@ function Gn(t, e) {
1455
1455
  d("path", { d: "M9.5 6.04h1v5h-1z" }, null, -1)
1456
1456
  ]));
1457
1457
  }
1458
- const qn = { render: Gn }, Wn = {
1458
+ const Wn = { render: Gn }, qn = {
1459
1459
  xmlns: "http://www.w3.org/2000/svg",
1460
1460
  width: "1em",
1461
1461
  height: "1em",
1462
1462
  viewBox: "0 0 20 20"
1463
1463
  };
1464
1464
  function Un(t, e) {
1465
- return u(), w("svg", Wn, e[0] || (e[0] = [
1465
+ return u(), w("svg", qn, e[0] || (e[0] = [
1466
1466
  d("path", { d: "M17 3.08v14H3v-14zm1-1H2v16h16z" }, null, -1),
1467
1467
  d("path", { d: "M9.5 9.54h1v1h-1z" }, null, -1),
1468
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)
@@ -1530,7 +1530,7 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
1530
1530
  { id: 1, icon: ln },
1531
1531
  { id: 2, icon: sn },
1532
1532
  { id: 3, icon: dn },
1533
- { id: 4, icon: vn }
1533
+ { id: 4, icon: gn }
1534
1534
  ],
1535
1535
  [
1536
1536
  { id: 32, icon: hn },
@@ -1544,7 +1544,7 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
1544
1544
  { id: 65, icon: An },
1545
1545
  { id: 66, icon: Pn },
1546
1546
  { id: 67, icon: On },
1547
- { id: 68, icon: qn }
1547
+ { id: 68, icon: Wn }
1548
1548
  ],
1549
1549
  [
1550
1550
  { id: 96, icon: jn },
@@ -1557,26 +1557,26 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
1557
1557
  n.pdmode && (l.value = n.pdmode);
1558
1558
  };
1559
1559
  a();
1560
- const r = (x, g) => o[x][g].id == l.value ? "primary" : null, s = (x, g) => {
1561
- l.value = o[x][g].id;
1560
+ const r = (x, v) => o[x][v].id == l.value ? "primary" : null, s = (x, v) => {
1561
+ l.value = o[x][v].id;
1562
1562
  }, c = () => {
1563
1563
  B.instance.curDocument.database.pdmode = l.value;
1564
1564
  }, f = () => {
1565
1565
  a();
1566
1566
  };
1567
- return (x, g) => {
1567
+ return (x, v) => {
1568
1568
  const h = M("el-button"), _ = M("el-col"), y = M("el-row");
1569
1569
  return u(), C(Ee, {
1570
1570
  title: m(e)("dialog.pointStyleDlg.title"),
1571
1571
  width: 400,
1572
1572
  modelValue: i.value,
1573
- "onUpdate:modelValue": g[0] || (g[0] = (S) => i.value = S),
1573
+ "onUpdate:modelValue": v[0] || (v[0] = (S) => i.value = S),
1574
1574
  name: "PointStyleDlg",
1575
1575
  onOk: c,
1576
1576
  onCancel: f
1577
1577
  }, {
1578
1578
  default: p(() => [
1579
- (u(), w(K, null, X(o, (S, $) => v(y, {
1579
+ (u(), w(K, null, X(o, (S, $) => g(y, {
1580
1580
  key: $,
1581
1581
  style: { "margin-top": "10px" },
1582
1582
  gutter: 6,
@@ -1588,7 +1588,7 @@ const ao = { render: lo }, io = /* @__PURE__ */ L({
1588
1588
  span: 4
1589
1589
  }, {
1590
1590
  default: p(() => [
1591
- v(h, {
1591
+ g(h, {
1592
1592
  icon: F.icon,
1593
1593
  type: r($, V),
1594
1594
  onClick: (T) => s($, V),
@@ -1638,13 +1638,13 @@ const xe = { render: uo }, mo = {
1638
1638
  }, po = /* @__PURE__ */ d("path", {
1639
1639
  fill: "currentColor",
1640
1640
  d: "M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
1641
- }, null, -1), vo = [
1641
+ }, null, -1), go = [
1642
1642
  po
1643
1643
  ];
1644
- function go(t, e) {
1645
- return u(), w("svg", mo, [...vo]);
1644
+ function vo(t, e) {
1645
+ return u(), w("svg", mo, [...go]);
1646
1646
  }
1647
- const ke = { render: go }, fo = /* @__PURE__ */ L({
1647
+ const ke = { render: vo }, fo = /* @__PURE__ */ L({
1648
1648
  __name: "MlCollapse",
1649
1649
  props: /* @__PURE__ */ Z({
1650
1650
  size: { default: 18 },
@@ -1655,7 +1655,7 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
1655
1655
  }),
1656
1656
  emits: /* @__PURE__ */ Z(["change"], ["update:modelValue"]),
1657
1657
  setup(t, { emit: e }) {
1658
- const n = t, i = ge(t, "modelValue"), l = e, o = k(() => n.reverse ? i.value ? xe : ke : i.value ? ke : xe), a = k(() => `${n.size}px`), r = () => {
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 = () => {
1659
1659
  l("change", i.value), i.value = !i.value;
1660
1660
  };
1661
1661
  return (s, c) => {
@@ -1665,7 +1665,7 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
1665
1665
  onClick: r
1666
1666
  }, {
1667
1667
  default: p(() => [
1668
- (u(), C(ve(o.value)))
1668
+ (u(), C(ge(o.value)))
1669
1669
  ]),
1670
1670
  _: 1
1671
1671
  }, 8, ["size"]);
@@ -1700,14 +1700,14 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
1700
1700
  const s = se, c = ot, f = nt, x = tt;
1701
1701
  return u(), C(x, { onCommand: o }, {
1702
1702
  dropdown: p(() => [
1703
- v(f, null, {
1703
+ g(f, null, {
1704
1704
  default: p(() => [
1705
- (u(!0), w(K, null, X(l.value, (g) => (u(), C(c, {
1706
- key: g.text,
1707
- command: g.name
1705
+ (u(!0), w(K, null, X(l.value, (v) => (u(), C(c, {
1706
+ key: v.text,
1707
+ command: v.name
1708
1708
  }, {
1709
1709
  default: p(() => [
1710
- I(D(g.text), 1)
1710
+ I(D(v.text), 1)
1711
1711
  ]),
1712
1712
  _: 2
1713
1713
  }, 1032, ["command"]))), 128))
@@ -1716,7 +1716,7 @@ const ke = { render: go }, fo = /* @__PURE__ */ L({
1716
1716
  })
1717
1717
  ]),
1718
1718
  default: p(() => [
1719
- v(s, {
1719
+ g(s, {
1720
1720
  size: "30",
1721
1721
  class: "ml-dropdown-icon"
1722
1722
  }, {
@@ -1792,7 +1792,7 @@ const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf
1792
1792
  i("click", f);
1793
1793
  };
1794
1794
  return (f, x) => {
1795
- const g = se, h = it, _ = at, y = lt;
1795
+ const v = se, h = it, _ = at, y = lt;
1796
1796
  return u(), C(y, {
1797
1797
  class: Le(l.value)
1798
1798
  }, {
@@ -1811,9 +1811,9 @@ const zo = /* @__PURE__ */ ue(ko, [["render", Lo], ["__scopeId", "data-v-d6a59cf
1811
1811
  }, {
1812
1812
  default: p(() => [
1813
1813
  d("div", null, [
1814
- v(g, { size: o.value }, {
1814
+ g(v, { size: o.value }, {
1815
1815
  default: p(() => [
1816
- (u(), C(ve(S.icon)))
1816
+ (u(), C(ge(S.icon)))
1817
1817
  ]),
1818
1818
  _: 2
1819
1819
  }, 1032, ["size"]),
@@ -1879,9 +1879,9 @@ function $o(t, e, n) {
1879
1879
  const y = e.value.getBoundingClientRect();
1880
1880
  if (_.clientX < y.left || _.clientX > y.right || _.clientY < y.top || _.clientY > y.bottom) return;
1881
1881
  }
1882
- i.value = !0, a.x = _.clientX, a.y = _.clientY, s(), document.addEventListener("mousemove", g), document.addEventListener("mouseup", h);
1882
+ i.value = !0, a.x = _.clientX, a.y = _.clientY, s(), document.addEventListener("mousemove", v), document.addEventListener("mouseup", h);
1883
1883
  }
1884
- }, g = (_) => {
1884
+ }, v = (_) => {
1885
1885
  if (i.value && o.value && l.value) {
1886
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);
1887
1887
  l.value.x = Math.max(
@@ -1903,7 +1903,7 @@ function $o(t, e, n) {
1903
1903
  ), $.style.left = l.value.x + "px", $.style.top = l.value.y + "px";
1904
1904
  }
1905
1905
  }, h = () => {
1906
- i.value = !1, document.removeEventListener("mousemove", g), document.removeEventListener("mouseup", h);
1906
+ i.value = !1, document.removeEventListener("mousemove", v), document.removeEventListener("mouseup", h);
1907
1907
  };
1908
1908
  return O(() => {
1909
1909
  t.value && (s(), c());
@@ -1982,7 +1982,7 @@ function Fo(t, e = b({ left: 0, right: 0, top: 0, bottom: 0 })) {
1982
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 }) {
1983
1983
  const { initialRect: o } = Fo(t, i), a = b(!1);
1984
1984
  let r = 0, s = 0, c = 0, f = 0, x = 0;
1985
- const g = 5, h = b(null), _ = (V) => {
1985
+ const v = 5, h = b(null), _ = (V) => {
1986
1986
  if (!(!t.value || e.value))
1987
1987
  if (a.value) {
1988
1988
  const T = V.clientX - f, G = V.clientY - x;
@@ -1999,7 +1999,7 @@ function Po(t, e = b(!1), n = b(!1), i = b({ left: 0, right: 0, top: 0, bottom:
1999
1999
  P > l.height && (o.value.height = P, t.value.style.height = o.value.height + "px");
2000
2000
  }
2001
2001
  } else {
2002
- const T = t.value.getBoundingClientRect(), G = V.clientX - T.left, P = V.clientY - T.top, z = G <= g, A = G >= T.width - g, N = P >= T.height - g;
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
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);
2004
2004
  }
2005
2005
  }, y = (V) => {
@@ -2051,32 +2051,32 @@ function No(t, e, n, i) {
2051
2051
  t,
2052
2052
  e,
2053
2053
  i
2054
- ), x = k(() => r.value === "right"), { rect: g, isResizing: h } = Po(
2054
+ ), x = k(() => r.value === "right"), { rect: v, isResizing: h } = Po(
2055
2055
  t,
2056
2056
  n,
2057
2057
  x,
2058
2058
  i.value.offset
2059
2059
  ), { width: _, left: y } = Io(
2060
- g,
2060
+ v,
2061
2061
  h,
2062
2062
  c,
2063
2063
  f
2064
2064
  ), { lastTop: S, lastHeight: $ } = Ao(
2065
- k(() => g.value.left),
2066
- k(() => g.value.top),
2067
- k(() => g.value.width),
2068
- k(() => g.value.height)
2065
+ k(() => v.value.left),
2066
+ k(() => v.value.top),
2067
+ k(() => v.value.width),
2068
+ k(() => v.value.height)
2069
2069
  ), { autoOpened: F } = Eo(t, e, n);
2070
2070
  Ro(t, x, n, F);
2071
2071
  const V = (z) => {
2072
2072
  if (t.value) {
2073
2073
  const A = t.value.getBoundingClientRect(), N = A.left + z;
2074
2074
  if (x.value) {
2075
- g.value.left = N;
2075
+ v.value.left = N;
2076
2076
  const de = window.innerWidth - A.width - A.left;
2077
- A.left <= 0 && de >= 0 && z < 0 && (g.value.left = Math.max(0, N)), window.innerWidth - A.width <= 0 && (g.value.left = window.innerWidth - A.width);
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);
2078
2078
  } else
2079
- A.left + A.width >= window.innerWidth && z < 0 && (g.value.left = Math.max(0, N));
2079
+ A.left + A.width >= window.innerWidth && z < 0 && (v.value.left = Math.max(0, N));
2080
2080
  }
2081
2081
  }, T = () => {
2082
2082
  const z = window.innerWidth - l.value;
@@ -2088,9 +2088,9 @@ function No(t, e, n, i) {
2088
2088
  window.removeEventListener("resize", T);
2089
2089
  });
2090
2090
  const G = (z) => {
2091
- 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));
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));
2092
2092
  }, P = () => {
2093
- 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);
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);
2094
2094
  };
2095
2095
  return E(a, () => {
2096
2096
  P();
@@ -2101,9 +2101,9 @@ function No(t, e, n, i) {
2101
2101
  }), E(s, (z) => {
2102
2102
  if (z && t.value) {
2103
2103
  const A = t.value.getBoundingClientRect();
2104
- g.value.left = A.left, g.value.top = A.top;
2104
+ v.value.left = A.left, v.value.top = A.top;
2105
2105
  }
2106
- }), { rect: g, orientation: r, reversed: x };
2106
+ }), { rect: v, orientation: r, reversed: x };
2107
2107
  }
2108
2108
  const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ */ Oo(() => /* @__PURE__ */ d("svg", {
2109
2109
  xmlns: "http://www.w3.org/2000/svg",
@@ -2115,7 +2115,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2115
2115
  fill: "currentColor",
2116
2116
  d: "M764.288 214.592L512 466.88L259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512L214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
2117
2117
  })
2118
- ], -1)), Go = { class: "ml-tool-palette-title" }, qo = { class: "ml-tool-palette-content" }, Wo = /* @__PURE__ */ L({
2118
+ ], -1)), Go = { class: "ml-tool-palette-title" }, Wo = { class: "ml-tool-palette-content" }, qo = /* @__PURE__ */ L({
2119
2119
  __name: "MlToolPalette",
2120
2120
  props: /* @__PURE__ */ Z({
2121
2121
  title: { default: "" },
@@ -2129,7 +2129,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2129
2129
  }),
2130
2130
  emits: /* @__PURE__ */ Z(["close"], ["update:modelValue"]),
2131
2131
  setup(t, { emit: e }) {
2132
- const n = t, i = ge(t, "modelValue"), l = e, o = b(!1), a = b(null), r = b(null), s = k(() => ({
2132
+ const n = t, i = ve(t, "modelValue"), l = e, o = b(!1), a = b(null), r = b(null), s = k(() => ({
2133
2133
  offset: b({
2134
2134
  left: n.leftOffset,
2135
2135
  right: n.rightOffset,
@@ -2140,7 +2140,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2140
2140
  rect: c,
2141
2141
  orientation: f,
2142
2142
  reversed: x
2143
- } = No(r, a, o, s), g = k(() => ({
2143
+ } = No(r, a, o, s), v = k(() => ({
2144
2144
  left: `${c.value.left}px`,
2145
2145
  top: `${c.value.top}px`,
2146
2146
  width: `${c.value.width}px`,
@@ -2165,7 +2165,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2165
2165
  key: 0,
2166
2166
  ref_key: "toolPaletteElement",
2167
2167
  ref: r,
2168
- style: pe([g.value]),
2168
+ style: pe([v.value]),
2169
2169
  class: "ml-tool-palette-dialog"
2170
2170
  }, [
2171
2171
  d("div", {
@@ -2177,7 +2177,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2177
2177
  class: "ml-tool-palette-title-bar",
2178
2178
  style: pe(h.value)
2179
2179
  }, [
2180
- v($, {
2180
+ g($, {
2181
2181
  size: 18,
2182
2182
  class: "ml-tool-palette-dialog-icon",
2183
2183
  onClick: _
@@ -2187,7 +2187,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2187
2187
  ]),
2188
2188
  _: 1
2189
2189
  }),
2190
- v(fo, {
2190
+ g(fo, {
2191
2191
  class: "ml-tool-palette-dialog-icon",
2192
2192
  modelValue: o.value,
2193
2193
  "onUpdate:modelValue": S[0] || (S[0] = (F) => o.value = F),
@@ -2195,20 +2195,20 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2195
2195
  }, null, 8, ["modelValue", "reverse"]),
2196
2196
  d("span", Go, D(n.title), 1)
2197
2197
  ], 4),
2198
- d("div", qo, [
2198
+ d("div", Wo, [
2199
2199
  ie(y.$slots, "default", {}, void 0, !0)
2200
2200
  ])
2201
2201
  ], 2)
2202
2202
  ], 4)) : U("", !0);
2203
2203
  };
2204
2204
  }
2205
- }), Uo = /* @__PURE__ */ ue(Wo, [["__scopeId", "data-v-11a64c54"]]), jo = { class: "ml-layer-list-cell" }, Yo = { class: "ml-layer-list-cell" }, Ko = /* @__PURE__ */ L({
2205
+ }), Uo = /* @__PURE__ */ ue(qo, [["__scopeId", "data-v-11a64c54"]]), jo = { class: "ml-layer-list-cell" }, Yo = { class: "ml-layer-list-cell" }, Ko = /* @__PURE__ */ L({
2206
2206
  __name: "MlLayerList",
2207
2207
  props: {
2208
2208
  editor: {}
2209
2209
  },
2210
2210
  setup(t) {
2211
- const { t: e } = R(), n = t, i = gt(n.editor), l = b(), o = b([]), a = (s) => {
2211
+ const { t: e } = R(), n = t, i = vt(n.editor), l = b(), o = b([]), a = (s) => {
2212
2212
  o.value = s;
2213
2213
  }, r = (s) => {
2214
2214
  const c = n.editor.curDocument.database.tables.layerTable.getAt(
@@ -2217,7 +2217,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2217
2217
  c && (c.isOff = !s.isOn);
2218
2218
  };
2219
2219
  return (s, c) => {
2220
- const f = M("el-table-column"), x = M("el-checkbox"), g = M("el-tag");
2220
+ const f = M("el-table-column"), x = M("el-checkbox"), v = M("el-tag");
2221
2221
  return u(), C(m(Ze), {
2222
2222
  ref_key: "multipleTableRef",
2223
2223
  ref: l,
@@ -2226,25 +2226,25 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2226
2226
  onSelectionChange: a
2227
2227
  }, {
2228
2228
  default: p(() => [
2229
- v(f, {
2229
+ g(f, {
2230
2230
  type: "selection",
2231
2231
  width: "40"
2232
2232
  }),
2233
- v(f, {
2233
+ g(f, {
2234
2234
  property: "name",
2235
2235
  label: m(e)("main.toolPalette.layerManager.layerList.name"),
2236
2236
  width: "120",
2237
2237
  sortable: "",
2238
2238
  "show-overflow-tooltip": ""
2239
2239
  }, null, 8, ["label"]),
2240
- v(f, {
2240
+ g(f, {
2241
2241
  property: "isOn",
2242
2242
  label: m(e)("main.toolPalette.layerManager.layerList.on"),
2243
2243
  width: "50"
2244
2244
  }, {
2245
2245
  default: p((h) => [
2246
2246
  d("div", jo, [
2247
- v(x, {
2247
+ g(x, {
2248
2248
  modelValue: h.row.isOn,
2249
2249
  "onUpdate:modelValue": (_) => h.row.isOn = _,
2250
2250
  onChange: (_) => r(h.row)
@@ -2253,14 +2253,14 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2253
2253
  ]),
2254
2254
  _: 1
2255
2255
  }, 8, ["label"]),
2256
- v(f, {
2256
+ g(f, {
2257
2257
  property: "color",
2258
2258
  label: m(e)("main.toolPalette.layerManager.layerList.color"),
2259
2259
  width: "70"
2260
2260
  }, {
2261
2261
  default: p((h) => [
2262
2262
  d("div", Yo, [
2263
- v(g, {
2263
+ g(v, {
2264
2264
  color: h.row.color,
2265
2265
  class: "ml-layer-list-color"
2266
2266
  }, null, 8, ["color"])
@@ -2289,7 +2289,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2289
2289
  }, {
2290
2290
  default: p(() => [
2291
2291
  d("div", Xo, [
2292
- v(Ko, {
2292
+ g(Ko, {
2293
2293
  editor: e.editor
2294
2294
  }, null, 8, ["editor"])
2295
2295
  ])
@@ -2302,7 +2302,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2302
2302
  setup(t) {
2303
2303
  const { t: e } = R(), n = ce(), i = dt(), l = b(""), o = b(""), a = (c, f) => {
2304
2304
  const x = c ? i.filter(
2305
- (g) => g.commandName.startsWith(c.toLowerCase())
2305
+ (v) => v.commandName.startsWith(c.toLowerCase())
2306
2306
  ) : i;
2307
2307
  f(x);
2308
2308
  }, r = () => {
@@ -2337,14 +2337,14 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2337
2337
  }), tl = /* @__PURE__ */ H(el, [["__scopeId", "data-v-082845cb"]]), nl = /* @__PURE__ */ L({
2338
2338
  __name: "MlEntityInfo",
2339
2339
  setup(t) {
2340
- Ce((g) => ({
2340
+ Ce((v) => ({
2341
2341
  "2d5cc4ca": a.value,
2342
2342
  "11fa7d7e": r.value
2343
2343
  }));
2344
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(() => {
2345
- const g = B.instance.curDocument.database;
2345
+ const v = B.instance.curDocument.database;
2346
2346
  if (o.value) {
2347
- const h = g.tables.blockTable.modelSpace.getIdAt(o.value);
2347
+ const h = v.tables.blockTable.modelSpace.getIdAt(o.value);
2348
2348
  if (h)
2349
2349
  return {
2350
2350
  type: Lt(h),
@@ -2359,29 +2359,29 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2359
2359
  layer: "",
2360
2360
  lineType: ""
2361
2361
  };
2362
- }), c = k(() => n.value && s.value.type != ""), f = (g) => {
2363
- o.value = g.id, i.value = g.x, l.value = g.y, n.value = !0;
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;
2364
2364
  }, x = () => {
2365
2365
  n.value = !1;
2366
2366
  };
2367
2367
  return O(() => {
2368
- const g = B.instance.curView.events;
2369
- g.hover.addEventListener(f), g.unhover.addEventListener(x);
2368
+ const v = B.instance.curView.events;
2369
+ v.hover.addEventListener(f), v.unhover.addEventListener(x);
2370
2370
  }), ee(() => {
2371
- const g = B.instance.curView.events;
2372
- g.hover.removeEventListener(f), g.unhover.removeEventListener(x);
2373
- }), (g, h) => {
2371
+ const v = B.instance.curView.events;
2372
+ v.hover.removeEventListener(f), v.unhover.removeEventListener(x);
2373
+ }), (v, h) => {
2374
2374
  const _ = M("el-text"), y = M("el-col"), S = M("el-row"), $ = M("el-card");
2375
2375
  return c.value ? (u(), C($, {
2376
2376
  key: 0,
2377
2377
  class: "ml-entity-info"
2378
2378
  }, {
2379
2379
  default: p(() => [
2380
- v(S, { class: "ml-entity-info-text" }, {
2380
+ g(S, { class: "ml-entity-info-text" }, {
2381
2381
  default: p(() => [
2382
- v(y, { span: 24 }, {
2382
+ g(y, { span: 24 }, {
2383
2383
  default: p(() => [
2384
- v(_, {
2384
+ g(_, {
2385
2385
  size: "small",
2386
2386
  class: "ml-entity-info-title"
2387
2387
  }, {
@@ -2396,11 +2396,11 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2396
2396
  ]),
2397
2397
  _: 1
2398
2398
  }),
2399
- v(S, { class: "ml-entity-info-text" }, {
2399
+ g(S, { class: "ml-entity-info-text" }, {
2400
2400
  default: p(() => [
2401
- v(y, { span: 10 }, {
2401
+ g(y, { span: 10 }, {
2402
2402
  default: p(() => [
2403
- v(_, { size: "small" }, {
2403
+ g(_, { size: "small" }, {
2404
2404
  default: p(() => [
2405
2405
  I(D(m(e)("main.entityInfo.color")), 1)
2406
2406
  ]),
@@ -2409,9 +2409,9 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2409
2409
  ]),
2410
2410
  _: 1
2411
2411
  }),
2412
- v(y, { span: 14 }, {
2412
+ g(y, { span: 14 }, {
2413
2413
  default: p(() => [
2414
- v(_, { size: "small" }, {
2414
+ g(_, { size: "small" }, {
2415
2415
  default: p(() => [
2416
2416
  I(D(s.value.color), 1)
2417
2417
  ]),
@@ -2423,11 +2423,11 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2423
2423
  ]),
2424
2424
  _: 1
2425
2425
  }),
2426
- v(S, { class: "ml-entity-info-text" }, {
2426
+ g(S, { class: "ml-entity-info-text" }, {
2427
2427
  default: p(() => [
2428
- v(y, { span: 10 }, {
2428
+ g(y, { span: 10 }, {
2429
2429
  default: p(() => [
2430
- v(_, { size: "small" }, {
2430
+ g(_, { size: "small" }, {
2431
2431
  default: p(() => [
2432
2432
  I(D(m(e)("main.entityInfo.layer")), 1)
2433
2433
  ]),
@@ -2436,9 +2436,9 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2436
2436
  ]),
2437
2437
  _: 1
2438
2438
  }),
2439
- v(y, { span: 14 }, {
2439
+ g(y, { span: 14 }, {
2440
2440
  default: p(() => [
2441
- v(_, { size: "small" }, {
2441
+ g(_, { size: "small" }, {
2442
2442
  default: p(() => [
2443
2443
  I(D(s.value.layer), 1)
2444
2444
  ]),
@@ -2450,11 +2450,11 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2450
2450
  ]),
2451
2451
  _: 1
2452
2452
  }),
2453
- v(S, { class: "ml-entity-info-text" }, {
2453
+ g(S, { class: "ml-entity-info-text" }, {
2454
2454
  default: p(() => [
2455
- v(y, { span: 10 }, {
2455
+ g(y, { span: 10 }, {
2456
2456
  default: p(() => [
2457
- v(_, { size: "small" }, {
2457
+ g(_, { size: "small" }, {
2458
2458
  default: p(() => [
2459
2459
  I(D(m(e)("main.entityInfo.lineType")), 1)
2460
2460
  ]),
@@ -2463,9 +2463,9 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2463
2463
  ]),
2464
2464
  _: 1
2465
2465
  }),
2466
- v(y, { span: 14 }, {
2466
+ g(y, { span: 14 }, {
2467
2467
  default: p(() => [
2468
- v(_, { size: "small" }, {
2468
+ g(_, { size: "small" }, {
2469
2469
  default: p(() => [
2470
2470
  I(D(s.value.lineType), 1)
2471
2471
  ]),
@@ -2488,7 +2488,7 @@ const Oo = (t) => (ze("data-v-11a64c54"), t = t(), De(), t), Ho = /* @__PURE__ *
2488
2488
  currentLocale: { default: void 0 }
2489
2489
  },
2490
2490
  setup(t) {
2491
- const e = t, { effectiveLocale: n, setLocale: i } = $e(e.currentLocale), l = W([
2491
+ const e = t, { effectiveLocale: n, setLocale: i } = $e(e.currentLocale), l = q([
2492
2492
  {
2493
2493
  name: "en",
2494
2494
  text: "English"
@@ -2579,7 +2579,7 @@ var il = /* @__PURE__ */ L({
2579
2579
  })
2580
2580
  ]));
2581
2581
  }
2582
- }), vl = pl, gl = /* @__PURE__ */ L({
2582
+ }), gl = pl, vl = /* @__PURE__ */ L({
2583
2583
  name: "Sunny",
2584
2584
  __name: "sunny",
2585
2585
  setup(t) {
@@ -2593,7 +2593,7 @@ var il = /* @__PURE__ */ L({
2593
2593
  })
2594
2594
  ]));
2595
2595
  }
2596
- }), fl = gl, hl = /* @__PURE__ */ L({
2596
+ }), fl = vl, hl = /* @__PURE__ */ L({
2597
2597
  name: "Warning",
2598
2598
  __name: "warning",
2599
2599
  setup(t) {
@@ -2622,15 +2622,15 @@ const wl = /* @__PURE__ */ L({
2622
2622
  onCommand: n
2623
2623
  }, {
2624
2624
  dropdown: p(() => [
2625
- v(r, null, {
2625
+ g(r, null, {
2626
2626
  default: p(() => [
2627
- v(a, { command: "QNew" }, {
2627
+ g(a, { command: "QNew" }, {
2628
2628
  default: p(() => [
2629
2629
  I(D(m(e)("main.mainMenu.new")), 1)
2630
2630
  ]),
2631
2631
  _: 1
2632
2632
  }),
2633
- v(a, { command: "Open" }, {
2633
+ g(a, { command: "Open" }, {
2634
2634
  default: p(() => [
2635
2635
  I(D(m(e)("main.mainMenu.open")), 1)
2636
2636
  ]),
@@ -2641,12 +2641,12 @@ const wl = /* @__PURE__ */ L({
2641
2641
  })
2642
2642
  ]),
2643
2643
  default: p(() => [
2644
- v(o, {
2644
+ g(o, {
2645
2645
  class: "ml-main-menu-icon",
2646
2646
  size: "30"
2647
2647
  }, {
2648
2648
  default: p(() => [
2649
- v(m(sl))
2649
+ g(m(sl))
2650
2650
  ]),
2651
2651
  _: 1
2652
2652
  })
@@ -2696,7 +2696,7 @@ const wl = /* @__PURE__ */ L({
2696
2696
  B.instance.sendStringToExecute(o);
2697
2697
  };
2698
2698
  return (o, a) => m(n).isShowToolbar ? (u(), w("div", bl, [
2699
- v(m(To), {
2699
+ g(m(To), {
2700
2700
  items: i.value,
2701
2701
  size: "small",
2702
2702
  direction: "vertical",
@@ -2733,7 +2733,7 @@ const wl = /* @__PURE__ */ L({
2733
2733
  "hide-after": 0
2734
2734
  }, {
2735
2735
  default: p(() => [
2736
- v(o, {
2736
+ g(o, {
2737
2737
  class: "ml-point-style-button",
2738
2738
  icon: m(ml),
2739
2739
  onClick: l[0] || (l[0] = (r) => n())
@@ -2771,7 +2771,7 @@ const wl = /* @__PURE__ */ L({
2771
2771
  }), ee(() => {
2772
2772
  j.off("open-file-progress", l);
2773
2773
  }), (a, r) => i.value ? (u(), w("div", Cl, [
2774
- v(m(et), {
2774
+ g(m(et), {
2775
2775
  "text-inside": !0,
2776
2776
  "stroke-width": 20,
2777
2777
  percentage: n.value,
@@ -2792,14 +2792,14 @@ const wl = /* @__PURE__ */ L({
2792
2792
  "hide-after": 0
2793
2793
  }, {
2794
2794
  default: p(() => [
2795
- v(c, {
2795
+ g(c, {
2796
2796
  trigger: "click",
2797
2797
  onCommand: i
2798
2798
  }, {
2799
2799
  dropdown: p(() => [
2800
- v(s, null, {
2800
+ g(s, null, {
2801
2801
  default: p(() => [
2802
- v(r, {
2802
+ g(r, {
2803
2803
  icon: m(n).isShowStats ? m(le) : "",
2804
2804
  command: "isShowStats"
2805
2805
  }, {
@@ -2808,7 +2808,7 @@ const wl = /* @__PURE__ */ L({
2808
2808
  ]),
2809
2809
  _: 1
2810
2810
  }, 8, ["icon"]),
2811
- v(r, {
2811
+ g(r, {
2812
2812
  icon: m(n).isShowCommandLine ? m(le) : "",
2813
2813
  command: "isShowCommandLine"
2814
2814
  }, {
@@ -2817,7 +2817,7 @@ const wl = /* @__PURE__ */ L({
2817
2817
  ]),
2818
2818
  _: 1
2819
2819
  }, 8, ["icon"]),
2820
- v(r, {
2820
+ g(r, {
2821
2821
  icon: m(n).isShowCoordinate ? m(le) : "",
2822
2822
  command: "isShowCoordinate"
2823
2823
  }, {
@@ -2826,7 +2826,7 @@ const wl = /* @__PURE__ */ L({
2826
2826
  ]),
2827
2827
  _: 1
2828
2828
  }, 8, ["icon"]),
2829
- v(r, {
2829
+ g(r, {
2830
2830
  icon: m(n).isShowToolbar ? m(le) : "",
2831
2831
  command: "isShowToolbar"
2832
2832
  }, {
@@ -2840,9 +2840,9 @@ const wl = /* @__PURE__ */ L({
2840
2840
  })
2841
2841
  ]),
2842
2842
  default: p(() => [
2843
- v(a, {
2843
+ g(a, {
2844
2844
  class: "ml-setting-button",
2845
- icon: m(vl)
2845
+ icon: m(gl)
2846
2846
  }, null, 8, ["icon"])
2847
2847
  ]),
2848
2848
  _: 1
@@ -2897,7 +2897,7 @@ const wl = /* @__PURE__ */ L({
2897
2897
  const r = M("el-button"), s = M("el-button-group");
2898
2898
  return u(), C(m(zo), { class: "ml-status-bar" }, {
2899
2899
  left: p(() => [
2900
- v(s, { class: "ml-status-bar-left-button-group" }, {
2900
+ g(s, { class: "ml-status-bar-left-button-group" }, {
2901
2901
  default: p(() => [
2902
2902
  (u(!0), w(K, null, X(m(n), (c) => (u(), C(r, {
2903
2903
  class: "ml-status-bar-layout-button",
@@ -2915,8 +2915,8 @@ const wl = /* @__PURE__ */ L({
2915
2915
  })
2916
2916
  ]),
2917
2917
  right: p(() => [
2918
- v(zl),
2919
- v(s, { class: "ml-status-bar-right-button-group" }, {
2918
+ g(zl),
2919
+ g(s, { class: "ml-status-bar-right-button-group" }, {
2920
2920
  default: p(() => [
2921
2921
  m(i).isShowCoordinate ? (u(), C(r, {
2922
2922
  key: 0,
@@ -2927,11 +2927,11 @@ const wl = /* @__PURE__ */ L({
2927
2927
  ]),
2928
2928
  _: 1
2929
2929
  })) : U("", !0),
2930
- v($l),
2931
- v(Tl),
2932
- v(kl),
2933
- v(Sl),
2934
- v(Bl)
2930
+ g($l),
2931
+ g(Tl),
2932
+ g(kl),
2933
+ g(Sl),
2934
+ g(Bl)
2935
2935
  ]),
2936
2936
  _: 1
2937
2937
  })
@@ -3016,26 +3016,26 @@ const wl = /* @__PURE__ */ L({
3016
3016
  }), Pl(), (r, s) => {
3017
3017
  const c = M("el-config-provider");
3018
3018
  return u(), w("div", null, [
3019
- v(c, { locale: m(l) }, {
3019
+ g(c, { locale: m(l) }, {
3020
3020
  default: p(() => [
3021
3021
  d("header", null, [
3022
- v(m(yl)),
3023
- v(m(al), { "current-locale": m(i) }, null, 8, ["current-locale"])
3022
+ g(m(yl)),
3023
+ g(m(al), { "current-locale": m(i) }, null, 8, ["current-locale"])
3024
3024
  ]),
3025
3025
  d("main", null, [
3026
3026
  d("div", Il, D(m(Q).fileName), 1),
3027
- v(m(xl)),
3028
- v(m(Zo), {
3027
+ g(m(xl)),
3028
+ g(m(Zo), {
3029
3029
  editor: m(B).instance
3030
3030
  }, null, 8, ["editor"]),
3031
- v(m(Tt))
3031
+ g(m(Tt))
3032
3032
  ]),
3033
3033
  d("footer", null, [
3034
- v(m(tl)),
3035
- v(m(Al))
3034
+ g(m(tl)),
3035
+ g(m(Al))
3036
3036
  ]),
3037
- v(m($t), { onFileRead: o }),
3038
- v(m(ol))
3037
+ g(m($t), { onFileRead: o }),
3038
+ g(m(ol))
3039
3039
  ]),
3040
3040
  _: 1
3041
3041
  }, 8, ["locale"])
@@ -3043,23 +3043,23 @@ const wl = /* @__PURE__ */ L({
3043
3043
  };
3044
3044
  }
3045
3045
  }), { registerDialog: Se } = oe(), Fl = () => {
3046
- q.instance.addCommand(
3047
- q.SYSTEMT_COMMAND_GROUP_NAME,
3046
+ W.instance.addCommand(
3047
+ W.SYSTEMT_COMMAND_GROUP_NAME,
3048
3048
  "log",
3049
3049
  "log",
3050
3050
  new Ol()
3051
- ), q.instance.addCommand(
3052
- q.SYSTEMT_COMMAND_GROUP_NAME,
3051
+ ), W.instance.addCommand(
3052
+ W.SYSTEMT_COMMAND_GROUP_NAME,
3053
3053
  "la",
3054
3054
  "la",
3055
3055
  new Nl()
3056
- ), q.instance.addCommand(
3057
- q.SYSTEMT_COMMAND_GROUP_NAME,
3056
+ ), W.instance.addCommand(
3057
+ W.SYSTEMT_COMMAND_GROUP_NAME,
3058
3058
  "md",
3059
3059
  "md",
3060
3060
  new Hl()
3061
- ), q.instance.addCommand(
3062
- q.SYSTEMT_COMMAND_GROUP_NAME,
3061
+ ), W.instance.addCommand(
3062
+ W.SYSTEMT_COMMAND_GROUP_NAME,
3063
3063
  "pttype",
3064
3064
  "pttype",
3065
3065
  new Gl()
@@ -3076,8 +3076,8 @@ const wl = /* @__PURE__ */ L({
3076
3076
  });
3077
3077
  }, Rl = (t) => {
3078
3078
  const e = document.getElementById(t);
3079
- B.createInstance(e), Re(), Fl(), B.instance.loadDefaultFonts();
3080
- }, Q = W({
3079
+ B.createInstance(e), Re(), Fl();
3080
+ }, Q = q({
3081
3081
  fileName: "",
3082
3082
  dialogs: {
3083
3083
  layerManager: !1
@@ -3133,7 +3133,7 @@ class Ol extends re {
3133
3133
  }
3134
3134
  }
3135
3135
  printPerformanceData() {
3136
- qe.getInstance().printAll();
3136
+ We.getInstance().printAll();
3137
3137
  }
3138
3138
  }
3139
3139
  class Hl extends re {
@@ -3178,8 +3178,8 @@ export {
3178
3178
  dt as useCommands,
3179
3179
  mt as useCurrentPos,
3180
3180
  oe as useDialogManager,
3181
- vt as useFileTypes,
3182
- gt as useLayers,
3181
+ gt as useFileTypes,
3182
+ vt as useLayers,
3183
3183
  ft as useLayouts,
3184
3184
  $e as useLocale,
3185
3185
  Ve as useMissedData,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/cad-viewer",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "vite-svg-loader": "^5.1.0",
43
43
  "vue-eslint-parser": "^9.4.3",
44
44
  "vue-tsc": "^2.1.6",
45
- "@mlightcad/three-renderer": "1.0.16",
46
- "@mlightcad/svg-renderer": "0.0.15"
45
+ "@mlightcad/svg-renderer": "0.0.16",
46
+ "@mlightcad/three-renderer": "1.0.17"
47
47
  },
48
48
  "dependencies": {
49
49
  "@element-plus/icons-vue": "^2.3.1",
@@ -51,12 +51,12 @@
51
51
  "three": "^0.172.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@mlightcad/data-model": "1.2.7",
54
+ "@mlightcad/data-model": "1.2.8",
55
55
  "@vueuse/core": "^11.1.0",
56
56
  "element-plus": "^2.9.1",
57
57
  "vue": "^3.4.21",
58
58
  "vue-i18n": "^10.0.1",
59
- "@mlightcad/cad-simple-viewer": "1.0.18"
59
+ "@mlightcad/cad-simple-viewer": "1.0.19"
60
60
  },
61
61
  "scripts": {
62
62
  "analyze": "vite build --mode analyze",