@mlightcad/data-model 1.7.1 → 1.7.3
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/LICENSE +21 -21
- package/README.md +224 -224
- package/dist/data-model.cjs +3 -3
- package/dist/data-model.js +973 -871
- package/lib/converter/AcDbDxfConverter.d.ts.map +1 -1
- package/lib/converter/AcDbDxfConverter.js +5 -1
- package/lib/converter/AcDbDxfConverter.js.map +1 -1
- package/lib/database/AcDbDatabase.d.ts +34 -23
- package/lib/database/AcDbDatabase.d.ts.map +1 -1
- package/lib/database/AcDbDatabase.js +127 -43
- package/lib/database/AcDbDatabase.js.map +1 -1
- package/lib/database/AcDbSysVarManager.d.ts +11 -1
- package/lib/database/AcDbSysVarManager.d.ts.map +1 -1
- package/lib/database/AcDbSysVarManager.js +60 -17
- package/lib/database/AcDbSysVarManager.js.map +1 -1
- package/package.json +4 -4
package/dist/data-model.js
CHANGED
|
@@ -16,7 +16,7 @@ function _u(n, t) {
|
|
|
16
16
|
return Object.freeze(Object.defineProperty(n, Symbol.toStringTag, { value: "Module" }));
|
|
17
17
|
}
|
|
18
18
|
var pt = /* @__PURE__ */ ((n) => (n[n.ByColor = 1] = "ByColor", n[n.ByACI = 2] = "ByACI", n[n.ByLayer = 3] = "ByLayer", n[n.ByBlock = 4] = "ByBlock", n[n.None = 0] = "None", n))(pt || {});
|
|
19
|
-
const
|
|
19
|
+
const Oo = {
|
|
20
20
|
aliceblue: 15792383,
|
|
21
21
|
antiquewhite: 16444375,
|
|
22
22
|
aqua: 65535,
|
|
@@ -161,7 +161,7 @@ const Co = {
|
|
|
161
161
|
whitesmoke: 16119285,
|
|
162
162
|
yellow: 16776960,
|
|
163
163
|
yellowgreen: 10145074
|
|
164
|
-
},
|
|
164
|
+
}, Li = [
|
|
165
165
|
0,
|
|
166
166
|
16711680,
|
|
167
167
|
16776960,
|
|
@@ -441,7 +441,7 @@ let on = class {
|
|
|
441
441
|
* ```
|
|
442
442
|
*/
|
|
443
443
|
static getColorByIndex(t) {
|
|
444
|
-
return
|
|
444
|
+
return Li[t];
|
|
445
445
|
}
|
|
446
446
|
/**
|
|
447
447
|
* Finds the AutoCAD color index associated with a given RGB value.
|
|
@@ -451,9 +451,9 @@ let on = class {
|
|
|
451
451
|
* @returns {number | undefined} The color index if found, undefined otherwise.
|
|
452
452
|
*/
|
|
453
453
|
static getIndexByColor(t) {
|
|
454
|
-
const e =
|
|
454
|
+
const e = Li.length - 1;
|
|
455
455
|
for (let s = 1; s < e; ++s)
|
|
456
|
-
if (
|
|
456
|
+
if (Li[s] === t)
|
|
457
457
|
return s;
|
|
458
458
|
}
|
|
459
459
|
/**
|
|
@@ -476,7 +476,7 @@ let on = class {
|
|
|
476
476
|
* ```
|
|
477
477
|
*/
|
|
478
478
|
static getColorByName(t) {
|
|
479
|
-
return
|
|
479
|
+
return Oo[t.toLowerCase()];
|
|
480
480
|
}
|
|
481
481
|
/**
|
|
482
482
|
* Finds the color name associated with a given RGB value.
|
|
@@ -485,7 +485,7 @@ let on = class {
|
|
|
485
485
|
* @returns {string | undefined} The color name if found, undefined otherwise.
|
|
486
486
|
*/
|
|
487
487
|
static getNameByColor(t) {
|
|
488
|
-
for (const [e, s] of Object.entries(
|
|
488
|
+
for (const [e, s] of Object.entries(Oo))
|
|
489
489
|
if (s === t)
|
|
490
490
|
return e;
|
|
491
491
|
}
|
|
@@ -499,7 +499,7 @@ let on = class {
|
|
|
499
499
|
const e = this.getColorByIndex(t);
|
|
500
500
|
return this.getNameByColor(e);
|
|
501
501
|
}
|
|
502
|
-
},
|
|
502
|
+
}, xe = class Br {
|
|
503
503
|
/**
|
|
504
504
|
* Constructs a new AcCmColor.
|
|
505
505
|
* @param method Initial color method (defaults to `ByColor`)
|
|
@@ -1079,10 +1079,10 @@ let oe = class {
|
|
|
1079
1079
|
s.call(null, t, ...e);
|
|
1080
1080
|
}
|
|
1081
1081
|
};
|
|
1082
|
-
function
|
|
1082
|
+
function Ws(n) {
|
|
1083
1083
|
return n === null || typeof n != "object" ? n : Array.isArray(n) ? [...n] : { ...n };
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Bo(n) {
|
|
1086
1086
|
if (n === null || typeof n != "object")
|
|
1087
1087
|
return n;
|
|
1088
1088
|
if (n instanceof Date)
|
|
@@ -1090,13 +1090,13 @@ function Oo(n) {
|
|
|
1090
1090
|
if (n instanceof RegExp)
|
|
1091
1091
|
return new RegExp(n.source, n.flags);
|
|
1092
1092
|
if (Array.isArray(n))
|
|
1093
|
-
return n.map(
|
|
1093
|
+
return n.map(Bo);
|
|
1094
1094
|
const t = {};
|
|
1095
1095
|
for (const e in n)
|
|
1096
|
-
Object.prototype.hasOwnProperty.call(n, e) && (t[e] =
|
|
1096
|
+
Object.prototype.hasOwnProperty.call(n, e) && (t[e] = Bo(n[e]));
|
|
1097
1097
|
return t;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function zs(n, ...t) {
|
|
1100
1100
|
for (const e of t)
|
|
1101
1101
|
if (e)
|
|
1102
1102
|
for (const s in e)
|
|
@@ -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 Ts(n, t) {
|
|
1113
1113
|
if (n === t)
|
|
1114
1114
|
return !0;
|
|
1115
1115
|
if (n == null || t == null)
|
|
@@ -1124,7 +1124,7 @@ function Ms(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 (!Ts(n[a], t[a]))
|
|
1128
1128
|
return !1;
|
|
1129
1129
|
return !0;
|
|
1130
1130
|
}
|
|
@@ -1135,7 +1135,7 @@ function Ms(n, t) {
|
|
|
1135
1135
|
if (!Object.prototype.hasOwnProperty.call(
|
|
1136
1136
|
t,
|
|
1137
1137
|
a
|
|
1138
|
-
) || !
|
|
1138
|
+
) || !Ts(
|
|
1139
1139
|
n[a],
|
|
1140
1140
|
t[a]
|
|
1141
1141
|
))
|
|
@@ -1296,13 +1296,13 @@ var al = il.exports;
|
|
|
1296
1296
|
const wu = /* @__PURE__ */ xu(al), Su = /* @__PURE__ */ _u({
|
|
1297
1297
|
__proto__: null,
|
|
1298
1298
|
default: wu
|
|
1299
|
-
}, [al]), j0 = !0,
|
|
1300
|
-
|
|
1299
|
+
}, [al]), j0 = !0, $s = Su;
|
|
1300
|
+
$s.setLevel("debug");
|
|
1301
1301
|
const G0 = (n) => {
|
|
1302
1302
|
try {
|
|
1303
|
-
|
|
1303
|
+
$s.setLevel(n);
|
|
1304
1304
|
} catch (t) {
|
|
1305
|
-
|
|
1305
|
+
$s.setLevel("error"), $s.error(t);
|
|
1306
1306
|
}
|
|
1307
1307
|
};
|
|
1308
1308
|
let Iu = class ol {
|
|
@@ -1318,7 +1318,7 @@ let Iu = class ol {
|
|
|
1318
1318
|
modelChanged: new oe()
|
|
1319
1319
|
}, this._changing = !1, this._previousAttributes = {}, this._pending = !1;
|
|
1320
1320
|
const s = t || {};
|
|
1321
|
-
e &&
|
|
1321
|
+
e && zs(s, e), this.attributes = s, this.changed = {};
|
|
1322
1322
|
}
|
|
1323
1323
|
/**
|
|
1324
1324
|
* Gets the value of an attribute.
|
|
@@ -1354,10 +1354,10 @@ let Iu = class ol {
|
|
|
1354
1354
|
let a;
|
|
1355
1355
|
typeof t == "object" ? (a = t, s = e) : (a = {}, a[t] = e), s || (s = {});
|
|
1356
1356
|
const h = s.unset, u = s.silent, m = [], b = this._changing;
|
|
1357
|
-
this._changing = !0, b || (this._previousAttributes =
|
|
1357
|
+
this._changing = !0, b || (this._previousAttributes = Ws(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], Ts(f[E], e) || m.push(E), Ts(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++)
|
|
@@ -1395,11 +1395,11 @@ let Iu = class ol {
|
|
|
1395
1395
|
* the model, determining if there *would be* a change.
|
|
1396
1396
|
*/
|
|
1397
1397
|
changedAttributes(t) {
|
|
1398
|
-
if (!t) return this.hasChanged() ?
|
|
1398
|
+
if (!t) return this.hasChanged() ? Ws(this.changed) : {};
|
|
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
|
+
Ts(e[a], h) || (s[a] = h);
|
|
1403
1403
|
}
|
|
1404
1404
|
return s;
|
|
1405
1405
|
}
|
|
@@ -1413,13 +1413,13 @@ let Iu = class ol {
|
|
|
1413
1413
|
* Get all of the attributes of the model at the time of the previous `"change"` event.
|
|
1414
1414
|
*/
|
|
1415
1415
|
previousAttributes() {
|
|
1416
|
-
return
|
|
1416
|
+
return Ws(this._previousAttributes);
|
|
1417
1417
|
}
|
|
1418
1418
|
/**
|
|
1419
1419
|
* Create a new model with identical attributes to this one.
|
|
1420
1420
|
*/
|
|
1421
1421
|
clone() {
|
|
1422
|
-
const t =
|
|
1422
|
+
const t = Ws(this.attributes);
|
|
1423
1423
|
return new ol(t);
|
|
1424
1424
|
}
|
|
1425
1425
|
}, ll = class As {
|
|
@@ -1510,8 +1510,8 @@ class W0 {
|
|
|
1510
1510
|
return `${parseFloat(m.toFixed(a))} ${h[u]}`;
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
var
|
|
1514
|
-
let
|
|
1513
|
+
var Ce = /* @__PURE__ */ ((n) => (n[n.ByLayer = 0] = "ByLayer", n[n.ByBlock = 1] = "ByBlock", n[n.ByAlpha = 2] = "ByAlpha", n[n.ErrorValue = 3] = "ErrorValue", n))(Ce || {});
|
|
1514
|
+
let Pa = class gr {
|
|
1515
1515
|
/**
|
|
1516
1516
|
* Creates a new transparency object.
|
|
1517
1517
|
*
|
|
@@ -1520,7 +1520,7 @@ let Ia = class gr {
|
|
|
1520
1520
|
* Must be between 0 and 255.
|
|
1521
1521
|
*/
|
|
1522
1522
|
constructor(t) {
|
|
1523
|
-
t !== void 0 ? (this._method =
|
|
1523
|
+
t !== void 0 ? (this._method = Ce.ByAlpha, this._alpha = gr.clampAlpha(t)) : (this._method = Ce.ByLayer, this._alpha = 255);
|
|
1524
1524
|
}
|
|
1525
1525
|
/** Gets the current transparency method */
|
|
1526
1526
|
get method() {
|
|
@@ -1548,7 +1548,7 @@ let Ia = class gr {
|
|
|
1548
1548
|
* @param alpha 0–255 alpha, clamped internally if out of range
|
|
1549
1549
|
*/
|
|
1550
1550
|
set alpha(t) {
|
|
1551
|
-
this._alpha = gr.clampAlpha(t), this._method =
|
|
1551
|
+
this._alpha = gr.clampAlpha(t), this._method = Ce.ByAlpha;
|
|
1552
1552
|
}
|
|
1553
1553
|
/**
|
|
1554
1554
|
* Gets the AutoCAD-style transparency percentage.
|
|
@@ -1567,7 +1567,7 @@ let Ia = class gr {
|
|
|
1567
1567
|
* @returns Transparency percentage (0–100), or undefined
|
|
1568
1568
|
*/
|
|
1569
1569
|
get percentage() {
|
|
1570
|
-
if (this._method ===
|
|
1570
|
+
if (this._method === Ce.ByAlpha)
|
|
1571
1571
|
return Math.round((1 - this._alpha / 255) * 100);
|
|
1572
1572
|
}
|
|
1573
1573
|
/**
|
|
@@ -1609,19 +1609,19 @@ let Ia = class gr {
|
|
|
1609
1609
|
* True if the method is `ByAlpha`.
|
|
1610
1610
|
*/
|
|
1611
1611
|
get isByAlpha() {
|
|
1612
|
-
return this._method ===
|
|
1612
|
+
return this._method === Ce.ByAlpha;
|
|
1613
1613
|
}
|
|
1614
1614
|
/**
|
|
1615
1615
|
* True if the method is `ByBlock`.
|
|
1616
1616
|
*/
|
|
1617
1617
|
get isByBlock() {
|
|
1618
|
-
return this._method ===
|
|
1618
|
+
return this._method === Ce.ByBlock;
|
|
1619
1619
|
}
|
|
1620
1620
|
/**
|
|
1621
1621
|
* True if the method is `ByLayer`.
|
|
1622
1622
|
*/
|
|
1623
1623
|
get isByLayer() {
|
|
1624
|
-
return this._method ===
|
|
1624
|
+
return this._method === Ce.ByLayer;
|
|
1625
1625
|
}
|
|
1626
1626
|
/**
|
|
1627
1627
|
* True if transparency is exactly clear (alpha==0 and ByAlpha).
|
|
@@ -1639,7 +1639,7 @@ let Ia = class gr {
|
|
|
1639
1639
|
* True if current state is invalid (ErrorValue).
|
|
1640
1640
|
*/
|
|
1641
1641
|
get isInvalid() {
|
|
1642
|
-
return this._method ===
|
|
1642
|
+
return this._method === Ce.ErrorValue;
|
|
1643
1643
|
}
|
|
1644
1644
|
/**
|
|
1645
1645
|
* Convert this transparency to an integer suitable for storage.
|
|
@@ -1730,17 +1730,17 @@ let Ia = class gr {
|
|
|
1730
1730
|
const e = t.trim();
|
|
1731
1731
|
if (/^bylayer$/i.test(e)) {
|
|
1732
1732
|
const h = new gr();
|
|
1733
|
-
return h._method =
|
|
1733
|
+
return h._method = Ce.ByLayer, h;
|
|
1734
1734
|
}
|
|
1735
1735
|
if (/^byblock$/i.test(e)) {
|
|
1736
1736
|
const h = new gr();
|
|
1737
|
-
return h._method =
|
|
1737
|
+
return h._method = Ce.ByBlock, h;
|
|
1738
1738
|
}
|
|
1739
1739
|
const s = Number(e);
|
|
1740
1740
|
if (Number.isInteger(s) && s >= 0 && s <= 255)
|
|
1741
1741
|
return new gr(s);
|
|
1742
1742
|
const a = new gr();
|
|
1743
|
-
return a._method =
|
|
1743
|
+
return a._method = Ce.ErrorValue, a;
|
|
1744
1744
|
}
|
|
1745
1745
|
/**
|
|
1746
1746
|
* Deserialize an integer back into a transparency object.
|
|
@@ -1748,7 +1748,7 @@ let Ia = class gr {
|
|
|
1748
1748
|
* @param value 32-bit stored transparency representation
|
|
1749
1749
|
*/
|
|
1750
1750
|
static deserialize(t) {
|
|
1751
|
-
const e = t >>> 24 & 255, s = t & 255, a = Object.values(
|
|
1751
|
+
const e = t >>> 24 & 255, s = t & 255, a = Object.values(Ce)[e] ?? Ce.ErrorValue, h = new gr();
|
|
1752
1752
|
return h._method = a, h._alpha = gr.clampAlpha(s), h;
|
|
1753
1753
|
}
|
|
1754
1754
|
};
|
|
@@ -2151,7 +2151,7 @@ class hl {
|
|
|
2151
2151
|
}
|
|
2152
2152
|
}
|
|
2153
2153
|
var ul = /* @__PURE__ */ ((n) => (n[n.DecimalDegrees = 0] = "DecimalDegrees", n[n.DegreesMinutesSeconds = 1] = "DegreesMinutesSeconds", n[n.Gradians = 2] = "Gradians", n[n.Radians = 3] = "Radians", n[n.SurveyorsUnits = 4] = "SurveyorsUnits", n))(ul || {});
|
|
2154
|
-
class
|
|
2154
|
+
class Rs {
|
|
2155
2155
|
/**
|
|
2156
2156
|
* Gets the singleton instance of the rendering cache.
|
|
2157
2157
|
*
|
|
@@ -2163,7 +2163,7 @@ class zs {
|
|
|
2163
2163
|
* ```
|
|
2164
2164
|
*/
|
|
2165
2165
|
static get instance() {
|
|
2166
|
-
return this._instance || (this._instance = new
|
|
2166
|
+
return this._instance || (this._instance = new Rs()), this._instance;
|
|
2167
2167
|
}
|
|
2168
2168
|
/**
|
|
2169
2169
|
* Creates a new AcDbRenderingCache instance.
|
|
@@ -2293,7 +2293,7 @@ class zs {
|
|
|
2293
2293
|
const k = e.newIterator();
|
|
2294
2294
|
let L = !0;
|
|
2295
2295
|
for (const O of k)
|
|
2296
|
-
if (O.color.isByBlock && s ? (
|
|
2296
|
+
if (O.color.isByBlock && s ? (zo.copy(O.color), O.color.setRGBValue(s), this.addEntity(O, b, t), O.color.copy(zo)) : this.addEntity(O, b, t), L && b.length > 0) {
|
|
2297
2297
|
const V = b[0];
|
|
2298
2298
|
t.basePoint = V.basePoint, L = !1;
|
|
2299
2299
|
}
|
|
@@ -2311,7 +2311,7 @@ class zs {
|
|
|
2311
2311
|
t.objectId = e.objectId, t.ownerId = e.ownerId, t.layerName = e.layer, t.visible = e.visibility;
|
|
2312
2312
|
}
|
|
2313
2313
|
}
|
|
2314
|
-
const
|
|
2314
|
+
const zo = /* @__PURE__ */ new xe();
|
|
2315
2315
|
var cl = /* @__PURE__ */ ((n) => (n[n.UTF8 = 0] = "UTF8", n[n.US_ASCII = 1] = "US_ASCII", n[n.ISO_8859_1 = 2] = "ISO_8859_1", n[n.ISO_8859_2 = 3] = "ISO_8859_2", n[n.ISO_8859_3 = 4] = "ISO_8859_3", n[n.ISO_8859_4 = 5] = "ISO_8859_4", n[n.ISO_8859_5 = 6] = "ISO_8859_5", n[n.ISO_8859_6 = 7] = "ISO_8859_6", n[n.ISO_8859_7 = 8] = "ISO_8859_7", n[n.ISO_8859_8 = 9] = "ISO_8859_8", n[n.ISO_8859_9 = 10] = "ISO_8859_9", n[n.CP437 = 11] = "CP437", n[n.CP850 = 12] = "CP850", n[n.CP852 = 13] = "CP852", n[n.CP855 = 14] = "CP855", n[n.CP857 = 15] = "CP857", n[n.CP860 = 16] = "CP860", n[n.CP861 = 17] = "CP861", n[n.CP863 = 18] = "CP863", n[n.CP864 = 19] = "CP864", n[n.CP865 = 20] = "CP865", n[n.CP869 = 21] = "CP869", n[n.CP932 = 22] = "CP932", n[n.MACINTOSH = 23] = "MACINTOSH", n[n.BIG5 = 24] = "BIG5", n[n.CP949 = 25] = "CP949", n[n.JOHAB = 26] = "JOHAB", n[n.CP866 = 27] = "CP866", n[n.ANSI_1250 = 28] = "ANSI_1250", n[n.ANSI_1251 = 29] = "ANSI_1251", n[n.ANSI_1252 = 30] = "ANSI_1252", n[n.GB2312 = 31] = "GB2312", n[n.ANSI_1253 = 32] = "ANSI_1253", n[n.ANSI_1254 = 33] = "ANSI_1254", n[n.ANSI_1255 = 34] = "ANSI_1255", n[n.ANSI_1256 = 35] = "ANSI_1256", n[n.ANSI_1257 = 36] = "ANSI_1257", n[n.ANSI_874 = 37] = "ANSI_874", n[n.ANSI_932 = 38] = "ANSI_932", n[n.ANSI_936 = 39] = "ANSI_936", n[n.ANSI_949 = 40] = "ANSI_949", n[n.ANSI_950 = 41] = "ANSI_950", n[n.ANSI_1361 = 42] = "ANSI_1361", n[n.UTF16 = 43] = "UTF16", n[n.ANSI_1258 = 44] = "ANSI_1258", n[n.UNDEFINED = 255] = "UNDEFINED", n))(cl || {});
|
|
2316
2316
|
const Mu = [
|
|
2317
2317
|
"utf-8",
|
|
@@ -2394,7 +2394,7 @@ const Mu = [
|
|
|
2394
2394
|
"utf-16le",
|
|
2395
2395
|
"windows-1258"
|
|
2396
2396
|
// Vietnamese
|
|
2397
|
-
], Tu = (n) => Mu[n],
|
|
2397
|
+
], Tu = (n) => Mu[n], Di = "Continuous", Ci = "ByLayer", Nu = "ByBlock", be = [
|
|
2398
2398
|
"00",
|
|
2399
2399
|
"01",
|
|
2400
2400
|
"02",
|
|
@@ -2652,7 +2652,7 @@ const Mu = [
|
|
|
2652
2652
|
"fe",
|
|
2653
2653
|
"ff"
|
|
2654
2654
|
];
|
|
2655
|
-
let
|
|
2655
|
+
let Ro = 1234567;
|
|
2656
2656
|
const dl = Math.PI / 180, pl = 180 / Math.PI;
|
|
2657
2657
|
function Lu() {
|
|
2658
2658
|
const n = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, s = Math.random() * 4294967295 | 0;
|
|
@@ -2695,8 +2695,8 @@ function ju(n) {
|
|
|
2695
2695
|
return n * (0.5 - Math.random());
|
|
2696
2696
|
}
|
|
2697
2697
|
function Gu(n) {
|
|
2698
|
-
n !== void 0 && (
|
|
2699
|
-
let t =
|
|
2698
|
+
n !== void 0 && (Ro = n);
|
|
2699
|
+
let t = Ro += 1831565813;
|
|
2700
2700
|
return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
2701
2701
|
}
|
|
2702
2702
|
function Wu(n) {
|
|
@@ -2714,7 +2714,7 @@ function Xu(n) {
|
|
|
2714
2714
|
function Yu(n) {
|
|
2715
2715
|
return Math.pow(2, Math.floor(Math.log(n) / Math.LN2));
|
|
2716
2716
|
}
|
|
2717
|
-
function
|
|
2717
|
+
function Zs(n) {
|
|
2718
2718
|
const t = Math.PI * 2;
|
|
2719
2719
|
return (n % t + t) % t;
|
|
2720
2720
|
}
|
|
@@ -2722,7 +2722,7 @@ function Du(n, t, e) {
|
|
|
2722
2722
|
return n > t && n < e || n > e && n < t;
|
|
2723
2723
|
}
|
|
2724
2724
|
function Ku(n, t, e, s = !1) {
|
|
2725
|
-
return n =
|
|
2725
|
+
return n = Zs(n), t = Zs(t), e = Zs(e), s ? t > e ? n <= t && n >= e : n <= t || n >= e : t < e ? n >= t && n <= e : n >= t || n <= e;
|
|
2726
2726
|
}
|
|
2727
2727
|
function fl(n) {
|
|
2728
2728
|
return n = Math.abs(n), n < 1 ? 0 : Math.ceil(Math.log10(Math.abs(n) + 1));
|
|
@@ -2753,12 +2753,12 @@ const Et = {
|
|
|
2753
2753
|
isPowerOfTwo: qu,
|
|
2754
2754
|
ceilPowerOfTwo: Xu,
|
|
2755
2755
|
floorPowerOfTwo: Yu,
|
|
2756
|
-
normalizeAngle:
|
|
2756
|
+
normalizeAngle: Zs,
|
|
2757
2757
|
isBetween: Du,
|
|
2758
2758
|
isBetweenAngle: Ku,
|
|
2759
2759
|
intPartLength: fl,
|
|
2760
2760
|
relativeEps: $u
|
|
2761
|
-
},
|
|
2761
|
+
}, Ki = class _l {
|
|
2762
2762
|
/**
|
|
2763
2763
|
* Construct one vector by two numbers
|
|
2764
2764
|
*/
|
|
@@ -3254,9 +3254,9 @@ const Et = {
|
|
|
3254
3254
|
yield this.x, yield this.y;
|
|
3255
3255
|
}
|
|
3256
3256
|
};
|
|
3257
|
-
|
|
3258
|
-
let te =
|
|
3259
|
-
const
|
|
3257
|
+
Ki.EMPTY = Object.freeze(new Ki(0, 0));
|
|
3258
|
+
let te = Ki;
|
|
3259
|
+
const $i = class yl {
|
|
3260
3260
|
/**
|
|
3261
3261
|
* Create a 3x3 matrix with the given arguments in row-major order. If no arguments are provided,
|
|
3262
3262
|
* the constructor initializes the Matrix3 to the 3x3 identity matrix.
|
|
@@ -3440,7 +3440,7 @@ const Ki = class yl {
|
|
|
3440
3440
|
* @returns Return this matrix
|
|
3441
3441
|
*/
|
|
3442
3442
|
scale(t, e) {
|
|
3443
|
-
return this.premultiply(
|
|
3443
|
+
return this.premultiply(Oi.makeScale(t, e)), this;
|
|
3444
3444
|
}
|
|
3445
3445
|
/**
|
|
3446
3446
|
* Rotate this matrix by the given angle (in radians).
|
|
@@ -3448,7 +3448,7 @@ const Ki = class yl {
|
|
|
3448
3448
|
* @returns Return this matrix
|
|
3449
3449
|
*/
|
|
3450
3450
|
rotate(t) {
|
|
3451
|
-
return this.premultiply(
|
|
3451
|
+
return this.premultiply(Oi.makeRotation(-t)), this;
|
|
3452
3452
|
}
|
|
3453
3453
|
/**
|
|
3454
3454
|
* Translate this matrix by the given scalar values.
|
|
@@ -3457,7 +3457,7 @@ const Ki = class yl {
|
|
|
3457
3457
|
* @returns Return this matrix
|
|
3458
3458
|
*/
|
|
3459
3459
|
translate(t, e) {
|
|
3460
|
-
return this.premultiply(
|
|
3460
|
+
return this.premultiply(Oi.makeTranslation(t, e)), this;
|
|
3461
3461
|
}
|
|
3462
3462
|
/**
|
|
3463
3463
|
* Set this matrix as a 2D translation transform:
|
|
@@ -3526,9 +3526,9 @@ const Ki = class yl {
|
|
|
3526
3526
|
return new yl().fromArray(this.elements);
|
|
3527
3527
|
}
|
|
3528
3528
|
};
|
|
3529
|
-
|
|
3530
|
-
let
|
|
3531
|
-
const
|
|
3529
|
+
$i.IDENTITY = Object.freeze(new $i());
|
|
3530
|
+
let Ea = $i;
|
|
3531
|
+
const Oi = /* @__PURE__ */ new Ea(), zn = 1e-6, Qt = 2 * Math.PI, Y0 = {
|
|
3532
3532
|
x: 0,
|
|
3533
3533
|
y: 0
|
|
3534
3534
|
}, vl = {
|
|
@@ -3620,7 +3620,7 @@ function wl(n, t, e = !1) {
|
|
|
3620
3620
|
function Zu(n, t) {
|
|
3621
3621
|
if (n.length === 0 || t.length === 0)
|
|
3622
3622
|
return !1;
|
|
3623
|
-
const e = new
|
|
3623
|
+
const e = new ke().setFromPoints(n), s = new ke().setFromPoints(t);
|
|
3624
3624
|
if (!e.intersectsBox(s))
|
|
3625
3625
|
return !1;
|
|
3626
3626
|
for (let a = 0; a < n.length; ) {
|
|
@@ -3680,13 +3680,13 @@ function ec(n, t) {
|
|
|
3680
3680
|
u.push(e - s + 1);
|
|
3681
3681
|
return u;
|
|
3682
3682
|
}
|
|
3683
|
-
function
|
|
3683
|
+
function Zi(n, t, e, s) {
|
|
3684
3684
|
if (t === 0)
|
|
3685
3685
|
return e >= s[n] && e < s[n + 1] ? 1 : 0;
|
|
3686
3686
|
const a = s[n + t] - s[n], h = s[n + t + 1] - s[n + 1], u = a > 1e-10 ? (e - s[n]) / a : 0, m = h > 1e-10 ? (s[n + t + 1] - e) / h : 0;
|
|
3687
|
-
return u *
|
|
3687
|
+
return u * Zi(n, t - 1, e, s) + m * Zi(n + 1, t - 1, e, s);
|
|
3688
3688
|
}
|
|
3689
|
-
function
|
|
3689
|
+
function Qs(n, t, e, s, a) {
|
|
3690
3690
|
const h = s.length - 1, u = t;
|
|
3691
3691
|
if (n = Math.max(e[u], Math.min(e[h + 1], n)), Math.abs(n - e[h + 1]) < 1e-8)
|
|
3692
3692
|
return [...s[h]];
|
|
@@ -3695,7 +3695,7 @@ function Zs(n, t, e, s, a) {
|
|
|
3695
3695
|
const m = [0, 0, 0];
|
|
3696
3696
|
let b = 0;
|
|
3697
3697
|
for (let f = 0; f <= h; f++) {
|
|
3698
|
-
const w =
|
|
3698
|
+
const w = Zi(f, u, n, e), x = a[f] * w;
|
|
3699
3699
|
m[0] += s[f][0] * x, m[1] += s[f][1] * x, m[2] += s[f][2] * x, b += x;
|
|
3700
3700
|
}
|
|
3701
3701
|
if (b < 1e-10) {
|
|
@@ -3711,7 +3711,7 @@ function rc(n, t, e, s) {
|
|
|
3711
3711
|
const a = n, h = t[a], u = t[t.length - a - 1];
|
|
3712
3712
|
let m = 0;
|
|
3713
3713
|
const b = 1e3, f = (u - h) / b;
|
|
3714
|
-
let w =
|
|
3714
|
+
let w = Qs(
|
|
3715
3715
|
h,
|
|
3716
3716
|
n,
|
|
3717
3717
|
t,
|
|
@@ -3719,10 +3719,10 @@ function rc(n, t, e, s) {
|
|
|
3719
3719
|
s
|
|
3720
3720
|
);
|
|
3721
3721
|
for (let O = 1; O <= b; O++) {
|
|
3722
|
-
const V = h + O * f, F =
|
|
3722
|
+
const V = h + O * f, F = Qs(V, n, t, e, s), at = F[0] - w[0], ft = F[1] - w[1], st = F[2] - w[2];
|
|
3723
3723
|
m += Math.sqrt(at * at + ft * ft + st * st), w = F;
|
|
3724
3724
|
}
|
|
3725
|
-
const x =
|
|
3725
|
+
const x = Qs(
|
|
3726
3726
|
u,
|
|
3727
3727
|
n,
|
|
3728
3728
|
t,
|
|
@@ -4125,7 +4125,7 @@ class jn {
|
|
|
4125
4125
|
yield this._x, yield this._y, yield this._z, yield this._w;
|
|
4126
4126
|
}
|
|
4127
4127
|
}
|
|
4128
|
-
const
|
|
4128
|
+
const Ee = class Sl {
|
|
4129
4129
|
/**
|
|
4130
4130
|
* Vector may be constructed by three points, or by three float numbers,
|
|
4131
4131
|
* or by array of three numbers
|
|
@@ -4342,7 +4342,7 @@ const Pe = class Sl {
|
|
|
4342
4342
|
* @returns Return this vector
|
|
4343
4343
|
*/
|
|
4344
4344
|
applyEuler(t) {
|
|
4345
|
-
return this.applyQuaternion(
|
|
4345
|
+
return this.applyQuaternion(Fo.setFromEuler(t));
|
|
4346
4346
|
}
|
|
4347
4347
|
/**
|
|
4348
4348
|
* Apply a rotation specified by an axis and an angle to this vector.
|
|
@@ -4351,7 +4351,7 @@ const Pe = class Sl {
|
|
|
4351
4351
|
* @returns Return this vector
|
|
4352
4352
|
*/
|
|
4353
4353
|
applyAxisAngle(t, e) {
|
|
4354
|
-
return this.applyQuaternion(
|
|
4354
|
+
return this.applyQuaternion(Fo.setFromAxisAngle(t, e));
|
|
4355
4355
|
}
|
|
4356
4356
|
/**
|
|
4357
4357
|
* Multipliy this vector by m
|
|
@@ -4618,7 +4618,7 @@ const Pe = class Sl {
|
|
|
4618
4618
|
* @returns Return this vector
|
|
4619
4619
|
*/
|
|
4620
4620
|
projectOnPlane(t) {
|
|
4621
|
-
return
|
|
4621
|
+
return Bi.copy(this).projectOnVector(t), this.sub(Bi);
|
|
4622
4622
|
}
|
|
4623
4623
|
/**
|
|
4624
4624
|
* Reflect this vector off of plane orthogonal to normal. Normal is assumed to have unit length.
|
|
@@ -4626,7 +4626,7 @@ const Pe = class Sl {
|
|
|
4626
4626
|
* @returns Return this vector
|
|
4627
4627
|
*/
|
|
4628
4628
|
reflect(t) {
|
|
4629
|
-
return this.sub(
|
|
4629
|
+
return this.sub(Bi.copy(t).multiplyScalar(2 * this.dot(t)));
|
|
4630
4630
|
}
|
|
4631
4631
|
/**
|
|
4632
4632
|
* Return the angle between this vector and vector v in radians.
|
|
@@ -4767,9 +4767,9 @@ const Pe = class Sl {
|
|
|
4767
4767
|
yield this.x, yield this.y, yield this.z;
|
|
4768
4768
|
}
|
|
4769
4769
|
};
|
|
4770
|
-
|
|
4771
|
-
let K =
|
|
4772
|
-
const
|
|
4770
|
+
Ee.ORIGIN = Object.freeze(new Ee(0, 0, 0)), Ee.X_AXIS = Object.freeze(new Ee(1, 0, 0)), Ee.NEGATIVE_X_AXIS = Object.freeze(new Ee(-1, 0, 0)), Ee.Y_AXIS = Object.freeze(new Ee(0, 1, 0)), Ee.NEGATIVE_Y_AXIS = Object.freeze(new Ee(0, -1, 0)), Ee.Z_AXIS = Object.freeze(new Ee(0, 0, 1)), Ee.NEGATIVE_Z_AXIS = Object.freeze(new Ee(0, 0, -1));
|
|
4771
|
+
let K = Ee;
|
|
4772
|
+
const Bi = /* @__PURE__ */ new K(), Fo = /* @__PURE__ */ new jn(), Qi = 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.
|
|
@@ -5093,7 +5093,7 @@ const Oi = /* @__PURE__ */ new K(), Ro = /* @__PURE__ */ new jn(), Zi = class Il
|
|
|
5093
5093
|
*/
|
|
5094
5094
|
lookAt(t, e, s) {
|
|
5095
5095
|
const a = this.elements;
|
|
5096
|
-
return
|
|
5096
|
+
return je.subVectors(t, e), je.lengthSq() === 0 && (je.z = 1), je.normalize(), Dr.crossVectors(s, je), Dr.lengthSq() === 0 && (Math.abs(s.z) === 1 ? je.x += 1e-4 : je.z += 1e-4, je.normalize(), Dr.crossVectors(s, je)), Dr.normalize(), Hs.crossVectors(je, Dr), a[0] = Dr.x, a[4] = Hs.x, a[8] = je.x, a[1] = Dr.y, a[5] = Hs.y, a[9] = je.y, a[2] = Dr.z, a[6] = Hs.z, a[10] = je.z, this;
|
|
5097
5097
|
}
|
|
5098
5098
|
/**
|
|
5099
5099
|
* Post-multiply this matrix by m.
|
|
@@ -5118,8 +5118,8 @@ const Oi = /* @__PURE__ */ new K(), Ro = /* @__PURE__ */ new jn(), Zi = class Il
|
|
|
5118
5118
|
* @returns Return this matrix
|
|
5119
5119
|
*/
|
|
5120
5120
|
multiplyMatrices(t, e) {
|
|
5121
|
-
const s = t.elements, a = e.elements, h = this.elements, u = s[0], m = s[4], b = s[8], f = s[12], w = s[1], x = s[5], E = s[9], k = s[13], L = s[2], O = s[6], V = s[10], F = s[14], at = s[3], ft = s[7], st = s[11], q = s[15], ct = a[0], it = a[4], Wt = a[8], Kt = a[12], Xt = a[1], wt = a[5], Bt = a[9], fe = a[13], _e = a[2],
|
|
5122
|
-
return h[0] = u * ct + m * Xt + b * _e + f * Q, h[4] = u * it + m * wt + b *
|
|
5121
|
+
const s = t.elements, a = e.elements, h = this.elements, u = s[0], m = s[4], b = s[8], f = s[12], w = s[1], x = s[5], E = s[9], k = s[13], L = s[2], O = s[6], V = s[10], F = s[14], at = s[3], ft = s[7], st = s[11], q = s[15], ct = a[0], it = a[4], Wt = a[8], Kt = a[12], Xt = a[1], wt = a[5], Bt = a[9], fe = a[13], _e = a[2], ze = a[6], re = a[10], le = a[14], Q = a[3], Tt = a[7], he = a[11], fr = a[15];
|
|
5122
|
+
return h[0] = u * ct + m * Xt + b * _e + f * Q, h[4] = u * it + m * wt + b * ze + f * Tt, h[8] = u * Wt + m * Bt + b * re + f * he, h[12] = u * Kt + m * fe + b * le + f * fr, h[1] = w * ct + x * Xt + E * _e + k * Q, h[5] = w * it + x * wt + E * ze + k * Tt, h[9] = w * Wt + x * Bt + E * re + k * he, h[13] = w * Kt + x * fe + E * le + k * fr, h[2] = L * ct + O * Xt + V * _e + F * Q, h[6] = L * it + O * wt + V * ze + F * Tt, h[10] = L * Wt + O * Bt + V * re + F * he, h[14] = L * Kt + O * fe + V * le + F * fr, h[3] = at * ct + ft * Xt + st * _e + q * Q, h[7] = at * it + ft * wt + st * ze + q * Tt, h[11] = at * Wt + ft * Bt + st * re + q * he, h[15] = at * Kt + ft * fe + st * le + q * fr, this;
|
|
5123
5123
|
}
|
|
5124
5124
|
/**
|
|
5125
5125
|
* Multiply every component of the matrix by a scalar value s.
|
|
@@ -5428,9 +5428,9 @@ const Oi = /* @__PURE__ */ new K(), Ro = /* @__PURE__ */ new jn(), Zi = class Il
|
|
|
5428
5428
|
return t[e] = s[0], t[e + 1] = s[1], t[e + 2] = s[2], t[e + 3] = s[3], t[e + 4] = s[4], t[e + 5] = s[5], t[e + 6] = s[6], t[e + 7] = s[7], t[e + 8] = s[8], t[e + 9] = s[9], t[e + 10] = s[10], t[e + 11] = s[11], t[e + 12] = s[12], t[e + 13] = s[13], t[e + 14] = s[14], t[e + 15] = s[15], t;
|
|
5429
5429
|
}
|
|
5430
5430
|
};
|
|
5431
|
-
|
|
5432
|
-
let
|
|
5433
|
-
const Rn = /* @__PURE__ */ new K(), ar = /* @__PURE__ */ new
|
|
5431
|
+
Qi.IDENTITY = Object.freeze(new Qi());
|
|
5432
|
+
let Ze = Qi;
|
|
5433
|
+
const Rn = /* @__PURE__ */ new K(), ar = /* @__PURE__ */ new Ze(), nc = /* @__PURE__ */ new K(0, 0, 0), sc = /* @__PURE__ */ new K(1, 1, 1), Dr = /* @__PURE__ */ new K(), Hs = /* @__PURE__ */ new K(), je = /* @__PURE__ */ new K();
|
|
5434
5434
|
class Ct {
|
|
5435
5435
|
/**
|
|
5436
5436
|
* Create a 3d box bounded by min and max.
|
|
@@ -5460,7 +5460,7 @@ class Ct {
|
|
|
5460
5460
|
setFromArray(t) {
|
|
5461
5461
|
this.makeEmpty();
|
|
5462
5462
|
for (let e = 0, s = t.length; e < s; e += 3)
|
|
5463
|
-
this.expandByPoint(
|
|
5463
|
+
this.expandByPoint(zi.fromArray(t, e));
|
|
5464
5464
|
return this;
|
|
5465
5465
|
}
|
|
5466
5466
|
/**
|
|
@@ -5481,7 +5481,7 @@ class Ct {
|
|
|
5481
5481
|
* @returns Return this box
|
|
5482
5482
|
*/
|
|
5483
5483
|
setFromCenterAndSize(t, e) {
|
|
5484
|
-
const s =
|
|
5484
|
+
const s = zi.copy(e).multiplyScalar(0.5);
|
|
5485
5485
|
return this.min.copy(t).sub(s), this.max.copy(t).add(s), this;
|
|
5486
5486
|
}
|
|
5487
5487
|
/**
|
|
@@ -5632,7 +5632,7 @@ class Ct {
|
|
|
5632
5632
|
* @returns Return the distance from any edge of this box to the specified point.
|
|
5633
5633
|
*/
|
|
5634
5634
|
distanceToPoint(t) {
|
|
5635
|
-
return this.clampPoint(t,
|
|
5635
|
+
return this.clampPoint(t, zi).distanceTo(t);
|
|
5636
5636
|
}
|
|
5637
5637
|
/**
|
|
5638
5638
|
* Compute the intersection of this and box, setting the upper bound of this box to the lesser of the
|
|
@@ -5688,8 +5688,8 @@ const xr = [
|
|
|
5688
5688
|
/* @__PURE__ */ new K(),
|
|
5689
5689
|
/* @__PURE__ */ new K(),
|
|
5690
5690
|
/* @__PURE__ */ new K()
|
|
5691
|
-
],
|
|
5692
|
-
class
|
|
5691
|
+
], zi = /* @__PURE__ */ new K(), Vo = /* @__PURE__ */ new te();
|
|
5692
|
+
class ke {
|
|
5693
5693
|
/**
|
|
5694
5694
|
* Create a 2d box bounded by min and max.
|
|
5695
5695
|
* @param min (optional) Input 2d vector representing the lower (x, y) boundary of the box.
|
|
@@ -5728,7 +5728,7 @@ class Ae {
|
|
|
5728
5728
|
* @returns Return this box
|
|
5729
5729
|
*/
|
|
5730
5730
|
setFromCenterAndSize(t, e) {
|
|
5731
|
-
const s =
|
|
5731
|
+
const s = Vo.copy(e).multiplyScalar(0.5);
|
|
5732
5732
|
return this.min.copy(t).sub(s), this.max.copy(t).add(s), this;
|
|
5733
5733
|
}
|
|
5734
5734
|
/**
|
|
@@ -5736,7 +5736,7 @@ class Ae {
|
|
|
5736
5736
|
* @returns Return a new 2d box with the same min and max as this one.
|
|
5737
5737
|
*/
|
|
5738
5738
|
clone() {
|
|
5739
|
-
return new
|
|
5739
|
+
return new ke().copy(this);
|
|
5740
5740
|
}
|
|
5741
5741
|
/**
|
|
5742
5742
|
* Copy the min and max from box to this box.
|
|
@@ -5868,7 +5868,7 @@ class Ae {
|
|
|
5868
5868
|
* @returns Return the distance from any edge of this box to the specified point.
|
|
5869
5869
|
*/
|
|
5870
5870
|
distanceToPoint(t) {
|
|
5871
|
-
return this.clampPoint(t,
|
|
5871
|
+
return this.clampPoint(t, Vo).distanceTo(t);
|
|
5872
5872
|
}
|
|
5873
5873
|
/**
|
|
5874
5874
|
* Return the intersection of this and box, setting the upper bound of this box to the lesser of the
|
|
@@ -5906,8 +5906,8 @@ class Ae {
|
|
|
5906
5906
|
return t.min.equals(this.min) && t.max.equals(this.max);
|
|
5907
5907
|
}
|
|
5908
5908
|
}
|
|
5909
|
-
const
|
|
5910
|
-
class
|
|
5909
|
+
const Uo = /* @__PURE__ */ new K(), ic = /* @__PURE__ */ new K(), ac = /* @__PURE__ */ new Ea();
|
|
5910
|
+
class xi {
|
|
5911
5911
|
/**
|
|
5912
5912
|
* Create one plane
|
|
5913
5913
|
* @param normal (optional) Input a unit length Vector3 defining the normal of the plane.
|
|
@@ -5955,7 +5955,7 @@ class bi {
|
|
|
5955
5955
|
* @returns Return this plane
|
|
5956
5956
|
*/
|
|
5957
5957
|
setFromCoplanarPoints(t, e, s) {
|
|
5958
|
-
const a =
|
|
5958
|
+
const a = Uo.subVectors(s, e).cross(ic.subVectors(t, e)).normalize();
|
|
5959
5959
|
return this.setFromNormalAndCoplanarPoint(a, t), this;
|
|
5960
5960
|
}
|
|
5961
5961
|
/**
|
|
@@ -6057,7 +6057,7 @@ class bi {
|
|
|
6057
6057
|
* @returns Return this plane
|
|
6058
6058
|
*/
|
|
6059
6059
|
applyMatrix4(t, e) {
|
|
6060
|
-
const s = e || ac.getNormalMatrix(t), a = this.coplanarPoint(
|
|
6060
|
+
const s = e || ac.getNormalMatrix(t), a = this.coplanarPoint(Uo).applyMatrix4(t), h = this.normal.applyMatrix3(s).normalize();
|
|
6061
6061
|
return this.constant = -a.dot(h), this;
|
|
6062
6062
|
}
|
|
6063
6063
|
/**
|
|
@@ -6082,7 +6082,7 @@ class bi {
|
|
|
6082
6082
|
* @returns Return the cloned plane
|
|
6083
6083
|
*/
|
|
6084
6084
|
clone() {
|
|
6085
|
-
return new
|
|
6085
|
+
return new xi().copy(this);
|
|
6086
6086
|
}
|
|
6087
6087
|
}
|
|
6088
6088
|
class Lt extends te {
|
|
@@ -6112,7 +6112,7 @@ class W extends K {
|
|
|
6112
6112
|
}), a;
|
|
6113
6113
|
}
|
|
6114
6114
|
}
|
|
6115
|
-
const
|
|
6115
|
+
const jo = /* @__PURE__ */ new Ze(), Go = /* @__PURE__ */ new jn(), Pl = class Ji {
|
|
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.
|
|
@@ -6121,7 +6121,7 @@ const Uo = /* @__PURE__ */ new $e(), jo = /* @__PURE__ */ new jn(), Pl = class Q
|
|
|
6121
6121
|
* @param order (optional) a string representing the order that the rotations are applied,
|
|
6122
6122
|
* defaults to 'XYZ' (must be upper case).
|
|
6123
6123
|
*/
|
|
6124
|
-
constructor(t = 0, e = 0, s = 0, a =
|
|
6124
|
+
constructor(t = 0, e = 0, s = 0, a = Ji.DEFAULT_ORDER) {
|
|
6125
6125
|
this._x = t, this._y = e, this._z = s, this._order = a;
|
|
6126
6126
|
}
|
|
6127
6127
|
/**
|
|
@@ -6184,7 +6184,7 @@ const Uo = /* @__PURE__ */ new $e(), jo = /* @__PURE__ */ new jn(), Pl = class Q
|
|
|
6184
6184
|
* @returns Return a new Euler with the same parameters as this one.
|
|
6185
6185
|
*/
|
|
6186
6186
|
clone() {
|
|
6187
|
-
return new
|
|
6187
|
+
return new Ji(this._x, this._y, this._z, this._order);
|
|
6188
6188
|
}
|
|
6189
6189
|
/**
|
|
6190
6190
|
* Copy value of euler to this euler.
|
|
@@ -6241,7 +6241,7 @@ const Uo = /* @__PURE__ */ new $e(), jo = /* @__PURE__ */ new jn(), Pl = class Q
|
|
|
6241
6241
|
* @returns Return this euler
|
|
6242
6242
|
*/
|
|
6243
6243
|
setFromQuaternion(t, e, s = !0) {
|
|
6244
|
-
return
|
|
6244
|
+
return jo.makeRotationFromQuaternion(t), this.setFromRotationMatrix(jo, e, s);
|
|
6245
6245
|
}
|
|
6246
6246
|
/**
|
|
6247
6247
|
* Set the x, y and z, and optionally update the order.
|
|
@@ -6259,7 +6259,7 @@ const Uo = /* @__PURE__ */ new $e(), jo = /* @__PURE__ */ new jn(), Pl = class Q
|
|
|
6259
6259
|
* @returns Return this euler
|
|
6260
6260
|
*/
|
|
6261
6261
|
reorder(t) {
|
|
6262
|
-
return
|
|
6262
|
+
return Go.setFromEuler(this), this.setFromQuaternion(Go, t);
|
|
6263
6263
|
}
|
|
6264
6264
|
/**
|
|
6265
6265
|
* Check for strict equality of this euler and euler.
|
|
@@ -6323,7 +6323,7 @@ let Al = class extends El {
|
|
|
6323
6323
|
* Return new shape translated by given vector.
|
|
6324
6324
|
*/
|
|
6325
6325
|
translate(t) {
|
|
6326
|
-
return this.transform(new
|
|
6326
|
+
return this.transform(new Ea().makeTranslation(t.x, t.y));
|
|
6327
6327
|
}
|
|
6328
6328
|
/**
|
|
6329
6329
|
* The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding
|
|
@@ -6334,7 +6334,7 @@ let Al = class extends El {
|
|
|
6334
6334
|
return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
|
|
6335
6335
|
}
|
|
6336
6336
|
};
|
|
6337
|
-
class
|
|
6337
|
+
class Aa extends Al {
|
|
6338
6338
|
/**
|
|
6339
6339
|
* Create one 2d area defined by one outter loop and multiple inner loops
|
|
6340
6340
|
*/
|
|
@@ -6367,7 +6367,7 @@ class Ea extends Al {
|
|
|
6367
6367
|
*/
|
|
6368
6368
|
calculateBoundingBox() {
|
|
6369
6369
|
const t = this.outter;
|
|
6370
|
-
return t ? t.box : new
|
|
6370
|
+
return t ? t.box : new ke();
|
|
6371
6371
|
}
|
|
6372
6372
|
/**
|
|
6373
6373
|
* @inheritdoc
|
|
@@ -6448,7 +6448,7 @@ class Ea extends Al {
|
|
|
6448
6448
|
calculateBoundaryBoxes(t) {
|
|
6449
6449
|
const e = [];
|
|
6450
6450
|
return t.forEach((s) => {
|
|
6451
|
-
e.push(new
|
|
6451
|
+
e.push(new ke().setFromPoints(s));
|
|
6452
6452
|
}), e;
|
|
6453
6453
|
}
|
|
6454
6454
|
/**
|
|
@@ -6471,7 +6471,7 @@ class Ea extends Al {
|
|
|
6471
6471
|
}), s;
|
|
6472
6472
|
}
|
|
6473
6473
|
}
|
|
6474
|
-
class
|
|
6474
|
+
class Fs extends Al {
|
|
6475
6475
|
constructor() {
|
|
6476
6476
|
super(), this.arcLengthDivisions = 100;
|
|
6477
6477
|
}
|
|
@@ -6605,7 +6605,7 @@ class Rs extends Al {
|
|
|
6605
6605
|
return this.getTangent(e);
|
|
6606
6606
|
}
|
|
6607
6607
|
}
|
|
6608
|
-
class
|
|
6608
|
+
class Ns extends Fs {
|
|
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);
|
|
@@ -6790,7 +6790,7 @@ class Ts extends Rs {
|
|
|
6790
6790
|
) && t.push(this.getPointAtAngle(h));
|
|
6791
6791
|
}
|
|
6792
6792
|
const s = t.map((h) => h.x), a = t.map((h) => h.y);
|
|
6793
|
-
return new
|
|
6793
|
+
return new ke(
|
|
6794
6794
|
new Lt(Math.min(...s), Math.min(...a)),
|
|
6795
6795
|
new Lt(Math.max(...s), Math.max(...a))
|
|
6796
6796
|
);
|
|
@@ -6811,7 +6811,7 @@ class Ts extends Rs {
|
|
|
6811
6811
|
* @inheritdoc
|
|
6812
6812
|
*/
|
|
6813
6813
|
clone() {
|
|
6814
|
-
return new
|
|
6814
|
+
return new Ns(
|
|
6815
6815
|
this.center.clone(),
|
|
6816
6816
|
this.radius,
|
|
6817
6817
|
this._startAngle,
|
|
@@ -6855,7 +6855,7 @@ class oc extends El {
|
|
|
6855
6855
|
* Translation vector may be also defined by a pair of numbers.
|
|
6856
6856
|
*/
|
|
6857
6857
|
translate(t) {
|
|
6858
|
-
return this.transform(new
|
|
6858
|
+
return this.transform(new Ze().makeTranslation(t.x, t.y, t.z));
|
|
6859
6859
|
}
|
|
6860
6860
|
/**
|
|
6861
6861
|
* The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding
|
|
@@ -6866,9 +6866,9 @@ class oc extends El {
|
|
|
6866
6866
|
return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
|
|
6867
6867
|
}
|
|
6868
6868
|
}
|
|
6869
|
-
class
|
|
6869
|
+
class Vs extends oc {
|
|
6870
6870
|
}
|
|
6871
|
-
let
|
|
6871
|
+
let Ls = class kl extends Vs {
|
|
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.
|
|
@@ -6985,9 +6985,9 @@ let Ns = class kl extends Fs {
|
|
|
6985
6985
|
* @returns Return a point parameter based on the closest point as projected on the line segment.
|
|
6986
6986
|
*/
|
|
6987
6987
|
closestPointToPointParameter(t, e) {
|
|
6988
|
-
|
|
6989
|
-
const s =
|
|
6990
|
-
let a =
|
|
6988
|
+
Wo.subVectors(t, this._start), qs.subVectors(this.endPoint, this.startPoint);
|
|
6989
|
+
const s = qs.dot(qs);
|
|
6990
|
+
let a = qs.dot(Wo) / s;
|
|
6991
6991
|
return e && (a = Et.clamp(a, 0, 1)), a;
|
|
6992
6992
|
}
|
|
6993
6993
|
/**
|
|
@@ -7084,8 +7084,8 @@ let Ns = class kl extends Fs {
|
|
|
7084
7084
|
return new kl(this._start.clone(), this._end.clone());
|
|
7085
7085
|
}
|
|
7086
7086
|
};
|
|
7087
|
-
const ln = /* @__PURE__ */ new K(),
|
|
7088
|
-
let Ml = class
|
|
7087
|
+
const ln = /* @__PURE__ */ new K(), Wo = /* @__PURE__ */ new K(), qs = /* @__PURE__ */ new K();
|
|
7088
|
+
let Ml = class Js extends Vs {
|
|
7089
7089
|
/**
|
|
7090
7090
|
* Compute center point of the arc given three points
|
|
7091
7091
|
* @param startPoint Input start point of the arc
|
|
@@ -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 Ls(a, a.clone().add(x)), L = new Ls(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
|
/**
|
|
@@ -7107,14 +7107,14 @@ let Ml = class Qs extends Fs {
|
|
|
7107
7107
|
* @param pointOnArc Input one point between the start point and the end point
|
|
7108
7108
|
*/
|
|
7109
7109
|
static createByThreePoints(t, e, s) {
|
|
7110
|
-
const a =
|
|
7110
|
+
const a = Js.computeCenterPoint(
|
|
7111
7111
|
t,
|
|
7112
7112
|
e,
|
|
7113
7113
|
s
|
|
7114
7114
|
);
|
|
7115
7115
|
if (a) {
|
|
7116
7116
|
const h = a.distanceTo(t), u = new K().subVectors(t, a), m = new K().subVectors(e, a), b = Math.atan2(u.y, u.x), f = Math.atan2(m.y, m.x);
|
|
7117
|
-
return new
|
|
7117
|
+
return new Js(
|
|
7118
7118
|
a,
|
|
7119
7119
|
h,
|
|
7120
7120
|
b,
|
|
@@ -7323,7 +7323,7 @@ let Ml = class Qs extends Fs {
|
|
|
7323
7323
|
* @inheritdoc
|
|
7324
7324
|
*/
|
|
7325
7325
|
transform(t) {
|
|
7326
|
-
const e =
|
|
7326
|
+
const e = Ri.copy(this.refVec).applyAxisAngle(this.normal, this.startAngle).multiplyScalar(this.radius), s = Ri.copy(this.refVec).applyAxisAngle(this.normal, this.endAngle).multiplyScalar(this.radius);
|
|
7327
7327
|
return this.center.applyMatrix4(t), e.applyMatrix4(t), s.applyMatrix4(t), this.normal.applyMatrix4(t).normalize(), this.refVec.applyMatrix4(t).normalize(), this.startAngle = this.getAngle(e), this.endAngle = this.getAngle(s), this._boundingBoxNeedsUpdate = !0, this;
|
|
7328
7328
|
}
|
|
7329
7329
|
/**
|
|
@@ -7336,7 +7336,7 @@ let Ml = class Qs extends Fs {
|
|
|
7336
7336
|
* @inheritdoc
|
|
7337
7337
|
*/
|
|
7338
7338
|
clone() {
|
|
7339
|
-
return new
|
|
7339
|
+
return new Js(
|
|
7340
7340
|
this.center.clone(),
|
|
7341
7341
|
this.radius,
|
|
7342
7342
|
this.startAngle,
|
|
@@ -7352,7 +7352,7 @@ let Ml = class Qs extends Fs {
|
|
|
7352
7352
|
*/
|
|
7353
7353
|
getAngle(t) {
|
|
7354
7354
|
return t.sub(this.center), Math.atan2(
|
|
7355
|
-
t.dot(
|
|
7355
|
+
t.dot(Ri.crossVectors(this.refVec, this.normal)),
|
|
7356
7356
|
t.dot(this.refVec)
|
|
7357
7357
|
);
|
|
7358
7358
|
}
|
|
@@ -7377,11 +7377,11 @@ let Ml = class Qs extends Fs {
|
|
|
7377
7377
|
*/
|
|
7378
7378
|
get plane() {
|
|
7379
7379
|
const t = new K(this.center).distanceTo(vl);
|
|
7380
|
-
return new
|
|
7380
|
+
return new xi(this.normal, t);
|
|
7381
7381
|
}
|
|
7382
7382
|
};
|
|
7383
|
-
const
|
|
7384
|
-
class
|
|
7383
|
+
const Ri = /* @__PURE__ */ new K();
|
|
7384
|
+
class ka extends Fs {
|
|
7385
7385
|
/**
|
|
7386
7386
|
* Construct an instance of the ellipse arc.
|
|
7387
7387
|
* @param center Center point of the ellipse.
|
|
@@ -7485,7 +7485,7 @@ class Aa extends Rs {
|
|
|
7485
7485
|
const u = this.getPoint(h / 100);
|
|
7486
7486
|
t = Math.min(t, u.x), e = Math.min(e, u.y), s = Math.max(s, u.x), a = Math.max(a, u.y);
|
|
7487
7487
|
}
|
|
7488
|
-
return new
|
|
7488
|
+
return new ke({ x: t, y: e }, { x: s, y: a });
|
|
7489
7489
|
}
|
|
7490
7490
|
/**
|
|
7491
7491
|
* Return true if its start point is identical to its end point. Otherwise, return false.
|
|
@@ -7529,7 +7529,7 @@ class Aa extends Rs {
|
|
|
7529
7529
|
* @inheritdoc
|
|
7530
7530
|
*/
|
|
7531
7531
|
clone() {
|
|
7532
|
-
return new
|
|
7532
|
+
return new ka(
|
|
7533
7533
|
this.center,
|
|
7534
7534
|
this.majorAxisRadius,
|
|
7535
7535
|
this.minorAxisRadius,
|
|
@@ -7540,7 +7540,7 @@ class Aa extends Rs {
|
|
|
7540
7540
|
);
|
|
7541
7541
|
}
|
|
7542
7542
|
}
|
|
7543
|
-
class
|
|
7543
|
+
class Ma extends Vs {
|
|
7544
7544
|
/**
|
|
7545
7545
|
* Construct an instance of the ellipse arc.
|
|
7546
7546
|
* @param center Center point of the ellipse.
|
|
@@ -7790,7 +7790,7 @@ class ka extends Fs {
|
|
|
7790
7790
|
* @inheritdoc
|
|
7791
7791
|
*/
|
|
7792
7792
|
clone() {
|
|
7793
|
-
return new
|
|
7793
|
+
return new Ma(
|
|
7794
7794
|
this.center,
|
|
7795
7795
|
this.normal,
|
|
7796
7796
|
this.majorAxis,
|
|
@@ -7805,10 +7805,10 @@ class ka extends Fs {
|
|
|
7805
7805
|
*/
|
|
7806
7806
|
get plane() {
|
|
7807
7807
|
const t = new K(this.center).distanceTo(vl);
|
|
7808
|
-
return new
|
|
7808
|
+
return new xi(this.normal, t);
|
|
7809
7809
|
}
|
|
7810
7810
|
}
|
|
7811
|
-
class Gn extends
|
|
7811
|
+
class Gn extends Fs {
|
|
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 Gn 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 Ns(a, h, a.bulge);
|
|
7874
7874
|
t += u.length;
|
|
7875
7875
|
} else
|
|
7876
7876
|
t += new Lt(a.x, a.y).distanceTo(h);
|
|
@@ -7936,7 +7936,7 @@ class Gn extends Rs {
|
|
|
7936
7936
|
*/
|
|
7937
7937
|
calculateBoundingBox() {
|
|
7938
7938
|
const t = this.getPoints(100);
|
|
7939
|
-
return new
|
|
7939
|
+
return new ke().setFromPoints(t);
|
|
7940
7940
|
}
|
|
7941
7941
|
/**
|
|
7942
7942
|
* @inheritdoc
|
|
@@ -7968,7 +7968,7 @@ class Gn 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 Ns(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));
|
|
@@ -7980,7 +7980,7 @@ class Gn extends Rs {
|
|
|
7980
7980
|
return e;
|
|
7981
7981
|
}
|
|
7982
7982
|
}
|
|
7983
|
-
let
|
|
7983
|
+
let ti = class Tl extends Fs {
|
|
7984
7984
|
/**
|
|
7985
7985
|
* This constructor initializes the line object to use start as the start point, and end
|
|
7986
7986
|
* as the endpoint. Both points must be in WCS coordinates.
|
|
@@ -8032,7 +8032,7 @@ let Js = class Tl extends Rs {
|
|
|
8032
8032
|
Math.max(this._start.x, this._end.x),
|
|
8033
8033
|
Math.max(this._start.y, this._end.y)
|
|
8034
8034
|
);
|
|
8035
|
-
return new
|
|
8035
|
+
return new ke(t, e);
|
|
8036
8036
|
}
|
|
8037
8037
|
/**
|
|
8038
8038
|
* @inheritdoc
|
|
@@ -8058,7 +8058,7 @@ let Js = class Tl extends Rs {
|
|
|
8058
8058
|
clone() {
|
|
8059
8059
|
return new Tl(this._start.clone(), this._end.clone());
|
|
8060
8060
|
}
|
|
8061
|
-
}, Nl = class extends
|
|
8061
|
+
}, Nl = class extends Fs {
|
|
8062
8062
|
/**
|
|
8063
8063
|
* Create one loop by connected curves
|
|
8064
8064
|
* @param curves Input one array of connected curves
|
|
@@ -8111,7 +8111,7 @@ let Js = class Tl extends Rs {
|
|
|
8111
8111
|
* @inheritdoc
|
|
8112
8112
|
*/
|
|
8113
8113
|
calculateBoundingBox() {
|
|
8114
|
-
const t = this.getPoints(100), e = new
|
|
8114
|
+
const t = this.getPoints(100), e = new ke();
|
|
8115
8115
|
return e.setFromPoints(t), e;
|
|
8116
8116
|
}
|
|
8117
8117
|
/**
|
|
@@ -8444,7 +8444,7 @@ var Ll = { exports: {} };
|
|
|
8444
8444
|
this.buf.b += "b";
|
|
8445
8445
|
for (var T = r, B = T.keys(); B.hasNext(); ) {
|
|
8446
8446
|
var C = B.next();
|
|
8447
|
-
this.serializeString(C), this.serialize(
|
|
8447
|
+
this.serializeString(C), this.serialize(Ei[C] != null ? T.getReserved(C) : T.h[C]);
|
|
8448
8448
|
}
|
|
8449
8449
|
this.buf.b += "h";
|
|
8450
8450
|
break;
|
|
@@ -8464,7 +8464,7 @@ var Ll = { exports: {} };
|
|
|
8464
8464
|
}
|
|
8465
8465
|
this.buf.b += "h";
|
|
8466
8466
|
break;
|
|
8467
|
-
case
|
|
8467
|
+
case ze:
|
|
8468
8468
|
for (var G = r, $ = 0, tt = G.length - 2, et = new ft(), ot = Kt.BASE64; $ < tt; ) {
|
|
8469
8469
|
var ut = G.get($++), lt = G.get($++), dt = G.get($++);
|
|
8470
8470
|
et.add(ot.charAt(ut >> 2)), et.add(ot.charAt((ut << 4 | lt >> 4) & 63)), et.add(ot.charAt((lt << 2 | dt >> 6) & 63)), et.add(ot.charAt(dt & 63));
|
|
@@ -8484,10 +8484,10 @@ var Ll = { exports: {} };
|
|
|
8484
8484
|
}
|
|
8485
8485
|
break;
|
|
8486
8486
|
case 4:
|
|
8487
|
-
if (Tt.__instanceof(r,
|
|
8487
|
+
if (Tt.__instanceof(r, bo)) {
|
|
8488
8488
|
var At = ct.getClassName(r);
|
|
8489
8489
|
this.buf.b += "A", this.serializeString(At);
|
|
8490
|
-
} else if (Tt.__instanceof(r,
|
|
8490
|
+
} else if (Tt.__instanceof(r, xo))
|
|
8491
8491
|
this.buf.b += "B", this.serializeString(ct.getEnumName(r));
|
|
8492
8492
|
else {
|
|
8493
8493
|
if (this.useCache && this.serializeRef(r)) return;
|
|
@@ -8700,19 +8700,19 @@ var Ll = { exports: {} };
|
|
|
8700
8700
|
D == null && (D = Xt.initCodes(), Xt.CODES = D);
|
|
8701
8701
|
var _t = this.pos, At = nt & 3, qt;
|
|
8702
8702
|
qt = (nt >> 2) * 3 + (At >= 2 ? At - 1 : 0);
|
|
8703
|
-
for (var $t = _t + (nt - At), jt =
|
|
8704
|
-
var
|
|
8705
|
-
jt.set(Zt++,
|
|
8706
|
-
var
|
|
8707
|
-
jt.set(Zt++,
|
|
8703
|
+
for (var $t = _t + (nt - At), jt = ze.alloc(qt), Zt = 0; _t < $t; ) {
|
|
8704
|
+
var Te = D[st.fastCodeAt(mt, _t++)], $e = D[st.fastCodeAt(mt, _t++)];
|
|
8705
|
+
jt.set(Zt++, Te << 2 | $e >> 4);
|
|
8706
|
+
var we = D[st.fastCodeAt(mt, _t++)];
|
|
8707
|
+
jt.set(Zt++, $e << 4 | we >> 2);
|
|
8708
8708
|
var ve = D[st.fastCodeAt(mt, _t++)];
|
|
8709
|
-
jt.set(Zt++,
|
|
8709
|
+
jt.set(Zt++, we << 6 | ve);
|
|
8710
8710
|
}
|
|
8711
8711
|
if (At >= 2) {
|
|
8712
|
-
var
|
|
8713
|
-
if (jt.set(Zt++,
|
|
8712
|
+
var Ne = D[st.fastCodeAt(mt, _t++)], Ue = D[st.fastCodeAt(mt, _t++)];
|
|
8713
|
+
if (jt.set(Zt++, Ne << 2 | Ue >> 4), At == 3) {
|
|
8714
8714
|
var rr = D[st.fastCodeAt(mt, _t++)];
|
|
8715
|
-
jt.set(Zt++,
|
|
8715
|
+
jt.set(Zt++, Ue << 4 | rr >> 2);
|
|
8716
8716
|
}
|
|
8717
8717
|
}
|
|
8718
8718
|
return this.pos += nt, this.cache.push(jt), jt;
|
|
@@ -8779,10 +8779,10 @@ var Ll = { exports: {} };
|
|
|
8779
8779
|
};
|
|
8780
8780
|
x["haxe.ds.StringMap"] = _e, _e.__name__ = ["haxe", "ds", "StringMap"], _e.__interfaces__ = [it], _e.prototype = {
|
|
8781
8781
|
set: function(r, i) {
|
|
8782
|
-
|
|
8782
|
+
Ei[r] != null ? this.setReserved(r, i) : this.h[r] = i;
|
|
8783
8783
|
},
|
|
8784
8784
|
get: function(r) {
|
|
8785
|
-
return
|
|
8785
|
+
return Ei[r] != null ? this.getReserved(r) : this.h[r];
|
|
8786
8786
|
},
|
|
8787
8787
|
setReserved: function(r, i) {
|
|
8788
8788
|
this.rh == null && (this.rh = {}), this.rh["$" + r] = i;
|
|
@@ -8805,19 +8805,19 @@ var Ll = { exports: {} };
|
|
|
8805
8805
|
},
|
|
8806
8806
|
__class__: _e
|
|
8807
8807
|
};
|
|
8808
|
-
var
|
|
8809
|
-
this.length = r.byteLength, this.b = new
|
|
8808
|
+
var ze = function(r) {
|
|
8809
|
+
this.length = r.byteLength, this.b = new Ai(r), this.b.bufferValue = r, r.hxBytes = this, r.bytes = this.b;
|
|
8810
8810
|
};
|
|
8811
|
-
x["haxe.io.Bytes"] =
|
|
8812
|
-
return new
|
|
8813
|
-
},
|
|
8811
|
+
x["haxe.io.Bytes"] = ze, ze.__name__ = ["haxe", "io", "Bytes"], ze.alloc = function(r) {
|
|
8812
|
+
return new ze(new Gs(r));
|
|
8813
|
+
}, ze.prototype = {
|
|
8814
8814
|
get: function(r) {
|
|
8815
8815
|
return this.b[r];
|
|
8816
8816
|
},
|
|
8817
8817
|
set: function(r, i) {
|
|
8818
8818
|
this.b[r] = i & 255;
|
|
8819
8819
|
},
|
|
8820
|
-
__class__:
|
|
8820
|
+
__class__: ze
|
|
8821
8821
|
};
|
|
8822
8822
|
var re = x["haxe.io.Error"] = { __ename__: ["haxe", "io", "Error"], __constructs__: ["Blocked", "Overflow", "OutsideBounds", "Custom"] };
|
|
8823
8823
|
re.Blocked = ["Blocked", 0], re.Blocked.toString = E, re.Blocked.__enum__ = re, re.Overflow = ["Overflow", 1], re.Overflow.toString = E, re.Overflow.__enum__ = re, re.OutsideBounds = ["OutsideBounds", 2], re.OutsideBounds.toString = E, re.OutsideBounds.__enum__ = re, re.Custom = function(r) {
|
|
@@ -8934,9 +8934,9 @@ var Ll = { exports: {} };
|
|
|
8934
8934
|
switch (i) {
|
|
8935
8935
|
case ru:
|
|
8936
8936
|
return (r | 0) === r;
|
|
8937
|
-
case _o:
|
|
8938
|
-
return typeof r == "number";
|
|
8939
8937
|
case yo:
|
|
8938
|
+
return typeof r == "number";
|
|
8939
|
+
case vo:
|
|
8940
8940
|
return typeof r == "boolean";
|
|
8941
8941
|
case String:
|
|
8942
8942
|
return typeof r == "string";
|
|
@@ -8951,7 +8951,7 @@ var Ll = { exports: {} };
|
|
|
8951
8951
|
} else if (typeof i == "object" && Tt.__isNativeObj(i) && r instanceof i)
|
|
8952
8952
|
return !0;
|
|
8953
8953
|
} else return !1;
|
|
8954
|
-
return i ==
|
|
8954
|
+
return i == bo && r.__name__ != null || i == xo && r.__ename__ != null ? !0 : r.__enum__ == i;
|
|
8955
8955
|
}
|
|
8956
8956
|
}, Tt.__nativeClassName = function(r) {
|
|
8957
8957
|
var i = Tt.__toStr.call(r).slice(8, -1);
|
|
@@ -8975,7 +8975,7 @@ var Ll = { exports: {} };
|
|
|
8975
8975
|
}
|
|
8976
8976
|
};
|
|
8977
8977
|
x["js.html.compat.ArrayBuffer"] = he, he.__name__ = ["js", "html", "compat", "ArrayBuffer"], he.sliceImpl = function(r, i) {
|
|
8978
|
-
var o = new
|
|
8978
|
+
var o = new Ai(this, r, i == null ? null : i - r), l = new Gs(o.byteLength), c = new Ai(l);
|
|
8979
8979
|
return c.set(o), l;
|
|
8980
8980
|
}, he.prototype = {
|
|
8981
8981
|
slice: function(r, i) {
|
|
@@ -9140,7 +9140,7 @@ var Ll = { exports: {} };
|
|
|
9140
9140
|
if (!l) {
|
|
9141
9141
|
l = !0;
|
|
9142
9142
|
var g = o(d);
|
|
9143
|
-
g._update.push({ async: i, linkf:
|
|
9143
|
+
g._update.push({ async: i, linkf: Ve(i, i.handleResolve) }), Mt.immediateLinkUpdate(g, i, function(_) {
|
|
9144
9144
|
return _;
|
|
9145
9145
|
});
|
|
9146
9146
|
}
|
|
@@ -9196,7 +9196,7 @@ var Ll = { exports: {} };
|
|
|
9196
9196
|
return function() {
|
|
9197
9197
|
o(l);
|
|
9198
9198
|
};
|
|
9199
|
-
}(
|
|
9199
|
+
}(Ve(this, this._resolve), r)) : (this._resolved = !0, this._pending = !0, Pt.queue.add(function() {
|
|
9200
9200
|
i._val = r;
|
|
9201
9201
|
for (var o = 0, l = i._update; o < l.length; ) {
|
|
9202
9202
|
var c = l[o];
|
|
@@ -9330,8 +9330,8 @@ var Ll = { exports: {} };
|
|
|
9330
9330
|
var i = new ye();
|
|
9331
9331
|
return this.catchError(function(o) {
|
|
9332
9332
|
var l = r(o);
|
|
9333
|
-
l.then(
|
|
9334
|
-
}), this.then(
|
|
9333
|
+
l.then(Ve(i, i._resolve));
|
|
9334
|
+
}), this.then(Ve(i, i._resolve)), i;
|
|
9335
9335
|
},
|
|
9336
9336
|
__class__: ye
|
|
9337
9337
|
});
|
|
@@ -9403,14 +9403,14 @@ var Ll = { exports: {} };
|
|
|
9403
9403
|
var i = new Yt(null);
|
|
9404
9404
|
return this.catchError(function(o) {
|
|
9405
9405
|
var l = r(o);
|
|
9406
|
-
l.then(
|
|
9407
|
-
}), this.then(
|
|
9406
|
+
l.then(Ve(i, i._resolve)), l._end_promise.then((Pi = i._end_promise, Ve(Pi, Pi._resolve)));
|
|
9407
|
+
}), this.then(Ve(i, i._resolve)), this._end_promise.then(function(o) {
|
|
9408
9408
|
i.end();
|
|
9409
9409
|
}), i;
|
|
9410
9410
|
},
|
|
9411
9411
|
handleEnd: function() {
|
|
9412
9412
|
if (this._pending)
|
|
9413
|
-
Pt.queue.add(
|
|
9413
|
+
Pt.queue.add(Ve(this, this.handleEnd)), Pt.continueOnNextLoop();
|
|
9414
9414
|
else {
|
|
9415
9415
|
if (this._end_promise._resolved) return;
|
|
9416
9416
|
this._end = !0;
|
|
@@ -9419,7 +9419,7 @@ var Ll = { exports: {} };
|
|
|
9419
9419
|
}
|
|
9420
9420
|
},
|
|
9421
9421
|
end: function() {
|
|
9422
|
-
return Pt.queue.add(
|
|
9422
|
+
return Pt.queue.add(Ve(this, this.handleEnd)), Pt.continueOnNextLoop(), this;
|
|
9423
9423
|
},
|
|
9424
9424
|
endThen: function(r) {
|
|
9425
9425
|
return this._end_promise.then(r);
|
|
@@ -9437,7 +9437,7 @@ var Ll = { exports: {} };
|
|
|
9437
9437
|
},
|
|
9438
9438
|
concat: function(r) {
|
|
9439
9439
|
var i = new Yt(null);
|
|
9440
|
-
return this._update.push({ async: i, linkf:
|
|
9440
|
+
return this._update.push({ async: i, linkf: Ve(i, i.handleResolve) }), Mt.immediateLinkUpdate(this, i, function(o) {
|
|
9441
9441
|
return o;
|
|
9442
9442
|
}), this._end_promise.then(function(o) {
|
|
9443
9443
|
r.pipe(function(l) {
|
|
@@ -9449,7 +9449,7 @@ var Ll = { exports: {} };
|
|
|
9449
9449
|
},
|
|
9450
9450
|
merge: function(r) {
|
|
9451
9451
|
var i = new Yt(null);
|
|
9452
|
-
return this._update.push({ async: i, linkf:
|
|
9452
|
+
return this._update.push({ async: i, linkf: Ve(i, i.handleResolve) }), r._update.push({ async: i, linkf: Ve(i, i.handleResolve) }), Mt.immediateLinkUpdate(this, i, function(o) {
|
|
9453
9453
|
return o;
|
|
9454
9454
|
}), Mt.immediateLinkUpdate(r, i, function(o) {
|
|
9455
9455
|
return o;
|
|
@@ -9504,9 +9504,9 @@ var Ll = { exports: {} };
|
|
|
9504
9504
|
var i = ["DownstreamNotFullfilled", 1, r];
|
|
9505
9505
|
return i.__enum__ = In, i.toString = E, i;
|
|
9506
9506
|
};
|
|
9507
|
-
var
|
|
9507
|
+
var Us = function() {
|
|
9508
9508
|
};
|
|
9509
|
-
x["verb.Verb"] =
|
|
9509
|
+
x["verb.Verb"] = Us, Us.__name__ = ["verb", "Verb"], Us.main = function() {
|
|
9510
9510
|
b.log("verb 2.1.0");
|
|
9511
9511
|
};
|
|
9512
9512
|
var Z = function() {
|
|
@@ -9580,18 +9580,18 @@ var Ll = { exports: {} };
|
|
|
9580
9580
|
}, Ft.memoize = function(r, i, o) {
|
|
9581
9581
|
Ft.memo.h.hasOwnProperty(r) || Ft.memo.set(r, new wt()), Ft.memo.h[r].h[i] = o;
|
|
9582
9582
|
};
|
|
9583
|
-
var
|
|
9583
|
+
var Re = f.core.BoundingBox = function(r) {
|
|
9584
9584
|
this.max = null, this.min = null, this.dim = 3, this.initialized = !1, r != null && this.addRange(r);
|
|
9585
9585
|
};
|
|
9586
|
-
x["verb.core.BoundingBox"] =
|
|
9586
|
+
x["verb.core.BoundingBox"] = Re, Re.__name__ = ["verb", "core", "BoundingBox"], Re.intervalsOverlap = function(r, i, o, l, c) {
|
|
9587
9587
|
c == null && (c = -1);
|
|
9588
9588
|
var d;
|
|
9589
9589
|
c < -0.5 ? d = rt.TOLERANCE : d = c;
|
|
9590
9590
|
var g = Math.min(r, i) - d, _ = Math.max(r, i) + d, y = Math.min(o, l) - d, S = Math.max(o, l) + d;
|
|
9591
9591
|
return g >= y && g <= S || _ >= y && _ <= S || y >= g && y <= _ || S >= g && S <= _;
|
|
9592
|
-
},
|
|
9592
|
+
}, Re.prototype = {
|
|
9593
9593
|
fromPoint: function(r) {
|
|
9594
|
-
return new
|
|
9594
|
+
return new Re([r]);
|
|
9595
9595
|
},
|
|
9596
9596
|
add: function(r) {
|
|
9597
9597
|
if (!this.initialized)
|
|
@@ -9610,13 +9610,13 @@ var Ll = { exports: {} };
|
|
|
9610
9610
|
return this;
|
|
9611
9611
|
},
|
|
9612
9612
|
contains: function(r, i) {
|
|
9613
|
-
return i == null && (i = -1), this.initialized ? this.intersects(new
|
|
9613
|
+
return i == null && (i = -1), this.initialized ? this.intersects(new Re([r]), i) : !1;
|
|
9614
9614
|
},
|
|
9615
9615
|
intersects: function(r, i) {
|
|
9616
9616
|
if (i == null && (i = -1), !this.initialized || !r.initialized) return !1;
|
|
9617
9617
|
for (var o = this.min, l = this.max, c = r.min, d = r.max, g = 0, _ = this.dim; g < _; ) {
|
|
9618
9618
|
var y = g++;
|
|
9619
|
-
if (!
|
|
9619
|
+
if (!Re.intervalsOverlap(o[y], l[y], c[y], d[y], i)) return !1;
|
|
9620
9620
|
}
|
|
9621
9621
|
return !0;
|
|
9622
9622
|
},
|
|
@@ -9641,9 +9641,9 @@ var Ll = { exports: {} };
|
|
|
9641
9641
|
var P = y++;
|
|
9642
9642
|
g.push(Math.min(l[P], d[P])), _.push(Math.max(o[P], c[P]));
|
|
9643
9643
|
}
|
|
9644
|
-
return new
|
|
9644
|
+
return new Re([_, g]);
|
|
9645
9645
|
},
|
|
9646
|
-
__class__:
|
|
9646
|
+
__class__: Re
|
|
9647
9647
|
};
|
|
9648
9648
|
var rt = f.core.Constants = function() {
|
|
9649
9649
|
};
|
|
@@ -9707,11 +9707,11 @@ var Ll = { exports: {} };
|
|
|
9707
9707
|
x["verb.core.Pair"] = se, se.__name__ = ["verb", "core", "Pair"], se.prototype = {
|
|
9708
9708
|
__class__: se
|
|
9709
9709
|
};
|
|
9710
|
-
var
|
|
9710
|
+
var Me = f.core.Interval = function(r, i) {
|
|
9711
9711
|
this.min = r, this.max = i;
|
|
9712
9712
|
};
|
|
9713
|
-
x["verb.core.Interval"] =
|
|
9714
|
-
__class__:
|
|
9713
|
+
x["verb.core.Interval"] = Me, Me.__name__ = ["verb", "core", "Interval"], Me.prototype = {
|
|
9714
|
+
__class__: Me
|
|
9715
9715
|
};
|
|
9716
9716
|
var en = f.core.CurveCurveIntersection = function(r, i, o, l) {
|
|
9717
9717
|
this.point0 = r, this.point1 = i, this.u0 = o, this.u1 = l;
|
|
@@ -9755,19 +9755,19 @@ var Ll = { exports: {} };
|
|
|
9755
9755
|
x["verb.core.CurveTriPoint"] = En, En.__name__ = ["verb", "core", "CurveTriPoint"], En.prototype = {
|
|
9756
9756
|
__class__: En
|
|
9757
9757
|
};
|
|
9758
|
-
var
|
|
9758
|
+
var De = 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;
|
|
9760
9760
|
};
|
|
9761
|
-
x["verb.core.SurfacePoint"] =
|
|
9762
|
-
return new
|
|
9763
|
-
},
|
|
9764
|
-
__class__:
|
|
9761
|
+
x["verb.core.SurfacePoint"] = De, De.__name__ = ["verb", "core", "SurfacePoint"], De.fromUv = function(r, i) {
|
|
9762
|
+
return new De(null, null, [r, i]);
|
|
9763
|
+
}, De.prototype = {
|
|
9764
|
+
__class__: De
|
|
9765
9765
|
};
|
|
9766
|
-
var
|
|
9766
|
+
var js = f.core.CurvePoint = function(r, i) {
|
|
9767
9767
|
this.u = r, this.pt = i;
|
|
9768
9768
|
};
|
|
9769
|
-
x["verb.core.CurvePoint"] =
|
|
9770
|
-
__class__:
|
|
9769
|
+
x["verb.core.CurvePoint"] = js, js.__name__ = ["verb", "core", "CurvePoint"], js.prototype = {
|
|
9770
|
+
__class__: js
|
|
9771
9771
|
};
|
|
9772
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);
|
|
@@ -9891,7 +9891,7 @@ var Ll = { exports: {} };
|
|
|
9891
9891
|
return new se(new cr(l[0], this._knotTol), new cr(l[1], this._knotTol));
|
|
9892
9892
|
},
|
|
9893
9893
|
boundingBox: function() {
|
|
9894
|
-
return this._boundingBox == null && (this._boundingBox = new
|
|
9894
|
+
return this._boundingBox == null && (this._boundingBox = new Re(N.dehomogenize1d(this._curve.controlPoints))), this._boundingBox;
|
|
9895
9895
|
},
|
|
9896
9896
|
yield: function() {
|
|
9897
9897
|
return this._curve;
|
|
@@ -9934,15 +9934,15 @@ var Ll = { exports: {} };
|
|
|
9934
9934
|
__class__: dr
|
|
9935
9935
|
};
|
|
9936
9936
|
var pr = function(r, i) {
|
|
9937
|
-
this._boundingBox = null, this._polyline = r, i == null && (i = new
|
|
9937
|
+
this._boundingBox = null, this._polyline = r, i == null && (i = new Me(0, r.points.length != 0 ? r.points.length - 1 : 0)), this._interval = i;
|
|
9938
9938
|
};
|
|
9939
9939
|
x["verb.core.LazyPolylineBoundingBoxTree"] = pr, pr.__name__ = ["verb", "core", "LazyPolylineBoundingBoxTree"], pr.__interfaces__ = [_r], pr.prototype = {
|
|
9940
9940
|
split: function() {
|
|
9941
|
-
var r = this._interval.min, i = this._interval.max, o = r + Math.ceil((i - r) / 2), l = new
|
|
9941
|
+
var r = this._interval.min, i = this._interval.max, o = r + Math.ceil((i - r) / 2), l = new Me(r, o), c = new Me(o, i);
|
|
9942
9942
|
return new se(new pr(this._polyline, l), new pr(this._polyline, c));
|
|
9943
9943
|
},
|
|
9944
9944
|
boundingBox: function() {
|
|
9945
|
-
return this._boundingBox == null && (this._boundingBox = new
|
|
9945
|
+
return this._boundingBox == null && (this._boundingBox = new Re(this._polyline.points)), this._boundingBox;
|
|
9946
9946
|
},
|
|
9947
9947
|
yield: function() {
|
|
9948
9948
|
return this._interval.min;
|
|
@@ -9967,7 +9967,7 @@ var Ll = { exports: {} };
|
|
|
9967
9967
|
},
|
|
9968
9968
|
boundingBox: function() {
|
|
9969
9969
|
if (this._boundingBox == null) {
|
|
9970
|
-
this._boundingBox = new
|
|
9970
|
+
this._boundingBox = new Re();
|
|
9971
9971
|
for (var r = 0, i = this._surface.controlPoints; r < i.length; ) {
|
|
9972
9972
|
var o = i[r];
|
|
9973
9973
|
++r, this._boundingBox.addRange(N.dehomogenize1d(o));
|
|
@@ -10099,7 +10099,7 @@ var Ll = { exports: {} };
|
|
|
10099
10099
|
var o = r[i[0]], l = r[i[1]], c = r[i[2]], d = p.sub(l, o), g = p.sub(c, o), _ = p.cross(d, g);
|
|
10100
10100
|
return p.mul(1 / p.norm(_), _);
|
|
10101
10101
|
}, ie.makeMeshAabb = function(r, i) {
|
|
10102
|
-
for (var o = new
|
|
10102
|
+
for (var o = new Re(), l = 0; l < i.length; ) {
|
|
10103
10103
|
var c = i[l];
|
|
10104
10104
|
++l, o.add(r.points[r.faces[c][0]]), o.add(r.points[r.faces[c][1]]), o.add(r.points[r.faces[c][2]]);
|
|
10105
10105
|
}
|
|
@@ -10254,29 +10254,29 @@ var Ll = { exports: {} };
|
|
|
10254
10254
|
x["verb.core.ISerializable"] = Mn, Mn.__name__ = ["verb", "core", "ISerializable"], Mn.prototype = {
|
|
10255
10255
|
__class__: Mn
|
|
10256
10256
|
};
|
|
10257
|
-
var
|
|
10257
|
+
var Ii = f.core.Deserializer = function() {
|
|
10258
10258
|
};
|
|
10259
|
-
x["verb.core.Deserializer"] =
|
|
10259
|
+
x["verb.core.Deserializer"] = Ii, Ii.__name__ = ["verb", "core", "Deserializer"], Ii.deserialize = function(r) {
|
|
10260
10260
|
var i = new Xt(r), o = i.unserialize();
|
|
10261
10261
|
return o;
|
|
10262
10262
|
};
|
|
10263
|
-
var
|
|
10263
|
+
var Fe = f.core.Trig = function() {
|
|
10264
10264
|
};
|
|
10265
|
-
x["verb.core.Trig"] =
|
|
10265
|
+
x["verb.core.Trig"] = Fe, Fe.__name__ = ["verb", "core", "Trig"], Fe.isPointInPlane = function(r, i, o) {
|
|
10266
10266
|
return Math.abs(p.dot(p.sub(r, i.origin), i.normal)) < o;
|
|
10267
|
-
},
|
|
10268
|
-
var l =
|
|
10267
|
+
}, Fe.distToSegment = function(r, i, o) {
|
|
10268
|
+
var l = Fe.segmentClosestPoint(i, r, o, 0, 1);
|
|
10269
10269
|
return p.dist(i, l.pt);
|
|
10270
|
-
},
|
|
10270
|
+
}, Fe.rayClosestPoint = function(r, i, o) {
|
|
10271
10271
|
var l = p.sub(r, i), c = p.dot(l, o), d = p.add(i, p.mul(c, o));
|
|
10272
10272
|
return d;
|
|
10273
|
-
},
|
|
10274
|
-
var l =
|
|
10273
|
+
}, Fe.distToRay = function(r, i, o) {
|
|
10274
|
+
var l = Fe.rayClosestPoint(r, i, o), c = p.sub(l, r);
|
|
10275
10275
|
return p.norm(c);
|
|
10276
|
-
},
|
|
10276
|
+
}, Fe.threePointsAreFlat = function(r, i, o, l) {
|
|
10277
10277
|
var c = p.sub(i, r), d = p.sub(o, r), g = p.cross(c, d), _ = p.dot(g, g);
|
|
10278
10278
|
return _ < l;
|
|
10279
|
-
},
|
|
10279
|
+
}, Fe.segmentClosestPoint = function(r, i, o, l, c) {
|
|
10280
10280
|
var d = p.sub(o, i), g = p.norm(d);
|
|
10281
10281
|
if (g < rt.EPSILON) return { u: l, pt: i };
|
|
10282
10282
|
var _ = i, y = p.mul(1 / g, d), S = p.sub(r, _), P = p.dot(S, y);
|
|
@@ -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],
|
|
10507
|
+
var Zt = $t[1][0], Te = $t[0][1], $e = $t[2][0], we = $t[0][2], ve = $t[1][1], Ne = $t[1][1], Ue = p.dot(Zt, jt), rr = p.dot(Te, jt), mr = [-Ue, -rr], nr = p.dot(Zt, Zt) + p.dot($e, jt), sr = p.dot(Zt, Te) + p.dot(ve, jt), ir = p.dot(Zt, Te) + p.dot(Ne, jt), vr = p.dot(Te, Te) + p.dot(we, 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);
|
|
@@ -10521,7 +10521,7 @@ var Ll = { exports: {} };
|
|
|
10521
10521
|
return N.rationalCurvePoint(r, bt.rationalCurveClosestParam(r, i));
|
|
10522
10522
|
}, bt.rationalCurveClosestParam = function(r, i) {
|
|
10523
10523
|
for (var o = 1 / 0, l = 0, c = zt.rationalCurveRegularSample(r, r.controlPoints.length * r.degree, !0), d = 0, g = c.length - 1; d < g; ) {
|
|
10524
|
-
var _ = d++, y = c[_][0], S = c[_ + 1][0], P = c[_].slice(1), I = c[_ + 1].slice(1), A =
|
|
10524
|
+
var _ = d++, y = c[_][0], S = c[_ + 1][0], P = c[_].slice(1), I = c[_ + 1].slice(1), A = Fe.segmentClosestPoint(i, P, I, y, S), M = p.norm(p.sub(i, A.pt));
|
|
10525
10525
|
M < o && (o = M, l = A.u);
|
|
10526
10526
|
}
|
|
10527
10527
|
for (var T = 5, B = 0, C, R = 1e-4, z = 5e-4, U, j = r.knots[0], Y = Z.last(r.knots), J = p.normSquared(p.sub(r.controlPoints[0], Z.last(r.controlPoints))) < rt.EPSILON, X = l, G = function(D) {
|
|
@@ -10586,9 +10586,9 @@ var Ll = { exports: {} };
|
|
|
10586
10586
|
},
|
|
10587
10587
|
__class__: Tn
|
|
10588
10588
|
};
|
|
10589
|
-
var
|
|
10589
|
+
var Ke = f.eval.Check = function() {
|
|
10590
10590
|
};
|
|
10591
|
-
x["verb.eval.Check"] =
|
|
10591
|
+
x["verb.eval.Check"] = Ke, Ke.__name__ = ["verb", "eval", "Check"], Ke.isValidKnotVector = function(r, i) {
|
|
10592
10592
|
if (r.length == 0 || r.length < (i + 1) * 2) return !1;
|
|
10593
10593
|
for (var o = Z.first(r), l = 0, c = i + 1; l < c; ) {
|
|
10594
10594
|
var d = l++;
|
|
@@ -10599,23 +10599,23 @@ var Ll = { exports: {} };
|
|
|
10599
10599
|
var y = g++;
|
|
10600
10600
|
if (Math.abs(r[y] - o) > rt.EPSILON) return !1;
|
|
10601
10601
|
}
|
|
10602
|
-
return
|
|
10603
|
-
},
|
|
10602
|
+
return Ke.isNonDecreasing(r);
|
|
10603
|
+
}, Ke.isNonDecreasing = function(r) {
|
|
10604
10604
|
for (var i = Z.first(r), o = 0, l = r.length; o < l; ) {
|
|
10605
10605
|
var c = o++;
|
|
10606
10606
|
if (r[c] < i - rt.EPSILON) return !1;
|
|
10607
10607
|
i = r[c];
|
|
10608
10608
|
}
|
|
10609
10609
|
return !0;
|
|
10610
|
-
},
|
|
10610
|
+
}, Ke.isValidNurbsCurveData = function(r) {
|
|
10611
10611
|
if (r.controlPoints == null) throw new Q("Control points array cannot be null!");
|
|
10612
10612
|
if (r.degree == null) throw new Q("Degree cannot be null!");
|
|
10613
10613
|
if (r.degree < 1) throw new Q("Degree must be greater than 1!");
|
|
10614
10614
|
if (r.knots == null) throw new Q("Knots cannot be null!");
|
|
10615
10615
|
if (r.knots.length != r.controlPoints.length + r.degree + 1) throw new Q("controlPoints.length + degree + 1 must equal knots.length!");
|
|
10616
|
-
if (!
|
|
10616
|
+
if (!Ke.isValidKnotVector(r.knots, r.degree)) throw new Q("Invalid knot vector format! Should begin with degree + 1 repeats and end with degree + 1 repeats!");
|
|
10617
10617
|
return r;
|
|
10618
|
-
},
|
|
10618
|
+
}, Ke.isValidNurbsSurfaceData = function(r) {
|
|
10619
10619
|
if (r.controlPoints == null) throw new Q("Control points array cannot be null!");
|
|
10620
10620
|
if (r.degreeU == null) throw new Q("DegreeU cannot be null!");
|
|
10621
10621
|
if (r.degreeV == null) throw new Q("DegreeV cannot be null!");
|
|
@@ -10625,7 +10625,7 @@ var Ll = { exports: {} };
|
|
|
10625
10625
|
if (r.knotsV == null) throw new Q("KnotsV cannot be null!");
|
|
10626
10626
|
if (r.knotsU.length != r.controlPoints.length + r.degreeU + 1) throw new Q("controlPointsU.length + degreeU + 1 must equal knotsU.length!");
|
|
10627
10627
|
if (r.knotsV.length != r.controlPoints[0].length + r.degreeV + 1) throw new Q("controlPointsV.length + degreeV + 1 must equal knotsV.length!");
|
|
10628
|
-
if (!
|
|
10628
|
+
if (!Ke.isValidKnotVector(r.knotsU, r.degreeU) || !Ke.isValidKnotVector(r.knotsV, r.degreeV)) throw new Q("Invalid knot vector format! Should begin with degree + 1 repeats and end with degree + 1 repeats!");
|
|
10629
10629
|
return r;
|
|
10630
10630
|
};
|
|
10631
10631
|
var ue = f.eval.Divide = function() {
|
|
@@ -10959,9 +10959,9 @@ var Ll = { exports: {} };
|
|
|
10959
10959
|
}
|
|
10960
10960
|
}
|
|
10961
10961
|
for (var qt = o, $t = 1, jt = l + 1; $t < jt; ) {
|
|
10962
|
-
for (var Zt = $t++,
|
|
10963
|
-
var
|
|
10964
|
-
B[Zt][
|
|
10962
|
+
for (var Zt = $t++, Te = 0, $e = o + 1; Te < $e; ) {
|
|
10963
|
+
var we = Te++;
|
|
10964
|
+
B[Zt][we] *= qt;
|
|
10965
10965
|
}
|
|
10966
10966
|
qt *= o - Zt;
|
|
10967
10967
|
}
|
|
@@ -11216,7 +11216,7 @@ var Ll = { exports: {} };
|
|
|
11216
11216
|
var A = ht.clipRayInCoplanarTriangle(P, o, l);
|
|
11217
11217
|
if (A == null) return null;
|
|
11218
11218
|
var M = ht.mergeTriangleClipIntervals(I, A, r, i, o, l);
|
|
11219
|
-
return M == null ? null : new
|
|
11219
|
+
return M == null ? null : new Me(new Vr(M.min.uv0, M.min.uv1, M.min.point, i, l), new Vr(M.max.uv0, M.max.uv1, M.max.point, i, l));
|
|
11220
11220
|
}, ht.clipRayInCoplanarTriangle = function(r, i, o) {
|
|
11221
11221
|
for (var l = i.faces[o], c = [i.points[l[0]], i.points[l[1]], i.points[l[2]]], d = [i.uvs[l[0]], i.uvs[l[1]], i.uvs[l[2]]], g = [p.sub(d[1], d[0]), p.sub(d[2], d[1]), p.sub(d[0], d[2])], _ = [p.sub(c[1], c[0]), p.sub(c[2], c[1]), p.sub(c[0], c[2])], y = _.map(p.normalized), S = _.map(p.norm), P = null, I = null, A = 0; A < 3; ) {
|
|
11222
11222
|
var M = A++, T = c[M], B = y[M], C = ht.rays(T, B, r.origin, r.dir);
|
|
@@ -11225,14 +11225,14 @@ var Ll = { exports: {} };
|
|
|
11225
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
|
-
return I == null || P == null ? null : new
|
|
11228
|
+
return I == null || P == null ? null : new Me(P, I);
|
|
11229
11229
|
}, ht.mergeTriangleClipIntervals = function(r, i, o, l, c, d) {
|
|
11230
11230
|
if (i.min.u > r.max.u + rt.EPSILON || r.min.u > i.max.u + rt.EPSILON) return null;
|
|
11231
11231
|
var g;
|
|
11232
11232
|
r.min.u > i.min.u ? g = new se(r.min, 0) : g = new se(i.min, 1);
|
|
11233
11233
|
var _;
|
|
11234
11234
|
r.max.u < i.max.u ? _ = new se(r.max, 0) : _ = new se(i.max, 1);
|
|
11235
|
-
var y = new
|
|
11235
|
+
var y = new Me(new Vr(null, null, g.item0.point, l, d), new Vr(null, null, _.item0.point, l, d));
|
|
11236
11236
|
return g.item1 == 0 ? (y.min.uv0 = g.item0.uv, y.min.uv1 = ie.triangleUVFromPoint(c, d, g.item0.point)) : (y.min.uv0 = ie.triangleUVFromPoint(o, l, g.item0.point), y.min.uv1 = g.item0.uv), _.item1 == 0 ? (y.max.uv0 = _.item0.uv, y.max.uv1 = ie.triangleUVFromPoint(c, d, _.item0.point)) : (y.max.uv0 = ie.triangleUVFromPoint(o, l, _.item0.point), y.max.uv1 = _.item0.uv), y;
|
|
11237
11237
|
}, ht.planes = function(r, i, o, l) {
|
|
11238
11238
|
var c = p.cross(i, l);
|
|
@@ -11416,7 +11416,7 @@ var Ll = { exports: {} };
|
|
|
11416
11416
|
M += y, B[j] = Math.cos(M), T[j] = Math.sin(M);
|
|
11417
11417
|
}
|
|
11418
11418
|
for (var Y = 0, J = c.length; Y < J; ) {
|
|
11419
|
-
var X = Y++, G =
|
|
11419
|
+
var X = Y++, G = Fe.rayClosestPoint(c[X], i, o), $ = p.sub(c[X], G), tt = p.norm($), et = p.cross(o, $);
|
|
11420
11420
|
tt > rt.EPSILON && ($ = p.mul(1 / tt, $), et = p.mul(1 / tt, et)), C[0][X] = c[X];
|
|
11421
11421
|
var ot = c[X];
|
|
11422
11422
|
R[0][X] = d[X];
|
|
@@ -11474,20 +11474,20 @@ var Ll = { exports: {} };
|
|
|
11474
11474
|
var _t = $[0].length - 2, At = [-1, 1].concat(p.zeros1d(_t)), qt = p.zeros1d(_t).concat([-1, 1]);
|
|
11475
11475
|
Z.spliceAndInsert($, 1, 0, At), Z.spliceAndInsert($, $.length - 1, 0, qt);
|
|
11476
11476
|
}
|
|
11477
|
-
for (var $t = r[0].length, jt = [], Zt = (1 - G[G.length - i - 2]) / i,
|
|
11478
|
-
var
|
|
11477
|
+
for (var $t = r[0].length, jt = [], Zt = (1 - G[G.length - i - 2]) / i, Te = G[i + 1] / i, $e = 0; $e < $t; ) {
|
|
11478
|
+
var we = [$e++], ve;
|
|
11479
11479
|
if (!C) ve = r.map(/* @__PURE__ */ function(ir) {
|
|
11480
11480
|
return function(vr) {
|
|
11481
11481
|
return vr[ir[0]];
|
|
11482
11482
|
};
|
|
11483
|
-
}(
|
|
11483
|
+
}(we));
|
|
11484
11484
|
else {
|
|
11485
|
-
ve = [r[0][
|
|
11486
|
-
for (var
|
|
11487
|
-
var rr =
|
|
11488
|
-
ve.push(r[rr][
|
|
11485
|
+
ve = [r[0][we[0]]], ve.push(Te * l[we[0]]);
|
|
11486
|
+
for (var Ne = 1, Ue = r.length - 1; Ne < Ue; ) {
|
|
11487
|
+
var rr = Ne++;
|
|
11488
|
+
ve.push(r[rr][we[0]]);
|
|
11489
11489
|
}
|
|
11490
|
-
ve.push(Zt * c[
|
|
11490
|
+
ve.push(Zt * c[we[0]]), ve.push(Z.last(r)[we[0]]);
|
|
11491
11491
|
}
|
|
11492
11492
|
var mr = Ot.solve($, ve);
|
|
11493
11493
|
jt.push(mr);
|
|
@@ -11529,7 +11529,7 @@ var Ll = { exports: {} };
|
|
|
11529
11529
|
}
|
|
11530
11530
|
for (var d, g = [], _ = 0; _ < r.length; ) {
|
|
11531
11531
|
var y = r[_];
|
|
11532
|
-
++_, g.push(new
|
|
11532
|
+
++_, g.push(new Me(Z.first(y.knots), Z.last(y.knots)));
|
|
11533
11533
|
}
|
|
11534
11534
|
d = g;
|
|
11535
11535
|
for (var S = 0, P = r.length; S < P; ) {
|
|
@@ -11583,72 +11583,72 @@ var Ll = { exports: {} };
|
|
|
11583
11583
|
var jt = qt++;
|
|
11584
11584
|
C[jt] = At;
|
|
11585
11585
|
}
|
|
11586
|
-
for (var Zt = 0,
|
|
11587
|
-
var
|
|
11588
|
-
S[
|
|
11586
|
+
for (var Zt = 0, Te = l + 1; Zt < Te; ) {
|
|
11587
|
+
var $e = Zt++;
|
|
11588
|
+
S[$e] = d[$e];
|
|
11589
11589
|
}
|
|
11590
11590
|
for (; D < A; ) {
|
|
11591
|
-
for (var
|
|
11592
|
-
var ve = D -
|
|
11591
|
+
for (var we = D; D < A && c[D] == c[D + 1]; ) D = D + 1;
|
|
11592
|
+
var ve = D - we + 1, Ne = c[D], Ue = nt;
|
|
11593
11593
|
nt = l - ve;
|
|
11594
11594
|
var rr;
|
|
11595
|
-
|
|
11595
|
+
Ue > 0 ? rr = Math.floor((Ue + 2) / 2) : rr = 1;
|
|
11596
11596
|
var mr;
|
|
11597
11597
|
if (nt > 0 ? mr = Math.floor(M - (nt + 1) / 2) : mr = M, nt > 0) {
|
|
11598
|
-
for (var nr =
|
|
11598
|
+
for (var nr = Ne - At, sr = [], ir = l; ir > ve; )
|
|
11599
11599
|
sr[ir - ve - 1] = nr / (c[mt + ir] - At), ir--;
|
|
11600
11600
|
for (var vr = 1, On = nt + 1; vr < On; ) {
|
|
11601
|
-
for (var nn = vr++, su = nt - nn,
|
|
11602
|
-
S[sn] = p.add(p.mul(sr[sn -
|
|
11601
|
+
for (var nn = vr++, su = nt - nn, ki = ve + nn, sn = l; sn >= ki; )
|
|
11602
|
+
S[sn] = p.add(p.mul(sr[sn - ki], S[sn]), p.mul(1 - sr[sn - ki], S[sn - 1])), sn--;
|
|
11603
11603
|
I[su] = S[l];
|
|
11604
11604
|
}
|
|
11605
11605
|
}
|
|
11606
|
-
for (var
|
|
11607
|
-
var Bn =
|
|
11606
|
+
for (var wo = rr, iu = M + 1; wo < iu; ) {
|
|
11607
|
+
var Bn = wo++;
|
|
11608
11608
|
P[Bn] = p.zeros1d(_);
|
|
11609
|
-
for (var au = yt.imin(l, Bn),
|
|
11610
|
-
var
|
|
11611
|
-
P[Bn] = p.add(P[Bn], p.mul(y[Bn][
|
|
11609
|
+
for (var au = yt.imin(l, Bn), So = yt.imax(0, Bn - g), ou = au + 1; So < ou; ) {
|
|
11610
|
+
var Io = So++;
|
|
11611
|
+
P[Bn] = p.add(P[Bn], p.mul(y[Bn][Io], S[Io]));
|
|
11612
11612
|
}
|
|
11613
11613
|
}
|
|
11614
|
-
if (
|
|
11615
|
-
for (var
|
|
11616
|
-
for (var
|
|
11614
|
+
if (Ue > 1)
|
|
11615
|
+
for (var Mi = dt - 2, Ti = dt, Po = Ne - At, lu = (Ne - C[dt - 1]) / Po, Eo = 1; Eo < Ue; ) {
|
|
11616
|
+
for (var Ni = Eo++, br = Mi, an = Ti, Yr = an - dt + 1; an - br > Ni; ) {
|
|
11617
11617
|
if (br < _t) {
|
|
11618
|
-
var hu = (
|
|
11618
|
+
var hu = (Ne - C[br]) / (At - C[br]);
|
|
11619
11619
|
B[br] = p.lerp(hu, B[br], B[br - 1]);
|
|
11620
11620
|
}
|
|
11621
11621
|
if (an >= rr) {
|
|
11622
|
-
if (an -
|
|
11623
|
-
var uu = (
|
|
11622
|
+
if (an - Ni <= dt - M + Ue) {
|
|
11623
|
+
var uu = (Ne - C[an - Ni]) / Po;
|
|
11624
11624
|
P[Yr] = p.lerp(uu, P[Yr], P[Yr + 1]);
|
|
11625
11625
|
}
|
|
11626
11626
|
} else P[Yr] = p.lerp(lu, P[Yr], P[Yr + 1]);
|
|
11627
11627
|
br = br + 1, an = an - 1, Yr = Yr - 1;
|
|
11628
11628
|
}
|
|
11629
|
-
|
|
11629
|
+
Mi = Mi - 1, Ti = Ti + 1;
|
|
11630
11630
|
}
|
|
11631
11631
|
if (mt != l)
|
|
11632
|
-
for (var
|
|
11633
|
-
|
|
11634
|
-
for (var
|
|
11635
|
-
var pu =
|
|
11632
|
+
for (var Ao = 0, cu = M - Ue; Ao < cu; )
|
|
11633
|
+
Ao++, C[dt] = At, dt = dt + 1;
|
|
11634
|
+
for (var ko = rr, du = mr + 1; ko < du; ) {
|
|
11635
|
+
var pu = ko++;
|
|
11636
11636
|
B[_t] = P[pu], _t = _t + 1;
|
|
11637
11637
|
}
|
|
11638
11638
|
if (D < A) {
|
|
11639
|
-
for (var
|
|
11640
|
-
var
|
|
11641
|
-
S[
|
|
11639
|
+
for (var Mo = 0; Mo < nt; ) {
|
|
11640
|
+
var To = Mo++;
|
|
11641
|
+
S[To] = I[To];
|
|
11642
11642
|
}
|
|
11643
|
-
for (var
|
|
11644
|
-
var
|
|
11645
|
-
S[
|
|
11643
|
+
for (var No = nt, mu = l + 1; No < mu; ) {
|
|
11644
|
+
var Lo = No++;
|
|
11645
|
+
S[Lo] = d[D - l + Lo];
|
|
11646
11646
|
}
|
|
11647
|
-
mt = D, D = D + 1, At =
|
|
11647
|
+
mt = D, D = D + 1, At = Ne;
|
|
11648
11648
|
} else
|
|
11649
|
-
for (var
|
|
11650
|
-
var fu =
|
|
11651
|
-
C[dt + fu] =
|
|
11649
|
+
for (var Co = 0, gu = M + 1; Co < gu; ) {
|
|
11650
|
+
var fu = Co++;
|
|
11651
|
+
C[dt + fu] = Ne;
|
|
11652
11652
|
}
|
|
11653
11653
|
}
|
|
11654
11654
|
return new Ht(i, C, B);
|
|
@@ -11781,7 +11781,7 @@ var Ll = { exports: {} };
|
|
|
11781
11781
|
return zt.rationalCurveAdaptiveSampleRange(r, r.knots[0], Z.last(r.knots), i, o);
|
|
11782
11782
|
}, zt.rationalCurveAdaptiveSampleRange = function(r, i, o, l, c) {
|
|
11783
11783
|
var d = N.rationalCurvePoint(r, i), g = N.rationalCurvePoint(r, o), _ = 0.5 + 0.2 * Math.random(), y = i + (o - i) * _, S = N.rationalCurvePoint(r, y), P = p.sub(d, g), I = p.sub(d, S);
|
|
11784
|
-
if (p.dot(P, P) < l && p.dot(I, I) > l || !
|
|
11784
|
+
if (p.dot(P, P) < l && p.dot(I, I) > l || !Fe.threePointsAreFlat(d, S, g, l)) {
|
|
11785
11785
|
var A = i + (o - i) * 0.5, M = zt.rationalCurveAdaptiveSampleRange(r, i, A, l, c), T = zt.rationalCurveAdaptiveSampleRange(r, A, o, l, c);
|
|
11786
11786
|
return M.slice(0, -1).concat(T);
|
|
11787
11787
|
} else return c ? [[i].concat(d), [o].concat(g)] : [d, g];
|
|
@@ -11811,7 +11811,7 @@ var Ll = { exports: {} };
|
|
|
11811
11811
|
for (var g = Z.last(r.knotsU), _ = r.knotsU[0], y = Z.last(r.knotsV), S = r.knotsV[0], P = (g - _) / c, I = (y - S) / d, A = [], M = [], T = 0, B = d + 1; T < B; ) {
|
|
11812
11812
|
for (var C = T++, R = [], z = 0, U = c + 1; z < U; ) {
|
|
11813
11813
|
var j = z++, Y = _ + P * j, J = S + I * C, X = N.rationalSurfaceDerivatives(r, Y, J, 1), G = p.normalized(p.cross(X[0][1], X[1][0]));
|
|
11814
|
-
R.push(new
|
|
11814
|
+
R.push(new De(X[0][0], G, [Y, J], -1, p.isZero(G)));
|
|
11815
11815
|
}
|
|
11816
11816
|
M.push(R);
|
|
11817
11817
|
}
|
|
@@ -11855,7 +11855,7 @@ var Ll = { exports: {} };
|
|
|
11855
11855
|
var yr = f.core.AdaptiveRefinementNode = function(r, i, o) {
|
|
11856
11856
|
if (this.srf = r, o == null ? this.neighbors = [null, null, null, null] : this.neighbors = o, this.corners = i, this.corners == null) {
|
|
11857
11857
|
var l = r.knotsU[0], c = Z.last(r.knotsU), d = r.knotsV[0], g = Z.last(r.knotsV);
|
|
11858
|
-
this.corners = [
|
|
11858
|
+
this.corners = [De.fromUv(l, d), De.fromUv(c, d), De.fromUv(c, g), De.fromUv(l, g)];
|
|
11859
11859
|
}
|
|
11860
11860
|
};
|
|
11861
11861
|
x["verb.eval.AdaptiveRefinementNode"] = yr, yr.__name__ = ["verb", "eval", "AdaptiveRefinementNode"], yr.prototype = {
|
|
@@ -11877,7 +11877,7 @@ var Ll = { exports: {} };
|
|
|
11877
11877
|
},
|
|
11878
11878
|
evalSrf: function(r, i, o) {
|
|
11879
11879
|
var l = N.rationalSurfaceDerivatives(this.srf, r, i, 1), c = l[0][0], d = p.cross(l[0][1], l[1][0]), g = p.isZero(d);
|
|
11880
|
-
return g || (d = p.normalized(d)), o != null ? (o.degen = g, o.point = c, o.normal = d, o) : new
|
|
11880
|
+
return g || (d = p.normalized(d)), o != null ? (o.degen = g, o.point = c, o.normal = d, o) : new De(c, d, [r, i], -1, g);
|
|
11881
11881
|
},
|
|
11882
11882
|
getEdgeCorners: function(r) {
|
|
11883
11883
|
if (this.isLeaf()) return [this.corners[r]];
|
|
@@ -12069,7 +12069,7 @@ var Ll = { exports: {} };
|
|
|
12069
12069
|
__class__: Ln
|
|
12070
12070
|
};
|
|
12071
12071
|
var Nt = f.geom.NurbsCurve = function(r) {
|
|
12072
|
-
this._data =
|
|
12072
|
+
this._data = Ke.isValidNurbsCurveData(r);
|
|
12073
12073
|
};
|
|
12074
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)));
|
|
@@ -12095,7 +12095,7 @@ var Ll = { exports: {} };
|
|
|
12095
12095
|
return new Nt(this._data);
|
|
12096
12096
|
},
|
|
12097
12097
|
domain: function() {
|
|
12098
|
-
return new
|
|
12098
|
+
return new Me(Z.first(this._data.knots), Z.last(this._data.knots));
|
|
12099
12099
|
},
|
|
12100
12100
|
transform: function(r) {
|
|
12101
12101
|
return new Nt(yt.rationalCurveTransform(this._data, r));
|
|
@@ -12235,7 +12235,7 @@ var Ll = { exports: {} };
|
|
|
12235
12235
|
__class__: Cn
|
|
12236
12236
|
};
|
|
12237
12237
|
var kt = f.geom.NurbsSurface = function(r) {
|
|
12238
|
-
this._data =
|
|
12238
|
+
this._data = Ke.isValidNurbsSurfaceData(r);
|
|
12239
12239
|
};
|
|
12240
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)));
|
|
@@ -12275,10 +12275,10 @@ var Ll = { exports: {} };
|
|
|
12275
12275
|
return new kt(this.asNurbs());
|
|
12276
12276
|
},
|
|
12277
12277
|
domainU: function() {
|
|
12278
|
-
return new
|
|
12278
|
+
return new Me(Z.first(this._data.knotsU), Z.last(this._data.knotsU));
|
|
12279
12279
|
},
|
|
12280
12280
|
domainV: function() {
|
|
12281
|
-
return new
|
|
12281
|
+
return new Me(Z.first(this._data.knotsV), Z.last(this._data.knotsV));
|
|
12282
12282
|
},
|
|
12283
12283
|
point: function(r, i) {
|
|
12284
12284
|
return N.rationalSurfacePoint(this._data, r, i);
|
|
@@ -12525,10 +12525,10 @@ var Ll = { exports: {} };
|
|
|
12525
12525
|
function er(r) {
|
|
12526
12526
|
return r instanceof Array ? function() {
|
|
12527
12527
|
return L.iter(r);
|
|
12528
|
-
} : typeof r.iterator == "function" ?
|
|
12528
|
+
} : typeof r.iterator == "function" ? Ve(r, r.iterator) : r.iterator;
|
|
12529
12529
|
}
|
|
12530
|
-
var
|
|
12531
|
-
function
|
|
12530
|
+
var Pi, eu = 0;
|
|
12531
|
+
function Ve(r, i) {
|
|
12532
12532
|
if (i == null) return null;
|
|
12533
12533
|
i.__id__ == null && (i.__id__ = eu++);
|
|
12534
12534
|
var o;
|
|
@@ -12537,11 +12537,11 @@ var Ll = { exports: {} };
|
|
|
12537
12537
|
}, o.scope = r, o.method = i, r.hx__closures__[i.__id__] = o), o;
|
|
12538
12538
|
}
|
|
12539
12539
|
x.Math = Math, String.prototype.__class__ = x.String = String, String.__name__ = ["String"], x.Array = Array, Array.__name__ = ["Array"], Date.prototype.__class__ = x.Date = Date, Date.__name__ = ["Date"];
|
|
12540
|
-
var ru = x.Int = { __name__: ["Int"] }, nu = x.Dynamic = { __name__: ["Dynamic"] },
|
|
12541
|
-
|
|
12542
|
-
var
|
|
12543
|
-
|
|
12544
|
-
var
|
|
12540
|
+
var ru = x.Int = { __name__: ["Int"] }, nu = x.Dynamic = { __name__: ["Dynamic"] }, yo = x.Float = Number;
|
|
12541
|
+
yo.__name__ = ["Float"];
|
|
12542
|
+
var vo = x.Bool = Boolean;
|
|
12543
|
+
vo.__ename__ = ["Bool"];
|
|
12544
|
+
var bo = x.Class = { __name__: ["Class"] }, xo = {};
|
|
12545
12545
|
Array.prototype.map == null && (Array.prototype.map = function(r) {
|
|
12546
12546
|
for (var i = [], o = 0, l = this.length; o < l; ) {
|
|
12547
12547
|
var c = o++;
|
|
@@ -12555,9 +12555,9 @@ var Ll = { exports: {} };
|
|
|
12555
12555
|
}
|
|
12556
12556
|
return i;
|
|
12557
12557
|
});
|
|
12558
|
-
var
|
|
12559
|
-
|
|
12560
|
-
var
|
|
12558
|
+
var Ei = {}, Gs = w.ArrayBuffer || he;
|
|
12559
|
+
Gs.prototype.slice == null && (Gs.prototype.slice = he.sliceImpl), w.DataView;
|
|
12560
|
+
var Ai = w.Uint8Array || ur._new;
|
|
12561
12561
|
(function(r, i) {
|
|
12562
12562
|
if (r.setImmediate)
|
|
12563
12563
|
return;
|
|
@@ -12642,14 +12642,14 @@ var Ll = { exports: {} };
|
|
|
12642
12642
|
})(new Function("return this")()), Kt.USE_CACHE = !1, Kt.USE_ENUM_INDEX = !1, Kt.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:", Xt.DEFAULT_RESOLVER = ct, Xt.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:", Bt.count = 0, le.i64tmp = function(r) {
|
|
12643
12643
|
var i, o = new Wt(0, 0);
|
|
12644
12644
|
return i = o, i;
|
|
12645
|
-
}(), Tt.__toStr = {}.toString, ur.BYTES_PER_ELEMENT = 1, Pt.queue = new V(), Ft.memo = new wt(), rt.TOLERANCE = 1e-6, rt.EPSILON = 1e-10, rt.VERSION = "2.0.0", bt.Tvalues = [[], [], [-0.5773502691896257, 0.5773502691896257], [0, -0.7745966692414834, 0.7745966692414834], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], bt.Cvalues = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], St.THREADS = 1, St._init = !1, Wr.basePath = "", rn.uuid = 0, Vs.main();
|
|
12645
|
+
}(), Tt.__toStr = {}.toString, ur.BYTES_PER_ELEMENT = 1, Pt.queue = new V(), Ft.memo = new wt(), rt.TOLERANCE = 1e-6, rt.EPSILON = 1e-10, rt.VERSION = "2.0.0", bt.Tvalues = [[], [], [-0.5773502691896257, 0.5773502691896257], [0, -0.7745966692414834, 0.7745966692414834], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], bt.Cvalues = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], St.THREADS = 1, St._init = !1, Wr.basePath = "", rn.uuid = 0, Us.main();
|
|
12646
12646
|
}(typeof console < "u" ? console : { log: function() {
|
|
12647
12647
|
} }, e, typeof u < "u" ? u : typeof s < "u" ? s : typeof self < "u" ? self : this), e;
|
|
12648
12648
|
});
|
|
12649
12649
|
})(Ll);
|
|
12650
12650
|
var hc = Ll.exports;
|
|
12651
12651
|
const Fn = /* @__PURE__ */ lc(hc);
|
|
12652
|
-
class
|
|
12652
|
+
class Fi {
|
|
12653
12653
|
constructor() {
|
|
12654
12654
|
this.c0 = 0, this.c1 = 0, this.c2 = 0, this.c3 = 0;
|
|
12655
12655
|
}
|
|
@@ -12685,7 +12685,7 @@ class Ri {
|
|
|
12685
12685
|
return this.c0 + this.c1 * t + this.c2 * e + this.c3 * s;
|
|
12686
12686
|
}
|
|
12687
12687
|
}
|
|
12688
|
-
let uc = class extends
|
|
12688
|
+
let uc = class extends Vs {
|
|
12689
12689
|
/**
|
|
12690
12690
|
* Constructs a new Catmull-Rom curve.
|
|
12691
12691
|
*
|
|
@@ -12695,7 +12695,7 @@ let uc = class extends Fs {
|
|
|
12695
12695
|
* @param tension - Tension of the curve.
|
|
12696
12696
|
*/
|
|
12697
12697
|
constructor(t = [], e = !1, s = "centripetal", a = 0.5) {
|
|
12698
|
-
super(), this.isCatmullRomCurve3d = !0, this.type = "CatmullRomCurve3d", this._tmp = new K(), this._px = new
|
|
12698
|
+
super(), this.isCatmullRomCurve3d = !0, this.type = "CatmullRomCurve3d", this._tmp = new K(), this._px = new Fi(), this._py = new Fi(), this._pz = new Fi(), this._points = t.map((h) => new W(h)), this._closed = e, this._curveType = s, this._tension = a;
|
|
12699
12699
|
}
|
|
12700
12700
|
/**
|
|
12701
12701
|
* An array of 3D points defining the curve.
|
|
@@ -12871,7 +12871,7 @@ class Un {
|
|
|
12871
12871
|
*/
|
|
12872
12872
|
point(t) {
|
|
12873
12873
|
const e = this._controlPoints.map((s) => [s.x, s.y, s.z]);
|
|
12874
|
-
return
|
|
12874
|
+
return Qs(
|
|
12875
12875
|
t,
|
|
12876
12876
|
this._degree,
|
|
12877
12877
|
this._knots,
|
|
@@ -12965,7 +12965,7 @@ class Un {
|
|
|
12965
12965
|
return Un.byPoints(a, e, s);
|
|
12966
12966
|
}
|
|
12967
12967
|
}
|
|
12968
|
-
class vn extends
|
|
12968
|
+
class vn extends Vs {
|
|
12969
12969
|
constructor(t, e, s, a, h) {
|
|
12970
12970
|
super();
|
|
12971
12971
|
const u = arguments.length;
|
|
@@ -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 || {}), 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 || {}),
|
|
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 || {}), Ae = /* @__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))(Ae || {}), 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;
|
|
@@ -13233,7 +13233,7 @@ let cc = class Rl {
|
|
|
13233
13233
|
* The bounding box (in world coordinate system coordinates) of the viewport.
|
|
13234
13234
|
*/
|
|
13235
13235
|
get box() {
|
|
13236
|
-
const t = new
|
|
13236
|
+
const t = new ke();
|
|
13237
13237
|
return t.setFromCenterAndSize(this.centerPoint, {
|
|
13238
13238
|
x: this.width,
|
|
13239
13239
|
y: this.height
|
|
@@ -13269,7 +13269,7 @@ let cc = class Rl {
|
|
|
13269
13269
|
* The bounding box (in display coordinate system coordinates) of the Model Space view within the viewport.
|
|
13270
13270
|
*/
|
|
13271
13271
|
get viewBox() {
|
|
13272
|
-
const t = new
|
|
13272
|
+
const t = new ke();
|
|
13273
13273
|
return t.setFromCenterAndSize(this.viewCenter, {
|
|
13274
13274
|
x: this.viewWidth,
|
|
13275
13275
|
y: this.viewHeight
|
|
@@ -13292,14 +13292,14 @@ let cc = class Rl {
|
|
|
13292
13292
|
return this.id = t.id, this.groupId = t.groupId, this.number = t.number, this.centerPoint.copy(t.centerPoint), this.height = t.height, this.width = t.width, this.viewCenter.copy(t.viewCenter), this.viewHeight = t.viewHeight, this;
|
|
13293
13293
|
}
|
|
13294
13294
|
};
|
|
13295
|
-
var _n = 256, Fl = [],
|
|
13295
|
+
var _n = 256, Fl = [], Ho = 256, Xs;
|
|
13296
13296
|
for (; _n--; ) Fl[_n] = (_n + 256).toString(16).substring(1);
|
|
13297
13297
|
function dc(n) {
|
|
13298
13298
|
var t = 0, e = 11;
|
|
13299
|
-
if (!
|
|
13300
|
-
for (
|
|
13301
|
-
|
|
13302
|
-
return
|
|
13299
|
+
if (!Xs || _n + e > Ho * 2)
|
|
13300
|
+
for (Xs = "", _n = 0; t < Ho; t++)
|
|
13301
|
+
Xs += Fl[Math.random() * 256 | 0];
|
|
13302
|
+
return Xs.substring(_n, _n++ + e);
|
|
13303
13303
|
}
|
|
13304
13304
|
class tn {
|
|
13305
13305
|
/**
|
|
@@ -13314,7 +13314,7 @@ class tn {
|
|
|
13314
13314
|
* ```
|
|
13315
13315
|
*/
|
|
13316
13316
|
constructor(t, e) {
|
|
13317
|
-
t = t || {},
|
|
13317
|
+
t = t || {}, zs(t, { objectId: dc() }), this._attrs = new Iu(t, e), this._xDataMap = /* @__PURE__ */ new Map();
|
|
13318
13318
|
}
|
|
13319
13319
|
/**
|
|
13320
13320
|
* Gets the attributes object for this AcDbObject.
|
|
@@ -13625,9 +13625,9 @@ class tn {
|
|
|
13625
13625
|
close() {
|
|
13626
13626
|
}
|
|
13627
13627
|
}
|
|
13628
|
-
const
|
|
13628
|
+
const za = class za extends tn {
|
|
13629
13629
|
constructor() {
|
|
13630
|
-
super(...arguments), this._lineType =
|
|
13630
|
+
super(...arguments), this._lineType = Ci, this._visibility = !0, this._transparency = new Pa();
|
|
13631
13631
|
}
|
|
13632
13632
|
/**
|
|
13633
13633
|
* Gets the type name of this entity.
|
|
@@ -13683,7 +13683,7 @@ const Ba = class Ba extends tn {
|
|
|
13683
13683
|
* ```
|
|
13684
13684
|
*/
|
|
13685
13685
|
get color() {
|
|
13686
|
-
return this._color == null && (this._color = new
|
|
13686
|
+
return this._color == null && (this._color = new xe(), this.database.cecolor && this._color.copy(this.database.cecolor)), this._color;
|
|
13687
13687
|
}
|
|
13688
13688
|
/**
|
|
13689
13689
|
* Sets the color information for this entity.
|
|
@@ -13696,7 +13696,7 @@ const Ba = class Ba extends tn {
|
|
|
13696
13696
|
* ```
|
|
13697
13697
|
*/
|
|
13698
13698
|
set color(t) {
|
|
13699
|
-
this._color == null && (this._color = new
|
|
13699
|
+
this._color == null && (this._color = new xe()), this._color.copy(t);
|
|
13700
13700
|
}
|
|
13701
13701
|
/**
|
|
13702
13702
|
* Gets the RGB color of this entity.
|
|
@@ -13745,7 +13745,7 @@ const Ba = class Ba extends tn {
|
|
|
13745
13745
|
* ```
|
|
13746
13746
|
*/
|
|
13747
13747
|
set lineType(t) {
|
|
13748
|
-
this._lineType = t ||
|
|
13748
|
+
this._lineType = t || Ci;
|
|
13749
13749
|
}
|
|
13750
13750
|
/**
|
|
13751
13751
|
* Gets the line weight used by 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
|
|
13877
|
+
this._layer == null && (this._layer = this.database.clayer ?? "0"), this._color == null && (this._color = new xe(), 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
|
|
@@ -14140,7 +14140,7 @@ const Ba = class Ba extends tn {
|
|
|
14140
14140
|
* ```
|
|
14141
14141
|
*/
|
|
14142
14142
|
getLineType() {
|
|
14143
|
-
if (this.lineType ==
|
|
14143
|
+
if (this.lineType == Ci) {
|
|
14144
14144
|
const t = this.database.tables.layerTable.getAt(this.layer);
|
|
14145
14145
|
if (t && t.linetype)
|
|
14146
14146
|
return {
|
|
@@ -14149,14 +14149,14 @@ const Ba = class Ba extends tn {
|
|
|
14149
14149
|
};
|
|
14150
14150
|
} else return this.lineType == Nu ? {
|
|
14151
14151
|
type: "ByBlock",
|
|
14152
|
-
name:
|
|
14152
|
+
name: Di
|
|
14153
14153
|
} : {
|
|
14154
14154
|
type: "UserSpecified",
|
|
14155
14155
|
name: this.lineType
|
|
14156
14156
|
};
|
|
14157
14157
|
return {
|
|
14158
14158
|
type: "UserSpecified",
|
|
14159
|
-
name:
|
|
14159
|
+
name: Di
|
|
14160
14160
|
};
|
|
14161
14161
|
}
|
|
14162
14162
|
/**
|
|
@@ -14197,14 +14197,14 @@ const Ba = class Ba extends tn {
|
|
|
14197
14197
|
t && (t.objectId = this.objectId, this.attrs.has("ownerId") && (t.ownerId = this.ownerId), t.layerName = this.layer, t.visible = this.visibility);
|
|
14198
14198
|
}
|
|
14199
14199
|
};
|
|
14200
|
-
|
|
14201
|
-
let Ce = Ba;
|
|
14202
|
-
const za = class za extends Ce {
|
|
14203
|
-
};
|
|
14204
|
-
za.typeName = "Curve";
|
|
14200
|
+
za.typeName = "Entity";
|
|
14205
14201
|
let Oe = za;
|
|
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
14202
|
const Ra = class Ra extends Oe {
|
|
14203
|
+
};
|
|
14204
|
+
Ra.typeName = "Curve";
|
|
14205
|
+
let Be = Ra;
|
|
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
|
+
const Fa = class Fa extends Be {
|
|
14208
14208
|
/**
|
|
14209
14209
|
* Creates a new empty 2d polyline entity.
|
|
14210
14210
|
*/
|
|
@@ -14441,10 +14441,10 @@ const Ra = class Ra extends Oe {
|
|
|
14441
14441
|
), t.lines(e);
|
|
14442
14442
|
}
|
|
14443
14443
|
};
|
|
14444
|
-
|
|
14445
|
-
let
|
|
14444
|
+
Fa.typeName = "2dPolyline";
|
|
14445
|
+
let ta = Fa;
|
|
14446
14446
|
var pc = /* @__PURE__ */ ((n) => (n[n.Vertex = 0] = "Vertex", n[n.CurveFitVertex = 1] = "CurveFitVertex", n[n.SplineFitVertex = 8] = "SplineFitVertex", n[n.SplineCtlVertex = 9] = "SplineCtlVertex", n))(pc || {});
|
|
14447
|
-
const
|
|
14447
|
+
const Va = class Va extends Oe {
|
|
14448
14448
|
/**
|
|
14449
14449
|
* Creates a new 2d vertex entity.
|
|
14450
14450
|
*/
|
|
@@ -14587,10 +14587,10 @@ const Fa = class Fa extends Ce {
|
|
|
14587
14587
|
subWorldDraw(t) {
|
|
14588
14588
|
}
|
|
14589
14589
|
};
|
|
14590
|
-
|
|
14591
|
-
let
|
|
14592
|
-
var
|
|
14593
|
-
const
|
|
14590
|
+
Va.typeName = "2dVertex";
|
|
14591
|
+
let qo = Va;
|
|
14592
|
+
var ei = /* @__PURE__ */ ((n) => (n[n.SimplePoly = 0] = "SimplePoly", n[n.QuadSplinePoly = 1] = "QuadSplinePoly", n[n.CubicSplinePoly = 2] = "CubicSplinePoly", n))(ei || {});
|
|
14593
|
+
const Ua = class Ua extends Be {
|
|
14594
14594
|
/**
|
|
14595
14595
|
* Creates a new empty 2d polyline entity.
|
|
14596
14596
|
*/
|
|
@@ -14785,10 +14785,10 @@ const Va = class Va extends Oe {
|
|
|
14785
14785
|
), t.lines(e);
|
|
14786
14786
|
}
|
|
14787
14787
|
};
|
|
14788
|
-
|
|
14789
|
-
let
|
|
14788
|
+
Ua.typeName = "3dPolyline";
|
|
14789
|
+
let ea = Ua;
|
|
14790
14790
|
var mc = /* @__PURE__ */ ((n) => (n[n.SimpleVertex = 0] = "SimpleVertex", n[n.ControlVertex = 1] = "ControlVertex", n[n.FitVertex = 2] = "FitVertex", n))(mc || {});
|
|
14791
|
-
const
|
|
14791
|
+
const ja = class ja extends Oe {
|
|
14792
14792
|
/**
|
|
14793
14793
|
* Creates a new 3d vertex entity.
|
|
14794
14794
|
*/
|
|
@@ -14875,9 +14875,9 @@ const Ua = class Ua extends Ce {
|
|
|
14875
14875
|
subWorldDraw(t) {
|
|
14876
14876
|
}
|
|
14877
14877
|
};
|
|
14878
|
-
|
|
14879
|
-
let
|
|
14880
|
-
const
|
|
14878
|
+
ja.typeName = "3dVertex";
|
|
14879
|
+
let Xo = ja;
|
|
14880
|
+
const Ga = class Ga extends Be {
|
|
14881
14881
|
/**
|
|
14882
14882
|
* Creates a new arc entity.
|
|
14883
14883
|
*
|
|
@@ -15355,10 +15355,10 @@ const ja = class ja extends Oe {
|
|
|
15355
15355
|
return t.circularArc(this._geo);
|
|
15356
15356
|
}
|
|
15357
15357
|
};
|
|
15358
|
-
|
|
15359
|
-
let
|
|
15358
|
+
Ga.typeName = "Arc";
|
|
15359
|
+
let ra = Ga;
|
|
15360
15360
|
var gc = /* @__PURE__ */ ((n) => (n[n.LEFT = 0] = "LEFT", n[n.CENTER = 1] = "CENTER", n[n.RIGHT = 2] = "RIGHT", n[n.ALIGNED = 3] = "ALIGNED", n[n.MIDDLE = 4] = "MIDDLE", n[n.FIT = 5] = "FIT", n))(gc || {}), fc = /* @__PURE__ */ ((n) => (n[n.BASELINE = 0] = "BASELINE", n[n.BOTTOM = 1] = "BOTTOM", n[n.MIDDLE = 2] = "MIDDLE", n[n.TOP = 3] = "TOP", n))(fc || {});
|
|
15361
|
-
const
|
|
15361
|
+
const Wa = class Wa extends Oe {
|
|
15362
15362
|
/**
|
|
15363
15363
|
* Creates a new text entity.
|
|
15364
15364
|
*
|
|
@@ -15862,15 +15862,15 @@ const Ga = class Ga extends Ce {
|
|
|
15862
15862
|
rotation: this.rotation,
|
|
15863
15863
|
// MText draw text from top to bottom.
|
|
15864
15864
|
drawingDirection: $r.BOTTOM_TO_TOP,
|
|
15865
|
-
attachmentPoint:
|
|
15865
|
+
attachmentPoint: Ae.BottomLeft
|
|
15866
15866
|
};
|
|
15867
15867
|
return t.mtext(s, this.getTextStyle(), e);
|
|
15868
15868
|
}
|
|
15869
15869
|
};
|
|
15870
|
-
|
|
15871
|
-
let
|
|
15870
|
+
Wa.typeName = "Text";
|
|
15871
|
+
let Cs = Wa;
|
|
15872
15872
|
var me = /* @__PURE__ */ ((n) => (n[n.Invisible = 1] = "Invisible", n[n.Const = 2] = "Const", n[n.Verifiable = 4] = "Verifiable", n[n.Preset = 8] = "Preset", n))(me || {}), Rr = /* @__PURE__ */ ((n) => (n[n.MultiLine = 2] = "MultiLine", n[n.ConstMultiLine = 4] = "ConstMultiLine", n))(Rr || {});
|
|
15873
|
-
const
|
|
15873
|
+
const Ha = class Ha extends Cs {
|
|
15874
15874
|
constructor() {
|
|
15875
15875
|
super(), this._flags = 0, this._prompt = "", this._mtextFlag = 0, this._tag = "", this._fieldLength = 0, this._lockPositionInBlock = !1, this._isReallyLocked = !1;
|
|
15876
15876
|
}
|
|
@@ -16046,9 +16046,9 @@ const Wa = class Wa extends Ls {
|
|
|
16046
16046
|
subWorldDraw(t) {
|
|
16047
16047
|
}
|
|
16048
16048
|
};
|
|
16049
|
-
|
|
16050
|
-
let
|
|
16051
|
-
const
|
|
16049
|
+
Ha.typeName = "AttDef";
|
|
16050
|
+
let na = Ha;
|
|
16051
|
+
const qa = class qa extends Cs {
|
|
16052
16052
|
constructor() {
|
|
16053
16053
|
super(), this._flags = 0, this._mtextFlag = 0, this._tag = "", this._fieldLength = 0, this._lockPositionInBlock = !1, this._isReallyLocked = !1;
|
|
16054
16054
|
}
|
|
@@ -16199,9 +16199,9 @@ const Ha = class Ha extends Ls {
|
|
|
16199
16199
|
this._mtext = t, this.isMTextAttribute = t != null;
|
|
16200
16200
|
}
|
|
16201
16201
|
};
|
|
16202
|
-
|
|
16203
|
-
let
|
|
16204
|
-
const
|
|
16202
|
+
qa.typeName = "Attrib";
|
|
16203
|
+
let sa = qa;
|
|
16204
|
+
const Xa = class Xa extends Oe {
|
|
16205
16205
|
/**
|
|
16206
16206
|
* Creates a new block reference entity.
|
|
16207
16207
|
*
|
|
@@ -16367,7 +16367,7 @@ const qa = class qa extends Ce {
|
|
|
16367
16367
|
* @returns An iterator object that can be used to iterate over the attributes
|
|
16368
16368
|
*/
|
|
16369
16369
|
attributeIterator() {
|
|
16370
|
-
return new
|
|
16370
|
+
return new wi(this._attribs);
|
|
16371
16371
|
}
|
|
16372
16372
|
/**
|
|
16373
16373
|
* Gets the block-local transformation matrix of this block reference.
|
|
@@ -16417,23 +16417,23 @@ const qa = class qa extends Ce {
|
|
|
16417
16417
|
* in OCS, excluding extrusion.
|
|
16418
16418
|
*/
|
|
16419
16419
|
get blockTransform() {
|
|
16420
|
-
const t = this.blockTableRecord, e = (t == null ? void 0 : t.origin) ?? W.ORIGIN, s = new
|
|
16420
|
+
const t = this.blockTableRecord, e = (t == null ? void 0 : t.origin) ?? W.ORIGIN, s = new Ze().makeTranslation(
|
|
16421
16421
|
-e.x,
|
|
16422
16422
|
-e.y,
|
|
16423
16423
|
-e.z
|
|
16424
|
-
), a = new
|
|
16424
|
+
), a = new Ze().makeScale(
|
|
16425
16425
|
this._scaleFactors.x,
|
|
16426
16426
|
this._scaleFactors.y,
|
|
16427
16427
|
this._scaleFactors.z
|
|
16428
16428
|
), h = new jn().setFromAxisAngle(
|
|
16429
16429
|
K.Z_AXIS,
|
|
16430
16430
|
this._rotation
|
|
16431
|
-
), u = new
|
|
16431
|
+
), u = new Ze().makeRotationFromQuaternion(h), m = new Ze().makeTranslation(
|
|
16432
16432
|
this._position.x,
|
|
16433
16433
|
this._position.y,
|
|
16434
16434
|
this._position.z
|
|
16435
16435
|
);
|
|
16436
|
-
return new
|
|
16436
|
+
return new Ze().multiplyMatrices(m, u).multiply(a).multiply(s);
|
|
16437
16437
|
}
|
|
16438
16438
|
/**
|
|
16439
16439
|
* Gets the object snap points for this mtext.
|
|
@@ -16659,7 +16659,7 @@ const qa = class qa extends Ce {
|
|
|
16659
16659
|
const m = u.worldDraw(t);
|
|
16660
16660
|
m && a.push(m);
|
|
16661
16661
|
}
|
|
16662
|
-
}),
|
|
16662
|
+
}), Rs.instance.draw(
|
|
16663
16663
|
t,
|
|
16664
16664
|
e,
|
|
16665
16665
|
this.rgbColor,
|
|
@@ -16695,9 +16695,9 @@ const qa = class qa extends Ce {
|
|
|
16695
16695
|
}
|
|
16696
16696
|
}
|
|
16697
16697
|
};
|
|
16698
|
-
|
|
16699
|
-
let
|
|
16700
|
-
const
|
|
16698
|
+
Xa.typeName = "BlockReference";
|
|
16699
|
+
let Os = Xa;
|
|
16700
|
+
const Ya = class Ya extends Be {
|
|
16701
16701
|
/**
|
|
16702
16702
|
* Creates a new circle entity.
|
|
16703
16703
|
*
|
|
@@ -17037,9 +17037,9 @@ const Xa = class Xa extends Oe {
|
|
|
17037
17037
|
return t.circularArc(this._geo);
|
|
17038
17038
|
}
|
|
17039
17039
|
};
|
|
17040
|
-
|
|
17041
|
-
let
|
|
17042
|
-
const
|
|
17040
|
+
Ya.typeName = "Circle";
|
|
17041
|
+
let ia = Ya;
|
|
17042
|
+
const Da = class Da extends Be {
|
|
17043
17043
|
/**
|
|
17044
17044
|
* Creates a new ellipse entity.
|
|
17045
17045
|
*
|
|
@@ -17080,7 +17080,7 @@ const Ya = class Ya extends Oe {
|
|
|
17080
17080
|
* ```
|
|
17081
17081
|
*/
|
|
17082
17082
|
constructor(t, e, s, a, h, u, m) {
|
|
17083
|
-
super(), this._geo = new
|
|
17083
|
+
super(), this._geo = new Ma(
|
|
17084
17084
|
t,
|
|
17085
17085
|
e,
|
|
17086
17086
|
s,
|
|
@@ -17465,9 +17465,9 @@ const Ya = class Ya extends Oe {
|
|
|
17465
17465
|
return t.ellipticalArc(this._geo);
|
|
17466
17466
|
}
|
|
17467
17467
|
};
|
|
17468
|
-
|
|
17469
|
-
let
|
|
17470
|
-
const
|
|
17468
|
+
Da.typeName = "Ellipse";
|
|
17469
|
+
let aa = Da;
|
|
17470
|
+
const Ka = class Ka extends Oe {
|
|
17471
17471
|
/**
|
|
17472
17472
|
* Creates a new face entity.
|
|
17473
17473
|
*
|
|
@@ -17638,10 +17638,10 @@ const Da = class Da extends Ce {
|
|
|
17638
17638
|
return t.lineSegments(s, 3, a);
|
|
17639
17639
|
}
|
|
17640
17640
|
};
|
|
17641
|
-
|
|
17642
|
-
let
|
|
17643
|
-
var
|
|
17644
|
-
const
|
|
17641
|
+
Ka.typeName = "Face";
|
|
17642
|
+
let oa = Ka;
|
|
17643
|
+
var ri = /* @__PURE__ */ ((n) => (n[n.UserDefined = 0] = "UserDefined", n[n.Predefined = 1] = "Predefined", n[n.Custom = 2] = "Custom", n))(ri || {}), _c = /* @__PURE__ */ ((n) => (n[n.Normal = 0] = "Normal", n[n.Outer = 1] = "Outer", n[n.Ignore = 2] = "Ignore", n))(_c || {});
|
|
17644
|
+
const $a = class $a extends Oe {
|
|
17645
17645
|
/**
|
|
17646
17646
|
* Creates a new hatch entity.
|
|
17647
17647
|
*
|
|
@@ -17657,7 +17657,7 @@ const Ka = class Ka extends Ce {
|
|
|
17657
17657
|
* ```
|
|
17658
17658
|
*/
|
|
17659
17659
|
constructor() {
|
|
17660
|
-
super(), this._elevation = 0, this._geo = new
|
|
17660
|
+
super(), this._elevation = 0, this._geo = new Aa(), this._isSolidFill = !1, this._definitionLines = [], this._patternName = "", this._patternType = 1, this._patternAngle = 0, this._patternScale = 1, this._hatchStyle = 0;
|
|
17661
17661
|
}
|
|
17662
17662
|
/**
|
|
17663
17663
|
* Gets whether the hatch object is configured for solid fill.
|
|
@@ -17780,9 +17780,9 @@ const Ka = class Ka extends Ce {
|
|
|
17780
17780
|
type: "enum",
|
|
17781
17781
|
editable: !0,
|
|
17782
17782
|
options: [
|
|
17783
|
-
{ label:
|
|
17784
|
-
{ label:
|
|
17785
|
-
{ label:
|
|
17783
|
+
{ label: ri[0], value: 0 },
|
|
17784
|
+
{ label: ri[1], value: 1 },
|
|
17785
|
+
{ label: ri[2], value: 2 }
|
|
17786
17786
|
],
|
|
17787
17787
|
accessor: {
|
|
17788
17788
|
get: () => this.patternType,
|
|
@@ -17865,10 +17865,10 @@ const Ka = class Ka extends Ce {
|
|
|
17865
17865
|
}, t.area(this._geo);
|
|
17866
17866
|
}
|
|
17867
17867
|
};
|
|
17868
|
-
|
|
17869
|
-
let
|
|
17868
|
+
$a.typeName = "Hatch";
|
|
17869
|
+
let ci = $a;
|
|
17870
17870
|
var yc = /* @__PURE__ */ ((n) => (n[n.MText = 0] = "MText", n[n.Fcf = 1] = "Fcf", n[n.BlockReference = 2] = "BlockReference", n[n.NoAnnotation = 3] = "NoAnnotation", n))(yc || {});
|
|
17871
|
-
const
|
|
17871
|
+
const Za = class Za extends Be {
|
|
17872
17872
|
/**
|
|
17873
17873
|
* Creates a new leader entity.
|
|
17874
17874
|
*
|
|
@@ -18096,8 +18096,8 @@ const $a = class $a extends Oe {
|
|
|
18096
18096
|
this.isSplined && this.numVertices >= 2 && (this._splineGeo == null || this._updated) && (this._splineGeo = new vn(this._vertices, "Uniform"), this._updated = !1);
|
|
18097
18097
|
}
|
|
18098
18098
|
};
|
|
18099
|
-
|
|
18100
|
-
let
|
|
18099
|
+
Za.typeName = "Leader";
|
|
18100
|
+
let la = Za;
|
|
18101
18101
|
var Vt = /* @__PURE__ */ ((n) => (n[n.EndPoint = 1] = "EndPoint", n[n.MidPoint = 2] = "MidPoint", n[n.Center = 3] = "Center", n[n.Node = 4] = "Node", n[n.Quadrant = 5] = "Quadrant", n[n.Insertion = 7] = "Insertion", n[n.Perpendicular = 8] = "Perpendicular", n[n.Tangent = 9] = "Tangent", n[n.Nearest = 10] = "Nearest", n[n.Centroid = 11] = "Centroid", n))(Vt || {});
|
|
18102
18102
|
function J0(n) {
|
|
18103
18103
|
let t = 0;
|
|
@@ -18126,7 +18126,7 @@ function np(n, t) {
|
|
|
18126
18126
|
function sp(n, t) {
|
|
18127
18127
|
return n & ~(1 << t - 1);
|
|
18128
18128
|
}
|
|
18129
|
-
const
|
|
18129
|
+
const Qa = class Qa extends Be {
|
|
18130
18130
|
/**
|
|
18131
18131
|
* Creates a new line entity.
|
|
18132
18132
|
*
|
|
@@ -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 Ls(t, e);
|
|
18149
18149
|
}
|
|
18150
18150
|
/**
|
|
18151
18151
|
* Gets the starting point of this line.
|
|
@@ -18429,9 +18429,9 @@ const Za = class Za extends Oe {
|
|
|
18429
18429
|
return t.lines(a);
|
|
18430
18430
|
}
|
|
18431
18431
|
};
|
|
18432
|
-
|
|
18433
|
-
let
|
|
18434
|
-
const
|
|
18432
|
+
Qa.typeName = "Line";
|
|
18433
|
+
let di = Qa;
|
|
18434
|
+
const Ja = class Ja extends Oe {
|
|
18435
18435
|
/**
|
|
18436
18436
|
* Creates a new multiline text entity.
|
|
18437
18437
|
*
|
|
@@ -18447,7 +18447,7 @@ const Qa = class Qa extends Ce {
|
|
|
18447
18447
|
* ```
|
|
18448
18448
|
*/
|
|
18449
18449
|
constructor() {
|
|
18450
|
-
super(), this._contents = "", this._height = 0, this._width = 0, this._lineSpacingFactor = 0.25, this._lineSpacingStyle = 0, this._backgroundFill = !1, this._backgroundFillColor = 13158600, this._backgroundFillTransparency = 1, this._backgroundScaleFactor = 1, this._rotation = 0, this._styleName = "", this._location = new W(), this._attachmentPoint =
|
|
18450
|
+
super(), this._contents = "", this._height = 0, this._width = 0, this._lineSpacingFactor = 0.25, this._lineSpacingStyle = 0, this._backgroundFill = !1, this._backgroundFillColor = 13158600, this._backgroundFillTransparency = 1, this._backgroundScaleFactor = 1, this._rotation = 0, this._styleName = "", this._location = new W(), this._attachmentPoint = Ae.TopLeft, this._direction = new K(1, 0, 0), this._drawingDirection = $r.LEFT_TO_RIGHT;
|
|
18451
18451
|
}
|
|
18452
18452
|
/**
|
|
18453
18453
|
* Gets the contents of the mtext object.
|
|
@@ -18725,15 +18725,15 @@ const Qa = class Qa extends Ce {
|
|
|
18725
18725
|
type: "enum",
|
|
18726
18726
|
editable: !0,
|
|
18727
18727
|
options: [
|
|
18728
|
-
{ label:
|
|
18729
|
-
{ label:
|
|
18730
|
-
{ label:
|
|
18731
|
-
{ label:
|
|
18732
|
-
{ label:
|
|
18733
|
-
{ label:
|
|
18734
|
-
{ label:
|
|
18735
|
-
{ label:
|
|
18736
|
-
{ label:
|
|
18728
|
+
{ label: Ae[1], value: 1 },
|
|
18729
|
+
{ label: Ae[2], value: 2 },
|
|
18730
|
+
{ label: Ae[3], value: 3 },
|
|
18731
|
+
{ label: Ae[4], value: 4 },
|
|
18732
|
+
{ label: Ae[5], value: 5 },
|
|
18733
|
+
{ label: Ae[6], value: 6 },
|
|
18734
|
+
{ label: Ae[7], value: 7 },
|
|
18735
|
+
{ label: Ae[8], value: 8 },
|
|
18736
|
+
{ label: Ae[9], value: 9 }
|
|
18737
18737
|
],
|
|
18738
18738
|
accessor: {
|
|
18739
18739
|
get: () => this.attachmentPoint,
|
|
@@ -18909,9 +18909,9 @@ const Qa = class Qa extends Ce {
|
|
|
18909
18909
|
return t.mtext(s, this.getTextStyle(), e);
|
|
18910
18910
|
}
|
|
18911
18911
|
};
|
|
18912
|
-
|
|
18913
|
-
let
|
|
18914
|
-
const
|
|
18912
|
+
Ja.typeName = "MText";
|
|
18913
|
+
let pi = Ja;
|
|
18914
|
+
const to = class to extends Be {
|
|
18915
18915
|
constructor(t, e, s, a, h) {
|
|
18916
18916
|
super();
|
|
18917
18917
|
const u = +(t !== void 0) + +(e !== void 0) + +(s !== void 0) + +(a !== void 0) + +(h !== void 0);
|
|
@@ -19006,9 +19006,9 @@ const Ja = class Ja extends Oe {
|
|
|
19006
19006
|
return t.lines(e);
|
|
19007
19007
|
}
|
|
19008
19008
|
};
|
|
19009
|
-
|
|
19010
|
-
let
|
|
19011
|
-
const vc = /* @__PURE__ */ new K(),
|
|
19009
|
+
to.typeName = "Spline";
|
|
19010
|
+
let mi = to;
|
|
19011
|
+
const vc = /* @__PURE__ */ new K(), eo = class eo extends Os {
|
|
19012
19012
|
/**
|
|
19013
19013
|
* Creates a new table entity.
|
|
19014
19014
|
*
|
|
@@ -19017,7 +19017,7 @@ const vc = /* @__PURE__ */ new K(), to = class to extends Cs {
|
|
|
19017
19017
|
* @param numColumns - The number of columns in the table
|
|
19018
19018
|
*/
|
|
19019
19019
|
constructor(t, e, s) {
|
|
19020
|
-
super(t), this._attachmentPoint =
|
|
19020
|
+
super(t), this._attachmentPoint = Ae.TopLeft, this._numColumns = s, this._numRows = e, this._columnWidth = new Array(s), this._rowHeight = new Array(e), this._cells = new Array(e * s);
|
|
19021
19021
|
}
|
|
19022
19022
|
/**
|
|
19023
19023
|
* Gets or sets the cell alignment value for this table.
|
|
@@ -19327,7 +19327,7 @@ const vc = /* @__PURE__ */ new K(), to = class to extends Cs {
|
|
|
19327
19327
|
E + O == this.numColumns && (a[u++] = E + k * (this.numColumns + 1) + O, a[u++] = at);
|
|
19328
19328
|
const ft = -h[at * 3 + 1] - e;
|
|
19329
19329
|
if (k + V == this.numRows && (a[u++] = E + (k + V) * (this.numColumns + 1) + V, a[u++] = E + (k + V) * (this.numColumns + 1)), a[u++] = E + (k + V) * (this.numColumns + 1), a[u++] = E + k * (this.numColumns + 1), L.text) {
|
|
19330
|
-
const st = L.attachmentPoint || this.attachmentPoint ||
|
|
19330
|
+
const st = L.attachmentPoint || this.attachmentPoint || Ae.MiddleCenter, q = this.getTableTextOffset(
|
|
19331
19331
|
st,
|
|
19332
19332
|
F,
|
|
19333
19333
|
ft
|
|
@@ -19346,7 +19346,7 @@ const vc = /* @__PURE__ */ new K(), to = class to extends Cs {
|
|
|
19346
19346
|
}
|
|
19347
19347
|
m.push(t.lineSegments(h, 3, a));
|
|
19348
19348
|
const w = t.group(m), x = new jn();
|
|
19349
|
-
return x.setFromAxisAngle(K.Z_AXIS, this.rotation),
|
|
19349
|
+
return x.setFromAxisAngle(K.Z_AXIS, this.rotation), Yo.compose(this.position, x, this.scaleFactors), w.applyMatrix(Yo), w;
|
|
19350
19350
|
}
|
|
19351
19351
|
/**
|
|
19352
19352
|
* Marks cells as visited to handle merged cell rendering.
|
|
@@ -19429,9 +19429,9 @@ const vc = /* @__PURE__ */ new K(), to = class to extends Cs {
|
|
|
19429
19429
|
return a;
|
|
19430
19430
|
}
|
|
19431
19431
|
};
|
|
19432
|
-
|
|
19433
|
-
let
|
|
19434
|
-
const
|
|
19432
|
+
eo.typeName = "Table";
|
|
19433
|
+
let ha = eo;
|
|
19434
|
+
const Yo = /* @__PURE__ */ new Ze(), ro = class ro extends Be {
|
|
19435
19435
|
/**
|
|
19436
19436
|
* Creates a new trace entity.
|
|
19437
19437
|
*
|
|
@@ -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 Gn(this._vertices, !0), s = new
|
|
19630
|
+
const e = new Gn(this._vertices, !0), s = new Aa();
|
|
19631
19631
|
s.add(e);
|
|
19632
19632
|
const a = t.subEntityTraits;
|
|
19633
19633
|
return a.fillType = {
|
|
@@ -19637,9 +19637,9 @@ const Xo = /* @__PURE__ */ new $e(), eo = class eo extends Oe {
|
|
|
19637
19637
|
}, t.area(s);
|
|
19638
19638
|
}
|
|
19639
19639
|
};
|
|
19640
|
-
|
|
19641
|
-
let
|
|
19642
|
-
const
|
|
19640
|
+
ro.typeName = "Trace";
|
|
19641
|
+
let ua = ro;
|
|
19642
|
+
const no = class no extends Be {
|
|
19643
19643
|
/**
|
|
19644
19644
|
* Creates a new empty polyline entity.
|
|
19645
19645
|
*
|
|
@@ -19978,9 +19978,9 @@ const ro = class ro extends Oe {
|
|
|
19978
19978
|
), t.lines(e);
|
|
19979
19979
|
}
|
|
19980
19980
|
};
|
|
19981
|
-
|
|
19982
|
-
let
|
|
19983
|
-
const
|
|
19981
|
+
no.typeName = "Polyline";
|
|
19982
|
+
let ca = no;
|
|
19983
|
+
const so = class so extends Oe {
|
|
19984
19984
|
/**
|
|
19985
19985
|
* Creates a new point entity.
|
|
19986
19986
|
*
|
|
@@ -20145,10 +20145,10 @@ const no = class no extends Ce {
|
|
|
20145
20145
|
});
|
|
20146
20146
|
}
|
|
20147
20147
|
};
|
|
20148
|
-
|
|
20149
|
-
let
|
|
20148
|
+
so.typeName = "Point";
|
|
20149
|
+
let da = so;
|
|
20150
20150
|
var bc = /* @__PURE__ */ ((n) => (n[n.Invalid = 0] = "Invalid", n[n.Rect = 1] = "Rect", n[n.Poly = 2] = "Poly", n))(bc || {}), xc = /* @__PURE__ */ ((n) => (n[n.Show = 1] = "Show", n[n.ShowUnAligned = 2] = "ShowUnAligned", n[n.Clip = 4] = "Clip", n[n.Transparent = 8] = "Transparent", n))(xc || {});
|
|
20151
|
-
const
|
|
20151
|
+
const io = class io extends Oe {
|
|
20152
20152
|
/**
|
|
20153
20153
|
* Creates a new raster image entity.
|
|
20154
20154
|
*
|
|
@@ -20362,7 +20362,7 @@ const so = class so extends Ce {
|
|
|
20362
20362
|
boundaryPath() {
|
|
20363
20363
|
const t = [];
|
|
20364
20364
|
if (this.isClipped && this._clipBoundary.length > 3) {
|
|
20365
|
-
const e = this._width, s = this._height, a = new
|
|
20365
|
+
const e = this._width, s = this._height, a = new ke();
|
|
20366
20366
|
a.setFromPoints(this._clipBoundary);
|
|
20367
20367
|
const h = new Lt();
|
|
20368
20368
|
h.setX(this._position.x - a.min.x * e), h.setY(this._position.y - a.min.y * s), this._clipBoundary.forEach((u) => {
|
|
@@ -20377,18 +20377,18 @@ const so = class so extends Ce {
|
|
|
20377
20377
|
this._position.z
|
|
20378
20378
|
)
|
|
20379
20379
|
), t.push(this._position.clone().setY(this._position.y + this._height)), this._rotation > 0) {
|
|
20380
|
-
|
|
20380
|
+
Do.copy(t[1]);
|
|
20381
20381
|
for (let e = 1; e < 4; e++)
|
|
20382
|
-
|
|
20382
|
+
Ys.copy(t[e]), Ys.rotateAround(Do, this._rotation), t[e].setX(Ys.x), t[e].setY(Ys.y);
|
|
20383
20383
|
}
|
|
20384
20384
|
t.push(t[0]);
|
|
20385
20385
|
}
|
|
20386
20386
|
return t;
|
|
20387
20387
|
}
|
|
20388
20388
|
};
|
|
20389
|
-
|
|
20390
|
-
let
|
|
20391
|
-
const
|
|
20389
|
+
io.typeName = "RasterImage";
|
|
20390
|
+
let gi = io;
|
|
20391
|
+
const Do = /* @__PURE__ */ new Lt(), Ys = /* @__PURE__ */ new Lt(), ao = class ao extends Be {
|
|
20392
20392
|
/**
|
|
20393
20393
|
* Creates a new ray entity.
|
|
20394
20394
|
*
|
|
@@ -20639,9 +20639,9 @@ const Yo = /* @__PURE__ */ new Lt(), Xs = /* @__PURE__ */ new Lt(), io = class i
|
|
|
20639
20639
|
), t.lines(e);
|
|
20640
20640
|
}
|
|
20641
20641
|
};
|
|
20642
|
-
|
|
20643
|
-
let
|
|
20644
|
-
const
|
|
20642
|
+
ao.typeName = "Ray";
|
|
20643
|
+
let pa = ao;
|
|
20644
|
+
const oo = class oo extends Oe {
|
|
20645
20645
|
/**
|
|
20646
20646
|
* Creates a new AcDbViewport instance.
|
|
20647
20647
|
*
|
|
@@ -20870,9 +20870,9 @@ const ao = class ao extends Ce {
|
|
|
20870
20870
|
), s;
|
|
20871
20871
|
}
|
|
20872
20872
|
};
|
|
20873
|
-
|
|
20874
|
-
let
|
|
20875
|
-
const
|
|
20873
|
+
oo.typeName = "Viewport";
|
|
20874
|
+
let ma = oo;
|
|
20875
|
+
const lo = class lo extends gi {
|
|
20876
20876
|
/**
|
|
20877
20877
|
* Draws the wipeout entity.
|
|
20878
20878
|
*
|
|
@@ -20885,13 +20885,13 @@ const oo = class oo extends mi {
|
|
|
20885
20885
|
* ```
|
|
20886
20886
|
*/
|
|
20887
20887
|
subWorldDraw(t) {
|
|
20888
|
-
const e = this.boundaryPath(), s = new
|
|
20888
|
+
const e = this.boundaryPath(), s = new Aa();
|
|
20889
20889
|
return s.add(new Gn(e)), t.area(s);
|
|
20890
20890
|
}
|
|
20891
20891
|
};
|
|
20892
|
-
|
|
20893
|
-
let
|
|
20894
|
-
const
|
|
20892
|
+
lo.typeName = "Wipeout";
|
|
20893
|
+
let ga = lo;
|
|
20894
|
+
const ho = class ho extends Be {
|
|
20895
20895
|
/**
|
|
20896
20896
|
* Creates a new xline entity.
|
|
20897
20897
|
*
|
|
@@ -21126,10 +21126,10 @@ const lo = class lo extends Oe {
|
|
|
21126
21126
|
), t.lines(e);
|
|
21127
21127
|
}
|
|
21128
21128
|
};
|
|
21129
|
-
|
|
21130
|
-
let
|
|
21129
|
+
ho.typeName = "Xline";
|
|
21130
|
+
let fa = ho;
|
|
21131
21131
|
var wc = /* @__PURE__ */ ((n) => (n[n.AtLeast = 1] = "AtLeast", n[n.Exactly = 2] = "Exactly", n))(wc || {});
|
|
21132
|
-
const
|
|
21132
|
+
const uo = class uo extends Oe {
|
|
21133
21133
|
/**
|
|
21134
21134
|
* Creates a new dimension entity.
|
|
21135
21135
|
*
|
|
@@ -21267,7 +21267,7 @@ const ho = class ho extends Ce {
|
|
|
21267
21267
|
let t;
|
|
21268
21268
|
this.dimensionStyleName && (t = this.database.tables.dimStyleTable.getAt(
|
|
21269
21269
|
this.dimensionStyleName
|
|
21270
|
-
)), t == null && (t = new
|
|
21270
|
+
)), t == null && (t = new Bs()), this._dimStyle = t;
|
|
21271
21271
|
}
|
|
21272
21272
|
return this._dimStyle;
|
|
21273
21273
|
}
|
|
@@ -21370,7 +21370,7 @@ const ho = class ho extends Ce {
|
|
|
21370
21370
|
);
|
|
21371
21371
|
if (s) {
|
|
21372
21372
|
const a = this.computeDimBlockTransform();
|
|
21373
|
-
return
|
|
21373
|
+
return Rs.instance.draw(
|
|
21374
21374
|
t,
|
|
21375
21375
|
s,
|
|
21376
21376
|
this.rgbColor,
|
|
@@ -21551,21 +21551,21 @@ const ho = class ho extends Ce {
|
|
|
21551
21551
|
* block in OCS space, excluding extrusion.
|
|
21552
21552
|
*/
|
|
21553
21553
|
computeDimBlockTransform() {
|
|
21554
|
-
const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ?? W.ORIGIN, s = new
|
|
21554
|
+
const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ?? W.ORIGIN, s = new Ze().makeTranslation(
|
|
21555
21555
|
-e.x,
|
|
21556
21556
|
-e.y,
|
|
21557
21557
|
-e.z
|
|
21558
|
-
), a = new
|
|
21558
|
+
), a = new Ze().makeTranslation(
|
|
21559
21559
|
this._dimBlockPosition.x,
|
|
21560
21560
|
this._dimBlockPosition.y,
|
|
21561
21561
|
this._dimBlockPosition.z
|
|
21562
21562
|
);
|
|
21563
|
-
return new
|
|
21563
|
+
return new Ze().multiplyMatrices(a, s);
|
|
21564
21564
|
}
|
|
21565
21565
|
};
|
|
21566
|
-
|
|
21567
|
-
let Jr =
|
|
21568
|
-
const
|
|
21566
|
+
uo.typeName = "Dimension";
|
|
21567
|
+
let Jr = uo;
|
|
21568
|
+
const co = class co extends Jr {
|
|
21569
21569
|
/**
|
|
21570
21570
|
* Creates a new three-point angular dimension.
|
|
21571
21571
|
*
|
|
@@ -21658,9 +21658,9 @@ const uo = class uo extends Jr {
|
|
|
21658
21658
|
return new Ct();
|
|
21659
21659
|
}
|
|
21660
21660
|
};
|
|
21661
|
-
|
|
21662
|
-
let
|
|
21663
|
-
const
|
|
21661
|
+
co.typeName = "3PointAngularDimension";
|
|
21662
|
+
let _a = co;
|
|
21663
|
+
const po = class po extends Jr {
|
|
21664
21664
|
/**
|
|
21665
21665
|
* Creates a new aligned dimension entity.
|
|
21666
21666
|
*
|
|
@@ -21850,7 +21850,7 @@ const co = class co extends Jr {
|
|
|
21850
21850
|
e.name = t;
|
|
21851
21851
|
const s = this.createLines();
|
|
21852
21852
|
s.forEach(
|
|
21853
|
-
(m) => e.appendEntity(new
|
|
21853
|
+
(m) => e.appendEntity(new di(m.startPoint, m.endPoint))
|
|
21854
21854
|
), this.createArrows(s[0]).forEach((m) => e.appendEntity(m));
|
|
21855
21855
|
const h = s[0].midPoint, u = this.createMText(h, this._rotation);
|
|
21856
21856
|
return u && e.appendEntity(u), e;
|
|
@@ -21862,8 +21862,8 @@ const co = class co extends Jr {
|
|
|
21862
21862
|
z: 0
|
|
21863
21863
|
});
|
|
21864
21864
|
if (this.dimensionText) {
|
|
21865
|
-
const a = new
|
|
21866
|
-
return a.attachmentPoint =
|
|
21865
|
+
const a = new pi();
|
|
21866
|
+
return a.attachmentPoint = Ae.MiddleLeft, a.layer = "0", a.color = new xe(pt.ByBlock), a.location = t, a.contents = this.dimensionText ?? "", a.height = 10, a.direction = s(e), a.styleName = this.dimensionStyle.dimtxsty, a;
|
|
21867
21867
|
}
|
|
21868
21868
|
}
|
|
21869
21869
|
createArrows(t) {
|
|
@@ -21873,7 +21873,7 @@ const co = class co extends Jr {
|
|
|
21873
21873
|
), e.push(this.createArrow(t.endPoint, this.rotation, 10)), e;
|
|
21874
21874
|
}
|
|
21875
21875
|
createArrow(t, e, s) {
|
|
21876
|
-
const a = "_CAXARROW", h = new
|
|
21876
|
+
const a = "_CAXARROW", h = new Os(a);
|
|
21877
21877
|
return h.position = t, h.rotation = e, h.scaleFactors = { x: s, y: s, z: s }, h;
|
|
21878
21878
|
}
|
|
21879
21879
|
/**
|
|
@@ -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 Ls(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 Ls(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
|
|
@@ -21913,9 +21913,9 @@ const co = class co extends Jr {
|
|
|
21913
21913
|
this._rotation = Math.atan2(a, s);
|
|
21914
21914
|
}
|
|
21915
21915
|
};
|
|
21916
|
-
|
|
21917
|
-
let
|
|
21918
|
-
const
|
|
21916
|
+
po.typeName = "AlignedDimension";
|
|
21917
|
+
let ya = po;
|
|
21918
|
+
const mo = class mo extends Jr {
|
|
21919
21919
|
/**
|
|
21920
21920
|
* Creates a new arc length dimension.
|
|
21921
21921
|
*
|
|
@@ -22009,9 +22009,9 @@ const po = class po extends Jr {
|
|
|
22009
22009
|
return new Ct();
|
|
22010
22010
|
}
|
|
22011
22011
|
};
|
|
22012
|
-
|
|
22013
|
-
let
|
|
22014
|
-
const
|
|
22012
|
+
mo.typeName = "ArcDimension";
|
|
22013
|
+
let Ko = mo;
|
|
22014
|
+
const go = class go extends Jr {
|
|
22015
22015
|
/**
|
|
22016
22016
|
* Creates a new diametric dimension.
|
|
22017
22017
|
*
|
|
@@ -22177,9 +22177,9 @@ const mo = class mo extends Jr {
|
|
|
22177
22177
|
});
|
|
22178
22178
|
}
|
|
22179
22179
|
};
|
|
22180
|
-
|
|
22181
|
-
let
|
|
22182
|
-
const
|
|
22180
|
+
go.typeName = "DiametricDimension";
|
|
22181
|
+
let va = go;
|
|
22182
|
+
const fo = class fo extends Jr {
|
|
22183
22183
|
/**
|
|
22184
22184
|
* Creates a new ordinate dimension.
|
|
22185
22185
|
*
|
|
@@ -22251,9 +22251,9 @@ const go = class go extends Jr {
|
|
|
22251
22251
|
return 0;
|
|
22252
22252
|
}
|
|
22253
22253
|
};
|
|
22254
|
-
|
|
22255
|
-
let
|
|
22256
|
-
const
|
|
22254
|
+
fo.typeName = "OrdinateDimension";
|
|
22255
|
+
let ba = fo;
|
|
22256
|
+
const _o = class _o extends Jr {
|
|
22257
22257
|
/**
|
|
22258
22258
|
* Creates a new radial dimension entity.
|
|
22259
22259
|
*
|
|
@@ -22451,9 +22451,9 @@ const fo = class fo extends Jr {
|
|
|
22451
22451
|
};
|
|
22452
22452
|
}
|
|
22453
22453
|
};
|
|
22454
|
-
|
|
22455
|
-
let
|
|
22456
|
-
class
|
|
22454
|
+
_o.typeName = "RadialDimension";
|
|
22455
|
+
let xa = _o;
|
|
22456
|
+
class Ta extends tn {
|
|
22457
22457
|
/**
|
|
22458
22458
|
* Creates a new AcDbLayout instance.
|
|
22459
22459
|
*
|
|
@@ -22463,7 +22463,7 @@ class Ma extends tn {
|
|
|
22463
22463
|
* ```
|
|
22464
22464
|
*/
|
|
22465
22465
|
constructor() {
|
|
22466
|
-
super(), this._tabOrder = -1, this._tabSelected = !1, this._blockTableRecordId = "", this._layoutName = "", this._limits = new
|
|
22466
|
+
super(), this._tabOrder = -1, this._tabSelected = !1, this._blockTableRecordId = "", this._layoutName = "", this._limits = new ke(), this._extents = new Ct();
|
|
22467
22467
|
}
|
|
22468
22468
|
/**
|
|
22469
22469
|
* Gets the user-friendly layout name that is displayed in the tab control.
|
|
@@ -22639,7 +22639,7 @@ class Ma extends tn {
|
|
|
22639
22639
|
this._extents.copy(t);
|
|
22640
22640
|
}
|
|
22641
22641
|
}
|
|
22642
|
-
class
|
|
22642
|
+
class ni extends tn {
|
|
22643
22643
|
/**
|
|
22644
22644
|
* Creates a new AcDbDictionary instance.
|
|
22645
22645
|
*
|
|
@@ -22827,10 +22827,10 @@ class ri extends tn {
|
|
|
22827
22827
|
* ```
|
|
22828
22828
|
*/
|
|
22829
22829
|
newIterator() {
|
|
22830
|
-
return new
|
|
22830
|
+
return new wi(this._recordsByName);
|
|
22831
22831
|
}
|
|
22832
22832
|
}
|
|
22833
|
-
class Sc extends
|
|
22833
|
+
class Sc extends ni {
|
|
22834
22834
|
/**
|
|
22835
22835
|
* Searches the dictionary for a layout associated with the specified block table record ID.
|
|
22836
22836
|
*
|
|
@@ -22957,9 +22957,9 @@ class Ec {
|
|
|
22957
22957
|
this.db = t;
|
|
22958
22958
|
}
|
|
22959
22959
|
createDefaultLayer() {
|
|
22960
|
-
const t = new
|
|
22960
|
+
const t = new xe();
|
|
22961
22961
|
return t.colorIndex = 7, this.db.tables.layerTable.add(
|
|
22962
|
-
new
|
|
22962
|
+
new Ba({
|
|
22963
22963
|
name: "0",
|
|
22964
22964
|
standardFlags: 0,
|
|
22965
22965
|
linetype: "Continuous",
|
|
@@ -22972,21 +22972,21 @@ class Ec {
|
|
|
22972
22972
|
}
|
|
22973
22973
|
createDefaultLineType() {
|
|
22974
22974
|
this.db.tables.linetypeTable.add(
|
|
22975
|
-
new
|
|
22975
|
+
new ui({
|
|
22976
22976
|
name: "ByBlock",
|
|
22977
22977
|
standardFlag: 0,
|
|
22978
22978
|
description: "",
|
|
22979
22979
|
totalPatternLength: 0
|
|
22980
22980
|
})
|
|
22981
22981
|
), this.db.tables.linetypeTable.add(
|
|
22982
|
-
new
|
|
22982
|
+
new ui({
|
|
22983
22983
|
name: "ByLayer",
|
|
22984
22984
|
standardFlag: 0,
|
|
22985
22985
|
description: "",
|
|
22986
22986
|
totalPatternLength: 0
|
|
22987
22987
|
})
|
|
22988
22988
|
), this.db.tables.linetypeTable.add(
|
|
22989
|
-
new
|
|
22989
|
+
new ui({
|
|
22990
22990
|
name: "Continuous",
|
|
22991
22991
|
standardFlag: 0,
|
|
22992
22992
|
description: "Solid line",
|
|
@@ -23012,29 +23012,29 @@ class Ec {
|
|
|
23012
23012
|
}
|
|
23013
23013
|
createDefaultDimStyle() {
|
|
23014
23014
|
this.db.tables.dimStyleTable.add(
|
|
23015
|
-
new
|
|
23015
|
+
new Bs({
|
|
23016
23016
|
name: "Standard",
|
|
23017
23017
|
dimtxsty: "Standard"
|
|
23018
23018
|
})
|
|
23019
23019
|
);
|
|
23020
23020
|
}
|
|
23021
23021
|
createDefaultLayout() {
|
|
23022
|
-
const t = new
|
|
23022
|
+
const t = new Ta();
|
|
23023
23023
|
t.layoutName = "Model", t.tabOrder = 0, t.blockTableRecordId = this.db.tables.blockTable.modelSpace.objectId, t.limits.min.copy({ x: 0, y: 0 }), t.limits.max.copy({ x: 1e6, y: 1e6 }), t.extents.min.copy({ x: 0, y: 0, z: 0 }), t.extents.max.copy({ x: 1e6, y: 1e6, z: 0 }), this.db.objects.layout.setAt(t.layoutName, t), this.db.tables.blockTable.modelSpace.layoutId = t.objectId;
|
|
23024
23024
|
}
|
|
23025
23025
|
createArrowBlock() {
|
|
23026
23026
|
if (!this.db.tables.blockTable.getAt("_CAXARROW")) {
|
|
23027
|
-
const e = new
|
|
23027
|
+
const e = new ci();
|
|
23028
23028
|
e.patternName = "SOLID";
|
|
23029
23029
|
const s = new Nl();
|
|
23030
|
-
s.add(new
|
|
23030
|
+
s.add(new ti({ x: 0, y: 0 }, { x: -1, y: 0.125 })), s.add(new ti({ x: -1, y: 0.125 }, { x: -1, y: -0.125 })), s.add(new ti({ x: -1, y: -0.125 }, { x: 0, y: 0 })), e.add(s);
|
|
23031
23031
|
const a = new ge();
|
|
23032
23032
|
a.name = "_CAXARROW", a.appendEntity(e), this.db.tables.blockTable.add(a);
|
|
23033
23033
|
}
|
|
23034
23034
|
}
|
|
23035
23035
|
}
|
|
23036
23036
|
var Ac = /* @__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))(Ac || {});
|
|
23037
|
-
class
|
|
23037
|
+
class wi {
|
|
23038
23038
|
/**
|
|
23039
23039
|
* Creates a new AcDbObjectIterator instance.
|
|
23040
23040
|
*
|
|
@@ -23109,7 +23109,7 @@ function ap(n) {
|
|
|
23109
23109
|
return n == 1 || n == 2 || n == 3 || n == 8 || n == 9 || n == 10 || n == 21;
|
|
23110
23110
|
}
|
|
23111
23111
|
const jl = "Load Database";
|
|
23112
|
-
class
|
|
23112
|
+
class Le extends Pu {
|
|
23113
23113
|
constructor(t, e) {
|
|
23114
23114
|
super(t.stage), this.data = t, this.progress = e;
|
|
23115
23115
|
}
|
|
@@ -23181,7 +23181,7 @@ class Gl {
|
|
|
23181
23181
|
ll.getInstance().collect(h), this.progress = a;
|
|
23182
23182
|
const u = { value: 0 }, m = new Eu();
|
|
23183
23183
|
m.setCompleteCallback(() => this.onFinished()), m.setErrorCallback((f) => this.onError(f)), m.addTask(
|
|
23184
|
-
new
|
|
23184
|
+
new Le(
|
|
23185
23185
|
{
|
|
23186
23186
|
stage: "START",
|
|
23187
23187
|
step: 1,
|
|
@@ -23191,7 +23191,7 @@ class Gl {
|
|
|
23191
23191
|
a
|
|
23192
23192
|
)
|
|
23193
23193
|
), m.addTask(
|
|
23194
|
-
new
|
|
23194
|
+
new Le(
|
|
23195
23195
|
{
|
|
23196
23196
|
stage: "PARSE",
|
|
23197
23197
|
step: 5,
|
|
@@ -23201,7 +23201,7 @@ class Gl {
|
|
|
23201
23201
|
a
|
|
23202
23202
|
)
|
|
23203
23203
|
), m.addTask(
|
|
23204
|
-
new
|
|
23204
|
+
new Le(
|
|
23205
23205
|
{
|
|
23206
23206
|
stage: "FONT",
|
|
23207
23207
|
step: 5,
|
|
@@ -23214,7 +23214,7 @@ class Gl {
|
|
|
23214
23214
|
a
|
|
23215
23215
|
)
|
|
23216
23216
|
), m.addTask(
|
|
23217
|
-
new
|
|
23217
|
+
new Le(
|
|
23218
23218
|
{
|
|
23219
23219
|
stage: "LTYPE",
|
|
23220
23220
|
step: 1,
|
|
@@ -23224,7 +23224,7 @@ class Gl {
|
|
|
23224
23224
|
a
|
|
23225
23225
|
)
|
|
23226
23226
|
), m.addTask(
|
|
23227
|
-
new
|
|
23227
|
+
new Le(
|
|
23228
23228
|
{
|
|
23229
23229
|
stage: "STYLE",
|
|
23230
23230
|
step: 1,
|
|
@@ -23234,7 +23234,7 @@ class Gl {
|
|
|
23234
23234
|
a
|
|
23235
23235
|
)
|
|
23236
23236
|
), m.addTask(
|
|
23237
|
-
new
|
|
23237
|
+
new Le(
|
|
23238
23238
|
{
|
|
23239
23239
|
stage: "DIMSTYLE",
|
|
23240
23240
|
step: 1,
|
|
@@ -23244,7 +23244,7 @@ class Gl {
|
|
|
23244
23244
|
a
|
|
23245
23245
|
)
|
|
23246
23246
|
), m.addTask(
|
|
23247
|
-
new
|
|
23247
|
+
new Le(
|
|
23248
23248
|
{
|
|
23249
23249
|
stage: "LAYER",
|
|
23250
23250
|
step: 1,
|
|
@@ -23254,7 +23254,7 @@ class Gl {
|
|
|
23254
23254
|
a
|
|
23255
23255
|
)
|
|
23256
23256
|
), m.addTask(
|
|
23257
|
-
new
|
|
23257
|
+
new Le(
|
|
23258
23258
|
{
|
|
23259
23259
|
stage: "VPORT",
|
|
23260
23260
|
step: 1,
|
|
@@ -23264,7 +23264,7 @@ class Gl {
|
|
|
23264
23264
|
a
|
|
23265
23265
|
)
|
|
23266
23266
|
), m.addTask(
|
|
23267
|
-
new
|
|
23267
|
+
new Le(
|
|
23268
23268
|
{
|
|
23269
23269
|
stage: "HEADER",
|
|
23270
23270
|
step: 1,
|
|
@@ -23274,7 +23274,7 @@ class Gl {
|
|
|
23274
23274
|
a
|
|
23275
23275
|
)
|
|
23276
23276
|
), m.addTask(
|
|
23277
|
-
new
|
|
23277
|
+
new Le(
|
|
23278
23278
|
{
|
|
23279
23279
|
stage: "BLOCK_RECORD",
|
|
23280
23280
|
step: 5,
|
|
@@ -23284,7 +23284,7 @@ class Gl {
|
|
|
23284
23284
|
a
|
|
23285
23285
|
)
|
|
23286
23286
|
), m.addTask(
|
|
23287
|
-
new
|
|
23287
|
+
new Le(
|
|
23288
23288
|
{
|
|
23289
23289
|
stage: "OBJECT",
|
|
23290
23290
|
step: 5,
|
|
@@ -23294,7 +23294,7 @@ class Gl {
|
|
|
23294
23294
|
a
|
|
23295
23295
|
)
|
|
23296
23296
|
), m.addTask(
|
|
23297
|
-
new
|
|
23297
|
+
new Le(
|
|
23298
23298
|
{
|
|
23299
23299
|
stage: "BLOCK",
|
|
23300
23300
|
step: 5,
|
|
@@ -23304,7 +23304,7 @@ class Gl {
|
|
|
23304
23304
|
a
|
|
23305
23305
|
)
|
|
23306
23306
|
), m.addTask(
|
|
23307
|
-
new
|
|
23307
|
+
new Le(
|
|
23308
23308
|
{
|
|
23309
23309
|
stage: "ENTITY",
|
|
23310
23310
|
step: 100,
|
|
@@ -23320,7 +23320,7 @@ class Gl {
|
|
|
23320
23320
|
a
|
|
23321
23321
|
)
|
|
23322
23322
|
), m.addTask(
|
|
23323
|
-
new
|
|
23323
|
+
new Le(
|
|
23324
23324
|
{
|
|
23325
23325
|
stage: "END",
|
|
23326
23326
|
step: 0,
|
|
@@ -23350,7 +23350,7 @@ class Gl {
|
|
|
23350
23350
|
), t.task.name === "ENTITY" ? !1 : (this.onFinished(), !0);
|
|
23351
23351
|
}
|
|
23352
23352
|
onFinished() {
|
|
23353
|
-
this.progress && (this.progress(100, "END", "END"),
|
|
23353
|
+
this.progress && (this.progress(100, "END", "END"), Rs.instance.clear());
|
|
23354
23354
|
}
|
|
23355
23355
|
async parse(t, e) {
|
|
23356
23356
|
throw new Error("Not impelemented yet!");
|
|
@@ -23389,27 +23389,27 @@ class Gl {
|
|
|
23389
23389
|
throw new Error("Not impelemented yet!");
|
|
23390
23390
|
}
|
|
23391
23391
|
}
|
|
23392
|
-
var ce, cs, ee, ae, ds, or,
|
|
23392
|
+
var ce, cs, ee, ae, ds, or, Se, wr, lr, hn, ps, ms, un, cn, gs, fs, _s, Ge, Sr, Dt, dn, ys, vt, Ie, vs, Pe, bs, Ir, Pr, hr, xs, pn, We, Er, mn, Vi, Ui, Ar, kr, ws, Ss, Mr, Is, ji, Gi, de, Tr, pe, He, Wi, Hi, qi, Xi, Nr, qe, gn, Ps, fn, Xe, Lr, Ye, 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
23397
|
(ds = {})[ds.AtLeast = 1] = "AtLeast", ds[ds.Exact = 2] = "Exact";
|
|
23398
|
-
var
|
|
23398
|
+
var $o = ((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 = ((Se = {})[Se.Feet = 0] = "Feet", Se[Se.None = 1] = "None", Se[Se.Inch = 2] = "Inch", Se[Se.FeetAndInch = 3] = "FeetAndInch", Se[Se.Leading = 4] = "Leading", Se[Se.Trailing = 8] = "Trailing", Se[Se.LeadingAndTrailing = 12] = "LeadingAndTrailing", Se), 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
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
23402
|
(gs = {})[gs.NotAnnotated = 0] = "NotAnnotated", gs[gs.Annotated = 1] = "Annotated";
|
|
23403
23403
|
(fs = {})[fs.Solid = 0] = "Solid", fs[fs.Gradient = 1] = "Gradient";
|
|
23404
23404
|
(_s = {})[_s.TwoColor = 0] = "TwoColor", _s[_s.OneColor = 1] = "OneColor";
|
|
23405
|
-
var Lc = ((
|
|
23405
|
+
var Lc = ((Ge = {})[Ge.Default = 0] = "Default", Ge[Ge.External = 1] = "External", Ge[Ge.Polyline = 2] = "Polyline", Ge[Ge.Derived = 4] = "Derived", Ge[Ge.Textbox = 8] = "Textbox", Ge[Ge.Outermost = 16] = "Outermost", Ge), Ds = ((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
|
+
(Ie = {})[Ie.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", Ie[Ie.WIREFRAME = 1] = "WIREFRAME", Ie[Ie.HIDDEN_LINE = 2] = "HIDDEN_LINE", Ie[Ie.FLAT_SHADED = 3] = "FLAT_SHADED", Ie[Ie.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", Ie[Ie.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", Ie[Ie.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
|
+
(Pe = {})[Pe.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", Pe[Pe.TOP = 1] = "TOP", Pe[Pe.BOTTOM = 2] = "BOTTOM", Pe[Pe.FRONT = 3] = "FRONT", Pe[Pe.BACK = 4] = "BACK", Pe[Pe.LEFT = 5] = "LEFT", Pe[Pe.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) {
|
|
@@ -23422,7 +23422,7 @@ function Rt(n) {
|
|
|
23422
23422
|
if (t.x = e.value, (e = n.next()).code !== s + 10) throw Error("Expected code for point value to be 20 but got " + e.code + ".");
|
|
23423
23423
|
return t.y = e.value, (e = n.next()).code !== s + 20 ? n.rewind() : t.z = e.value, t;
|
|
23424
23424
|
}
|
|
23425
|
-
let
|
|
23425
|
+
let Na = Symbol();
|
|
23426
23426
|
function xt(n, t) {
|
|
23427
23427
|
return (e, s, a) => {
|
|
23428
23428
|
let h = function(b, f = !1) {
|
|
@@ -23449,7 +23449,7 @@ function xt(n, t) {
|
|
|
23449
23449
|
}
|
|
23450
23450
|
w.isMultiple || b[e.code].pop();
|
|
23451
23451
|
let { name: x, parser: E, isMultiple: k, isReducible: L } = w, O = E == null ? void 0 : E(e, s, a);
|
|
23452
|
-
if (O ===
|
|
23452
|
+
if (O === Na) {
|
|
23453
23453
|
s.rewind();
|
|
23454
23454
|
break;
|
|
23455
23455
|
}
|
|
@@ -23459,10 +23459,10 @@ function xt(n, t) {
|
|
|
23459
23459
|
if (!st.length) throw Error("[parserGenerator::getObjectByPath] Invalid empty path");
|
|
23460
23460
|
let q = at;
|
|
23461
23461
|
for (let ct = 0; ct < st.length - 1; ++ct) {
|
|
23462
|
-
let it =
|
|
23462
|
+
let it = Yi(st[ct]), Wt = Yi(st[ct + 1]);
|
|
23463
23463
|
Object.prototype.hasOwnProperty.call(q, it) || (typeof Wt == "number" ? q[it] = [] : q[it] = {}), q = q[it];
|
|
23464
23464
|
}
|
|
23465
|
-
return [q,
|
|
23465
|
+
return [q, Yi(st[st.length - 1])];
|
|
23466
23466
|
}(a, x);
|
|
23467
23467
|
k && !L ? (Object.prototype.hasOwnProperty.call(V, F) || (V[F] = []), V[F].push(O)) : V[F] = O;
|
|
23468
23468
|
}
|
|
@@ -23471,7 +23471,7 @@ function xt(n, t) {
|
|
|
23471
23471
|
return t && Object.setPrototypeOf(a, t), u;
|
|
23472
23472
|
};
|
|
23473
23473
|
}
|
|
23474
|
-
function
|
|
23474
|
+
function Yi(n) {
|
|
23475
23475
|
let t = Number.parseInt(n);
|
|
23476
23476
|
return Number.isNaN(t) ? n : t;
|
|
23477
23477
|
}
|
|
@@ -23588,7 +23588,7 @@ let Gt = [...Oc, { code: 284, name: "shadowMode", parser: v }, { code: 390, name
|
|
|
23588
23588
|
let s = n.value;
|
|
23589
23589
|
return s > 0 && s < 256 && (e.color = ql(Math.abs(s))), s;
|
|
23590
23590
|
} }, { code: 347, name: "materialObjectHardId", parser: v }, { code: 6, name: "lineType", parser: v }, { code: 8, name: "layer", parser: v }, { code: 410, name: "layoutTabName", parser: v }, { code: 67, name: "isInPaperSpace", parser: Ut }, { code: 100 }, { code: 160 }, { code: 330, name: "ownerBlockRecordSoftId", parser: v }, { code: 102, parser: yn }, { code: 102, parser: yn }, { code: 102, parser: yn }, { code: 5, name: "handle", parser: v }];
|
|
23591
|
-
function
|
|
23591
|
+
function Si(n) {
|
|
23592
23592
|
return [{ code: 3, name: n, parser: (t, e, s) => (s._code3text = (s._code3text ?? "") + t.value, s._code3text + (s._code1text ?? "")), isMultiple: !0, isReducible: !0 }, { code: 1, name: n, parser: (t, e, s) => (s._code1text = t.value, (s._code3text ?? "") + s._code1text) }];
|
|
23593
23593
|
}
|
|
23594
23594
|
function Xl(n, t, e) {
|
|
@@ -23608,7 +23608,7 @@ 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
|
-
var Vc = ((
|
|
23611
|
+
var Vc = ((We = {})[We.LEFT = 0] = "LEFT", We[We.CENTER = 1] = "CENTER", We[We.RIGHT = 2] = "RIGHT", We[We.ALIGNED = 3] = "ALIGNED", We[We.MIDDLE = 4] = "MIDDLE", We[We.FIT = 5] = "FIT", We), 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) {
|
|
23613
23613
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
23614
23614
|
}
|
|
@@ -23646,13 +23646,13 @@ function Wc(n, t) {
|
|
|
23646
23646
|
}
|
|
23647
23647
|
return e;
|
|
23648
23648
|
}
|
|
23649
|
-
function*
|
|
23649
|
+
function* fi(n, t = 1 / 0, e = 1) {
|
|
23650
23650
|
for (let s = n; s !== t; s += e) yield s;
|
|
23651
23651
|
}
|
|
23652
23652
|
function Zr(n) {
|
|
23653
23653
|
return { x: n.x ?? 0, y: n.y ?? 0, z: n.z ?? 0 };
|
|
23654
23654
|
}
|
|
23655
|
-
function
|
|
23655
|
+
function La(n, t, e) {
|
|
23656
23656
|
if (It(t, 102)) return yn(t, e, n), !0;
|
|
23657
23657
|
switch (t.code) {
|
|
23658
23658
|
case 0:
|
|
@@ -23719,7 +23719,7 @@ function Na(n, t, e) {
|
|
|
23719
23719
|
function th(n, t, e) {
|
|
23720
23720
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
23721
23721
|
}
|
|
23722
|
-
let Hc = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rotation: 0 },
|
|
23722
|
+
let Hc = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rotation: 0 }, si = [{ code: 46, name: "annotationHeight", parser: v }, { code: 101, parser(n, t) {
|
|
23723
23723
|
(function(e) {
|
|
23724
23724
|
e.rewind();
|
|
23725
23725
|
let s = e.next();
|
|
@@ -23729,22 +23729,22 @@ let Hc = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rota
|
|
|
23729
23729
|
while (s.code !== 0);
|
|
23730
23730
|
e.rewind();
|
|
23731
23731
|
})(t);
|
|
23732
|
-
} }, { code: 50, name: "columnHeight", parser: v }, { code: 49, name: "columnGutter", parser: v }, { code: 48, name: "columnWidth", parser: v }, { code: 79, name: "columnAutoHeight", parser: v }, { code: 78, name: "columnFlowReversed", parser: v }, { code: 76, name: "columnCount", parser: v }, { code: 75, name: "columnType", parser: v }, { code: 441, name: "backgroundFillTransparency", parser: v }, { code: 63, name: "backgroundFillColor", parser: v }, { code: 45, name: "fillBoxScale", parser: v }, { code: [...
|
|
23732
|
+
} }, { code: 50, name: "columnHeight", parser: v }, { code: 49, name: "columnGutter", parser: v }, { code: 48, name: "columnWidth", parser: v }, { code: 79, name: "columnAutoHeight", parser: v }, { code: 78, name: "columnFlowReversed", parser: v }, { code: 76, name: "columnCount", parser: v }, { code: 75, name: "columnType", parser: v }, { code: 441, name: "backgroundFillTransparency", parser: v }, { code: 63, name: "backgroundFillColor", parser: v }, { code: 45, name: "fillBoxScale", parser: v }, { code: [...fi(430, 440)], name: "backgroundColor", parser: v }, { code: [...fi(420, 430)], name: "backgroundColor", parser: v }, { code: 90, name: "backgroundFill", parser: v }, { code: 44, name: "lineSpacing", parser: v }, { code: 73, name: "lineSpacingStyle", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 43 }, { code: 42 }, { code: 11, name: "direction", parser: H }, { code: 210, name: "extrusionDirection", parser: H }, { code: 7, name: "styleName", parser: v }, ...Si("text"), { code: 72, name: "drawingDirection", parser: v }, { code: 71, name: "attachmentPoint", parser: v }, { code: 41, name: "width", parser: v }, { code: 40, name: "height", parser: v }, { code: 10, name: "insertionPoint", parser: H }, { code: 100, name: "subclassMarker", parser: v }, ...Gt];
|
|
23733
23733
|
class eh {
|
|
23734
23734
|
parseEntity(t, e) {
|
|
23735
23735
|
let s = {};
|
|
23736
23736
|
return this.parser(e, t, s), s;
|
|
23737
23737
|
}
|
|
23738
23738
|
constructor() {
|
|
23739
|
-
th(this, "parser", xt(
|
|
23739
|
+
th(this, "parser", xt(si, Hc));
|
|
23740
23740
|
}
|
|
23741
23741
|
}
|
|
23742
23742
|
function rh(n, t, e) {
|
|
23743
23743
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
23744
23744
|
}
|
|
23745
23745
|
th(eh, "ForEntityName", "MTEXT");
|
|
23746
|
-
let qc = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Xc = [...
|
|
23747
|
-
if (!It(n, 0, "MTEXT")) return
|
|
23746
|
+
let qc = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Xc = [...si.slice(si.findIndex(({ name: n }) => n === "columnType"), si.findIndex(({ name: n }) => n === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(n) {
|
|
23747
|
+
if (!It(n, 0, "MTEXT")) return Na;
|
|
23748
23748
|
} }, { code: 2, name: "definitionTag", parser: v }, { code: 40, name: "annotationScale", parser: v }, { code: 10, name: "alignmentPoint", parser: H }, { code: 340, name: "secondaryAttributesHardId", parser: v }, { code: 70, name: "numberOfSecondaryAttributes", parser: v }, { code: 70, name: "isReallyLocked", parser: Ut }, { code: 70, name: "mtextFlag", parser: v }, { code: 280, name: "isDuplicatedEntriesKeep", parser: Ut }, { code: 100 }, { code: 280, name: "lockPositionFlag", parser: Ut }, { code: 210, name: "extrusionDirection", parser: H }, { code: 11, name: "alignmentPoint", parser: H }, { code: 74, name: "verticalJustification", parser: v }, { code: 72, name: "horizontalJustification", parser: v }, { code: 71, name: "textGenerationFlag", parser: v }, { code: 7, name: "textStyle", parser: v }, { code: 51, name: "obliqueAngle", parser: v }, { code: 41, name: "scale", parser: v }, { code: 50, name: "rotation", parser: v }, { code: 73 }, { code: 70, name: "attributeFlag", parser: v }, { code: 2, name: "tag", parser: v }, { code: 280 }, { code: 100, name: "subclassMarker", parser: v }, { code: 1, name: "text", parser: v }, { code: 40, name: "textHeight", parser: v }, { code: 10, name: "startPoint", parser: H }, { code: 39, name: "thickness", parser: v }, { code: 100 }, ...Gt];
|
|
23749
23749
|
class nh {
|
|
23750
23750
|
parseEntity(t, e) {
|
|
@@ -23759,7 +23759,7 @@ function sh(n, t, e) {
|
|
|
23759
23759
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
23760
23760
|
}
|
|
23761
23761
|
rh(nh, "ForEntityName", "ATTRIB");
|
|
23762
|
-
let Yc = [...
|
|
23762
|
+
let Yc = [...Si("data"), { code: 70, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Gt];
|
|
23763
23763
|
class ih {
|
|
23764
23764
|
parseEntity(t, e) {
|
|
23765
23765
|
let s = {};
|
|
@@ -23784,7 +23784,7 @@ class oh {
|
|
|
23784
23784
|
}
|
|
23785
23785
|
}
|
|
23786
23786
|
ah(oh, "ForEntityName", "CIRCLE");
|
|
23787
|
-
class
|
|
23787
|
+
class ii {
|
|
23788
23788
|
parseEntity(t, e) {
|
|
23789
23789
|
let s = {};
|
|
23790
23790
|
for (; !It(e, 0, "EOF"); ) {
|
|
@@ -23864,7 +23864,7 @@ class si {
|
|
|
23864
23864
|
a.styleName = h.value;
|
|
23865
23865
|
break;
|
|
23866
23866
|
default:
|
|
23867
|
-
|
|
23867
|
+
La(a, h, u);
|
|
23868
23868
|
}
|
|
23869
23869
|
})(s, e, t), e = t.next();
|
|
23870
23870
|
}
|
|
@@ -23874,7 +23874,7 @@ class si {
|
|
|
23874
23874
|
function lh(n, t, e) {
|
|
23875
23875
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
23876
23876
|
}
|
|
23877
|
-
|
|
23877
|
+
Ui = "DIMENSION", (Vi = "ForEntityName") in ii ? Object.defineProperty(ii, Vi, { value: Ui, enumerable: !0, configurable: !0, writable: !0 }) : ii[Vi] = Ui;
|
|
23878
23878
|
let $c = { extrusionDirection: { x: 0, y: 0, z: 1 } }, Zc = [{ code: 42, name: "endAngle", parser: v }, { code: 41, name: "startAngle", parser: v }, { code: 40, name: "axisRatio", parser: v }, { code: 210, name: "extrusionDirection", parser: H }, { code: 11, name: "majorAxisEndPoint", parser: H }, { code: 10, name: "center", parser: H }, { code: 100, name: "subclassMarker", parser: v }, ...Gt];
|
|
23879
23879
|
class hh {
|
|
23880
23880
|
parseEntity(t, e) {
|
|
@@ -23904,15 +23904,15 @@ uh(ch, "ForEntityName", "3DFACE");
|
|
|
23904
23904
|
let dh = [{ code: 330, name: "sourceBoundaryObjects", parser: v, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: v }], Jc = [{ code: 11, name: "end", parser: H }, { code: 10, name: "start", parser: H }], td = [{ code: 73, name: "isCCW", parser: Ut }, { code: 51, name: "endAngle", parser: v }, { code: 50, name: "startAngle", parser: v }, { code: 40, name: "radius", parser: v }, { code: 10, name: "center", parser: H }], ed = [{ code: 73, name: "isCCW", parser: Ut }, { code: 51, name: "endAngle", parser: v }, { code: 50, name: "startAngle", parser: v }, { code: 40, name: "lengthOfMinorAxis", parser: v }, { code: 11, name: "end", parser: H }, { code: 10, name: "center", parser: H }], rd = [{ code: 13, name: "endTangent", parser: H }, { code: 12, name: "startTangent", parser: H }, { code: 11, name: "fitDatum", isMultiple: !0, parser: H }, { code: 97, name: "numberOfFitData", parser: v }, { code: 10, name: "controlPoints", isMultiple: !0, parser(n, t) {
|
|
23905
23905
|
let e = { ...Rt(t), weight: 1 };
|
|
23906
23906
|
return (n = t.next()).code === 42 ? e.weight = n.value : t.rewind(), e;
|
|
23907
|
-
} }, { code: 40, name: "knots", isMultiple: !0, parser: v }, { code: 96, name: "numberOfControlPoints", parser: v }, { code: 95, name: "numberOfKnots", parser: v }, { code: 74, name: "isPeriodic", parser: Ut }, { code: 73, name: "splineFlag", parser: v }, { code: 94, name: "degree", parser: v }], nd = { [
|
|
23907
|
+
} }, { code: 40, name: "knots", isMultiple: !0, parser: v }, { code: 96, name: "numberOfControlPoints", parser: v }, { code: 95, name: "numberOfKnots", parser: v }, { code: 74, name: "isPeriodic", parser: Ut }, { code: 73, name: "splineFlag", parser: v }, { code: 94, name: "degree", parser: v }], nd = { [Ds.Line]: Jc, [Ds.Circular]: td, [Ds.Elliptic]: ed, [Ds.Spline]: rd }, sd = [...dh, { code: 72, name: "edges", parser(n, t) {
|
|
23908
23908
|
let e = { type: n.value }, s = xt(nd[e.type]);
|
|
23909
23909
|
if (!s) throw Error(`Invalid edge type ${e.type}`);
|
|
23910
23910
|
return s(n = t.next(), t, e), e;
|
|
23911
23911
|
}, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: v }], id = [...dh, { code: 10, name: "vertices", parser(n, t) {
|
|
23912
23912
|
let e = { ...Rt(t), bulge: 0 };
|
|
23913
23913
|
return (n = t.next()).code === 42 ? e.bulge = n.value : t.rewind(), e;
|
|
23914
|
-
}, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: v }, { code: 73, name: "isClosed", parser: Ut }, { code: 72, name: "hasBulge", parser: Ut }], ad = [{ code: 49, name: "dashLengths", parser: v, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: v }, { code: 45, name: "offset", parser:
|
|
23915
|
-
function
|
|
23914
|
+
}, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: v }, { code: 73, name: "isClosed", parser: Ut }, { code: 72, name: "hasBulge", parser: Ut }], ad = [{ code: 49, name: "dashLengths", parser: v, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: v }, { code: 45, name: "offset", parser: Zo }, { code: 43, name: "base", parser: Zo }, { code: 53, name: "angle", parser: v }];
|
|
23915
|
+
function Zo(n, t) {
|
|
23916
23916
|
let e = n.code + 1, s = { x: n.value, y: 1 };
|
|
23917
23917
|
return (n = t.next()).code === e ? s.y = n.value : t.rewind(), s;
|
|
23918
23918
|
}
|
|
@@ -24001,7 +24001,7 @@ let _d = { flag: 0, elevation: 0, thickness: 0, extrusionDirection: { x: 0, y: 0
|
|
|
24001
24001
|
let e = {};
|
|
24002
24002
|
return xt(vd, yd)(n, t, e), e;
|
|
24003
24003
|
} }, { code: 39, name: "thickness", parser: v }, { code: 38, name: "elevation", parser: v }, { code: 43, name: "constantWidth", parser: v }, { code: 70, name: "flag", parser: v }, { code: 90, name: "numberOfVertices", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Gt];
|
|
24004
|
-
class
|
|
24004
|
+
class ai {
|
|
24005
24005
|
parseEntity(t, e) {
|
|
24006
24006
|
let s = {};
|
|
24007
24007
|
return xt(bd, _d)(e, t, s), s;
|
|
@@ -24010,7 +24010,7 @@ class ii {
|
|
|
24010
24010
|
function Sh(n, t, e) {
|
|
24011
24011
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24012
24012
|
}
|
|
24013
|
-
|
|
24013
|
+
Gi = "LWPOLYLINE", (ji = "ForEntityName") in ai ? Object.defineProperty(ai, ji, { value: Gi, enumerable: !0, configurable: !0, writable: !0 }) : ai[ji] = Gi;
|
|
24014
24014
|
let xd = [{ code: 90, name: "overridenSubEntityCount", parser: v }, { code: 140, name: "edgeCreaseWeights", parser: v, isMultiple: !0 }, { code: 95, name: "edgeCreaseCount", parser: v }, { code: 94, parser(n, t, e) {
|
|
24015
24015
|
e.edgeCount = n.value, e.edgeIndices = [];
|
|
24016
24016
|
for (let s = 0; s < e.edgeCount; ++s) {
|
|
@@ -24055,12 +24055,12 @@ class Eh {
|
|
|
24055
24055
|
}
|
|
24056
24056
|
Ph(Eh, "ForEntityName", "POINT");
|
|
24057
24057
|
(de = {})[de.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", de[de.CURVE_FIT = 2] = "CURVE_FIT", de[de.SPLINE_FIT = 4] = "SPLINE_FIT", de[de.POLYLINE_3D = 8] = "POLYLINE_3D", de[de.POLYGON_3D = 16] = "POLYGON_3D", de[de.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", de[de.POLYFACE = 64] = "POLYFACE", de[de.CONTINUOUS = 128] = "CONTINUOUS";
|
|
24058
|
-
var
|
|
24058
|
+
var Ks = ((Tr = {})[Tr.NONE = 0] = "NONE", Tr[Tr.QUADRATIC = 5] = "QUADRATIC", Tr[Tr.CUBIC = 6] = "CUBIC", Tr[Tr.BEZIER = 8] = "BEZIER", Tr), Id = ((pe = {})[pe.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", pe[pe.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", pe[pe.NOT_USED = 4] = "NOT_USED", pe[pe.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", pe[pe.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", pe[pe.FOR_POLYLINE = 32] = "FOR_POLYLINE", pe[pe.FOR_POLYGON = 64] = "FOR_POLYGON", pe[pe.POLYFACE = 128] = "POLYFACE", pe);
|
|
24059
24059
|
function Ah(n, t, e) {
|
|
24060
24060
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24061
24061
|
}
|
|
24062
|
-
let Pd = { startWidth: 0, endWidth: 0, bulge: 0 }, Ed = [{ code: 91, name: "id", parser: v }, { code: [...
|
|
24063
|
-
class
|
|
24062
|
+
let Pd = { startWidth: 0, endWidth: 0, bulge: 0 }, Ed = [{ code: 91, name: "id", parser: v }, { code: [...fi(71, 75)], name: "faces", isMultiple: !0, parser: v }, { code: 50, name: "tangentDirection", parser: v }, { code: 70, name: "flag", parser: v }, { code: 42, name: "bulge", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 30, name: "z", parser: v }, { code: 20, name: "y", parser: v }, { code: 10, name: "x", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 100 }, ...Gt];
|
|
24063
|
+
class Ca {
|
|
24064
24064
|
parseEntity(t, e) {
|
|
24065
24065
|
let s = {};
|
|
24066
24066
|
return this.parser(e, t, s), s;
|
|
@@ -24072,8 +24072,8 @@ class La {
|
|
|
24072
24072
|
function kh(n, t, e) {
|
|
24073
24073
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24074
24074
|
}
|
|
24075
|
-
Ah(
|
|
24076
|
-
let Ad = { thickness: 0, flag: 0, startWidth: 0, endWidth: 0, meshMVertexCount: 0, meshNVertexCount: 0, surfaceMDensity: 0, surfaceNDensity: 0, smoothType: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, kd = [{ code: 0, name: "vertices", isMultiple: !0, parser: (n, t) => It(n, 0, "VERTEX") ? (n = t.next(), new
|
|
24075
|
+
Ah(Ca, "ForEntityName", "VERTEX");
|
|
24076
|
+
let Ad = { thickness: 0, flag: 0, startWidth: 0, endWidth: 0, meshMVertexCount: 0, meshNVertexCount: 0, surfaceMDensity: 0, surfaceNDensity: 0, smoothType: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, kd = [{ code: 0, name: "vertices", isMultiple: !0, parser: (n, t) => It(n, 0, "VERTEX") ? (n = t.next(), new Ca().parseEntity(t, n)) : Na }, { code: 210, name: "extrusionDirection", parser: H }, { code: 75, name: "smoothType", parser: v }, { code: 74, name: "surfaceNDensity", parser: v }, { code: 73, name: "surfaceMDensity", parser: v }, { code: 72, name: "meshNVertexCount", parser: v }, { code: 71, name: "meshMVertexCount", parser: v }, { code: 41, name: "endWidth", parser: v }, { code: 40, name: "startWidth", parser: v }, { code: 70, name: "flag", parser: v }, { code: 39, name: "thickness", parser: v }, { code: 30, name: "elevation", parser: v }, { code: 20 }, { code: 10 }, { code: 66 }, { code: 100, name: "subclassMarker", parser: v }, ...Gt];
|
|
24077
24077
|
class Mh {
|
|
24078
24078
|
parseEntity(t, e) {
|
|
24079
24079
|
let s = {};
|
|
@@ -24101,7 +24101,7 @@ function Lh(n, t, e) {
|
|
|
24101
24101
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24102
24102
|
}
|
|
24103
24103
|
Th(Nh, "ForEntityName", "RAY");
|
|
24104
|
-
let Td = [...
|
|
24104
|
+
let Td = [...Si("data"), { code: 70, name: "version", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Gt];
|
|
24105
24105
|
class Ch {
|
|
24106
24106
|
parseEntity(t, e) {
|
|
24107
24107
|
let s = {};
|
|
@@ -24129,7 +24129,7 @@ function zh(n, t, e) {
|
|
|
24129
24129
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24130
24130
|
}
|
|
24131
24131
|
Oh(Bh, "ForEntityName", "SECTION");
|
|
24132
|
-
let Cd = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Od = [{ code: 210, name: "extrusionDirection", parser: H }, { code: 39, name: "thickness", parser: v }, { code: [...
|
|
24132
|
+
let Cd = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Od = [{ code: 210, name: "extrusionDirection", parser: H }, { code: 39, name: "thickness", parser: v }, { code: [...fi(10, 14)], name: "points", isMultiple: !0, parser: H }, { code: 100, name: "subclassMarker", parser: v }, ...Gt];
|
|
24133
24133
|
class Rh {
|
|
24134
24134
|
parseEntity(t, e) {
|
|
24135
24135
|
let s = {};
|
|
@@ -24143,7 +24143,7 @@ function Fh(n, t, e) {
|
|
|
24143
24143
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24144
24144
|
}
|
|
24145
24145
|
zh(Rh, "ForEntityName", "SOLID");
|
|
24146
|
-
let Bd = [{ code: 350, name: "historyObjectSoftId", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...
|
|
24146
|
+
let Bd = [{ code: 350, name: "historyObjectSoftId", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Si("data"), { code: 70, name: "version", parser: v }, { code: 100 }, ...Gt];
|
|
24147
24147
|
class Vh {
|
|
24148
24148
|
parseEntity(t, e) {
|
|
24149
24149
|
let s = {};
|
|
@@ -24154,7 +24154,7 @@ class Vh {
|
|
|
24154
24154
|
}
|
|
24155
24155
|
}
|
|
24156
24156
|
Fh(Vh, "ForEntityName", "3DSOLID");
|
|
24157
|
-
(
|
|
24157
|
+
(He = {})[He.NONE = 0] = "NONE", He[He.CLOSED = 1] = "CLOSED", He[He.PERIODIC = 2] = "PERIODIC", He[He.RATIONAL = 4] = "RATIONAL", He[He.PLANAR = 8] = "PLANAR", He[He.LINEAR = 16] = "LINEAR";
|
|
24158
24158
|
function Uh(n, t, e) {
|
|
24159
24159
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24160
24160
|
}
|
|
@@ -24169,7 +24169,7 @@ class jh {
|
|
|
24169
24169
|
}
|
|
24170
24170
|
}
|
|
24171
24171
|
Uh(jh, "ForEntityName", "SPLINE");
|
|
24172
|
-
class
|
|
24172
|
+
class oi {
|
|
24173
24173
|
parseEntity(t, e) {
|
|
24174
24174
|
let s = {};
|
|
24175
24175
|
for (; !t.isEOF(); ) {
|
|
@@ -24339,7 +24339,7 @@ class ai {
|
|
|
24339
24339
|
}(t, e)), e = t.lastReadGroup;
|
|
24340
24340
|
break;
|
|
24341
24341
|
default:
|
|
24342
|
-
|
|
24342
|
+
La(s, e, t), e = t.next();
|
|
24343
24343
|
}
|
|
24344
24344
|
}
|
|
24345
24345
|
return s;
|
|
@@ -24348,7 +24348,7 @@ class ai {
|
|
|
24348
24348
|
function Gh(n, t, e) {
|
|
24349
24349
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24350
24350
|
}
|
|
24351
|
-
|
|
24351
|
+
Hi = "ACAD_TABLE", (Wi = "ForEntityName") in oi ? Object.defineProperty(oi, Wi, { value: Hi, enumerable: !0, configurable: !0, writable: !0 }) : oi[Wi] = Hi;
|
|
24352
24352
|
let Fd = [{ code: 11, name: "xAxisDirection", parser: H }, { code: 210, name: "extrusionDirection", parser: H }, { code: 1, name: "text", parser: v }, { code: 10, name: "position", parser: H }, { code: 3, name: "styleName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Gt];
|
|
24353
24353
|
class Wh {
|
|
24354
24354
|
parseEntity(t, e) {
|
|
@@ -24360,7 +24360,7 @@ class Wh {
|
|
|
24360
24360
|
}
|
|
24361
24361
|
}
|
|
24362
24362
|
Gh(Wh, "ForEntityName", "TOLERANCE");
|
|
24363
|
-
class
|
|
24363
|
+
class li {
|
|
24364
24364
|
parseEntity(t, e) {
|
|
24365
24365
|
let s = {};
|
|
24366
24366
|
for (; e !== "EOF"; ) {
|
|
@@ -24514,12 +24514,12 @@ class oi {
|
|
|
24514
24514
|
a.softPointer = u.value;
|
|
24515
24515
|
}
|
|
24516
24516
|
return !0;
|
|
24517
|
-
}(s, t, e) &&
|
|
24517
|
+
}(s, t, e) && La(s, e, t), e = t.next();
|
|
24518
24518
|
}
|
|
24519
24519
|
return s;
|
|
24520
24520
|
}
|
|
24521
24521
|
}
|
|
24522
|
-
|
|
24522
|
+
Xi = "VIEWPORT", (qi = "ForEntityName") in li ? Object.defineProperty(li, qi, { value: Xi, enumerable: !0, configurable: !0, writable: !0 }) : li[qi] = Xi;
|
|
24523
24523
|
(Nr = {})[Nr.ShowImage = 1] = "ShowImage", Nr[Nr.ShowImageWhenNotAligned = 2] = "ShowImageWhenNotAligned", Nr[Nr.UseClippingBoundary = 4] = "UseClippingBoundary", Nr[Nr.Transparency = 8] = "Transparency";
|
|
24524
24524
|
function Hh(n, t, e) {
|
|
24525
24525
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
@@ -24584,7 +24584,7 @@ class Kh {
|
|
|
24584
24584
|
}
|
|
24585
24585
|
}
|
|
24586
24586
|
Dh(Kh, "ForEntityName", "MULTILEADER");
|
|
24587
|
-
let Hd = Object.fromEntries([Yl, Jl, nh, ih, oh,
|
|
24587
|
+
let Hd = Object.fromEntries([Yl, Jl, nh, ih, oh, ii, hh, ch, fh, yh, bh, wh, ai, Ih, eh, Kh, Eh, Mh, Nh, Ch, Bh, Rh, Vh, jh, oi, Zl, Wh, mh, Ca, li, qh, Yh].map((n) => [n.ForEntityName, new n()]));
|
|
24588
24588
|
function $h(n, t) {
|
|
24589
24589
|
let e = [];
|
|
24590
24590
|
for (; !It(n, 0, "EOF"); ) {
|
|
@@ -24668,19 +24668,19 @@ function Yd(n, t) {
|
|
|
24668
24668
|
for (; !It(n, 0, "EOF") && !It(n, 0, "ENDSEC"); ) n.code === 9 ? e = n.value : n.code === 10 ? s[e] = Rt(t) : s[e] = n.value, n = t.next();
|
|
24669
24669
|
return s;
|
|
24670
24670
|
}
|
|
24671
|
-
(
|
|
24672
|
-
let
|
|
24671
|
+
(qe = {})[qe.NOT_APPLICABLE = 0] = "NOT_APPLICABLE", qe[qe.KEEP_EXISTING = 1] = "KEEP_EXISTING", qe[qe.USE_CLONE = 2] = "USE_CLONE", qe[qe.XREF_VALUE_NAME = 3] = "XREF_VALUE_NAME", qe[qe.VALUE_NAME = 4] = "VALUE_NAME", qe[qe.UNMANGLE_NAME = 5] = "UNMANGLE_NAME";
|
|
24672
|
+
let Oa = [{ code: 330, name: "ownerObjectId", parser: v }, { code: 102, parser: yn }, { code: 102, parser: yn }, { code: 102, parser: yn }, { code: 5, name: "handle", parser: v }], Dd = [{ code: 3, name: "entries", parser: (n, t) => {
|
|
24673
24673
|
let e = { name: n.value };
|
|
24674
24674
|
return (n = t.next()).code === 350 ? e.objectSoftId = n.value : n.code === 360 ? e.objectHardId = n.value : t.rewind(), e;
|
|
24675
|
-
}, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: v }, { code: 280, name: "isHardOwned", parser: Ut }, { code: 100, name: "subclassMarker", parser: v }, ...
|
|
24675
|
+
}, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: v }, { code: 280, name: "isHardOwned", parser: Ut }, { code: 100, name: "subclassMarker", parser: v }, ...Oa], 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
|
+
(Xe = {})[Xe.LAST_SCREEN_DISPLAY = 0] = "LAST_SCREEN_DISPLAY", Xe[Xe.DRAWING_EXTENTS = 1] = "DRAWING_EXTENTS", Xe[Xe.DRAWING_LIMITS = 2] = "DRAWING_LIMITS", Xe[Xe.VIEW_SPECIFIED = 3] = "VIEW_SPECIFIED", Xe[Xe.WINDOW_SPECIFIED = 4] = "WINDOW_SPECIFIED", Xe[Xe.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";
|
|
24681
|
-
(
|
|
24682
|
-
let Zh = [{ code: 333, name: "shadePlotId", parser: v }, { code: 149, name: "imageOriginY", parser: v }, { code: 148, name: "imageOriginX", parser: v }, { code: 147, name: "scaleFactor", parser: v }, { code: 78, name: "shadePlotCustomDPI", parser: v }, { code: 77, name: "shadePlotResolution", parser: v }, { code: 76, name: "shadePlotMode", parser: v }, { code: 75, name: "standardScaleType", parser: v }, { code: 7, name: "currentStyleSheet", parser: v }, { code: 74, name: "plotType", parser: v }, { code: 73, name: "plotRotation", parser: v }, { code: 72, name: "plotPaperUnit", parser: v }, { code: 70, name: "layoutFlag", parser: v }, { code: 143, name: "printScaleDenominator", parser: v }, { code: 142, name: "printScaleNumerator", parser: v }, { code: 141, name: "windowAreaYMax", parser: v }, { code: 140, name: "windowAreaXMax", parser: v }, { code: 49, name: "windowAreaYMin", parser: v }, { code: 48, name: "windowAreaXMin", parser: v }, { code: 47, name: "plotOriginY", parser: v }, { code: 46, name: "plotOriginX", parser: v }, { code: 45, name: "paperHeight", parser: v }, { code: 44, name: "paperWidth", parser: v }, { code: 43, name: "marginTop", parser: v }, { code: 42, name: "marginRight", parser: v }, { code: 41, name: "marginBottom", parser: v }, { code: 40, name: "marginLeft", parser: v }, { code: 6, name: "plotViewName", parser: v }, { code: 4, name: "paperSize", parser: v }, { code: 2, name: "configName", parser: v }, { code: 1, name: "pageSetupName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...
|
|
24683
|
-
function
|
|
24681
|
+
(Ye = {})[Ye.DRAFT = 0] = "DRAFT", Ye[Ye.PREVIEW = 1] = "PREVIEW", Ye[Ye.NORMAL = 2] = "NORMAL", Ye[Ye.PRESENTATION = 3] = "PRESENTATION", Ye[Ye.MAXIMUM = 4] = "MAXIMUM", Ye[Ye.CUSTOM = 5] = "CUSTOM";
|
|
24682
|
+
let Zh = [{ code: 333, name: "shadePlotId", parser: v }, { code: 149, name: "imageOriginY", parser: v }, { code: 148, name: "imageOriginX", parser: v }, { code: 147, name: "scaleFactor", parser: v }, { code: 78, name: "shadePlotCustomDPI", parser: v }, { code: 77, name: "shadePlotResolution", parser: v }, { code: 76, name: "shadePlotMode", parser: v }, { code: 75, name: "standardScaleType", parser: v }, { code: 7, name: "currentStyleSheet", parser: v }, { code: 74, name: "plotType", parser: v }, { code: 73, name: "plotRotation", parser: v }, { code: 72, name: "plotPaperUnit", parser: v }, { code: 70, name: "layoutFlag", parser: v }, { code: 143, name: "printScaleDenominator", parser: v }, { code: 142, name: "printScaleNumerator", parser: v }, { code: 141, name: "windowAreaYMax", parser: v }, { code: 140, name: "windowAreaXMax", parser: v }, { code: 49, name: "windowAreaYMin", parser: v }, { code: 48, name: "windowAreaXMin", parser: v }, { code: 47, name: "plotOriginY", parser: v }, { code: 46, name: "plotOriginX", parser: v }, { code: 45, name: "paperHeight", parser: v }, { code: 44, name: "paperWidth", parser: v }, { code: 43, name: "marginTop", parser: v }, { code: 42, name: "marginRight", parser: v }, { code: 41, name: "marginBottom", parser: v }, { code: 40, name: "marginLeft", parser: v }, { code: 6, name: "plotViewName", parser: v }, { code: 4, name: "paperSize", parser: v }, { code: 2, name: "configName", parser: v }, { code: 1, name: "pageSetupName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Oa], $d = [{ code: 346, name: "orthographicUcsId", parser: v }, { code: 345, name: "namedUcsId", parser: v }, { code: 331, name: "viewportId", parser: v }, { code: 330, name: "paperSpaceTableId", parser: v }, { code: 76, name: "orthographicType", parser: v }, { code: 17, name: "ucsYAxis", parser: H }, { code: 16, name: "ucsXAxis", parser: H }, { code: 13, name: "ucsOrigin", parser: H }, { code: 146, name: "elevation", parser: v }, { code: 15, name: "maxExtent", parser: H }, { code: 14, name: "minExtent", parser: H }, { code: 12, name: "insertionPoint", parser: H }, { code: 11, name: "maxLimit", parser: H }, { code: 10, name: "minLimit", parser: H }, { code: 71, name: "tabOrder", parser: v }, { code: 70, name: "controlFlag", parser: v }, { code: 1, name: "layoutName", parser: v }, { code: 100, name: "subclassMarker", parser: v }, ...Zh], Zd = [{ code: 40, name: "wcsToOCSTransform", parser: Qo }, { code: 40, name: "ocsToWCSTransform", parser: Qo }, { code: 41, name: "backClippingDistance", parser: v }, { code: 73, name: "isBackClipping", parser: Ut, pushContext: !0 }, { code: 40, name: "frontClippingDistance", parser: v }, { code: 72, name: "isFrontClipping", parser: Ut, pushContext: !0 }, { code: 71, name: "isClipBoundaryDisplayed", parser: Ut }, { code: 11, name: "position", parser: H }, { code: 210, name: "normal", parser: H }, { code: 10, name: "boundaryVertices", parser: H, isMultiple: !0 }, { code: 70, name: "boundaryCount", parser: v }, { code: 100, name: "subclassMarker", parser: v }, { code: 100 }, ...Oa];
|
|
24683
|
+
function Qo(n, t) {
|
|
24684
24684
|
let e = [];
|
|
24685
24685
|
for (let s = 0; s < 3 && It(n, 40); ++s) {
|
|
24686
24686
|
let a = [];
|
|
@@ -24703,7 +24703,7 @@ function Jd(n, t) {
|
|
|
24703
24703
|
}
|
|
24704
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 }, ...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:
|
|
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: $o.Above, defaultValueImperial: $o.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 = {};
|
|
@@ -24736,17 +24736,17 @@ function u0(n, t) {
|
|
|
24736
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
|
-
class
|
|
24739
|
+
class Jo {
|
|
24740
24740
|
next() {
|
|
24741
24741
|
if (!this.hasNext()) return this._eof ? this.debug && console.warn("Cannot call 'next' after EOF group has been read") : this.debug && console.warn("Unexpected end of input: EOF group not read before end of file. Ended on code " + this._data[this._pointer]), { code: 0, value: "EOF" };
|
|
24742
|
-
let t = parseInt(this._data[this._pointer++], 10), e =
|
|
24742
|
+
let t = parseInt(this._data[this._pointer++], 10), e = tl(t, this._data[this._pointer++], this.debug), s = { code: t, value: e };
|
|
24743
24743
|
return It(s, 0, "EOF") && (this._eof = !0), this.lastReadGroup = s, s;
|
|
24744
24744
|
}
|
|
24745
24745
|
peek() {
|
|
24746
24746
|
if (!this.hasNext())
|
|
24747
24747
|
throw this._eof ? Error("Cannot call 'next' after EOF group has been read") : Error("Unexpected end of input: EOF group not read before end of file. Ended on code " + this._data[this._pointer]);
|
|
24748
24748
|
let t = { code: parseInt(this._data[this._pointer]), value: 0 };
|
|
24749
|
-
return t.value =
|
|
24749
|
+
return t.value = tl(t.code, this._data[this._pointer + 1], this.debug), t;
|
|
24750
24750
|
}
|
|
24751
24751
|
rewind(t) {
|
|
24752
24752
|
t = t || 1, this._pointer = this._pointer - 2 * t;
|
|
@@ -24761,24 +24761,24 @@ class Qo {
|
|
|
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
|
-
function
|
|
24764
|
+
function tl(n, t, e = !1) {
|
|
24765
24765
|
return n <= 9 ? t : n >= 10 && n <= 59 ? parseFloat(t.trim()) : n >= 60 && n <= 99 ? parseInt(t.trim()) : n >= 100 && n <= 109 ? t : n >= 110 && n <= 149 ? parseFloat(t.trim()) : n >= 160 && n <= 179 ? parseInt(t.trim()) : n >= 210 && n <= 239 ? parseFloat(t.trim()) : n >= 270 && n <= 289 ? parseInt(t.trim()) : n >= 290 && n <= 299 ? function(s) {
|
|
24766
24766
|
if (s === "0") return !1;
|
|
24767
24767
|
if (s === "1") return !0;
|
|
24768
24768
|
throw TypeError("String '" + s + "' cannot be cast to Boolean type");
|
|
24769
24769
|
}(t.trim()) : n >= 300 && n <= 369 ? t : n >= 370 && n <= 389 ? parseInt(t.trim()) : n >= 390 && n <= 399 ? t : n >= 400 && n <= 409 ? parseInt(t.trim()) : n >= 410 && n <= 419 ? t : n >= 420 && n <= 429 ? parseInt(t.trim()) : n >= 430 && n <= 439 ? t : n >= 440 && n <= 459 ? parseInt(t.trim()) : n >= 460 && n <= 469 ? parseFloat(t.trim()) : n >= 470 && n <= 481 || n === 999 || n >= 1e3 && n <= 1009 ? t : n >= 1010 && n <= 1059 ? parseFloat(t.trim()) : n >= 1060 && n <= 1071 ? parseInt(t.trim()) : (e && console.warn("WARNING: Group code does not have a defined type: %j", { code: n, value: t }), t);
|
|
24770
24770
|
}
|
|
24771
|
-
function
|
|
24771
|
+
function wa(n, t, e) {
|
|
24772
24772
|
return t in n ? Object.defineProperty(n, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : n[t] = e, n;
|
|
24773
24773
|
}
|
|
24774
24774
|
class c0 {
|
|
24775
24775
|
constructor() {
|
|
24776
|
-
|
|
24776
|
+
wa(this, "encoding", "utf-8"), wa(this, "encodingFailureFatal", !1);
|
|
24777
24777
|
}
|
|
24778
24778
|
}
|
|
24779
24779
|
class d0 extends EventTarget {
|
|
24780
24780
|
parseSync(t, e = !1) {
|
|
24781
|
-
let s = new
|
|
24781
|
+
let s = new Jo(t.split(/\r\n|\r|\n/g), e);
|
|
24782
24782
|
if (!s.hasNext()) throw Error("Empty file");
|
|
24783
24783
|
return this.parseAll(s);
|
|
24784
24784
|
}
|
|
@@ -24789,7 +24789,7 @@ class d0 extends EventTarget {
|
|
|
24789
24789
|
e += u;
|
|
24790
24790
|
}), t.on("end", () => {
|
|
24791
24791
|
try {
|
|
24792
|
-
let u = e.split(/\r\n|\r|\n/g), m = new
|
|
24792
|
+
let u = e.split(/\r\n|\r|\n/g), m = new Jo(u);
|
|
24793
24793
|
if (!m.hasNext()) throw Error("Empty file");
|
|
24794
24794
|
a(s.parseAll(m));
|
|
24795
24795
|
} catch (u) {
|
|
@@ -24820,10 +24820,10 @@ class d0 extends EventTarget {
|
|
|
24820
24820
|
return e;
|
|
24821
24821
|
}
|
|
24822
24822
|
constructor(t = new c0()) {
|
|
24823
|
-
super(),
|
|
24823
|
+
super(), wa(this, "_decoder", void 0), this._decoder = new TextDecoder(t.encoding, { fatal: t.encodingFailureFatal });
|
|
24824
24824
|
}
|
|
24825
24825
|
}
|
|
24826
|
-
const
|
|
24826
|
+
const el = [
|
|
24827
24827
|
{ name: "AC1.2", value: 1 },
|
|
24828
24828
|
{ name: "AC1.40", value: 2 },
|
|
24829
24829
|
{ name: "AC1.50", value: 3 },
|
|
@@ -24903,7 +24903,7 @@ const tl = [
|
|
|
24903
24903
|
*/
|
|
24904
24904
|
{ name: "AC1032", value: 33 }
|
|
24905
24905
|
];
|
|
24906
|
-
class
|
|
24906
|
+
class Ms {
|
|
24907
24907
|
/**
|
|
24908
24908
|
* Create a DWG version from a version name or numeric value.
|
|
24909
24909
|
*
|
|
@@ -24916,14 +24916,14 @@ class wa {
|
|
|
24916
24916
|
*/
|
|
24917
24917
|
constructor(t) {
|
|
24918
24918
|
if (typeof t == "string") {
|
|
24919
|
-
const e =
|
|
24919
|
+
const e = el.find((s) => s.name === t);
|
|
24920
24920
|
if (!e)
|
|
24921
24921
|
throw new Error(`Unknown DWG version name: ${t}`);
|
|
24922
24922
|
this.name = e.name, this.value = e.value;
|
|
24923
24923
|
return;
|
|
24924
24924
|
}
|
|
24925
24925
|
if (typeof t == "number") {
|
|
24926
|
-
const e =
|
|
24926
|
+
const e = el.find((s) => s.value === t);
|
|
24927
24927
|
if (!e)
|
|
24928
24928
|
throw new Error(`Unknown DWG version value: ${t}`);
|
|
24929
24929
|
this.name = e.name, this.value = e.value;
|
|
@@ -24959,7 +24959,7 @@ class p0 {
|
|
|
24959
24959
|
return { version: u, encoding: m };
|
|
24960
24960
|
if (b && F === "$ACADVER") {
|
|
24961
24961
|
const at = (w = O[V + 2]) == null ? void 0 : w.trim();
|
|
24962
|
-
at && (u = new
|
|
24962
|
+
at && (u = new Ms(at));
|
|
24963
24963
|
} else if (b && F === "$DWGCODEPAGE") {
|
|
24964
24964
|
const at = (x = O[V + 2]) == null ? void 0 : x.trim();
|
|
24965
24965
|
if (at) {
|
|
@@ -24974,7 +24974,7 @@ class p0 {
|
|
|
24974
24974
|
return { version: u, encoding: m };
|
|
24975
24975
|
}
|
|
24976
24976
|
}
|
|
24977
|
-
class
|
|
24977
|
+
class rl {
|
|
24978
24978
|
/**
|
|
24979
24979
|
* Converts a DXF entity to an AcDbEntity.
|
|
24980
24980
|
*
|
|
@@ -25024,7 +25024,7 @@ class el {
|
|
|
25024
25024
|
* @returns The converted AcDbFace entity
|
|
25025
25025
|
*/
|
|
25026
25026
|
convertFace(t) {
|
|
25027
|
-
const e = new
|
|
25027
|
+
const e = new oa();
|
|
25028
25028
|
return t.vertices.forEach(
|
|
25029
25029
|
(s, a) => e.setVertexAt(a, s)
|
|
25030
25030
|
), e;
|
|
@@ -25042,7 +25042,7 @@ class el {
|
|
|
25042
25042
|
* ```
|
|
25043
25043
|
*/
|
|
25044
25044
|
convertArc(t) {
|
|
25045
|
-
return new
|
|
25045
|
+
return new ra(
|
|
25046
25046
|
t.center,
|
|
25047
25047
|
t.radius,
|
|
25048
25048
|
Et.degToRad(t.startAngle),
|
|
@@ -25054,11 +25054,11 @@ class el {
|
|
|
25054
25054
|
e.textString = t.text, e.height = t.textHeight, e.position.copy(t.startPoint), e.rotation = t.rotation, e.oblique = t.obliqueAngle ?? 0, e.thickness = t.thickness, e.tag = t.tag, e.fieldLength = 0, e.isInvisible = (t.attributeFlag & me.Invisible) !== 0, e.isConst = (t.attributeFlag & me.Const) !== 0, e.isVerifiable = (t.attributeFlag & me.Verifiable) !== 0, e.isPreset = (t.attributeFlag & me.Preset) !== 0, e.isReallyLocked = !!t.isReallyLocked, e.isMTextAttribute = (t.mtextFlag & Rr.MultiLine) !== 0, e.isConstMTextAttribute = (t.mtextFlag & Rr.ConstMultiLine) !== 0;
|
|
25055
25055
|
}
|
|
25056
25056
|
convertAttribute(t) {
|
|
25057
|
-
const e = new
|
|
25057
|
+
const e = new sa();
|
|
25058
25058
|
return this.convertAttributeCommon(t, e), e.styleName = t.textStyle, e.horizontalMode = t.horizontalJustification, e.verticalMode = t.verticalJustification, e.widthFactor = t.scale ?? 1, e.lockPositionInBlock = t.lockPositionFlag, e;
|
|
25059
25059
|
}
|
|
25060
25060
|
convertAttributeDefinition(t) {
|
|
25061
|
-
const e = new
|
|
25061
|
+
const e = new na();
|
|
25062
25062
|
return this.convertAttributeCommon(t, e), e.styleName = t.styleName, e.horizontalMode = t.halign, e.verticalMode = t.valign, e.widthFactor = t.xScale ?? 1, e.prompt = t.prompt, e;
|
|
25063
25063
|
}
|
|
25064
25064
|
/**
|
|
@@ -25074,7 +25074,7 @@ class el {
|
|
|
25074
25074
|
* ```
|
|
25075
25075
|
*/
|
|
25076
25076
|
convertCirle(t) {
|
|
25077
|
-
return new
|
|
25077
|
+
return new ia(
|
|
25078
25078
|
t.center,
|
|
25079
25079
|
t.radius,
|
|
25080
25080
|
t.extrusionDirection ?? K.Z_AXIS
|
|
@@ -25094,7 +25094,7 @@ class el {
|
|
|
25094
25094
|
*/
|
|
25095
25095
|
convertEllipse(t) {
|
|
25096
25096
|
const e = new K(t.majorAxisEndPoint), s = e.length();
|
|
25097
|
-
return new
|
|
25097
|
+
return new aa(
|
|
25098
25098
|
t.center,
|
|
25099
25099
|
t.extrusionDirection ?? K.Z_AXIS,
|
|
25100
25100
|
e,
|
|
@@ -25106,7 +25106,7 @@ class el {
|
|
|
25106
25106
|
}
|
|
25107
25107
|
convertLine(t) {
|
|
25108
25108
|
const e = t.startPoint, s = t.endPoint;
|
|
25109
|
-
return new
|
|
25109
|
+
return new di(
|
|
25110
25110
|
new W(e.x, e.y, e.z || 0),
|
|
25111
25111
|
new W(s.x, s.y, s.z || 0)
|
|
25112
25112
|
);
|
|
@@ -25114,7 +25114,7 @@ class el {
|
|
|
25114
25114
|
convertSpline(t) {
|
|
25115
25115
|
try {
|
|
25116
25116
|
if (t.numberOfControlPoints > 0 && t.numberOfKnots > 0)
|
|
25117
|
-
return new
|
|
25117
|
+
return new mi(
|
|
25118
25118
|
t.controlPoints,
|
|
25119
25119
|
t.knots,
|
|
25120
25120
|
t.weights,
|
|
@@ -25127,7 +25127,7 @@ class el {
|
|
|
25127
25127
|
t.numberOfFitPoints
|
|
25128
25128
|
);
|
|
25129
25129
|
if (e != null)
|
|
25130
|
-
return new
|
|
25130
|
+
return new mi(
|
|
25131
25131
|
e,
|
|
25132
25132
|
"Uniform",
|
|
25133
25133
|
t.degree,
|
|
@@ -25140,11 +25140,11 @@ class el {
|
|
|
25140
25140
|
return null;
|
|
25141
25141
|
}
|
|
25142
25142
|
convertPoint(t) {
|
|
25143
|
-
const e = new
|
|
25143
|
+
const e = new da();
|
|
25144
25144
|
return e.position = t.position, e;
|
|
25145
25145
|
}
|
|
25146
25146
|
convertSolid(t) {
|
|
25147
|
-
const e = new
|
|
25147
|
+
const e = new ua();
|
|
25148
25148
|
return t.points.forEach((s, a) => e.setPointAt(a, s)), e.thickness = t.thickness, e;
|
|
25149
25149
|
}
|
|
25150
25150
|
convertPolyline(t) {
|
|
@@ -25156,11 +25156,11 @@ class el {
|
|
|
25156
25156
|
z: u.z
|
|
25157
25157
|
}), h.push(u.bulge ?? 0));
|
|
25158
25158
|
}), s) {
|
|
25159
|
-
let u =
|
|
25160
|
-
return t.flag & 4 && (t.smoothType ==
|
|
25159
|
+
let u = ei.SimplePoly;
|
|
25160
|
+
return t.flag & 4 && (t.smoothType == Ks.CUBIC ? u = ei.CubicSplinePoly : t.smoothType == Ks.QUADRATIC && (u = ei.QuadSplinePoly)), new ea(u, a, e);
|
|
25161
25161
|
} else {
|
|
25162
25162
|
let u = ks.SimplePoly;
|
|
25163
|
-
return t.flag & 2 ? u = ks.FitCurvePoly : t.flag & 4 && (t.smoothType ==
|
|
25163
|
+
return t.flag & 2 ? u = ks.FitCurvePoly : t.flag & 4 && (t.smoothType == Ks.CUBIC ? u = ks.CubicSplinePoly : t.smoothType == Ks.QUADRATIC && (u = ks.QuadSplinePoly)), new ta(
|
|
25164
25164
|
u,
|
|
25165
25165
|
a,
|
|
25166
25166
|
0,
|
|
@@ -25172,7 +25172,7 @@ class el {
|
|
|
25172
25172
|
}
|
|
25173
25173
|
}
|
|
25174
25174
|
convertLWPolyline(t) {
|
|
25175
|
-
const e = new
|
|
25175
|
+
const e = new ca();
|
|
25176
25176
|
return e.closed = !!(t.flag & 1), t.vertices.forEach((s, a) => {
|
|
25177
25177
|
e.addVertexAt(
|
|
25178
25178
|
a,
|
|
@@ -25185,7 +25185,7 @@ class el {
|
|
|
25185
25185
|
}
|
|
25186
25186
|
convertHatch(t) {
|
|
25187
25187
|
var a;
|
|
25188
|
-
const e = new
|
|
25188
|
+
const e = new ci();
|
|
25189
25189
|
return (a = t.definitionLines) == null || a.forEach((h) => {
|
|
25190
25190
|
e.definitionLines.push({
|
|
25191
25191
|
angle: h.angle,
|
|
@@ -25208,11 +25208,11 @@ class el {
|
|
|
25208
25208
|
m.edges.forEach((f) => {
|
|
25209
25209
|
if (f.type == 1) {
|
|
25210
25210
|
const w = f;
|
|
25211
|
-
b.add(new
|
|
25211
|
+
b.add(new ti(w.start, w.end));
|
|
25212
25212
|
} else if (f.type == 2) {
|
|
25213
25213
|
const w = f;
|
|
25214
25214
|
b.add(
|
|
25215
|
-
new
|
|
25215
|
+
new Ns(
|
|
25216
25216
|
w.center,
|
|
25217
25217
|
w.radius,
|
|
25218
25218
|
Et.degToRad(w.startAngle || 0),
|
|
@@ -25229,7 +25229,7 @@ class el {
|
|
|
25229
25229
|
let L = Et.degToRad(w.startAngle || 0), O = Et.degToRad(w.endAngle || 0);
|
|
25230
25230
|
const V = Math.atan2(w.end.y, w.end.x);
|
|
25231
25231
|
w.isCCW || (L = Math.PI * 2 - L, O = Math.PI * 2 - O), b.add(
|
|
25232
|
-
new
|
|
25232
|
+
new ka(
|
|
25233
25233
|
{ ...w.center, z: 0 },
|
|
25234
25234
|
E,
|
|
25235
25235
|
k,
|
|
@@ -25272,7 +25272,7 @@ class el {
|
|
|
25272
25272
|
}), e;
|
|
25273
25273
|
}
|
|
25274
25274
|
convertTable(t) {
|
|
25275
|
-
const e = new
|
|
25275
|
+
const e = new ha(
|
|
25276
25276
|
t.name,
|
|
25277
25277
|
t.rowCount,
|
|
25278
25278
|
t.columnCount
|
|
@@ -25286,29 +25286,29 @@ class el {
|
|
|
25286
25286
|
}), e;
|
|
25287
25287
|
}
|
|
25288
25288
|
convertText(t) {
|
|
25289
|
-
const e = new
|
|
25289
|
+
const e = new Cs();
|
|
25290
25290
|
return e.textString = t.text, e.styleName = t.styleName, e.height = t.textHeight, e.position.copy(t.startPoint), e.rotation = Et.degToRad(t.rotation || 0), e.oblique = t.obliqueAngle ?? 0, e.thickness = t.thickness, e.horizontalMode = t.halign, e.verticalMode = t.valign, e.widthFactor = t.xScale ?? 1, e;
|
|
25291
25291
|
}
|
|
25292
25292
|
convertMText(t) {
|
|
25293
|
-
const e = new
|
|
25293
|
+
const e = new pi();
|
|
25294
25294
|
return e.contents = t.text, t.styleName != null && (e.styleName = t.styleName), e.height = t.height, e.width = t.width, e.rotation = Et.degToRad(t.rotation || 0), e.location = t.insertionPoint, e.attachmentPoint = t.attachmentPoint, t.direction && (e.direction = new K(t.direction)), e.drawingDirection = t.drawingDirection, e;
|
|
25295
25295
|
}
|
|
25296
25296
|
convertLeader(t) {
|
|
25297
|
-
const e = new
|
|
25297
|
+
const e = new la();
|
|
25298
25298
|
return t.vertices.forEach((s) => {
|
|
25299
25299
|
e.appendVertex(s);
|
|
25300
25300
|
}), e.hasArrowHead = t.isArrowheadEnabled, e.hasHookLine = t.isHooklineExists, e.isSplined = t.isSpline, e.dimensionStyle = t.styleName, e.annoType = t.leaderCreationFlag, e;
|
|
25301
25301
|
}
|
|
25302
25302
|
convertDimension(t) {
|
|
25303
25303
|
if (t.subclassMarker == "AcDbAlignedDimension" || t.subclassMarker == "AcDbRotatedDimension") {
|
|
25304
|
-
const e = t, s = new
|
|
25304
|
+
const e = t, s = new ya(
|
|
25305
25305
|
e.subDefinitionPoint1,
|
|
25306
25306
|
e.subDefinitionPoint2,
|
|
25307
25307
|
e.definitionPoint
|
|
25308
25308
|
);
|
|
25309
25309
|
return e.insertionPoint && (s.dimBlockPosition = { ...e.insertionPoint, z: 0 }), s.rotation = Et.degToRad(e.rotationAngle || 0), this.processDimensionCommonAttrs(t, s), s;
|
|
25310
25310
|
} else if (t.subclassMarker == "AcDb3PointAngularDimension") {
|
|
25311
|
-
const e = t, s = new
|
|
25311
|
+
const e = t, s = new _a(
|
|
25312
25312
|
e.centerPoint,
|
|
25313
25313
|
e.subDefinitionPoint1,
|
|
25314
25314
|
e.subDefinitionPoint2,
|
|
@@ -25316,20 +25316,20 @@ class el {
|
|
|
25316
25316
|
);
|
|
25317
25317
|
return this.processDimensionCommonAttrs(t, s), s;
|
|
25318
25318
|
} else if (t.subclassMarker == "AcDbOrdinateDimension") {
|
|
25319
|
-
const e = t, s = new
|
|
25319
|
+
const e = t, s = new ba(
|
|
25320
25320
|
e.subDefinitionPoint1,
|
|
25321
25321
|
e.subDefinitionPoint2
|
|
25322
25322
|
);
|
|
25323
25323
|
return this.processDimensionCommonAttrs(t, s), s;
|
|
25324
25324
|
} else if (t.subclassMarker == "AcDbRadialDimension") {
|
|
25325
|
-
const e = t, s = new
|
|
25325
|
+
const e = t, s = new xa(
|
|
25326
25326
|
e.definitionPoint,
|
|
25327
25327
|
e.centerPoint,
|
|
25328
25328
|
e.leaderLength
|
|
25329
25329
|
);
|
|
25330
25330
|
return this.processDimensionCommonAttrs(t, s), s;
|
|
25331
25331
|
} else if (t.subclassMarker == "AcDbDiametricDimension") {
|
|
25332
|
-
const e = t, s = new
|
|
25332
|
+
const e = t, s = new va(
|
|
25333
25333
|
e.definitionPoint,
|
|
25334
25334
|
e.centerPoint,
|
|
25335
25335
|
e.leaderLength
|
|
@@ -25348,7 +25348,7 @@ class el {
|
|
|
25348
25348
|
) * t.imageSize.y, e.rotation = Math.atan2(t.uPixel.y, t.uPixel.x);
|
|
25349
25349
|
}
|
|
25350
25350
|
convertImage(t) {
|
|
25351
|
-
const e = new
|
|
25351
|
+
const e = new gi();
|
|
25352
25352
|
return this.processImage(t, e), e.clipBoundaryType = t.clippingBoundaryType, e;
|
|
25353
25353
|
}
|
|
25354
25354
|
processWipeout(t, e) {
|
|
@@ -25361,23 +25361,23 @@ class el {
|
|
|
25361
25361
|
) * t.imageSize.y, e.rotation = Math.atan2(t.uDirection.y, t.uDirection.x);
|
|
25362
25362
|
}
|
|
25363
25363
|
convertWipeout(t) {
|
|
25364
|
-
const e = new
|
|
25364
|
+
const e = new ga();
|
|
25365
25365
|
return this.processWipeout(t, e), e;
|
|
25366
25366
|
}
|
|
25367
25367
|
convertViewport(t) {
|
|
25368
|
-
const e = new
|
|
25368
|
+
const e = new ma();
|
|
25369
25369
|
return e.number = t.viewportId, e.centerPoint.copy(t.viewportCenter), e.height = t.height, e.width = t.width, e.viewCenter.copy(t.displayCenter), e.viewHeight = t.viewHeight, e;
|
|
25370
25370
|
}
|
|
25371
25371
|
convertRay(t) {
|
|
25372
|
-
const e = new
|
|
25372
|
+
const e = new pa();
|
|
25373
25373
|
return e.basePoint.copy(t.position), e.unitDir.copy(t.direction), e;
|
|
25374
25374
|
}
|
|
25375
25375
|
convertXline(t) {
|
|
25376
|
-
const e = new
|
|
25376
|
+
const e = new fa();
|
|
25377
25377
|
return e.basePoint.copy(t.position), e.unitDir.copy(t.direction), e;
|
|
25378
25378
|
}
|
|
25379
25379
|
convertBlockReference(t) {
|
|
25380
|
-
const e = new
|
|
25380
|
+
const e = new Os(t.name);
|
|
25381
25381
|
return t.insertionPoint && e.position.copy(t.insertionPoint), e.scaleFactors.x = t.xScale || 1, e.scaleFactors.y = t.yScale || 1, e.scaleFactors.z = t.zScale || 1, e.rotation = t.rotation != null ? Et.degToRad(t.rotation) : 0, e.normal.copy(
|
|
25382
25382
|
t.extrusionDirection ?? { x: 0, y: 0, z: 1 }
|
|
25383
25383
|
), e;
|
|
@@ -25401,7 +25401,7 @@ class el {
|
|
|
25401
25401
|
* ```
|
|
25402
25402
|
*/
|
|
25403
25403
|
processCommonAttrs(t, e) {
|
|
25404
|
-
e.layer = t.layer || "0", t.handle && (e.objectId = t.handle), e.ownerId = t.ownerBlockRecordSoftId || "", t.lineType != null && (e.lineType = t.lineType), t.lineweight != null && (e.lineWeight = t.lineweight), t.lineTypeScale != null && (e.linetypeScale = t.lineTypeScale), t.color != null && e.color.setRGBValue(t.color), t.colorIndex != null && (e.color.colorIndex = t.colorIndex), t.colorName && (e.color.colorName = t.colorName), t.isVisible != null && (e.visibility = t.isVisible), t.transparency != null && (e.transparency =
|
|
25404
|
+
e.layer = t.layer || "0", t.handle && (e.objectId = t.handle), e.ownerId = t.ownerBlockRecordSoftId || "", t.lineType != null && (e.lineType = t.lineType), t.lineweight != null && (e.lineWeight = t.lineweight), t.lineTypeScale != null && (e.linetypeScale = t.lineTypeScale), t.color != null && e.color.setRGBValue(t.color), t.colorIndex != null && (e.color.colorIndex = t.colorIndex), t.colorName && (e.color.colorName = t.colorName), t.isVisible != null && (e.visibility = t.isVisible), t.transparency != null && (e.transparency = Pa.deserialize(t.transparency));
|
|
25405
25405
|
}
|
|
25406
25406
|
/**
|
|
25407
25407
|
* Converts a number array to an array of 3D points.
|
|
@@ -25449,7 +25449,7 @@ class xn extends tn {
|
|
|
25449
25449
|
* ```
|
|
25450
25450
|
*/
|
|
25451
25451
|
constructor(t, e) {
|
|
25452
|
-
t = t || {},
|
|
25452
|
+
t = t || {}, zs(t, { name: "" }), super(t, e);
|
|
25453
25453
|
}
|
|
25454
25454
|
/**
|
|
25455
25455
|
* Gets or sets the name of the symbol table record.
|
|
@@ -25663,7 +25663,7 @@ const Qr = class Qr extends xn {
|
|
|
25663
25663
|
* ```
|
|
25664
25664
|
*/
|
|
25665
25665
|
newIterator() {
|
|
25666
|
-
return new
|
|
25666
|
+
return new wi(this._entities);
|
|
25667
25667
|
}
|
|
25668
25668
|
/**
|
|
25669
25669
|
* Searches for an entity in this block table record with the specified ID.
|
|
@@ -25692,7 +25692,7 @@ class m0 {
|
|
|
25692
25692
|
*/
|
|
25693
25693
|
convertLayout(t, e) {
|
|
25694
25694
|
var a, h;
|
|
25695
|
-
const s = new
|
|
25695
|
+
const s = new Ta();
|
|
25696
25696
|
if (s.layoutName = t.layoutName, s.tabOrder = t.tabOrder, t.layoutName === "Model") {
|
|
25697
25697
|
const u = ge.MODEL_SPACE_NAME;
|
|
25698
25698
|
(a = e.tables.BLOCK_RECORD) == null || a.entries.some((m) => m.name.toUpperCase() === u ? (s.blockTableRecordId = m.handle, !0) : !1);
|
|
@@ -26080,7 +26080,7 @@ class y0 extends Gl {
|
|
|
26080
26080
|
* ```
|
|
26081
26081
|
*/
|
|
26082
26082
|
async processEntities(t, e, s, a, h) {
|
|
26083
|
-
const u = new
|
|
26083
|
+
const u = new rl();
|
|
26084
26084
|
let m = t.entities;
|
|
26085
26085
|
const b = m.length, f = new hl(
|
|
26086
26086
|
b,
|
|
@@ -26140,7 +26140,7 @@ class y0 extends Gl {
|
|
|
26140
26140
|
* ```
|
|
26141
26141
|
*/
|
|
26142
26142
|
async processEntitiesInBlock(t, e, s = !1) {
|
|
26143
|
-
const a = new
|
|
26143
|
+
const a = new rl(), h = t.length, u = [], m = e.objectId, b = [];
|
|
26144
26144
|
for (let f = 0; f < h; f++) {
|
|
26145
26145
|
const w = t[f], x = a.convert(w);
|
|
26146
26146
|
x && (w.type === "ATTRIB" ? b.push(x) : (!s || w.ownerBlockRecordSoftId === m) && u.push(x));
|
|
@@ -26291,9 +26291,9 @@ class y0 extends Gl {
|
|
|
26291
26291
|
var a, h;
|
|
26292
26292
|
const s = (h = (a = t.tables) == null ? void 0 : a.LAYER) == null ? void 0 : h.entries;
|
|
26293
26293
|
s && s.length > 0 && s.forEach((u) => {
|
|
26294
|
-
const m = new
|
|
26294
|
+
const m = new xe();
|
|
26295
26295
|
m.colorIndex = u.colorIndex;
|
|
26296
|
-
const b = new
|
|
26296
|
+
const b = new Ba({
|
|
26297
26297
|
name: u.name,
|
|
26298
26298
|
standardFlags: u.standardFlag,
|
|
26299
26299
|
linetype: u.lineType,
|
|
@@ -26323,7 +26323,7 @@ class y0 extends Gl {
|
|
|
26323
26323
|
var a, h;
|
|
26324
26324
|
const s = (h = (a = t.tables) == null ? void 0 : a.LTYPE) == null ? void 0 : h.entries;
|
|
26325
26325
|
s && s.length > 0 && s.forEach((u) => {
|
|
26326
|
-
const m = new
|
|
26326
|
+
const m = new ui(u);
|
|
26327
26327
|
this.processCommonTableEntryAttrs(u, m), m.name = u.name, e.tables.linetypeTable.add(m);
|
|
26328
26328
|
});
|
|
26329
26329
|
}
|
|
@@ -26437,7 +26437,7 @@ class y0 extends Gl {
|
|
|
26437
26437
|
dimblk2: h.DIMBLK2 || "",
|
|
26438
26438
|
dimlwd: h.DIMLWD,
|
|
26439
26439
|
dimlwe: h.DIMLWE
|
|
26440
|
-
}, m = new
|
|
26440
|
+
}, m = new Bs(u);
|
|
26441
26441
|
this.processCommonTableEntryAttrs(h, m), e.tables.dimStyleTable.add(m);
|
|
26442
26442
|
});
|
|
26443
26443
|
}
|
|
@@ -26456,7 +26456,7 @@ class y0 extends Gl {
|
|
|
26456
26456
|
* ```
|
|
26457
26457
|
*/
|
|
26458
26458
|
processCommonTableEntryAttrs(t, e) {
|
|
26459
|
-
e.name = t.name, e.objectId = t.handle, e.ownerId = t.ownerObjectId;
|
|
26459
|
+
e.name = t.name, t.handle != null && (e.objectId = t.handle), e.ownerId = t.ownerObjectId;
|
|
26460
26460
|
}
|
|
26461
26461
|
/**
|
|
26462
26462
|
* Groups entities by their `type` property and flattens the result into a single array.
|
|
@@ -26635,7 +26635,7 @@ class v0 extends Gl {
|
|
|
26635
26635
|
});
|
|
26636
26636
|
}
|
|
26637
26637
|
}
|
|
26638
|
-
var
|
|
26638
|
+
var hi = /* @__PURE__ */ ((n) => (n.DXF = "dxf", n.DWG = "dwg", n))(hi || {});
|
|
26639
26639
|
class zr {
|
|
26640
26640
|
/**
|
|
26641
26641
|
* Private constructor to enforce singleton pattern.
|
|
@@ -26930,7 +26930,7 @@ class wn extends tn {
|
|
|
26930
26930
|
* ```
|
|
26931
26931
|
*/
|
|
26932
26932
|
newIterator() {
|
|
26933
|
-
return new
|
|
26933
|
+
return new wi(this._recordsByName);
|
|
26934
26934
|
}
|
|
26935
26935
|
/**
|
|
26936
26936
|
* Normalizes the name of a symbol table record.
|
|
@@ -27053,7 +27053,7 @@ class x0 extends wn {
|
|
|
27053
27053
|
super(t);
|
|
27054
27054
|
}
|
|
27055
27055
|
}
|
|
27056
|
-
class
|
|
27056
|
+
class Ba extends xn {
|
|
27057
27057
|
/**
|
|
27058
27058
|
* Creates a new AcDbLayerTableRecord instance.
|
|
27059
27059
|
*
|
|
@@ -27061,15 +27061,15 @@ class Oa extends xn {
|
|
|
27061
27061
|
* @param defaultAttrs - Default values for attributes of this layer table record
|
|
27062
27062
|
*/
|
|
27063
27063
|
constructor(t, e) {
|
|
27064
|
-
t = t || {},
|
|
27065
|
-
color: new
|
|
27064
|
+
t = t || {}, zs(t, {
|
|
27065
|
+
color: new xe(),
|
|
27066
27066
|
description: "",
|
|
27067
27067
|
standardFlags: 0,
|
|
27068
27068
|
isHidden: !1,
|
|
27069
27069
|
isInUse: !0,
|
|
27070
27070
|
isOff: !1,
|
|
27071
27071
|
isPlottable: !0,
|
|
27072
|
-
transparency: new
|
|
27072
|
+
transparency: new Pa(),
|
|
27073
27073
|
linetype: "",
|
|
27074
27074
|
lineWeight: 1,
|
|
27075
27075
|
materialId: -1
|
|
@@ -27367,10 +27367,10 @@ class w0 extends wn {
|
|
|
27367
27367
|
*/
|
|
27368
27368
|
constructor(t) {
|
|
27369
27369
|
super(t);
|
|
27370
|
-
const e = new
|
|
27370
|
+
const e = new xe(), s = new Ba({
|
|
27371
27371
|
name: "0",
|
|
27372
27372
|
standardFlags: 0,
|
|
27373
|
-
linetype:
|
|
27373
|
+
linetype: Di,
|
|
27374
27374
|
lineWeight: bn.ByLineWeightDefault,
|
|
27375
27375
|
isOff: !1,
|
|
27376
27376
|
color: e,
|
|
@@ -27490,7 +27490,164 @@ class A0 extends xn {
|
|
|
27490
27490
|
super(), this.name = t;
|
|
27491
27491
|
}
|
|
27492
27492
|
}
|
|
27493
|
-
const
|
|
27493
|
+
const _i = class _i {
|
|
27494
|
+
constructor() {
|
|
27495
|
+
this.registry = /* @__PURE__ */ new Map(), this.cache = /* @__PURE__ */ new Map(), this.events = {
|
|
27496
|
+
/**
|
|
27497
|
+
* Fired after a system variable is changed directly through the SETVAR command or
|
|
27498
|
+
* by entering the variable name at the command line.
|
|
27499
|
+
*/
|
|
27500
|
+
sysVarChanged: new oe()
|
|
27501
|
+
}, this.registerVar({
|
|
27502
|
+
name: "CECOLOR",
|
|
27503
|
+
type: "color",
|
|
27504
|
+
isDbVar: !0,
|
|
27505
|
+
defaultValue: new xe(pt.ByLayer)
|
|
27506
|
+
}), this.registerVar({
|
|
27507
|
+
name: "CELTSCALE",
|
|
27508
|
+
type: "number",
|
|
27509
|
+
isDbVar: !0,
|
|
27510
|
+
defaultValue: -1
|
|
27511
|
+
}), this.registerVar({
|
|
27512
|
+
name: "CELWEIGHT",
|
|
27513
|
+
type: "number",
|
|
27514
|
+
isDbVar: !0,
|
|
27515
|
+
defaultValue: bn.ByLayer
|
|
27516
|
+
}), this.registerVar({
|
|
27517
|
+
name: "CLAYER",
|
|
27518
|
+
type: "string",
|
|
27519
|
+
isDbVar: !0,
|
|
27520
|
+
defaultValue: "0"
|
|
27521
|
+
}), this.registerVar({
|
|
27522
|
+
name: "LWDISPLAY",
|
|
27523
|
+
type: "boolean",
|
|
27524
|
+
isDbVar: !0,
|
|
27525
|
+
defaultValue: !1
|
|
27526
|
+
}), this.registerVar({
|
|
27527
|
+
name: "PICKBOX",
|
|
27528
|
+
type: "number",
|
|
27529
|
+
isDbVar: !1,
|
|
27530
|
+
defaultValue: 10
|
|
27531
|
+
}), this.registerVar({
|
|
27532
|
+
/**
|
|
27533
|
+
* The flag whether the background color is white
|
|
27534
|
+
* - false: black
|
|
27535
|
+
* - true: white
|
|
27536
|
+
*/
|
|
27537
|
+
name: "WHITEBKCOLOR",
|
|
27538
|
+
type: "boolean",
|
|
27539
|
+
isDbVar: !1,
|
|
27540
|
+
defaultValue: !1
|
|
27541
|
+
});
|
|
27542
|
+
}
|
|
27543
|
+
/** Singleton accessor */
|
|
27544
|
+
static instance() {
|
|
27545
|
+
return this._instance || (this._instance = new _i()), this._instance;
|
|
27546
|
+
}
|
|
27547
|
+
/**
|
|
27548
|
+
* Register one system variable metadata entry.
|
|
27549
|
+
*/
|
|
27550
|
+
registerVar(t) {
|
|
27551
|
+
const e = this.normalizeName(t.name);
|
|
27552
|
+
this.registry.set(e, {
|
|
27553
|
+
...t,
|
|
27554
|
+
name: e
|
|
27555
|
+
}), t.isDbVar || this.cache.set(e, t.defaultValue);
|
|
27556
|
+
}
|
|
27557
|
+
/**
|
|
27558
|
+
* Register many system variables.
|
|
27559
|
+
*/
|
|
27560
|
+
registerMany(t) {
|
|
27561
|
+
t.forEach((e) => this.registerVar(e));
|
|
27562
|
+
}
|
|
27563
|
+
/**
|
|
27564
|
+
* Get system variable value.
|
|
27565
|
+
*/
|
|
27566
|
+
getVar(t, e) {
|
|
27567
|
+
t = this.normalizeName(t);
|
|
27568
|
+
const s = this.getDescriptor(t);
|
|
27569
|
+
if (s) {
|
|
27570
|
+
if (s.isDbVar)
|
|
27571
|
+
return e[t.toLowerCase()];
|
|
27572
|
+
if (this.cache.has(t))
|
|
27573
|
+
return this.cache.get(t);
|
|
27574
|
+
}
|
|
27575
|
+
}
|
|
27576
|
+
/**
|
|
27577
|
+
* Set system variable value.
|
|
27578
|
+
*/
|
|
27579
|
+
setVar(t, e, s) {
|
|
27580
|
+
t = this.normalizeName(t);
|
|
27581
|
+
const a = this.getDescriptor(t);
|
|
27582
|
+
if (a) {
|
|
27583
|
+
const h = this.getVar(t, s);
|
|
27584
|
+
if (a.type !== "string" && (typeof e == "string" || e instanceof String)) {
|
|
27585
|
+
if (a.type === "number") {
|
|
27586
|
+
const u = Number(e);
|
|
27587
|
+
if (Number.isNaN(u))
|
|
27588
|
+
throw new Error("Invalid number input!");
|
|
27589
|
+
e = u;
|
|
27590
|
+
} else if (a.type === "boolean")
|
|
27591
|
+
e = this.parseBoolean(e);
|
|
27592
|
+
else if (a.type === "color") {
|
|
27593
|
+
const u = xe.fromString(e);
|
|
27594
|
+
if (u == null)
|
|
27595
|
+
throw new Error("Invalid color value!");
|
|
27596
|
+
e = u;
|
|
27597
|
+
}
|
|
27598
|
+
}
|
|
27599
|
+
a.isDbVar ? s[t.toLowerCase()] = e : (this.cache.set(t, e), this.hasValueChanged(h, e) && this.events.sysVarChanged.dispatch({
|
|
27600
|
+
database: s,
|
|
27601
|
+
name: t,
|
|
27602
|
+
newVal: e,
|
|
27603
|
+
oldVal: h
|
|
27604
|
+
}));
|
|
27605
|
+
} else
|
|
27606
|
+
throw new Error(`System variable ${t} not found!`);
|
|
27607
|
+
}
|
|
27608
|
+
/**
|
|
27609
|
+
* Get system variable metadata descriptor (if registered).
|
|
27610
|
+
*/
|
|
27611
|
+
getDescriptor(t) {
|
|
27612
|
+
return this.registry.get(this.normalizeName(t));
|
|
27613
|
+
}
|
|
27614
|
+
/**
|
|
27615
|
+
* Get all registered system variable descriptors.
|
|
27616
|
+
*/
|
|
27617
|
+
getAllDescriptors() {
|
|
27618
|
+
return [...this.registry.values()];
|
|
27619
|
+
}
|
|
27620
|
+
/**
|
|
27621
|
+
* Parse one string as one boolean value with case-insensitive by ignoring extra spaces
|
|
27622
|
+
* - "true" / "false"
|
|
27623
|
+
* - "t" / "f"
|
|
27624
|
+
* - "1" / "0"
|
|
27625
|
+
* - "yes" / "no"
|
|
27626
|
+
* - "y" / "n"
|
|
27627
|
+
* @param value - One string
|
|
27628
|
+
* @returns - The parsed boolean value
|
|
27629
|
+
*/
|
|
27630
|
+
parseBoolean(t) {
|
|
27631
|
+
if (t == null) return !1;
|
|
27632
|
+
const e = String(t).trim().toLowerCase(), s = /* @__PURE__ */ new Set(["true", "t", "1", "yes", "y"]), a = /* @__PURE__ */ new Set(["false", "f", "0", "no", "n"]);
|
|
27633
|
+
return s.has(e) ? !0 : (a.has(e), !1);
|
|
27634
|
+
}
|
|
27635
|
+
/**
|
|
27636
|
+
* Check if sysvar value changed.
|
|
27637
|
+
*/
|
|
27638
|
+
hasValueChanged(t, e) {
|
|
27639
|
+
return t instanceof xe && e instanceof xe ? !t.equals(e) : !Object.is(t, e);
|
|
27640
|
+
}
|
|
27641
|
+
/**
|
|
27642
|
+
* Normalize system variable name for internal storage and lookup.
|
|
27643
|
+
*/
|
|
27644
|
+
normalizeName(t) {
|
|
27645
|
+
return t.toLowerCase();
|
|
27646
|
+
}
|
|
27647
|
+
};
|
|
27648
|
+
_i._instance = null;
|
|
27649
|
+
let Sa = _i;
|
|
27650
|
+
const yi = class yi extends tn {
|
|
27494
27651
|
/**
|
|
27495
27652
|
* Creates a new AcDbDatabase instance.
|
|
27496
27653
|
*/
|
|
@@ -27513,10 +27670,8 @@ const fi = class fi extends tn {
|
|
|
27513
27670
|
/** Fired when a layer is erased from the database */
|
|
27514
27671
|
layerErased: new oe(),
|
|
27515
27672
|
/** Fired during database opening operations to report progress */
|
|
27516
|
-
openProgress: new oe()
|
|
27517
|
-
|
|
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 = bn.ByLayer, this._clayer = "0", this._extents = new Ct(), this._insunits = Ul.Millimeters, this._ltscale = 1, this._pdmode = 0, this._pdsize = 0, this._tables = {
|
|
27673
|
+
openProgress: new oe()
|
|
27674
|
+
}, this._version = new Ms("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = ul.DecimalDegrees, this._celtscale = 1, this._cecolor = new xe(), this._celweight = bn.ByLayer, this._clayer = "0", this._extents = new Ct(), this._insunits = Ul.Millimeters, this._ltscale = 1, this._lwdisplay = !0, this._pdmode = 0, this._pdsize = 0, this._tables = {
|
|
27520
27675
|
appIdTable: new E0(this),
|
|
27521
27676
|
blockTable: new b0(this),
|
|
27522
27677
|
dimStyleTable: new x0(this),
|
|
@@ -27525,12 +27680,12 @@ const fi = class fi extends tn {
|
|
|
27525
27680
|
layerTable: new w0(this),
|
|
27526
27681
|
viewportTable: new P0(this)
|
|
27527
27682
|
}, this._objects = {
|
|
27528
|
-
dictionary: new
|
|
27529
|
-
imageDefinition: new
|
|
27683
|
+
dictionary: new ni(this),
|
|
27684
|
+
imageDefinition: new ni(this),
|
|
27530
27685
|
layout: new Sc(this),
|
|
27531
|
-
xrecord: new
|
|
27686
|
+
xrecord: new ni(this)
|
|
27532
27687
|
}, this._tables.appIdTable.add(
|
|
27533
|
-
new A0(
|
|
27688
|
+
new A0(yi.MLIGHTCAD_APPID)
|
|
27534
27689
|
);
|
|
27535
27690
|
}
|
|
27536
27691
|
/**
|
|
@@ -27622,7 +27777,9 @@ const fi = class fi extends tn {
|
|
|
27622
27777
|
* ```
|
|
27623
27778
|
*/
|
|
27624
27779
|
set aunits(t) {
|
|
27625
|
-
this._aunits
|
|
27780
|
+
this.updateSysVar("aunits", this._aunits, t ?? 0, (e) => {
|
|
27781
|
+
this._aunits = e;
|
|
27782
|
+
});
|
|
27626
27783
|
}
|
|
27627
27784
|
/**
|
|
27628
27785
|
* Gets the version of the database.
|
|
@@ -27639,7 +27796,14 @@ const fi = class fi extends tn {
|
|
|
27639
27796
|
* @param value - The version value of the database
|
|
27640
27797
|
*/
|
|
27641
27798
|
set version(t) {
|
|
27642
|
-
this.
|
|
27799
|
+
this.updateSysVar(
|
|
27800
|
+
"version",
|
|
27801
|
+
this._version,
|
|
27802
|
+
new Ms(t),
|
|
27803
|
+
(e) => {
|
|
27804
|
+
this._version = e;
|
|
27805
|
+
}
|
|
27806
|
+
);
|
|
27643
27807
|
}
|
|
27644
27808
|
/**
|
|
27645
27809
|
* Gets the drawing-units value for automatic scaling of blocks, images, or xrefs.
|
|
@@ -27667,7 +27831,9 @@ const fi = class fi extends tn {
|
|
|
27667
27831
|
* ```
|
|
27668
27832
|
*/
|
|
27669
27833
|
set insunits(t) {
|
|
27670
|
-
this._insunits
|
|
27834
|
+
this.updateSysVar("insunits", this._insunits, t ?? 4, (e) => {
|
|
27835
|
+
this._insunits = e;
|
|
27836
|
+
});
|
|
27671
27837
|
}
|
|
27672
27838
|
/**
|
|
27673
27839
|
* Gets the line type scale factor.
|
|
@@ -27693,7 +27859,42 @@ const fi = class fi extends tn {
|
|
|
27693
27859
|
* ```
|
|
27694
27860
|
*/
|
|
27695
27861
|
set ltscale(t) {
|
|
27696
|
-
this._ltscale
|
|
27862
|
+
this.updateSysVar("ltscale", this._ltscale, t ?? 1, (e) => {
|
|
27863
|
+
this._ltscale = e;
|
|
27864
|
+
});
|
|
27865
|
+
}
|
|
27866
|
+
/**
|
|
27867
|
+
* Gets the flag whether to display line weight.
|
|
27868
|
+
*
|
|
27869
|
+
* @returns The flag whether to display line weight.
|
|
27870
|
+
*
|
|
27871
|
+
* @example
|
|
27872
|
+
* ```typescript
|
|
27873
|
+
* const lineTypeScale = database.ltscale;
|
|
27874
|
+
* ```
|
|
27875
|
+
*/
|
|
27876
|
+
get lwdisplay() {
|
|
27877
|
+
return this._lwdisplay;
|
|
27878
|
+
}
|
|
27879
|
+
/**
|
|
27880
|
+
* Sets the flag whether to display line weight.
|
|
27881
|
+
*
|
|
27882
|
+
* @param value - The flag whether to display line weight.
|
|
27883
|
+
*
|
|
27884
|
+
* @example
|
|
27885
|
+
* ```typescript
|
|
27886
|
+
* database.lwdisplay = true;
|
|
27887
|
+
* ```
|
|
27888
|
+
*/
|
|
27889
|
+
set lwdisplay(t) {
|
|
27890
|
+
this.updateSysVar(
|
|
27891
|
+
"lwdisplay",
|
|
27892
|
+
this._lwdisplay,
|
|
27893
|
+
t ?? !1,
|
|
27894
|
+
(e) => {
|
|
27895
|
+
this._lwdisplay = e;
|
|
27896
|
+
}
|
|
27897
|
+
);
|
|
27697
27898
|
}
|
|
27698
27899
|
/**
|
|
27699
27900
|
* Gets the color of new objects as they are created.
|
|
@@ -27719,7 +27920,9 @@ const fi = class fi extends tn {
|
|
|
27719
27920
|
* ```
|
|
27720
27921
|
*/
|
|
27721
27922
|
set cecolor(t) {
|
|
27722
|
-
this._cecolor
|
|
27923
|
+
this.updateSysVar("cecolor", this._cecolor, t || 0, (e) => {
|
|
27924
|
+
this._cecolor = e;
|
|
27925
|
+
});
|
|
27723
27926
|
}
|
|
27724
27927
|
/**
|
|
27725
27928
|
* The line type scaling for new objects relative to the ltscale setting. A line created with
|
|
@@ -27730,7 +27933,9 @@ const fi = class fi extends tn {
|
|
|
27730
27933
|
return this._celtscale;
|
|
27731
27934
|
}
|
|
27732
27935
|
set celtscale(t) {
|
|
27733
|
-
this._celtscale
|
|
27936
|
+
this.updateSysVar("celtscale", this._celtscale, t ?? 1, (e) => {
|
|
27937
|
+
this._celtscale = e;
|
|
27938
|
+
});
|
|
27734
27939
|
}
|
|
27735
27940
|
/**
|
|
27736
27941
|
* The layer of new objects as they are created.
|
|
@@ -27739,7 +27944,14 @@ const fi = class fi extends tn {
|
|
|
27739
27944
|
return this._celweight;
|
|
27740
27945
|
}
|
|
27741
27946
|
set celweight(t) {
|
|
27742
|
-
this.
|
|
27947
|
+
this.updateSysVar(
|
|
27948
|
+
"celweight",
|
|
27949
|
+
this._celweight,
|
|
27950
|
+
t ?? bn.ByLayer,
|
|
27951
|
+
(e) => {
|
|
27952
|
+
this._celweight = e;
|
|
27953
|
+
}
|
|
27954
|
+
);
|
|
27743
27955
|
}
|
|
27744
27956
|
/**
|
|
27745
27957
|
* The layer of new objects as they are created.
|
|
@@ -27748,7 +27960,9 @@ const fi = class fi extends tn {
|
|
|
27748
27960
|
return this._clayer;
|
|
27749
27961
|
}
|
|
27750
27962
|
set clayer(t) {
|
|
27751
|
-
this._clayer
|
|
27963
|
+
this.updateSysVar("clayer", this._clayer, t ?? "0", (e) => {
|
|
27964
|
+
this._clayer = e;
|
|
27965
|
+
});
|
|
27752
27966
|
}
|
|
27753
27967
|
/**
|
|
27754
27968
|
* The zero (0) base angle with respect to the current UCS in radians.
|
|
@@ -27757,7 +27971,9 @@ const fi = class fi extends tn {
|
|
|
27757
27971
|
return this._angBase;
|
|
27758
27972
|
}
|
|
27759
27973
|
set angBase(t) {
|
|
27760
|
-
this._angBase
|
|
27974
|
+
this.updateSysVar("angbase", this._angBase, t ?? 0, (e) => {
|
|
27975
|
+
this._angBase = e;
|
|
27976
|
+
});
|
|
27761
27977
|
}
|
|
27762
27978
|
/**
|
|
27763
27979
|
* The direction of positive angles.
|
|
@@ -27768,7 +27984,9 @@ const fi = class fi extends tn {
|
|
|
27768
27984
|
return this._angDir;
|
|
27769
27985
|
}
|
|
27770
27986
|
set angDir(t) {
|
|
27771
|
-
this._angDir
|
|
27987
|
+
this.updateSysVar("angdir", this._angDir, t ?? 0, (e) => {
|
|
27988
|
+
this._angDir = e;
|
|
27989
|
+
});
|
|
27772
27990
|
}
|
|
27773
27991
|
/**
|
|
27774
27992
|
* The current Model Space EXTMAX value
|
|
@@ -27777,7 +27995,10 @@ const fi = class fi extends tn {
|
|
|
27777
27995
|
return this._extents.max;
|
|
27778
27996
|
}
|
|
27779
27997
|
set extmax(t) {
|
|
27780
|
-
|
|
27998
|
+
if (t) {
|
|
27999
|
+
const e = this._extents.max.clone();
|
|
28000
|
+
this._extents.expandByPoint(t), this._extents.max.equals(e) || this.triggerSysVarChangedEvent("extmax", e, this._extents.max);
|
|
28001
|
+
}
|
|
27781
28002
|
}
|
|
27782
28003
|
/**
|
|
27783
28004
|
* The current Model Space EXTMIN value
|
|
@@ -27786,7 +28007,10 @@ const fi = class fi extends tn {
|
|
|
27786
28007
|
return this._extents.min;
|
|
27787
28008
|
}
|
|
27788
28009
|
set extmin(t) {
|
|
27789
|
-
|
|
28010
|
+
if (t) {
|
|
28011
|
+
const e = this._extents.min.clone();
|
|
28012
|
+
this._extents.expandByPoint(t), this._extents.min.equals(e) || this.triggerSysVarChangedEvent("extmin", e, this._extents.min);
|
|
28013
|
+
}
|
|
27790
28014
|
}
|
|
27791
28015
|
/**
|
|
27792
28016
|
* The extents of current Model Space
|
|
@@ -27801,7 +28025,9 @@ const fi = class fi extends tn {
|
|
|
27801
28025
|
return this._pdmode;
|
|
27802
28026
|
}
|
|
27803
28027
|
set pdmode(t) {
|
|
27804
|
-
this._pdmode
|
|
28028
|
+
this.updateSysVar("pdmode", this._pdmode, t ?? 0, (e) => {
|
|
28029
|
+
this._pdmode = e;
|
|
28030
|
+
});
|
|
27805
28031
|
}
|
|
27806
28032
|
/**
|
|
27807
28033
|
* Point display size.
|
|
@@ -27813,7 +28039,9 @@ const fi = class fi extends tn {
|
|
|
27813
28039
|
return this._pdsize;
|
|
27814
28040
|
}
|
|
27815
28041
|
set pdsize(t) {
|
|
27816
|
-
this._pdsize
|
|
28042
|
+
this.updateSysVar("pdsize", this._pdsize, t ?? 0, (e) => {
|
|
28043
|
+
this._pdsize = e;
|
|
28044
|
+
});
|
|
27817
28045
|
}
|
|
27818
28046
|
/**
|
|
27819
28047
|
* Reads drawing data from a string or ArrayBuffer.
|
|
@@ -27839,7 +28067,7 @@ const fi = class fi extends tn {
|
|
|
27839
28067
|
* await database.read(dwgArrayBuffer, { readOnly: true }, AcDbFileType.DWG);
|
|
27840
28068
|
* ```
|
|
27841
28069
|
*/
|
|
27842
|
-
async read(t, e, s =
|
|
28070
|
+
async read(t, e, s = hi.DXF) {
|
|
27843
28071
|
const a = zr.instance.get(s);
|
|
27844
28072
|
if (a == null)
|
|
27845
28073
|
throw new Error(
|
|
@@ -27915,7 +28143,7 @@ const fi = class fi extends tn {
|
|
|
27915
28143
|
for (const L of b)
|
|
27916
28144
|
f.set(L, w), w += L.length;
|
|
27917
28145
|
const E = this.getFileNameFromUri(t).toLowerCase().split(".").pop();
|
|
27918
|
-
E === "dwg" ? await this.read(f.buffer, e,
|
|
28146
|
+
E === "dwg" ? await this.read(f.buffer, e, hi.DWG) : E === "dxf" ? await this.read(f.buffer, e, hi.DXF) : await this.read(f.buffer, e, E), this.events.openProgress.dispatch({
|
|
27919
28147
|
database: this,
|
|
27920
28148
|
percentage: 100,
|
|
27921
28149
|
stage: "FETCH_FILE",
|
|
@@ -27971,22 +28199,27 @@ const fi = class fi extends tn {
|
|
|
27971
28199
|
this._tables.blockTable.removeAll(), this._tables.dimStyleTable.removeAll(), this._tables.linetypeTable.removeAll(), this._tables.textStyleTable.removeAll(), this._tables.layerTable.removeAll(), this._tables.viewportTable.removeAll(), this._objects.layout.removeAll(), this._currentSpace = void 0, this._extents.makeEmpty();
|
|
27972
28200
|
}
|
|
27973
28201
|
/**
|
|
27974
|
-
*
|
|
27975
|
-
|
|
27976
|
-
|
|
27977
|
-
|
|
27978
|
-
|
|
27979
|
-
|
|
27980
|
-
*
|
|
27981
|
-
* @example
|
|
27982
|
-
* ```typescript
|
|
27983
|
-
* database.triggerHeaderSysVarChangedEvent('aunits');
|
|
27984
|
-
* ```
|
|
28202
|
+
* Updates a sysvar value and dispatches the change event only when the value changed.
|
|
28203
|
+
*/
|
|
28204
|
+
updateSysVar(t, e, s, a) {
|
|
28205
|
+
this.hasSysVarValueChanged(e, s) && (a(s), this.triggerSysVarChangedEvent(t, e, s));
|
|
28206
|
+
}
|
|
28207
|
+
/**
|
|
28208
|
+
* Determines whether two sysvar values are different.
|
|
27985
28209
|
*/
|
|
27986
|
-
|
|
27987
|
-
|
|
28210
|
+
hasSysVarValueChanged(t, e) {
|
|
28211
|
+
return t instanceof xe && e instanceof xe ? !t.equals(e) : t instanceof Ms && e instanceof Ms ? t.value !== e.value : !Object.is(t, e);
|
|
28212
|
+
}
|
|
28213
|
+
/**
|
|
28214
|
+
* Triggers a system variable changed event with old/new values.
|
|
28215
|
+
*/
|
|
28216
|
+
triggerSysVarChangedEvent(t, e, s) {
|
|
28217
|
+
const a = Sa.instance(), h = t.toLowerCase();
|
|
28218
|
+
a.getDescriptor(h) != null && a.events.sysVarChanged.dispatch({
|
|
27988
28219
|
database: this,
|
|
27989
|
-
name:
|
|
28220
|
+
name: h,
|
|
28221
|
+
oldVal: e,
|
|
28222
|
+
newVal: s
|
|
27990
28223
|
});
|
|
27991
28224
|
}
|
|
27992
28225
|
/**
|
|
@@ -28005,12 +28238,12 @@ const fi = class fi extends tn {
|
|
|
28005
28238
|
}
|
|
28006
28239
|
}
|
|
28007
28240
|
};
|
|
28008
|
-
|
|
28009
|
-
let
|
|
28241
|
+
yi.MLIGHTCAD_APPID = "mlightcad";
|
|
28242
|
+
let nl = yi;
|
|
28010
28243
|
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
|
|
28244
|
+
const vi = class vi extends xn {
|
|
28012
28245
|
constructor(t, e) {
|
|
28013
|
-
t = t || {},
|
|
28246
|
+
t = t || {}, zs(t, vi.DEFAULT_DIM_VALUES), super(t, e);
|
|
28014
28247
|
}
|
|
28015
28248
|
/**
|
|
28016
28249
|
* Dimension postfix. This property specifies a text prefix or suffix (or both) to the dimension
|
|
@@ -28845,7 +29078,7 @@ const _i = class _i extends xn {
|
|
|
28845
29078
|
this.setAttr("dimlwe", t);
|
|
28846
29079
|
}
|
|
28847
29080
|
};
|
|
28848
|
-
|
|
29081
|
+
vi.DEFAULT_DIM_VALUES = {
|
|
28849
29082
|
name: "",
|
|
28850
29083
|
dimpost: "",
|
|
28851
29084
|
dimapost: "",
|
|
@@ -28926,8 +29159,8 @@ _i.DEFAULT_DIM_VALUES = {
|
|
|
28926
29159
|
dimlwd: -2,
|
|
28927
29160
|
dimlwe: -2
|
|
28928
29161
|
};
|
|
28929
|
-
let
|
|
28930
|
-
class
|
|
29162
|
+
let Bs = vi;
|
|
29163
|
+
class ui extends xn {
|
|
28931
29164
|
/**
|
|
28932
29165
|
* Creates a new line type table record.
|
|
28933
29166
|
*
|
|
@@ -29004,137 +29237,6 @@ class hi extends xn {
|
|
|
29004
29237
|
return this._linetype.pattern[t].elementLength;
|
|
29005
29238
|
}
|
|
29006
29239
|
}
|
|
29007
|
-
const yi = class yi {
|
|
29008
|
-
constructor() {
|
|
29009
|
-
this.registry = /* @__PURE__ */ new Map(), this.cache = /* @__PURE__ */ new Map(), this.events = {
|
|
29010
|
-
/**
|
|
29011
|
-
* Fired after a system variable is changed directly through the SETVAR command or
|
|
29012
|
-
* by entering the variable name at the command line.
|
|
29013
|
-
*/
|
|
29014
|
-
sysVarChanged: new oe()
|
|
29015
|
-
}, this.registerVar({
|
|
29016
|
-
/**
|
|
29017
|
-
* The flag whether the background color is white
|
|
29018
|
-
* - false: black
|
|
29019
|
-
* - true: white
|
|
29020
|
-
*/
|
|
29021
|
-
name: "WHITEBKCOLOR",
|
|
29022
|
-
type: "boolean",
|
|
29023
|
-
isDbVar: !1,
|
|
29024
|
-
defaultValue: !1
|
|
29025
|
-
}), this.registerVar({
|
|
29026
|
-
name: "CECOLOR",
|
|
29027
|
-
type: "color",
|
|
29028
|
-
isDbVar: !0,
|
|
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
|
|
29040
|
-
}), this.registerVar({
|
|
29041
|
-
name: "CLAYER",
|
|
29042
|
-
type: "string",
|
|
29043
|
-
isDbVar: !0,
|
|
29044
|
-
defaultValue: "0"
|
|
29045
|
-
}), this.registerVar({
|
|
29046
|
-
name: "PICKBOX",
|
|
29047
|
-
type: "number",
|
|
29048
|
-
isDbVar: !1,
|
|
29049
|
-
defaultValue: 0
|
|
29050
|
-
});
|
|
29051
|
-
}
|
|
29052
|
-
/** Singleton accessor */
|
|
29053
|
-
static instance() {
|
|
29054
|
-
return this._instance || (this._instance = new yi()), this._instance;
|
|
29055
|
-
}
|
|
29056
|
-
/**
|
|
29057
|
-
* Register one system variable metadata entry.
|
|
29058
|
-
*/
|
|
29059
|
-
registerVar(t) {
|
|
29060
|
-
this.registry.set(t.name.toUpperCase(), t);
|
|
29061
|
-
}
|
|
29062
|
-
/**
|
|
29063
|
-
* Register many system variables.
|
|
29064
|
-
*/
|
|
29065
|
-
registerMany(t) {
|
|
29066
|
-
t.forEach((e) => this.registerVar(e));
|
|
29067
|
-
}
|
|
29068
|
-
/**
|
|
29069
|
-
* Get system variable value.
|
|
29070
|
-
*/
|
|
29071
|
-
getVar(t, e) {
|
|
29072
|
-
t = t.toUpperCase();
|
|
29073
|
-
const s = this.getDescriptor(t);
|
|
29074
|
-
if (s) {
|
|
29075
|
-
if (s.isDbVar)
|
|
29076
|
-
return e[t.toLowerCase()];
|
|
29077
|
-
if (this.cache.has(t))
|
|
29078
|
-
return this.cache.get(t);
|
|
29079
|
-
}
|
|
29080
|
-
}
|
|
29081
|
-
/**
|
|
29082
|
-
* Set system variable value.
|
|
29083
|
-
*/
|
|
29084
|
-
setVar(t, e, s) {
|
|
29085
|
-
t = t.toUpperCase();
|
|
29086
|
-
const a = this.getDescriptor(t);
|
|
29087
|
-
if (a) {
|
|
29088
|
-
const h = this.getVar(t, s);
|
|
29089
|
-
if (a.type !== "string" && (typeof e == "string" || e instanceof String)) {
|
|
29090
|
-
if (a.type === "number") {
|
|
29091
|
-
const u = Number(e);
|
|
29092
|
-
if (Number.isNaN(u))
|
|
29093
|
-
throw new Error("Invalid number input!");
|
|
29094
|
-
e = u;
|
|
29095
|
-
} else if (a.type === "boolean")
|
|
29096
|
-
e = this.parseBoolean(e);
|
|
29097
|
-
else if (a.type === "color") {
|
|
29098
|
-
const u = Ze.fromString(e);
|
|
29099
|
-
if (u == null)
|
|
29100
|
-
throw new Error("Invalid color value!");
|
|
29101
|
-
e = u;
|
|
29102
|
-
}
|
|
29103
|
-
}
|
|
29104
|
-
a.isDbVar ? s[t.toLowerCase()] = e : this.cache.set(t, e), this.events.sysVarChanged.dispatch({ name: t, newVal: e, oldVal: h });
|
|
29105
|
-
} else
|
|
29106
|
-
throw new Error(`System variable ${t} not found!`);
|
|
29107
|
-
}
|
|
29108
|
-
/**
|
|
29109
|
-
* Get system variable metadata descriptor (if registered).
|
|
29110
|
-
*/
|
|
29111
|
-
getDescriptor(t) {
|
|
29112
|
-
return this.registry.get(t.toUpperCase());
|
|
29113
|
-
}
|
|
29114
|
-
/**
|
|
29115
|
-
* Get all registered system variable descriptors.
|
|
29116
|
-
*/
|
|
29117
|
-
getAllDescriptors() {
|
|
29118
|
-
return [...this.registry.values()];
|
|
29119
|
-
}
|
|
29120
|
-
/**
|
|
29121
|
-
* Parse one string as one boolean value with case-insensitive by ignoring extra spaces
|
|
29122
|
-
* - "true" / "false"
|
|
29123
|
-
* - "t" / "f"
|
|
29124
|
-
* - "1" / "0"
|
|
29125
|
-
* - "yes" / "no"
|
|
29126
|
-
* - "y" / "n"
|
|
29127
|
-
* @param value - One string
|
|
29128
|
-
* @returns - The parsed boolean value
|
|
29129
|
-
*/
|
|
29130
|
-
parseBoolean(t) {
|
|
29131
|
-
if (t == null) return !1;
|
|
29132
|
-
const e = String(t).trim().toLowerCase(), s = /* @__PURE__ */ new Set(["true", "t", "1", "yes", "y"]), a = /* @__PURE__ */ new Set(["false", "f", "0", "no", "n"]);
|
|
29133
|
-
return s.has(e) ? !0 : (a.has(e), !1);
|
|
29134
|
-
}
|
|
29135
|
-
};
|
|
29136
|
-
yi._instance = null;
|
|
29137
|
-
let nl = yi;
|
|
29138
29240
|
class Qh extends xn {
|
|
29139
29241
|
/**
|
|
29140
29242
|
* Creates a new AcDbTextStyleTableRecord instance.
|
|
@@ -29711,7 +29813,7 @@ class B0 {
|
|
|
29711
29813
|
* @returns Return newly created layout and its associated block table record.
|
|
29712
29814
|
*/
|
|
29713
29815
|
createLayout(t, e) {
|
|
29714
|
-
const s = this.getWorkingDatabase(e), a = new
|
|
29816
|
+
const s = this.getWorkingDatabase(e), a = new Ta();
|
|
29715
29817
|
a.layoutName = t, a.tabOrder = s.objects.layout.maxTabOrder;
|
|
29716
29818
|
const h = new ge();
|
|
29717
29819
|
return h.name = `*Paper_Space${a.tabOrder}`, s.tables.blockTable.add(h), s.objects.layout.setAt(t, a), this.events.layoutCreated.dispatch({
|
|
@@ -29737,9 +29839,9 @@ class B0 {
|
|
|
29737
29839
|
}
|
|
29738
29840
|
}
|
|
29739
29841
|
function Jh() {
|
|
29740
|
-
return
|
|
29842
|
+
return Ia.instance;
|
|
29741
29843
|
}
|
|
29742
|
-
const
|
|
29844
|
+
const bi = class bi {
|
|
29743
29845
|
/**
|
|
29744
29846
|
* Private constructor to enforce singleton pattern.
|
|
29745
29847
|
* Initializes the layout manager.
|
|
@@ -29809,8 +29911,8 @@ const vi = class vi {
|
|
|
29809
29911
|
return this._layoutManager;
|
|
29810
29912
|
}
|
|
29811
29913
|
};
|
|
29812
|
-
|
|
29813
|
-
let
|
|
29914
|
+
bi.instance = new bi();
|
|
29915
|
+
let Ia = bi;
|
|
29814
29916
|
var z0 = /* @__PURE__ */ ((n) => (n.kForRead = "kForRead", n.kForWrite = "kForWrite", n))(z0 || {});
|
|
29815
29917
|
class tu {
|
|
29816
29918
|
/**
|
|
@@ -29880,7 +29982,7 @@ class tu {
|
|
|
29880
29982
|
}
|
|
29881
29983
|
}
|
|
29882
29984
|
export {
|
|
29883
|
-
|
|
29985
|
+
xe as AcCmColor,
|
|
29884
29986
|
pt as AcCmColorMethod,
|
|
29885
29987
|
on as AcCmColorUtil,
|
|
29886
29988
|
F0 as AcCmEntityColor,
|
|
@@ -29893,40 +29995,40 @@ export {
|
|
|
29893
29995
|
ll as AcCmPerformanceCollector,
|
|
29894
29996
|
Pu as AcCmTask,
|
|
29895
29997
|
Eu as AcCmTaskScheduler,
|
|
29896
|
-
|
|
29897
|
-
|
|
29898
|
-
|
|
29899
|
-
|
|
29998
|
+
Pa as AcCmTransparency,
|
|
29999
|
+
Ce as AcCmTransparencyMethod,
|
|
30000
|
+
ta as AcDb2dPolyline,
|
|
30001
|
+
qo as AcDb2dVertex,
|
|
29900
30002
|
pc as AcDb2dVertexType,
|
|
29901
|
-
|
|
29902
|
-
|
|
29903
|
-
|
|
30003
|
+
_a as AcDb3PointAngularDimension,
|
|
30004
|
+
ea as AcDb3dPolyline,
|
|
30005
|
+
Xo as AcDb3dVertex,
|
|
29904
30006
|
mc as AcDb3dVertexType,
|
|
29905
|
-
|
|
30007
|
+
ya as AcDbAlignedDimension,
|
|
29906
30008
|
ul as AcDbAngleUnits,
|
|
29907
|
-
|
|
29908
|
-
|
|
29909
|
-
|
|
29910
|
-
|
|
30009
|
+
ra as AcDbArc,
|
|
30010
|
+
Ko as AcDbArcDimension,
|
|
30011
|
+
sa as AcDbAttribute,
|
|
30012
|
+
na as AcDbAttributeDefinition,
|
|
29911
30013
|
me as AcDbAttributeFlags,
|
|
29912
30014
|
Rr as AcDbAttributeMTextFlag,
|
|
29913
30015
|
op as AcDbBaseWorker,
|
|
29914
30016
|
hl as AcDbBatchProcessing,
|
|
29915
|
-
|
|
30017
|
+
Os as AcDbBlockReference,
|
|
29916
30018
|
b0 as AcDbBlockTable,
|
|
29917
30019
|
ge as AcDbBlockTableRecord,
|
|
29918
|
-
|
|
30020
|
+
ia as AcDbCircle,
|
|
29919
30021
|
cl as AcDbCodePage,
|
|
29920
|
-
|
|
30022
|
+
Be as AcDbCurve,
|
|
29921
30023
|
Ec as AcDbDataGenerator,
|
|
29922
|
-
|
|
30024
|
+
nl as AcDbDatabase,
|
|
29923
30025
|
Gl as AcDbDatabaseConverter,
|
|
29924
30026
|
zr as AcDbDatabaseConverterManager,
|
|
29925
|
-
|
|
29926
|
-
|
|
30027
|
+
va as AcDbDiametricDimension,
|
|
30028
|
+
ni as AcDbDictionary,
|
|
29927
30029
|
Ac as AcDbDimArrowType,
|
|
29928
30030
|
x0 as AcDbDimStyleTable,
|
|
29929
|
-
|
|
30031
|
+
Bs as AcDbDimStyleTableRecord,
|
|
29930
30032
|
k0 as AcDbDimTextHorizontal,
|
|
29931
30033
|
M0 as AcDbDimTextVertical,
|
|
29932
30034
|
L0 as AcDbDimVerticalJustification,
|
|
@@ -29934,88 +30036,88 @@ export {
|
|
|
29934
30036
|
N0 as AcDbDimZeroSuppressionAngular,
|
|
29935
30037
|
Jr as AcDbDimension,
|
|
29936
30038
|
Pc as AcDbDuplicateRecordCloning,
|
|
29937
|
-
|
|
30039
|
+
Ms as AcDbDwgVersion,
|
|
29938
30040
|
sl as AcDbDxfCode,
|
|
29939
30041
|
y0 as AcDbDxfConverter,
|
|
29940
|
-
|
|
29941
|
-
|
|
29942
|
-
|
|
29943
|
-
|
|
29944
|
-
|
|
29945
|
-
|
|
30042
|
+
aa as AcDbEllipse,
|
|
30043
|
+
Oe as AcDbEntity,
|
|
30044
|
+
oa as AcDbFace,
|
|
30045
|
+
hi as AcDbFileType,
|
|
30046
|
+
ci as AcDbHatch,
|
|
30047
|
+
ri as AcDbHatchPatternType,
|
|
29946
30048
|
_c as AcDbHatchStyle,
|
|
29947
|
-
|
|
30049
|
+
Ia as AcDbHostApplicationServices,
|
|
29948
30050
|
w0 as AcDbLayerTable,
|
|
29949
|
-
|
|
29950
|
-
|
|
30051
|
+
Ba as AcDbLayerTableRecord,
|
|
30052
|
+
Ta as AcDbLayout,
|
|
29951
30053
|
Sc as AcDbLayoutDictionary,
|
|
29952
30054
|
B0 as AcDbLayoutManager,
|
|
29953
|
-
|
|
30055
|
+
la as AcDbLeader,
|
|
29954
30056
|
yc as AcDbLeaderAnnotationType,
|
|
29955
|
-
|
|
30057
|
+
di as AcDbLine,
|
|
29956
30058
|
wc as AcDbLineSpacingStyle,
|
|
29957
30059
|
S0 as AcDbLinetypeTable,
|
|
29958
|
-
|
|
29959
|
-
|
|
30060
|
+
ui as AcDbLinetypeTableRecord,
|
|
30061
|
+
pi as AcDbMText,
|
|
29960
30062
|
tn as AcDbObject,
|
|
29961
|
-
|
|
30063
|
+
wi as AcDbObjectIterator,
|
|
29962
30064
|
z0 as AcDbOpenMode,
|
|
29963
|
-
|
|
30065
|
+
ba as AcDbOrdinateDimension,
|
|
29964
30066
|
Vt as AcDbOsnapMode,
|
|
29965
|
-
|
|
30067
|
+
da as AcDbPoint,
|
|
29966
30068
|
ks as AcDbPoly2dType,
|
|
29967
|
-
|
|
29968
|
-
|
|
29969
|
-
|
|
29970
|
-
|
|
30069
|
+
ei as AcDbPoly3dType,
|
|
30070
|
+
ca as AcDbPolyline,
|
|
30071
|
+
xa as AcDbRadialDimension,
|
|
30072
|
+
gi as AcDbRasterImage,
|
|
29971
30073
|
bc as AcDbRasterImageClipBoundaryType,
|
|
29972
30074
|
Ic as AcDbRasterImageDef,
|
|
29973
30075
|
xc as AcDbRasterImageImageDisplayOpt,
|
|
29974
|
-
|
|
30076
|
+
pa as AcDbRay,
|
|
29975
30077
|
E0 as AcDbRegAppTable,
|
|
29976
30078
|
A0 as AcDbRegAppTableRecord,
|
|
29977
30079
|
v0 as AcDbRegenerator,
|
|
29978
|
-
|
|
30080
|
+
Rs as AcDbRenderingCache,
|
|
29979
30081
|
tu as AcDbResultBuffer,
|
|
29980
|
-
|
|
30082
|
+
mi as AcDbSpline,
|
|
29981
30083
|
wn as AcDbSymbolTable,
|
|
29982
30084
|
xn as AcDbSymbolTableRecord,
|
|
29983
|
-
|
|
29984
|
-
|
|
29985
|
-
|
|
30085
|
+
Sa as AcDbSysVarManager,
|
|
30086
|
+
ha as AcDbTable,
|
|
30087
|
+
Cs as AcDbText,
|
|
29986
30088
|
gc as AcDbTextHorizontalMode,
|
|
29987
30089
|
I0 as AcDbTextStyleTable,
|
|
29988
30090
|
Qh as AcDbTextStyleTableRecord,
|
|
29989
30091
|
fc as AcDbTextVerticalMode,
|
|
29990
|
-
|
|
30092
|
+
ua as AcDbTrace,
|
|
29991
30093
|
Ul as AcDbUnitsValue,
|
|
29992
|
-
|
|
30094
|
+
ma as AcDbViewport,
|
|
29993
30095
|
P0 as AcDbViewportTable,
|
|
29994
30096
|
O0 as AcDbViewportTableRecord,
|
|
29995
|
-
|
|
30097
|
+
ga as AcDbWipeout,
|
|
29996
30098
|
f0 as AcDbWorkerApi,
|
|
29997
30099
|
g0 as AcDbWorkerManager,
|
|
29998
|
-
|
|
30100
|
+
fa as AcDbXline,
|
|
29999
30101
|
Vl as AcDbXrecord,
|
|
30000
|
-
|
|
30001
|
-
|
|
30102
|
+
Aa as AcGeArea2d,
|
|
30103
|
+
ke as AcGeBox2d,
|
|
30002
30104
|
Ct as AcGeBox3d,
|
|
30003
30105
|
uc as AcGeCatmullRomCurve3d,
|
|
30004
|
-
|
|
30106
|
+
Ns as AcGeCircArc2d,
|
|
30005
30107
|
Ml as AcGeCircArc3d,
|
|
30006
|
-
|
|
30007
|
-
|
|
30008
|
-
|
|
30108
|
+
Fs as AcGeCurve2d,
|
|
30109
|
+
ka as AcGeEllipseArc2d,
|
|
30110
|
+
Ma as AcGeEllipseArc3d,
|
|
30009
30111
|
K0 as AcGeEuler,
|
|
30010
30112
|
Qu as AcGeGeometryUtil,
|
|
30011
|
-
|
|
30012
|
-
|
|
30113
|
+
ti as AcGeLine2d,
|
|
30114
|
+
Ls as AcGeLine3d,
|
|
30013
30115
|
Nl as AcGeLoop2d,
|
|
30014
30116
|
Et as AcGeMathUtil,
|
|
30015
|
-
|
|
30016
|
-
|
|
30117
|
+
Ea as AcGeMatrix2d,
|
|
30118
|
+
Ze as AcGeMatrix3d,
|
|
30017
30119
|
Un as AcGeNurbsCurve,
|
|
30018
|
-
|
|
30120
|
+
xi as AcGePlane,
|
|
30019
30121
|
Lt as AcGePoint2d,
|
|
30020
30122
|
W as AcGePoint3d,
|
|
30021
30123
|
Gn as AcGePolyline2d,
|
|
@@ -30028,16 +30130,16 @@ export {
|
|
|
30028
30130
|
Cl as AcGiArrowType,
|
|
30029
30131
|
zl as AcGiDefaultLightingType,
|
|
30030
30132
|
bn as AcGiLineWeight,
|
|
30031
|
-
|
|
30133
|
+
Ae as AcGiMTextAttachmentPoint,
|
|
30032
30134
|
$r as AcGiMTextFlowDirection,
|
|
30033
30135
|
Bl as AcGiOrthographicType,
|
|
30034
30136
|
Ol as AcGiRenderMode,
|
|
30035
30137
|
cc as AcGiViewport,
|
|
30036
30138
|
W0 as AcTrStringUtil,
|
|
30037
30139
|
Nu as ByBlock,
|
|
30038
|
-
|
|
30140
|
+
Ci as ByLayer,
|
|
30039
30141
|
j0 as DEBUG_MODE,
|
|
30040
|
-
|
|
30142
|
+
Di as DEFAULT_LINE_TYPE,
|
|
30041
30143
|
xl as DEFAULT_TOL,
|
|
30042
30144
|
dl as DEG2RAD,
|
|
30043
30145
|
ku as DefaultLoadingManager,
|
|
@@ -30053,19 +30155,19 @@ export {
|
|
|
30053
30155
|
tp as acdbMaskToOsnapModes,
|
|
30054
30156
|
J0 as acdbOsnapModesToMask,
|
|
30055
30157
|
ep as acdbToggleOsnapMode,
|
|
30056
|
-
|
|
30158
|
+
Zi as basisFunction,
|
|
30057
30159
|
rc as calculateCurveLength,
|
|
30058
30160
|
Xu as ceilPowerOfTwo,
|
|
30059
30161
|
Kr as clamp,
|
|
30060
|
-
|
|
30162
|
+
Ws as clone,
|
|
30061
30163
|
_0 as createWorkerApi,
|
|
30062
30164
|
Bu as damp,
|
|
30063
|
-
|
|
30064
|
-
|
|
30165
|
+
Bo as deepClone,
|
|
30166
|
+
zs as defaults,
|
|
30065
30167
|
Wu as degToRad,
|
|
30066
30168
|
Tu as dwgCodePageToEncoding,
|
|
30067
30169
|
ml as euclideanModulo,
|
|
30068
|
-
|
|
30170
|
+
Qs as evaluateNurbsPoint,
|
|
30069
30171
|
Yu as floorPowerOfTwo,
|
|
30070
30172
|
tc as generateChordKnots,
|
|
30071
30173
|
ec as generateSqrtChordKnots,
|
|
@@ -30078,16 +30180,16 @@ export {
|
|
|
30078
30180
|
Du as isBetween,
|
|
30079
30181
|
Ku as isBetweenAngle,
|
|
30080
30182
|
vu as isEmpty,
|
|
30081
|
-
|
|
30183
|
+
Ts as isEqual,
|
|
30082
30184
|
ap as isImperialUnits,
|
|
30083
30185
|
ip as isMetricUnits,
|
|
30084
30186
|
wl as isPointInPolygon,
|
|
30085
30187
|
Zu as isPolygonIntersect,
|
|
30086
30188
|
qu as isPowerOfTwo,
|
|
30087
30189
|
gl as lerp,
|
|
30088
|
-
|
|
30190
|
+
$s as log,
|
|
30089
30191
|
Cu as mapLinear,
|
|
30090
|
-
|
|
30192
|
+
Zs as normalizeAngle,
|
|
30091
30193
|
zu as pingpong,
|
|
30092
30194
|
Hu as radToDeg,
|
|
30093
30195
|
Uu as randFloat,
|