@mlightcad/data-model 1.5.4 → 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.
- package/dist/data-model.cjs +3 -3
- package/dist/data-model.js +302 -193
- package/dist/dxf-parser-worker.js +2 -2
- package/lib/converter/AcDbEntitiyConverter.js +3 -3
- package/lib/converter/AcDbEntitiyConverter.js.map +1 -1
- package/lib/database/AcDbDatabase.d.ts +3 -3
- package/lib/database/AcDbDatabase.js +3 -3
- package/lib/database/AcDbDwgVersion.js +2 -2
- package/lib/entity/AcDbBlockReference.d.ts +45 -16
- package/lib/entity/AcDbBlockReference.d.ts.map +1 -1
- package/lib/entity/AcDbBlockReference.js +99 -28
- package/lib/entity/AcDbBlockReference.js.map +1 -1
- package/lib/entity/AcDbFace.d.ts +1 -1
- package/lib/entity/AcDbFace.js +1 -1
- package/lib/entity/AcDbHatch.js +1 -1
- package/lib/entity/AcDbHatch.js.map +1 -1
- package/lib/entity/AcDbTrace.js +1 -1
- package/lib/entity/AcDbTrace.js.map +1 -1
- package/lib/entity/dimension/AcDbDimension.d.ts +49 -0
- package/lib/entity/dimension/AcDbDimension.d.ts.map +1 -1
- package/lib/entity/dimension/AcDbDimension.js +76 -10
- package/lib/entity/dimension/AcDbDimension.js.map +1 -1
- package/lib/misc/AcDbOsnapMode.d.ts +104 -0
- package/lib/misc/AcDbOsnapMode.d.ts.map +1 -1
- package/lib/misc/AcDbOsnapMode.js +162 -0
- package/lib/misc/AcDbOsnapMode.js.map +1 -1
- package/lib/misc/AcDbRenderingCache.d.ts +2 -2
- package/lib/misc/AcDbRenderingCache.d.ts.map +1 -1
- package/lib/misc/AcDbRenderingCache.js +5 -1
- package/lib/misc/AcDbRenderingCache.js.map +1 -1
- package/package.json +3 -3
package/dist/data-model.js
CHANGED
|
@@ -2260,29 +2260,29 @@ class Ns {
|
|
|
2260
2260
|
* );
|
|
2261
2261
|
* ```
|
|
2262
2262
|
*/
|
|
2263
|
-
draw(t, e, n, a = !0, h) {
|
|
2264
|
-
var
|
|
2265
|
-
const
|
|
2263
|
+
draw(t, e, n, a = !0, h, c) {
|
|
2264
|
+
var b;
|
|
2265
|
+
const m = [];
|
|
2266
2266
|
if (e != null) {
|
|
2267
|
-
const
|
|
2268
|
-
let
|
|
2269
|
-
if (this.has(
|
|
2270
|
-
|
|
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
|
|
2272
|
+
const x = (b = t.basePoint) == null ? void 0 : b.clone();
|
|
2273
2273
|
t.basePoint = void 0;
|
|
2274
|
-
const
|
|
2275
|
-
let
|
|
2276
|
-
for (const
|
|
2277
|
-
if (
|
|
2278
|
-
const
|
|
2279
|
-
t.basePoint =
|
|
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
|
-
|
|
2281
|
+
w = t.group(m), w && a && me.name && !me.name.startsWith("*U") && this.set(f, w), t.basePoint = x;
|
|
2282
2282
|
}
|
|
2283
|
-
return
|
|
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(
|
|
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
|
|
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],
|
|
5103
|
-
return h[0] = c * ct + m * qt + b * fe + f * Q, h[4] = c * st + m * wt + b *
|
|
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
|
|
5414
|
-
const Nn = /* @__PURE__ */ new K(), sr = /* @__PURE__ */ new
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
8660
|
-
var Me = X[ot.fastCodeAt(pt, ft++)],
|
|
8661
|
-
Vt.set(Zt++, Me << 2 |
|
|
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++,
|
|
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++)],
|
|
8669
|
-
if (Vt.set(Zt++, ke << 2 |
|
|
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++,
|
|
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
|
|
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"] =
|
|
8768
|
-
return new
|
|
8769
|
-
},
|
|
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__:
|
|
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:
|
|
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
|
-
}(
|
|
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(
|
|
9290
|
-
}), this.then(
|
|
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(
|
|
9363
|
-
}), this.then(
|
|
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(
|
|
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(
|
|
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:
|
|
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:
|
|
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
|
|
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"] =
|
|
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
|
-
},
|
|
9548
|
+
}, Be.prototype = {
|
|
9549
9549
|
fromPoint: function(r) {
|
|
9550
|
-
return new
|
|
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
|
|
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 (!
|
|
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
|
|
9600
|
+
return new Be([_, g]);
|
|
9601
9601
|
},
|
|
9602
|
-
__class__:
|
|
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
|
|
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"] =
|
|
9718
|
-
return new
|
|
9719
|
-
},
|
|
9720
|
-
__class__:
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
10219
|
+
var ze = f.core.Trig = function() {
|
|
10220
10220
|
};
|
|
10221
|
-
x["verb.core.Trig"] =
|
|
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
|
-
},
|
|
10224
|
-
var l =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
10230
|
-
var l =
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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],
|
|
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 =
|
|
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
|
|
10545
|
+
var Ye = f.eval.Check = function() {
|
|
10546
10546
|
};
|
|
10547
|
-
x["verb.eval.Check"] =
|
|
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
|
|
10559
|
-
},
|
|
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
|
-
},
|
|
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 (!
|
|
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
|
-
},
|
|
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 (!
|
|
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,
|
|
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 =
|
|
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,
|
|
11434
|
-
var be = [
|
|
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,
|
|
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
|
|
11544
|
-
A[
|
|
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],
|
|
11548
|
+
var ye = X - be + 1, ke = u[X], Fe = nt;
|
|
11549
11549
|
nt = l - ye;
|
|
11550
11550
|
var tr;
|
|
11551
|
-
|
|
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 (
|
|
11571
|
-
for (var xi = ut - 2, wi = ut, fo = ke - Et, Zh = (ke - N[ut - 1]) / fo, _o = 1; _o <
|
|
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 +
|
|
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 -
|
|
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 || !
|
|
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
|
|
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 = [
|
|
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
|
|
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 =
|
|
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 =
|
|
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" ?
|
|
12484
|
+
} : typeof r.iterator == "function" ? Re(r, r.iterator) : r.iterator;
|
|
12485
12485
|
}
|
|
12486
12486
|
var _i, Wh = 0;
|
|
12487
|
-
function
|
|
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
|
|
13996
|
-
const Ta = class Ta extends
|
|
13995
|
+
let Ne = ka;
|
|
13996
|
+
const Ta = class Ta extends Ne {
|
|
13997
13997
|
};
|
|
13998
13998
|
Ta.typeName = "Curve";
|
|
13999
|
-
let
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
15306
|
-
*
|
|
15307
|
-
*
|
|
15308
|
-
*
|
|
15309
|
-
*
|
|
15310
|
-
*
|
|
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.
|
|
15330
|
+
*
|
|
15331
|
+
* ### Matrix composition (right-multiply convention)
|
|
15332
|
+
*
|
|
15333
|
+
* ```
|
|
15334
|
+
* blockTransform =
|
|
15335
|
+
* T(position)
|
|
15336
|
+
* · R(rotation about OCS Z)
|
|
15337
|
+
* · S(scaleFactors)
|
|
15338
|
+
* · T(-blockBasePoint)
|
|
15339
|
+
* ```
|
|
15340
|
+
*
|
|
15341
|
+
* ### Notes
|
|
15311
15342
|
*
|
|
15312
|
-
*
|
|
15313
|
-
*
|
|
15314
|
-
*
|
|
15315
|
-
*
|
|
15316
|
-
* · R(rotation)
|
|
15317
|
-
* · S(scale)
|
|
15318
|
-
* · T(-basePoint)
|
|
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
|
|
15319
15347
|
*
|
|
15320
|
-
* @returns
|
|
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
|
|
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
|
-
),
|
|
15360
|
+
), h = new zn().setFromAxisAngle(
|
|
15328
15361
|
K.Z_AXIS,
|
|
15329
15362
|
this._rotation
|
|
15330
|
-
),
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
|
16778
|
+
const Va = class Va extends Le {
|
|
16751
16779
|
/**
|
|
16752
16780
|
* Creates a new leader entity.
|
|
16753
16781
|
*
|
|
@@ -16978,7 +17006,34 @@ const Va = class Va extends Oe {
|
|
|
16978
17006
|
Va.typeName = "Leader";
|
|
16979
17007
|
let Qi = Va;
|
|
16980
17008
|
var Dt = /* @__PURE__ */ ((i) => (i[i.EndPoint = 1] = "EndPoint", i[i.MidPoint = 2] = "MidPoint", i[i.Center = 3] = "Center", i[i.Node = 4] = "Node", i[i.Quadrant = 5] = "Quadrant", i[i.Insertion = 7] = "Insertion", i[i.Perpendicular = 8] = "Perpendicular", i[i.Tangent = 9] = "Tangent", i[i.Nearest = 10] = "Nearest", i[i.Centroid = 11] = "Centroid", i))(Dt || {});
|
|
16981
|
-
|
|
17009
|
+
function D0(i) {
|
|
17010
|
+
let t = 0;
|
|
17011
|
+
for (const e of i)
|
|
17012
|
+
t |= 1 << e - 1;
|
|
17013
|
+
return t;
|
|
17014
|
+
}
|
|
17015
|
+
function U0(i) {
|
|
17016
|
+
const t = [];
|
|
17017
|
+
for (const e of Object.values(Dt)) {
|
|
17018
|
+
if (typeof e != "number") continue;
|
|
17019
|
+
const n = 1 << e - 1;
|
|
17020
|
+
i & n && t.push(e);
|
|
17021
|
+
}
|
|
17022
|
+
return t;
|
|
17023
|
+
}
|
|
17024
|
+
function V0(i, t) {
|
|
17025
|
+
return i ^ 1 << t - 1;
|
|
17026
|
+
}
|
|
17027
|
+
function j0(i, t) {
|
|
17028
|
+
return (i & 1 << t - 1) !== 0;
|
|
17029
|
+
}
|
|
17030
|
+
function G0(i, t) {
|
|
17031
|
+
return i | 1 << t - 1;
|
|
17032
|
+
}
|
|
17033
|
+
function W0(i, t) {
|
|
17034
|
+
return i & ~(1 << t - 1);
|
|
17035
|
+
}
|
|
17036
|
+
const ja = class ja extends Le {
|
|
16982
17037
|
/**
|
|
16983
17038
|
* Creates a new line entity.
|
|
16984
17039
|
*
|
|
@@ -17283,7 +17338,7 @@ const ja = class ja extends Oe {
|
|
|
17283
17338
|
};
|
|
17284
17339
|
ja.typeName = "Line";
|
|
17285
17340
|
let ai = ja;
|
|
17286
|
-
const Ga = class Ga extends
|
|
17341
|
+
const Ga = class Ga extends Ne {
|
|
17287
17342
|
/**
|
|
17288
17343
|
* Creates a new multiline text entity.
|
|
17289
17344
|
*
|
|
@@ -17763,7 +17818,7 @@ const Ga = class Ga extends Le {
|
|
|
17763
17818
|
};
|
|
17764
17819
|
Ga.typeName = "MText";
|
|
17765
17820
|
let oi = Ga;
|
|
17766
|
-
const Wa = class Wa extends
|
|
17821
|
+
const Wa = class Wa extends Le {
|
|
17767
17822
|
constructor(t, e, n, a, h) {
|
|
17768
17823
|
super();
|
|
17769
17824
|
const c = +(t !== void 0) + +(e !== void 0) + +(n !== void 0) + +(a !== void 0) + +(h !== void 0);
|
|
@@ -18283,9 +18338,9 @@ const au = /* @__PURE__ */ new K(), Ha = class Ha extends ks {
|
|
|
18283
18338
|
};
|
|
18284
18339
|
Ha.typeName = "Table";
|
|
18285
18340
|
let Ji = Ha;
|
|
18286
|
-
const Fo = /* @__PURE__ */ new
|
|
18341
|
+
const Fo = /* @__PURE__ */ new Ke();
|
|
18287
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 || {});
|
|
18288
|
-
const qa = class qa extends
|
|
18343
|
+
const qa = class qa extends Ne {
|
|
18289
18344
|
/**
|
|
18290
18345
|
* Creates a new text entity.
|
|
18291
18346
|
*
|
|
@@ -18796,7 +18851,7 @@ const qa = class qa extends Le {
|
|
|
18796
18851
|
};
|
|
18797
18852
|
qa.typeName = "Text";
|
|
18798
18853
|
let ta = qa;
|
|
18799
|
-
const Ya = class Ya extends
|
|
18854
|
+
const Ya = class Ya extends Le {
|
|
18800
18855
|
/**
|
|
18801
18856
|
* Creates a new trace entity.
|
|
18802
18857
|
*
|
|
@@ -18998,13 +19053,13 @@ const Ya = class Ya extends Oe {
|
|
|
18998
19053
|
return a.fillType = {
|
|
18999
19054
|
solidFill: !0,
|
|
19000
19055
|
patternAngle: 0,
|
|
19001
|
-
|
|
19056
|
+
definitionLines: []
|
|
19002
19057
|
}, t.area(n);
|
|
19003
19058
|
}
|
|
19004
19059
|
};
|
|
19005
19060
|
Ya.typeName = "Trace";
|
|
19006
19061
|
let ea = Ya;
|
|
19007
|
-
const Xa = class Xa extends
|
|
19062
|
+
const Xa = class Xa extends Le {
|
|
19008
19063
|
/**
|
|
19009
19064
|
* Creates a new empty polyline entity.
|
|
19010
19065
|
*
|
|
@@ -19324,7 +19379,7 @@ const Xa = class Xa extends Oe {
|
|
|
19324
19379
|
};
|
|
19325
19380
|
Xa.typeName = "Polyline";
|
|
19326
19381
|
let ra = Xa;
|
|
19327
|
-
const Ka = class Ka extends
|
|
19382
|
+
const Ka = class Ka extends Ne {
|
|
19328
19383
|
/**
|
|
19329
19384
|
* Creates a new point entity.
|
|
19330
19385
|
*
|
|
@@ -19492,7 +19547,7 @@ const Ka = class Ka extends Le {
|
|
|
19492
19547
|
Ka.typeName = "Point";
|
|
19493
19548
|
let na = Ka;
|
|
19494
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 || {});
|
|
19495
|
-
const $a = class $a extends
|
|
19550
|
+
const $a = class $a extends Ne {
|
|
19496
19551
|
/**
|
|
19497
19552
|
* Creates a new raster image entity.
|
|
19498
19553
|
*
|
|
@@ -19732,7 +19787,7 @@ const $a = class $a extends Le {
|
|
|
19732
19787
|
};
|
|
19733
19788
|
$a.typeName = "RasterImage";
|
|
19734
19789
|
let hi = $a;
|
|
19735
|
-
const Do = /* @__PURE__ */ new Nt(), js = /* @__PURE__ */ new Nt(), Za = class Za extends
|
|
19790
|
+
const Do = /* @__PURE__ */ new Nt(), js = /* @__PURE__ */ new Nt(), Za = class Za extends Le {
|
|
19736
19791
|
/**
|
|
19737
19792
|
* Creates a new ray entity.
|
|
19738
19793
|
*
|
|
@@ -19985,7 +20040,7 @@ const Do = /* @__PURE__ */ new Nt(), js = /* @__PURE__ */ new Nt(), Za = class Z
|
|
|
19985
20040
|
};
|
|
19986
20041
|
Za.typeName = "Ray";
|
|
19987
20042
|
let sa = Za;
|
|
19988
|
-
const Qa = class Qa extends
|
|
20043
|
+
const Qa = class Qa extends Ne {
|
|
19989
20044
|
/**
|
|
19990
20045
|
* Creates a new AcDbViewport instance.
|
|
19991
20046
|
*
|
|
@@ -20235,7 +20290,7 @@ const Ja = class Ja extends hi {
|
|
|
20235
20290
|
};
|
|
20236
20291
|
Ja.typeName = "Wipeout";
|
|
20237
20292
|
let aa = Ja;
|
|
20238
|
-
const to = class to extends
|
|
20293
|
+
const to = class to extends Le {
|
|
20239
20294
|
/**
|
|
20240
20295
|
* Creates a new xline entity.
|
|
20241
20296
|
*
|
|
@@ -20473,7 +20528,7 @@ const to = class to extends Oe {
|
|
|
20473
20528
|
to.typeName = "Xline";
|
|
20474
20529
|
let oa = to;
|
|
20475
20530
|
var uu = /* @__PURE__ */ ((i) => (i[i.AtLeast = 1] = "AtLeast", i[i.Exactly = 2] = "Exactly", i))(uu || {});
|
|
20476
|
-
const eo = class eo extends
|
|
20531
|
+
const eo = class eo extends Ne {
|
|
20477
20532
|
/**
|
|
20478
20533
|
* Creates a new dimension entity.
|
|
20479
20534
|
*
|
|
@@ -20718,7 +20773,8 @@ const eo = class eo extends Le {
|
|
|
20718
20773
|
n,
|
|
20719
20774
|
this.rgbColor,
|
|
20720
20775
|
!1,
|
|
20721
|
-
a
|
|
20776
|
+
a,
|
|
20777
|
+
this._normal
|
|
20722
20778
|
);
|
|
20723
20779
|
return this.attachEntityInfo(h), h;
|
|
20724
20780
|
}
|
|
@@ -20844,19 +20900,66 @@ const eo = class eo extends Le {
|
|
|
20844
20900
|
const e = this.database.tables.blockTable.getIdAt(t);
|
|
20845
20901
|
return e ? e.name.toUpperCase() : Al.Closed;
|
|
20846
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
|
+
*/
|
|
20847
20952
|
computeDimBlockTransform() {
|
|
20848
|
-
const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ?? G.ORIGIN, n = new
|
|
20849
|
-
this._dimBlockPosition.x,
|
|
20850
|
-
this._dimBlockPosition.y,
|
|
20851
|
-
this._dimBlockPosition.z
|
|
20852
|
-
), a = new Ne();
|
|
20853
|
-
a.setFromExtrusionDirection(this._normal);
|
|
20854
|
-
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(
|
|
20855
20954
|
-e.x,
|
|
20856
20955
|
-e.y,
|
|
20857
20956
|
-e.z
|
|
20957
|
+
), a = new Ke().makeTranslation(
|
|
20958
|
+
this._dimBlockPosition.x,
|
|
20959
|
+
this._dimBlockPosition.y,
|
|
20960
|
+
this._dimBlockPosition.z
|
|
20858
20961
|
);
|
|
20859
|
-
return new
|
|
20962
|
+
return new Ke().multiplyMatrices(a, n);
|
|
20860
20963
|
}
|
|
20861
20964
|
};
|
|
20862
20965
|
eo.typeName = "Dimension";
|
|
@@ -22353,10 +22456,10 @@ var Tl = /* @__PURE__ */ ((i) => (i[i.Undefined = 0] = "Undefined", i[i.Inches =
|
|
|
22353
22456
|
i.Max = 24
|
|
22354
22457
|
/* USSurveyMile */
|
|
22355
22458
|
] = "Max", i))(Tl || {});
|
|
22356
|
-
function
|
|
22459
|
+
function H0(i) {
|
|
22357
22460
|
return i == 4 || i == 5 || i == 6 || i == 7 || i == 12 || i == 13 || i == 14 || i == 15 || i == 16 || i == 17;
|
|
22358
22461
|
}
|
|
22359
|
-
function
|
|
22462
|
+
function q0(i) {
|
|
22360
22463
|
return i == 1 || i == 2 || i == 3 || i == 8 || i == 9 || i == 10 || i == 21;
|
|
22361
22464
|
}
|
|
22362
22465
|
const Cl = "Load Database";
|
|
@@ -22640,7 +22743,7 @@ class Nl {
|
|
|
22640
22743
|
throw new Error("Not impelemented yet!");
|
|
22641
22744
|
}
|
|
22642
22745
|
}
|
|
22643
|
-
var ue, ls, ee, ae, hs, ir, xe, br, ar, nn, cs, us, sn, an, ds, ps, ms,
|
|
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;
|
|
22644
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";
|
|
22645
22748
|
(ls = {})[ls.BYBLOCK = 0] = "BYBLOCK", ls[ls.BYLAYER = 256] = "BYLAYER";
|
|
22646
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";
|
|
@@ -22653,7 +22756,7 @@ var Vo = ((ir = {})[ir.Center = 0] = "Center", ir[ir.Above = 1] = "Above", ir[ir
|
|
|
22653
22756
|
(ds = {})[ds.NotAnnotated = 0] = "NotAnnotated", ds[ds.Annotated = 1] = "Annotated";
|
|
22654
22757
|
(ps = {})[ps.Solid = 0] = "Solid", ps[ps.Gradient = 1] = "Gradient";
|
|
22655
22758
|
(ms = {})[ms.TwoColor = 0] = "TwoColor", ms[ms.OneColor = 1] = "OneColor";
|
|
22656
|
-
var bu = ((
|
|
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);
|
|
22657
22760
|
xu.Off;
|
|
22658
22761
|
(on = {})[on.Standard = -3] = "Standard", on[on.ByLayer = -2] = "ByLayer", on[on.ByBlock = -1] = "ByBlock";
|
|
22659
22762
|
(gs = {})[gs.English = 0] = "English", gs[gs.Metric = 1] = "Metric";
|
|
@@ -22859,7 +22962,7 @@ zl(Rl, "ForEntityName", "ARC");
|
|
|
22859
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";
|
|
22860
22963
|
(ys = {})[ys.MULTILINE = 2] = "MULTILINE", ys[ys.CONSTANT_MULTILINE = 4] = "CONSTANT_MULTILINE";
|
|
22861
22964
|
(ln = {})[ln.NONE = 0] = "NONE", ln[ln.MIRRORED_X = 2] = "MIRRORED_X", ln[ln.MIRRORED_Y = 4] = "MIRRORED_Y";
|
|
22862
|
-
var Eu = ((
|
|
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);
|
|
22863
22966
|
function Fl(i, t, e) {
|
|
22864
22967
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
22865
22968
|
}
|
|
@@ -23405,7 +23508,7 @@ class kh {
|
|
|
23405
23508
|
}
|
|
23406
23509
|
}
|
|
23407
23510
|
Mh(kh, "ForEntityName", "3DSOLID");
|
|
23408
|
-
(
|
|
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";
|
|
23409
23512
|
function Th(i, t, e) {
|
|
23410
23513
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
23411
23514
|
}
|
|
@@ -23919,7 +24022,7 @@ function Bd(i, t) {
|
|
|
23919
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();
|
|
23920
24023
|
return n;
|
|
23921
24024
|
}
|
|
23922
|
-
(
|
|
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";
|
|
23923
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) => {
|
|
23924
24027
|
let e = { name: i.value };
|
|
23925
24028
|
return (i = t.next()).code === 350 ? e.objectSoftId = i.value : i.code === 360 ? e.objectHardId = i.value : t.rewind(), e;
|
|
@@ -23927,9 +24030,9 @@ let Ea = [{ code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser:
|
|
|
23927
24030
|
(cn = {})[cn.NOUNIT = 0] = "NOUNIT", cn[cn.CENTIMETERS = 2] = "CENTIMETERS", cn[cn.INCH = 5] = "INCH";
|
|
23928
24031
|
(ws = {})[ws.PSLTSCALE = 1] = "PSLTSCALE", ws[ws.LIMCHECK = 2] = "LIMCHECK";
|
|
23929
24032
|
(un = {})[un.INCHES = 0] = "INCHES", un[un.MILLIMETERS = 1] = "MILLIMETERS", un[un.PIXELS = 2] = "PIXELS";
|
|
23930
|
-
(
|
|
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";
|
|
23931
24034
|
(Tr = {})[Tr.AS_DISPLAYED = 0] = "AS_DISPLAYED", Tr[Tr.WIREFRAME = 1] = "WIREFRAME", Tr[Tr.HIDDEN = 2] = "HIDDEN", Tr[Tr.RENDERED = 3] = "RENDERED";
|
|
23932
|
-
(
|
|
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";
|
|
23933
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];
|
|
23934
24037
|
function Go(i, t) {
|
|
23935
24038
|
let e = [];
|
|
@@ -24121,8 +24224,8 @@ const qo = [
|
|
|
24121
24224
|
*/
|
|
24122
24225
|
{ name: "AC1014", value: 21 },
|
|
24123
24226
|
/**
|
|
24124
|
-
* AC1500 doesn
|
|
24125
|
-
* it
|
|
24227
|
+
* AC1500 doesn't actually correspond to any real DWG file version.
|
|
24228
|
+
* it's just a legacy or internal placeholder in the enum sequence.
|
|
24126
24229
|
*/
|
|
24127
24230
|
{ name: "AC1500", value: 22 },
|
|
24128
24231
|
/**
|
|
@@ -24429,9 +24532,9 @@ class Yo {
|
|
|
24429
24532
|
return (a = t.definitionLines) == null || a.forEach((h) => {
|
|
24430
24533
|
e.definitionLines.push({
|
|
24431
24534
|
angle: h.angle,
|
|
24432
|
-
|
|
24433
|
-
|
|
24434
|
-
|
|
24535
|
+
base: h.base,
|
|
24536
|
+
offset: h.offset,
|
|
24537
|
+
dashLengths: h.numberOfDashLengths > 0 ? h.dashLengths : []
|
|
24435
24538
|
});
|
|
24436
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) => {
|
|
24437
24540
|
if (h.boundaryPathTypeFlag & 2) {
|
|
@@ -25150,7 +25253,7 @@ class s0 {
|
|
|
25150
25253
|
function i0(i) {
|
|
25151
25254
|
return new s0(i);
|
|
25152
25255
|
}
|
|
25153
|
-
class
|
|
25256
|
+
class Y0 {
|
|
25154
25257
|
constructor() {
|
|
25155
25258
|
this.setupMessageHandler();
|
|
25156
25259
|
}
|
|
@@ -26686,7 +26789,7 @@ class p0 extends Un {
|
|
|
26686
26789
|
super(t);
|
|
26687
26790
|
}
|
|
26688
26791
|
}
|
|
26689
|
-
class
|
|
26792
|
+
class X0 extends fn {
|
|
26690
26793
|
/**
|
|
26691
26794
|
* Creates a new AcDbDatabase instance.
|
|
26692
26795
|
*/
|
|
@@ -26978,9 +27081,9 @@ class j0 extends fn {
|
|
|
26978
27081
|
}
|
|
26979
27082
|
/**
|
|
26980
27083
|
* Point display size.
|
|
26981
|
-
* - 0:
|
|
26982
|
-
* - > 0:
|
|
26983
|
-
* - < 0:
|
|
27084
|
+
* - 0: Creates a point at 5 percent of the drawing area height
|
|
27085
|
+
* - > 0: Specifies an absolute size
|
|
27086
|
+
* - < 0: Specifies a percentage of the viewport size
|
|
26984
27087
|
*/
|
|
26985
27088
|
get pdsize() {
|
|
26986
27089
|
return this._pdsize;
|
|
@@ -28964,16 +29067,16 @@ export {
|
|
|
28964
29067
|
tl as AcDbAngleUnits,
|
|
28965
29068
|
Xi as AcDbArc,
|
|
28966
29069
|
Uo as AcDbArcDimension,
|
|
28967
|
-
|
|
29070
|
+
Y0 as AcDbBaseWorker,
|
|
28968
29071
|
Jo as AcDbBatchProcessing,
|
|
28969
29072
|
ks as AcDbBlockReference,
|
|
28970
29073
|
l0 as AcDbBlockTable,
|
|
28971
29074
|
me as AcDbBlockTableRecord,
|
|
28972
29075
|
Ki as AcDbCircle,
|
|
28973
29076
|
el as AcDbCodePage,
|
|
28974
|
-
|
|
29077
|
+
Le as AcDbCurve,
|
|
28975
29078
|
mu as AcDbDataGenerator,
|
|
28976
|
-
|
|
29079
|
+
X0 as AcDbDatabase,
|
|
28977
29080
|
Nl as AcDbDatabaseConverter,
|
|
28978
29081
|
Lr as AcDbDatabaseConverterManager,
|
|
28979
29082
|
ca as AcDbDiametricDimension,
|
|
@@ -28990,7 +29093,7 @@ export {
|
|
|
28990
29093
|
ma as AcDbDwgVersion,
|
|
28991
29094
|
a0 as AcDbDxfConverter,
|
|
28992
29095
|
$i as AcDbEllipse,
|
|
28993
|
-
|
|
29096
|
+
Ne as AcDbEntity,
|
|
28994
29097
|
Zi as AcDbFace,
|
|
28995
29098
|
ni as AcDbFileType,
|
|
28996
29099
|
ii as AcDbHatch,
|
|
@@ -29061,7 +29164,7 @@ export {
|
|
|
29061
29164
|
xl as AcGeLoop2d,
|
|
29062
29165
|
It as AcGeMathUtil,
|
|
29063
29166
|
_a as AcGeMatrix2d,
|
|
29064
|
-
|
|
29167
|
+
Ke as AcGeMatrix3d,
|
|
29065
29168
|
Bn as AcGeNurbsCurve,
|
|
29066
29169
|
mi as AcGePlane,
|
|
29067
29170
|
Nt as AcGePoint2d,
|
|
@@ -29094,7 +29197,13 @@ export {
|
|
|
29094
29197
|
hl as ORIGIN_POINT_3D,
|
|
29095
29198
|
nl as RAD2DEG,
|
|
29096
29199
|
Qt as TAU,
|
|
29200
|
+
W0 as acdbDisableOsnapMode,
|
|
29201
|
+
G0 as acdbEnableOsnapMode,
|
|
29202
|
+
j0 as acdbHasOsnapMode,
|
|
29097
29203
|
Gh as acdbHostApplicationServices,
|
|
29204
|
+
U0 as acdbMaskToOsnapModes,
|
|
29205
|
+
D0 as acdbOsnapModesToMask,
|
|
29206
|
+
V0 as acdbToggleOsnapMode,
|
|
29098
29207
|
Gi as basisFunction,
|
|
29099
29208
|
Hc as calculateCurveLength,
|
|
29100
29209
|
Bc as ceilPowerOfTwo,
|
|
@@ -29121,8 +29230,8 @@ export {
|
|
|
29121
29230
|
Fc as isBetweenAngle,
|
|
29122
29231
|
lc as isEmpty,
|
|
29123
29232
|
Is as isEqual,
|
|
29124
|
-
|
|
29125
|
-
|
|
29233
|
+
q0 as isImperialUnits,
|
|
29234
|
+
H0 as isMetricUnits,
|
|
29126
29235
|
dl as isPointInPolygon,
|
|
29127
29236
|
Uc as isPolygonIntersect,
|
|
29128
29237
|
Oc as isPowerOfTwo,
|