@mlightcad/data-model 1.7.0 → 1.7.1
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 +250 -240
- package/lib/database/AcDbSysVarManager.d.ts.map +1 -1
- package/lib/database/AcDbSysVarManager.js +13 -0
- package/lib/database/AcDbSysVarManager.js.map +1 -1
- package/lib/entity/AcDbEntity.d.ts +2 -2
- package/lib/entity/AcDbEntity.d.ts.map +1 -1
- package/lib/entity/AcDbEntity.js +15 -5
- package/lib/entity/AcDbEntity.js.map +1 -1
- package/package.json +4 -4
package/dist/data-model.js
CHANGED
|
@@ -1109,7 +1109,7 @@ function yu(n, t) {
|
|
|
1109
1109
|
function vu(n) {
|
|
1110
1110
|
return n == null ? !0 : Array.isArray(n) || typeof n == "string" ? n.length === 0 : n instanceof Map || n instanceof Set ? n.size === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
1111
1111
|
}
|
|
1112
|
-
function
|
|
1112
|
+
function Ms(n, t) {
|
|
1113
1113
|
if (n === t)
|
|
1114
1114
|
return !0;
|
|
1115
1115
|
if (n == null || t == null)
|
|
@@ -1124,7 +1124,7 @@ function ks(n, t) {
|
|
|
1124
1124
|
if (n.length !== t.length)
|
|
1125
1125
|
return !1;
|
|
1126
1126
|
for (let a = 0; a < n.length; a++)
|
|
1127
|
-
if (!
|
|
1127
|
+
if (!Ms(n[a], t[a]))
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
return !0;
|
|
1130
1130
|
}
|
|
@@ -1135,7 +1135,7 @@ function ks(n, t) {
|
|
|
1135
1135
|
if (!Object.prototype.hasOwnProperty.call(
|
|
1136
1136
|
t,
|
|
1137
1137
|
a
|
|
1138
|
-
) || !
|
|
1138
|
+
) || !Ms(
|
|
1139
1139
|
n[a],
|
|
1140
1140
|
t[a]
|
|
1141
1141
|
))
|
|
@@ -1357,7 +1357,7 @@ let Iu = class ol {
|
|
|
1357
1357
|
this._changing = !0, b || (this._previousAttributes = Gs(this.attributes), this.changed = {});
|
|
1358
1358
|
const f = this.attributes, w = this.changed, x = this._previousAttributes;
|
|
1359
1359
|
for (const E in a)
|
|
1360
|
-
e = a[E],
|
|
1360
|
+
e = a[E], Ms(f[E], e) || m.push(E), Ms(x[E], e) ? delete w[E] : w[E] = e, h ? delete f[E] : f[E] = e;
|
|
1361
1361
|
if (!u) {
|
|
1362
1362
|
m.length && (this._pending = s);
|
|
1363
1363
|
for (let E = 0; E < m.length; E++)
|
|
@@ -1399,7 +1399,7 @@ let Iu = class ol {
|
|
|
1399
1399
|
const e = this._changing ? this._previousAttributes : this.attributes, s = {};
|
|
1400
1400
|
for (const a in t) {
|
|
1401
1401
|
const h = t[a];
|
|
1402
|
-
|
|
1402
|
+
Ms(e[a], h) || (s[a] = h);
|
|
1403
1403
|
}
|
|
1404
1404
|
return s;
|
|
1405
1405
|
}
|
|
@@ -1422,7 +1422,7 @@ let Iu = class ol {
|
|
|
1422
1422
|
const t = Gs(this.attributes);
|
|
1423
1423
|
return new ol(t);
|
|
1424
1424
|
}
|
|
1425
|
-
}, ll = class
|
|
1425
|
+
}, ll = class As {
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Private constructor to enforce singleton pattern.
|
|
1428
1428
|
*/
|
|
@@ -1434,7 +1434,7 @@ let Iu = class ol {
|
|
|
1434
1434
|
* @returns The shared AcCmPerformanceCollector instance.
|
|
1435
1435
|
*/
|
|
1436
1436
|
static getInstance() {
|
|
1437
|
-
return
|
|
1437
|
+
return As.instance || (As.instance = new As()), As.instance;
|
|
1438
1438
|
}
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Adds or replaces a performance entry by name.
|
|
@@ -3528,7 +3528,7 @@ const Ki = class yl {
|
|
|
3528
3528
|
};
|
|
3529
3529
|
Ki.IDENTITY = Object.freeze(new Ki());
|
|
3530
3530
|
let Pa = Ki;
|
|
3531
|
-
const Ci = /* @__PURE__ */ new Pa(),
|
|
3531
|
+
const Ci = /* @__PURE__ */ new Pa(), zn = 1e-6, Qt = 2 * Math.PI, Y0 = {
|
|
3532
3532
|
x: 0,
|
|
3533
3533
|
y: 0
|
|
3534
3534
|
}, vl = {
|
|
@@ -3541,7 +3541,7 @@ class bl {
|
|
|
3541
3541
|
* Create tolerance class with default tolerance values
|
|
3542
3542
|
*/
|
|
3543
3543
|
constructor() {
|
|
3544
|
-
this.equalPointTol =
|
|
3544
|
+
this.equalPointTol = zn, this.equalVectorTol = zn;
|
|
3545
3545
|
}
|
|
3546
3546
|
/**
|
|
3547
3547
|
* Return true if two points are equal with the specified tolerance.
|
|
@@ -3564,7 +3564,7 @@ class bl {
|
|
|
3564
3564
|
/**
|
|
3565
3565
|
* Return true if the value is equal to zero with the specified tolerance.
|
|
3566
3566
|
*/
|
|
3567
|
-
static equalToZero(t, e =
|
|
3567
|
+
static equalToZero(t, e = zn) {
|
|
3568
3568
|
return t < e && t > -e;
|
|
3569
3569
|
}
|
|
3570
3570
|
/**
|
|
@@ -3575,7 +3575,7 @@ class bl {
|
|
|
3575
3575
|
* @param tol Input the tolerance value
|
|
3576
3576
|
* @returns Return true if two values are equal with the sepcified tolerance
|
|
3577
3577
|
*/
|
|
3578
|
-
static equal(t, e, s =
|
|
3578
|
+
static equal(t, e, s = zn) {
|
|
3579
3579
|
return Math.abs(t - e) < s;
|
|
3580
3580
|
}
|
|
3581
3581
|
/**
|
|
@@ -3588,7 +3588,7 @@ class bl {
|
|
|
3588
3588
|
* @returns Return true if the first argument are greater than the second argument with the
|
|
3589
3589
|
* sepcified tolerance.
|
|
3590
3590
|
*/
|
|
3591
|
-
static great(t, e, s =
|
|
3591
|
+
static great(t, e, s = zn) {
|
|
3592
3592
|
return t - e > s;
|
|
3593
3593
|
}
|
|
3594
3594
|
/**
|
|
@@ -3601,7 +3601,7 @@ class bl {
|
|
|
3601
3601
|
* @returns Return *true* if the first argument less than the second argument with the specified
|
|
3602
3602
|
* tolerance value
|
|
3603
3603
|
*/
|
|
3604
|
-
static less(t, e, s =
|
|
3604
|
+
static less(t, e, s = zn) {
|
|
3605
3605
|
return t - e < s;
|
|
3606
3606
|
}
|
|
3607
3607
|
}
|
|
@@ -3734,7 +3734,7 @@ function rc(n, t, e, s) {
|
|
|
3734
3734
|
function D0(n) {
|
|
3735
3735
|
return n.map((t) => [...t]);
|
|
3736
3736
|
}
|
|
3737
|
-
class
|
|
3737
|
+
class jn {
|
|
3738
3738
|
/**
|
|
3739
3739
|
* Create one instance of this class
|
|
3740
3740
|
* @param x Input x coordinate
|
|
@@ -3847,7 +3847,7 @@ class Un {
|
|
|
3847
3847
|
* @returns Return cloned instance
|
|
3848
3848
|
*/
|
|
3849
3849
|
clone() {
|
|
3850
|
-
return new
|
|
3850
|
+
return new jn(this._x, this._y, this._z, this._w);
|
|
3851
3851
|
}
|
|
3852
3852
|
/**
|
|
3853
3853
|
* Copy the x, y, z and w properties of q into this quaternion.
|
|
@@ -4769,7 +4769,7 @@ const Pe = class Sl {
|
|
|
4769
4769
|
};
|
|
4770
4770
|
Pe.ORIGIN = Object.freeze(new Pe(0, 0, 0)), Pe.X_AXIS = Object.freeze(new Pe(1, 0, 0)), Pe.NEGATIVE_X_AXIS = Object.freeze(new Pe(-1, 0, 0)), Pe.Y_AXIS = Object.freeze(new Pe(0, 1, 0)), Pe.NEGATIVE_Y_AXIS = Object.freeze(new Pe(0, -1, 0)), Pe.Z_AXIS = Object.freeze(new Pe(0, 0, 1)), Pe.NEGATIVE_Z_AXIS = Object.freeze(new Pe(0, 0, -1));
|
|
4771
4771
|
let K = Pe;
|
|
4772
|
-
const Oi = /* @__PURE__ */ new K(), Ro = /* @__PURE__ */ new
|
|
4772
|
+
const Oi = /* @__PURE__ */ new K(), Ro = /* @__PURE__ */ new jn(), Zi = class Il {
|
|
4773
4773
|
/**
|
|
4774
4774
|
* Create a 4x4 matrix with the given arguments in row-major order. If no arguments are provided,
|
|
4775
4775
|
* the constructor initializes the Matrix4 to the 4x4 identity matrix.
|
|
@@ -4966,7 +4966,7 @@ const Oi = /* @__PURE__ */ new K(), Ro = /* @__PURE__ */ new Un(), Zi = class Il
|
|
|
4966
4966
|
* @returns Return this matrix
|
|
4967
4967
|
*/
|
|
4968
4968
|
extractRotation(t) {
|
|
4969
|
-
const e = this.elements, s = t.elements, a = 1 /
|
|
4969
|
+
const e = this.elements, s = t.elements, a = 1 / Rn.setFromMatrixColumn(t, 0).length(), h = 1 / Rn.setFromMatrixColumn(t, 1).length(), u = 1 / Rn.setFromMatrixColumn(t, 2).length();
|
|
4970
4970
|
return e[0] = s[0] * a, e[1] = s[1] * a, e[2] = s[2] * a, e[3] = 0, e[4] = s[4] * h, e[5] = s[5] * h, e[6] = s[6] * h, e[7] = 0, e[8] = s[8] * u, e[9] = s[9] * u, e[10] = s[10] * u, e[11] = 0, e[12] = 0, e[13] = 0, e[14] = 0, e[15] = 1, this;
|
|
4971
4971
|
}
|
|
4972
4972
|
// makeRotationFromEuler(euler) {
|
|
@@ -5298,8 +5298,8 @@ const Oi = /* @__PURE__ */ new K(), Ro = /* @__PURE__ */ new Un(), Zi = class Il
|
|
|
5298
5298
|
*/
|
|
5299
5299
|
decompose(t, e, s) {
|
|
5300
5300
|
const a = this.elements;
|
|
5301
|
-
let h =
|
|
5302
|
-
const u =
|
|
5301
|
+
let h = Rn.set(a[0], a[1], a[2]).length();
|
|
5302
|
+
const u = Rn.set(a[4], a[5], a[6]).length(), m = Rn.set(a[8], a[9], a[10]).length();
|
|
5303
5303
|
this.determinant() < 0 && (h = -h), t.x = a[12], t.y = a[13], t.z = a[14], ar.copy(this);
|
|
5304
5304
|
const b = 1 / h, f = 1 / u, w = 1 / m;
|
|
5305
5305
|
return ar.elements[0] *= b, ar.elements[1] *= b, ar.elements[2] *= b, ar.elements[4] *= f, ar.elements[5] *= f, ar.elements[6] *= f, ar.elements[8] *= w, ar.elements[9] *= w, ar.elements[10] *= w, e.setFromRotationMatrix(ar), s.x = h, s.y = u, s.z = m, this;
|
|
@@ -5430,7 +5430,7 @@ const Oi = /* @__PURE__ */ new K(), Ro = /* @__PURE__ */ new Un(), Zi = class Il
|
|
|
5430
5430
|
};
|
|
5431
5431
|
Zi.IDENTITY = Object.freeze(new Zi());
|
|
5432
5432
|
let $e = Zi;
|
|
5433
|
-
const
|
|
5433
|
+
const Rn = /* @__PURE__ */ new K(), ar = /* @__PURE__ */ new $e(), nc = /* @__PURE__ */ new K(0, 0, 0), sc = /* @__PURE__ */ new K(1, 1, 1), Dr = /* @__PURE__ */ new K(), Ws = /* @__PURE__ */ new K(), Ue = /* @__PURE__ */ new K();
|
|
5434
5434
|
class Ct {
|
|
5435
5435
|
/**
|
|
5436
5436
|
* Create a 3d box bounded by min and max.
|
|
@@ -6112,7 +6112,7 @@ class W extends K {
|
|
|
6112
6112
|
}), a;
|
|
6113
6113
|
}
|
|
6114
6114
|
}
|
|
6115
|
-
const Uo = /* @__PURE__ */ new $e(), jo = /* @__PURE__ */ new
|
|
6115
|
+
const Uo = /* @__PURE__ */ new $e(), jo = /* @__PURE__ */ new jn(), Pl = class Qi {
|
|
6116
6116
|
/**
|
|
6117
6117
|
* Create one instance of this class
|
|
6118
6118
|
* @param x (optional) the angle of the x axis in radians. Default is 0.
|
|
@@ -6605,7 +6605,7 @@ class Rs extends Al {
|
|
|
6605
6605
|
return this.getTangent(e);
|
|
6606
6606
|
}
|
|
6607
6607
|
}
|
|
6608
|
-
class
|
|
6608
|
+
class Ts extends Rs {
|
|
6609
6609
|
constructor(t, e, s, a, h) {
|
|
6610
6610
|
super();
|
|
6611
6611
|
const u = +(t !== void 0) + +(e !== void 0) + +(s !== void 0) + +(a !== void 0) + +(h !== void 0);
|
|
@@ -6811,7 +6811,7 @@ class Ms extends Rs {
|
|
|
6811
6811
|
* @inheritdoc
|
|
6812
6812
|
*/
|
|
6813
6813
|
clone() {
|
|
6814
|
-
return new
|
|
6814
|
+
return new Ts(
|
|
6815
6815
|
this.center.clone(),
|
|
6816
6816
|
this.radius,
|
|
6817
6817
|
this._startAngle,
|
|
@@ -6868,7 +6868,7 @@ class oc extends El {
|
|
|
6868
6868
|
}
|
|
6869
6869
|
class Fs extends oc {
|
|
6870
6870
|
}
|
|
6871
|
-
let
|
|
6871
|
+
let Ns = class kl extends Fs {
|
|
6872
6872
|
/**
|
|
6873
6873
|
* This constructor initializes the line object to use start as the start point, and end
|
|
6874
6874
|
* as the endpoint. Both points must be in WCS coordinates.
|
|
@@ -7097,7 +7097,7 @@ let Ml = class Qs extends Fs {
|
|
|
7097
7097
|
const a = new K().addVectors(t, e).multiplyScalar(0.5), h = new K().addVectors(t, s).multiplyScalar(0.5), u = new K().subVectors(e, t), m = new K().subVectors(s, t), b = new K().crossVectors(u, m).normalize();
|
|
7098
7098
|
if (b.lengthSq() === 0)
|
|
7099
7099
|
return console.error("Points are collinear and cannot form a valid arc."), null;
|
|
7100
|
-
const f = new K().crossVectors(u, b).normalize(), w = new K().crossVectors(m, b).normalize(), x = f.clone().multiplyScalar(Number.MAX_SAFE_INTEGER), E = w.clone().multiplyScalar(Number.MAX_SAFE_INTEGER), k = new
|
|
7100
|
+
const f = new K().crossVectors(u, b).normalize(), w = new K().crossVectors(m, b).normalize(), x = f.clone().multiplyScalar(Number.MAX_SAFE_INTEGER), E = w.clone().multiplyScalar(Number.MAX_SAFE_INTEGER), k = new Ns(a, a.clone().add(x)), L = new Ns(h, h.clone().add(E)), O = new K();
|
|
7101
7101
|
return k.closestPointToPoint(L.startPoint, !0, O) ? O : (console.error("Cannot find a valid center for the arc."), null);
|
|
7102
7102
|
}
|
|
7103
7103
|
/**
|
|
@@ -7808,7 +7808,7 @@ class ka extends Fs {
|
|
|
7808
7808
|
return new bi(this.normal, t);
|
|
7809
7809
|
}
|
|
7810
7810
|
}
|
|
7811
|
-
class
|
|
7811
|
+
class Gn extends Rs {
|
|
7812
7812
|
constructor(t = null, e = !1) {
|
|
7813
7813
|
super(), this._vertices = t || new Array(), this._closed = e;
|
|
7814
7814
|
}
|
|
@@ -7870,7 +7870,7 @@ class jn extends Rs {
|
|
|
7870
7870
|
let h = null;
|
|
7871
7871
|
if (s < e - 1 ? h = this._vertices[s + 1] : s == e - 1 && this.closed && (h = this._vertices[0]), h)
|
|
7872
7872
|
if (a.bulge) {
|
|
7873
|
-
const u = new
|
|
7873
|
+
const u = new Ts(a, h, a.bulge);
|
|
7874
7874
|
t += u.length;
|
|
7875
7875
|
} else
|
|
7876
7876
|
t += new Lt(a.x, a.y).distanceTo(h);
|
|
@@ -7968,7 +7968,7 @@ class jn extends Rs {
|
|
|
7968
7968
|
if (h.bulge) {
|
|
7969
7969
|
let u = null;
|
|
7970
7970
|
if (a < s - 1 ? u = this._vertices[a + 1] : a == s - 1 && this.closed && (u = this._vertices[0]), u) {
|
|
7971
|
-
const m = new
|
|
7971
|
+
const m = new Ts(h, u, h.bulge).getPoints(t), b = m.length;
|
|
7972
7972
|
for (let f = 0; f < b; ++f) {
|
|
7973
7973
|
const w = m[f];
|
|
7974
7974
|
e.push(new Lt(w.x, w.y));
|
|
@@ -8727,8 +8727,8 @@ var Ll = { exports: {} };
|
|
|
8727
8727
|
if (vr == null) throw new Q("Class not found " + ir);
|
|
8728
8728
|
return vr;
|
|
8729
8729
|
case 66:
|
|
8730
|
-
var
|
|
8731
|
-
if (nn == null) throw new Q("Enum not found " +
|
|
8730
|
+
var On = this.unserialize(), nn = this.resolver.resolveEnum(On);
|
|
8731
|
+
if (nn == null) throw new Q("Enum not found " + On);
|
|
8732
8732
|
return nn;
|
|
8733
8733
|
}
|
|
8734
8734
|
throw this.pos--, new Q("Invalid char " + this.buf.charAt(this.pos) + " at position " + this.pos);
|
|
@@ -9258,10 +9258,10 @@ var Ll = { exports: {} };
|
|
|
9258
9258
|
},
|
|
9259
9259
|
__class__: Mt
|
|
9260
9260
|
};
|
|
9261
|
-
var
|
|
9261
|
+
var Sn = f.promhx.Deferred = function() {
|
|
9262
9262
|
Mt.call(this);
|
|
9263
9263
|
};
|
|
9264
|
-
x["promhx.Deferred"] =
|
|
9264
|
+
x["promhx.Deferred"] = Sn, Sn.__name__ = ["promhx", "Deferred"], Sn.__super__ = Mt, Sn.prototype = k(Mt.prototype, {
|
|
9265
9265
|
resolve: function(r) {
|
|
9266
9266
|
this.handleResolve(r);
|
|
9267
9267
|
},
|
|
@@ -9277,7 +9277,7 @@ var Ll = { exports: {} };
|
|
|
9277
9277
|
publicStream: function() {
|
|
9278
9278
|
return new Fr(this);
|
|
9279
9279
|
},
|
|
9280
|
-
__class__:
|
|
9280
|
+
__class__: Sn
|
|
9281
9281
|
});
|
|
9282
9282
|
var ye = f.promhx.Promise = function(r) {
|
|
9283
9283
|
Mt.call(this, r), this._rejected = !1;
|
|
@@ -9298,7 +9298,7 @@ var Ll = { exports: {} };
|
|
|
9298
9298
|
handleResolve: function(r) {
|
|
9299
9299
|
if (this._resolved) {
|
|
9300
9300
|
var i = "Promise has already been resolved";
|
|
9301
|
-
throw new Q(
|
|
9301
|
+
throw new Q(In.AlreadyResolved(i));
|
|
9302
9302
|
}
|
|
9303
9303
|
this._resolve(r);
|
|
9304
9304
|
},
|
|
@@ -9315,7 +9315,7 @@ var Ll = { exports: {} };
|
|
|
9315
9315
|
});
|
|
9316
9316
|
else {
|
|
9317
9317
|
var o = "Downstream Promise is not fullfilled";
|
|
9318
|
-
i.handleError(
|
|
9318
|
+
i.handleError(In.DownstreamNotFullfilled(o));
|
|
9319
9319
|
}
|
|
9320
9320
|
}), Pt.continueOnNextLoop();
|
|
9321
9321
|
},
|
|
@@ -9496,13 +9496,13 @@ var Ll = { exports: {} };
|
|
|
9496
9496
|
}, Pt.continueOnNextLoop = function() {
|
|
9497
9497
|
Pt.nextLoop != null ? Pt.nextLoop(Pt.f) : setImmediate(Pt.f);
|
|
9498
9498
|
};
|
|
9499
|
-
var
|
|
9500
|
-
|
|
9499
|
+
var In = x["promhx.error.PromiseError"] = { __ename__: ["promhx", "error", "PromiseError"], __constructs__: ["AlreadyResolved", "DownstreamNotFullfilled"] };
|
|
9500
|
+
In.AlreadyResolved = function(r) {
|
|
9501
9501
|
var i = ["AlreadyResolved", 0, r];
|
|
9502
|
-
return i.__enum__ =
|
|
9503
|
-
},
|
|
9502
|
+
return i.__enum__ = In, i.toString = E, i;
|
|
9503
|
+
}, In.DownstreamNotFullfilled = function(r) {
|
|
9504
9504
|
var i = ["DownstreamNotFullfilled", 1, r];
|
|
9505
|
-
return i.__enum__ =
|
|
9505
|
+
return i.__enum__ = In, i.toString = E, i;
|
|
9506
9506
|
};
|
|
9507
9507
|
var Vs = function() {
|
|
9508
9508
|
};
|
|
@@ -9657,17 +9657,17 @@ var Ll = { exports: {} };
|
|
|
9657
9657
|
},
|
|
9658
9658
|
__class__: Jt
|
|
9659
9659
|
};
|
|
9660
|
-
var
|
|
9660
|
+
var Hn = f.core.Plane = function(r, i) {
|
|
9661
9661
|
this.origin = r, this.normal = i;
|
|
9662
9662
|
};
|
|
9663
|
-
x["verb.core.Plane"] =
|
|
9664
|
-
__class__:
|
|
9663
|
+
x["verb.core.Plane"] = Hn, Hn.__name__ = ["verb", "core", "Plane"], Hn.__super__ = Jt, Hn.prototype = k(Jt.prototype, {
|
|
9664
|
+
__class__: Hn
|
|
9665
9665
|
});
|
|
9666
|
-
var
|
|
9666
|
+
var Pn = f.core.Ray = function(r, i) {
|
|
9667
9667
|
this.origin = r, this.dir = i;
|
|
9668
9668
|
};
|
|
9669
|
-
x["verb.core.Ray"] =
|
|
9670
|
-
__class__:
|
|
9669
|
+
x["verb.core.Ray"] = Pn, Pn.__name__ = ["verb", "core", "Ray"], Pn.__super__ = Jt, Pn.prototype = k(Jt.prototype, {
|
|
9670
|
+
__class__: Pn
|
|
9671
9671
|
});
|
|
9672
9672
|
var Ht = f.core.NurbsCurveData = function(r, i, o) {
|
|
9673
9673
|
this.degree = r, this.controlPoints = o, this.knots = i;
|
|
@@ -9689,17 +9689,17 @@ var Ll = { exports: {} };
|
|
|
9689
9689
|
}, Je.__super__ = Jt, Je.prototype = k(Jt.prototype, {
|
|
9690
9690
|
__class__: Je
|
|
9691
9691
|
});
|
|
9692
|
-
var
|
|
9692
|
+
var qn = f.core.PolylineData = function(r, i) {
|
|
9693
9693
|
this.points = r, this.params = i;
|
|
9694
9694
|
};
|
|
9695
|
-
x["verb.core.PolylineData"] =
|
|
9696
|
-
__class__:
|
|
9695
|
+
x["verb.core.PolylineData"] = qn, qn.__name__ = ["verb", "core", "PolylineData"], qn.__super__ = Jt, qn.prototype = k(Jt.prototype, {
|
|
9696
|
+
__class__: qn
|
|
9697
9697
|
});
|
|
9698
|
-
var
|
|
9698
|
+
var Xn = f.core.VolumeData = function(r, i, o, l, c, d, g) {
|
|
9699
9699
|
this.degreeU = r, this.degreeV = i, this.degreeW = o, this.knotsU = l, this.knotsV = c, this.knotsW = d, this.controlPoints = g;
|
|
9700
9700
|
};
|
|
9701
|
-
x["verb.core.VolumeData"] =
|
|
9702
|
-
__class__:
|
|
9701
|
+
x["verb.core.VolumeData"] = Xn, Xn.__name__ = ["verb", "core", "VolumeData"], Xn.__super__ = Jt, Xn.prototype = k(Jt.prototype, {
|
|
9702
|
+
__class__: Xn
|
|
9703
9703
|
});
|
|
9704
9704
|
var se = f.core.Pair = function(r, i) {
|
|
9705
9705
|
this.item0 = r, this.item1 = i;
|
|
@@ -9719,11 +9719,11 @@ var Ll = { exports: {} };
|
|
|
9719
9719
|
x["verb.core.CurveCurveIntersection"] = en, en.__name__ = ["verb", "core", "CurveCurveIntersection"], en.prototype = {
|
|
9720
9720
|
__class__: en
|
|
9721
9721
|
};
|
|
9722
|
-
var
|
|
9722
|
+
var Yn = f.core.CurveSurfaceIntersection = function(r, i, o, l) {
|
|
9723
9723
|
this.u = r, this.uv = i, this.curvePoint = o, this.surfacePoint = l;
|
|
9724
9724
|
};
|
|
9725
|
-
x["verb.core.CurveSurfaceIntersection"] =
|
|
9726
|
-
__class__:
|
|
9725
|
+
x["verb.core.CurveSurfaceIntersection"] = Yn, Yn.__name__ = ["verb", "core", "CurveSurfaceIntersection"], Yn.prototype = {
|
|
9726
|
+
__class__: Yn
|
|
9727
9727
|
};
|
|
9728
9728
|
var Vr = f.core.MeshIntersectionPoint = function(r, i, o, l, c) {
|
|
9729
9729
|
this.visited = !1, this.adj = null, this.opp = null, this.uv0 = r, this.uv1 = i, this.point = o, this.faceIndex0, this.faceIndex1;
|
|
@@ -9731,29 +9731,29 @@ var Ll = { exports: {} };
|
|
|
9731
9731
|
x["verb.core.MeshIntersectionPoint"] = Vr, Vr.__name__ = ["verb", "core", "MeshIntersectionPoint"], Vr.prototype = {
|
|
9732
9732
|
__class__: Vr
|
|
9733
9733
|
};
|
|
9734
|
-
var
|
|
9734
|
+
var Dn = f.core.PolylineMeshIntersection = function(r, i, o, l, c) {
|
|
9735
9735
|
this.point = r, this.u = i, this.uv = o, this.polylineIndex = l, this.faceIndex = c;
|
|
9736
9736
|
};
|
|
9737
|
-
x["verb.core.PolylineMeshIntersection"] =
|
|
9738
|
-
__class__:
|
|
9737
|
+
x["verb.core.PolylineMeshIntersection"] = Dn, Dn.__name__ = ["verb", "core", "PolylineMeshIntersection"], Dn.prototype = {
|
|
9738
|
+
__class__: Dn
|
|
9739
9739
|
};
|
|
9740
|
-
var
|
|
9740
|
+
var Kn = f.core.SurfaceSurfaceIntersectionPoint = function(r, i, o, l) {
|
|
9741
9741
|
this.uv0 = r, this.uv1 = i, this.point = o, this.dist = l;
|
|
9742
9742
|
};
|
|
9743
|
-
x["verb.core.SurfaceSurfaceIntersectionPoint"] =
|
|
9744
|
-
__class__:
|
|
9743
|
+
x["verb.core.SurfaceSurfaceIntersectionPoint"] = Kn, Kn.__name__ = ["verb", "core", "SurfaceSurfaceIntersectionPoint"], Kn.prototype = {
|
|
9744
|
+
__class__: Kn
|
|
9745
9745
|
};
|
|
9746
|
-
var
|
|
9746
|
+
var $n = f.core.TriSegmentIntersection = function(r, i, o, l) {
|
|
9747
9747
|
this.point = r, this.s = i, this.t = o, this.p = l;
|
|
9748
9748
|
};
|
|
9749
|
-
x["verb.core.TriSegmentIntersection"] =
|
|
9750
|
-
__class__:
|
|
9749
|
+
x["verb.core.TriSegmentIntersection"] = $n, $n.__name__ = ["verb", "core", "TriSegmentIntersection"], $n.prototype = {
|
|
9750
|
+
__class__: $n
|
|
9751
9751
|
};
|
|
9752
|
-
var
|
|
9752
|
+
var En = f.core.CurveTriPoint = function(r, i, o) {
|
|
9753
9753
|
this.u = r, this.point = i, this.uv = o;
|
|
9754
9754
|
};
|
|
9755
|
-
x["verb.core.CurveTriPoint"] =
|
|
9756
|
-
__class__:
|
|
9755
|
+
x["verb.core.CurveTriPoint"] = En, En.__name__ = ["verb", "core", "CurveTriPoint"], En.prototype = {
|
|
9756
|
+
__class__: En
|
|
9757
9757
|
};
|
|
9758
9758
|
var Ye = function(r, i, o, l, c) {
|
|
9759
9759
|
c == null && (c = !1), l == null && (l = -1), this.uv = o, this.point = r, this.normal = i, this.id = l, this.degen = c;
|
|
@@ -9769,19 +9769,19 @@ var Ll = { exports: {} };
|
|
|
9769
9769
|
x["verb.core.CurvePoint"] = Us, Us.__name__ = ["verb", "core", "CurvePoint"], Us.prototype = {
|
|
9770
9770
|
__class__: Us
|
|
9771
9771
|
};
|
|
9772
|
-
var
|
|
9772
|
+
var Zn = f.core.KdTree = function(r, i) {
|
|
9773
9773
|
this.dim = 3, this.points = r, this.distanceFunction = i, this.dim = r[0].point.length, this.root = this.buildTree(r, 0, null);
|
|
9774
9774
|
};
|
|
9775
|
-
x["verb.core.KdTree"] =
|
|
9775
|
+
x["verb.core.KdTree"] = Zn, Zn.__name__ = ["verb", "core", "KdTree"], Zn.prototype = {
|
|
9776
9776
|
buildTree: function(r, i, o) {
|
|
9777
9777
|
var l = i % this.dim, c, d;
|
|
9778
|
-
return r.length == 0 ? null : r.length == 1 ? new
|
|
9778
|
+
return r.length == 0 ? null : r.length == 1 ? new kn(r[0], l, o) : (r.sort(function(g, _) {
|
|
9779
9779
|
var y = g.point[l] - _.point[l];
|
|
9780
9780
|
return y == 0 ? 0 : y > 0 ? 1 : -1;
|
|
9781
|
-
}), c = Math.floor(r.length / 2), d = new
|
|
9781
|
+
}), c = Math.floor(r.length / 2), d = new kn(r[c], l, o), d.left = this.buildTree(r.slice(0, c), i + 1, d), d.right = this.buildTree(r.slice(c + 1), i + 1, d), d);
|
|
9782
9782
|
},
|
|
9783
9783
|
nearest: function(r, i, o) {
|
|
9784
|
-
var l = this, c = new
|
|
9784
|
+
var l = this, c = new Qn(function(I) {
|
|
9785
9785
|
return -I.item1;
|
|
9786
9786
|
}), d, g = null;
|
|
9787
9787
|
g = function(I) {
|
|
@@ -9809,12 +9809,12 @@ var Ll = { exports: {} };
|
|
|
9809
9809
|
}
|
|
9810
9810
|
return y;
|
|
9811
9811
|
},
|
|
9812
|
-
__class__:
|
|
9812
|
+
__class__: Zn
|
|
9813
9813
|
};
|
|
9814
|
-
var
|
|
9814
|
+
var Qn = function(r) {
|
|
9815
9815
|
this.content = [], this.scoreFunction = r;
|
|
9816
9816
|
};
|
|
9817
|
-
x["verb.core.BinaryHeap"] =
|
|
9817
|
+
x["verb.core.BinaryHeap"] = Qn, Qn.__name__ = ["verb", "core", "BinaryHeap"], Qn.prototype = {
|
|
9818
9818
|
push: function(r) {
|
|
9819
9819
|
this.content.push(r), this.bubbleUp(this.content.length - 1);
|
|
9820
9820
|
},
|
|
@@ -9863,19 +9863,19 @@ var Ll = { exports: {} };
|
|
|
9863
9863
|
else break;
|
|
9864
9864
|
}
|
|
9865
9865
|
},
|
|
9866
|
-
__class__:
|
|
9866
|
+
__class__: Qn
|
|
9867
9867
|
};
|
|
9868
|
-
var
|
|
9868
|
+
var An = f.core.KdPoint = function(r, i) {
|
|
9869
9869
|
this.point = r, this.obj = i;
|
|
9870
9870
|
};
|
|
9871
|
-
x["verb.core.KdPoint"] =
|
|
9872
|
-
__class__:
|
|
9871
|
+
x["verb.core.KdPoint"] = An, An.__name__ = ["verb", "core", "KdPoint"], An.prototype = {
|
|
9872
|
+
__class__: An
|
|
9873
9873
|
};
|
|
9874
|
-
var
|
|
9874
|
+
var kn = f.core.KdNode = function(r, i, o) {
|
|
9875
9875
|
this.kdPoint = r, this.left = null, this.right = null, this.parent = o, this.dimension = i;
|
|
9876
9876
|
};
|
|
9877
|
-
x["verb.core.KdNode"] =
|
|
9878
|
-
__class__:
|
|
9877
|
+
x["verb.core.KdNode"] = kn, kn.__name__ = ["verb", "core", "KdNode"], kn.prototype = {
|
|
9878
|
+
__class__: kn
|
|
9879
9879
|
};
|
|
9880
9880
|
var _r = function() {
|
|
9881
9881
|
};
|
|
@@ -10085,13 +10085,13 @@ var Ll = { exports: {} };
|
|
|
10085
10085
|
}
|
|
10086
10086
|
++l;
|
|
10087
10087
|
}
|
|
10088
|
-
return new
|
|
10088
|
+
return new Jn(r, C);
|
|
10089
10089
|
};
|
|
10090
|
-
var
|
|
10090
|
+
var Jn = function(r, i) {
|
|
10091
10091
|
this.LU = r, this.P = i;
|
|
10092
10092
|
};
|
|
10093
|
-
x["verb.core._Mat.LUDecomp"] =
|
|
10094
|
-
__class__:
|
|
10093
|
+
x["verb.core._Mat.LUDecomp"] = Jn, Jn.__name__ = ["verb", "core", "_Mat", "LUDecomp"], Jn.prototype = {
|
|
10094
|
+
__class__: Jn
|
|
10095
10095
|
};
|
|
10096
10096
|
var ie = f.core.Mesh = function() {
|
|
10097
10097
|
};
|
|
@@ -10217,7 +10217,7 @@ var Ll = { exports: {} };
|
|
|
10217
10217
|
}
|
|
10218
10218
|
I = l(B), C = p.sub(I, P), z = p.dot(C, T), R = Ot.dot(A, C), A = Ot.sub(Ot.add(A, Ot.mul((z + p.dot(C, R)) / (z * z), tr.tensor(T, T))), Ot.div(Ot.add(tr.tensor(R, T), tr.tensor(T, R)), z)), i = B, g = _, P = I, ++M;
|
|
10219
10219
|
}
|
|
10220
|
-
return new
|
|
10220
|
+
return new ts(i, g, P, A, M, Y);
|
|
10221
10221
|
}, tr.numericalGradient = function(r, i) {
|
|
10222
10222
|
var o = i.length, l = r(i);
|
|
10223
10223
|
if (l == NaN) throw new Q("gradient: f(x) is a NaN!");
|
|
@@ -10243,16 +10243,16 @@ var Ll = { exports: {} };
|
|
|
10243
10243
|
}
|
|
10244
10244
|
return c;
|
|
10245
10245
|
};
|
|
10246
|
-
var
|
|
10246
|
+
var ts = function(r, i, o, l, c, d) {
|
|
10247
10247
|
this.solution = r, this.value = i, this.gradient = o, this.invHessian = l, this.iterations = c, this.message = d;
|
|
10248
10248
|
};
|
|
10249
|
-
x["verb.core.MinimizationResult"] =
|
|
10250
|
-
__class__:
|
|
10249
|
+
x["verb.core.MinimizationResult"] = ts, ts.__name__ = ["verb", "core", "MinimizationResult"], ts.prototype = {
|
|
10250
|
+
__class__: ts
|
|
10251
10251
|
};
|
|
10252
|
-
var
|
|
10252
|
+
var Mn = function() {
|
|
10253
10253
|
};
|
|
10254
|
-
x["verb.core.ISerializable"] =
|
|
10255
|
-
__class__:
|
|
10254
|
+
x["verb.core.ISerializable"] = Mn, Mn.__name__ = ["verb", "core", "ISerializable"], Mn.prototype = {
|
|
10255
|
+
__class__: Mn
|
|
10256
10256
|
};
|
|
10257
10257
|
var Si = f.core.Deserializer = function() {
|
|
10258
10258
|
};
|
|
@@ -10479,9 +10479,9 @@ var Ll = { exports: {} };
|
|
|
10479
10479
|
var bt = f.eval.Analyze = function() {
|
|
10480
10480
|
};
|
|
10481
10481
|
x["verb.eval.Analyze"] = bt, bt.__name__ = ["verb", "eval", "Analyze"], bt.knotMultiplicities = function(r) {
|
|
10482
|
-
for (var i = [new
|
|
10482
|
+
for (var i = [new Tn(r[0], 0)], o = i[0], l = 0; l < r.length; ) {
|
|
10483
10483
|
var c = r[l];
|
|
10484
|
-
++l, Math.abs(c - o.knot) > rt.EPSILON && (o = new
|
|
10484
|
+
++l, Math.abs(c - o.knot) > rt.EPSILON && (o = new Tn(c, 0), i.push(o)), o.inc();
|
|
10485
10485
|
}
|
|
10486
10486
|
return i;
|
|
10487
10487
|
}, bt.isRationalSurfaceClosed = function(r, i) {
|
|
@@ -10504,7 +10504,7 @@ var Ll = { exports: {} };
|
|
|
10504
10504
|
for (var J = function(qt) {
|
|
10505
10505
|
return N.rationalSurfaceDerivatives(r, qt[0], qt[1], 2);
|
|
10506
10506
|
}, X = function(qt, $t, jt) {
|
|
10507
|
-
var Zt = $t[1][0], Me = $t[0][1], Ke = $t[2][0], xe = $t[0][2], ve = $t[1][1], Te = $t[1][1], Ve = p.dot(Zt, jt), rr = p.dot(Me, jt), mr = [-Ve, -rr], nr = p.dot(Zt, Zt) + p.dot(Ke, jt), sr = p.dot(Zt, Me) + p.dot(ve, jt), ir = p.dot(Zt, Me) + p.dot(Te, jt), vr = p.dot(Me, Me) + p.dot(xe, jt),
|
|
10507
|
+
var Zt = $t[1][0], Me = $t[0][1], Ke = $t[2][0], xe = $t[0][2], ve = $t[1][1], Te = $t[1][1], Ve = p.dot(Zt, jt), rr = p.dot(Me, jt), mr = [-Ve, -rr], nr = p.dot(Zt, Zt) + p.dot(Ke, jt), sr = p.dot(Zt, Me) + p.dot(ve, jt), ir = p.dot(Zt, Me) + p.dot(Te, jt), vr = p.dot(Me, Me) + p.dot(xe, jt), On = [[nr, sr], [ir, vr]], nn = Ot.solve(On, mr);
|
|
10508
10508
|
return p.add(nn, qt);
|
|
10509
10509
|
}; l < o; ) {
|
|
10510
10510
|
c = J(T), _ = p.sub(c[0][0], i);
|
|
@@ -10577,14 +10577,14 @@ var Ll = { exports: {} };
|
|
|
10577
10577
|
}
|
|
10578
10578
|
return c * d;
|
|
10579
10579
|
};
|
|
10580
|
-
var
|
|
10580
|
+
var Tn = f.eval.KnotMultiplicity = function(r, i) {
|
|
10581
10581
|
this.knot = r, this.mult = i;
|
|
10582
10582
|
};
|
|
10583
|
-
x["verb.eval.KnotMultiplicity"] =
|
|
10583
|
+
x["verb.eval.KnotMultiplicity"] = Tn, Tn.__name__ = ["verb", "eval", "KnotMultiplicity"], Tn.prototype = {
|
|
10584
10584
|
inc: function() {
|
|
10585
10585
|
this.mult++;
|
|
10586
10586
|
},
|
|
10587
|
-
__class__:
|
|
10587
|
+
__class__: Tn
|
|
10588
10588
|
};
|
|
10589
10589
|
var De = f.eval.Check = function() {
|
|
10590
10590
|
};
|
|
@@ -10657,20 +10657,20 @@ var Ll = { exports: {} };
|
|
|
10657
10657
|
}, ue.rationalCurveByArcLength = function(r, i) {
|
|
10658
10658
|
var o = yt.decomposeCurveIntoBeziers(r), l = o.map(function(A) {
|
|
10659
10659
|
return bt.rationalBezierCurveArcLength(A);
|
|
10660
|
-
}), c = p.sum(l), d = [new
|
|
10660
|
+
}), c = p.sum(l), d = [new Nn(r.knots[0], 0)];
|
|
10661
10661
|
if (i > c) return d;
|
|
10662
10662
|
for (var g = i, _ = 0, y = g, S = 0, P = 0, I; _ < o.length; ) {
|
|
10663
10663
|
for (S += l[_]; y < S + rt.EPSILON; )
|
|
10664
|
-
I = bt.rationalBezierCurveParamAtArcLength(o[_], y - P, rt.TOLERANCE, l[_]), d.push(new
|
|
10664
|
+
I = bt.rationalBezierCurveParamAtArcLength(o[_], y - P, rt.TOLERANCE, l[_]), d.push(new Nn(I, y)), y += g;
|
|
10665
10665
|
P += l[_], _++;
|
|
10666
10666
|
}
|
|
10667
10667
|
return d;
|
|
10668
10668
|
};
|
|
10669
|
-
var
|
|
10669
|
+
var Nn = f.eval.CurveLengthSample = function(r, i) {
|
|
10670
10670
|
this.u = r, this.len = i;
|
|
10671
10671
|
};
|
|
10672
|
-
x["verb.eval.CurveLengthSample"] =
|
|
10673
|
-
__class__:
|
|
10672
|
+
x["verb.eval.CurveLengthSample"] = Nn, Nn.__name__ = ["verb", "eval", "CurveLengthSample"], Nn.prototype = {
|
|
10673
|
+
__class__: Nn
|
|
10674
10674
|
};
|
|
10675
10675
|
var N = f.eval.Eval = function() {
|
|
10676
10676
|
};
|
|
@@ -11063,7 +11063,7 @@ var Ll = { exports: {} };
|
|
|
11063
11063
|
var X = p.sub(J, g), G = p.sub(J, A), $ = p.cross(y, _), tt = p.cross(S, _), et = p.cross(T, M), ot = p.cross(B, M), ut = p.dot(tt, X) / p.dot(tt, y), lt = p.dot($, X) / p.dot($, S), dt = p.dot(ot, G) / p.dot(ot, T), nt = p.dot(et, G) / p.dot(et, B);
|
|
11064
11064
|
o = p.add([ut, lt], o), l = p.add([dt, nt], l), U++;
|
|
11065
11065
|
} while (U < z);
|
|
11066
|
-
return new
|
|
11066
|
+
return new Kn(o, l, g, R);
|
|
11067
11067
|
}, ht.meshes = function(r, i, o, l) {
|
|
11068
11068
|
o == null && (o = new dr(r)), l == null && (l = new dr(i));
|
|
11069
11069
|
var c = ht.boundingBoxTrees(o, l, 0), d = Z.unique(c.map(function(g) {
|
|
@@ -11123,9 +11123,9 @@ var Ll = { exports: {} };
|
|
|
11123
11123
|
}, ht.kdTreeFromSegments = function(r) {
|
|
11124
11124
|
for (var i = [], o = 0; o < r.length; ) {
|
|
11125
11125
|
var l = r[o];
|
|
11126
|
-
++o, i.push(new
|
|
11126
|
+
++o, i.push(new An(l.min.point, l.min)), i.push(new An(l.max.point, l.max));
|
|
11127
11127
|
}
|
|
11128
|
-
return new
|
|
11128
|
+
return new Zn(i, p.distSquared);
|
|
11129
11129
|
}, ht.lookupAdjacentSegment = function(r, i, o) {
|
|
11130
11130
|
var l = i.nearest(r.point, o, rt.EPSILON).filter(function(c) {
|
|
11131
11131
|
return r != c.item0.obj;
|
|
@@ -11153,7 +11153,7 @@ var Ll = { exports: {} };
|
|
|
11153
11153
|
var S = N.rationalCurveDerivatives(r, y[0], 1), P = N.rationalSurfaceDerivatives(i, y[1], y[2], 1), I = p.sub(P[0][0], S[0]), A = p.mul(-1, S[1]), M = P[1][0], T = P[0][1];
|
|
11154
11154
|
return [2 * p.dot(A, I), 2 * p.dot(M, I), 2 * p.dot(T, I)];
|
|
11155
11155
|
}, g = tr.uncmin(c, o, l * l, d), _ = g.solution;
|
|
11156
|
-
return new
|
|
11156
|
+
return new Yn(_[0], [_[1], _[2]], N.rationalCurvePoint(r, _[0]), N.rationalSurfacePoint(i, _[1], _[2]));
|
|
11157
11157
|
}, ht.polylineAndMesh = function(r, i, o) {
|
|
11158
11158
|
for (var l = ht.boundingBoxTrees(new pr(r), new dr(i), o), c = [], d = 0; d < l.length; ) {
|
|
11159
11159
|
var g = l[d];
|
|
@@ -11161,7 +11161,7 @@ var Ll = { exports: {} };
|
|
|
11161
11161
|
var _ = g.item0, y = g.item1, S = ht.segmentWithTriangle(r.points[_], r.points[_ + 1], i.points, i.faces[y]);
|
|
11162
11162
|
if (S != null) {
|
|
11163
11163
|
var P = S.point, I = p.lerp(S.p, [r.params[_]], [r.params[_ + 1]])[0], A = ie.triangleUVFromPoint(i, y, P);
|
|
11164
|
-
c.push(new
|
|
11164
|
+
c.push(new Dn(P, I, A, _, y));
|
|
11165
11165
|
}
|
|
11166
11166
|
}
|
|
11167
11167
|
return c;
|
|
@@ -11222,7 +11222,7 @@ var Ll = { exports: {} };
|
|
|
11222
11222
|
var M = A++, T = c[M], B = y[M], C = ht.rays(T, B, r.origin, r.dir);
|
|
11223
11223
|
if (C != null) {
|
|
11224
11224
|
var R = C.u0, z = C.u1;
|
|
11225
|
-
R < -rt.EPSILON || R > S[M] + rt.EPSILON || ((P == null || z < P.u) && (P = new
|
|
11225
|
+
R < -rt.EPSILON || R > S[M] + rt.EPSILON || ((P == null || z < P.u) && (P = new En(z, p.onRay(r.origin, r.dir, z), p.onRay(d[M], g[M], R / S[M]))), (I == null || z > I.u) && (I = new En(z, p.onRay(r.origin, r.dir, z), p.onRay(d[M], g[M], R / S[M]))));
|
|
11226
11226
|
}
|
|
11227
11227
|
}
|
|
11228
11228
|
return I == null || P == null ? null : new ke(P, I);
|
|
@@ -11242,7 +11242,7 @@ var Ll = { exports: {} };
|
|
|
11242
11242
|
var S, P, I, A;
|
|
11243
11243
|
d == 0 ? (S = i[1], P = i[2], I = l[1], A = l[2]) : d == 1 ? (S = i[0], P = i[2], I = l[0], A = l[2]) : (S = i[0], P = i[1], I = l[0], A = l[1]);
|
|
11244
11244
|
var M = -p.dot(r, i), T = -p.dot(o, l), B = S * A - P * I, C = (P * T - M * A) / B, R = (M * I - S * T) / B, z;
|
|
11245
|
-
return d == 0 ? z = [0, C, R] : d == 1 ? z = [C, 0, R] : z = [C, R, 0], new
|
|
11245
|
+
return d == 0 ? z = [0, C, R] : d == 1 ? z = [C, 0, R] : z = [C, R, 0], new Pn(z, p.normalized(c));
|
|
11246
11246
|
}, ht.threePlanes = function(r, i, o, l, c, d) {
|
|
11247
11247
|
var g = p.cross(o, c), _ = p.dot(r, g);
|
|
11248
11248
|
if (Math.abs(_) < rt.EPSILON) return null;
|
|
@@ -11276,7 +11276,7 @@ var Ll = { exports: {} };
|
|
|
11276
11276
|
var B = p.add(r, p.mul(T, P)), C = p.dot(_, y), R = p.dot(_, _), z = p.dot(y, y), U = p.sub(B, c), j = p.dot(U, _), Y = p.dot(U, y), J = C * C - R * z;
|
|
11277
11277
|
if (Math.abs(J) < rt.EPSILON) return null;
|
|
11278
11278
|
var X = (C * Y - z * j) / J, G = (C * j - R * Y) / J;
|
|
11279
|
-
return X > 1 + rt.EPSILON || G > 1 + rt.EPSILON || G < -rt.EPSILON || X < -rt.EPSILON || X + G > 1 + rt.EPSILON ? null : new
|
|
11279
|
+
return X > 1 + rt.EPSILON || G > 1 + rt.EPSILON || G < -rt.EPSILON || X < -rt.EPSILON || X + G > 1 + rt.EPSILON ? null : new $n(B, X, G, T);
|
|
11280
11280
|
}, ht.segmentAndPlane = function(r, i, o, l) {
|
|
11281
11281
|
var c = p.dot(l, p.sub(i, r));
|
|
11282
11282
|
if (Math.abs(c) < rt.EPSILON) return null;
|
|
@@ -11597,18 +11597,18 @@ var Ll = { exports: {} };
|
|
|
11597
11597
|
if (nt > 0 ? mr = Math.floor(M - (nt + 1) / 2) : mr = M, nt > 0) {
|
|
11598
11598
|
for (var nr = Te - At, sr = [], ir = l; ir > ve; )
|
|
11599
11599
|
sr[ir - ve - 1] = nr / (c[mt + ir] - At), ir--;
|
|
11600
|
-
for (var vr = 1,
|
|
11600
|
+
for (var vr = 1, On = nt + 1; vr < On; ) {
|
|
11601
11601
|
for (var nn = vr++, su = nt - nn, Ai = ve + nn, sn = l; sn >= Ai; )
|
|
11602
11602
|
S[sn] = p.add(p.mul(sr[sn - Ai], S[sn]), p.mul(1 - sr[sn - Ai], S[sn - 1])), sn--;
|
|
11603
11603
|
I[su] = S[l];
|
|
11604
11604
|
}
|
|
11605
11605
|
}
|
|
11606
11606
|
for (var xo = rr, iu = M + 1; xo < iu; ) {
|
|
11607
|
-
var
|
|
11608
|
-
P[
|
|
11609
|
-
for (var au = yt.imin(l,
|
|
11607
|
+
var Bn = xo++;
|
|
11608
|
+
P[Bn] = p.zeros1d(_);
|
|
11609
|
+
for (var au = yt.imin(l, Bn), wo = yt.imax(0, Bn - g), ou = au + 1; wo < ou; ) {
|
|
11610
11610
|
var So = wo++;
|
|
11611
|
-
P[
|
|
11611
|
+
P[Bn] = p.add(P[Bn], p.mul(y[Bn][So], S[So]));
|
|
11612
11612
|
}
|
|
11613
11613
|
}
|
|
11614
11614
|
if (Ve > 1)
|
|
@@ -12016,7 +12016,7 @@ var Ll = { exports: {} };
|
|
|
12016
12016
|
St._init || (St._workerPool = new Wr(St.THREADS), St._init = !0);
|
|
12017
12017
|
}, St.dispatchMethod = function(r, i, o) {
|
|
12018
12018
|
St.init();
|
|
12019
|
-
var l = new
|
|
12019
|
+
var l = new Sn(), c = function(d) {
|
|
12020
12020
|
l.resolve(d);
|
|
12021
12021
|
};
|
|
12022
12022
|
return St._workerPool.addWork(ct.getClassName(r), i, o, c), new ye(l);
|
|
@@ -12063,15 +12063,15 @@ var Ll = { exports: {} };
|
|
|
12063
12063
|
x["verb.exe._WorkerPool.Work"] = rn, rn.__name__ = ["verb", "exe", "_WorkerPool", "Work"], rn.prototype = {
|
|
12064
12064
|
__class__: rn
|
|
12065
12065
|
};
|
|
12066
|
-
var
|
|
12066
|
+
var Ln = function() {
|
|
12067
12067
|
};
|
|
12068
|
-
x["verb.geom.ICurve"] =
|
|
12069
|
-
__class__:
|
|
12068
|
+
x["verb.geom.ICurve"] = Ln, Ln.__name__ = ["verb", "geom", "ICurve"], Ln.__interfaces__ = [Mn], Ln.prototype = {
|
|
12069
|
+
__class__: Ln
|
|
12070
12070
|
};
|
|
12071
12071
|
var Nt = f.geom.NurbsCurve = function(r) {
|
|
12072
12072
|
this._data = De.isValidNurbsCurveData(r);
|
|
12073
12073
|
};
|
|
12074
|
-
x["verb.geom.NurbsCurve"] = Nt, Nt.__name__ = ["verb", "geom", "NurbsCurve"], Nt.__interfaces__ = [
|
|
12074
|
+
x["verb.geom.NurbsCurve"] = Nt, Nt.__name__ = ["verb", "geom", "NurbsCurve"], Nt.__interfaces__ = [Ln], Nt.byKnotsControlPointsWeights = function(r, i, o, l) {
|
|
12075
12075
|
return new Nt(new Ht(r, i.slice(), N.homogenize1d(o, l)));
|
|
12076
12076
|
}, Nt.byPoints = function(r, i) {
|
|
12077
12077
|
return i == null && (i = 3), new Nt(gt.rationalInterpCurve(r, i));
|
|
@@ -12217,27 +12217,27 @@ var Ll = { exports: {} };
|
|
|
12217
12217
|
},
|
|
12218
12218
|
__class__: Hr
|
|
12219
12219
|
});
|
|
12220
|
-
var
|
|
12220
|
+
var es = f.geom.BezierCurve = function(r, i) {
|
|
12221
12221
|
Nt.call(this, gt.rationalBezierCurve(r, i));
|
|
12222
12222
|
};
|
|
12223
|
-
x["verb.geom.BezierCurve"] =
|
|
12224
|
-
__class__:
|
|
12223
|
+
x["verb.geom.BezierCurve"] = es, es.__name__ = ["verb", "geom", "BezierCurve"], es.__super__ = Nt, es.prototype = k(Nt.prototype, {
|
|
12224
|
+
__class__: es
|
|
12225
12225
|
});
|
|
12226
|
-
var
|
|
12226
|
+
var rs = f.geom.Circle = function(r, i, o, l) {
|
|
12227
12227
|
Hr.call(this, r, i, o, l, 0, Math.PI * 2);
|
|
12228
12228
|
};
|
|
12229
|
-
x["verb.geom.Circle"] =
|
|
12230
|
-
__class__:
|
|
12229
|
+
x["verb.geom.Circle"] = rs, rs.__name__ = ["verb", "geom", "Circle"], rs.__super__ = Hr, rs.prototype = k(Hr.prototype, {
|
|
12230
|
+
__class__: rs
|
|
12231
12231
|
});
|
|
12232
|
-
var
|
|
12232
|
+
var Cn = function() {
|
|
12233
12233
|
};
|
|
12234
|
-
x["verb.geom.ISurface"] =
|
|
12235
|
-
__class__:
|
|
12234
|
+
x["verb.geom.ISurface"] = Cn, Cn.__name__ = ["verb", "geom", "ISurface"], Cn.__interfaces__ = [Mn], Cn.prototype = {
|
|
12235
|
+
__class__: Cn
|
|
12236
12236
|
};
|
|
12237
12237
|
var kt = f.geom.NurbsSurface = function(r) {
|
|
12238
12238
|
this._data = De.isValidNurbsSurfaceData(r);
|
|
12239
12239
|
};
|
|
12240
|
-
x["verb.geom.NurbsSurface"] = kt, kt.__name__ = ["verb", "geom", "NurbsSurface"], kt.__interfaces__ = [
|
|
12240
|
+
x["verb.geom.NurbsSurface"] = kt, kt.__name__ = ["verb", "geom", "NurbsSurface"], kt.__interfaces__ = [Cn], kt.byKnotsControlPointsWeights = function(r, i, o, l, c, d) {
|
|
12241
12241
|
return new kt(new ne(r, i, o, l, N.homogenize2d(c, d)));
|
|
12242
12242
|
}, kt.byCorners = function(r, i, o, l) {
|
|
12243
12243
|
return new kt(gt.fourPointSurface(r, i, o, l));
|
|
@@ -12366,10 +12366,10 @@ var Ll = { exports: {} };
|
|
|
12366
12366
|
},
|
|
12367
12367
|
__class__: kt
|
|
12368
12368
|
});
|
|
12369
|
-
var
|
|
12369
|
+
var ns = f.geom.ConicalSurface = function(r, i, o, l, c) {
|
|
12370
12370
|
kt.call(this, gt.conicalSurface(r, i, o, l, c)), this._axis = r, this._xaxis = i, this._base = o, this._height = l, this._radius = c;
|
|
12371
12371
|
};
|
|
12372
|
-
x["verb.geom.ConicalSurface"] =
|
|
12372
|
+
x["verb.geom.ConicalSurface"] = ns, ns.__name__ = ["verb", "geom", "ConicalSurface"], ns.__super__ = kt, ns.prototype = k(kt.prototype, {
|
|
12373
12373
|
axis: function() {
|
|
12374
12374
|
return this._axis;
|
|
12375
12375
|
},
|
|
@@ -12385,12 +12385,12 @@ var Ll = { exports: {} };
|
|
|
12385
12385
|
radius: function() {
|
|
12386
12386
|
return this._radius;
|
|
12387
12387
|
},
|
|
12388
|
-
__class__:
|
|
12388
|
+
__class__: ns
|
|
12389
12389
|
});
|
|
12390
|
-
var
|
|
12390
|
+
var ss = f.geom.CylindricalSurface = function(r, i, o, l, c) {
|
|
12391
12391
|
kt.call(this, gt.cylindricalSurface(r, i, o, l, c)), this._axis = r, this._xaxis = i, this._base = o, this._height = l, this._radius = c;
|
|
12392
12392
|
};
|
|
12393
|
-
x["verb.geom.CylindricalSurface"] =
|
|
12393
|
+
x["verb.geom.CylindricalSurface"] = ss, ss.__name__ = ["verb", "geom", "CylindricalSurface"], ss.__super__ = kt, ss.prototype = k(kt.prototype, {
|
|
12394
12394
|
axis: function() {
|
|
12395
12395
|
return this._axis;
|
|
12396
12396
|
},
|
|
@@ -12406,7 +12406,7 @@ var Ll = { exports: {} };
|
|
|
12406
12406
|
radius: function() {
|
|
12407
12407
|
return this._radius;
|
|
12408
12408
|
},
|
|
12409
|
-
__class__:
|
|
12409
|
+
__class__: ss
|
|
12410
12410
|
});
|
|
12411
12411
|
var qr = f.geom.EllipseArc = function(r, i, o, l, c) {
|
|
12412
12412
|
Nt.call(this, gt.ellipseArc(r, i, o, l, c)), this._center = r, this._xaxis = i, this._yaxis = o, this._minAngle = l, this._maxAngle = c;
|
|
@@ -12429,23 +12429,23 @@ var Ll = { exports: {} };
|
|
|
12429
12429
|
},
|
|
12430
12430
|
__class__: qr
|
|
12431
12431
|
});
|
|
12432
|
-
var
|
|
12432
|
+
var is = f.geom.Ellipse = function(r, i, o) {
|
|
12433
12433
|
qr.call(this, r, i, o, 0, Math.PI * 2);
|
|
12434
12434
|
};
|
|
12435
|
-
x["verb.geom.Ellipse"] =
|
|
12436
|
-
__class__:
|
|
12435
|
+
x["verb.geom.Ellipse"] = is, is.__name__ = ["verb", "geom", "Ellipse"], is.__super__ = qr, is.prototype = k(qr.prototype, {
|
|
12436
|
+
__class__: is
|
|
12437
12437
|
});
|
|
12438
|
-
var
|
|
12438
|
+
var as = f.geom.ExtrudedSurface = function(r, i) {
|
|
12439
12439
|
kt.call(this, gt.extrudedSurface(p.normalized(i), p.norm(i), r.asNurbs())), this._profile = r, this._direction = i;
|
|
12440
12440
|
};
|
|
12441
|
-
x["verb.geom.ExtrudedSurface"] =
|
|
12441
|
+
x["verb.geom.ExtrudedSurface"] = as, as.__name__ = ["verb", "geom", "ExtrudedSurface"], as.__super__ = kt, as.prototype = k(kt.prototype, {
|
|
12442
12442
|
profile: function() {
|
|
12443
12443
|
return this._profile;
|
|
12444
12444
|
},
|
|
12445
12445
|
direction: function() {
|
|
12446
12446
|
return this._direction;
|
|
12447
12447
|
},
|
|
12448
|
-
__class__:
|
|
12448
|
+
__class__: as
|
|
12449
12449
|
});
|
|
12450
12450
|
var Xr = f.geom.Intersect = function() {
|
|
12451
12451
|
};
|
|
@@ -12468,22 +12468,22 @@ var Ll = { exports: {} };
|
|
|
12468
12468
|
});
|
|
12469
12469
|
});
|
|
12470
12470
|
};
|
|
12471
|
-
var
|
|
12471
|
+
var os = f.geom.Line = function(r, i) {
|
|
12472
12472
|
Nt.call(this, gt.polyline([r, i])), this._start = r, this._end = i;
|
|
12473
12473
|
};
|
|
12474
|
-
x["verb.geom.Line"] =
|
|
12474
|
+
x["verb.geom.Line"] = os, os.__name__ = ["verb", "geom", "Line"], os.__super__ = Nt, os.prototype = k(Nt.prototype, {
|
|
12475
12475
|
start: function() {
|
|
12476
12476
|
return this._start;
|
|
12477
12477
|
},
|
|
12478
12478
|
end: function() {
|
|
12479
12479
|
return this._end;
|
|
12480
12480
|
},
|
|
12481
|
-
__class__:
|
|
12481
|
+
__class__: os
|
|
12482
12482
|
});
|
|
12483
|
-
var
|
|
12483
|
+
var ls = f.geom.RevolvedSurface = function(r, i, o, l) {
|
|
12484
12484
|
kt.call(this, gt.revolvedSurface(r.asNurbs(), i, o, l)), this._profile = r, this._center = i, this._axis = o, this._angle = l;
|
|
12485
12485
|
};
|
|
12486
|
-
x["verb.geom.RevolvedSurface"] =
|
|
12486
|
+
x["verb.geom.RevolvedSurface"] = ls, ls.__name__ = ["verb", "geom", "RevolvedSurface"], ls.__super__ = kt, ls.prototype = k(kt.prototype, {
|
|
12487
12487
|
profile: function() {
|
|
12488
12488
|
return this._profile;
|
|
12489
12489
|
},
|
|
@@ -12496,31 +12496,31 @@ var Ll = { exports: {} };
|
|
|
12496
12496
|
angle: function() {
|
|
12497
12497
|
return this._angle;
|
|
12498
12498
|
},
|
|
12499
|
-
__class__:
|
|
12499
|
+
__class__: ls
|
|
12500
12500
|
});
|
|
12501
|
-
var
|
|
12501
|
+
var hs = f.geom.SphericalSurface = function(r, i) {
|
|
12502
12502
|
kt.call(this, gt.sphericalSurface(r, [0, 0, 1], [1, 0, 0], i)), this._center = r, this._radius = i;
|
|
12503
12503
|
};
|
|
12504
|
-
x["verb.geom.SphericalSurface"] =
|
|
12504
|
+
x["verb.geom.SphericalSurface"] = hs, hs.__name__ = ["verb", "geom", "SphericalSurface"], hs.__super__ = kt, hs.prototype = k(kt.prototype, {
|
|
12505
12505
|
center: function() {
|
|
12506
12506
|
return this._center;
|
|
12507
12507
|
},
|
|
12508
12508
|
radius: function() {
|
|
12509
12509
|
return this._radius;
|
|
12510
12510
|
},
|
|
12511
|
-
__class__:
|
|
12511
|
+
__class__: hs
|
|
12512
12512
|
});
|
|
12513
|
-
var
|
|
12513
|
+
var us = f.geom.SweptSurface = function(r, i) {
|
|
12514
12514
|
kt.call(this, gt.rationalTranslationalSurface(r.asNurbs(), i.asNurbs())), this._profile = r, this._rail = i;
|
|
12515
12515
|
};
|
|
12516
|
-
x["verb.geom.SweptSurface"] =
|
|
12516
|
+
x["verb.geom.SweptSurface"] = us, us.__name__ = ["verb", "geom", "SweptSurface"], us.__super__ = kt, us.prototype = k(kt.prototype, {
|
|
12517
12517
|
profile: function() {
|
|
12518
12518
|
return this._profile;
|
|
12519
12519
|
},
|
|
12520
12520
|
rail: function() {
|
|
12521
12521
|
return this._rail;
|
|
12522
12522
|
},
|
|
12523
|
-
__class__:
|
|
12523
|
+
__class__: us
|
|
12524
12524
|
});
|
|
12525
12525
|
function er(r) {
|
|
12526
12526
|
return r instanceof Array ? function() {
|
|
@@ -12648,7 +12648,7 @@ var Ll = { exports: {} };
|
|
|
12648
12648
|
});
|
|
12649
12649
|
})(Ll);
|
|
12650
12650
|
var hc = Ll.exports;
|
|
12651
|
-
const
|
|
12651
|
+
const Fn = /* @__PURE__ */ lc(hc);
|
|
12652
12652
|
class Ri {
|
|
12653
12653
|
constructor() {
|
|
12654
12654
|
this.c0 = 0, this.c1 = 0, this.c2 = 0, this.c3 = 0;
|
|
@@ -12838,7 +12838,7 @@ let uc = class extends Fs {
|
|
|
12838
12838
|
}), t;
|
|
12839
12839
|
}
|
|
12840
12840
|
};
|
|
12841
|
-
class
|
|
12841
|
+
class Un {
|
|
12842
12842
|
constructor(t, e, s, a) {
|
|
12843
12843
|
this._degree = t, this._knots = [...e], this._controlPoints = s.map((h) => ({ x: h.x, y: h.y, z: h.z })), this._weights = a ? [...a] : new Array(s.length).fill(1);
|
|
12844
12844
|
}
|
|
@@ -12895,7 +12895,7 @@ class Vn {
|
|
|
12895
12895
|
* Create a NURBS curve from control points and knots
|
|
12896
12896
|
*/
|
|
12897
12897
|
static byKnotsControlPointsWeights(t, e, s, a) {
|
|
12898
|
-
return new
|
|
12898
|
+
return new Un(t, e, s, a);
|
|
12899
12899
|
}
|
|
12900
12900
|
/**
|
|
12901
12901
|
* Create a NURBS curve from fit points using interpolation
|
|
@@ -12915,7 +12915,7 @@ class Vn {
|
|
|
12915
12915
|
break;
|
|
12916
12916
|
}
|
|
12917
12917
|
const h = t.map((m) => ({ x: m[0], y: m[1], z: m[2] })), u = new Array(h.length).fill(1);
|
|
12918
|
-
return new
|
|
12918
|
+
return new Un(e, a, h, u);
|
|
12919
12919
|
}
|
|
12920
12920
|
/**
|
|
12921
12921
|
* Get the valid parameter range for this curve
|
|
@@ -12962,7 +12962,7 @@ class Vn {
|
|
|
12962
12962
|
*/
|
|
12963
12963
|
static createClosedCurve(t, e, s = "Chord") {
|
|
12964
12964
|
const a = this.createFitPointsForClosedCurve(t).map((h) => [h.x, h.y, h.z]);
|
|
12965
|
-
return
|
|
12965
|
+
return Un.byPoints(a, e, s);
|
|
12966
12966
|
}
|
|
12967
12967
|
}
|
|
12968
12968
|
class vn extends Fs {
|
|
@@ -12977,7 +12977,7 @@ class vn extends Fs {
|
|
|
12977
12977
|
if (u >= 3 && (Array.isArray(s) ? (m = s, u >= 4 && (b = a || 3), u >= 5 && (f = h)) : s !== void 0 && (b = s || 3, u >= 4 && (f = a))), s === void 0 && u >= 4 && (b = a || 3, u >= 5 && (f = h)), this._degree = b, this._closed = f, this._controlPoints.length < this._degree + 1)
|
|
12978
12978
|
throw Qe.ILLEGAL_PARAMETERS;
|
|
12979
12979
|
const w = this.toVerbPoints(this._controlPoints);
|
|
12980
|
-
this._nurbsCurve =
|
|
12980
|
+
this._nurbsCurve = Fn.geom.NurbsCurve.byKnotsControlPointsWeights(
|
|
12981
12981
|
this._degree,
|
|
12982
12982
|
e,
|
|
12983
12983
|
w,
|
|
@@ -12987,7 +12987,7 @@ class vn extends Fs {
|
|
|
12987
12987
|
if (this._fitPoints = t, this._knotParameterization = e, u >= 3 && (this._degree = s || 3), u >= 4 && (this._closed = a), this._fitPoints.length < this._degree + 1)
|
|
12988
12988
|
throw Qe.ILLEGAL_PARAMETERS;
|
|
12989
12989
|
const m = this.toNurbsPoints(this._fitPoints);
|
|
12990
|
-
this._nurbsCurve =
|
|
12990
|
+
this._nurbsCurve = Fn.geom.NurbsCurve.byPoints(m, this._degree), this._controlPoints = this.toGePoints(this._nurbsCurve.controlPoints());
|
|
12991
12991
|
}
|
|
12992
12992
|
}
|
|
12993
12993
|
/**
|
|
@@ -12996,24 +12996,24 @@ class vn extends Fs {
|
|
|
12996
12996
|
buildCurve() {
|
|
12997
12997
|
if (this._fitPoints && this._knotParameterization) {
|
|
12998
12998
|
if (this._closed) {
|
|
12999
|
-
const t =
|
|
12999
|
+
const t = Un.createFitPointsForClosedCurve(
|
|
13000
13000
|
this._fitPoints
|
|
13001
13001
|
), e = this.toNurbsPoints(t);
|
|
13002
|
-
this._nurbsCurve =
|
|
13002
|
+
this._nurbsCurve = Fn.geom.NurbsCurve.byPoints(e, this._degree);
|
|
13003
13003
|
} else {
|
|
13004
13004
|
const t = this.toNurbsPoints(this._fitPoints);
|
|
13005
|
-
this._nurbsCurve =
|
|
13005
|
+
this._nurbsCurve = Fn.geom.NurbsCurve.byPoints(t, this._degree);
|
|
13006
13006
|
}
|
|
13007
13007
|
this._controlPoints = this.toGePoints(this._nurbsCurve.controlPoints());
|
|
13008
13008
|
} else if (this._controlPoints)
|
|
13009
13009
|
if (this._closed) {
|
|
13010
|
-
const t =
|
|
13010
|
+
const t = Un.createFitPointsForClosedCurve(
|
|
13011
13011
|
this._controlPoints
|
|
13012
13012
|
), e = this.toNurbsPoints(t);
|
|
13013
|
-
this._nurbsCurve =
|
|
13013
|
+
this._nurbsCurve = Fn.geom.NurbsCurve.byPoints(e, this._degree), this._controlPoints = this.toGePoints(this._nurbsCurve.controlPoints());
|
|
13014
13014
|
} else {
|
|
13015
13015
|
const t = this._nurbsCurve.knots(), e = this._nurbsCurve.weights(), s = this.toVerbPoints(this._controlPoints);
|
|
13016
|
-
this._nurbsCurve =
|
|
13016
|
+
this._nurbsCurve = Fn.geom.NurbsCurve.byKnotsControlPointsWeights(
|
|
13017
13017
|
this._degree,
|
|
13018
13018
|
t,
|
|
13019
13019
|
s,
|
|
@@ -13169,7 +13169,7 @@ class vn extends Fs {
|
|
|
13169
13169
|
return new vn(t, e, s, !0);
|
|
13170
13170
|
}
|
|
13171
13171
|
}
|
|
13172
|
-
var Cl = /* @__PURE__ */ ((n) => (n.ClosedFilled = "", n.Dot = "_DOT", n.DotSmall = "_DOTSMALL", n.DotBlank = "_DOTBLANK", n.Origin = "_ORIGIN", n.Origin2 = "_ORIGIN2", n.Open = "_OPEN", n.Open90 = "_OPEN90", n.Open30 = "_OPEN30", n.Closed = "_CLOSED", n.Small = "_SMALL", n.None = "_NONE", n.Oblique = "_OBLIQUE", n.BoxFilled = "_BOXFILLED", n.Box = "_BOXBLANK", n.ClosedBlank = "_CLOSEDBLANK", n.DatumBlank = "_DATUMBLANK", n.DatumFilled = "_DATUMFILLED", n.Integral = "_INTEGRAL", n.ArchTick = "_ARCHTICK", n))(Cl || {}),
|
|
13172
|
+
var Cl = /* @__PURE__ */ ((n) => (n.ClosedFilled = "", n.Dot = "_DOT", n.DotSmall = "_DOTSMALL", n.DotBlank = "_DOTBLANK", n.Origin = "_ORIGIN", n.Origin2 = "_ORIGIN2", n.Open = "_OPEN", n.Open90 = "_OPEN90", n.Open30 = "_OPEN30", n.Closed = "_CLOSED", n.Small = "_SMALL", n.None = "_NONE", n.Oblique = "_OBLIQUE", n.BoxFilled = "_BOXFILLED", n.Box = "_BOXBLANK", n.ClosedBlank = "_CLOSEDBLANK", n.DatumBlank = "_DATUMBLANK", n.DatumFilled = "_DATUMFILLED", n.Integral = "_INTEGRAL", n.ArchTick = "_ARCHTICK", n))(Cl || {}), bn = /* @__PURE__ */ ((n) => (n[n.ByBlock = -2] = "ByBlock", n[n.ByDIPs = -4] = "ByDIPs", n[n.ByLayer = -1] = "ByLayer", n[n.ByLineWeightDefault = -3] = "ByLineWeightDefault", n[n.LineWeight000 = 0] = "LineWeight000", n[n.LineWeight005 = 5] = "LineWeight005", n[n.LineWeight009 = 9] = "LineWeight009", n[n.LineWeight013 = 13] = "LineWeight013", n[n.LineWeight015 = 15] = "LineWeight015", n[n.LineWeight018 = 18] = "LineWeight018", n[n.LineWeight020 = 20] = "LineWeight020", n[n.LineWeight025 = 25] = "LineWeight025", n[n.LineWeight030 = 30] = "LineWeight030", n[n.LineWeight035 = 35] = "LineWeight035", n[n.LineWeight040 = 40] = "LineWeight040", n[n.LineWeight050 = 50] = "LineWeight050", n[n.LineWeight053 = 53] = "LineWeight053", n[n.LineWeight060 = 60] = "LineWeight060", n[n.LineWeight070 = 70] = "LineWeight070", n[n.LineWeight080 = 80] = "LineWeight080", n[n.LineWeight090 = 90] = "LineWeight090", n[n.LineWeight100 = 100] = "LineWeight100", n[n.LineWeight106 = 106] = "LineWeight106", n[n.LineWeight120 = 120] = "LineWeight120", n[n.LineWeight140 = 140] = "LineWeight140", n[n.LineWeight158 = 158] = "LineWeight158", n[n.LineWeight200 = 200] = "LineWeight200", n[n.LineWeight211 = 211] = "LineWeight211", n))(bn || {}), $r = /* @__PURE__ */ ((n) => (n[n.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", n[n.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", n[n.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", n[n.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", n[n.BY_STYLE = 5] = "BY_STYLE", n))($r || {}), Ee = /* @__PURE__ */ ((n) => (n[n.TopLeft = 1] = "TopLeft", n[n.TopCenter = 2] = "TopCenter", n[n.TopRight = 3] = "TopRight", n[n.MiddleLeft = 4] = "MiddleLeft", n[n.MiddleCenter = 5] = "MiddleCenter", n[n.MiddleRight = 6] = "MiddleRight", n[n.BottomLeft = 7] = "BottomLeft", n[n.BottomCenter = 8] = "BottomCenter", n[n.BottomRight = 9] = "BottomRight", n))(Ee || {}), Ol = /* @__PURE__ */ ((n) => (n[n.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", n[n.WIREFRAME = 1] = "WIREFRAME", n[n.HIDDEN_LINE = 2] = "HIDDEN_LINE", n[n.FLAT_SHADED = 3] = "FLAT_SHADED", n[n.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", n[n.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", n[n.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", n))(Ol || {}), Bl = /* @__PURE__ */ ((n) => (n[n.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", n[n.TOP = 1] = "TOP", n[n.BOTTOM = 2] = "BOTTOM", n[n.FRONT = 3] = "FRONT", n[n.BACK = 4] = "BACK", n[n.LEFT = 5] = "LEFT", n[n.RIGHT = 6] = "RIGHT", n))(Bl || {}), zl = /* @__PURE__ */ ((n) => (n[n.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", n[n.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", n))(zl || {});
|
|
13173
13173
|
let cc = class Rl {
|
|
13174
13174
|
constructor() {
|
|
13175
13175
|
this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new W(), this._height = 0, this._width = 0, this._viewCenter = new W(), this._viewHeight = 0;
|
|
@@ -13627,7 +13627,7 @@ class tn {
|
|
|
13627
13627
|
}
|
|
13628
13628
|
const Ba = class Ba extends tn {
|
|
13629
13629
|
constructor() {
|
|
13630
|
-
super(...arguments), this._lineType = Li, this.
|
|
13630
|
+
super(...arguments), this._lineType = Li, this._visibility = !0, this._transparency = new Ia();
|
|
13631
13631
|
}
|
|
13632
13632
|
/**
|
|
13633
13633
|
* Gets the type name of this entity.
|
|
@@ -13753,7 +13753,7 @@ const Ba = class Ba extends tn {
|
|
|
13753
13753
|
* @returns The line weight value
|
|
13754
13754
|
*/
|
|
13755
13755
|
get lineWeight() {
|
|
13756
|
-
return this._lineWeight;
|
|
13756
|
+
return this._lineWeight == null && (this._lineWeight = this.database.celweight ?? bn.ByLayer), this._lineWeight;
|
|
13757
13757
|
}
|
|
13758
13758
|
/**
|
|
13759
13759
|
* Sets the line weight for this entity.
|
|
@@ -13779,7 +13779,7 @@ const Ba = class Ba extends tn {
|
|
|
13779
13779
|
* ```
|
|
13780
13780
|
*/
|
|
13781
13781
|
get linetypeScale() {
|
|
13782
|
-
return this._linetypeScale;
|
|
13782
|
+
return this._linetypeScale == null && (this._linetypeScale = this.database.celtscale ?? -1), this._linetypeScale;
|
|
13783
13783
|
}
|
|
13784
13784
|
/**
|
|
13785
13785
|
* Sets the line type scale factor for this entity.
|
|
@@ -13874,7 +13874,7 @@ const Ba = class Ba extends tn {
|
|
|
13874
13874
|
* downstream processing.
|
|
13875
13875
|
*/
|
|
13876
13876
|
resolveEffectiveProperties() {
|
|
13877
|
-
this._layer == null && (this._layer = this.database.clayer ?? "0"), this._color == null && (this._color = new Ze(), this.database.cecolor && this._color.copy(this.database.cecolor));
|
|
13877
|
+
this._layer == null && (this._layer = this.database.clayer ?? "0"), this._color == null && (this._color = new Ze(), this.database.cecolor && this._color.copy(this.database.cecolor)), this._linetypeScale == null && (this._linetypeScale = this.database.celtscale ?? -1), this._lineWeight == null && (this._lineWeight = this.database.celweight ?? bn.ByLayer);
|
|
13878
13878
|
}
|
|
13879
13879
|
/**
|
|
13880
13880
|
* Returns the full property definition for this entity, including
|
|
@@ -14203,7 +14203,7 @@ const za = class za extends Ce {
|
|
|
14203
14203
|
};
|
|
14204
14204
|
za.typeName = "Curve";
|
|
14205
14205
|
let Oe = za;
|
|
14206
|
-
var
|
|
14206
|
+
var ks = /* @__PURE__ */ ((n) => (n[n.SimplePoly = 0] = "SimplePoly", n[n.FitCurvePoly = 1] = "FitCurvePoly", n[n.QuadSplinePoly = 2] = "QuadSplinePoly", n[n.CubicSplinePoly = 3] = "CubicSplinePoly", n))(ks || {});
|
|
14207
14207
|
const Ra = class Ra extends Oe {
|
|
14208
14208
|
/**
|
|
14209
14209
|
* Creates a new empty 2d polyline entity.
|
|
@@ -14215,7 +14215,7 @@ const Ra = class Ra extends Oe {
|
|
|
14215
14215
|
y: w.y,
|
|
14216
14216
|
bulge: b ? m[x] : void 0
|
|
14217
14217
|
}));
|
|
14218
|
-
this._geo = new
|
|
14218
|
+
this._geo = new Gn(f, a);
|
|
14219
14219
|
}
|
|
14220
14220
|
/**
|
|
14221
14221
|
* Gets the curve/spline-fit type for this 2d polyline.
|
|
@@ -14595,7 +14595,7 @@ const Va = class Va extends Oe {
|
|
|
14595
14595
|
* Creates a new empty 2d polyline entity.
|
|
14596
14596
|
*/
|
|
14597
14597
|
constructor(t, e, s = !1) {
|
|
14598
|
-
super(), this._polyType = t, this._geo = new
|
|
14598
|
+
super(), this._polyType = t, this._geo = new Gn(e, s);
|
|
14599
14599
|
}
|
|
14600
14600
|
/**
|
|
14601
14601
|
* Gets the spline-fit type for this 3D polyline.
|
|
@@ -16425,7 +16425,7 @@ const qa = class qa extends Ce {
|
|
|
16425
16425
|
this._scaleFactors.x,
|
|
16426
16426
|
this._scaleFactors.y,
|
|
16427
16427
|
this._scaleFactors.z
|
|
16428
|
-
), h = new
|
|
16428
|
+
), h = new jn().setFromAxisAngle(
|
|
16429
16429
|
K.Z_AXIS,
|
|
16430
16430
|
this._rotation
|
|
16431
16431
|
), u = new $e().makeRotationFromQuaternion(h), m = new $e().makeTranslation(
|
|
@@ -18145,7 +18145,7 @@ const Za = class Za extends Oe {
|
|
|
18145
18145
|
* ```
|
|
18146
18146
|
*/
|
|
18147
18147
|
constructor(t, e) {
|
|
18148
|
-
super(), this._geo = new
|
|
18148
|
+
super(), this._geo = new Ns(t, e);
|
|
18149
18149
|
}
|
|
18150
18150
|
/**
|
|
18151
18151
|
* Gets the starting point of this line.
|
|
@@ -19345,7 +19345,7 @@ const vc = /* @__PURE__ */ new K(), to = class to extends Cs {
|
|
|
19345
19345
|
}
|
|
19346
19346
|
}
|
|
19347
19347
|
m.push(t.lineSegments(h, 3, a));
|
|
19348
|
-
const w = t.group(m), x = new
|
|
19348
|
+
const w = t.group(m), x = new jn();
|
|
19349
19349
|
return x.setFromAxisAngle(K.Z_AXIS, this.rotation), Xo.compose(this.position, x, this.scaleFactors), w.applyMatrix(Xo), w;
|
|
19350
19350
|
}
|
|
19351
19351
|
/**
|
|
@@ -19627,7 +19627,7 @@ const Xo = /* @__PURE__ */ new $e(), eo = class eo extends Oe {
|
|
|
19627
19627
|
* @returns The rendered trace entity, or undefined if drawing failed
|
|
19628
19628
|
*/
|
|
19629
19629
|
subWorldDraw(t) {
|
|
19630
|
-
const e = new
|
|
19630
|
+
const e = new Gn(this._vertices, !0), s = new Ea();
|
|
19631
19631
|
s.add(e);
|
|
19632
19632
|
const a = t.subEntityTraits;
|
|
19633
19633
|
return a.fillType = {
|
|
@@ -19654,7 +19654,7 @@ const ro = class ro extends Oe {
|
|
|
19654
19654
|
* ```
|
|
19655
19655
|
*/
|
|
19656
19656
|
constructor() {
|
|
19657
|
-
super(), this._elevation = 0, this._geo = new
|
|
19657
|
+
super(), this._elevation = 0, this._geo = new Gn();
|
|
19658
19658
|
}
|
|
19659
19659
|
/**
|
|
19660
19660
|
* Gets the number of vertices in this polyline.
|
|
@@ -20886,7 +20886,7 @@ const oo = class oo extends mi {
|
|
|
20886
20886
|
*/
|
|
20887
20887
|
subWorldDraw(t) {
|
|
20888
20888
|
const e = this.boundaryPath(), s = new Ea();
|
|
20889
|
-
return s.add(new
|
|
20889
|
+
return s.add(new Gn(e)), t.area(s);
|
|
20890
20890
|
}
|
|
20891
20891
|
};
|
|
20892
20892
|
oo.typeName = "Wipeout";
|
|
@@ -21889,12 +21889,12 @@ const co = class co extends Jr {
|
|
|
21889
21889
|
), h = this.findIntersectionPoint(
|
|
21890
21890
|
s,
|
|
21891
21891
|
this._dimLinePoint
|
|
21892
|
-
), u = new
|
|
21892
|
+
), u = new Ns(a, h);
|
|
21893
21893
|
return t.push(u), e.endPoint = a, this.adjustExtensionLine(e), t.push(e), s.endPoint = h, this.adjustExtensionLine(s), t.push(s), t;
|
|
21894
21894
|
}
|
|
21895
21895
|
createExtensionLine(t) {
|
|
21896
21896
|
const e = this.rotation + Math.PI / 2, s = this.findPointOnLine2(t, e, 100);
|
|
21897
|
-
return new
|
|
21897
|
+
return new Ns(t, { ...s, z: t.z });
|
|
21898
21898
|
}
|
|
21899
21899
|
/**
|
|
21900
21900
|
* Compute the intersection point between a line 'line1' and a line 'line2' that passes through
|
|
@@ -23389,28 +23389,28 @@ class Gl {
|
|
|
23389
23389
|
throw new Error("Not impelemented yet!");
|
|
23390
23390
|
}
|
|
23391
23391
|
}
|
|
23392
|
-
var ce,
|
|
23392
|
+
var ce, cs, ee, ae, ds, or, we, wr, lr, hn, ps, ms, un, cn, gs, fs, _s, je, Sr, Dt, dn, ys, vt, Se, vs, Ie, bs, Ir, Pr, hr, xs, pn, Ge, Er, mn, Fi, Vi, Ar, kr, ws, Ss, Mr, Is, Ui, ji, de, Tr, pe, We, Gi, Wi, Hi, qi, Nr, He, gn, Ps, fn, qe, Lr, Xe, Cr;
|
|
23393
23393
|
(ce = {})[ce.None = 0] = "None", ce[ce.Anonymous = 1] = "Anonymous", ce[ce.NonConstant = 2] = "NonConstant", ce[ce.Xref = 4] = "Xref", ce[ce.XrefOverlay = 8] = "XrefOverlay", ce[ce.ExternallyDependent = 16] = "ExternallyDependent", ce[ce.ResolvedOrDependent = 32] = "ResolvedOrDependent", ce[ce.ReferencedXref = 64] = "ReferencedXref";
|
|
23394
|
-
(
|
|
23394
|
+
(cs = {})[cs.BYBLOCK = 0] = "BYBLOCK", cs[cs.BYLAYER = 256] = "BYLAYER";
|
|
23395
23395
|
(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";
|
|
23396
23396
|
(ae = {})[ae.TopLeft = 1] = "TopLeft", ae[ae.TopCenter = 2] = "TopCenter", ae[ae.TopRight = 3] = "TopRight", ae[ae.MiddleLeft = 4] = "MiddleLeft", ae[ae.MiddleCenter = 5] = "MiddleCenter", ae[ae.MiddleRight = 6] = "MiddleRight", ae[ae.BottomLeft = 7] = "BottomLeft", ae[ae.BottomCenter = 8] = "BottomCenter", ae[ae.BottomRight = 9] = "BottomRight";
|
|
23397
|
-
(
|
|
23398
|
-
var Ko = ((or = {})[or.Center = 0] = "Center", or[or.Above = 1] = "Above", or[or.Outside = 2] = "Outside", or[or.JIS = 3] = "JIS", or[or.Below = 4] = "Below", or),
|
|
23399
|
-
(
|
|
23397
|
+
(ds = {})[ds.AtLeast = 1] = "AtLeast", ds[ds.Exact = 2] = "Exact";
|
|
23398
|
+
var Ko = ((or = {})[or.Center = 0] = "Center", or[or.Above = 1] = "Above", or[or.Outside = 2] = "Outside", or[or.JIS = 3] = "JIS", or[or.Below = 4] = "Below", or), Vn = ((we = {})[we.Feet = 0] = "Feet", we[we.None = 1] = "None", we[we.Inch = 2] = "Inch", we[we.FeetAndInch = 3] = "FeetAndInch", we[we.Leading = 4] = "Leading", we[we.Trailing = 8] = "Trailing", we[we.LeadingAndTrailing = 12] = "LeadingAndTrailing", we), kc = ((wr = {})[wr.None = 0] = "None", wr[wr.Leading = 1] = "Leading", wr[wr.Trailing = 2] = "Trailing", wr[wr.LeadingAndTrailing = 3] = "LeadingAndTrailing", wr), Mc = ((lr = {})[lr.Center = 0] = "Center", lr[lr.Left = 1] = "Left", lr[lr.Right = 2] = "Right", lr[lr.OverFirst = 3] = "OverFirst", lr[lr.OverSecond = 4] = "OverSecond", lr), Tc = ((hn = {})[hn.Bottom = 0] = "Bottom", hn[hn.Center = 1] = "Center", hn[hn.Top = 2] = "Top", hn), Nc = ((ps = {})[ps.PatternFill = 0] = "PatternFill", ps[ps.SolidFill = 1] = "SolidFill", ps);
|
|
23399
|
+
(ms = {})[ms.NonAssociative = 0] = "NonAssociative", ms[ms.Associative = 1] = "Associative";
|
|
23400
23400
|
(un = {})[un.Normal = 0] = "Normal", un[un.Outer = 1] = "Outer", un[un.Ignore = 2] = "Ignore";
|
|
23401
23401
|
(cn = {})[cn.UserDefined = 0] = "UserDefined", cn[cn.Predefined = 1] = "Predefined", cn[cn.Custom = 2] = "Custom";
|
|
23402
|
-
(
|
|
23403
|
-
(
|
|
23404
|
-
(
|
|
23402
|
+
(gs = {})[gs.NotAnnotated = 0] = "NotAnnotated", gs[gs.Annotated = 1] = "Annotated";
|
|
23403
|
+
(fs = {})[fs.Solid = 0] = "Solid", fs[fs.Gradient = 1] = "Gradient";
|
|
23404
|
+
(_s = {})[_s.TwoColor = 0] = "TwoColor", _s[_s.OneColor = 1] = "OneColor";
|
|
23405
23405
|
var Lc = ((je = {})[je.Default = 0] = "Default", je[je.External = 1] = "External", je[je.Polyline = 2] = "Polyline", je[je.Derived = 4] = "Derived", je[je.Textbox = 8] = "Textbox", je[je.Outermost = 16] = "Outermost", je), Ys = ((Sr = {})[Sr.Line = 1] = "Line", Sr[Sr.Circular = 2] = "Circular", Sr[Sr.Elliptic = 3] = "Elliptic", Sr[Sr.Spline = 4] = "Spline", Sr), Cc = ((Dt = {})[Dt.Off = 0] = "Off", Dt[Dt.Solid = 1] = "Solid", Dt[Dt.Dashed = 2] = "Dashed", Dt[Dt.Dotted = 3] = "Dotted", Dt[Dt.ShotDash = 4] = "ShotDash", Dt[Dt.MediumDash = 5] = "MediumDash", Dt[Dt.LongDash = 6] = "LongDash", Dt[Dt.DoubleShortDash = 7] = "DoubleShortDash", Dt[Dt.DoubleMediumDash = 8] = "DoubleMediumDash", Dt[Dt.DoubleLongDash = 9] = "DoubleLongDash", Dt[Dt.DoubleMediumLongDash = 10] = "DoubleMediumLongDash", Dt[Dt.SparseDot = 11] = "SparseDot", Dt);
|
|
23406
23406
|
Cc.Off;
|
|
23407
23407
|
(dn = {})[dn.Standard = -3] = "Standard", dn[dn.ByLayer = -2] = "ByLayer", dn[dn.ByBlock = -1] = "ByBlock";
|
|
23408
|
-
(
|
|
23408
|
+
(ys = {})[ys.English = 0] = "English", ys[ys.Metric = 1] = "Metric";
|
|
23409
23409
|
(vt = {})[vt.PERSPECTIVE_MODE = 1] = "PERSPECTIVE_MODE", vt[vt.FRONT_CLIPPING = 2] = "FRONT_CLIPPING", vt[vt.BACK_CLIPPING = 4] = "BACK_CLIPPING", vt[vt.UCS_FOLLOW = 8] = "UCS_FOLLOW", vt[vt.FRONT_CLIP_NOT_AT_EYE = 16] = "FRONT_CLIP_NOT_AT_EYE", vt[vt.UCS_ICON_VISIBILITY = 32] = "UCS_ICON_VISIBILITY", vt[vt.UCS_ICON_AT_ORIGIN = 64] = "UCS_ICON_AT_ORIGIN", vt[vt.FAST_ZOOM = 128] = "FAST_ZOOM", vt[vt.SNAP_MODE = 256] = "SNAP_MODE", vt[vt.GRID_MODE = 512] = "GRID_MODE", vt[vt.ISOMETRIC_SNAP_STYLE = 1024] = "ISOMETRIC_SNAP_STYLE", vt[vt.HIDE_PLOT_MODE = 2048] = "HIDE_PLOT_MODE", vt[vt.K_ISO_PAIR_TOP = 4096] = "K_ISO_PAIR_TOP", vt[vt.K_ISO_PAIR_RIGHT = 8192] = "K_ISO_PAIR_RIGHT", vt[vt.VIEWPORT_ZOOM_LOCKING = 16384] = "VIEWPORT_ZOOM_LOCKING", vt[vt.UNUSED = 32768] = "UNUSED", vt[vt.NON_RECTANGULAR_CLIPPING = 65536] = "NON_RECTANGULAR_CLIPPING", vt[vt.VIEWPORT_OFF = 131072] = "VIEWPORT_OFF", vt[vt.GRID_BEYOND_DRAWING_LIMITS = 262144] = "GRID_BEYOND_DRAWING_LIMITS", vt[vt.ADAPTIVE_GRID_DISPLAY = 524288] = "ADAPTIVE_GRID_DISPLAY", vt[vt.SUBDIVISION_BELOW_SPACING = 1048576] = "SUBDIVISION_BELOW_SPACING", vt[vt.GRID_FOLLOWS_WORKPLANE = 2097152] = "GRID_FOLLOWS_WORKPLANE";
|
|
23410
23410
|
(Se = {})[Se.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", Se[Se.WIREFRAME = 1] = "WIREFRAME", Se[Se.HIDDEN_LINE = 2] = "HIDDEN_LINE", Se[Se.FLAT_SHADED = 3] = "FLAT_SHADED", Se[Se.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", Se[Se.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", Se[Se.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME";
|
|
23411
|
-
(
|
|
23411
|
+
(vs = {})[vs.UCS_UNCHANGED = 0] = "UCS_UNCHANGED", vs[vs.HAS_OWN_UCS = 1] = "HAS_OWN_UCS";
|
|
23412
23412
|
(Ie = {})[Ie.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", Ie[Ie.TOP = 1] = "TOP", Ie[Ie.BOTTOM = 2] = "BOTTOM", Ie[Ie.FRONT = 3] = "FRONT", Ie[Ie.BACK = 4] = "BACK", Ie[Ie.LEFT = 5] = "LEFT", Ie[Ie.RIGHT = 6] = "RIGHT";
|
|
23413
|
-
(
|
|
23413
|
+
(bs = {})[bs.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", bs[bs.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS";
|
|
23414
23414
|
(Ir = {})[Ir.ByLayer = 0] = "ByLayer", Ir[Ir.ByBlock = 1] = "ByBlock", Ir[Ir.ByDictionaryDefault = 2] = "ByDictionaryDefault", Ir[Ir.ByObject = 3] = "ByObject";
|
|
23415
23415
|
function It(n, t, e) {
|
|
23416
23416
|
return n.code === t && (e == null || n.value === e);
|
|
@@ -23606,7 +23606,7 @@ class Yl {
|
|
|
23606
23606
|
}
|
|
23607
23607
|
Xl(Yl, "ForEntityName", "ARC");
|
|
23608
23608
|
(hr = {})[hr.NONE = 0] = "NONE", hr[hr.INVISIBLE = 1] = "INVISIBLE", hr[hr.CONSTANT = 2] = "CONSTANT", hr[hr.VERIFICATION_REQUIRED = 4] = "VERIFICATION_REQUIRED", hr[hr.PRESET = 8] = "PRESET";
|
|
23609
|
-
(
|
|
23609
|
+
(xs = {})[xs.MULTILINE = 2] = "MULTILINE", xs[xs.CONSTANT_MULTILINE = 4] = "CONSTANT_MULTILINE";
|
|
23610
23610
|
(pn = {})[pn.NONE = 0] = "NONE", pn[pn.MIRRORED_X = 2] = "MIRRORED_X", pn[pn.MIRRORED_Y = 4] = "MIRRORED_Y";
|
|
23611
23611
|
var Vc = ((Ge = {})[Ge.LEFT = 0] = "LEFT", Ge[Ge.CENTER = 1] = "CENTER", Ge[Ge.RIGHT = 2] = "RIGHT", Ge[Ge.ALIGNED = 3] = "ALIGNED", Ge[Ge.MIDDLE = 4] = "MIDDLE", Ge[Ge.FIT = 5] = "FIT", Ge), Uc = ((Er = {})[Er.BASELINE = 0] = "BASELINE", Er[Er.BOTTOM = 1] = "BOTTOM", Er[Er.MIDDLE = 2] = "MIDDLE", Er[Er.TOP = 3] = "TOP", Er);
|
|
23612
23612
|
function Dl(n, t, e) {
|
|
@@ -23937,8 +23937,8 @@ class mh {
|
|
|
23937
23937
|
}
|
|
23938
23938
|
ph(mh, "ForEntityName", "HATCH");
|
|
23939
23939
|
(kr = {})[kr.ShowImage = 1] = "ShowImage", kr[kr.ShowImageWhenNotAlignedWithScreen = 2] = "ShowImageWhenNotAlignedWithScreen", kr[kr.UseClippingBoundary = 4] = "UseClippingBoundary", kr[kr.TransparencyIsOn = 8] = "TransparencyIsOn";
|
|
23940
|
-
(
|
|
23941
|
-
(
|
|
23940
|
+
(ws = {})[ws.Rectangular = 1] = "Rectangular", ws[ws.Polygonal = 2] = "Polygonal";
|
|
23941
|
+
(Ss = {})[Ss.Outside = 0] = "Outside", Ss[Ss.Inside = 1] = "Inside";
|
|
23942
23942
|
function gh(n, t, e) {
|
|
23943
23943
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
23944
23944
|
}
|
|
@@ -23996,7 +23996,7 @@ class wh {
|
|
|
23996
23996
|
}
|
|
23997
23997
|
}
|
|
23998
23998
|
xh(wh, "ForEntityName", "LINE");
|
|
23999
|
-
(
|
|
23999
|
+
(Is = {})[Is.IS_CLOSED = 1] = "IS_CLOSED", Is[Is.PLINE_GEN = 128] = "PLINE_GEN";
|
|
24000
24000
|
let _d = { flag: 0, elevation: 0, thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, yd = { bulge: 0 }, vd = [{ code: 42, name: "bulge", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 91, name: "id", parser: v }, { code: 20, name: "y", parser: v }, { code: 10, name: "x", parser: v }], bd = [{ code: 210, name: "extrusionDirection", parser: H }, { code: 10, name: "vertices", isMultiple: !0, parser(n, t) {
|
|
24001
24001
|
let e = {};
|
|
24002
24002
|
return xt(vd, yd)(n, t, e), e;
|
|
@@ -24674,7 +24674,7 @@ let Ca = [{ code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser:
|
|
|
24674
24674
|
return (n = t.next()).code === 350 ? e.objectSoftId = n.value : n.code === 360 ? e.objectHardId = n.value : t.rewind(), e;
|
|
24675
24675
|
}, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: v }, { code: 280, name: "isHardOwned", parser: Ut }, { code: 100, name: "subclassMarker", parser: v }, ...Ca], Kd = [{ code: 330, name: "imageDefReactorIdSoft", isMultiple: !0, parser: v }, { code: 90, name: "version", parser: v }, { code: 1, name: "fileName", parser: v }, { code: 10, name: "size", parser: H }, { code: 11, name: "sizeOfOnePixel", parser: H }, { code: 280, name: "isLoaded", parser: v }, { code: 281, name: "resolutionUnits", parser: v }, { code: 100, name: "subclassMarker", parser: v }];
|
|
24676
24676
|
(gn = {})[gn.NOUNIT = 0] = "NOUNIT", gn[gn.CENTIMETERS = 2] = "CENTIMETERS", gn[gn.INCH = 5] = "INCH";
|
|
24677
|
-
(
|
|
24677
|
+
(Ps = {})[Ps.PSLTSCALE = 1] = "PSLTSCALE", Ps[Ps.LIMCHECK = 2] = "LIMCHECK";
|
|
24678
24678
|
(fn = {})[fn.INCHES = 0] = "INCHES", fn[fn.MILLIMETERS = 1] = "MILLIMETERS", fn[fn.PIXELS = 2] = "PIXELS";
|
|
24679
24679
|
(qe = {})[qe.LAST_SCREEN_DISPLAY = 0] = "LAST_SCREEN_DISPLAY", qe[qe.DRAWING_EXTENTS = 1] = "DRAWING_EXTENTS", qe[qe.DRAWING_LIMITS = 2] = "DRAWING_LIMITS", qe[qe.VIEW_SPECIFIED = 3] = "VIEW_SPECIFIED", qe[qe.WINDOW_SPECIFIED = 4] = "WINDOW_SPECIFIED", qe[qe.LAYOUT_INFORMATION = 5] = "LAYOUT_INFORMATION";
|
|
24680
24680
|
(Lr = {})[Lr.AS_DISPLAYED = 0] = "AS_DISPLAYED", Lr[Lr.WIREFRAME = 1] = "WIREFRAME", Lr[Lr.HIDDEN = 2] = "HIDDEN", Lr[Lr.RENDERED = 3] = "RENDERED";
|
|
@@ -24701,14 +24701,14 @@ function Jd(n, t) {
|
|
|
24701
24701
|
}
|
|
24702
24702
|
return { byName: Wc(e, ({ name: s }) => s) };
|
|
24703
24703
|
}
|
|
24704
|
-
let
|
|
24704
|
+
let Wn = [{ code: 100, name: "subclassMarker", parser: v }, { code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser(n, t) {
|
|
24705
24705
|
for (; !It(n, 0, "EOF") && !It(n, 102, "}"); ) n = t.next();
|
|
24706
|
-
} }, { code: 5, name: "handle", parser: v }], t0 = xt([{ code: 310, name: "bmpPreview", parser: v }, { code: 281, name: "scalability", parser: v }, { code: 280, name: "explodability", parser: v }, { code: 70, name: "insertionUnits", parser: v }, { code: 340, name: "layoutObjects", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...
|
|
24706
|
+
} }, { code: 5, name: "handle", parser: v }], t0 = xt([{ code: 310, name: "bmpPreview", parser: v }, { code: 281, name: "scalability", parser: v }, { code: 280, name: "explodability", parser: v }, { code: 70, name: "insertionUnits", parser: v }, { code: 340, name: "layoutObjects", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Wn]), e0 = [{ name: "DIMPOST", code: 3 }, { name: "DIMAPOST", code: 4 }, { name: "DIMBLK_OBSOLETE", code: 5 }, { name: "DIMBLK1_OBSOLETE", code: 6 }, { name: "DIMBLK2_OBSOLETE", code: 7 }, { name: "DIMSCALE", code: 40, defaultValue: 1 }, { name: "DIMASZ", code: 41, defaultValue: 0.25 }, { name: "DIMEXO", code: 42, defaultValue: 0.625, defaultValueImperial: 0.0625 }, { name: "DIMDLI", code: 43, defaultValue: 3.75, defaultValueImperial: 0.38 }, { name: "DIMEXE", code: 44, defaultValue: 2.25, defaultValueImperial: 0.28 }, { name: "DIMRND", code: 45, defaultValue: 0 }, { name: "DIMDLE", code: 46, defaultValue: 0 }, { name: "DIMTP", code: 47, defaultValue: 0 }, { name: "DIMTM", code: 48, defaultValue: 0 }, { name: "DIMTXT", code: 140, defaultValue: 2.5, defaultValueImperial: 0.28 }, { name: "DIMCEN", code: 141, defaultValue: 2.5, defaultValueImperial: 0.09 }, { name: "DIMTSZ", code: 142, defaultValue: 0 }, { name: "DIMALTF", code: 143, defaultValue: 25.4 }, { name: "DIMLFAC", code: 144, defaultValue: 1 }, { name: "DIMTVP", code: 145, defaultValue: 0 }, { name: "DIMTFAC", code: 146, defaultValue: 1 }, { name: "DIMGAP", code: 147, defaultValue: 0.625, defaultValueImperial: 0.09 }, { name: "DIMALTRND", code: 148, defaultValue: 0 }, { name: "DIMTOL", code: 71, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMLIM", code: 72, defaultValue: 0 }, { name: "DIMTIH", code: 73, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMTOH", code: 74, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMSE1", code: 75, defaultValue: 0 }, { name: "DIMSE2", code: 76, defaultValue: 0 }, { name: "DIMTAD", code: 77, defaultValue: Ko.Above, defaultValueImperial: Ko.Center }, { name: "DIMZIN", code: 78, defaultValue: Vn.Trailing, defaultValueImperial: Vn.Feet }, { name: "DIMAZIN", code: 79, defaultValue: kc.None }, { name: "DIMALT", code: 170, defaultValue: 0 }, { name: "DIMALTD", code: 171, defaultValue: 3, defaultValueImperial: 2 }, { name: "DIMTOFL", code: 172, defaultValue: 1, defaultValueImperial: 0 }, { name: "DIMSAH", code: 173, defaultValue: 0 }, { name: "DIMTIX", code: 174, defaultValue: 0 }, { name: "DIMSOXD", code: 175, defaultValue: 0 }, { name: "DIMCLRD", code: 176, defaultValue: 0 }, { name: "DIMCLRE", code: 177, defaultValue: 0 }, { name: "DIMCLRT", code: 178, defaultValue: 0 }, { name: "DIMADEC", code: 179 }, { name: "DIMUNIT", code: 270 }, { name: "DIMDEC", code: 271, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMTDEC", code: 272, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMALTU", code: 273, defaultValue: 2 }, { name: "DIMALTTD", code: 274, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMAUNIT", code: 275, defaultValue: 0 }, { name: "DIMFRAC", code: 276, defaultValue: 0 }, { name: "DIMLUNIT", code: 277, defaultValue: 2 }, { name: "DIMDSEP", code: 278, defaultValue: ",", defaultValueImperial: "." }, { name: "DIMJUST", code: 280, defaultValue: Mc.Center }, { name: "DIMSD1", code: 281, defaultValue: 0 }, { name: "DIMSD2", code: 282, defaultValue: 0 }, { name: "DIMTOLJ", code: 283, defaultValue: Tc.Center }, { name: "DIMTZIN", code: 284, defaultValue: Vn.Trailing, defaultValueImperial: Vn.Feet }, { name: "DIMALTZ", code: 285, defaultValue: Vn.Trailing }, { name: "DIMALTTZ", code: 286, defaultValue: Vn.Trailing }, { name: "DIMFIT", code: 287 }, { name: "DIMUPT", code: 288, defaultValue: 0 }, { name: "DIMATFIT", code: 289, defaultValue: 3 }, { name: "DIMTXSTY", code: 340 }, { name: "DIMLDRBLK", code: 341 }, { name: "DIMBLK", code: 342 }, { name: "DIMBLK1", code: 343 }, { name: "DIMBLK2", code: 344 }, { name: "DIMLWD", code: 371, defaultValue: -2 }, { name: "DIMLWD", code: 372, defaultValue: -2 }], r0 = xt([...e0.map((n) => ({ ...n, parser: v })), { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 105, name: "handle", parser: v }, ...Wn.filter((n) => n.code !== 5)]), n0 = xt([{ code: 347, name: "materialObjectId", parser: v }, { code: 390, name: "plotStyleNameObjectId", parser: v }, { code: 370, name: "lineweight", parser: v }, { code: 290, name: "isPlotting", parser: Ut }, { code: 6, name: "lineType", parser: v }, { code: 62, name: "colorIndex", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Wn]);
|
|
24707
24707
|
(Cr = {})[Cr.NONE = 0] = "NONE", Cr[Cr.AbsoluteRotation = 1] = "AbsoluteRotation", Cr[Cr.TextEmbedded = 2] = "TextEmbedded", Cr[Cr.ShapeEmbedded = 4] = "ShapeEmbedded";
|
|
24708
24708
|
let s0 = xt([{ code: 9, name: "text", parser: v }, { code: 45, name: "offsetY", parser: v }, { code: 44, name: "offsetX", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 46, name: "scale", parser: v }, { code: 340, name: "styleObjectId", parser: v }, { code: 75, name: "shapeNumber", parser: v }, { code: 74, name: "elementTypeFlag", parser: v }, { code: 49, name: "elementLength", parser: v }], { elementTypeFlag: 0, elementLength: 0 }), i0 = xt([{ code: 49, name: "pattern", parser(n, t) {
|
|
24709
24709
|
let e = {};
|
|
24710
24710
|
return s0(n, t, e), e;
|
|
24711
|
-
}, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: v }, { code: 73, name: "numberOfLineTypes", parser: v }, { code: 72, parser: v }, { code: 3, name: "description", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...
|
|
24711
|
+
}, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: v }, { code: 73, name: "numberOfLineTypes", parser: v }, { code: 72, parser: v }, { code: 3, name: "description", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Wn]), a0 = xt([{ code: 1e3, name: "extendedFont", parser: v }, { code: 1001 }, { code: 4, name: "bigFont", parser: v }, { code: 3, name: "font", parser: v }, { code: 42, name: "lastHeight", parser: v }, { code: 71, name: "textGenerationFlag", parser: v }, { code: 50, name: "obliqueAngle", parser: v }, { code: 41, name: "widthFactor", parser: v }, { code: 40, name: "fixedTextHeight", parser: v }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Wn]), o0 = xt([{ code: [63, 421, 431], name: "ambientColor", parser: v }, { code: 142, name: "contrast", parser: v }, { code: 141, name: "brightness", parser: v }, { code: 282, name: "defaultLightingType", parser: v }, { code: 292, name: "isDefaultLightingOn", parser: Ut }, { code: 348, name: "visualStyleObjectId", parser: v }, { code: 333, name: "shadePlotObjectId", parser: v }, { code: 332, name: "backgroundObjectId", parser: v }, { code: 61, name: "majorGridLines", parser: v }, { code: 170, name: "shadePlotSetting", parser: v }, { code: 146, name: "elevation", parser: v }, { code: 79, name: "orthographicType", parser: v }, { code: 112, name: "ucsYAxis", parser: H }, { code: 111, name: "ucsXAxis", parser: H }, { code: 110, name: "ucsOrigin", parser: H }, { code: 74, name: "ucsIconSetting", parser: v }, { code: 71, name: "viewMode", parser: v }, { code: 281, name: "renderMode", parser: v }, { code: 1, name: "styleSheet", parser: v }, { code: [331, 441], name: "frozenLayers", parser: v, isMultiple: !0 }, { code: 72, name: "circleSides", parser: v }, { code: 51, name: "viewTwistAngle", parser: v }, { code: 50, name: "snapRotationAngle", parser: v }, { code: 45, name: "viewHeight", parser: v }, { code: 44, name: "backClippingPlane", parser: v }, { code: 43, name: "frontClippingPlane", parser: v }, { code: 42, name: "lensLength", parser: v }, { code: 17, name: "viewTarget", parser: H }, { code: 16, name: "viewDirectionFromTarget", parser: H }, { code: 15, name: "gridSpacing", parser: H }, { code: 14, name: "snapSpacing", parser: H }, { code: 13, name: "snapBasePoint", parser: H }, { code: 12, name: "center", parser: H }, { code: 11, name: "upperRightCorner", parser: H }, { code: 10, name: "lowerLeftCorner", parser: H }, { code: 70, name: "standardFlag", parser: v }, { code: 2, name: "name", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Wn]), l0 = { BLOCK_RECORD: t0, DIMSTYLE: r0, LAYER: n0, LTYPE: i0, STYLE: a0, VPORT: o0 }, h0 = xt([{ code: 70, name: "maxNumberOfEntries", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 330, name: "ownerObjectId", parser: v }, { code: 102 }, { code: 360, isMultiple: !0 }, { code: 102 }, { code: 5, name: "handle", parser: v }, { code: 2, name: "name", parser: v }]);
|
|
24712
24712
|
function u0(n, t) {
|
|
24713
24713
|
var s;
|
|
24714
24714
|
let e = {};
|
|
@@ -24733,7 +24733,7 @@ function u0(n, t) {
|
|
|
24733
24733
|
}
|
|
24734
24734
|
return e;
|
|
24735
24735
|
}
|
|
24736
|
-
function
|
|
24736
|
+
function Es(n, t, e) {
|
|
24737
24737
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24738
24738
|
}
|
|
24739
24739
|
class Qo {
|
|
@@ -24758,7 +24758,7 @@ class Qo {
|
|
|
24758
24758
|
return this._eof;
|
|
24759
24759
|
}
|
|
24760
24760
|
constructor(t, e = !1) {
|
|
24761
|
-
|
|
24761
|
+
Es(this, "_data", void 0), Es(this, "debug", void 0), Es(this, "_pointer", void 0), Es(this, "_eof", void 0), Es(this, "lastReadGroup", void 0), this._data = t, this.debug = e, this.lastReadGroup = { code: 0, value: 0 }, this._pointer = 0, this._eof = !1;
|
|
24762
24762
|
}
|
|
24763
24763
|
}
|
|
24764
24764
|
function Jo(n, t, e = !1) {
|
|
@@ -25159,8 +25159,8 @@ class el {
|
|
|
25159
25159
|
let u = ti.SimplePoly;
|
|
25160
25160
|
return t.flag & 4 && (t.smoothType == Ds.CUBIC ? u = ti.CubicSplinePoly : t.smoothType == Ds.QUADRATIC && (u = ti.QuadSplinePoly)), new ta(u, a, e);
|
|
25161
25161
|
} else {
|
|
25162
|
-
let u =
|
|
25163
|
-
return t.flag & 2 ? u =
|
|
25162
|
+
let u = ks.SimplePoly;
|
|
25163
|
+
return t.flag & 2 ? u = ks.FitCurvePoly : t.flag & 4 && (t.smoothType == Ds.CUBIC ? u = ks.CubicSplinePoly : t.smoothType == Ds.QUADRATIC && (u = ks.QuadSplinePoly)), new Ji(
|
|
25164
25164
|
u,
|
|
25165
25165
|
a,
|
|
25166
25166
|
0,
|
|
@@ -25195,7 +25195,7 @@ class el {
|
|
|
25195
25195
|
});
|
|
25196
25196
|
}), e.isSolidFill = t.solidFill == Nc.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) => {
|
|
25197
25197
|
if (h.boundaryPathTypeFlag & 2) {
|
|
25198
|
-
const m = h, b = new
|
|
25198
|
+
const m = h, b = new Gn();
|
|
25199
25199
|
b.closed = m.isClosed, m.vertices.forEach((f, w) => {
|
|
25200
25200
|
b.addVertexAt(w, {
|
|
25201
25201
|
x: f.x,
|
|
@@ -25212,7 +25212,7 @@ class el {
|
|
|
25212
25212
|
} else if (f.type == 2) {
|
|
25213
25213
|
const w = f;
|
|
25214
25214
|
b.add(
|
|
25215
|
-
new
|
|
25215
|
+
new Ts(
|
|
25216
25216
|
w.center,
|
|
25217
25217
|
w.radius,
|
|
25218
25218
|
Et.degToRad(w.startAngle || 0),
|
|
@@ -25436,7 +25436,7 @@ class el {
|
|
|
25436
25436
|
return h;
|
|
25437
25437
|
}
|
|
25438
25438
|
}
|
|
25439
|
-
class
|
|
25439
|
+
class xn extends tn {
|
|
25440
25440
|
/**
|
|
25441
25441
|
* Creates a new AcDbSymbolTableRecord instance.
|
|
25442
25442
|
*
|
|
@@ -25472,7 +25472,7 @@ class bn extends tn {
|
|
|
25472
25472
|
this.setAttr("name", t);
|
|
25473
25473
|
}
|
|
25474
25474
|
}
|
|
25475
|
-
const Qr = class Qr extends
|
|
25475
|
+
const Qr = class Qr extends xn {
|
|
25476
25476
|
/**
|
|
25477
25477
|
* Returns true if the specified name is the name of the model space block table record.
|
|
25478
25478
|
*
|
|
@@ -26745,7 +26745,7 @@ class zr {
|
|
|
26745
26745
|
}));
|
|
26746
26746
|
}
|
|
26747
26747
|
}
|
|
26748
|
-
class
|
|
26748
|
+
class wn extends tn {
|
|
26749
26749
|
/**
|
|
26750
26750
|
* Creates a new AcDbSymbolTable instance.
|
|
26751
26751
|
*
|
|
@@ -26949,7 +26949,7 @@ class xn extends tn {
|
|
|
26949
26949
|
return t;
|
|
26950
26950
|
}
|
|
26951
26951
|
}
|
|
26952
|
-
class b0 extends
|
|
26952
|
+
class b0 extends wn {
|
|
26953
26953
|
/**
|
|
26954
26954
|
* Creates a new AcDbBlockTable instance.
|
|
26955
26955
|
*
|
|
@@ -27038,7 +27038,7 @@ class b0 extends xn {
|
|
|
27038
27038
|
return e;
|
|
27039
27039
|
}
|
|
27040
27040
|
}
|
|
27041
|
-
class x0 extends
|
|
27041
|
+
class x0 extends wn {
|
|
27042
27042
|
/**
|
|
27043
27043
|
* Creates a new AcDbDimStyleTable instance.
|
|
27044
27044
|
*
|
|
@@ -27053,7 +27053,7 @@ class x0 extends xn {
|
|
|
27053
27053
|
super(t);
|
|
27054
27054
|
}
|
|
27055
27055
|
}
|
|
27056
|
-
class Oa extends
|
|
27056
|
+
class Oa extends xn {
|
|
27057
27057
|
/**
|
|
27058
27058
|
* Creates a new AcDbLayerTableRecord instance.
|
|
27059
27059
|
*
|
|
@@ -27351,7 +27351,7 @@ class Oa extends bn {
|
|
|
27351
27351
|
this.setAttr("materialId", t);
|
|
27352
27352
|
}
|
|
27353
27353
|
}
|
|
27354
|
-
class w0 extends
|
|
27354
|
+
class w0 extends wn {
|
|
27355
27355
|
/**
|
|
27356
27356
|
* Creates a new AcDbLayerTable instance.
|
|
27357
27357
|
*
|
|
@@ -27371,7 +27371,7 @@ class w0 extends xn {
|
|
|
27371
27371
|
name: "0",
|
|
27372
27372
|
standardFlags: 0,
|
|
27373
27373
|
linetype: Yi,
|
|
27374
|
-
lineWeight:
|
|
27374
|
+
lineWeight: bn.ByLineWeightDefault,
|
|
27375
27375
|
isOff: !1,
|
|
27376
27376
|
color: e,
|
|
27377
27377
|
isPlottable: !0
|
|
@@ -27399,7 +27399,7 @@ class w0 extends xn {
|
|
|
27399
27399
|
});
|
|
27400
27400
|
}
|
|
27401
27401
|
}
|
|
27402
|
-
class S0 extends
|
|
27402
|
+
class S0 extends wn {
|
|
27403
27403
|
/**
|
|
27404
27404
|
* Creates a new AcDbLinetypeTable instance.
|
|
27405
27405
|
*
|
|
@@ -27414,7 +27414,7 @@ class S0 extends xn {
|
|
|
27414
27414
|
super(t);
|
|
27415
27415
|
}
|
|
27416
27416
|
}
|
|
27417
|
-
class I0 extends
|
|
27417
|
+
class I0 extends wn {
|
|
27418
27418
|
/**
|
|
27419
27419
|
* Creates a new AcDbTextStyleTable instance.
|
|
27420
27420
|
*
|
|
@@ -27460,7 +27460,7 @@ class I0 extends xn {
|
|
|
27460
27460
|
return Array.from(t);
|
|
27461
27461
|
}
|
|
27462
27462
|
}
|
|
27463
|
-
class P0 extends
|
|
27463
|
+
class P0 extends wn {
|
|
27464
27464
|
/**
|
|
27465
27465
|
* Creates a new AcDbViewportTable instance.
|
|
27466
27466
|
*
|
|
@@ -27475,7 +27475,7 @@ class P0 extends xn {
|
|
|
27475
27475
|
super(t);
|
|
27476
27476
|
}
|
|
27477
27477
|
}
|
|
27478
|
-
class E0 extends
|
|
27478
|
+
class E0 extends wn {
|
|
27479
27479
|
/**
|
|
27480
27480
|
* Creates a new AcDbRegAppTable instance.
|
|
27481
27481
|
*
|
|
@@ -27485,7 +27485,7 @@ class E0 extends xn {
|
|
|
27485
27485
|
super(t);
|
|
27486
27486
|
}
|
|
27487
27487
|
}
|
|
27488
|
-
class A0 extends
|
|
27488
|
+
class A0 extends xn {
|
|
27489
27489
|
constructor(t) {
|
|
27490
27490
|
super(), this.name = t;
|
|
27491
27491
|
}
|
|
@@ -27516,7 +27516,7 @@ const fi = class fi extends tn {
|
|
|
27516
27516
|
openProgress: new oe(),
|
|
27517
27517
|
/** Fired when a header system variable is changed */
|
|
27518
27518
|
headerSysVarChanged: new oe()
|
|
27519
|
-
}, this._version = new wa("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = ul.DecimalDegrees, this._celtscale = 1, this._cecolor = new Ze(), this._celweight =
|
|
27519
|
+
}, this._version = new wa("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = ul.DecimalDegrees, this._celtscale = 1, this._cecolor = new Ze(), this._celweight = bn.ByLayer, this._clayer = "0", this._extents = new Ct(), this._insunits = Ul.Millimeters, this._ltscale = 1, this._pdmode = 0, this._pdsize = 0, this._tables = {
|
|
27520
27520
|
appIdTable: new E0(this),
|
|
27521
27521
|
blockTable: new b0(this),
|
|
27522
27522
|
dimStyleTable: new x0(this),
|
|
@@ -27739,7 +27739,7 @@ const fi = class fi extends tn {
|
|
|
27739
27739
|
return this._celweight;
|
|
27740
27740
|
}
|
|
27741
27741
|
set celweight(t) {
|
|
27742
|
-
this._celweight = t ??
|
|
27742
|
+
this._celweight = t ?? bn.ByLayer, this.triggerHeaderSysVarChangedEvent("celweight");
|
|
27743
27743
|
}
|
|
27744
27744
|
/**
|
|
27745
27745
|
* The layer of new objects as they are created.
|
|
@@ -28008,7 +28008,7 @@ const fi = class fi extends tn {
|
|
|
28008
28008
|
fi.MLIGHTCAD_APPID = "mlightcad";
|
|
28009
28009
|
let rl = fi;
|
|
28010
28010
|
var k0 = /* @__PURE__ */ ((n) => (n[n.Center = 0] = "Center", n[n.Left = 1] = "Left", n[n.Right = 2] = "Right", n[n.OverFirst = 3] = "OverFirst", n[n.OverSecond = 4] = "OverSecond", n))(k0 || {}), M0 = /* @__PURE__ */ ((n) => (n[n.Center = 0] = "Center", n[n.Above = 1] = "Above", n[n.Outside = 2] = "Outside", n[n.JIS = 3] = "JIS", n[n.Below = 4] = "Below", n))(M0 || {}), T0 = /* @__PURE__ */ ((n) => (n[n.Feet = 0] = "Feet", n[n.None = 1] = "None", n[n.Inch = 2] = "Inch", n[n.FeetAndInch = 3] = "FeetAndInch", n[n.Leading = 4] = "Leading", n[n.Trailing = 8] = "Trailing", n[n.LeadingAndTrailing = 12] = "LeadingAndTrailing", n))(T0 || {}), N0 = /* @__PURE__ */ ((n) => (n[n.None = 0] = "None", n[n.Leading = 1] = "Leading", n[n.Trailing = 2] = "Trailing", n[n.LeadingAndTrailing = 3] = "LeadingAndTrailing", n))(N0 || {}), L0 = /* @__PURE__ */ ((n) => (n[n.Bottom = 0] = "Bottom", n[n.Middle = 1] = "Middle", n[n.Top = 2] = "Top", n))(L0 || {});
|
|
28011
|
-
const _i = class _i extends
|
|
28011
|
+
const _i = class _i extends xn {
|
|
28012
28012
|
constructor(t, e) {
|
|
28013
28013
|
t = t || {}, Bs(t, _i.DEFAULT_DIM_VALUES), super(t, e);
|
|
28014
28014
|
}
|
|
@@ -28927,7 +28927,7 @@ _i.DEFAULT_DIM_VALUES = {
|
|
|
28927
28927
|
dimlwe: -2
|
|
28928
28928
|
};
|
|
28929
28929
|
let Os = _i;
|
|
28930
|
-
class hi extends
|
|
28930
|
+
class hi extends xn {
|
|
28931
28931
|
/**
|
|
28932
28932
|
* Creates a new line type table record.
|
|
28933
28933
|
*
|
|
@@ -29027,6 +29027,16 @@ const yi = class yi {
|
|
|
29027
29027
|
type: "color",
|
|
29028
29028
|
isDbVar: !0,
|
|
29029
29029
|
defaultValue: new Ze(pt.ByLayer)
|
|
29030
|
+
}), this.registerVar({
|
|
29031
|
+
name: "CELTSCALE",
|
|
29032
|
+
type: "number",
|
|
29033
|
+
isDbVar: !0,
|
|
29034
|
+
defaultValue: -1
|
|
29035
|
+
}), this.registerVar({
|
|
29036
|
+
name: "CELWEIGHT",
|
|
29037
|
+
type: "number",
|
|
29038
|
+
isDbVar: !0,
|
|
29039
|
+
defaultValue: bn.ByLayer
|
|
29030
29040
|
}), this.registerVar({
|
|
29031
29041
|
name: "CLAYER",
|
|
29032
29042
|
type: "string",
|
|
@@ -29125,7 +29135,7 @@ const yi = class yi {
|
|
|
29125
29135
|
};
|
|
29126
29136
|
yi._instance = null;
|
|
29127
29137
|
let nl = yi;
|
|
29128
|
-
class Qh extends
|
|
29138
|
+
class Qh extends xn {
|
|
29129
29139
|
/**
|
|
29130
29140
|
* Creates a new AcDbTextStyleTableRecord instance.
|
|
29131
29141
|
*
|
|
@@ -29350,7 +29360,7 @@ const C0 = {
|
|
|
29350
29360
|
contrast: 0,
|
|
29351
29361
|
ambientColor: void 0
|
|
29352
29362
|
};
|
|
29353
|
-
class O0 extends
|
|
29363
|
+
class O0 extends xn {
|
|
29354
29364
|
/**
|
|
29355
29365
|
* Creates a new AcDbViewportTableRecord instance.
|
|
29356
29366
|
*
|
|
@@ -29953,7 +29963,7 @@ export {
|
|
|
29953
29963
|
va as AcDbOrdinateDimension,
|
|
29954
29964
|
Vt as AcDbOsnapMode,
|
|
29955
29965
|
ca as AcDbPoint,
|
|
29956
|
-
|
|
29966
|
+
ks as AcDbPoly2dType,
|
|
29957
29967
|
ti as AcDbPoly3dType,
|
|
29958
29968
|
ua as AcDbPolyline,
|
|
29959
29969
|
ba as AcDbRadialDimension,
|
|
@@ -29968,8 +29978,8 @@ export {
|
|
|
29968
29978
|
zs as AcDbRenderingCache,
|
|
29969
29979
|
tu as AcDbResultBuffer,
|
|
29970
29980
|
pi as AcDbSpline,
|
|
29971
|
-
|
|
29972
|
-
|
|
29981
|
+
wn as AcDbSymbolTable,
|
|
29982
|
+
xn as AcDbSymbolTableRecord,
|
|
29973
29983
|
nl as AcDbSysVarManager,
|
|
29974
29984
|
la as AcDbTable,
|
|
29975
29985
|
Ls as AcDbText,
|
|
@@ -29991,7 +30001,7 @@ export {
|
|
|
29991
30001
|
Ae as AcGeBox2d,
|
|
29992
30002
|
Ct as AcGeBox3d,
|
|
29993
30003
|
uc as AcGeCatmullRomCurve3d,
|
|
29994
|
-
|
|
30004
|
+
Ts as AcGeCircArc2d,
|
|
29995
30005
|
Ml as AcGeCircArc3d,
|
|
29996
30006
|
Rs as AcGeCurve2d,
|
|
29997
30007
|
Aa as AcGeEllipseArc2d,
|
|
@@ -29999,17 +30009,17 @@ export {
|
|
|
29999
30009
|
K0 as AcGeEuler,
|
|
30000
30010
|
Qu as AcGeGeometryUtil,
|
|
30001
30011
|
Js as AcGeLine2d,
|
|
30002
|
-
|
|
30012
|
+
Ns as AcGeLine3d,
|
|
30003
30013
|
Nl as AcGeLoop2d,
|
|
30004
30014
|
Et as AcGeMathUtil,
|
|
30005
30015
|
Pa as AcGeMatrix2d,
|
|
30006
30016
|
$e as AcGeMatrix3d,
|
|
30007
|
-
|
|
30017
|
+
Un as AcGeNurbsCurve,
|
|
30008
30018
|
bi as AcGePlane,
|
|
30009
30019
|
Lt as AcGePoint2d,
|
|
30010
30020
|
W as AcGePoint3d,
|
|
30011
|
-
|
|
30012
|
-
|
|
30021
|
+
Gn as AcGePolyline2d,
|
|
30022
|
+
jn as AcGeQuaternion,
|
|
30013
30023
|
Al as AcGeShape2d,
|
|
30014
30024
|
vn as AcGeSpline3d,
|
|
30015
30025
|
bl as AcGeTol,
|
|
@@ -30017,7 +30027,7 @@ export {
|
|
|
30017
30027
|
K as AcGeVector3d,
|
|
30018
30028
|
Cl as AcGiArrowType,
|
|
30019
30029
|
zl as AcGiDefaultLightingType,
|
|
30020
|
-
|
|
30030
|
+
bn as AcGiLineWeight,
|
|
30021
30031
|
Ee as AcGiMTextAttachmentPoint,
|
|
30022
30032
|
$r as AcGiMTextFlowDirection,
|
|
30023
30033
|
Bl as AcGiOrthographicType,
|
|
@@ -30031,7 +30041,7 @@ export {
|
|
|
30031
30041
|
xl as DEFAULT_TOL,
|
|
30032
30042
|
dl as DEG2RAD,
|
|
30033
30043
|
ku as DefaultLoadingManager,
|
|
30034
|
-
|
|
30044
|
+
zn as FLOAT_TOL,
|
|
30035
30045
|
Y0 as ORIGIN_POINT_2D,
|
|
30036
30046
|
vl as ORIGIN_POINT_3D,
|
|
30037
30047
|
pl as RAD2DEG,
|
|
@@ -30068,7 +30078,7 @@ export {
|
|
|
30068
30078
|
Du as isBetween,
|
|
30069
30079
|
Ku as isBetweenAngle,
|
|
30070
30080
|
vu as isEmpty,
|
|
30071
|
-
|
|
30081
|
+
Ms as isEqual,
|
|
30072
30082
|
ap as isImperialUnits,
|
|
30073
30083
|
ip as isMetricUnits,
|
|
30074
30084
|
wl as isPointInPolygon,
|