@mlightcad/data-model 1.7.17 → 1.7.18

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.
@@ -936,7 +936,7 @@ let jd = class {
936
936
  s[n].call(this, t);
937
937
  }
938
938
  }
939
- }, K = class {
939
+ }, q = class {
940
940
  constructor() {
941
941
  this.listeners = [];
942
942
  }
@@ -1147,8 +1147,8 @@ var kr = { exports: {} };
1147
1147
  }, P = B(
1148
1148
  a ? a.getLevel() : "WARN"
1149
1149
  );
1150
- var Q = A();
1151
- Q != null && (T = B(Q)), d.call(x);
1150
+ var Z = A();
1151
+ Z != null && (T = B(Z)), d.call(x);
1152
1152
  }
1153
1153
  a = new p(), a.getLogger = function(y) {
1154
1154
  if (typeof y != "symbol" && typeof y != "string" || y === "")
@@ -1180,8 +1180,8 @@ const Hd = (i) => {
1180
1180
  let Wo = class Nr {
1181
1181
  constructor(t, e) {
1182
1182
  this.events = {
1183
- attrChanged: new K(),
1184
- modelChanged: new K()
1183
+ attrChanged: new q(),
1184
+ modelChanged: new q()
1185
1185
  }, this._changing = !1, this._previousAttributes = {}, this._pending = !1;
1186
1186
  const s = t || {};
1187
1187
  e && di(s, e), this.attributes = s, this.changed = {};
@@ -1687,8 +1687,8 @@ var Rs = /* @__PURE__ */ ((i) => (i.DXF = "dxf", i.DWG = "dwg", i))(Rs || {});
1687
1687
  class Qt {
1688
1688
  constructor() {
1689
1689
  this.events = {
1690
- registered: new K(),
1691
- unregistered: new K()
1690
+ registered: new q(),
1691
+ unregistered: new q()
1692
1692
  }, this._converters = /* @__PURE__ */ new Map(), this.register("dxf", new Fd());
1693
1693
  }
1694
1694
  static createInstance() {
@@ -1752,7 +1752,7 @@ class ws {
1752
1752
  const u = e.newIterator();
1753
1753
  for (const g of u)
1754
1754
  g.color.isByBlock && s ? (nr.copy(g.color), g.color.setRGBValue(s), this.addEntity(g, l, t), g.color.copy(nr)) : this.addEntity(g, l, t);
1755
- d = t.group(l), d && r && Z.name && !Z.name.startsWith("*U") && this.set(c, d);
1755
+ d = t.group(l), d && r && K.name && !K.name.startsWith("*U") && this.set(c, d);
1756
1756
  }
1757
1757
  return d && a && (d.applyMatrix(a), o && (o.x != 0 || o.y != 0 || o.z != 1) && (a.setFromExtrusionDirection(o), d.applyMatrix(a))), d && n && n.length > 0 && (d.bakeTransformToChildren(), n.forEach((u) => d.addChild(u))), d;
1758
1758
  } else
@@ -1814,7 +1814,7 @@ const Ko = [
1814
1814
  "utf-8",
1815
1815
  "utf-16le",
1816
1816
  "windows-1258"
1817
- ], Zo = (i) => Ko[i], us = "Continuous", $ = "Standard", ps = "ByLayer", Ci = "ByBlock", rr = "mlightcad", ar = "ACAD", rt = [
1817
+ ], Zo = (i) => Ko[i], us = "Continuous", it = "Standard", ps = "ByLayer", Ci = "ByBlock", rr = "mlightcad", ar = "ACAD", rt = [
1818
1818
  "00",
1819
1819
  "01",
1820
1820
  "02",
@@ -2689,19 +2689,19 @@ function Zr(i, t, e = "Uniform", s, n) {
2689
2689
  let I = 0;
2690
2690
  y[I] = new Array(m).fill(0), y[I][0] = 1, w[I] = r[0][0], x[I] = r[0][1], P[I] = r[0][2], I++;
2691
2691
  for (let B = 1; B <= c - 1; B++) {
2692
- const Q = u[B];
2692
+ const Z = u[B];
2693
2693
  y[I] = new Array(m).fill(0);
2694
2694
  for (let F = 0; F <= d; F++)
2695
- y[I][F] = Zs(F, t, Q, p);
2695
+ y[I][F] = Zs(F, t, Z, p);
2696
2696
  w[I] = r[B][0], x[I] = r[B][1], P[I] = r[B][2], I++;
2697
2697
  }
2698
2698
  if (y[I] = new Array(m).fill(0), y[I][d] = 1, w[I] = r[c][0], x[I] = r[c][1], P[I] = r[c][2], I++, a) {
2699
- const B = p[t + 1] - p[0], Q = B !== 0 ? t / B : 0;
2700
- y[I] = new Array(m).fill(0), y[I][0] = -Q, y[I][1] = Q, w[I] = (s == null ? void 0 : s[0]) ?? 0, x[I] = (s == null ? void 0 : s[1]) ?? 0, P[I] = (s == null ? void 0 : s[2]) ?? 0, I++;
2699
+ const B = p[t + 1] - p[0], Z = B !== 0 ? t / B : 0;
2700
+ y[I] = new Array(m).fill(0), y[I][0] = -Z, y[I][1] = Z, w[I] = (s == null ? void 0 : s[0]) ?? 0, x[I] = (s == null ? void 0 : s[1]) ?? 0, P[I] = (s == null ? void 0 : s[2]) ?? 0, I++;
2701
2701
  }
2702
2702
  if (o) {
2703
- const B = p[d + t + 1] - p[d], Q = B !== 0 ? t / B : 0;
2704
- y[I] = new Array(m).fill(0), y[I][d - 1] = -Q, y[I][d] = Q, w[I] = (n == null ? void 0 : n[0]) ?? 0, x[I] = (n == null ? void 0 : n[1]) ?? 0, P[I] = (n == null ? void 0 : n[2]) ?? 0, I++;
2703
+ const B = p[d + t + 1] - p[d], Z = B !== 0 ? t / B : 0;
2704
+ y[I] = new Array(m).fill(0), y[I][d - 1] = -Z, y[I][d] = Z, w[I] = (n == null ? void 0 : n[0]) ?? 0, x[I] = (n == null ? void 0 : n[1]) ?? 0, P[I] = (n == null ? void 0 : n[2]) ?? 0, I++;
2705
2705
  }
2706
2706
  const T = fi(y, w), M = fi(y, x), G = fi(y, P), A = new Array(m);
2707
2707
  for (let B = 0; B < m; B++)
@@ -3368,8 +3368,8 @@ const bi = new b(), hr = new He(), Ri = class Jr {
3368
3368
  return this.multiplyMatrices(t, this);
3369
3369
  }
3370
3370
  multiplyMatrices(t, e) {
3371
- const s = t.elements, n = e.elements, r = this.elements, a = s[0], o = s[4], l = s[8], c = s[12], d = s[1], u = s[5], g = s[9], p = s[13], m = s[2], y = s[6], w = s[10], x = s[14], P = s[3], I = s[7], T = s[11], M = s[15], G = n[0], A = n[4], Y = n[8], B = n[12], Q = n[1], F = n[5], H = n[9], de = n[13], ue = n[2], Is = n[6], Es = n[10], Ps = n[14], Ss = n[3], Ms = n[7], As = n[11], Ts = n[15];
3372
- return r[0] = a * G + o * Q + l * ue + c * Ss, r[4] = a * A + o * F + l * Is + c * Ms, r[8] = a * Y + o * H + l * Es + c * As, r[12] = a * B + o * de + l * Ps + c * Ts, r[1] = d * G + u * Q + g * ue + p * Ss, r[5] = d * A + u * F + g * Is + p * Ms, r[9] = d * Y + u * H + g * Es + p * As, r[13] = d * B + u * de + g * Ps + p * Ts, r[2] = m * G + y * Q + w * ue + x * Ss, r[6] = m * A + y * F + w * Is + x * Ms, r[10] = m * Y + y * H + w * Es + x * As, r[14] = m * B + y * de + w * Ps + x * Ts, r[3] = P * G + I * Q + T * ue + M * Ss, r[7] = P * A + I * F + T * Is + M * Ms, r[11] = P * Y + I * H + T * Es + M * As, r[15] = P * B + I * de + T * Ps + M * Ts, this;
3371
+ const s = t.elements, n = e.elements, r = this.elements, a = s[0], o = s[4], l = s[8], c = s[12], d = s[1], u = s[5], g = s[9], p = s[13], m = s[2], y = s[6], w = s[10], x = s[14], P = s[3], I = s[7], T = s[11], M = s[15], G = n[0], A = n[4], Y = n[8], B = n[12], Z = n[1], F = n[5], H = n[9], de = n[13], ue = n[2], Is = n[6], Es = n[10], Ps = n[14], Ss = n[3], Ms = n[7], As = n[11], Ts = n[15];
3372
+ return r[0] = a * G + o * Z + l * ue + c * Ss, r[4] = a * A + o * F + l * Is + c * Ms, r[8] = a * Y + o * H + l * Es + c * As, r[12] = a * B + o * de + l * Ps + c * Ts, r[1] = d * G + u * Z + g * ue + p * Ss, r[5] = d * A + u * F + g * Is + p * Ms, r[9] = d * Y + u * H + g * Es + p * As, r[13] = d * B + u * de + g * Ps + p * Ts, r[2] = m * G + y * Z + w * ue + x * Ss, r[6] = m * A + y * F + w * Is + x * Ms, r[10] = m * Y + y * H + w * Es + x * As, r[14] = m * B + y * de + w * Ps + x * Ts, r[3] = P * G + I * Z + T * ue + M * Ss, r[7] = P * A + I * F + T * Is + M * Ms, r[11] = P * Y + I * H + T * Es + M * As, r[15] = P * B + I * de + T * Ps + M * Ts, this;
3373
3373
  }
3374
3374
  multiplyScalar(t) {
3375
3375
  const e = this.elements;
@@ -3474,8 +3474,8 @@ const bi = new b(), hr = new He(), Ri = class Jr {
3474
3474
  }
3475
3475
  };
3476
3476
  Ri.IDENTITY = Object.freeze(new Ri());
3477
- let it = Ri;
3478
- const ze = new b(), Mt = new it(), Ih = new b(0, 0, 0), Eh = new b(1, 1, 1), ie = new b(), Ls = new b(), yt = new b();
3477
+ let st = Ri;
3478
+ const ze = new b(), Mt = new st(), Ih = new b(0, 0, 0), Eh = new b(1, 1, 1), ie = new b(), Ls = new b(), yt = new b();
3479
3479
  let C = class ta {
3480
3480
  constructor(t = void 0, e = void 0) {
3481
3481
  this.min = t == null ? new b(1 / 0, 1 / 0, 1 / 0) : new b(t.x, t.y, t.z), this.max = e == null ? new b(-1 / 0, -1 / 0, -1 / 0) : new b(e.x, e.y, e.z);
@@ -3737,7 +3737,7 @@ let k = class extends X {
3737
3737
  }), n;
3738
3738
  }
3739
3739
  };
3740
- const dr = new it(), ur = new He(), sa = class zi {
3740
+ const dr = new st(), ur = new He(), sa = class zi {
3741
3741
  constructor(t = 0, e = 0, s = 0, n = zi.DEFAULT_ORDER) {
3742
3742
  this._x = t, this._y = e, this._z = s, this._order = n;
3743
3743
  }
@@ -4039,8 +4039,8 @@ let xs = class extends na {
4039
4039
  const n = (A, Y) => ({
4040
4040
  x: (A.x + Y.x) / 2,
4041
4041
  y: (A.y + Y.y) / 2
4042
- }), r = (A, Y) => (Y.y - A.y) / (Y.x - A.x), a = (A) => -1 / A, o = n(t, e), l = n(e, s), c = r(t, e), d = r(e, s), u = a(c), g = a(d), p = (A, Y, B, Q) => {
4043
- const F = (Q - Y) / (A - B), H = A * F + Y;
4042
+ }), r = (A, Y) => (Y.y - A.y) / (Y.x - A.x), a = (A) => -1 / A, o = n(t, e), l = n(e, s), c = r(t, e), d = r(e, s), u = a(c), g = a(d), p = (A, Y, B, Z) => {
4043
+ const F = (Z - Y) / (A - B), H = A * F + Y;
4044
4044
  return { x: F, y: H };
4045
4045
  }, m = o.y - u * o.x, y = l.y - g * l.x, w = p(u, m, g, y), x = Math.sqrt(
4046
4046
  Math.pow(t.x - w.x, 2) + Math.pow(t.y - w.y, 2)
@@ -4190,7 +4190,7 @@ let xs = class extends na {
4190
4190
  };
4191
4191
  class Mh extends ia {
4192
4192
  translate(t) {
4193
- return this.transform(new it().makeTranslation(t.x, t.y, t.z));
4193
+ return this.transform(new st().makeTranslation(t.x, t.y, t.z));
4194
4194
  }
4195
4195
  get box() {
4196
4196
  return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
@@ -5053,7 +5053,7 @@ let ti = class Ot extends xs {
5053
5053
  return e.setFromPoints(t), e;
5054
5054
  }
5055
5055
  transform(t) {
5056
- const e = new it().set(
5056
+ const e = new st().set(
5057
5057
  t.elements[0],
5058
5058
  t.elements[3],
5059
5059
  0,
@@ -6701,9 +6701,10 @@ const Pn = class Pn extends mt {
6701
6701
  };
6702
6702
  }
6703
6703
  getTextStyle() {
6704
- const t = this.database.tables.textStyleTable;
6705
- let e = t.getAt(this.styleName);
6706
- return e || (e = t.getAt($) || t.getAt($)), e.textStyle;
6704
+ const t = this.database.tables.textStyleTable, e = t.getAt(this.styleName) ?? t.getAt(this.database.textstyle) ?? t.getAt(it);
6705
+ if (!e)
6706
+ throw new Error("No valid text style found in text style table.");
6707
+ return e.textStyle;
6707
6708
  }
6708
6709
  subWorldDraw(t, e) {
6709
6710
  const s = {
@@ -6724,7 +6725,7 @@ const Pn = class Pn extends mt {
6724
6725
  };
6725
6726
  Pn.typeName = "Text";
6726
6727
  let ys = Pn;
6727
- var st = /* @__PURE__ */ ((i) => (i[i.Invisible = 1] = "Invisible", i[i.Const = 2] = "Const", i[i.Verifiable = 4] = "Verifiable", i[i.Preset = 8] = "Preset", i))(st || {}), Jt = /* @__PURE__ */ ((i) => (i[i.MultiLine = 2] = "MultiLine", i[i.ConstMultiLine = 4] = "ConstMultiLine", i))(Jt || {});
6728
+ var et = /* @__PURE__ */ ((i) => (i[i.Invisible = 1] = "Invisible", i[i.Const = 2] = "Const", i[i.Verifiable = 4] = "Verifiable", i[i.Preset = 8] = "Preset", i))(et || {}), Jt = /* @__PURE__ */ ((i) => (i[i.MultiLine = 2] = "MultiLine", i[i.ConstMultiLine = 4] = "ConstMultiLine", i))(Jt || {});
6728
6729
  const Sn = class Sn extends ys {
6729
6730
  get dxfTypeName() {
6730
6731
  return "ATTDEF";
@@ -6820,28 +6821,28 @@ const Mn = class Mn extends ys {
6820
6821
  super(), this._flags = 0, this._mtextFlag = 0, this._tag = "", this._fieldLength = 0, this._lockPositionInBlock = !1, this._isReallyLocked = !1;
6821
6822
  }
6822
6823
  get isInvisible() {
6823
- return (this._flags & st.Invisible) !== 0;
6824
+ return (this._flags & et.Invisible) !== 0;
6824
6825
  }
6825
6826
  set isInvisible(t) {
6826
- t ? this._flags |= st.Invisible : this._flags &= ~st.Invisible;
6827
+ t ? this._flags |= et.Invisible : this._flags &= ~et.Invisible;
6827
6828
  }
6828
6829
  get isConst() {
6829
- return (this._flags & st.Const) !== 0;
6830
+ return (this._flags & et.Const) !== 0;
6830
6831
  }
6831
6832
  set isConst(t) {
6832
- t ? this._flags |= st.Const : this._flags &= ~st.Const;
6833
+ t ? this._flags |= et.Const : this._flags &= ~et.Const;
6833
6834
  }
6834
6835
  get isVerifiable() {
6835
- return (this._flags & st.Verifiable) !== 0;
6836
+ return (this._flags & et.Verifiable) !== 0;
6836
6837
  }
6837
6838
  set isVerifiable(t) {
6838
- t ? this._flags |= st.Verifiable : this._flags &= ~st.Verifiable;
6839
+ t ? this._flags |= et.Verifiable : this._flags &= ~et.Verifiable;
6839
6840
  }
6840
6841
  get isPreset() {
6841
- return (this._flags & st.Preset) !== 0;
6842
+ return (this._flags & et.Preset) !== 0;
6842
6843
  }
6843
6844
  set isPreset(t) {
6844
- t ? this._flags |= st.Preset : this._flags &= ~st.Preset;
6845
+ t ? this._flags |= et.Preset : this._flags &= ~et.Preset;
6845
6846
  }
6846
6847
  get isMTextAttribute() {
6847
6848
  return (this._mtextFlag & Jt.MultiLine) !== 0;
@@ -6935,23 +6936,23 @@ const An = class An extends mt {
6935
6936
  return new mi(this._attribs);
6936
6937
  }
6937
6938
  get blockTransform() {
6938
- const t = this.blockTableRecord, e = (t == null ? void 0 : t.origin) ?? f.ORIGIN, s = new it().makeTranslation(
6939
+ const t = this.blockTableRecord, e = (t == null ? void 0 : t.origin) ?? f.ORIGIN, s = new st().makeTranslation(
6939
6940
  -e.x,
6940
6941
  -e.y,
6941
6942
  -e.z
6942
- ), n = new it().makeScale(
6943
+ ), n = new st().makeScale(
6943
6944
  this._scaleFactors.x,
6944
6945
  this._scaleFactors.y,
6945
6946
  this._scaleFactors.z
6946
6947
  ), r = new He().setFromAxisAngle(
6947
6948
  b.Z_AXIS,
6948
6949
  this._rotation
6949
- ), a = new it().makeRotationFromQuaternion(r), o = new it().makeTranslation(
6950
+ ), a = new st().makeRotationFromQuaternion(r), o = new st().makeTranslation(
6950
6951
  this._position.x,
6951
6952
  this._position.y,
6952
6953
  this._position.z
6953
6954
  );
6954
- return new it().multiplyMatrices(o, a).multiply(n).multiply(s);
6955
+ return new st().multiplyMatrices(o, a).multiply(n).multiply(s);
6955
6956
  }
6956
6957
  subGetOsnapPoints(t, e, s, n, r) {
6957
6958
  z.Insertion === t ? n.push(this._position) : r && this.subEntityGetOsnapPoints(
@@ -6963,12 +6964,12 @@ const An = class An extends mt {
6963
6964
  );
6964
6965
  }
6965
6966
  transformBy(t) {
6966
- const e = new it().setFromExtrusionDirection(this._normal), s = new it().makeRotationZ(this._rotation), n = new it().multiplyMatrices(e, s), r = this._position.clone(), a = new f(this._scaleFactors.x, 0, 0).applyMatrix4(n).add(r), o = new f(0, this._scaleFactors.y, 0).applyMatrix4(n).add(r), l = new f(0, 0, this._scaleFactors.z).applyMatrix4(n).add(r);
6967
+ const e = new st().setFromExtrusionDirection(this._normal), s = new st().makeRotationZ(this._rotation), n = new st().multiplyMatrices(e, s), r = this._position.clone(), a = new f(this._scaleFactors.x, 0, 0).applyMatrix4(n).add(r), o = new f(0, this._scaleFactors.y, 0).applyMatrix4(n).add(r), l = new f(0, 0, this._scaleFactors.z).applyMatrix4(n).add(r);
6967
6968
  r.applyMatrix4(t), a.applyMatrix4(t), o.applyMatrix4(t), l.applyMatrix4(t);
6968
6969
  const c = new b(a).sub(r), d = new b(o).sub(r), u = new b(l).sub(r);
6969
6970
  let g = new b().crossVectors(c, d);
6970
6971
  g.lengthSq() === 0 ? g = this._normal.clone().transformDirection(t) : g.normalize();
6971
- const m = new it().setFromExtrusionDirection(g).clone().invert(), y = c.clone().applyMatrix4(m);
6972
+ const m = new st().setFromExtrusionDirection(g).clone().invert(), y = c.clone().applyMatrix4(m);
6972
6973
  return this._position.copy(r), this._normal.copy(g), this._rotation = Math.atan2(y.y, y.x), this._scaleFactors.set(c.length(), d.length(), u.length()), this._attribs.forEach((w) => w.transformBy(t)), this;
6973
6974
  }
6974
6975
  get properties() {
@@ -8511,9 +8512,10 @@ const Cn = class Cn extends mt {
8511
8512
  };
8512
8513
  }
8513
8514
  getTextStyle() {
8514
- const t = this.database.tables.textStyleTable;
8515
- let e = t.getAt(this.styleName);
8516
- return e || (e = t.getAt($) || t.getAt($)), e.textStyle;
8515
+ const t = this.database.tables.textStyleTable, e = t.getAt(this.styleName) ?? t.getAt(this.database.textstyle) ?? t.getAt(it);
8516
+ if (!e)
8517
+ throw new Error("No valid text style found in text style table.");
8518
+ return e.textStyle;
8517
8519
  }
8518
8520
  subWorldDraw(t, e) {
8519
8521
  const s = {
@@ -8840,9 +8842,10 @@ const Bh = new b(), Fn = class Fn extends _s {
8840
8842
  t[e + a + o * s] = !0;
8841
8843
  }
8842
8844
  getTextStyle(t) {
8843
- const e = this.database.tables.textStyleTable;
8844
- let s;
8845
- return t.textStyle && (s = e.getAt(t.textStyle)), s || (s = e.getAt($) || e.getAt($)), s.textStyle;
8845
+ const e = this.database.tables.textStyleTable, s = (t.textStyle ? e.getAt(t.textStyle) : void 0) ?? e.getAt(this.database.textstyle) ?? e.getAt(it);
8846
+ if (!s)
8847
+ throw new Error("No valid text style found in text style table.");
8848
+ return s.textStyle;
8846
8849
  }
8847
8850
  getTableTextOffset(t, e, s) {
8848
8851
  const n = new b();
@@ -8954,7 +8957,7 @@ const Bh = new b(), Fn = class Fn extends _s {
8954
8957
  };
8955
8958
  Fn.typeName = "Table";
8956
8959
  let qi = Fn;
8957
- const _r = new it(), Rn = class Rn extends at {
8960
+ const _r = new st(), Rn = class Rn extends at {
8958
8961
  get dxfTypeName() {
8959
8962
  return "TRACE";
8960
8963
  }
@@ -10416,16 +10419,16 @@ const Yn = class Yn extends mt {
10416
10419
  return e ? e.name.toUpperCase() : aa.Closed;
10417
10420
  }
10418
10421
  computeDimBlockTransform() {
10419
- const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ?? f.ORIGIN, s = new it().makeTranslation(
10422
+ const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ?? f.ORIGIN, s = new st().makeTranslation(
10420
10423
  -e.x,
10421
10424
  -e.y,
10422
10425
  -e.z
10423
- ), n = new it().makeTranslation(
10426
+ ), n = new st().makeTranslation(
10424
10427
  this._dimBlockPosition.x,
10425
10428
  this._dimBlockPosition.y,
10426
10429
  this._dimBlockPosition.z
10427
10430
  );
10428
- return new it().multiplyMatrices(n, s);
10431
+ return new st().multiplyMatrices(n, s);
10429
10432
  }
10430
10433
  subTransformBy(t) {
10431
10434
  }
@@ -10521,7 +10524,7 @@ const qn = class qn extends oe {
10521
10524
  return !1;
10522
10525
  }
10523
10526
  createDimBlock(t) {
10524
- const e = new Z();
10527
+ const e = new K();
10525
10528
  e.name = t;
10526
10529
  const s = this.createLines();
10527
10530
  s.forEach(
@@ -11336,14 +11339,14 @@ const ae = class ae extends Fe {
11336
11339
  }
11337
11340
  };
11338
11341
  ae.MODEL_SPACE_NAME = "*Model_Space", ae.PAPER_SPACE_NAME_PREFIX = "*Paper_Space";
11339
- let Z = ae;
11342
+ let K = ae;
11340
11343
  class Kh {
11341
11344
  constructor() {
11342
11345
  this.events = {
11343
- layoutCreated: new K(),
11344
- layoutRemoved: new K(),
11345
- layoutRenamed: new K(),
11346
- layoutSwitched: new K()
11346
+ layoutCreated: new q(),
11347
+ layoutRemoved: new q(),
11348
+ layoutRenamed: new q(),
11349
+ layoutSwitched: new q()
11347
11350
  };
11348
11351
  }
11349
11352
  countLayouts(t) {
@@ -11389,7 +11392,7 @@ class Kh {
11389
11392
  createLayout(t, e) {
11390
11393
  const s = this.getWorkingDatabase(e), n = new gi();
11391
11394
  n.layoutName = t, n.tabOrder = s.objects.layout.maxTabOrder;
11392
- const r = new Z();
11395
+ const r = new K();
11393
11396
  return r.name = `*Paper_Space${n.tabOrder}`, s.tables.blockTable.add(r), s.objects.layout.setAt(t, n), this.events.layoutCreated.dispatch({
11394
11397
  layout: n
11395
11398
  }), { layout: n, btr: r };
@@ -11494,7 +11497,7 @@ class Jh {
11494
11497
  createDefaultTextStyle() {
11495
11498
  this.db.tables.textStyleTable.add(
11496
11499
  new pn({
11497
- name: $,
11500
+ name: it,
11498
11501
  standardFlag: 0,
11499
11502
  fixedTextHeight: 0,
11500
11503
  widthFactor: 1,
@@ -11510,8 +11513,8 @@ class Jh {
11510
11513
  createDefaultDimStyle() {
11511
11514
  this.db.tables.dimStyleTable.add(
11512
11515
  new De({
11513
- name: $,
11514
- dimtxsty: $
11516
+ name: it,
11517
+ dimtxsty: it
11515
11518
  })
11516
11519
  );
11517
11520
  }
@@ -11525,7 +11528,7 @@ class Jh {
11525
11528
  e.patternName = "SOLID";
11526
11529
  const s = new ti();
11527
11530
  s.add(new te({ x: 0, y: 0 }, { x: -1, y: 0.125 })), s.add(new te({ x: -1, y: 0.125 }, { x: -1, y: -0.125 })), s.add(new te({ x: -1, y: -0.125 }, { x: 0, y: 0 })), e.add(s);
11528
- const n = new Z();
11531
+ const n = new K();
11529
11532
  n.name = "_CAXARROW", n.appendEntity(e), this.db.tables.blockTable.add(n);
11530
11533
  }
11531
11534
  }
@@ -11595,8 +11598,8 @@ class el extends ce {
11595
11598
  super(t);
11596
11599
  }
11597
11600
  get modelSpace() {
11598
- let t = this.getAt(Z.MODEL_SPACE_NAME);
11599
- return t || (t = new Z(), t.name = Z.MODEL_SPACE_NAME, this.add(t)), t;
11601
+ let t = this.getAt(K.MODEL_SPACE_NAME);
11602
+ return t || (t = new K(), t.name = K.MODEL_SPACE_NAME, this.add(t)), t;
11600
11603
  }
11601
11604
  getEntityById(t) {
11602
11605
  for (const e of this.database.tables.blockTable.newIterator()) {
@@ -11615,10 +11618,10 @@ class el extends ce {
11615
11618
  }
11616
11619
  normalizeName(t) {
11617
11620
  let e = t;
11618
- if (Z.isModelSapceName(t))
11619
- e = Z.MODEL_SPACE_NAME;
11620
- else if (Z.isPaperSapceName(t)) {
11621
- const s = Z.PAPER_SPACE_NAME_PREFIX, n = t.substring(s.length);
11621
+ if (K.isModelSapceName(t))
11622
+ e = K.MODEL_SPACE_NAME;
11623
+ else if (K.isPaperSapceName(t)) {
11624
+ const s = K.PAPER_SPACE_NAME_PREFIX, n = t.substring(s.length);
11622
11625
  e = s + n;
11623
11626
  }
11624
11627
  return e;
@@ -12097,7 +12100,7 @@ li.DEFAULT_DIM_VALUES = {
12097
12100
  dimfit: 0,
12098
12101
  dimupt: 0,
12099
12102
  dimatfit: 3,
12100
- dimtxsty: $,
12103
+ dimtxsty: it,
12101
12104
  dimldrblk: "",
12102
12105
  dimblk: "",
12103
12106
  dimblk1: "",
@@ -12655,7 +12658,7 @@ const V = {
12655
12658
  ), ci = class ci {
12656
12659
  constructor() {
12657
12660
  this.registry = /* @__PURE__ */ new Map(), this.cache = /* @__PURE__ */ new Map(), this.events = {
12658
- sysVarChanged: new K()
12661
+ sysVarChanged: new q()
12659
12662
  }, this.registerVar({
12660
12663
  name: V.CECOLOR,
12661
12664
  type: "color",
@@ -12723,7 +12726,7 @@ const V = {
12723
12726
  name: V.TEXTSTYLE,
12724
12727
  type: "string",
12725
12728
  isDbVar: !0,
12726
- defaultValue: $
12729
+ defaultValue: it
12727
12730
  }), this.registerVar({
12728
12731
  name: V.WHITEBKCOLOR,
12729
12732
  type: "boolean",
@@ -12813,16 +12816,16 @@ let ai = ci;
12813
12816
  class uu extends le {
12814
12817
  constructor() {
12815
12818
  super({ objectId: "0" }), this.events = {
12816
- dictObjetSet: new K(),
12817
- dictObjectErased: new K(),
12818
- entityAppended: new K(),
12819
- entityModified: new K(),
12820
- entityErased: new K(),
12821
- layerAppended: new K(),
12822
- layerModified: new K(),
12823
- layerErased: new K(),
12824
- openProgress: new K()
12825
- }, this._version = new kt("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = zr.DecimalDegrees, this._celtscale = 1, this._cecolor = new nt(), this._celweight = Ge.ByLayer, this._clayer = "0", this._textstyle = $, this._extents = new C(), this._insunits = ua.Millimeters, this._ltscale = 1, this._lwdisplay = !1, this._pdmode = 0, this._pdsize = 0, this._osmode = 0, this._maxHandle = 0, this._tables = {
12819
+ dictObjetSet: new q(),
12820
+ dictObjectErased: new q(),
12821
+ entityAppended: new q(),
12822
+ entityModified: new q(),
12823
+ entityErased: new q(),
12824
+ layerAppended: new q(),
12825
+ layerModified: new q(),
12826
+ layerErased: new q(),
12827
+ openProgress: new q()
12828
+ }, this._version = new kt("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = zr.DecimalDegrees, this._celtscale = 1, this._cecolor = new nt(), this._celweight = Ge.ByLayer, this._clayer = "0", this._textstyle = it, this._extents = new C(), this._insunits = ua.Millimeters, this._ltscale = 1, this._lwdisplay = !1, this._pdmode = 0, this._pdsize = 0, this._osmode = 0, this._maxHandle = 0, this._tables = {
12826
12829
  appIdTable: new gl(this),
12827
12830
  blockTable: new el(this),
12828
12831
  dimStyleTable: new sl(this),
@@ -12990,7 +12993,7 @@ class uu extends le {
12990
12993
  this.updateSysVar(
12991
12994
  V.TEXTSTYLE,
12992
12995
  this._textstyle,
12993
- t ?? $,
12996
+ t ?? it,
12994
12997
  (e) => {
12995
12998
  this._textstyle = e;
12996
12999
  }
@@ -13239,9 +13242,9 @@ class uu extends le {
13239
13242
  description: "Solid line",
13240
13243
  totalPatternLength: 0
13241
13244
  })
13242
- ), this.tables.textStyleTable.has($) || this.tables.textStyleTable.add(
13245
+ ), this.tables.textStyleTable.has(it) || this.tables.textStyleTable.add(
13243
13246
  new pn({
13244
- name: $,
13247
+ name: it,
13245
13248
  standardFlag: 0,
13246
13249
  fixedTextHeight: 0,
13247
13250
  widthFactor: 1,
@@ -13252,10 +13255,10 @@ class uu extends le {
13252
13255
  bigFont: "",
13253
13256
  extendedFont: "SimKai"
13254
13257
  })
13255
- ), this.tables.dimStyleTable.has($) || this.tables.dimStyleTable.add(
13258
+ ), this.tables.dimStyleTable.has(it) || this.tables.dimStyleTable.add(
13256
13259
  new De({
13257
- name: $,
13258
- dimtxsty: $
13260
+ name: it,
13261
+ dimtxsty: it
13259
13262
  })
13260
13263
  ), !this.tables.viewportTable.has("*Active")) {
13261
13264
  const e = new ga();
@@ -13365,7 +13368,7 @@ class uu extends le {
13365
13368
  const a = [...n];
13366
13369
  t.startTable(e), s.dxfOut(t);
13367
13370
  for (const o of a) {
13368
- if (r === "BLOCK_RECORD" && o instanceof Z) {
13371
+ if (r === "BLOCK_RECORD" && o instanceof K) {
13369
13372
  o.dxfOutBlockRecord(t);
13370
13373
  continue;
13371
13374
  }
@@ -13725,11 +13728,11 @@ class pu extends pa {
13725
13728
  return super.dxfOutFields(t), t.writeSubclassMarker("AcDbViewTableRecord"), t.writeString(2, this.name), t.writeInt16(70, this.standardFlags), t.writeDouble(40, this.gsView.viewHeight), t.writePoint2d(10, this.centerPoint), t.writeDouble(41, this.viewWidth), t.writePoint3d(11, this.gsView.viewDirectionFromTarget), t.writePoint3d(12, this.gsView.viewTarget), t.writeDouble(42, this.gsView.lensLength), t.writeDouble(43, this.gsView.frontClippingPlane), t.writeDouble(44, this.gsView.backClippingPlane), t.writeAngle(50, this.gsView.viewTwistAngle), t.writeInt16(71, this.gsView.viewMode), t.writeInt16(281, this.gsView.renderMode), t.writeInt16(72, this.ucsAssociated ? 1 : 0), t.writeInt16(73, this.cameraPlottable ? 1 : 0), t.writeObjectId(332, this.backgroundObjectId), t.writeObjectId(334, this.liveSectionObjectId), t.writeObjectId(348, this.gsView.visualStyleObjectId), this.ucsAssociated && (t.writePoint3d(110, this.gsView.ucsOrigin), t.writePoint3d(111, this.gsView.ucsXAxis), t.writePoint3d(112, this.gsView.ucsYAxis), t.writeInt16(79, this.gsView.orthographicType), t.writeDouble(146, this.ucsElevation), t.writeObjectId(345, this.ucsObjectId), t.writeObjectId(346, this.ucsBaseObjectId)), this;
13726
13729
  }
13727
13730
  }
13728
- var J, Ue, U, q, Xe, At, me, Ft, ot, Rt, Tt, ye, _e, we, _t, zt, Ye, $e, xe, fe, qe, Ke, Ze, wt, Vt, D, be, Qe, v, ht, Je, lt, ts, jt, j, es, Wt, Ie, Pi, Si, vt, ss, Ee, xt, Gt, Dt, Ht, is, ns, Ut, Pe, Se, Mi, rs, Me, Xt, Ae, tt, Yt, ft, Ai, et, Ti, $t, bt, Te, as, ve, It, qt, Et, Kt, vi, ke, Pt;
13729
- (J = {})[J.None = 0] = "None", J[J.Anonymous = 1] = "Anonymous", J[J.NonConstant = 2] = "NonConstant", J[J.Xref = 4] = "Xref", J[J.XrefOverlay = 8] = "XrefOverlay", J[J.ExternallyDependent = 16] = "ExternallyDependent", J[J.ResolvedOrDependent = 32] = "ResolvedOrDependent", J[J.ReferencedXref = 64] = "ReferencedXref";
13731
+ var Q, Ue, U, $, Xe, At, me, Ft, ot, Rt, Tt, ye, _e, we, _t, zt, Ye, $e, xe, fe, qe, Ke, Ze, wt, Vt, D, be, Qe, v, ht, Je, lt, ts, jt, j, es, Wt, Ie, Pi, Si, vt, ss, Ee, xt, Gt, Dt, Ht, is, ns, Ut, Pe, Se, Mi, rs, Me, Xt, Ae, J, Yt, ft, Ai, tt, Ti, $t, bt, Te, as, ve, It, qt, Et, Kt, vi, ke, Pt;
13732
+ (Q = {})[Q.None = 0] = "None", Q[Q.Anonymous = 1] = "Anonymous", Q[Q.NonConstant = 2] = "NonConstant", Q[Q.Xref = 4] = "Xref", Q[Q.XrefOverlay = 8] = "XrefOverlay", Q[Q.ExternallyDependent = 16] = "ExternallyDependent", Q[Q.ResolvedOrDependent = 32] = "ResolvedOrDependent", Q[Q.ReferencedXref = 64] = "ReferencedXref";
13730
13733
  (Ue = {})[Ue.BYBLOCK = 0] = "BYBLOCK", Ue[Ue.BYLAYER = 256] = "BYLAYER";
13731
13734
  (U = {})[U.Rotated = 0] = "Rotated", U[U.Aligned = 1] = "Aligned", U[U.Angular = 2] = "Angular", U[U.Diameter = 3] = "Diameter", U[U.Radius = 4] = "Radius", U[U.Angular3Point = 5] = "Angular3Point", U[U.Ordinate = 6] = "Ordinate", U[U.ReferenceIsExclusive = 32] = "ReferenceIsExclusive", U[U.IsOrdinateXTypeFlag = 64] = "IsOrdinateXTypeFlag", U[U.IsCustomTextPositionFlag = 128] = "IsCustomTextPositionFlag";
13732
- (q = {})[q.TopLeft = 1] = "TopLeft", q[q.TopCenter = 2] = "TopCenter", q[q.TopRight = 3] = "TopRight", q[q.MiddleLeft = 4] = "MiddleLeft", q[q.MiddleCenter = 5] = "MiddleCenter", q[q.MiddleRight = 6] = "MiddleRight", q[q.BottomLeft = 7] = "BottomLeft", q[q.BottomCenter = 8] = "BottomCenter", q[q.BottomRight = 9] = "BottomRight";
13735
+ ($ = {})[$.TopLeft = 1] = "TopLeft", $[$.TopCenter = 2] = "TopCenter", $[$.TopRight = 3] = "TopRight", $[$.MiddleLeft = 4] = "MiddleLeft", $[$.MiddleCenter = 5] = "MiddleCenter", $[$.MiddleRight = 6] = "MiddleRight", $[$.BottomLeft = 7] = "BottomLeft", $[$.BottomCenter = 8] = "BottomCenter", $[$.BottomRight = 9] = "BottomRight";
13733
13736
  (Xe = {})[Xe.AtLeast = 1] = "AtLeast", Xe[Xe.Exact = 2] = "Exact";
13734
13737
  var Ir = ((At = {})[At.Center = 0] = "Center", At[At.Above = 1] = "Above", At[At.Outside = 2] = "Outside", At[At.JIS = 3] = "JIS", At[At.Below = 4] = "Below", At);
13735
13738
  (me = {})[me.WithDimension = 0] = "WithDimension", me[me.AddLeader = 1] = "AddLeader", me[me.Independent = 2] = "Independent";
@@ -14395,7 +14398,7 @@ class ho {
14395
14398
  }
14396
14399
  }
14397
14400
  oo(ho, "ForEntityName", "POLYLINE");
14398
- (tt = {})[tt.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", tt[tt.CURVE_FIT = 2] = "CURVE_FIT", tt[tt.SPLINE_FIT = 4] = "SPLINE_FIT", tt[tt.POLYLINE_3D = 8] = "POLYLINE_3D", tt[tt.POLYGON_3D = 16] = "POLYGON_3D", tt[tt.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", tt[tt.POLYFACE = 64] = "POLYFACE", tt[tt.CONTINUOUS = 128] = "CONTINUOUS";
14401
+ (J = {})[J.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", J[J.CURVE_FIT = 2] = "CURVE_FIT", J[J.SPLINE_FIT = 4] = "SPLINE_FIT", J[J.POLYLINE_3D = 8] = "POLYLINE_3D", J[J.POLYGON_3D = 16] = "POLYGON_3D", J[J.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", J[J.POLYFACE = 64] = "POLYFACE", J[J.CONTINUOUS = 128] = "CONTINUOUS";
14399
14402
  var Bs = ((Yt = {})[Yt.NONE = 0] = "NONE", Yt[Yt.QUADRATIC = 5] = "QUADRATIC", Yt[Yt.CUBIC = 6] = "CUBIC", Yt[Yt.BEZIER = 8] = "BEZIER", Yt);
14400
14403
  function lo(i, t, e) {
14401
14404
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
@@ -14687,7 +14690,7 @@ class So {
14687
14690
  }
14688
14691
  }
14689
14692
  Po(So, "ForEntityName", "TOLERANCE");
14690
- var Zc = ((et = {})[et.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", et[et.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", et[et.NOT_USED = 4] = "NOT_USED", et[et.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", et[et.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", et[et.FOR_POLYLINE = 32] = "FOR_POLYLINE", et[et.FOR_POLYGON = 64] = "FOR_POLYGON", et[et.POLYFACE = 128] = "POLYFACE", et);
14693
+ var Zc = ((tt = {})[tt.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", tt[tt.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", tt[tt.NOT_USED = 4] = "NOT_USED", tt[tt.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", tt[tt.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", tt[tt.FOR_POLYLINE = 32] = "FOR_POLYLINE", tt[tt.FOR_POLYGON = 64] = "FOR_POLYGON", tt[tt.POLYFACE = 128] = "POLYFACE", tt);
14691
14694
  let Qc = [{ code: [335, 343, 344, 91], name: "softPointers", isMultiple: !0, parser: h }, { code: 361, name: "sunId", parser: h }, { code: 431, name: "ambientLightColorName", parser: h }, { code: 421, name: "ambientLightColorInstance", parser: h }, { code: 63, name: "ambientLightColorIndex", parser: h }, { code: 142, name: "contrast", parser: h }, { code: 141, name: "brightness", parser: h }, { code: 282, name: "defaultLightingType", parser: h }, { code: 292, name: "isDefaultLighting", parser: L }, { code: 348, name: "visualStyleId", parser: h }, { code: 333, name: "shadePlotId", parser: h }, { code: 332, name: "backgroundId", parser: h }, { code: 61, name: "majorGridFrequency", parser: h }, { code: 170, name: "shadePlotMode", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 346, name: "ucsBaseId", parser: h }, { code: 345, name: "ucsId", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 74, name: "iconFlag", parser: h }, { code: 71, name: "ucsPerViewport", parser: h }, { code: 281, name: "renderMode", parser: h }, { code: 1, name: "sheetName", parser: h }, { code: 340, name: "clippingBoundaryId", parser: h }, { code: 90, name: "statusBitFlags", parser: h }, { code: 331, name: "frozenLayerIds", isMultiple: !0, parser: h }, { code: 72, name: "circleZoomPercent", parser: h }, { code: 51, name: "viewTwistAngle", parser: h }, { code: 50, name: "snapAngle", parser: h }, { code: 45, name: "viewHeight", parser: h }, { code: 44, name: "backClipZ", parser: h }, { code: 43, name: "frontClipZ", parser: h }, { code: 42, name: "perspectiveLensLength", parser: h }, { code: 17, name: "targetPoint", parser: _ }, { code: 16, name: "viewDirection", parser: _ }, { code: 15, name: "gridSpacing", parser: _ }, { code: 14, name: "snapSpacing", parser: _ }, { code: 13, name: "snapBase", parser: _ }, { code: 12, name: "displayCenter", parser: _ }, { code: 69, name: "viewportId", parser: h }, { code: 68, name: "status", parser: h }, { code: 41, name: "height", parser: h }, { code: 40, name: "width", parser: h }, { code: 10, name: "viewportCenter", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...R];
14692
14695
  class Ks {
14693
14696
  parseEntity(t, e) {
@@ -15050,7 +15053,7 @@ class Tr {
15050
15053
  );
15051
15054
  }
15052
15055
  convertAttributeCommon(t, e) {
15053
- e.textString = t.text, e.height = t.textHeight, e.position.copy(t.startPoint), e.rotation = t.rotation, e.oblique = t.obliqueAngle ?? 0, e.thickness = t.thickness, e.tag = t.tag, e.fieldLength = 0, e.isInvisible = (t.attributeFlag & st.Invisible) !== 0, e.isConst = (t.attributeFlag & st.Const) !== 0, e.isVerifiable = (t.attributeFlag & st.Verifiable) !== 0, e.isPreset = (t.attributeFlag & st.Preset) !== 0, e.isReallyLocked = !!t.isReallyLocked, e.isMTextAttribute = (t.mtextFlag & Jt.MultiLine) !== 0, e.isConstMTextAttribute = (t.mtextFlag & Jt.ConstMultiLine) !== 0;
15056
+ e.textString = t.text, e.height = t.textHeight, e.position.copy(t.startPoint), e.rotation = t.rotation, e.oblique = t.obliqueAngle ?? 0, e.thickness = t.thickness, e.tag = t.tag, e.fieldLength = 0, e.isInvisible = (t.attributeFlag & et.Invisible) !== 0, e.isConst = (t.attributeFlag & et.Const) !== 0, e.isVerifiable = (t.attributeFlag & et.Verifiable) !== 0, e.isPreset = (t.attributeFlag & et.Preset) !== 0, e.isReallyLocked = !!t.isReallyLocked, e.isMTextAttribute = (t.mtextFlag & Jt.MultiLine) !== 0, e.isConstMTextAttribute = (t.mtextFlag & Jt.ConstMultiLine) !== 0;
15054
15057
  }
15055
15058
  convertAttribute(t) {
15056
15059
  const e = new Hi();
@@ -15423,7 +15426,7 @@ class Nd {
15423
15426
  })(), t.shadePlotCustomDPI != null && (s.shadePlotCustomDPI = t.shadePlotCustomDPI), t.shadePlotId && (s.shadePlotId = t.shadePlotId);
15424
15427
  const n = t.layoutFlag ?? 0;
15425
15428
  if (s.plotViewportBorders = (n & 1) !== 0, s.showPlotStyles = (n & 2) !== 0, s.plotCentered = (n & 4) !== 0, s.plotHidden = (n & 8) !== 0, s.useStandardScale = (n & 16) !== 0, s.plotPlotStyles = (n & 32) !== 0, s.scaleLineweights = (n & 64) !== 0, s.printLineweights = (n & 128) !== 0, s.drawViewportsFirst = (n & 512) !== 0, s.modelType = (n & 1024) !== 0, t.viewportId && s.viewportArray.push(t.viewportId), t.layoutName === "Model") {
15426
- const o = Z.MODEL_SPACE_NAME.toUpperCase();
15429
+ const o = K.MODEL_SPACE_NAME.toUpperCase();
15427
15430
  (r = e.tables.BLOCK_RECORD) == null || r.entries.some((l) => l.name.toUpperCase() === o ? (s.blockTableRecordId = l.handle, !0) : !1);
15428
15431
  } else
15429
15432
  (a = e.tables.BLOCK_RECORD) == null || a.entries.some((o) => o.layoutObjects === t.handle ? (s.blockTableRecordId = o.handle, !0) : !1), s.blockTableRecordId || (s.blockTableRecordId = t.paperSpaceTableId);
@@ -15740,18 +15743,18 @@ class Fd extends ya {
15740
15743
  const s = t.blocks;
15741
15744
  for (const [n, r] of Object.entries(s)) {
15742
15745
  let a = e.tables.blockTable.getAt(r.name);
15743
- a || (a = new Z(), a.objectId = r.handle, a.name = n, a.origin.copy(r.position), e.tables.blockTable.add(a)), r.entities ? this.processEntitiesInBlock(r.entities, a) : a.isPaperSapce && this.processEntitiesInBlock(t.entities, a, !0);
15746
+ a || (a = new K(), a.objectId = r.handle, a.name = n, a.origin.copy(r.position), e.tables.blockTable.add(a)), r.entities ? this.processEntitiesInBlock(r.entities, a) : a.isPaperSapce && this.processEntitiesInBlock(t.entities, a, !0);
15744
15747
  }
15745
15748
  }
15746
15749
  processHeader(t, e) {
15747
15750
  const s = t.header;
15748
- s.$ACADVER && (e.version = s.$ACADVER), e.cecolor.colorIndex = s.$CECOLOR || 256, e.angBase = s.$ANGBASE || 0, e.angDir = s.$ANGDIR || 0, s.$AUNITS != null && (e.aunits = s.$AUNITS), e.celtscale = s.$CELTSCALE || 1, e.ltscale = s.$LTSCALE || 1, s.$EXTMAX && (e.extmax = s.$EXTMAX), s.$EXTMIN && (e.extmin = s.$EXTMIN), s.$INSUNITS != null && (e.insunits = s.$INSUNITS), e.osmode = s.$OSMODE || 0, e.pdmode = s.$PDMODE || 0, e.pdsize = s.$PDSIZE || 0, e.textstyle = s.$TEXTSTYLE || $;
15751
+ s.$ACADVER && (e.version = s.$ACADVER), e.cecolor.colorIndex = s.$CECOLOR || 256, e.angBase = s.$ANGBASE || 0, e.angDir = s.$ANGDIR || 0, s.$AUNITS != null && (e.aunits = s.$AUNITS), e.celtscale = s.$CELTSCALE || 1, e.ltscale = s.$LTSCALE || 1, s.$EXTMAX && (e.extmax = s.$EXTMAX), s.$EXTMIN && (e.extmin = s.$EXTMIN), s.$INSUNITS != null && (e.insunits = s.$INSUNITS), e.osmode = s.$OSMODE || 0, e.pdmode = s.$PDMODE || 0, e.pdsize = s.$PDSIZE || 0, e.textstyle = s.$TEXTSTYLE || it;
15749
15752
  }
15750
15753
  processBlockTables(t, e) {
15751
15754
  var n;
15752
15755
  const s = (n = t.tables.BLOCK_RECORD) == null ? void 0 : n.entries;
15753
15756
  s && s.length > 0 && (e.tables.blockTable.removeAll(), s.forEach((r) => {
15754
- const a = new Z();
15757
+ const a = new K();
15755
15758
  a.objectId = r.handle, a.name = r.name, a.layoutId = r.layoutObjects, a.blockInsertUnits = r.insertionUnits, a.explodability = r.explodability, a.blockScaling = r.scalability, r.bmpPreview && (a.bmpPreview = r.bmpPreview), e.tables.blockTable.add(a);
15756
15759
  }));
15757
15760
  }
@@ -15906,7 +15909,7 @@ class Fd extends ya {
15906
15909
  dimfit: a.DIMFIT || 0,
15907
15910
  dimupt: a.DIMUPT,
15908
15911
  dimatfit: a.DIMATFIT,
15909
- dimtxsty: a.DIMTXSTY || $,
15912
+ dimtxsty: a.DIMTXSTY || it,
15910
15913
  dimldrblk: a.DIMLDRBLK || "",
15911
15914
  dimblk: a.DIMBLK || "",
15912
15915
  dimblk1: a.DIMBLK1 || "",
@@ -16032,7 +16035,7 @@ export {
16032
16035
  Vd as AcCmEntityColor,
16033
16036
  St as AcCmErrors,
16034
16037
  jd as AcCmEventDispatcher,
16035
- K as AcCmEventManager,
16038
+ q as AcCmEventManager,
16036
16039
  Yd as AcCmLoader,
16037
16040
  Ho as AcCmLoadingManager,
16038
16041
  Wo as AcCmObject,
@@ -16055,14 +16058,14 @@ export {
16055
16058
  xr as AcDbArcDimension,
16056
16059
  Hi as AcDbAttribute,
16057
16060
  Di as AcDbAttributeDefinition,
16058
- st as AcDbAttributeFlags,
16061
+ et as AcDbAttributeFlags,
16059
16062
  Jt as AcDbAttributeMTextFlag,
16060
16063
  gu as AcDbBaseWorker,
16061
16064
  Rr as AcDbBatchProcessing,
16062
16065
  _s as AcDbBlockReference,
16063
16066
  qh as AcDbBlockScaling,
16064
16067
  el as AcDbBlockTable,
16065
- Z as AcDbBlockTableRecord,
16068
+ K as AcDbBlockTableRecord,
16066
16069
  Ui as AcDbCircle,
16067
16070
  Vr as AcDbCodePage,
16068
16071
  at as AcDbCurve,
@@ -16177,7 +16180,7 @@ export {
16177
16180
  ti as AcGeLoop2d,
16178
16181
  N as AcGeMathUtil,
16179
16182
  ui as AcGeMatrix2d,
16180
- it as AcGeMatrix3d,
16183
+ st as AcGeMatrix3d,
16181
16184
  Lt as AcGeNurbsCurve,
16182
16185
  pi as AcGePlane,
16183
16186
  k as AcGePoint2d,
@@ -16202,7 +16205,7 @@ export {
16202
16205
  ps as ByLayer,
16203
16206
  Dd as DEBUG_MODE,
16204
16207
  us as DEFAULT_LINE_TYPE,
16205
- $ as DEFAULT_TEXT_STYLE,
16208
+ it as DEFAULT_TEXT_STYLE,
16206
16209
  qr as DEFAULT_TOL,
16207
16210
  jr as DEG2RAD,
16208
16211
  Uo as DefaultLoadingManager,
@@ -1 +1 @@
1
- {"version":3,"file":"AcDbMText.d.ts","sourceRoot":"","sources":["../../src/entity/AcDbMText.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EACT,YAAY,EAEZ,eAAe,EACf,YAAY,EACZ,gBAAgB,EACjB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,YAAY,EAAiB,MAAM,8BAA8B,CAAA;AAC1E,OAAO,EACL,wBAAwB,EAExB,sBAAsB,EACvB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,EAAE,aAAa,EAAsB,MAAM,SAAS,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,SAAU,SAAQ,UAAU;IACvC,2BAA2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