@mlightcad/data-model 1.5.5 → 1.6.0

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.
@@ -2260,29 +2260,29 @@ class Ns {
2260
2260
  * );
2261
2261
  * ```
2262
2262
  */
2263
- draw(t, e, n, a = !0, h) {
2264
- var m;
2265
- const c = [];
2263
+ draw(t, e, n, a = !0, h, c) {
2264
+ var b;
2265
+ const m = [];
2266
2266
  if (e != null) {
2267
- const b = this.createKey(e.name, n);
2268
- let f;
2269
- if (this.has(b))
2270
- f = this.get(b);
2267
+ const f = this.createKey(e.name, n);
2268
+ let w;
2269
+ if (this.has(f))
2270
+ w = this.get(f);
2271
2271
  else {
2272
- const w = (m = t.basePoint) == null ? void 0 : m.clone();
2272
+ const x = (b = t.basePoint) == null ? void 0 : b.clone();
2273
2273
  t.basePoint = void 0;
2274
- const x = e.newIterator();
2275
- let I = !0;
2276
- for (const M of x)
2277
- if (M.color.isByBlock && n ? (Eo.copy(M.color), M.color.setRGBValue(n), this.addEntity(M, c, t), M.color.copy(Eo)) : this.addEntity(M, c, t), I) {
2278
- const L = c[0];
2279
- t.basePoint = L.basePoint, I = !1;
2274
+ const I = e.newIterator();
2275
+ let M = !0;
2276
+ for (const L of I)
2277
+ if (L.color.isByBlock && n ? (Eo.copy(L.color), L.color.setRGBValue(n), this.addEntity(L, m, t), L.color.copy(Eo)) : this.addEntity(L, m, t), M) {
2278
+ const O = m[0];
2279
+ t.basePoint = O.basePoint, M = !1;
2280
2280
  }
2281
- f = t.group(c), f && a && me.name && !me.name.startsWith("*U") && this.set(b, f), t.basePoint = w;
2281
+ w = t.group(m), w && a && me.name && !me.name.startsWith("*U") && this.set(f, w), t.basePoint = x;
2282
2282
  }
2283
- return f && h && f.applyMatrix(h), f;
2283
+ return w && h && (w.applyMatrix(h), c && (c.x != 0 || c.y != 0 || c.z != 1) && (h.setFromExtrusionDirection(c), w.applyMatrix(h))), w;
2284
2284
  } else
2285
- return t.group(c);
2285
+ return t.group(m);
2286
2286
  }
2287
2287
  addEntity(t, e, n) {
2288
2288
  const a = t.worldDraw(n);
@@ -5074,7 +5074,7 @@ const Ei = /* @__PURE__ */ new K(), ko = /* @__PURE__ */ new zn(), Wi = class ml
5074
5074
  */
5075
5075
  lookAt(t, e, n) {
5076
5076
  const a = this.elements;
5077
- return Ue.subVectors(t, e), Ue.lengthSq() === 0 && (Ue.z = 1), Ue.normalize(), Wr.crossVectors(n, Ue), Wr.lengthSq() === 0 && (Math.abs(n.z) === 1 ? Ue.x += 1e-4 : Ue.z += 1e-4, Ue.normalize(), Wr.crossVectors(n, Ue)), Wr.normalize(), Ds.crossVectors(Ue, Wr), a[0] = Wr.x, a[4] = Ds.x, a[8] = Ue.x, a[1] = Wr.y, a[5] = Ds.y, a[9] = Ue.y, a[2] = Wr.z, a[6] = Ds.z, a[10] = Ue.z, this;
5077
+ return De.subVectors(t, e), De.lengthSq() === 0 && (De.z = 1), De.normalize(), Wr.crossVectors(n, De), Wr.lengthSq() === 0 && (Math.abs(n.z) === 1 ? De.x += 1e-4 : De.z += 1e-4, De.normalize(), Wr.crossVectors(n, De)), Wr.normalize(), Ds.crossVectors(De, Wr), a[0] = Wr.x, a[4] = Ds.x, a[8] = De.x, a[1] = Wr.y, a[5] = Ds.y, a[9] = De.y, a[2] = Wr.z, a[6] = Ds.z, a[10] = De.z, this;
5078
5078
  }
5079
5079
  /**
5080
5080
  * Post-multiply this matrix by m.
@@ -5099,8 +5099,8 @@ const Ei = /* @__PURE__ */ new K(), ko = /* @__PURE__ */ new zn(), Wi = class ml
5099
5099
  * @returns Return this matrix
5100
5100
  */
5101
5101
  multiplyMatrices(t, e) {
5102
- const n = t.elements, a = e.elements, h = this.elements, c = n[0], m = n[4], b = n[8], f = n[12], w = n[1], x = n[5], I = n[9], M = n[13], L = n[2], O = n[6], D = n[10], F = n[14], dt = n[3], vt = n[7], ot = n[11], H = n[15], ct = a[0], st = a[4], Gt = a[8], Kt = a[12], qt = a[1], wt = a[5], Bt = a[9], ge = a[13], fe = a[2], Be = a[6], re = a[10], le = a[14], Q = a[3], Tt = a[7], he = a[11], mr = a[15];
5103
- return h[0] = c * ct + m * qt + b * fe + f * Q, h[4] = c * st + m * wt + b * Be + f * Tt, h[8] = c * Gt + m * Bt + b * re + f * he, h[12] = c * Kt + m * ge + b * le + f * mr, h[1] = w * ct + x * qt + I * fe + M * Q, h[5] = w * st + x * wt + I * Be + M * Tt, h[9] = w * Gt + x * Bt + I * re + M * he, h[13] = w * Kt + x * ge + I * le + M * mr, h[2] = L * ct + O * qt + D * fe + F * Q, h[6] = L * st + O * wt + D * Be + F * Tt, h[10] = L * Gt + O * Bt + D * re + F * he, h[14] = L * Kt + O * ge + D * le + F * mr, h[3] = dt * ct + vt * qt + ot * fe + H * Q, h[7] = dt * st + vt * wt + ot * Be + H * Tt, h[11] = dt * Gt + vt * Bt + ot * re + H * he, h[15] = dt * Kt + vt * ge + ot * le + H * mr, this;
5102
+ const n = t.elements, a = e.elements, h = this.elements, c = n[0], m = n[4], b = n[8], f = n[12], w = n[1], x = n[5], I = n[9], M = n[13], L = n[2], O = n[6], D = n[10], F = n[14], dt = n[3], vt = n[7], ot = n[11], H = n[15], ct = a[0], st = a[4], Gt = a[8], Kt = a[12], qt = a[1], wt = a[5], Bt = a[9], ge = a[13], fe = a[2], Oe = a[6], re = a[10], le = a[14], Q = a[3], Tt = a[7], he = a[11], mr = a[15];
5103
+ return h[0] = c * ct + m * qt + b * fe + f * Q, h[4] = c * st + m * wt + b * Oe + f * Tt, h[8] = c * Gt + m * Bt + b * re + f * he, h[12] = c * Kt + m * ge + b * le + f * mr, h[1] = w * ct + x * qt + I * fe + M * Q, h[5] = w * st + x * wt + I * Oe + M * Tt, h[9] = w * Gt + x * Bt + I * re + M * he, h[13] = w * Kt + x * ge + I * le + M * mr, h[2] = L * ct + O * qt + D * fe + F * Q, h[6] = L * st + O * wt + D * Oe + F * Tt, h[10] = L * Gt + O * Bt + D * re + F * he, h[14] = L * Kt + O * ge + D * le + F * mr, h[3] = dt * ct + vt * qt + ot * fe + H * Q, h[7] = dt * st + vt * wt + ot * Oe + H * Tt, h[11] = dt * Gt + vt * Bt + ot * re + H * he, h[15] = dt * Kt + vt * ge + ot * le + H * mr, this;
5104
5104
  }
5105
5105
  /**
5106
5106
  * Multiply every component of the matrix by a scalar value s.
@@ -5410,8 +5410,8 @@ const Ei = /* @__PURE__ */ new K(), ko = /* @__PURE__ */ new zn(), Wi = class ml
5410
5410
  }
5411
5411
  };
5412
5412
  Wi.IDENTITY = Object.freeze(new Wi());
5413
- let Ne = Wi;
5414
- const Nn = /* @__PURE__ */ new K(), sr = /* @__PURE__ */ new Ne(), qc = /* @__PURE__ */ new K(0, 0, 0), Yc = /* @__PURE__ */ new K(1, 1, 1), Wr = /* @__PURE__ */ new K(), Ds = /* @__PURE__ */ new K(), Ue = /* @__PURE__ */ new K();
5413
+ let Ke = Wi;
5414
+ const Nn = /* @__PURE__ */ new K(), sr = /* @__PURE__ */ new Ke(), qc = /* @__PURE__ */ new K(0, 0, 0), Yc = /* @__PURE__ */ new K(1, 1, 1), Wr = /* @__PURE__ */ new K(), Ds = /* @__PURE__ */ new K(), De = /* @__PURE__ */ new K();
5415
5415
  class Lt {
5416
5416
  /**
5417
5417
  * Create a 3d box bounded by min and max.
@@ -6093,7 +6093,7 @@ class G extends K {
6093
6093
  }), a;
6094
6094
  }
6095
6095
  }
6096
- const No = /* @__PURE__ */ new Ne(), Lo = /* @__PURE__ */ new zn(), gl = class Hi {
6096
+ const No = /* @__PURE__ */ new Ke(), Lo = /* @__PURE__ */ new zn(), gl = class Hi {
6097
6097
  /**
6098
6098
  * Create one instance of this class
6099
6099
  * @param x (optional) the angle of the x axis in radians. Default is 0.
@@ -6836,7 +6836,7 @@ class $c extends fl {
6836
6836
  * Translation vector may be also defined by a pair of numbers.
6837
6837
  */
6838
6838
  translate(t) {
6839
- return this.transform(new Ne().makeTranslation(t.x, t.y, t.z));
6839
+ return this.transform(new Ke().makeTranslation(t.x, t.y, t.z));
6840
6840
  }
6841
6841
  /**
6842
6842
  * The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding
@@ -8420,7 +8420,7 @@ var wl = { exports: {} };
8420
8420
  }
8421
8421
  this.buf.b += "h";
8422
8422
  break;
8423
- case Be:
8423
+ case Oe:
8424
8424
  for (var j = r, $ = 0, tt = j.length - 2, et = new vt(), it = Kt.BASE64; $ < tt; ) {
8425
8425
  var ht = j.get($++), at = j.get($++), ut = j.get($++);
8426
8426
  et.add(it.charAt(ht >> 2)), et.add(it.charAt((ht << 4 | at >> 4) & 63)), et.add(it.charAt((at << 2 | ut >> 6) & 63)), et.add(it.charAt(ut & 63));
@@ -8656,19 +8656,19 @@ var wl = { exports: {} };
8656
8656
  X == null && (X = qt.initCodes(), qt.CODES = X);
8657
8657
  var ft = this.pos, Et = nt & 3, Ht;
8658
8658
  Ht = (nt >> 2) * 3 + (Et >= 2 ? Et - 1 : 0);
8659
- for (var $t = ft + (nt - Et), Vt = Be.alloc(Ht), Zt = 0; ft < $t; ) {
8660
- var Me = X[ot.fastCodeAt(pt, ft++)], Ke = X[ot.fastCodeAt(pt, ft++)];
8661
- Vt.set(Zt++, Me << 2 | Ke >> 4);
8659
+ for (var $t = ft + (nt - Et), Vt = Oe.alloc(Ht), Zt = 0; ft < $t; ) {
8660
+ var Me = X[ot.fastCodeAt(pt, ft++)], Xe = X[ot.fastCodeAt(pt, ft++)];
8661
+ Vt.set(Zt++, Me << 2 | Xe >> 4);
8662
8662
  var be = X[ot.fastCodeAt(pt, ft++)];
8663
- Vt.set(Zt++, Ke << 4 | be >> 2);
8663
+ Vt.set(Zt++, Xe << 4 | be >> 2);
8664
8664
  var ye = X[ot.fastCodeAt(pt, ft++)];
8665
8665
  Vt.set(Zt++, be << 6 | ye);
8666
8666
  }
8667
8667
  if (Et >= 2) {
8668
- var ke = X[ot.fastCodeAt(pt, ft++)], De = X[ot.fastCodeAt(pt, ft++)];
8669
- if (Vt.set(Zt++, ke << 2 | De >> 4), Et == 3) {
8668
+ var ke = X[ot.fastCodeAt(pt, ft++)], Fe = X[ot.fastCodeAt(pt, ft++)];
8669
+ if (Vt.set(Zt++, ke << 2 | Fe >> 4), Et == 3) {
8670
8670
  var tr = X[ot.fastCodeAt(pt, ft++)];
8671
- Vt.set(Zt++, De << 4 | tr >> 2);
8671
+ Vt.set(Zt++, Fe << 4 | tr >> 2);
8672
8672
  }
8673
8673
  }
8674
8674
  return this.pos += nt, this.cache.push(Vt), Vt;
@@ -8761,19 +8761,19 @@ var wl = { exports: {} };
8761
8761
  },
8762
8762
  __class__: fe
8763
8763
  };
8764
- var Be = function(r) {
8764
+ var Oe = function(r) {
8765
8765
  this.length = r.byteLength, this.b = new vi(r), this.b.bufferValue = r, r.hxBytes = this, r.bytes = this.b;
8766
8766
  };
8767
- x["haxe.io.Bytes"] = Be, Be.__name__ = ["haxe", "io", "Bytes"], Be.alloc = function(r) {
8768
- return new Be(new Rs(r));
8769
- }, Be.prototype = {
8767
+ x["haxe.io.Bytes"] = Oe, Oe.__name__ = ["haxe", "io", "Bytes"], Oe.alloc = function(r) {
8768
+ return new Oe(new Rs(r));
8769
+ }, Oe.prototype = {
8770
8770
  get: function(r) {
8771
8771
  return this.b[r];
8772
8772
  },
8773
8773
  set: function(r, s) {
8774
8774
  this.b[r] = s & 255;
8775
8775
  },
8776
- __class__: Be
8776
+ __class__: Oe
8777
8777
  };
8778
8778
  var re = x["haxe.io.Error"] = { __ename__: ["haxe", "io", "Error"], __constructs__: ["Blocked", "Overflow", "OutsideBounds", "Custom"] };
8779
8779
  re.Blocked = ["Blocked", 0], re.Blocked.toString = I, re.Blocked.__enum__ = re, re.Overflow = ["Overflow", 1], re.Overflow.toString = I, re.Overflow.__enum__ = re, re.OutsideBounds = ["OutsideBounds", 2], re.OutsideBounds.toString = I, re.OutsideBounds.__enum__ = re, re.Custom = function(r) {
@@ -9096,7 +9096,7 @@ var wl = { exports: {} };
9096
9096
  if (!l) {
9097
9097
  l = !0;
9098
9098
  var g = o(d);
9099
- g._update.push({ async: s, linkf: Fe(s, s.handleResolve) }), kt.immediateLinkUpdate(g, s, function(_) {
9099
+ g._update.push({ async: s, linkf: Re(s, s.handleResolve) }), kt.immediateLinkUpdate(g, s, function(_) {
9100
9100
  return _;
9101
9101
  });
9102
9102
  }
@@ -9152,7 +9152,7 @@ var wl = { exports: {} };
9152
9152
  return function() {
9153
9153
  o(l);
9154
9154
  };
9155
- }(Fe(this, this._resolve), r)) : (this._resolved = !0, this._pending = !0, St.queue.add(function() {
9155
+ }(Re(this, this._resolve), r)) : (this._resolved = !0, this._pending = !0, St.queue.add(function() {
9156
9156
  s._val = r;
9157
9157
  for (var o = 0, l = s._update; o < l.length; ) {
9158
9158
  var u = l[o];
@@ -9286,8 +9286,8 @@ var wl = { exports: {} };
9286
9286
  var s = new _e();
9287
9287
  return this.catchError(function(o) {
9288
9288
  var l = r(o);
9289
- l.then(Fe(s, s._resolve));
9290
- }), this.then(Fe(s, s._resolve)), s;
9289
+ l.then(Re(s, s._resolve));
9290
+ }), this.then(Re(s, s._resolve)), s;
9291
9291
  },
9292
9292
  __class__: _e
9293
9293
  });
@@ -9359,14 +9359,14 @@ var wl = { exports: {} };
9359
9359
  var s = new Yt(null);
9360
9360
  return this.catchError(function(o) {
9361
9361
  var l = r(o);
9362
- l.then(Fe(s, s._resolve)), l._end_promise.then((_i = s._end_promise, Fe(_i, _i._resolve)));
9363
- }), this.then(Fe(s, s._resolve)), this._end_promise.then(function(o) {
9362
+ l.then(Re(s, s._resolve)), l._end_promise.then((_i = s._end_promise, Re(_i, _i._resolve)));
9363
+ }), this.then(Re(s, s._resolve)), this._end_promise.then(function(o) {
9364
9364
  s.end();
9365
9365
  }), s;
9366
9366
  },
9367
9367
  handleEnd: function() {
9368
9368
  if (this._pending)
9369
- St.queue.add(Fe(this, this.handleEnd)), St.continueOnNextLoop();
9369
+ St.queue.add(Re(this, this.handleEnd)), St.continueOnNextLoop();
9370
9370
  else {
9371
9371
  if (this._end_promise._resolved) return;
9372
9372
  this._end = !0;
@@ -9375,7 +9375,7 @@ var wl = { exports: {} };
9375
9375
  }
9376
9376
  },
9377
9377
  end: function() {
9378
- return St.queue.add(Fe(this, this.handleEnd)), St.continueOnNextLoop(), this;
9378
+ return St.queue.add(Re(this, this.handleEnd)), St.continueOnNextLoop(), this;
9379
9379
  },
9380
9380
  endThen: function(r) {
9381
9381
  return this._end_promise.then(r);
@@ -9393,7 +9393,7 @@ var wl = { exports: {} };
9393
9393
  },
9394
9394
  concat: function(r) {
9395
9395
  var s = new Yt(null);
9396
- return this._update.push({ async: s, linkf: Fe(s, s.handleResolve) }), kt.immediateLinkUpdate(this, s, function(o) {
9396
+ return this._update.push({ async: s, linkf: Re(s, s.handleResolve) }), kt.immediateLinkUpdate(this, s, function(o) {
9397
9397
  return o;
9398
9398
  }), this._end_promise.then(function(o) {
9399
9399
  r.pipe(function(l) {
@@ -9405,7 +9405,7 @@ var wl = { exports: {} };
9405
9405
  },
9406
9406
  merge: function(r) {
9407
9407
  var s = new Yt(null);
9408
- return this._update.push({ async: s, linkf: Fe(s, s.handleResolve) }), r._update.push({ async: s, linkf: Fe(s, s.handleResolve) }), kt.immediateLinkUpdate(this, s, function(o) {
9408
+ return this._update.push({ async: s, linkf: Re(s, s.handleResolve) }), r._update.push({ async: s, linkf: Re(s, s.handleResolve) }), kt.immediateLinkUpdate(this, s, function(o) {
9409
9409
  return o;
9410
9410
  }), kt.immediateLinkUpdate(r, s, function(o) {
9411
9411
  return o;
@@ -9536,18 +9536,18 @@ var wl = { exports: {} };
9536
9536
  }, Ft.memoize = function(r, s, o) {
9537
9537
  Ft.memo.h.hasOwnProperty(r) || Ft.memo.set(r, new wt()), Ft.memo.h[r].h[s] = o;
9538
9538
  };
9539
- var ze = f.core.BoundingBox = function(r) {
9539
+ var Be = f.core.BoundingBox = function(r) {
9540
9540
  this.max = null, this.min = null, this.dim = 3, this.initialized = !1, r != null && this.addRange(r);
9541
9541
  };
9542
- x["verb.core.BoundingBox"] = ze, ze.__name__ = ["verb", "core", "BoundingBox"], ze.intervalsOverlap = function(r, s, o, l, u) {
9542
+ x["verb.core.BoundingBox"] = Be, Be.__name__ = ["verb", "core", "BoundingBox"], Be.intervalsOverlap = function(r, s, o, l, u) {
9543
9543
  u == null && (u = -1);
9544
9544
  var d;
9545
9545
  u < -0.5 ? d = rt.TOLERANCE : d = u;
9546
9546
  var g = Math.min(r, s) - d, _ = Math.max(r, s) + d, y = Math.min(o, l) - d, A = Math.max(o, l) + d;
9547
9547
  return g >= y && g <= A || _ >= y && _ <= A || y >= g && y <= _ || A >= g && A <= _;
9548
- }, ze.prototype = {
9548
+ }, Be.prototype = {
9549
9549
  fromPoint: function(r) {
9550
- return new ze([r]);
9550
+ return new Be([r]);
9551
9551
  },
9552
9552
  add: function(r) {
9553
9553
  if (!this.initialized)
@@ -9566,13 +9566,13 @@ var wl = { exports: {} };
9566
9566
  return this;
9567
9567
  },
9568
9568
  contains: function(r, s) {
9569
- return s == null && (s = -1), this.initialized ? this.intersects(new ze([r]), s) : !1;
9569
+ return s == null && (s = -1), this.initialized ? this.intersects(new Be([r]), s) : !1;
9570
9570
  },
9571
9571
  intersects: function(r, s) {
9572
9572
  if (s == null && (s = -1), !this.initialized || !r.initialized) return !1;
9573
9573
  for (var o = this.min, l = this.max, u = r.min, d = r.max, g = 0, _ = this.dim; g < _; ) {
9574
9574
  var y = g++;
9575
- if (!ze.intervalsOverlap(o[y], l[y], u[y], d[y], s)) return !1;
9575
+ if (!Be.intervalsOverlap(o[y], l[y], u[y], d[y], s)) return !1;
9576
9576
  }
9577
9577
  return !0;
9578
9578
  },
@@ -9597,9 +9597,9 @@ var wl = { exports: {} };
9597
9597
  var S = y++;
9598
9598
  g.push(Math.min(l[S], d[S])), _.push(Math.max(o[S], u[S]));
9599
9599
  }
9600
- return new ze([_, g]);
9600
+ return new Be([_, g]);
9601
9601
  },
9602
- __class__: ze
9602
+ __class__: Be
9603
9603
  };
9604
9604
  var rt = f.core.Constants = function() {
9605
9605
  };
@@ -9711,13 +9711,13 @@ var wl = { exports: {} };
9711
9711
  x["verb.core.CurveTriPoint"] = bn, bn.__name__ = ["verb", "core", "CurveTriPoint"], bn.prototype = {
9712
9712
  __class__: bn
9713
9713
  };
9714
- var Ye = function(r, s, o, l, u) {
9714
+ var qe = function(r, s, o, l, u) {
9715
9715
  u == null && (u = !1), l == null && (l = -1), this.uv = o, this.point = r, this.normal = s, this.id = l, this.degen = u;
9716
9716
  };
9717
- x["verb.core.SurfacePoint"] = Ye, Ye.__name__ = ["verb", "core", "SurfacePoint"], Ye.fromUv = function(r, s) {
9718
- return new Ye(null, null, [r, s]);
9719
- }, Ye.prototype = {
9720
- __class__: Ye
9717
+ x["verb.core.SurfacePoint"] = qe, qe.__name__ = ["verb", "core", "SurfacePoint"], qe.fromUv = function(r, s) {
9718
+ return new qe(null, null, [r, s]);
9719
+ }, qe.prototype = {
9720
+ __class__: qe
9721
9721
  };
9722
9722
  var zs = f.core.CurvePoint = function(r, s) {
9723
9723
  this.u = r, this.pt = s;
@@ -9847,7 +9847,7 @@ var wl = { exports: {} };
9847
9847
  return new se(new hr(l[0], this._knotTol), new hr(l[1], this._knotTol));
9848
9848
  },
9849
9849
  boundingBox: function() {
9850
- return this._boundingBox == null && (this._boundingBox = new ze(C.dehomogenize1d(this._curve.controlPoints))), this._boundingBox;
9850
+ return this._boundingBox == null && (this._boundingBox = new Be(C.dehomogenize1d(this._curve.controlPoints))), this._boundingBox;
9851
9851
  },
9852
9852
  yield: function() {
9853
9853
  return this._curve;
@@ -9898,7 +9898,7 @@ var wl = { exports: {} };
9898
9898
  return new se(new ur(this._polyline, l), new ur(this._polyline, u));
9899
9899
  },
9900
9900
  boundingBox: function() {
9901
- return this._boundingBox == null && (this._boundingBox = new ze(this._polyline.points)), this._boundingBox;
9901
+ return this._boundingBox == null && (this._boundingBox = new Be(this._polyline.points)), this._boundingBox;
9902
9902
  },
9903
9903
  yield: function() {
9904
9904
  return this._interval.min;
@@ -9923,7 +9923,7 @@ var wl = { exports: {} };
9923
9923
  },
9924
9924
  boundingBox: function() {
9925
9925
  if (this._boundingBox == null) {
9926
- this._boundingBox = new ze();
9926
+ this._boundingBox = new Be();
9927
9927
  for (var r = 0, s = this._surface.controlPoints; r < s.length; ) {
9928
9928
  var o = s[r];
9929
9929
  ++r, this._boundingBox.addRange(C.dehomogenize1d(o));
@@ -10055,7 +10055,7 @@ var wl = { exports: {} };
10055
10055
  var o = r[s[0]], l = r[s[1]], u = r[s[2]], d = p.sub(l, o), g = p.sub(u, o), _ = p.cross(d, g);
10056
10056
  return p.mul(1 / p.norm(_), _);
10057
10057
  }, ie.makeMeshAabb = function(r, s) {
10058
- for (var o = new ze(), l = 0; l < s.length; ) {
10058
+ for (var o = new Be(), l = 0; l < s.length; ) {
10059
10059
  var u = s[l];
10060
10060
  ++l, o.add(r.points[r.faces[u][0]]), o.add(r.points[r.faces[u][1]]), o.add(r.points[r.faces[u][2]]);
10061
10061
  }
@@ -10216,23 +10216,23 @@ var wl = { exports: {} };
10216
10216
  var s = new qt(r), o = s.unserialize();
10217
10217
  return o;
10218
10218
  };
10219
- var Re = f.core.Trig = function() {
10219
+ var ze = f.core.Trig = function() {
10220
10220
  };
10221
- x["verb.core.Trig"] = Re, Re.__name__ = ["verb", "core", "Trig"], Re.isPointInPlane = function(r, s, o) {
10221
+ x["verb.core.Trig"] = ze, ze.__name__ = ["verb", "core", "Trig"], ze.isPointInPlane = function(r, s, o) {
10222
10222
  return Math.abs(p.dot(p.sub(r, s.origin), s.normal)) < o;
10223
- }, Re.distToSegment = function(r, s, o) {
10224
- var l = Re.segmentClosestPoint(s, r, o, 0, 1);
10223
+ }, ze.distToSegment = function(r, s, o) {
10224
+ var l = ze.segmentClosestPoint(s, r, o, 0, 1);
10225
10225
  return p.dist(s, l.pt);
10226
- }, Re.rayClosestPoint = function(r, s, o) {
10226
+ }, ze.rayClosestPoint = function(r, s, o) {
10227
10227
  var l = p.sub(r, s), u = p.dot(l, o), d = p.add(s, p.mul(u, o));
10228
10228
  return d;
10229
- }, Re.distToRay = function(r, s, o) {
10230
- var l = Re.rayClosestPoint(r, s, o), u = p.sub(l, r);
10229
+ }, ze.distToRay = function(r, s, o) {
10230
+ var l = ze.rayClosestPoint(r, s, o), u = p.sub(l, r);
10231
10231
  return p.norm(u);
10232
- }, Re.threePointsAreFlat = function(r, s, o, l) {
10232
+ }, ze.threePointsAreFlat = function(r, s, o, l) {
10233
10233
  var u = p.sub(s, r), d = p.sub(o, r), g = p.cross(u, d), _ = p.dot(g, g);
10234
10234
  return _ < l;
10235
- }, Re.segmentClosestPoint = function(r, s, o, l, u) {
10235
+ }, ze.segmentClosestPoint = function(r, s, o, l, u) {
10236
10236
  var d = p.sub(o, s), g = p.norm(d);
10237
10237
  if (g < rt.EPSILON) return { u: l, pt: s };
10238
10238
  var _ = s, y = p.mul(1 / g, d), A = p.sub(r, _), S = p.dot(A, y);
@@ -10460,7 +10460,7 @@ var wl = { exports: {} };
10460
10460
  for (var J = function(Ht) {
10461
10461
  return C.rationalSurfaceDerivatives(r, Ht[0], Ht[1], 2);
10462
10462
  }, q = function(Ht, $t, Vt) {
10463
- var Zt = $t[1][0], Me = $t[0][1], Ke = $t[2][0], be = $t[0][2], ye = $t[1][1], ke = $t[1][1], De = p.dot(Zt, Vt), tr = p.dot(Me, Vt), dr = [-De, -tr], er = p.dot(Zt, Zt) + p.dot(Ke, Vt), rr = p.dot(Zt, Me) + p.dot(ye, Vt), nr = p.dot(Zt, Me) + p.dot(ke, Vt), _r = p.dot(Me, Me) + p.dot(be, Vt), Mn = [[er, rr], [nr, _r]], Jr = Ot.solve(Mn, dr);
10463
+ var Zt = $t[1][0], Me = $t[0][1], Xe = $t[2][0], be = $t[0][2], ye = $t[1][1], ke = $t[1][1], Fe = p.dot(Zt, Vt), tr = p.dot(Me, Vt), dr = [-Fe, -tr], er = p.dot(Zt, Zt) + p.dot(Xe, Vt), rr = p.dot(Zt, Me) + p.dot(ye, Vt), nr = p.dot(Zt, Me) + p.dot(ke, Vt), _r = p.dot(Me, Me) + p.dot(be, Vt), Mn = [[er, rr], [nr, _r]], Jr = Ot.solve(Mn, dr);
10464
10464
  return p.add(Jr, Ht);
10465
10465
  }; l < o; ) {
10466
10466
  u = J(T), _ = p.sub(u[0][0], s);
@@ -10477,7 +10477,7 @@ var wl = { exports: {} };
10477
10477
  return C.rationalCurvePoint(r, bt.rationalCurveClosestParam(r, s));
10478
10478
  }, bt.rationalCurveClosestParam = function(r, s) {
10479
10479
  for (var o = 1 / 0, l = 0, u = zt.rationalCurveRegularSample(r, r.controlPoints.length * r.degree, !0), d = 0, g = u.length - 1; d < g; ) {
10480
- var _ = d++, y = u[_][0], A = u[_ + 1][0], S = u[_].slice(1), P = u[_ + 1].slice(1), E = Re.segmentClosestPoint(s, S, P, y, A), k = p.norm(p.sub(s, E.pt));
10480
+ var _ = d++, y = u[_][0], A = u[_ + 1][0], S = u[_].slice(1), P = u[_ + 1].slice(1), E = ze.segmentClosestPoint(s, S, P, y, A), k = p.norm(p.sub(s, E.pt));
10481
10481
  k < o && (o = k, l = E.u);
10482
10482
  }
10483
10483
  for (var T = 5, B = 0, N, R = 1e-4, z = 5e-4, U, V = r.knots[0], Y = Z.last(r.knots), J = p.normSquared(p.sub(r.controlPoints[0], Z.last(r.controlPoints))) < rt.EPSILON, q = l, j = function(X) {
@@ -10542,9 +10542,9 @@ var wl = { exports: {} };
10542
10542
  },
10543
10543
  __class__: Pn
10544
10544
  };
10545
- var Xe = f.eval.Check = function() {
10545
+ var Ye = f.eval.Check = function() {
10546
10546
  };
10547
- x["verb.eval.Check"] = Xe, Xe.__name__ = ["verb", "eval", "Check"], Xe.isValidKnotVector = function(r, s) {
10547
+ x["verb.eval.Check"] = Ye, Ye.__name__ = ["verb", "eval", "Check"], Ye.isValidKnotVector = function(r, s) {
10548
10548
  if (r.length == 0 || r.length < (s + 1) * 2) return !1;
10549
10549
  for (var o = Z.first(r), l = 0, u = s + 1; l < u; ) {
10550
10550
  var d = l++;
@@ -10555,23 +10555,23 @@ var wl = { exports: {} };
10555
10555
  var y = g++;
10556
10556
  if (Math.abs(r[y] - o) > rt.EPSILON) return !1;
10557
10557
  }
10558
- return Xe.isNonDecreasing(r);
10559
- }, Xe.isNonDecreasing = function(r) {
10558
+ return Ye.isNonDecreasing(r);
10559
+ }, Ye.isNonDecreasing = function(r) {
10560
10560
  for (var s = Z.first(r), o = 0, l = r.length; o < l; ) {
10561
10561
  var u = o++;
10562
10562
  if (r[u] < s - rt.EPSILON) return !1;
10563
10563
  s = r[u];
10564
10564
  }
10565
10565
  return !0;
10566
- }, Xe.isValidNurbsCurveData = function(r) {
10566
+ }, Ye.isValidNurbsCurveData = function(r) {
10567
10567
  if (r.controlPoints == null) throw new Q("Control points array cannot be null!");
10568
10568
  if (r.degree == null) throw new Q("Degree cannot be null!");
10569
10569
  if (r.degree < 1) throw new Q("Degree must be greater than 1!");
10570
10570
  if (r.knots == null) throw new Q("Knots cannot be null!");
10571
10571
  if (r.knots.length != r.controlPoints.length + r.degree + 1) throw new Q("controlPoints.length + degree + 1 must equal knots.length!");
10572
- if (!Xe.isValidKnotVector(r.knots, r.degree)) throw new Q("Invalid knot vector format! Should begin with degree + 1 repeats and end with degree + 1 repeats!");
10572
+ if (!Ye.isValidKnotVector(r.knots, r.degree)) throw new Q("Invalid knot vector format! Should begin with degree + 1 repeats and end with degree + 1 repeats!");
10573
10573
  return r;
10574
- }, Xe.isValidNurbsSurfaceData = function(r) {
10574
+ }, Ye.isValidNurbsSurfaceData = function(r) {
10575
10575
  if (r.controlPoints == null) throw new Q("Control points array cannot be null!");
10576
10576
  if (r.degreeU == null) throw new Q("DegreeU cannot be null!");
10577
10577
  if (r.degreeV == null) throw new Q("DegreeV cannot be null!");
@@ -10581,7 +10581,7 @@ var wl = { exports: {} };
10581
10581
  if (r.knotsV == null) throw new Q("KnotsV cannot be null!");
10582
10582
  if (r.knotsU.length != r.controlPoints.length + r.degreeU + 1) throw new Q("controlPointsU.length + degreeU + 1 must equal knotsU.length!");
10583
10583
  if (r.knotsV.length != r.controlPoints[0].length + r.degreeV + 1) throw new Q("controlPointsV.length + degreeV + 1 must equal knotsV.length!");
10584
- if (!Xe.isValidKnotVector(r.knotsU, r.degreeU) || !Xe.isValidKnotVector(r.knotsV, r.degreeV)) throw new Q("Invalid knot vector format! Should begin with degree + 1 repeats and end with degree + 1 repeats!");
10584
+ if (!Ye.isValidKnotVector(r.knotsU, r.degreeU) || !Ye.isValidKnotVector(r.knotsV, r.degreeV)) throw new Q("Invalid knot vector format! Should begin with degree + 1 repeats and end with degree + 1 repeats!");
10585
10585
  return r;
10586
10586
  };
10587
10587
  var ce = f.eval.Divide = function() {
@@ -10915,7 +10915,7 @@ var wl = { exports: {} };
10915
10915
  }
10916
10916
  }
10917
10917
  for (var Ht = o, $t = 1, Vt = l + 1; $t < Vt; ) {
10918
- for (var Zt = $t++, Me = 0, Ke = o + 1; Me < Ke; ) {
10918
+ for (var Zt = $t++, Me = 0, Xe = o + 1; Me < Xe; ) {
10919
10919
  var be = Me++;
10920
10920
  B[Zt][be] *= Ht;
10921
10921
  }
@@ -11372,7 +11372,7 @@ var wl = { exports: {} };
11372
11372
  k += y, B[V] = Math.cos(k), T[V] = Math.sin(k);
11373
11373
  }
11374
11374
  for (var Y = 0, J = u.length; Y < J; ) {
11375
- var q = Y++, j = Re.rayClosestPoint(u[q], s, o), $ = p.sub(u[q], j), tt = p.norm($), et = p.cross(o, $);
11375
+ var q = Y++, j = ze.rayClosestPoint(u[q], s, o), $ = p.sub(u[q], j), tt = p.norm($), et = p.cross(o, $);
11376
11376
  tt > rt.EPSILON && ($ = p.mul(1 / tt, $), et = p.mul(1 / tt, et)), N[0][q] = u[q];
11377
11377
  var it = u[q];
11378
11378
  R[0][q] = d[q];
@@ -11430,8 +11430,8 @@ var wl = { exports: {} };
11430
11430
  var ft = $[0].length - 2, Et = [-1, 1].concat(p.zeros1d(ft)), Ht = p.zeros1d(ft).concat([-1, 1]);
11431
11431
  Z.spliceAndInsert($, 1, 0, Et), Z.spliceAndInsert($, $.length - 1, 0, Ht);
11432
11432
  }
11433
- for (var $t = r[0].length, Vt = [], Zt = (1 - j[j.length - s - 2]) / s, Me = j[s + 1] / s, Ke = 0; Ke < $t; ) {
11434
- var be = [Ke++], ye;
11433
+ for (var $t = r[0].length, Vt = [], Zt = (1 - j[j.length - s - 2]) / s, Me = j[s + 1] / s, Xe = 0; Xe < $t; ) {
11434
+ var be = [Xe++], ye;
11435
11435
  if (!N) ye = r.map(/* @__PURE__ */ function(nr) {
11436
11436
  return function(_r) {
11437
11437
  return _r[nr[0]];
@@ -11439,7 +11439,7 @@ var wl = { exports: {} };
11439
11439
  }(be));
11440
11440
  else {
11441
11441
  ye = [r[0][be[0]]], ye.push(Me * l[be[0]]);
11442
- for (var ke = 1, De = r.length - 1; ke < De; ) {
11442
+ for (var ke = 1, Fe = r.length - 1; ke < Fe; ) {
11443
11443
  var tr = ke++;
11444
11444
  ye.push(r[tr][be[0]]);
11445
11445
  }
@@ -11540,15 +11540,15 @@ var wl = { exports: {} };
11540
11540
  N[Vt] = Et;
11541
11541
  }
11542
11542
  for (var Zt = 0, Me = l + 1; Zt < Me; ) {
11543
- var Ke = Zt++;
11544
- A[Ke] = d[Ke];
11543
+ var Xe = Zt++;
11544
+ A[Xe] = d[Xe];
11545
11545
  }
11546
11546
  for (; X < E; ) {
11547
11547
  for (var be = X; X < E && u[X] == u[X + 1]; ) X = X + 1;
11548
- var ye = X - be + 1, ke = u[X], De = nt;
11548
+ var ye = X - be + 1, ke = u[X], Fe = nt;
11549
11549
  nt = l - ye;
11550
11550
  var tr;
11551
- De > 0 ? tr = Math.floor((De + 2) / 2) : tr = 1;
11551
+ Fe > 0 ? tr = Math.floor((Fe + 2) / 2) : tr = 1;
11552
11552
  var dr;
11553
11553
  if (nt > 0 ? dr = Math.floor(k - (nt + 1) / 2) : dr = k, nt > 0) {
11554
11554
  for (var er = ke - Et, rr = [], nr = l; nr > ye; )
@@ -11567,15 +11567,15 @@ var wl = { exports: {} };
11567
11567
  S[kn] = p.add(S[kn], p.mul(y[kn][go], A[go]));
11568
11568
  }
11569
11569
  }
11570
- if (De > 1)
11571
- for (var xi = ut - 2, wi = ut, fo = ke - Et, Zh = (ke - N[ut - 1]) / fo, _o = 1; _o < De; ) {
11570
+ if (Fe > 1)
11571
+ for (var xi = ut - 2, wi = ut, fo = ke - Et, Zh = (ke - N[ut - 1]) / fo, _o = 1; _o < Fe; ) {
11572
11572
  for (var Ai = _o++, yr = xi, en = wi, Gr = en - ut + 1; en - yr > Ai; ) {
11573
11573
  if (yr < ft) {
11574
11574
  var Qh = (ke - N[yr]) / (Et - N[yr]);
11575
11575
  B[yr] = p.lerp(Qh, B[yr], B[yr - 1]);
11576
11576
  }
11577
11577
  if (en >= tr) {
11578
- if (en - Ai <= ut - k + De) {
11578
+ if (en - Ai <= ut - k + Fe) {
11579
11579
  var Jh = (ke - N[en - Ai]) / fo;
11580
11580
  S[Gr] = p.lerp(Jh, S[Gr], S[Gr + 1]);
11581
11581
  }
@@ -11585,7 +11585,7 @@ var wl = { exports: {} };
11585
11585
  xi = xi - 1, wi = wi + 1;
11586
11586
  }
11587
11587
  if (pt != l)
11588
- for (var yo = 0, tc = k - De; yo < tc; )
11588
+ for (var yo = 0, tc = k - Fe; yo < tc; )
11589
11589
  yo++, N[ut] = Et, ut = ut + 1;
11590
11590
  for (var vo = tr, ec = dr + 1; vo < ec; ) {
11591
11591
  var rc = vo++;
@@ -11737,7 +11737,7 @@ var wl = { exports: {} };
11737
11737
  return zt.rationalCurveAdaptiveSampleRange(r, r.knots[0], Z.last(r.knots), s, o);
11738
11738
  }, zt.rationalCurveAdaptiveSampleRange = function(r, s, o, l, u) {
11739
11739
  var d = C.rationalCurvePoint(r, s), g = C.rationalCurvePoint(r, o), _ = 0.5 + 0.2 * Math.random(), y = s + (o - s) * _, A = C.rationalCurvePoint(r, y), S = p.sub(d, g), P = p.sub(d, A);
11740
- if (p.dot(S, S) < l && p.dot(P, P) > l || !Re.threePointsAreFlat(d, A, g, l)) {
11740
+ if (p.dot(S, S) < l && p.dot(P, P) > l || !ze.threePointsAreFlat(d, A, g, l)) {
11741
11741
  var E = s + (o - s) * 0.5, k = zt.rationalCurveAdaptiveSampleRange(r, s, E, l, u), T = zt.rationalCurveAdaptiveSampleRange(r, E, o, l, u);
11742
11742
  return k.slice(0, -1).concat(T);
11743
11743
  } else return u ? [[s].concat(d), [o].concat(g)] : [d, g];
@@ -11767,7 +11767,7 @@ var wl = { exports: {} };
11767
11767
  for (var g = Z.last(r.knotsU), _ = r.knotsU[0], y = Z.last(r.knotsV), A = r.knotsV[0], S = (g - _) / u, P = (y - A) / d, E = [], k = [], T = 0, B = d + 1; T < B; ) {
11768
11768
  for (var N = T++, R = [], z = 0, U = u + 1; z < U; ) {
11769
11769
  var V = z++, Y = _ + S * V, J = A + P * N, q = C.rationalSurfaceDerivatives(r, Y, J, 1), j = p.normalized(p.cross(q[0][1], q[1][0]));
11770
- R.push(new Ye(q[0][0], j, [Y, J], -1, p.isZero(j)));
11770
+ R.push(new qe(q[0][0], j, [Y, J], -1, p.isZero(j)));
11771
11771
  }
11772
11772
  k.push(R);
11773
11773
  }
@@ -11811,7 +11811,7 @@ var wl = { exports: {} };
11811
11811
  var fr = f.core.AdaptiveRefinementNode = function(r, s, o) {
11812
11812
  if (this.srf = r, o == null ? this.neighbors = [null, null, null, null] : this.neighbors = o, this.corners = s, this.corners == null) {
11813
11813
  var l = r.knotsU[0], u = Z.last(r.knotsU), d = r.knotsV[0], g = Z.last(r.knotsV);
11814
- this.corners = [Ye.fromUv(l, d), Ye.fromUv(u, d), Ye.fromUv(u, g), Ye.fromUv(l, g)];
11814
+ this.corners = [qe.fromUv(l, d), qe.fromUv(u, d), qe.fromUv(u, g), qe.fromUv(l, g)];
11815
11815
  }
11816
11816
  };
11817
11817
  x["verb.eval.AdaptiveRefinementNode"] = fr, fr.__name__ = ["verb", "eval", "AdaptiveRefinementNode"], fr.prototype = {
@@ -11833,7 +11833,7 @@ var wl = { exports: {} };
11833
11833
  },
11834
11834
  evalSrf: function(r, s, o) {
11835
11835
  var l = C.rationalSurfaceDerivatives(this.srf, r, s, 1), u = l[0][0], d = p.cross(l[0][1], l[1][0]), g = p.isZero(d);
11836
- return g || (d = p.normalized(d)), o != null ? (o.degen = g, o.point = u, o.normal = d, o) : new Ye(u, d, [r, s], -1, g);
11836
+ return g || (d = p.normalized(d)), o != null ? (o.degen = g, o.point = u, o.normal = d, o) : new qe(u, d, [r, s], -1, g);
11837
11837
  },
11838
11838
  getEdgeCorners: function(r) {
11839
11839
  if (this.isLeaf()) return [this.corners[r]];
@@ -12025,7 +12025,7 @@ var wl = { exports: {} };
12025
12025
  __class__: In
12026
12026
  };
12027
12027
  var Ct = f.geom.NurbsCurve = function(r) {
12028
- this._data = Xe.isValidNurbsCurveData(r);
12028
+ this._data = Ye.isValidNurbsCurveData(r);
12029
12029
  };
12030
12030
  x["verb.geom.NurbsCurve"] = Ct, Ct.__name__ = ["verb", "geom", "NurbsCurve"], Ct.__interfaces__ = [In], Ct.byKnotsControlPointsWeights = function(r, s, o, l) {
12031
12031
  return new Ct(new Wt(r, s.slice(), C.homogenize1d(o, l)));
@@ -12191,7 +12191,7 @@ var wl = { exports: {} };
12191
12191
  __class__: En
12192
12192
  };
12193
12193
  var Mt = f.geom.NurbsSurface = function(r) {
12194
- this._data = Xe.isValidNurbsSurfaceData(r);
12194
+ this._data = Ye.isValidNurbsSurfaceData(r);
12195
12195
  };
12196
12196
  x["verb.geom.NurbsSurface"] = Mt, Mt.__name__ = ["verb", "geom", "NurbsSurface"], Mt.__interfaces__ = [En], Mt.byKnotsControlPointsWeights = function(r, s, o, l, u, d) {
12197
12197
  return new Mt(new ne(r, s, o, l, C.homogenize2d(u, d)));
@@ -12481,10 +12481,10 @@ var wl = { exports: {} };
12481
12481
  function Je(r) {
12482
12482
  return r instanceof Array ? function() {
12483
12483
  return L.iter(r);
12484
- } : typeof r.iterator == "function" ? Fe(r, r.iterator) : r.iterator;
12484
+ } : typeof r.iterator == "function" ? Re(r, r.iterator) : r.iterator;
12485
12485
  }
12486
12486
  var _i, Wh = 0;
12487
- function Fe(r, s) {
12487
+ function Re(r, s) {
12488
12488
  if (s == null) return null;
12489
12489
  s.__id__ == null && (s.__id__ = Wh++);
12490
12490
  var o;
@@ -13992,13 +13992,13 @@ const ka = class ka extends fn {
13992
13992
  }
13993
13993
  };
13994
13994
  ka.typeName = "Entity";
13995
- let Le = ka;
13996
- const Ta = class Ta extends Le {
13995
+ let Ne = ka;
13996
+ const Ta = class Ta extends Ne {
13997
13997
  };
13998
13998
  Ta.typeName = "Curve";
13999
- let Oe = Ta;
13999
+ let Le = Ta;
14000
14000
  var Ss = /* @__PURE__ */ ((i) => (i[i.SimplePoly = 0] = "SimplePoly", i[i.FitCurvePoly = 1] = "FitCurvePoly", i[i.QuadSplinePoly = 2] = "QuadSplinePoly", i[i.CubicSplinePoly = 3] = "CubicSplinePoly", i))(Ss || {});
14001
- const Ca = class Ca extends Oe {
14001
+ const Ca = class Ca extends Le {
14002
14002
  /**
14003
14003
  * Creates a new empty 2d polyline entity.
14004
14004
  */
@@ -14238,7 +14238,7 @@ const Ca = class Ca extends Oe {
14238
14238
  Ca.typeName = "2dPolyline";
14239
14239
  let qi = Ca;
14240
14240
  var ru = /* @__PURE__ */ ((i) => (i[i.Vertex = 0] = "Vertex", i[i.CurveFitVertex = 1] = "CurveFitVertex", i[i.SplineFitVertex = 8] = "SplineFitVertex", i[i.SplineCtlVertex = 9] = "SplineCtlVertex", i))(ru || {});
14241
- const Na = class Na extends Le {
14241
+ const Na = class Na extends Ne {
14242
14242
  /**
14243
14243
  * Creates a new 2d vertex entity.
14244
14244
  */
@@ -14384,7 +14384,7 @@ const Na = class Na extends Le {
14384
14384
  Na.typeName = "2dVertex";
14385
14385
  let zo = Na;
14386
14386
  var $s = /* @__PURE__ */ ((i) => (i[i.SimplePoly = 0] = "SimplePoly", i[i.QuadSplinePoly = 1] = "QuadSplinePoly", i[i.CubicSplinePoly = 2] = "CubicSplinePoly", i))($s || {});
14387
- const La = class La extends Oe {
14387
+ const La = class La extends Le {
14388
14388
  /**
14389
14389
  * Creates a new empty 2d polyline entity.
14390
14390
  */
@@ -14582,7 +14582,7 @@ const La = class La extends Oe {
14582
14582
  La.typeName = "3dPolyline";
14583
14583
  let Yi = La;
14584
14584
  var nu = /* @__PURE__ */ ((i) => (i[i.SimpleVertex = 0] = "SimpleVertex", i[i.ControlVertex = 1] = "ControlVertex", i[i.FitVertex = 2] = "FitVertex", i))(nu || {});
14585
- const Oa = class Oa extends Le {
14585
+ const Oa = class Oa extends Ne {
14586
14586
  /**
14587
14587
  * Creates a new 3d vertex entity.
14588
14588
  */
@@ -14671,7 +14671,7 @@ const Oa = class Oa extends Le {
14671
14671
  };
14672
14672
  Oa.typeName = "3dVertex";
14673
14673
  let Ro = Oa;
14674
- const Ba = class Ba extends Oe {
14674
+ const Ba = class Ba extends Le {
14675
14675
  /**
14676
14676
  * Creates a new arc entity.
14677
14677
  *
@@ -15151,7 +15151,7 @@ const Ba = class Ba extends Oe {
15151
15151
  };
15152
15152
  Ba.typeName = "Arc";
15153
15153
  let Xi = Ba;
15154
- const za = class za extends Le {
15154
+ const za = class za extends Ne {
15155
15155
  /**
15156
15156
  * Creates a new block reference entity.
15157
15157
  *
@@ -15302,43 +15302,70 @@ const za = class za extends Le {
15302
15302
  return this.database.tables.blockTable.getAt(this._blockName);
15303
15303
  }
15304
15304
  /**
15305
- * For a block reference, its transform matrix should be computed as follows.
15306
- * - Translate geometry by –blockBasePoint
15307
- * - Apply scale
15308
- * - Apply rotation (about block Z / normal)
15309
- * - Apply OCS (normal / extrusion)
15310
- * - Translate to insertion point
15305
+ * Gets the block-local transformation matrix of this block reference.
15306
+ *
15307
+ * This matrix represents the **INSERT entity transform in Object Coordinate
15308
+ * System (OCS)**, excluding the extrusion / normal transformation.
15309
+ *
15310
+ * In AutoCAD, a block reference transform is conceptually applied in the
15311
+ * following order:
15312
+ *
15313
+ * 1. Translate geometry by the negative block base point
15314
+ * 2. Apply non-uniform scaling
15315
+ * 3. Apply rotation about the block Z axis (OCS Z)
15316
+ * 4. Translate to the insertion point
15317
+ * 5. Finally, transform from OCS to WCS using the entity normal (extrusion)
15318
+ *
15319
+ * This property returns the matrix for steps **1–4 only**.
15320
+ *
15321
+ * The OCS → WCS transformation derived from {@link normal} **must NOT be
15322
+ * included here**, because:
15323
+ *
15324
+ * - The rotation angle of an INSERT is defined in OCS
15325
+ * - Applying OCS earlier would rotate around an incorrect axis
15326
+ * - Cached block geometry must remain reusable for different normals
15327
+ *
15328
+ * Therefore, the extrusion transformation is applied **after rendering**
15329
+ * (see {@link AcDbRenderingCache.draw}), matching AutoCAD / RealDWG behavior.
15311
15330
  *
15312
- * In matrix terms (right-multiply convention):
15313
- * blockTransform =
15314
- * T(position)
15315
- * · OCS(normal)
15316
- * · R(rotation)
15317
- * · S(scale)
15318
- * · T(-basePoint)
15331
+ * ### Matrix composition (right-multiply convention)
15319
15332
  *
15320
- * @returns The transform matrix of one block reference
15333
+ * ```
15334
+ * blockTransform =
15335
+ * T(position)
15336
+ * · R(rotation about OCS Z)
15337
+ * · S(scaleFactors)
15338
+ * · T(-blockBasePoint)
15339
+ * ```
15340
+ *
15341
+ * ### Notes
15342
+ *
15343
+ * - The returned matrix operates in OCS space
15344
+ * - Rotation is always about the OCS Z axis
15345
+ * - {@link normal} is applied later as a final orientation step
15346
+ * - This mirrors the internal behavior of `AcDbBlockReference` in ObjectARX
15347
+ *
15348
+ * @returns A transformation matrix representing the block-local INSERT transform
15349
+ * in OCS, excluding extrusion.
15321
15350
  */
15322
15351
  get blockTransform() {
15323
- const t = this.blockTableRecord, e = (t == null ? void 0 : t.origin) ?? G.ORIGIN, n = new Ne().makeScale(
15352
+ const t = this.blockTableRecord, e = (t == null ? void 0 : t.origin) ?? G.ORIGIN, n = new Ke().makeTranslation(
15353
+ -e.x,
15354
+ -e.y,
15355
+ -e.z
15356
+ ), a = new Ke().makeScale(
15324
15357
  this._scaleFactors.x,
15325
15358
  this._scaleFactors.y,
15326
15359
  this._scaleFactors.z
15327
- ), a = new zn().setFromAxisAngle(
15360
+ ), h = new zn().setFromAxisAngle(
15328
15361
  K.Z_AXIS,
15329
15362
  this._rotation
15330
- ), h = new Ne().makeRotationFromQuaternion(a), c = new Ne();
15331
- c.setFromExtrusionDirection(this._normal);
15332
- const m = new Ne().makeTranslation(
15333
- -e.x,
15334
- -e.y,
15335
- -e.z
15336
- ), b = new Ne().makeTranslation(
15363
+ ), c = new Ke().makeRotationFromQuaternion(h), m = new Ke().makeTranslation(
15337
15364
  this._position.x,
15338
15365
  this._position.y,
15339
15366
  this._position.z
15340
15367
  );
15341
- return new Ne().multiplyMatrices(b, c).multiply(h).multiply(n).multiply(m);
15368
+ return new Ke().multiplyMatrices(m, c).multiply(a).multiply(n);
15342
15369
  }
15343
15370
  /**
15344
15371
  * Gets the object snap points for this mtext.
@@ -15542,7 +15569,8 @@ const za = class za extends Le {
15542
15569
  n,
15543
15570
  this.rgbColor,
15544
15571
  !0,
15545
- a
15572
+ a,
15573
+ this._normal
15546
15574
  );
15547
15575
  return this.attachEntityInfo(h), h;
15548
15576
  } else {
@@ -15576,7 +15604,7 @@ const za = class za extends Le {
15576
15604
  };
15577
15605
  za.typeName = "BlockReference";
15578
15606
  let ks = za;
15579
- const Ra = class Ra extends Oe {
15607
+ const Ra = class Ra extends Le {
15580
15608
  /**
15581
15609
  * Creates a new circle entity.
15582
15610
  *
@@ -15918,7 +15946,7 @@ const Ra = class Ra extends Oe {
15918
15946
  };
15919
15947
  Ra.typeName = "Circle";
15920
15948
  let Ki = Ra;
15921
- const Fa = class Fa extends Oe {
15949
+ const Fa = class Fa extends Le {
15922
15950
  /**
15923
15951
  * Creates a new ellipse entity.
15924
15952
  *
@@ -16346,7 +16374,7 @@ const Fa = class Fa extends Oe {
16346
16374
  };
16347
16375
  Fa.typeName = "Ellipse";
16348
16376
  let $i = Fa;
16349
- const Da = class Da extends Le {
16377
+ const Da = class Da extends Ne {
16350
16378
  /**
16351
16379
  * Creates a new face entity.
16352
16380
  *
@@ -16520,7 +16548,7 @@ const Da = class Da extends Le {
16520
16548
  Da.typeName = "Face";
16521
16549
  let Zi = Da;
16522
16550
  var Zs = /* @__PURE__ */ ((i) => (i[i.UserDefined = 0] = "UserDefined", i[i.Predefined = 1] = "Predefined", i[i.Custom = 2] = "Custom", i))(Zs || {}), su = /* @__PURE__ */ ((i) => (i[i.Normal = 0] = "Normal", i[i.Outer = 1] = "Outer", i[i.Ignore = 2] = "Ignore", i))(su || {});
16523
- const Ua = class Ua extends Le {
16551
+ const Ua = class Ua extends Ne {
16524
16552
  /**
16525
16553
  * Creates a new hatch entity.
16526
16554
  *
@@ -16740,14 +16768,14 @@ const Ua = class Ua extends Le {
16740
16768
  return e.fillType = {
16741
16769
  solidFill: this.isSolidFill,
16742
16770
  patternAngle: this.patternAngle,
16743
- patternLines: this.definitionLines
16771
+ definitionLines: this.definitionLines
16744
16772
  }, t.area(this._geo);
16745
16773
  }
16746
16774
  };
16747
16775
  Ua.typeName = "Hatch";
16748
16776
  let ii = Ua;
16749
16777
  var iu = /* @__PURE__ */ ((i) => (i[i.MText = 0] = "MText", i[i.Fcf = 1] = "Fcf", i[i.BlockReference = 2] = "BlockReference", i[i.NoAnnotation = 3] = "NoAnnotation", i))(iu || {});
16750
- const Va = class Va extends Oe {
16778
+ const Va = class Va extends Le {
16751
16779
  /**
16752
16780
  * Creates a new leader entity.
16753
16781
  *
@@ -17005,7 +17033,7 @@ function G0(i, t) {
17005
17033
  function W0(i, t) {
17006
17034
  return i & ~(1 << t - 1);
17007
17035
  }
17008
- const ja = class ja extends Oe {
17036
+ const ja = class ja extends Le {
17009
17037
  /**
17010
17038
  * Creates a new line entity.
17011
17039
  *
@@ -17310,7 +17338,7 @@ const ja = class ja extends Oe {
17310
17338
  };
17311
17339
  ja.typeName = "Line";
17312
17340
  let ai = ja;
17313
- const Ga = class Ga extends Le {
17341
+ const Ga = class Ga extends Ne {
17314
17342
  /**
17315
17343
  * Creates a new multiline text entity.
17316
17344
  *
@@ -17790,7 +17818,7 @@ const Ga = class Ga extends Le {
17790
17818
  };
17791
17819
  Ga.typeName = "MText";
17792
17820
  let oi = Ga;
17793
- const Wa = class Wa extends Oe {
17821
+ const Wa = class Wa extends Le {
17794
17822
  constructor(t, e, n, a, h) {
17795
17823
  super();
17796
17824
  const c = +(t !== void 0) + +(e !== void 0) + +(n !== void 0) + +(a !== void 0) + +(h !== void 0);
@@ -18310,9 +18338,9 @@ const au = /* @__PURE__ */ new K(), Ha = class Ha extends ks {
18310
18338
  };
18311
18339
  Ha.typeName = "Table";
18312
18340
  let Ji = Ha;
18313
- const Fo = /* @__PURE__ */ new Ne();
18341
+ const Fo = /* @__PURE__ */ new Ke();
18314
18342
  var ou = /* @__PURE__ */ ((i) => (i[i.LEFT = 0] = "LEFT", i[i.CENTER = 1] = "CENTER", i[i.RIGHT = 2] = "RIGHT", i[i.ALIGNED = 3] = "ALIGNED", i[i.MIDDLE = 4] = "MIDDLE", i[i.FIT = 5] = "FIT", i))(ou || {}), lu = /* @__PURE__ */ ((i) => (i[i.BASELINE = 0] = "BASELINE", i[i.BOTTOM = 1] = "BOTTOM", i[i.MIDDLE = 2] = "MIDDLE", i[i.TOP = 3] = "TOP", i))(lu || {});
18315
- const qa = class qa extends Le {
18343
+ const qa = class qa extends Ne {
18316
18344
  /**
18317
18345
  * Creates a new text entity.
18318
18346
  *
@@ -18823,7 +18851,7 @@ const qa = class qa extends Le {
18823
18851
  };
18824
18852
  qa.typeName = "Text";
18825
18853
  let ta = qa;
18826
- const Ya = class Ya extends Oe {
18854
+ const Ya = class Ya extends Le {
18827
18855
  /**
18828
18856
  * Creates a new trace entity.
18829
18857
  *
@@ -19025,13 +19053,13 @@ const Ya = class Ya extends Oe {
19025
19053
  return a.fillType = {
19026
19054
  solidFill: !0,
19027
19055
  patternAngle: 0,
19028
- patternLines: []
19056
+ definitionLines: []
19029
19057
  }, t.area(n);
19030
19058
  }
19031
19059
  };
19032
19060
  Ya.typeName = "Trace";
19033
19061
  let ea = Ya;
19034
- const Xa = class Xa extends Oe {
19062
+ const Xa = class Xa extends Le {
19035
19063
  /**
19036
19064
  * Creates a new empty polyline entity.
19037
19065
  *
@@ -19351,7 +19379,7 @@ const Xa = class Xa extends Oe {
19351
19379
  };
19352
19380
  Xa.typeName = "Polyline";
19353
19381
  let ra = Xa;
19354
- const Ka = class Ka extends Le {
19382
+ const Ka = class Ka extends Ne {
19355
19383
  /**
19356
19384
  * Creates a new point entity.
19357
19385
  *
@@ -19519,7 +19547,7 @@ const Ka = class Ka extends Le {
19519
19547
  Ka.typeName = "Point";
19520
19548
  let na = Ka;
19521
19549
  var hu = /* @__PURE__ */ ((i) => (i[i.Invalid = 0] = "Invalid", i[i.Rect = 1] = "Rect", i[i.Poly = 2] = "Poly", i))(hu || {}), cu = /* @__PURE__ */ ((i) => (i[i.Show = 1] = "Show", i[i.ShowUnAligned = 2] = "ShowUnAligned", i[i.Clip = 4] = "Clip", i[i.Transparent = 8] = "Transparent", i))(cu || {});
19522
- const $a = class $a extends Le {
19550
+ const $a = class $a extends Ne {
19523
19551
  /**
19524
19552
  * Creates a new raster image entity.
19525
19553
  *
@@ -19759,7 +19787,7 @@ const $a = class $a extends Le {
19759
19787
  };
19760
19788
  $a.typeName = "RasterImage";
19761
19789
  let hi = $a;
19762
- const Do = /* @__PURE__ */ new Nt(), js = /* @__PURE__ */ new Nt(), Za = class Za extends Oe {
19790
+ const Do = /* @__PURE__ */ new Nt(), js = /* @__PURE__ */ new Nt(), Za = class Za extends Le {
19763
19791
  /**
19764
19792
  * Creates a new ray entity.
19765
19793
  *
@@ -20012,7 +20040,7 @@ const Do = /* @__PURE__ */ new Nt(), js = /* @__PURE__ */ new Nt(), Za = class Z
20012
20040
  };
20013
20041
  Za.typeName = "Ray";
20014
20042
  let sa = Za;
20015
- const Qa = class Qa extends Le {
20043
+ const Qa = class Qa extends Ne {
20016
20044
  /**
20017
20045
  * Creates a new AcDbViewport instance.
20018
20046
  *
@@ -20262,7 +20290,7 @@ const Ja = class Ja extends hi {
20262
20290
  };
20263
20291
  Ja.typeName = "Wipeout";
20264
20292
  let aa = Ja;
20265
- const to = class to extends Oe {
20293
+ const to = class to extends Le {
20266
20294
  /**
20267
20295
  * Creates a new xline entity.
20268
20296
  *
@@ -20500,7 +20528,7 @@ const to = class to extends Oe {
20500
20528
  to.typeName = "Xline";
20501
20529
  let oa = to;
20502
20530
  var uu = /* @__PURE__ */ ((i) => (i[i.AtLeast = 1] = "AtLeast", i[i.Exactly = 2] = "Exactly", i))(uu || {});
20503
- const eo = class eo extends Le {
20531
+ const eo = class eo extends Ne {
20504
20532
  /**
20505
20533
  * Creates a new dimension entity.
20506
20534
  *
@@ -20745,7 +20773,8 @@ const eo = class eo extends Le {
20745
20773
  n,
20746
20774
  this.rgbColor,
20747
20775
  !1,
20748
- a
20776
+ a,
20777
+ this._normal
20749
20778
  );
20750
20779
  return this.attachEntityInfo(h), h;
20751
20780
  }
@@ -20871,19 +20900,66 @@ const eo = class eo extends Le {
20871
20900
  const e = this.database.tables.blockTable.getIdAt(t);
20872
20901
  return e ? e.name.toUpperCase() : Al.Closed;
20873
20902
  }
20903
+ /**
20904
+ * Computes the block-local transformation matrix for the anonymous block
20905
+ * referenced by this dimension entity.
20906
+ *
20907
+ * In AutoCAD, each dimension references an **anonymous block** that contains
20908
+ * the graphical representation of the dimension (dimension line, extension
20909
+ * lines, arrows, and text). That block is defined in the **dimension’s Object
20910
+ * Coordinate System (OCS)**.
20911
+ *
20912
+ * This method computes the transformation that positions the anonymous
20913
+ * dimension block **within the dimension’s OCS**, excluding any extrusion
20914
+ * (normal) transformation.
20915
+ *
20916
+ * Conceptually, AutoCAD applies the following steps when displaying a
20917
+ * dimension block:
20918
+ *
20919
+ * 1. Translate block geometry by the negative block base point
20920
+ * 2. Translate by the dimension block position (DXF group code 12)
20921
+ * 3. Finally, transform from OCS to WCS using the dimension normal (DXF 210)
20922
+ *
20923
+ * This method implements **steps 1 and 2 only**.
20924
+ *
20925
+ * The OCS → WCS transformation derived from {@link normal} is **intentionally
20926
+ * excluded** and must be applied **after rendering** (see
20927
+ * {@link AcDbRenderingCache.draw}). This matches AutoCAD / RealDWG behavior and
20928
+ * ensures:
20929
+ *
20930
+ * - Dimension text rotation remains defined in OCS
20931
+ * - Arrow orientation and extension line directions remain correct
20932
+ * - Anonymous dimension blocks can be safely cached and reused
20933
+ *
20934
+ * ### Matrix composition (right-multiply convention)
20935
+ *
20936
+ * ```
20937
+ * dimBlockTransform =
20938
+ * T(dimBlockPosition)
20939
+ * · T(-blockBasePoint)
20940
+ * ```
20941
+ *
20942
+ * ### Notes
20943
+ *
20944
+ * - The returned matrix operates entirely in dimension OCS
20945
+ * - No scaling or rotation is applied here
20946
+ * - {@link normal} is applied later as a final orientation step
20947
+ * - This mirrors the internal behavior of `AcDbDimension` in ObjectARX
20948
+ *
20949
+ * @returns A transformation matrix that positions the anonymous dimension
20950
+ * block in OCS space, excluding extrusion.
20951
+ */
20874
20952
  computeDimBlockTransform() {
20875
- const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ?? G.ORIGIN, n = new Ne().makeTranslation(
20876
- this._dimBlockPosition.x,
20877
- this._dimBlockPosition.y,
20878
- this._dimBlockPosition.z
20879
- ), a = new Ne();
20880
- a.setFromExtrusionDirection(this._normal);
20881
- const h = new Ne().makeTranslation(
20953
+ const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ?? G.ORIGIN, n = new Ke().makeTranslation(
20882
20954
  -e.x,
20883
20955
  -e.y,
20884
20956
  -e.z
20957
+ ), a = new Ke().makeTranslation(
20958
+ this._dimBlockPosition.x,
20959
+ this._dimBlockPosition.y,
20960
+ this._dimBlockPosition.z
20885
20961
  );
20886
- return new Ne().multiplyMatrices(n, a).multiply(h);
20962
+ return new Ke().multiplyMatrices(a, n);
20887
20963
  }
20888
20964
  };
20889
20965
  eo.typeName = "Dimension";
@@ -22667,7 +22743,7 @@ class Nl {
22667
22743
  throw new Error("Not impelemented yet!");
22668
22744
  }
22669
22745
  }
22670
- var ue, ls, ee, ae, hs, ir, xe, br, ar, nn, cs, us, sn, an, ds, ps, ms, Ve, xr, Xt, on, gs, yt, we, fs, Ae, _s, wr, Ar, or, ys, ln, je, Pr, hn, Ci, Ni, Sr, Ir, vs, bs, Er, xs, Li, Oi, de, Mr, pe, Ge, Bi, zi, Ri, Fi, kr, We, cn, ws, un, He, Tr, qe, Cr;
22746
+ var ue, ls, ee, ae, hs, ir, xe, br, ar, nn, cs, us, sn, an, ds, ps, ms, Ue, xr, Xt, on, gs, yt, we, fs, Ae, _s, wr, Ar, or, ys, ln, Ve, Pr, hn, Ci, Ni, Sr, Ir, vs, bs, Er, xs, Li, Oi, de, Mr, pe, je, Bi, zi, Ri, Fi, kr, Ge, cn, ws, un, We, Tr, He, Cr;
22671
22747
  (ue = {})[ue.None = 0] = "None", ue[ue.Anonymous = 1] = "Anonymous", ue[ue.NonConstant = 2] = "NonConstant", ue[ue.Xref = 4] = "Xref", ue[ue.XrefOverlay = 8] = "XrefOverlay", ue[ue.ExternallyDependent = 16] = "ExternallyDependent", ue[ue.ResolvedOrDependent = 32] = "ResolvedOrDependent", ue[ue.ReferencedXref = 64] = "ReferencedXref";
22672
22748
  (ls = {})[ls.BYBLOCK = 0] = "BYBLOCK", ls[ls.BYLAYER = 256] = "BYLAYER";
22673
22749
  (ee = {})[ee.Rotated = 0] = "Rotated", ee[ee.Aligned = 1] = "Aligned", ee[ee.Angular = 2] = "Angular", ee[ee.Diameter = 3] = "Diameter", ee[ee.Radius = 4] = "Radius", ee[ee.Angular3Point = 5] = "Angular3Point", ee[ee.Ordinate = 6] = "Ordinate", ee[ee.ReferenceIsExclusive = 32] = "ReferenceIsExclusive", ee[ee.IsOrdinateXTypeFlag = 64] = "IsOrdinateXTypeFlag", ee[ee.IsCustomTextPositionFlag = 128] = "IsCustomTextPositionFlag";
@@ -22680,7 +22756,7 @@ var Vo = ((ir = {})[ir.Center = 0] = "Center", ir[ir.Above = 1] = "Above", ir[ir
22680
22756
  (ds = {})[ds.NotAnnotated = 0] = "NotAnnotated", ds[ds.Annotated = 1] = "Annotated";
22681
22757
  (ps = {})[ps.Solid = 0] = "Solid", ps[ps.Gradient = 1] = "Gradient";
22682
22758
  (ms = {})[ms.TwoColor = 0] = "TwoColor", ms[ms.OneColor = 1] = "OneColor";
22683
- var bu = ((Ve = {})[Ve.Default = 0] = "Default", Ve[Ve.External = 1] = "External", Ve[Ve.Polyline = 2] = "Polyline", Ve[Ve.Derived = 4] = "Derived", Ve[Ve.Textbox = 8] = "Textbox", Ve[Ve.Outermost = 16] = "Outermost", Ve), Gs = ((xr = {})[xr.Line = 1] = "Line", xr[xr.Circular = 2] = "Circular", xr[xr.Elliptic = 3] = "Elliptic", xr[xr.Spline = 4] = "Spline", xr), xu = ((Xt = {})[Xt.Off = 0] = "Off", Xt[Xt.Solid = 1] = "Solid", Xt[Xt.Dashed = 2] = "Dashed", Xt[Xt.Dotted = 3] = "Dotted", Xt[Xt.ShotDash = 4] = "ShotDash", Xt[Xt.MediumDash = 5] = "MediumDash", Xt[Xt.LongDash = 6] = "LongDash", Xt[Xt.DoubleShortDash = 7] = "DoubleShortDash", Xt[Xt.DoubleMediumDash = 8] = "DoubleMediumDash", Xt[Xt.DoubleLongDash = 9] = "DoubleLongDash", Xt[Xt.DoubleMediumLongDash = 10] = "DoubleMediumLongDash", Xt[Xt.SparseDot = 11] = "SparseDot", Xt);
22759
+ var bu = ((Ue = {})[Ue.Default = 0] = "Default", Ue[Ue.External = 1] = "External", Ue[Ue.Polyline = 2] = "Polyline", Ue[Ue.Derived = 4] = "Derived", Ue[Ue.Textbox = 8] = "Textbox", Ue[Ue.Outermost = 16] = "Outermost", Ue), Gs = ((xr = {})[xr.Line = 1] = "Line", xr[xr.Circular = 2] = "Circular", xr[xr.Elliptic = 3] = "Elliptic", xr[xr.Spline = 4] = "Spline", xr), xu = ((Xt = {})[Xt.Off = 0] = "Off", Xt[Xt.Solid = 1] = "Solid", Xt[Xt.Dashed = 2] = "Dashed", Xt[Xt.Dotted = 3] = "Dotted", Xt[Xt.ShotDash = 4] = "ShotDash", Xt[Xt.MediumDash = 5] = "MediumDash", Xt[Xt.LongDash = 6] = "LongDash", Xt[Xt.DoubleShortDash = 7] = "DoubleShortDash", Xt[Xt.DoubleMediumDash = 8] = "DoubleMediumDash", Xt[Xt.DoubleLongDash = 9] = "DoubleLongDash", Xt[Xt.DoubleMediumLongDash = 10] = "DoubleMediumLongDash", Xt[Xt.SparseDot = 11] = "SparseDot", Xt);
22684
22760
  xu.Off;
22685
22761
  (on = {})[on.Standard = -3] = "Standard", on[on.ByLayer = -2] = "ByLayer", on[on.ByBlock = -1] = "ByBlock";
22686
22762
  (gs = {})[gs.English = 0] = "English", gs[gs.Metric = 1] = "Metric";
@@ -22886,7 +22962,7 @@ zl(Rl, "ForEntityName", "ARC");
22886
22962
  (or = {})[or.NONE = 0] = "NONE", or[or.INVISIBLE = 1] = "INVISIBLE", or[or.CONSTANT = 2] = "CONSTANT", or[or.VERIFICATION_REQUIRED = 4] = "VERIFICATION_REQUIRED", or[or.PRESET = 8] = "PRESET";
22887
22963
  (ys = {})[ys.MULTILINE = 2] = "MULTILINE", ys[ys.CONSTANT_MULTILINE = 4] = "CONSTANT_MULTILINE";
22888
22964
  (ln = {})[ln.NONE = 0] = "NONE", ln[ln.MIRRORED_X = 2] = "MIRRORED_X", ln[ln.MIRRORED_Y = 4] = "MIRRORED_Y";
22889
- var Eu = ((je = {})[je.LEFT = 0] = "LEFT", je[je.CENTER = 1] = "CENTER", je[je.RIGHT = 2] = "RIGHT", je[je.ALIGNED = 3] = "ALIGNED", je[je.MIDDLE = 4] = "MIDDLE", je[je.FIT = 5] = "FIT", je), Mu = ((Pr = {})[Pr.BASELINE = 0] = "BASELINE", Pr[Pr.BOTTOM = 1] = "BOTTOM", Pr[Pr.MIDDLE = 2] = "MIDDLE", Pr[Pr.TOP = 3] = "TOP", Pr);
22965
+ var Eu = ((Ve = {})[Ve.LEFT = 0] = "LEFT", Ve[Ve.CENTER = 1] = "CENTER", Ve[Ve.RIGHT = 2] = "RIGHT", Ve[Ve.ALIGNED = 3] = "ALIGNED", Ve[Ve.MIDDLE = 4] = "MIDDLE", Ve[Ve.FIT = 5] = "FIT", Ve), Mu = ((Pr = {})[Pr.BASELINE = 0] = "BASELINE", Pr[Pr.BOTTOM = 1] = "BOTTOM", Pr[Pr.MIDDLE = 2] = "MIDDLE", Pr[Pr.TOP = 3] = "TOP", Pr);
22890
22966
  function Fl(i, t, e) {
22891
22967
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
22892
22968
  }
@@ -23432,7 +23508,7 @@ class kh {
23432
23508
  }
23433
23509
  }
23434
23510
  Mh(kh, "ForEntityName", "3DSOLID");
23435
- (Ge = {})[Ge.NONE = 0] = "NONE", Ge[Ge.CLOSED = 1] = "CLOSED", Ge[Ge.PERIODIC = 2] = "PERIODIC", Ge[Ge.RATIONAL = 4] = "RATIONAL", Ge[Ge.PLANAR = 8] = "PLANAR", Ge[Ge.LINEAR = 16] = "LINEAR";
23511
+ (je = {})[je.NONE = 0] = "NONE", je[je.CLOSED = 1] = "CLOSED", je[je.PERIODIC = 2] = "PERIODIC", je[je.RATIONAL = 4] = "RATIONAL", je[je.PLANAR = 8] = "PLANAR", je[je.LINEAR = 16] = "LINEAR";
23436
23512
  function Th(i, t, e) {
23437
23513
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
23438
23514
  }
@@ -23946,7 +24022,7 @@ function Bd(i, t) {
23946
24022
  for (; !Pt(i, 0, "EOF") && !Pt(i, 0, "ENDSEC"); ) i.code === 9 ? e = i.value : i.code === 10 ? n[e] = Rt(t) : n[e] = i.value, i = t.next();
23947
24023
  return n;
23948
24024
  }
23949
- (We = {})[We.NOT_APPLICABLE = 0] = "NOT_APPLICABLE", We[We.KEEP_EXISTING = 1] = "KEEP_EXISTING", We[We.USE_CLONE = 2] = "USE_CLONE", We[We.XREF_VALUE_NAME = 3] = "XREF_VALUE_NAME", We[We.VALUE_NAME = 4] = "VALUE_NAME", We[We.UNMANGLE_NAME = 5] = "UNMANGLE_NAME";
24025
+ (Ge = {})[Ge.NOT_APPLICABLE = 0] = "NOT_APPLICABLE", Ge[Ge.KEEP_EXISTING = 1] = "KEEP_EXISTING", Ge[Ge.USE_CLONE = 2] = "USE_CLONE", Ge[Ge.XREF_VALUE_NAME = 3] = "XREF_VALUE_NAME", Ge[Ge.VALUE_NAME = 4] = "VALUE_NAME", Ge[Ge.UNMANGLE_NAME = 5] = "UNMANGLE_NAME";
23950
24026
  let Ea = [{ code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser: mn }, { code: 102, parser: mn }, { code: 102, parser: mn }, { code: 5, name: "handle", parser: v }], zd = [{ code: 3, name: "entries", parser: (i, t) => {
23951
24027
  let e = { name: i.value };
23952
24028
  return (i = t.next()).code === 350 ? e.objectSoftId = i.value : i.code === 360 ? e.objectHardId = i.value : t.rewind(), e;
@@ -23954,9 +24030,9 @@ let Ea = [{ code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser:
23954
24030
  (cn = {})[cn.NOUNIT = 0] = "NOUNIT", cn[cn.CENTIMETERS = 2] = "CENTIMETERS", cn[cn.INCH = 5] = "INCH";
23955
24031
  (ws = {})[ws.PSLTSCALE = 1] = "PSLTSCALE", ws[ws.LIMCHECK = 2] = "LIMCHECK";
23956
24032
  (un = {})[un.INCHES = 0] = "INCHES", un[un.MILLIMETERS = 1] = "MILLIMETERS", un[un.PIXELS = 2] = "PIXELS";
23957
- (He = {})[He.LAST_SCREEN_DISPLAY = 0] = "LAST_SCREEN_DISPLAY", He[He.DRAWING_EXTENTS = 1] = "DRAWING_EXTENTS", He[He.DRAWING_LIMITS = 2] = "DRAWING_LIMITS", He[He.VIEW_SPECIFIED = 3] = "VIEW_SPECIFIED", He[He.WINDOW_SPECIFIED = 4] = "WINDOW_SPECIFIED", He[He.LAYOUT_INFORMATION = 5] = "LAYOUT_INFORMATION";
24033
+ (We = {})[We.LAST_SCREEN_DISPLAY = 0] = "LAST_SCREEN_DISPLAY", We[We.DRAWING_EXTENTS = 1] = "DRAWING_EXTENTS", We[We.DRAWING_LIMITS = 2] = "DRAWING_LIMITS", We[We.VIEW_SPECIFIED = 3] = "VIEW_SPECIFIED", We[We.WINDOW_SPECIFIED = 4] = "WINDOW_SPECIFIED", We[We.LAYOUT_INFORMATION = 5] = "LAYOUT_INFORMATION";
23958
24034
  (Tr = {})[Tr.AS_DISPLAYED = 0] = "AS_DISPLAYED", Tr[Tr.WIREFRAME = 1] = "WIREFRAME", Tr[Tr.HIDDEN = 2] = "HIDDEN", Tr[Tr.RENDERED = 3] = "RENDERED";
23959
- (qe = {})[qe.DRAFT = 0] = "DRAFT", qe[qe.PREVIEW = 1] = "PREVIEW", qe[qe.NORMAL = 2] = "NORMAL", qe[qe.PRESENTATION = 3] = "PRESENTATION", qe[qe.MAXIMUM = 4] = "MAXIMUM", qe[qe.CUSTOM = 5] = "CUSTOM";
24035
+ (He = {})[He.DRAFT = 0] = "DRAFT", He[He.PREVIEW = 1] = "PREVIEW", He[He.NORMAL = 2] = "NORMAL", He[He.PRESENTATION = 3] = "PRESENTATION", He[He.MAXIMUM = 4] = "MAXIMUM", He[He.CUSTOM = 5] = "CUSTOM";
23960
24036
  let Vh = [{ code: 333, name: "shadePlotId", parser: v }, { code: 149, name: "imageOriginY", parser: v }, { code: 148, name: "imageOriginX", parser: v }, { code: 147, name: "scaleFactor", parser: v }, { code: 78, name: "shadePlotCustomDPI", parser: v }, { code: 77, name: "shadePlotResolution", parser: v }, { code: 76, name: "shadePlotMode", parser: v }, { code: 75, name: "standardScaleType", parser: v }, { code: 7, name: "currentStyleSheet", parser: v }, { code: 74, name: "plotType", parser: v }, { code: 73, name: "plotRotation", parser: v }, { code: 72, name: "plotPaperUnit", parser: v }, { code: 70, name: "layoutFlag", parser: v }, { code: 143, name: "printScaleDenominator", parser: v }, { code: 142, name: "printScaleNumerator", parser: v }, { code: 141, name: "windowAreaYMax", parser: v }, { code: 140, name: "windowAreaXMax", parser: v }, { code: 49, name: "windowAreaYMin", parser: v }, { code: 48, name: "windowAreaXMin", parser: v }, { code: 47, name: "plotOriginY", parser: v }, { code: 46, name: "plotOriginX", parser: v }, { code: 45, name: "paperHeight", parser: v }, { code: 44, name: "paperWidth", parser: v }, { code: 43, name: "marginTop", parser: v }, { code: 42, name: "marginRight", parser: v }, { code: 41, name: "marginBottom", parser: v }, { code: 40, name: "marginLeft", parser: v }, { code: 6, name: "plotViewName", parser: v }, { code: 4, name: "paperSize", parser: v }, { code: 2, name: "configName", parser: v }, { code: 1, name: "pageSetupName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Ea], Fd = [{ code: 346, name: "orthographicUcsId", parser: v }, { code: 345, name: "namedUcsId", parser: v }, { code: 331, name: "viewportId", parser: v }, { code: 330, name: "paperSpaceTableId", parser: v }, { code: 76, name: "orthographicType", parser: v }, { code: 17, name: "ucsYAxis", parser: W }, { code: 16, name: "ucsXAxis", parser: W }, { code: 13, name: "ucsOrigin", parser: W }, { code: 146, name: "elevation", parser: v }, { code: 15, name: "maxExtent", parser: W }, { code: 14, name: "minExtent", parser: W }, { code: 12, name: "insertionPoint", parser: W }, { code: 11, name: "maxLimit", parser: W }, { code: 10, name: "minLimit", parser: W }, { code: 71, name: "tabOrder", parser: v }, { code: 70, name: "controlFlag", parser: v }, { code: 1, name: "layoutName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Vh], Dd = [{ code: 40, name: "wcsToOCSTransform", parser: Go }, { code: 40, name: "ocsToWCSTransform", parser: Go }, { code: 41, name: "backClippingDistance", parser: v }, { code: 73, name: "isBackClipping", parser: Ut, pushContext: !0 }, { code: 40, name: "frontClippingDistance", parser: v }, { code: 72, name: "isFrontClipping", parser: Ut, pushContext: !0 }, { code: 71, name: "isClipBoundaryDisplayed", parser: Ut }, { code: 11, name: "position", parser: W }, { code: 210, name: "normal", parser: W }, { code: 10, name: "boundaryVertices", parser: W, isMultiple: !0 }, { code: 70, name: "boundaryCount", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 100 }, ...Ea];
23961
24037
  function Go(i, t) {
23962
24038
  let e = [];
@@ -24456,9 +24532,9 @@ class Yo {
24456
24532
  return (a = t.definitionLines) == null || a.forEach((h) => {
24457
24533
  e.definitionLines.push({
24458
24534
  angle: h.angle,
24459
- origin: h.base,
24460
- delta: h.offset,
24461
- dashPattern: h.numberOfDashLengths > 0 ? h.dashLengths : []
24535
+ base: h.base,
24536
+ offset: h.offset,
24537
+ dashLengths: h.numberOfDashLengths > 0 ? h.dashLengths : []
24462
24538
  });
24463
24539
  }), e.isSolidFill = t.solidFill == vu.SolidFill, e.hatchStyle = t.hatchStyle, e.patternName = t.patternName, e.patternType = t.patternType, e.patternAngle = t.patternAngle == null ? 0 : t.patternAngle, e.patternScale = t.patternScale == null ? 0 : t.patternScale, t.boundaryPaths.forEach((h) => {
24464
24540
  if (h.boundaryPathTypeFlag & 2) {
@@ -28998,7 +29074,7 @@ export {
28998
29074
  me as AcDbBlockTableRecord,
28999
29075
  Ki as AcDbCircle,
29000
29076
  el as AcDbCodePage,
29001
- Oe as AcDbCurve,
29077
+ Le as AcDbCurve,
29002
29078
  mu as AcDbDataGenerator,
29003
29079
  X0 as AcDbDatabase,
29004
29080
  Nl as AcDbDatabaseConverter,
@@ -29017,7 +29093,7 @@ export {
29017
29093
  ma as AcDbDwgVersion,
29018
29094
  a0 as AcDbDxfConverter,
29019
29095
  $i as AcDbEllipse,
29020
- Le as AcDbEntity,
29096
+ Ne as AcDbEntity,
29021
29097
  Zi as AcDbFace,
29022
29098
  ni as AcDbFileType,
29023
29099
  ii as AcDbHatch,
@@ -29088,7 +29164,7 @@ export {
29088
29164
  xl as AcGeLoop2d,
29089
29165
  It as AcGeMathUtil,
29090
29166
  _a as AcGeMatrix2d,
29091
- Ne as AcGeMatrix3d,
29167
+ Ke as AcGeMatrix3d,
29092
29168
  Bn as AcGeNurbsCurve,
29093
29169
  mi as AcGePlane,
29094
29170
  Nt as AcGePoint2d,