@mlightcad/data-model 1.7.22 → 1.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-model.cjs +3 -3
- package/dist/data-model.js +792 -753
- package/lib/entity/AcDbBlockReference.d.ts +79 -11
- package/lib/entity/AcDbBlockReference.d.ts.map +1 -1
- package/lib/entity/AcDbBlockReference.js +139 -30
- package/lib/entity/AcDbBlockReference.js.map +1 -1
- package/lib/entity/AcDbEntity.d.ts +3 -1
- package/lib/entity/AcDbEntity.d.ts.map +1 -1
- package/lib/entity/AcDbEntity.js +5 -1
- package/lib/entity/AcDbEntity.js.map +1 -1
- package/package.json +4 -4
package/dist/data-model.js
CHANGED
|
@@ -353,7 +353,7 @@ const ar = {
|
|
|
353
353
|
whitesmoke: 16119285,
|
|
354
354
|
yellow: 16776960,
|
|
355
355
|
yellowgreen: 10145074
|
|
356
|
-
},
|
|
356
|
+
}, Pi = [
|
|
357
357
|
0,
|
|
358
358
|
16711680,
|
|
359
359
|
16776960,
|
|
@@ -614,12 +614,12 @@ const ar = {
|
|
|
614
614
|
];
|
|
615
615
|
let ye = class {
|
|
616
616
|
static getColorByIndex(t) {
|
|
617
|
-
return
|
|
617
|
+
return Pi[t];
|
|
618
618
|
}
|
|
619
619
|
static getIndexByColor(t) {
|
|
620
|
-
const e =
|
|
620
|
+
const e = Pi.length - 1;
|
|
621
621
|
for (let s = 1; s < e; ++s)
|
|
622
|
-
if (
|
|
622
|
+
if (Pi[s] === t)
|
|
623
623
|
return s;
|
|
624
624
|
}
|
|
625
625
|
static getColorByName(t) {
|
|
@@ -936,7 +936,7 @@ let Zd = class {
|
|
|
936
936
|
s[n].call(this, t);
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
},
|
|
939
|
+
}, K = class {
|
|
940
940
|
constructor() {
|
|
941
941
|
this.listeners = [];
|
|
942
942
|
}
|
|
@@ -954,7 +954,7 @@ let Zd = class {
|
|
|
954
954
|
s.call(null, t, ...e);
|
|
955
955
|
}
|
|
956
956
|
};
|
|
957
|
-
function
|
|
957
|
+
function Cs(i) {
|
|
958
958
|
return i === null || typeof i != "object" ? i : Array.isArray(i) ? [...i] : { ...i };
|
|
959
959
|
}
|
|
960
960
|
function or(i) {
|
|
@@ -971,7 +971,7 @@ function or(i) {
|
|
|
971
971
|
Object.prototype.hasOwnProperty.call(i, e) && (t[e] = or(i[e]));
|
|
972
972
|
return t;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function yi(i, ...t) {
|
|
975
975
|
for (const e of t)
|
|
976
976
|
if (e)
|
|
977
977
|
for (const s in e)
|
|
@@ -1035,14 +1035,14 @@ var Rr = { exports: {} };
|
|
|
1035
1035
|
"error"
|
|
1036
1036
|
], r = {}, a = null;
|
|
1037
1037
|
function o(y, w) {
|
|
1038
|
-
var
|
|
1039
|
-
if (typeof
|
|
1040
|
-
return
|
|
1038
|
+
var f = y[w];
|
|
1039
|
+
if (typeof f.bind == "function")
|
|
1040
|
+
return f.bind(y);
|
|
1041
1041
|
try {
|
|
1042
|
-
return Function.prototype.bind.call(
|
|
1042
|
+
return Function.prototype.bind.call(f, y);
|
|
1043
1043
|
} catch {
|
|
1044
1044
|
return function() {
|
|
1045
|
-
return Function.prototype.apply.apply(
|
|
1045
|
+
return Function.prototype.apply.apply(f, [y, arguments]);
|
|
1046
1046
|
};
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
@@ -1054,8 +1054,8 @@ var Rr = { exports: {} };
|
|
|
1054
1054
|
}
|
|
1055
1055
|
function d() {
|
|
1056
1056
|
for (var y = this.getLevel(), w = 0; w < n.length; w++) {
|
|
1057
|
-
var
|
|
1058
|
-
this[
|
|
1057
|
+
var f = n[w];
|
|
1058
|
+
this[f] = w < y ? t : this.methodFactory(f, y, this.name);
|
|
1059
1059
|
}
|
|
1060
1060
|
if (this.log = this.debug, typeof console === e && y < this.levels.SILENT)
|
|
1061
1061
|
return "No console available for logging";
|
|
@@ -1065,11 +1065,11 @@ var Rr = { exports: {} };
|
|
|
1065
1065
|
typeof console !== e && (d.call(this), this[y].apply(this, arguments));
|
|
1066
1066
|
};
|
|
1067
1067
|
}
|
|
1068
|
-
function g(y, w,
|
|
1068
|
+
function g(y, w, f) {
|
|
1069
1069
|
return c(y) || u.apply(this, arguments);
|
|
1070
1070
|
}
|
|
1071
1071
|
function p(y, w) {
|
|
1072
|
-
var
|
|
1072
|
+
var f = this, P, I, A, M = "loglevel";
|
|
1073
1073
|
typeof y == "string" ? M += ":" + y : typeof y == "symbol" && (M = void 0);
|
|
1074
1074
|
function W(F) {
|
|
1075
1075
|
var H = (n[F] || "silent").toUpperCase();
|
|
@@ -1100,10 +1100,10 @@ var Rr = { exports: {} };
|
|
|
1100
1100
|
)[1]);
|
|
1101
1101
|
} catch {
|
|
1102
1102
|
}
|
|
1103
|
-
return
|
|
1103
|
+
return f.levels[F] === void 0 && (F = void 0), F;
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function $() {
|
|
1107
1107
|
if (!(typeof window === e || !M)) {
|
|
1108
1108
|
try {
|
|
1109
1109
|
window.localStorage.removeItem(M);
|
|
@@ -1117,38 +1117,38 @@ var Rr = { exports: {} };
|
|
|
1117
1117
|
}
|
|
1118
1118
|
function B(F) {
|
|
1119
1119
|
var H = F;
|
|
1120
|
-
if (typeof H == "string" &&
|
|
1120
|
+
if (typeof H == "string" && f.levels[H.toUpperCase()] !== void 0 && (H = f.levels[H.toUpperCase()]), typeof H == "number" && H >= 0 && H <= f.levels.SILENT)
|
|
1121
1121
|
return H;
|
|
1122
1122
|
throw new TypeError("log.setLevel() called with invalid level: " + F);
|
|
1123
1123
|
}
|
|
1124
|
-
|
|
1124
|
+
f.name = y, f.levels = {
|
|
1125
1125
|
TRACE: 0,
|
|
1126
1126
|
DEBUG: 1,
|
|
1127
1127
|
INFO: 2,
|
|
1128
1128
|
WARN: 3,
|
|
1129
1129
|
ERROR: 4,
|
|
1130
1130
|
SILENT: 5
|
|
1131
|
-
},
|
|
1132
|
-
return A ?? I ??
|
|
1133
|
-
},
|
|
1134
|
-
return A = B(F), H !== !1 && W(A), d.call(
|
|
1135
|
-
},
|
|
1136
|
-
I = B(F), T() ||
|
|
1137
|
-
},
|
|
1138
|
-
A = null,
|
|
1139
|
-
},
|
|
1140
|
-
|
|
1141
|
-
},
|
|
1142
|
-
|
|
1143
|
-
},
|
|
1144
|
-
if (a !==
|
|
1131
|
+
}, f.methodFactory = w || g, f.getLevel = function() {
|
|
1132
|
+
return A ?? I ?? P;
|
|
1133
|
+
}, f.setLevel = function(F, H) {
|
|
1134
|
+
return A = B(F), H !== !1 && W(A), d.call(f);
|
|
1135
|
+
}, f.setDefaultLevel = function(F) {
|
|
1136
|
+
I = B(F), T() || f.setLevel(F, !1);
|
|
1137
|
+
}, f.resetLevel = function() {
|
|
1138
|
+
A = null, $(), d.call(f);
|
|
1139
|
+
}, f.enableAll = function(F) {
|
|
1140
|
+
f.setLevel(f.levels.TRACE, F);
|
|
1141
|
+
}, f.disableAll = function(F) {
|
|
1142
|
+
f.setLevel(f.levels.SILENT, F);
|
|
1143
|
+
}, f.rebuild = function() {
|
|
1144
|
+
if (a !== f && (P = B(a.getLevel())), d.call(f), a === f)
|
|
1145
1145
|
for (var F in r)
|
|
1146
1146
|
r[F].rebuild();
|
|
1147
|
-
},
|
|
1147
|
+
}, P = B(
|
|
1148
1148
|
a ? a.getLevel() : "WARN"
|
|
1149
1149
|
);
|
|
1150
|
-
var
|
|
1151
|
-
|
|
1150
|
+
var Q = T();
|
|
1151
|
+
Q != null && (A = B(Q)), d.call(f);
|
|
1152
1152
|
}
|
|
1153
1153
|
a = new p(), a.getLogger = function(y) {
|
|
1154
1154
|
if (typeof y != "symbol" && typeof y != "string" || y === "")
|
|
@@ -1168,23 +1168,23 @@ var Rr = { exports: {} };
|
|
|
1168
1168
|
});
|
|
1169
1169
|
})(Rr);
|
|
1170
1170
|
var zr = Rr.exports;
|
|
1171
|
-
const Xo = Uo(zr), Yo = Wo({ __proto__: null, default: Xo }, [zr]), tu = !0,
|
|
1172
|
-
|
|
1171
|
+
const Xo = Uo(zr), Yo = Wo({ __proto__: null, default: Xo }, [zr]), tu = !0, Ds = Yo;
|
|
1172
|
+
Ds.setLevel("debug");
|
|
1173
1173
|
const eu = (i) => {
|
|
1174
1174
|
try {
|
|
1175
|
-
|
|
1175
|
+
Ds.setLevel(i);
|
|
1176
1176
|
} catch (t) {
|
|
1177
|
-
|
|
1177
|
+
Ds.setLevel("error"), Ds.error(t);
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
1180
|
let $o = class Vr {
|
|
1181
1181
|
constructor(t, e) {
|
|
1182
1182
|
this.events = {
|
|
1183
|
-
attrChanged: new
|
|
1184
|
-
modelChanged: new
|
|
1183
|
+
attrChanged: new K(),
|
|
1184
|
+
modelChanged: new K()
|
|
1185
1185
|
}, this._changing = !1, this._previousAttributes = {}, this._pending = !1;
|
|
1186
1186
|
const s = t || {};
|
|
1187
|
-
e &&
|
|
1187
|
+
e && yi(s, e), this.attributes = s, this.changed = {};
|
|
1188
1188
|
}
|
|
1189
1189
|
get(t) {
|
|
1190
1190
|
return this.attributes[t];
|
|
@@ -1194,7 +1194,7 @@ let $o = class Vr {
|
|
|
1194
1194
|
let n;
|
|
1195
1195
|
typeof t == "object" ? (n = t, s = e) : (n = {}, n[t] = e), s || (s = {});
|
|
1196
1196
|
const r = s.unset, a = s.silent, o = [], l = this._changing;
|
|
1197
|
-
this._changing = !0, l || (this._previousAttributes =
|
|
1197
|
+
this._changing = !0, l || (this._previousAttributes = Cs(this.attributes), this.changed = {});
|
|
1198
1198
|
const c = this.attributes, d = this.changed, u = this._previousAttributes;
|
|
1199
1199
|
for (const g in n)
|
|
1200
1200
|
e = n[g], gs(c[g], e) || o.push(g), gs(u[g], e) ? delete d[g] : d[g] = e, r ? delete c[g] : c[g] = e;
|
|
@@ -1224,7 +1224,7 @@ let $o = class Vr {
|
|
|
1224
1224
|
return t == null ? !Go(this.changed) : Do(this.changed, t);
|
|
1225
1225
|
}
|
|
1226
1226
|
changedAttributes(t) {
|
|
1227
|
-
if (!t) return this.hasChanged() ?
|
|
1227
|
+
if (!t) return this.hasChanged() ? Cs(this.changed) : {};
|
|
1228
1228
|
const e = this._changing ? this._previousAttributes : this.attributes, s = {};
|
|
1229
1229
|
for (const n in t) {
|
|
1230
1230
|
const r = t[n];
|
|
@@ -1236,10 +1236,10 @@ let $o = class Vr {
|
|
|
1236
1236
|
return t == null || !this._previousAttributes ? null : this._previousAttributes[t];
|
|
1237
1237
|
}
|
|
1238
1238
|
previousAttributes() {
|
|
1239
|
-
return
|
|
1239
|
+
return Cs(this._previousAttributes);
|
|
1240
1240
|
}
|
|
1241
1241
|
clone() {
|
|
1242
|
-
const t =
|
|
1242
|
+
const t = Cs(this.attributes);
|
|
1243
1243
|
return new Vr(t);
|
|
1244
1244
|
}
|
|
1245
1245
|
}, jr = class cs {
|
|
@@ -1277,7 +1277,7 @@ class su {
|
|
|
1277
1277
|
}
|
|
1278
1278
|
}
|
|
1279
1279
|
var pt = ((i) => (i[i.ByLayer = 0] = "ByLayer", i[i.ByBlock = 1] = "ByBlock", i[i.ByAlpha = 2] = "ByAlpha", i[i.ErrorValue = 3] = "ErrorValue", i))(pt || {});
|
|
1280
|
-
let
|
|
1280
|
+
let yn = class Bt {
|
|
1281
1281
|
constructor(t) {
|
|
1282
1282
|
t !== void 0 ? (this._method = pt.ByAlpha, this._alpha = Bt.clampAlpha(t)) : (this._method = pt.ByLayer, this._alpha = 255);
|
|
1283
1283
|
}
|
|
@@ -1471,19 +1471,19 @@ class nu {
|
|
|
1471
1471
|
return this.requestHeader = t, this;
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
|
-
var Be = 256, Wr = [], hr = 256,
|
|
1474
|
+
var Be = 256, Wr = [], hr = 256, Bs;
|
|
1475
1475
|
for (; Be--; ) Wr[Be] = (Be + 256).toString(16).substring(1);
|
|
1476
1476
|
function Jo(i) {
|
|
1477
1477
|
var t = 0, e = 11;
|
|
1478
|
-
if (!
|
|
1479
|
-
for (
|
|
1480
|
-
|
|
1481
|
-
return
|
|
1478
|
+
if (!Bs || Be + e > hr * 2)
|
|
1479
|
+
for (Bs = "", Be = 0; t < hr; t++)
|
|
1480
|
+
Bs += Wr[Math.random() * 256 | 0];
|
|
1481
|
+
return Bs.substring(Be, Be++ + e);
|
|
1482
1482
|
}
|
|
1483
1483
|
const Ei = "TEMP_";
|
|
1484
|
-
let
|
|
1484
|
+
let Ri;
|
|
1485
1485
|
function th(i) {
|
|
1486
|
-
|
|
1486
|
+
Ri = i;
|
|
1487
1487
|
}
|
|
1488
1488
|
class ue {
|
|
1489
1489
|
constructor(t, e) {
|
|
@@ -1539,8 +1539,8 @@ class ue {
|
|
|
1539
1539
|
get database() {
|
|
1540
1540
|
if (this._database)
|
|
1541
1541
|
return this._database;
|
|
1542
|
-
if (
|
|
1543
|
-
return
|
|
1542
|
+
if (Ri)
|
|
1543
|
+
return Ri().workingDatabase;
|
|
1544
1544
|
throw new Error("The current working database must be set before using it!");
|
|
1545
1545
|
}
|
|
1546
1546
|
set database(t) {
|
|
@@ -1613,14 +1613,14 @@ class ue {
|
|
|
1613
1613
|
return this;
|
|
1614
1614
|
}
|
|
1615
1615
|
}
|
|
1616
|
-
let
|
|
1616
|
+
let zi;
|
|
1617
1617
|
function eh(i) {
|
|
1618
|
-
|
|
1618
|
+
zi = i;
|
|
1619
1619
|
}
|
|
1620
1620
|
function Dr() {
|
|
1621
|
-
return
|
|
1621
|
+
return Vi.instance;
|
|
1622
1622
|
}
|
|
1623
|
-
const
|
|
1623
|
+
const pi = class pi {
|
|
1624
1624
|
constructor() {
|
|
1625
1625
|
this._workingDatabase = null;
|
|
1626
1626
|
}
|
|
@@ -1636,17 +1636,17 @@ const ui = class ui {
|
|
|
1636
1636
|
}
|
|
1637
1637
|
get layoutManager() {
|
|
1638
1638
|
if (!this._layoutManager) {
|
|
1639
|
-
if (!
|
|
1639
|
+
if (!zi)
|
|
1640
1640
|
throw new Error(
|
|
1641
1641
|
"The layout manager factory must be registered before using it!"
|
|
1642
1642
|
);
|
|
1643
|
-
this._layoutManager =
|
|
1643
|
+
this._layoutManager = zi();
|
|
1644
1644
|
}
|
|
1645
1645
|
return this._layoutManager;
|
|
1646
1646
|
}
|
|
1647
1647
|
};
|
|
1648
|
-
|
|
1649
|
-
let
|
|
1648
|
+
pi.instance = new pi();
|
|
1649
|
+
let Vi = pi;
|
|
1650
1650
|
th(Dr);
|
|
1651
1651
|
var sh = /* @__PURE__ */ ((i) => (i.kForRead = "kForRead", i.kForWrite = "kForWrite", i))(sh || {});
|
|
1652
1652
|
class Gr {
|
|
@@ -1725,12 +1725,12 @@ class Hr {
|
|
|
1725
1725
|
await n(), await (e == null ? void 0 : e());
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
|
-
var
|
|
1728
|
+
var Gs = /* @__PURE__ */ ((i) => (i.DXF = "dxf", i.DWG = "dwg", i))(Gs || {});
|
|
1729
1729
|
class ee {
|
|
1730
1730
|
constructor() {
|
|
1731
1731
|
this.events = {
|
|
1732
|
-
registered: new
|
|
1733
|
-
unregistered: new
|
|
1732
|
+
registered: new K(),
|
|
1733
|
+
unregistered: new K()
|
|
1734
1734
|
}, this._converters = /* @__PURE__ */ new Map(), this.register("dxf", new Yd());
|
|
1735
1735
|
}
|
|
1736
1736
|
static createInstance() {
|
|
@@ -1760,9 +1760,9 @@ class ee {
|
|
|
1760
1760
|
}
|
|
1761
1761
|
}
|
|
1762
1762
|
var Ur = /* @__PURE__ */ ((i) => (i[i.DecimalDegrees = 0] = "DecimalDegrees", i[i.DegreesMinutesSeconds = 1] = "DegreesMinutesSeconds", i[i.Gradians = 2] = "Gradians", i[i.Radians = 3] = "Radians", i[i.SurveyorsUnits = 4] = "SurveyorsUnits", i))(Ur || {});
|
|
1763
|
-
class
|
|
1763
|
+
class Ps {
|
|
1764
1764
|
static get instance() {
|
|
1765
|
-
return this._instance || (this._instance = new
|
|
1765
|
+
return this._instance || (this._instance = new Ps()), this._instance;
|
|
1766
1766
|
}
|
|
1767
1767
|
constructor() {
|
|
1768
1768
|
this._blocks = /* @__PURE__ */ new Map();
|
|
@@ -1794,7 +1794,7 @@ class Is {
|
|
|
1794
1794
|
const u = e.newIterator();
|
|
1795
1795
|
for (const g of u)
|
|
1796
1796
|
g.color.isByBlock && s ? (lr.copy(g.color), g.color.setRGBValue(s), this.addEntity(g, l, t), g.color.copy(lr)) : this.addEntity(g, l, t);
|
|
1797
|
-
d = t.group(l), d && r &&
|
|
1797
|
+
d = t.group(l), d && r && Z.name && !Z.name.startsWith("*U") && this.set(c, d);
|
|
1798
1798
|
}
|
|
1799
1799
|
return d && a && (d.applyMatrix(a), o && (o.x != 0 || o.y != 0 || o.z != 1) && (a.setFromExtrusionDirection(o), d.applyMatrix(a))), d && n && n.length > 0 && (d.bakeTransformToChildren(), n.forEach((u) => d.addChild(u))), d;
|
|
1800
1800
|
} else
|
|
@@ -2176,7 +2176,7 @@ function xh(i) {
|
|
|
2176
2176
|
function fh(i) {
|
|
2177
2177
|
return Math.pow(2, Math.floor(Math.log(i) / Math.LN2));
|
|
2178
2178
|
}
|
|
2179
|
-
function
|
|
2179
|
+
function Hs(i) {
|
|
2180
2180
|
const t = Math.PI * 2;
|
|
2181
2181
|
return (i % t + t) % t;
|
|
2182
2182
|
}
|
|
@@ -2184,12 +2184,12 @@ function bh(i, t, e) {
|
|
|
2184
2184
|
return i > t && i < e || i > e && i < t;
|
|
2185
2185
|
}
|
|
2186
2186
|
function Ih(i, t, e, s = !1) {
|
|
2187
|
-
return i =
|
|
2187
|
+
return i = Hs(i), t = Hs(t), e = Hs(e), s ? t > e ? i <= t && i >= e : i <= t || i >= e : t < e ? i >= t && i <= e : i >= t || i <= e;
|
|
2188
2188
|
}
|
|
2189
2189
|
function Zr(i) {
|
|
2190
2190
|
return i = Math.abs(i), i < 1 ? 0 : Math.ceil(Math.log10(Math.abs(i) + 1));
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function Ph(i, t = 1e-7) {
|
|
2193
2193
|
const e = Zr(i);
|
|
2194
2194
|
return Math.max(Math.pow(10, e) * t, t);
|
|
2195
2195
|
}
|
|
@@ -2215,12 +2215,12 @@ const k = {
|
|
|
2215
2215
|
isPowerOfTwo: wh,
|
|
2216
2216
|
ceilPowerOfTwo: xh,
|
|
2217
2217
|
floorPowerOfTwo: fh,
|
|
2218
|
-
normalizeAngle:
|
|
2218
|
+
normalizeAngle: Hs,
|
|
2219
2219
|
isBetween: bh,
|
|
2220
2220
|
isBetweenAngle: Ih,
|
|
2221
2221
|
intPartLength: Zr,
|
|
2222
|
-
relativeEps:
|
|
2223
|
-
},
|
|
2222
|
+
relativeEps: Ph
|
|
2223
|
+
}, ji = class Qr {
|
|
2224
2224
|
constructor(t, e) {
|
|
2225
2225
|
this.x = 0, this.y = 0;
|
|
2226
2226
|
const s = +(t !== void 0) + +(e !== void 0);
|
|
@@ -2436,9 +2436,9 @@ const k = {
|
|
|
2436
2436
|
yield this.x, yield this.y;
|
|
2437
2437
|
}
|
|
2438
2438
|
};
|
|
2439
|
-
|
|
2440
|
-
let
|
|
2441
|
-
const
|
|
2439
|
+
ji.EMPTY = Object.freeze(new ji(0, 0));
|
|
2440
|
+
let Y = ji;
|
|
2441
|
+
const Wi = class Jr {
|
|
2442
2442
|
constructor(t, e, s, n, r, a, o, l, c) {
|
|
2443
2443
|
this.elements = [1, 0, 0, 0, 1, 0, 0, 0, 1], t != null && e != null && s != null && n != null && r != null && a != null && o != null && l != null && c != null && this.set(t, e, s, n, r, a, o, l, c);
|
|
2444
2444
|
}
|
|
@@ -2467,8 +2467,8 @@ const ji = class Jr {
|
|
|
2467
2467
|
return this.multiplyMatrices(t, this);
|
|
2468
2468
|
}
|
|
2469
2469
|
multiplyMatrices(t, e) {
|
|
2470
|
-
const s = t.elements, n = e.elements, r = this.elements, a = s[0], o = s[3], l = s[6], c = s[1], d = s[4], u = s[7], g = s[2], p = s[5], m = s[8], y = n[0], w = n[3],
|
|
2471
|
-
return r[0] = a * y + o *
|
|
2470
|
+
const s = t.elements, n = e.elements, r = this.elements, a = s[0], o = s[3], l = s[6], c = s[1], d = s[4], u = s[7], g = s[2], p = s[5], m = s[8], y = n[0], w = n[3], f = n[6], P = n[1], I = n[4], A = n[7], M = n[2], W = n[5], T = n[8];
|
|
2471
|
+
return r[0] = a * y + o * P + l * M, r[3] = a * w + o * I + l * W, r[6] = a * f + o * A + l * T, r[1] = c * y + d * P + u * M, r[4] = c * w + d * I + u * W, r[7] = c * f + d * A + u * T, r[2] = g * y + p * P + m * M, r[5] = g * w + p * I + m * W, r[8] = g * f + p * A + m * T, this;
|
|
2472
2472
|
}
|
|
2473
2473
|
multiplyScalar(t) {
|
|
2474
2474
|
const e = this.elements;
|
|
@@ -2511,16 +2511,16 @@ const ji = class Jr {
|
|
|
2511
2511
|
), this;
|
|
2512
2512
|
}
|
|
2513
2513
|
scale(t, e) {
|
|
2514
|
-
return this.premultiply(
|
|
2514
|
+
return this.premultiply(Si.makeScale(t, e)), this;
|
|
2515
2515
|
}
|
|
2516
2516
|
rotate(t) {
|
|
2517
|
-
return this.premultiply(
|
|
2517
|
+
return this.premultiply(Si.makeRotation(-t)), this;
|
|
2518
2518
|
}
|
|
2519
2519
|
translate(t, e) {
|
|
2520
|
-
return this.premultiply(
|
|
2520
|
+
return this.premultiply(Si.makeTranslation(t, e)), this;
|
|
2521
2521
|
}
|
|
2522
2522
|
makeTranslation(t, e) {
|
|
2523
|
-
return t instanceof
|
|
2523
|
+
return t instanceof Y ? this.set(1, 0, t.x, 0, 1, t.y, 0, 0, 1) : this.set(1, 0, t, 0, 1, e, 0, 0, 1), this;
|
|
2524
2524
|
}
|
|
2525
2525
|
makeRotation(t) {
|
|
2526
2526
|
const e = Math.cos(t), s = Math.sin(t);
|
|
@@ -2548,9 +2548,9 @@ const ji = class Jr {
|
|
|
2548
2548
|
return new Jr().fromArray(this.elements);
|
|
2549
2549
|
}
|
|
2550
2550
|
};
|
|
2551
|
-
|
|
2552
|
-
let
|
|
2553
|
-
const
|
|
2551
|
+
Wi.IDENTITY = Object.freeze(new Wi());
|
|
2552
|
+
let _i = Wi;
|
|
2553
|
+
const Si = new _i(), je = 1e-6, D = 2 * Math.PI, ru = {
|
|
2554
2554
|
x: 0,
|
|
2555
2555
|
y: 0
|
|
2556
2556
|
}, ta = {
|
|
@@ -2558,16 +2558,16 @@ const Pi = new yi(), je = 1e-6, D = 2 * Math.PI, ru = {
|
|
|
2558
2558
|
y: 0,
|
|
2559
2559
|
z: 0
|
|
2560
2560
|
};
|
|
2561
|
-
class
|
|
2561
|
+
class wi {
|
|
2562
2562
|
constructor() {
|
|
2563
2563
|
this.equalPointTol = je, this.equalVectorTol = je;
|
|
2564
2564
|
}
|
|
2565
2565
|
clone() {
|
|
2566
|
-
const t = new
|
|
2566
|
+
const t = new wi();
|
|
2567
2567
|
return t.equalPointTol = this.equalPointTol, t.equalVectorTol = this.equalVectorTol, t;
|
|
2568
2568
|
}
|
|
2569
2569
|
equalPoint2d(t, e) {
|
|
2570
|
-
return new
|
|
2570
|
+
return new Y(t).sub(e).length() < this.equalPointTol;
|
|
2571
2571
|
}
|
|
2572
2572
|
equalPoint3d(t, e) {
|
|
2573
2573
|
return new b(t).sub(e).length() < this.equalPointTol;
|
|
@@ -2585,7 +2585,7 @@ class _i {
|
|
|
2585
2585
|
return t - e < s;
|
|
2586
2586
|
}
|
|
2587
2587
|
}
|
|
2588
|
-
const ea = new
|
|
2588
|
+
const ea = new wi();
|
|
2589
2589
|
function sa(i, t, e = !1) {
|
|
2590
2590
|
const s = i.x, n = i.y;
|
|
2591
2591
|
let r = !1;
|
|
@@ -2597,7 +2597,7 @@ function sa(i, t, e = !1) {
|
|
|
2597
2597
|
}
|
|
2598
2598
|
return r;
|
|
2599
2599
|
}
|
|
2600
|
-
function
|
|
2600
|
+
function Eh(i, t) {
|
|
2601
2601
|
if (i.length === 0 || t.length === 0)
|
|
2602
2602
|
return !1;
|
|
2603
2603
|
const e = new gt().setFromPoints(i), s = new gt().setFromPoints(t);
|
|
@@ -2612,7 +2612,7 @@ function Ph(i, t) {
|
|
|
2612
2612
|
}
|
|
2613
2613
|
const Sh = {
|
|
2614
2614
|
isPointInPolygon: sa,
|
|
2615
|
-
isPolygonIntersect:
|
|
2615
|
+
isPolygonIntersect: Eh
|
|
2616
2616
|
};
|
|
2617
2617
|
function au(i, t) {
|
|
2618
2618
|
const e = [], s = t - 1, n = i;
|
|
@@ -2689,7 +2689,7 @@ function hu(i, t) {
|
|
|
2689
2689
|
a.push(e - s + 1);
|
|
2690
2690
|
return a;
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2692
|
+
function Mi(i, t) {
|
|
2693
2693
|
const e = i.length, s = i.map((a) => a.slice()), n = t.slice();
|
|
2694
2694
|
for (let a = 0; a < e; a++) {
|
|
2695
2695
|
let o = a, l = Math.abs(s[a][a]);
|
|
@@ -2731,37 +2731,37 @@ function ia(i, t, e = "Uniform", s, n) {
|
|
|
2731
2731
|
throw new Error("Not enough points to interpolate a curve of this degree.");
|
|
2732
2732
|
const u = Mh(r, e), g = u.slice();
|
|
2733
2733
|
a && g.unshift(u[0]), o && g.push(u[u.length - 1]);
|
|
2734
|
-
const p = Th(t, g), m = d + 1, y = new Array(m), w = new Array(m),
|
|
2734
|
+
const p = Th(t, g), m = d + 1, y = new Array(m), w = new Array(m), f = new Array(m), P = new Array(m);
|
|
2735
2735
|
let I = 0;
|
|
2736
|
-
y[I] = new Array(m).fill(0), y[I][0] = 1, w[I] = r[0][0],
|
|
2736
|
+
y[I] = new Array(m).fill(0), y[I][0] = 1, w[I] = r[0][0], f[I] = r[0][1], P[I] = r[0][2], I++;
|
|
2737
2737
|
for (let B = 1; B <= c - 1; B++) {
|
|
2738
|
-
const
|
|
2738
|
+
const Q = u[B];
|
|
2739
2739
|
y[I] = new Array(m).fill(0);
|
|
2740
2740
|
for (let F = 0; F <= d; F++)
|
|
2741
|
-
y[I][F] =
|
|
2742
|
-
w[I] = r[B][0],
|
|
2741
|
+
y[I][F] = ii(F, t, Q, p);
|
|
2742
|
+
w[I] = r[B][0], f[I] = r[B][1], P[I] = r[B][2], I++;
|
|
2743
2743
|
}
|
|
2744
|
-
if (y[I] = new Array(m).fill(0), y[I][d] = 1, w[I] = r[c][0],
|
|
2745
|
-
const B = p[t + 1] - p[0],
|
|
2746
|
-
y[I] = new Array(m).fill(0), y[I][0] = -
|
|
2744
|
+
if (y[I] = new Array(m).fill(0), y[I][d] = 1, w[I] = r[c][0], f[I] = r[c][1], P[I] = r[c][2], I++, a) {
|
|
2745
|
+
const B = p[t + 1] - p[0], Q = B !== 0 ? t / B : 0;
|
|
2746
|
+
y[I] = new Array(m).fill(0), y[I][0] = -Q, y[I][1] = Q, w[I] = (s == null ? void 0 : s[0]) ?? 0, f[I] = (s == null ? void 0 : s[1]) ?? 0, P[I] = (s == null ? void 0 : s[2]) ?? 0, I++;
|
|
2747
2747
|
}
|
|
2748
2748
|
if (o) {
|
|
2749
|
-
const B = p[d + t + 1] - p[d],
|
|
2750
|
-
y[I] = new Array(m).fill(0), y[I][d - 1] = -
|
|
2749
|
+
const B = p[d + t + 1] - p[d], Q = B !== 0 ? t / B : 0;
|
|
2750
|
+
y[I] = new Array(m).fill(0), y[I][d - 1] = -Q, y[I][d] = Q, w[I] = (n == null ? void 0 : n[0]) ?? 0, f[I] = (n == null ? void 0 : n[1]) ?? 0, P[I] = (n == null ? void 0 : n[2]) ?? 0, I++;
|
|
2751
2751
|
}
|
|
2752
|
-
const A =
|
|
2752
|
+
const A = Mi(y, w), M = Mi(y, f), W = Mi(y, P), T = new Array(m);
|
|
2753
2753
|
for (let B = 0; B < m; B++)
|
|
2754
2754
|
T[B] = [A[B], M[B], W[B]];
|
|
2755
|
-
const
|
|
2756
|
-
return { controlPoints: T, knots: p, weights:
|
|
2755
|
+
const $ = new Array(m).fill(1);
|
|
2756
|
+
return { controlPoints: T, knots: p, weights: $ };
|
|
2757
2757
|
}
|
|
2758
|
-
function
|
|
2758
|
+
function ii(i, t, e, s) {
|
|
2759
2759
|
if (t === 0)
|
|
2760
2760
|
return e >= s[i] && e < s[i + 1] ? 1 : 0;
|
|
2761
2761
|
const n = s[i + t] - s[i], r = s[i + t + 1] - s[i + 1], a = n > 1e-10 ? (e - s[i]) / n : 0, o = r > 1e-10 ? (s[i + t + 1] - e) / r : 0;
|
|
2762
|
-
return a *
|
|
2762
|
+
return a * ii(i, t - 1, e, s) + o * ii(i + 1, t - 1, e, s);
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function Us(i, t, e, s, n) {
|
|
2765
2765
|
const r = s.length - 1, a = t;
|
|
2766
2766
|
if (i = Math.max(e[a], Math.min(e[r + 1], i)), Math.abs(i - e[r + 1]) < 1e-8)
|
|
2767
2767
|
return [...s[r]];
|
|
@@ -2770,7 +2770,7 @@ function Hs(i, t, e, s, n) {
|
|
|
2770
2770
|
const o = [0, 0, 0];
|
|
2771
2771
|
let l = 0;
|
|
2772
2772
|
for (let c = 0; c <= r; c++) {
|
|
2773
|
-
const d =
|
|
2773
|
+
const d = ii(c, a, i, e), u = n[c] * d;
|
|
2774
2774
|
o[0] += s[c][0] * u, o[1] += s[c][1] * u, o[2] += s[c][2] * u, l += u;
|
|
2775
2775
|
}
|
|
2776
2776
|
if (Math.abs(l) < 1e-10) {
|
|
@@ -2786,7 +2786,7 @@ function Ah(i, t, e, s) {
|
|
|
2786
2786
|
const n = i, r = t[n], a = t[t.length - n - 1];
|
|
2787
2787
|
let o = 0;
|
|
2788
2788
|
const l = 1e3, c = (a - r) / l;
|
|
2789
|
-
let d =
|
|
2789
|
+
let d = Us(
|
|
2790
2790
|
r,
|
|
2791
2791
|
i,
|
|
2792
2792
|
t,
|
|
@@ -2794,10 +2794,10 @@ function Ah(i, t, e, s) {
|
|
|
2794
2794
|
s
|
|
2795
2795
|
);
|
|
2796
2796
|
for (let y = 1; y <= l; y++) {
|
|
2797
|
-
const w = r + y * c,
|
|
2798
|
-
o += Math.sqrt(
|
|
2797
|
+
const w = r + y * c, f = Us(w, i, t, e, s), P = f[0] - d[0], I = f[1] - d[1], A = f[2] - d[2];
|
|
2798
|
+
o += Math.sqrt(P * P + I * I + A * A), d = f;
|
|
2799
2799
|
}
|
|
2800
|
-
const u =
|
|
2800
|
+
const u = Us(
|
|
2801
2801
|
a,
|
|
2802
2802
|
i,
|
|
2803
2803
|
t,
|
|
@@ -2832,12 +2832,12 @@ class Xe {
|
|
|
2832
2832
|
}
|
|
2833
2833
|
if (u !== y || l !== g || c !== p || d !== m) {
|
|
2834
2834
|
let w = 1 - o;
|
|
2835
|
-
const
|
|
2835
|
+
const f = l * g + c * p + d * m + u * y, P = f >= 0 ? 1 : -1, I = 1 - f * f;
|
|
2836
2836
|
if (I > Number.EPSILON) {
|
|
2837
|
-
const M = Math.sqrt(I), W = Math.atan2(M,
|
|
2837
|
+
const M = Math.sqrt(I), W = Math.atan2(M, f * P);
|
|
2838
2838
|
w = Math.sin(w * W) / M, o = Math.sin(o * W) / M;
|
|
2839
2839
|
}
|
|
2840
|
-
const A = o *
|
|
2840
|
+
const A = o * P;
|
|
2841
2841
|
if (l = l * w + g * A, c = c * w + p * A, d = d * w + m * A, u = u * w + y * A, w === 1 - o) {
|
|
2842
2842
|
const M = 1 / Math.sqrt(l * l + c * c + d * d + u * u);
|
|
2843
2843
|
l *= M, c *= M, d *= M, u *= M;
|
|
@@ -3228,10 +3228,10 @@ const ct = class na {
|
|
|
3228
3228
|
return this.copy(t).multiplyScalar(s);
|
|
3229
3229
|
}
|
|
3230
3230
|
projectOnPlane(t) {
|
|
3231
|
-
return
|
|
3231
|
+
return Ti.copy(this).projectOnVector(t), this.sub(Ti);
|
|
3232
3232
|
}
|
|
3233
3233
|
reflect(t) {
|
|
3234
|
-
return this.sub(
|
|
3234
|
+
return this.sub(Ti.copy(t).multiplyScalar(2 * this.dot(t)));
|
|
3235
3235
|
}
|
|
3236
3236
|
angleTo(t) {
|
|
3237
3237
|
const e = Math.sqrt(this.lengthSq() * t.lengthSq());
|
|
@@ -3285,7 +3285,7 @@ const ct = class na {
|
|
|
3285
3285
|
};
|
|
3286
3286
|
ct.ORIGIN = Object.freeze(new ct(0, 0, 0)), ct.X_AXIS = Object.freeze(new ct(1, 0, 0)), ct.NEGATIVE_X_AXIS = Object.freeze(new ct(-1, 0, 0)), ct.Y_AXIS = Object.freeze(new ct(0, 1, 0)), ct.NEGATIVE_Y_AXIS = Object.freeze(new ct(0, -1, 0)), ct.Z_AXIS = Object.freeze(new ct(0, 0, 1)), ct.NEGATIVE_Z_AXIS = Object.freeze(new ct(0, 0, -1));
|
|
3287
3287
|
let b = ct;
|
|
3288
|
-
const
|
|
3288
|
+
const Ti = new b(), pr = new Xe(), Di = class ra {
|
|
3289
3289
|
constructor(t, e, s, n, r, a, o, l, c, d, u, g, p, m, y, w) {
|
|
3290
3290
|
this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], t != null && e != null && s != null && n != null && r != null && a != null && o != null && l != null && c != null && d != null && u != null && g != null && p != null && m != null && y != null && w != null && this.set(
|
|
3291
3291
|
t,
|
|
@@ -3307,8 +3307,8 @@ const Mi = new b(), pr = new Xe(), Wi = class ra {
|
|
|
3307
3307
|
);
|
|
3308
3308
|
}
|
|
3309
3309
|
set(t, e, s, n, r, a, o, l, c, d, u, g, p, m, y, w) {
|
|
3310
|
-
const
|
|
3311
|
-
return
|
|
3310
|
+
const f = this.elements;
|
|
3311
|
+
return f[0] = t, f[4] = e, f[8] = s, f[12] = n, f[1] = r, f[5] = a, f[9] = o, f[13] = l, f[2] = c, f[6] = d, f[10] = u, f[14] = g, f[3] = p, f[7] = m, f[11] = y, f[15] = w, this;
|
|
3312
3312
|
}
|
|
3313
3313
|
identity() {
|
|
3314
3314
|
return this.set(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
|
|
@@ -3405,7 +3405,7 @@ const Mi = new b(), pr = new Xe(), Wi = class ra {
|
|
|
3405
3405
|
}
|
|
3406
3406
|
lookAt(t, e, s) {
|
|
3407
3407
|
const n = this.elements;
|
|
3408
|
-
return yt.subVectors(t, e), yt.lengthSq() === 0 && (yt.z = 1), yt.normalize(), ae.crossVectors(s, yt), ae.lengthSq() === 0 && (Math.abs(s.z) === 1 ? yt.x += 1e-4 : yt.z += 1e-4, yt.normalize(), ae.crossVectors(s, yt)), ae.normalize(),
|
|
3408
|
+
return yt.subVectors(t, e), yt.lengthSq() === 0 && (yt.z = 1), yt.normalize(), ae.crossVectors(s, yt), ae.lengthSq() === 0 && (Math.abs(s.z) === 1 ? yt.x += 1e-4 : yt.z += 1e-4, yt.normalize(), ae.crossVectors(s, yt)), ae.normalize(), Fs.crossVectors(yt, ae), n[0] = ae.x, n[4] = Fs.x, n[8] = yt.x, n[1] = ae.y, n[5] = Fs.y, n[9] = yt.y, n[2] = ae.z, n[6] = Fs.z, n[10] = yt.z, this;
|
|
3409
3409
|
}
|
|
3410
3410
|
multiply(t) {
|
|
3411
3411
|
return this.multiplyMatrices(this, t);
|
|
@@ -3414,16 +3414,16 @@ const Mi = new b(), pr = new Xe(), Wi = class ra {
|
|
|
3414
3414
|
return this.multiplyMatrices(t, this);
|
|
3415
3415
|
}
|
|
3416
3416
|
multiplyMatrices(t, e) {
|
|
3417
|
-
const s = t.elements, n = e.elements, r = this.elements, a = s[0], o = s[4], l = s[8], c = s[12], d = s[1], u = s[5], g = s[9], p = s[13], m = s[2], y = s[6], w = s[10],
|
|
3418
|
-
return r[0] = a * W + o *
|
|
3417
|
+
const s = t.elements, n = e.elements, r = this.elements, a = s[0], o = s[4], l = s[8], c = s[12], d = s[1], u = s[5], g = s[9], p = s[13], m = s[2], y = s[6], w = s[10], f = s[14], P = s[3], I = s[7], A = s[11], M = s[15], W = n[0], T = n[4], $ = n[8], B = n[12], Q = n[1], F = n[5], H = n[9], ge = n[13], me = n[2], Ts = n[6], As = n[10], vs = n[14], ks = n[3], Ls = n[7], Ns = n[11], Os = n[15];
|
|
3418
|
+
return r[0] = a * W + o * Q + l * me + c * ks, r[4] = a * T + o * F + l * Ts + c * Ls, r[8] = a * $ + o * H + l * As + c * Ns, r[12] = a * B + o * ge + l * vs + c * Os, r[1] = d * W + u * Q + g * me + p * ks, r[5] = d * T + u * F + g * Ts + p * Ls, r[9] = d * $ + u * H + g * As + p * Ns, r[13] = d * B + u * ge + g * vs + p * Os, r[2] = m * W + y * Q + w * me + f * ks, r[6] = m * T + y * F + w * Ts + f * Ls, r[10] = m * $ + y * H + w * As + f * Ns, r[14] = m * B + y * ge + w * vs + f * Os, r[3] = P * W + I * Q + A * me + M * ks, r[7] = P * T + I * F + A * Ts + M * Ls, r[11] = P * $ + I * H + A * As + M * Ns, r[15] = P * B + I * ge + A * vs + M * Os, this;
|
|
3419
3419
|
}
|
|
3420
3420
|
multiplyScalar(t) {
|
|
3421
3421
|
const e = this.elements;
|
|
3422
3422
|
return e[0] *= t, e[4] *= t, e[8] *= t, e[12] *= t, e[1] *= t, e[5] *= t, e[9] *= t, e[13] *= t, e[2] *= t, e[6] *= t, e[10] *= t, e[14] *= t, e[3] *= t, e[7] *= t, e[11] *= t, e[15] *= t, this;
|
|
3423
3423
|
}
|
|
3424
3424
|
determinant() {
|
|
3425
|
-
const t = this.elements, e = t[0], s = t[4], n = t[8], r = t[12], a = t[1], o = t[5], l = t[9], c = t[13], d = t[2], u = t[6], g = t[10], p = t[14], m = t[3], y = t[7], w = t[11],
|
|
3426
|
-
return m * (+r * l * u - n * c * u - r * o * g + s * c * g + n * o * p - s * l * p) + y * (+e * l * p - e * c * g + r * a * g - n * a * p + n * c * d - r * l * d) + w * (+e * c * u - e * o * p - r * a * u + s * a * p + r * o * d - s * c * d) +
|
|
3425
|
+
const t = this.elements, e = t[0], s = t[4], n = t[8], r = t[12], a = t[1], o = t[5], l = t[9], c = t[13], d = t[2], u = t[6], g = t[10], p = t[14], m = t[3], y = t[7], w = t[11], f = t[15];
|
|
3426
|
+
return m * (+r * l * u - n * c * u - r * o * g + s * c * g + n * o * p - s * l * p) + y * (+e * l * p - e * c * g + r * a * g - n * a * p + n * c * d - r * l * d) + w * (+e * c * u - e * o * p - r * a * u + s * a * p + r * o * d - s * c * d) + f * (-n * o * d - e * l * u + e * o * g + n * a * u - s * a * g + s * l * d);
|
|
3427
3427
|
}
|
|
3428
3428
|
transpose() {
|
|
3429
3429
|
const t = this.elements;
|
|
@@ -3435,11 +3435,11 @@ const Mi = new b(), pr = new Xe(), Wi = class ra {
|
|
|
3435
3435
|
return t instanceof b ? (n[12] = t.x, n[13] = t.y, n[14] = t.z) : (n[12] = t, n[13] = e, n[14] = s), this;
|
|
3436
3436
|
}
|
|
3437
3437
|
invert() {
|
|
3438
|
-
const t = this.elements, e = t[0], s = t[1], n = t[2], r = t[3], a = t[4], o = t[5], l = t[6], c = t[7], d = t[8], u = t[9], g = t[10], p = t[11], m = t[12], y = t[13], w = t[14],
|
|
3438
|
+
const t = this.elements, e = t[0], s = t[1], n = t[2], r = t[3], a = t[4], o = t[5], l = t[6], c = t[7], d = t[8], u = t[9], g = t[10], p = t[11], m = t[12], y = t[13], w = t[14], f = t[15], P = u * w * c - y * g * c + y * l * p - o * w * p - u * l * f + o * g * f, I = m * g * c - d * w * c - m * l * p + a * w * p + d * l * f - a * g * f, A = d * y * c - m * u * c + m * o * p - a * y * p - d * o * f + a * u * f, M = m * u * l - d * y * l - m * o * g + a * y * g + d * o * w - a * u * w, W = e * P + s * I + n * A + r * M;
|
|
3439
3439
|
if (W === 0)
|
|
3440
3440
|
return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
3441
3441
|
const T = 1 / W;
|
|
3442
|
-
return t[0] =
|
|
3442
|
+
return t[0] = P * T, t[1] = (y * g * r - u * w * r - y * n * p + s * w * p + u * n * f - s * g * f) * T, t[2] = (o * w * r - y * l * r + y * n * c - s * w * c - o * n * f + s * l * f) * T, t[3] = (u * l * r - o * g * r - u * n * c + s * g * c + o * n * p - s * l * p) * T, t[4] = I * T, t[5] = (d * w * r - m * g * r + m * n * p - e * w * p - d * n * f + e * g * f) * T, t[6] = (m * l * r - a * w * r - m * n * c + e * w * c + a * n * f - e * l * f) * T, t[7] = (a * g * r - d * l * r + d * n * c - e * g * c - a * n * p + e * l * p) * T, t[8] = A * T, t[9] = (m * u * r - d * y * r - m * s * p + e * y * p + d * s * f - e * u * f) * T, t[10] = (a * y * r - m * o * r + m * s * c - e * y * c - a * s * f + e * o * f) * T, t[11] = (d * o * r - a * u * r - d * s * c + e * u * c + a * s * p - e * o * p) * T, t[12] = M * T, t[13] = (d * y * n - m * u * n + m * s * g - e * y * g - d * s * w + e * u * w) * T, t[14] = (m * o * n - a * y * n - m * s * l + e * y * l + a * s * w - e * o * w) * T, t[15] = (a * u * n - d * o * n + d * s * l - e * u * l - a * s * g + e * o * g) * T, this;
|
|
3443
3443
|
}
|
|
3444
3444
|
scale(t) {
|
|
3445
3445
|
const e = this.elements, s = t.x, n = t.y, r = t.z;
|
|
@@ -3492,8 +3492,8 @@ const Mi = new b(), pr = new Xe(), Wi = class ra {
|
|
|
3492
3492
|
return this.set(1, s, r, 0, t, 1, a, 0, e, n, 1, 0, 0, 0, 0, 1), this;
|
|
3493
3493
|
}
|
|
3494
3494
|
compose(t, e, s) {
|
|
3495
|
-
const n = this.elements, r = e.x, a = e.y, o = e.z, l = e.w, c = r + r, d = a + a, u = o + o, g = r * c, p = r * d, m = r * u, y = a * d, w = a * u,
|
|
3496
|
-
return n[0] = (1 - (y +
|
|
3495
|
+
const n = this.elements, r = e.x, a = e.y, o = e.z, l = e.w, c = r + r, d = a + a, u = o + o, g = r * c, p = r * d, m = r * u, y = a * d, w = a * u, f = o * u, P = l * c, I = l * d, A = l * u, M = s.x, W = s.y, T = s.z;
|
|
3496
|
+
return n[0] = (1 - (y + f)) * M, n[1] = (p + A) * M, n[2] = (m - I) * M, n[3] = 0, n[4] = (p - A) * W, n[5] = (1 - (g + f)) * W, n[6] = (w + P) * W, n[7] = 0, n[8] = (m + I) * T, n[9] = (w - P) * T, n[10] = (1 - (g + y)) * T, n[11] = 0, n[12] = t.x, n[13] = t.y, n[14] = t.z, n[15] = 1, this;
|
|
3497
3497
|
}
|
|
3498
3498
|
decompose(t, e, s) {
|
|
3499
3499
|
const n = this.elements;
|
|
@@ -3519,9 +3519,9 @@ const Mi = new b(), pr = new Xe(), Wi = class ra {
|
|
|
3519
3519
|
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;
|
|
3520
3520
|
}
|
|
3521
3521
|
};
|
|
3522
|
-
|
|
3523
|
-
let
|
|
3524
|
-
const We = new b(), At = new
|
|
3522
|
+
Di.IDENTITY = Object.freeze(new Di());
|
|
3523
|
+
let U = Di;
|
|
3524
|
+
const We = new b(), At = new U(), vh = new b(0, 0, 0), kh = new b(1, 1, 1), ae = new b(), Fs = new b(), yt = new b();
|
|
3525
3525
|
let C = class aa {
|
|
3526
3526
|
constructor(t = void 0, e = void 0) {
|
|
3527
3527
|
this.min = t == null ? new b(1 / 0, 1 / 0, 1 / 0) : new b(t.x, t.y, t.z), this.max = e == null ? new b(-1 / 0, -1 / 0, -1 / 0) : new b(e.x, e.y, e.z);
|
|
@@ -3532,7 +3532,7 @@ let C = class aa {
|
|
|
3532
3532
|
setFromArray(t) {
|
|
3533
3533
|
this.makeEmpty();
|
|
3534
3534
|
for (let e = 0, s = t.length; e < s; e += 3)
|
|
3535
|
-
this.expandByPoint(
|
|
3535
|
+
this.expandByPoint(Ai.fromArray(t, e));
|
|
3536
3536
|
return this;
|
|
3537
3537
|
}
|
|
3538
3538
|
setFromPoints(t) {
|
|
@@ -3542,7 +3542,7 @@ let C = class aa {
|
|
|
3542
3542
|
return this;
|
|
3543
3543
|
}
|
|
3544
3544
|
setFromCenterAndSize(t, e) {
|
|
3545
|
-
const s =
|
|
3545
|
+
const s = Ai.copy(e).multiplyScalar(0.5);
|
|
3546
3546
|
return this.min.copy(t).sub(s), this.max.copy(t).add(s), this;
|
|
3547
3547
|
}
|
|
3548
3548
|
clone() {
|
|
@@ -3602,7 +3602,7 @@ let C = class aa {
|
|
|
3602
3602
|
return e.copy(t).clamp(this.min, this.max);
|
|
3603
3603
|
}
|
|
3604
3604
|
distanceToPoint(t) {
|
|
3605
|
-
return this.clampPoint(t,
|
|
3605
|
+
return this.clampPoint(t, Ai).distanceTo(t);
|
|
3606
3606
|
}
|
|
3607
3607
|
intersect(t) {
|
|
3608
3608
|
return this.min.max(t.min), this.max.min(t.max), this.isEmpty() && this.makeEmpty(), this;
|
|
@@ -3629,10 +3629,10 @@ const zt = [
|
|
|
3629
3629
|
new b(),
|
|
3630
3630
|
new b(),
|
|
3631
3631
|
new b()
|
|
3632
|
-
],
|
|
3632
|
+
], Ai = new b(), gr = new Y();
|
|
3633
3633
|
let gt = class oa {
|
|
3634
3634
|
constructor(t = void 0, e = void 0) {
|
|
3635
|
-
this.min = t == null ? new
|
|
3635
|
+
this.min = t == null ? new Y(1 / 0, 1 / 0) : new Y(t.x, t.y), this.max = e == null ? new Y(-1 / 0, -1 / 0) : new Y(e.x, e.y);
|
|
3636
3636
|
}
|
|
3637
3637
|
set(t, e) {
|
|
3638
3638
|
return this.min.copy(t), this.max.copy(e), this;
|
|
@@ -3666,10 +3666,10 @@ let gt = class oa {
|
|
|
3666
3666
|
return this.isEmpty() ? t.set(0, 0) : t.subVectors(this.max, this.min);
|
|
3667
3667
|
}
|
|
3668
3668
|
get center() {
|
|
3669
|
-
return this.isEmpty() ? new
|
|
3669
|
+
return this.isEmpty() ? new Y(0, 0) : new Y(0, 0).addVectors(this.min, this.max).multiplyScalar(0.5);
|
|
3670
3670
|
}
|
|
3671
3671
|
get size() {
|
|
3672
|
-
return this.isEmpty() ? new
|
|
3672
|
+
return this.isEmpty() ? new Y(0, 0) : new Y(0, 0).subVectors(this.max, this.min);
|
|
3673
3673
|
}
|
|
3674
3674
|
expandByPoint(t) {
|
|
3675
3675
|
return this.min.min(t), this.max.max(t), this;
|
|
@@ -3714,8 +3714,8 @@ let gt = class oa {
|
|
|
3714
3714
|
return t.min.equals(this.min) && t.max.equals(this.max);
|
|
3715
3715
|
}
|
|
3716
3716
|
};
|
|
3717
|
-
const mr = new b(), Lh = new b(), Nh = new
|
|
3718
|
-
class
|
|
3717
|
+
const mr = new b(), Lh = new b(), Nh = new _i();
|
|
3718
|
+
class xi {
|
|
3719
3719
|
constructor(t = new b(1, 0, 0), e = 0) {
|
|
3720
3720
|
this.normal = t, this.constant = e;
|
|
3721
3721
|
}
|
|
@@ -3765,10 +3765,10 @@ class wi {
|
|
|
3765
3765
|
return t.normal.equals(this.normal) && t.constant === this.constant;
|
|
3766
3766
|
}
|
|
3767
3767
|
clone() {
|
|
3768
|
-
return new
|
|
3768
|
+
return new xi().copy(this);
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
|
-
let v = class ha extends
|
|
3771
|
+
let v = class ha extends Y {
|
|
3772
3772
|
clone() {
|
|
3773
3773
|
return new ha(this.x, this.y);
|
|
3774
3774
|
}
|
|
@@ -3778,7 +3778,7 @@ let v = class ha extends X {
|
|
|
3778
3778
|
s.toArray(e, n * 2);
|
|
3779
3779
|
}), e;
|
|
3780
3780
|
}
|
|
3781
|
-
},
|
|
3781
|
+
}, x = class la extends b {
|
|
3782
3782
|
clone() {
|
|
3783
3783
|
return new la(this.x, this.y, this.z);
|
|
3784
3784
|
}
|
|
@@ -3789,8 +3789,8 @@ let v = class ha extends X {
|
|
|
3789
3789
|
}), n;
|
|
3790
3790
|
}
|
|
3791
3791
|
};
|
|
3792
|
-
const yr = new
|
|
3793
|
-
constructor(t = 0, e = 0, s = 0, n =
|
|
3792
|
+
const yr = new U(), _r = new Xe(), ca = class Gi {
|
|
3793
|
+
constructor(t = 0, e = 0, s = 0, n = Gi.DEFAULT_ORDER) {
|
|
3794
3794
|
this._x = t, this._y = e, this._z = s, this._order = n;
|
|
3795
3795
|
}
|
|
3796
3796
|
get x() {
|
|
@@ -3821,7 +3821,7 @@ const yr = new st(), _r = new Xe(), ca = class Di {
|
|
|
3821
3821
|
return this._x = t, this._y = e, this._z = s, this._order = n, this._onChangeCallback(), this;
|
|
3822
3822
|
}
|
|
3823
3823
|
clone() {
|
|
3824
|
-
return new
|
|
3824
|
+
return new Gi(this._x, this._y, this._z, this._order);
|
|
3825
3825
|
}
|
|
3826
3826
|
copy(t) {
|
|
3827
3827
|
return this._x = t._x, this._y = t._y, this._z = t._z, this._order = t._order, this._onChangeCallback(), this;
|
|
@@ -3889,13 +3889,13 @@ class da {
|
|
|
3889
3889
|
}
|
|
3890
3890
|
class ua extends da {
|
|
3891
3891
|
translate(t) {
|
|
3892
|
-
return this.transform(new
|
|
3892
|
+
return this.transform(new _i().makeTranslation(t.x, t.y));
|
|
3893
3893
|
}
|
|
3894
3894
|
get box() {
|
|
3895
3895
|
return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
|
|
3896
3896
|
}
|
|
3897
3897
|
}
|
|
3898
|
-
let
|
|
3898
|
+
let fs = class pa extends ua {
|
|
3899
3899
|
constructor() {
|
|
3900
3900
|
super(), this._loops = [];
|
|
3901
3901
|
}
|
|
@@ -4072,7 +4072,7 @@ let xs = class pa extends ua {
|
|
|
4072
4072
|
const e = this.getUtoTmapping(t);
|
|
4073
4073
|
return this.getTangent(e);
|
|
4074
4074
|
}
|
|
4075
|
-
}, Re = class
|
|
4075
|
+
}, Re = class Hi extends Es {
|
|
4076
4076
|
constructor(t, e, s, n, r) {
|
|
4077
4077
|
super();
|
|
4078
4078
|
const a = +(t !== void 0) + +(e !== void 0) + +(s !== void 0) + +(n !== void 0) + +(r !== void 0);
|
|
@@ -4093,21 +4093,21 @@ let xs = class pa extends ua {
|
|
|
4093
4093
|
throw Mt.ILLEGAL_PARAMETERS;
|
|
4094
4094
|
}
|
|
4095
4095
|
createByThreePoints(t, e, s) {
|
|
4096
|
-
const n = (T,
|
|
4097
|
-
x: (T.x +
|
|
4098
|
-
y: (T.y +
|
|
4099
|
-
}), r = (T,
|
|
4100
|
-
const F = (
|
|
4096
|
+
const n = (T, $) => ({
|
|
4097
|
+
x: (T.x + $.x) / 2,
|
|
4098
|
+
y: (T.y + $.y) / 2
|
|
4099
|
+
}), r = (T, $) => ($.y - T.y) / ($.x - T.x), a = (T) => -1 / T, o = n(t, e), l = n(e, s), c = r(t, e), d = r(e, s), u = a(c), g = a(d), p = (T, $, B, Q) => {
|
|
4100
|
+
const F = (Q - $) / (T - B), H = T * F + $;
|
|
4101
4101
|
return { x: F, y: H };
|
|
4102
|
-
}, m = o.y - u * o.x, y = l.y - g * l.x, w = p(u, m, g, y),
|
|
4102
|
+
}, m = o.y - u * o.x, y = l.y - g * l.x, w = p(u, m, g, y), f = Math.sqrt(
|
|
4103
4103
|
Math.pow(t.x - w.x, 2) + Math.pow(t.y - w.y, 2)
|
|
4104
|
-
),
|
|
4105
|
-
this.center = w, this.radius =
|
|
4104
|
+
), P = (T, $) => Math.atan2(T.y - $.y, T.x - $.x), I = P(t, w), A = P(e, w), M = P(s, w), W = M > I && M < A || I > M && I < A || A > M && A < I;
|
|
4105
|
+
this.center = w, this.radius = f, this._clockwise = !W, this._startAngle = I, this._endAngle = M;
|
|
4106
4106
|
}
|
|
4107
4107
|
createByStartEndPointsAndBulge(t, e, s) {
|
|
4108
4108
|
let n, r, a;
|
|
4109
|
-
s < 0 ? (n = Math.atan(-s) * 4, r = new
|
|
4110
|
-
const o = new
|
|
4109
|
+
s < 0 ? (n = Math.atan(-s) * 4, r = new Y(t), a = new Y(e)) : (n = Math.atan(s) * 4, r = new Y(e), a = new Y(t));
|
|
4110
|
+
const o = new Y().subVectors(a, r), l = o.length(), c = new Y().addVectors(r, o.multiplyScalar(0.5)), d = Math.abs(l / 2 / Math.tan(n / 2)), u = o.normalize(), g = s < 0 ? -Math.PI / 2 : Math.PI / 2, p = new Y(
|
|
4111
4111
|
u.x * Math.cos(g) - u.y * Math.sin(g),
|
|
4112
4112
|
u.y * Math.cos(g) + u.x * Math.sin(g)
|
|
4113
4113
|
);
|
|
@@ -4196,7 +4196,7 @@ let xs = class pa extends ua {
|
|
|
4196
4196
|
n.y - s.y,
|
|
4197
4197
|
n.x - s.x
|
|
4198
4198
|
), this._endAngle = this._startAngle, this._clockwise = e.determinant() < 0 ? !this._clockwise : this._clockwise, this._boundingBoxNeedsUpdate = !0, this;
|
|
4199
|
-
const r = this.midPoint.clone().applyMatrix2d(e), a = this.endPoint.clone().applyMatrix2d(e), o = new
|
|
4199
|
+
const r = this.midPoint.clone().applyMatrix2d(e), a = this.endPoint.clone().applyMatrix2d(e), o = new Hi(
|
|
4200
4200
|
n,
|
|
4201
4201
|
r,
|
|
4202
4202
|
a
|
|
@@ -4217,7 +4217,7 @@ let xs = class pa extends ua {
|
|
|
4217
4217
|
), this._boundingBoxNeedsUpdate = !0, this;
|
|
4218
4218
|
}
|
|
4219
4219
|
clone() {
|
|
4220
|
-
return new
|
|
4220
|
+
return new Hi(
|
|
4221
4221
|
this.center.clone(),
|
|
4222
4222
|
this.radius,
|
|
4223
4223
|
this._startAngle,
|
|
@@ -4247,17 +4247,17 @@ let xs = class pa extends ua {
|
|
|
4247
4247
|
};
|
|
4248
4248
|
class Oh extends da {
|
|
4249
4249
|
translate(t) {
|
|
4250
|
-
return this.transform(new
|
|
4250
|
+
return this.transform(new U().makeTranslation(t.x, t.y, t.z));
|
|
4251
4251
|
}
|
|
4252
4252
|
get box() {
|
|
4253
4253
|
return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
|
|
4254
4254
|
}
|
|
4255
4255
|
}
|
|
4256
|
-
class
|
|
4256
|
+
class Ss extends Oh {
|
|
4257
4257
|
}
|
|
4258
|
-
class ze extends
|
|
4258
|
+
class ze extends Ss {
|
|
4259
4259
|
constructor(t, e) {
|
|
4260
|
-
super(), this._start = new
|
|
4260
|
+
super(), this._start = new x(t), this._end = new x(e);
|
|
4261
4261
|
}
|
|
4262
4262
|
get startPoint() {
|
|
4263
4263
|
return this._start;
|
|
@@ -4275,7 +4275,7 @@ class ze extends Ps {
|
|
|
4275
4275
|
return new b().subVectors(this.endPoint, this.startPoint).normalize();
|
|
4276
4276
|
}
|
|
4277
4277
|
get midPoint() {
|
|
4278
|
-
return new
|
|
4278
|
+
return new x(
|
|
4279
4279
|
(this._start.x + this._end.x) / 2,
|
|
4280
4280
|
(this._start.y + this._end.y) / 2,
|
|
4281
4281
|
(this._start.z + this._end.z) / 2
|
|
@@ -4296,29 +4296,29 @@ class ze extends Ps {
|
|
|
4296
4296
|
atLength(t, e = !1) {
|
|
4297
4297
|
if (e) {
|
|
4298
4298
|
const s = this.delta(_e).normalize();
|
|
4299
|
-
return new
|
|
4299
|
+
return new x(this._start).addScaledVector(s, t);
|
|
4300
4300
|
} else {
|
|
4301
4301
|
const s = this.delta(_e).normalize();
|
|
4302
|
-
return new
|
|
4302
|
+
return new x(this._end).addScaledVector(s, t);
|
|
4303
4303
|
}
|
|
4304
4304
|
}
|
|
4305
4305
|
extend(t, e = !1) {
|
|
4306
4306
|
if (e) {
|
|
4307
4307
|
const s = _e.subVectors(this._start, this._end).normalize();
|
|
4308
|
-
this._start = new
|
|
4308
|
+
this._start = new x(this._start).addScaledVector(
|
|
4309
4309
|
s,
|
|
4310
4310
|
t
|
|
4311
4311
|
);
|
|
4312
4312
|
} else {
|
|
4313
4313
|
const s = this.delta(_e).normalize();
|
|
4314
|
-
this._end = new
|
|
4314
|
+
this._end = new x(this._end).addScaledVector(s, t);
|
|
4315
4315
|
}
|
|
4316
4316
|
return this._boundingBoxNeedsUpdate = !0, this;
|
|
4317
4317
|
}
|
|
4318
4318
|
closestPointToPointParameter(t, e) {
|
|
4319
|
-
wr.subVectors(t, this._start),
|
|
4320
|
-
const s =
|
|
4321
|
-
let n =
|
|
4319
|
+
wr.subVectors(t, this._start), Rs.subVectors(this.endPoint, this.startPoint);
|
|
4320
|
+
const s = Rs.dot(Rs);
|
|
4321
|
+
let n = Rs.dot(wr) / s;
|
|
4322
4322
|
return e && (n = k.clamp(n, 0, 1)), n;
|
|
4323
4323
|
}
|
|
4324
4324
|
closestPointToPoint(t, e, s) {
|
|
@@ -4336,18 +4336,18 @@ class ze extends Ps {
|
|
|
4336
4336
|
}
|
|
4337
4337
|
project(t) {
|
|
4338
4338
|
const e = this.direction, s = _e.subVectors(t, this.startPoint).dot(e);
|
|
4339
|
-
return new
|
|
4339
|
+
return new x().copy(e).multiplyScalar(s).add(this.startPoint);
|
|
4340
4340
|
}
|
|
4341
4341
|
perpPoint(t) {
|
|
4342
4342
|
const e = this.direction, s = this.startPoint, n = _e.subVectors(t, s).dot(e), r = _e.copy(e).multiplyScalar(n);
|
|
4343
|
-
return new
|
|
4343
|
+
return new x().addVectors(s, r);
|
|
4344
4344
|
}
|
|
4345
4345
|
calculateBoundingBox() {
|
|
4346
|
-
const t = new
|
|
4346
|
+
const t = new x(
|
|
4347
4347
|
Math.min(this._start.x, this._end.x),
|
|
4348
4348
|
Math.min(this._start.y, this._end.y),
|
|
4349
4349
|
Math.min(this._start.z, this._end.z)
|
|
4350
|
-
), e = new
|
|
4350
|
+
), e = new x(
|
|
4351
4351
|
Math.max(this._start.x, this._end.x),
|
|
4352
4352
|
Math.max(this._start.y, this._end.y),
|
|
4353
4353
|
Math.max(this._start.z, this._end.z)
|
|
@@ -4367,8 +4367,8 @@ class ze extends Ps {
|
|
|
4367
4367
|
return new ze(this._start.clone(), this._end.clone());
|
|
4368
4368
|
}
|
|
4369
4369
|
}
|
|
4370
|
-
const _e = new b(), wr = new b(),
|
|
4371
|
-
class Ge extends
|
|
4370
|
+
const _e = new b(), wr = new b(), Rs = new b();
|
|
4371
|
+
class Ge extends Ss {
|
|
4372
4372
|
static computeCenterPoint(t, e, s) {
|
|
4373
4373
|
const n = new b().addVectors(t, e).multiplyScalar(0.5), r = new b().addVectors(t, s).multiplyScalar(0.5), a = new b().subVectors(e, t), o = new b().subVectors(s, t), l = new b().crossVectors(a, o).normalize();
|
|
4374
4374
|
if (l.lengthSq() === 0)
|
|
@@ -4400,7 +4400,7 @@ class Ge extends Ps {
|
|
|
4400
4400
|
return this._center;
|
|
4401
4401
|
}
|
|
4402
4402
|
set center(t) {
|
|
4403
|
-
this._center = new
|
|
4403
|
+
this._center = new x(t.x, t.y, t.z || 0), this._boundingBoxNeedsUpdate = !0;
|
|
4404
4404
|
}
|
|
4405
4405
|
get radius() {
|
|
4406
4406
|
return this._radius;
|
|
@@ -4484,7 +4484,7 @@ class Ge extends Ps {
|
|
|
4484
4484
|
nearestTangentPoint(t) {
|
|
4485
4485
|
const e = this.tangentPoints(t);
|
|
4486
4486
|
if (e.length === 0) return null;
|
|
4487
|
-
const s = new
|
|
4487
|
+
const s = new x(t.x, t.y, t.z || 0);
|
|
4488
4488
|
return e.length === 1 || e[0].distanceTo(s) < e[1].distanceTo(s) ? e[0] : e[1];
|
|
4489
4489
|
}
|
|
4490
4490
|
calculateBoundingBox() {
|
|
@@ -4557,7 +4557,7 @@ class Ge extends Ps {
|
|
|
4557
4557
|
y: e.z * s.x - e.x * s.z,
|
|
4558
4558
|
z: e.x * s.y - e.y * s.x
|
|
4559
4559
|
}, r = this.center, a = this.radius;
|
|
4560
|
-
return new
|
|
4560
|
+
return new x(
|
|
4561
4561
|
r.x + a * (s.x * Math.cos(t) + n.x * Math.sin(t)),
|
|
4562
4562
|
r.y + a * (s.y * Math.cos(t) + n.y * Math.sin(t)),
|
|
4563
4563
|
r.z + a * (s.z * Math.cos(t) + n.z * Math.sin(t))
|
|
@@ -4565,11 +4565,11 @@ class Ge extends Ps {
|
|
|
4565
4565
|
}
|
|
4566
4566
|
get plane() {
|
|
4567
4567
|
const t = new b(this.center).distanceTo(ta);
|
|
4568
|
-
return new
|
|
4568
|
+
return new xi(this.normal, t);
|
|
4569
4569
|
}
|
|
4570
4570
|
}
|
|
4571
4571
|
const xr = new b();
|
|
4572
|
-
let
|
|
4572
|
+
let ni = class Xs extends Es {
|
|
4573
4573
|
constructor(t, e, s, n = 0, r = D, a = !1, o = 0) {
|
|
4574
4574
|
super(), this.center = t, this.majorAxisRadius = e, this.minorAxisRadius = s, (r - n) % D == 0 ? (this.startAngle = 0, this.endAngle = D) : (this.startAngle = n, this.endAngle = r), this.clockwise = a, this.rotation = o;
|
|
4575
4575
|
}
|
|
@@ -4577,7 +4577,7 @@ let ii = class Us extends Es {
|
|
|
4577
4577
|
return this._center;
|
|
4578
4578
|
}
|
|
4579
4579
|
set center(t) {
|
|
4580
|
-
this._center = new
|
|
4580
|
+
this._center = new x(t.x, t.y, t.z || 0), this._boundingBoxNeedsUpdate = !0;
|
|
4581
4581
|
}
|
|
4582
4582
|
get majorAxisRadius() {
|
|
4583
4583
|
return this._majorAxisRadius;
|
|
@@ -4652,7 +4652,7 @@ let ii = class Us extends Es {
|
|
|
4652
4652
|
transform(t) {
|
|
4653
4653
|
const e = t, s = new v(this.center).applyMatrix2d(
|
|
4654
4654
|
e
|
|
4655
|
-
), n = new
|
|
4655
|
+
), n = new x(
|
|
4656
4656
|
s.x,
|
|
4657
4657
|
s.y,
|
|
4658
4658
|
this.center.z
|
|
@@ -4660,12 +4660,12 @@ let ii = class Us extends Es {
|
|
|
4660
4660
|
s
|
|
4661
4661
|
), l = new v(a).sub(
|
|
4662
4662
|
s
|
|
4663
|
-
), c = o.length(), d = l.length(), u = Math.atan2(o.y, o.x), g = o.clone().normalize(), p = l.clone().normalize(), m = (
|
|
4664
|
-
const
|
|
4663
|
+
), c = o.length(), d = l.length(), u = Math.atan2(o.y, o.x), g = o.clone().normalize(), p = l.clone().normalize(), m = (f) => {
|
|
4664
|
+
const P = new v(f).sub(s), I = P.dot(g), A = P.dot(p);
|
|
4665
4665
|
return k.normalizeAngle(
|
|
4666
4666
|
Math.atan2(A / d, I / c)
|
|
4667
4667
|
);
|
|
4668
|
-
}, y = e.determinant() < 0 ? !this.clockwise : this.clockwise, w = this.closed ? new
|
|
4668
|
+
}, y = e.determinant() < 0 ? !this.clockwise : this.clockwise, w = this.closed ? new Xs(
|
|
4669
4669
|
n,
|
|
4670
4670
|
c,
|
|
4671
4671
|
d,
|
|
@@ -4673,7 +4673,7 @@ let ii = class Us extends Es {
|
|
|
4673
4673
|
D,
|
|
4674
4674
|
y,
|
|
4675
4675
|
u
|
|
4676
|
-
) : new
|
|
4676
|
+
) : new Xs(
|
|
4677
4677
|
n,
|
|
4678
4678
|
c,
|
|
4679
4679
|
d,
|
|
@@ -4693,7 +4693,7 @@ let ii = class Us extends Es {
|
|
|
4693
4693
|
return this.center = t.center, this.majorAxisRadius = t.majorAxisRadius, this.minorAxisRadius = t.minorAxisRadius, this.startAngle = t.startAngle, this.endAngle = t.endAngle, this.clockwise = t.clockwise, this.rotation = t.rotation, this;
|
|
4694
4694
|
}
|
|
4695
4695
|
clone() {
|
|
4696
|
-
return new
|
|
4696
|
+
return new Xs(
|
|
4697
4697
|
this.center,
|
|
4698
4698
|
this.majorAxisRadius,
|
|
4699
4699
|
this.minorAxisRadius,
|
|
@@ -4704,7 +4704,7 @@ let ii = class Us extends Es {
|
|
|
4704
4704
|
);
|
|
4705
4705
|
}
|
|
4706
4706
|
};
|
|
4707
|
-
class _s extends
|
|
4707
|
+
class _s extends Ss {
|
|
4708
4708
|
constructor(t, e, s, n, r, a = 0, o = D) {
|
|
4709
4709
|
super(), this.center = t, this.normal = e, this.majorAxis = s, this.majorAxisRadius = n, this.minorAxisRadius = r;
|
|
4710
4710
|
const l = Math.abs(o - a);
|
|
@@ -4714,7 +4714,7 @@ class _s extends Ps {
|
|
|
4714
4714
|
return this._center;
|
|
4715
4715
|
}
|
|
4716
4716
|
set center(t) {
|
|
4717
|
-
this._center = new
|
|
4717
|
+
this._center = new x(t.x, t.y, t.z || 0), this._boundingBoxNeedsUpdate = !0;
|
|
4718
4718
|
}
|
|
4719
4719
|
get majorAxisRadius() {
|
|
4720
4720
|
return this._majorAxisRadius;
|
|
@@ -4780,7 +4780,7 @@ class _s extends Ps {
|
|
|
4780
4780
|
return this.getPointAtAngle(s);
|
|
4781
4781
|
}
|
|
4782
4782
|
get isCircular() {
|
|
4783
|
-
return
|
|
4783
|
+
return wi.equal(this.majorAxisRadius, this.minorAxisRadius);
|
|
4784
4784
|
}
|
|
4785
4785
|
get length() {
|
|
4786
4786
|
if (this.isCircular)
|
|
@@ -4841,7 +4841,7 @@ class _s extends Ps {
|
|
|
4841
4841
|
}
|
|
4842
4842
|
getPointAtAngle(t) {
|
|
4843
4843
|
const e = Math.cos(t), s = Math.sin(t), n = this.minorAxis.clone().multiplyScalar(this.minorAxisRadius).multiplyScalar(s), r = this.majorAxis.clone().multiplyScalar(e * this.majorAxisRadius).add(n);
|
|
4844
|
-
return new
|
|
4844
|
+
return new x(
|
|
4845
4845
|
this.center.x + r.x,
|
|
4846
4846
|
this.center.y + r.y,
|
|
4847
4847
|
this.center.z + r.z
|
|
@@ -4860,9 +4860,9 @@ class _s extends Ps {
|
|
|
4860
4860
|
let g = new b().crossVectors(u, d).normalize();
|
|
4861
4861
|
g.dot(o) < 0 && (u.negate(), g = new b().crossVectors(u, d).normalize());
|
|
4862
4862
|
const p = (y) => {
|
|
4863
|
-
const w = new b(y).sub(s),
|
|
4863
|
+
const w = new b(y).sub(s), f = w.dot(d), P = w.dot(g);
|
|
4864
4864
|
return k.normalizeAngle(
|
|
4865
|
-
Math.atan2(
|
|
4865
|
+
Math.atan2(P / c, f / l)
|
|
4866
4866
|
);
|
|
4867
4867
|
}, m = this.closed ? new _s(
|
|
4868
4868
|
s,
|
|
@@ -4899,7 +4899,7 @@ class _s extends Ps {
|
|
|
4899
4899
|
}
|
|
4900
4900
|
get plane() {
|
|
4901
4901
|
const t = new b(this.center).distanceTo(ta);
|
|
4902
|
-
return new
|
|
4902
|
+
return new xi(this.normal, t);
|
|
4903
4903
|
}
|
|
4904
4904
|
}
|
|
4905
4905
|
class Rt extends Es {
|
|
@@ -4989,7 +4989,7 @@ class Rt extends Es {
|
|
|
4989
4989
|
getPoints3d(t, e) {
|
|
4990
4990
|
const s = [];
|
|
4991
4991
|
return this.getPoints(t).forEach(
|
|
4992
|
-
(n) => s.push(new
|
|
4992
|
+
(n) => s.push(new x().set(n.x, n.y, e))
|
|
4993
4993
|
), s;
|
|
4994
4994
|
}
|
|
4995
4995
|
getPoints(t) {
|
|
@@ -5056,7 +5056,7 @@ class ie extends Es {
|
|
|
5056
5056
|
return new ie(this._start.clone(), this._end.clone());
|
|
5057
5057
|
}
|
|
5058
5058
|
}
|
|
5059
|
-
let
|
|
5059
|
+
let ri = class Nt extends Es {
|
|
5060
5060
|
constructor(t = []) {
|
|
5061
5061
|
super(), this._curves = t;
|
|
5062
5062
|
}
|
|
@@ -5116,7 +5116,7 @@ let ni = class Nt extends Es {
|
|
|
5116
5116
|
return e.setFromPoints(t), e;
|
|
5117
5117
|
}
|
|
5118
5118
|
transform(t) {
|
|
5119
|
-
const e = new
|
|
5119
|
+
const e = new U().set(
|
|
5120
5120
|
t.elements[0],
|
|
5121
5121
|
t.elements[3],
|
|
5122
5122
|
0,
|
|
@@ -5177,7 +5177,7 @@ let ni = class Nt extends Es {
|
|
|
5177
5177
|
t.endAngle,
|
|
5178
5178
|
t.startAngle,
|
|
5179
5179
|
!t.clockwise
|
|
5180
|
-
) : t instanceof
|
|
5180
|
+
) : t instanceof ni ? new ni(
|
|
5181
5181
|
t.center,
|
|
5182
5182
|
t.majorAxisRadius,
|
|
5183
5183
|
t.minorAxisRadius,
|
|
@@ -5198,7 +5198,7 @@ let ni = class Nt extends Es {
|
|
|
5198
5198
|
);
|
|
5199
5199
|
}
|
|
5200
5200
|
};
|
|
5201
|
-
class
|
|
5201
|
+
class vi {
|
|
5202
5202
|
constructor() {
|
|
5203
5203
|
this.c0 = 0, this.c1 = 0, this.c2 = 0, this.c3 = 0;
|
|
5204
5204
|
}
|
|
@@ -5217,9 +5217,9 @@ class Ai {
|
|
|
5217
5217
|
return this.c0 + this.c1 * t + this.c2 * e + this.c3 * s;
|
|
5218
5218
|
}
|
|
5219
5219
|
}
|
|
5220
|
-
class
|
|
5220
|
+
class _n extends Ss {
|
|
5221
5221
|
constructor(t = [], e = !1, s = "centripetal", n = 0.5) {
|
|
5222
|
-
super(), this.isCatmullRomCurve3d = !0, this.type = "CatmullRomCurve3d", this._tmp = new b(), this._px = new
|
|
5222
|
+
super(), this.isCatmullRomCurve3d = !0, this.type = "CatmullRomCurve3d", this._tmp = new b(), this._px = new vi(), this._py = new vi(), this._pz = new vi(), this._points = t.map((r) => new x(r)), this._closed = e, this._curveType = s, this._tension = n;
|
|
5223
5223
|
}
|
|
5224
5224
|
get points() {
|
|
5225
5225
|
return this._points;
|
|
@@ -5234,10 +5234,10 @@ class yn extends Ps {
|
|
|
5234
5234
|
return this._tension;
|
|
5235
5235
|
}
|
|
5236
5236
|
get startPoint() {
|
|
5237
|
-
return this._points.length > 0 ? this._points[0] : new
|
|
5237
|
+
return this._points.length > 0 ? this._points[0] : new x();
|
|
5238
5238
|
}
|
|
5239
5239
|
get endPoint() {
|
|
5240
|
-
return this._points.length > 0 ? this._points[this._points.length - 1] : new
|
|
5240
|
+
return this._points.length > 0 ? this._points[this._points.length - 1] : new x();
|
|
5241
5241
|
}
|
|
5242
5242
|
get length() {
|
|
5243
5243
|
if (this._points.length < 2) return 0;
|
|
@@ -5248,7 +5248,7 @@ class yn extends Ps {
|
|
|
5248
5248
|
this._points[0]
|
|
5249
5249
|
)), t;
|
|
5250
5250
|
}
|
|
5251
|
-
getPoint(t, e = new
|
|
5251
|
+
getPoint(t, e = new x()) {
|
|
5252
5252
|
const s = e, n = this._points, r = n.length;
|
|
5253
5253
|
if (r === 0)
|
|
5254
5254
|
return s.set(0, 0, 0);
|
|
@@ -5258,9 +5258,9 @@ class yn extends Ps {
|
|
|
5258
5258
|
let o = Math.floor(a), l = a - o;
|
|
5259
5259
|
this._closed ? o += o > 0 ? 0 : (Math.floor(Math.abs(o) / r) + 1) * r : l === 0 && o === r - 1 && (o = r - 2, l = 1);
|
|
5260
5260
|
let c, d;
|
|
5261
|
-
this._closed || o > 0 ? c = n[(o - 1) % r] : (this._tmp.subVectors(n[0], n[1]).add(n[0]), c = new
|
|
5261
|
+
this._closed || o > 0 ? c = n[(o - 1) % r] : (this._tmp.subVectors(n[0], n[1]).add(n[0]), c = new x(this._tmp.x, this._tmp.y, this._tmp.z));
|
|
5262
5262
|
const u = n[o % r], g = n[(o + 1) % r];
|
|
5263
|
-
if (this._closed || o + 2 < r ? d = n[(o + 2) % r] : (this._tmp.subVectors(n[r - 1], n[r - 2]).add(n[r - 1]), d = new
|
|
5263
|
+
if (this._closed || o + 2 < r ? d = n[(o + 2) % r] : (this._tmp.subVectors(n[r - 1], n[r - 2]).add(n[r - 1]), d = new x(this._tmp.x, this._tmp.y, this._tmp.z)), this._curveType === "centripetal" || this._curveType === "chordal") {
|
|
5264
5264
|
const p = this._curveType === "chordal" ? 0.5 : 0.25;
|
|
5265
5265
|
let m = Math.pow(c.distanceToSquared(u), p), y = Math.pow(u.distanceToSquared(g), p), w = Math.pow(g.distanceToSquared(d), p);
|
|
5266
5266
|
y < 1e-4 && (y = 1), m < 1e-4 && (m = y), w < 1e-4 && (w = y), this._px.initNonuniformCatmullRom(c.x, u.x, g.x, d.x, m, y, w), this._py.initNonuniformCatmullRom(c.y, u.y, g.y, d.y, m, y, w), this._pz.initNonuniformCatmullRom(c.z, u.z, g.z, d.z, m, y, w);
|
|
@@ -5278,7 +5278,7 @@ class yn extends Ps {
|
|
|
5278
5278
|
return e;
|
|
5279
5279
|
}
|
|
5280
5280
|
setPoints(t) {
|
|
5281
|
-
this._points = t.map((e) => new
|
|
5281
|
+
this._points = t.map((e) => new x(e)), this._boundingBoxNeedsUpdate = !0;
|
|
5282
5282
|
}
|
|
5283
5283
|
setClosed(t) {
|
|
5284
5284
|
this._closed !== t && (this._closed = t, this._boundingBoxNeedsUpdate = !0);
|
|
@@ -5290,7 +5290,7 @@ class yn extends Ps {
|
|
|
5290
5290
|
this._tension = t;
|
|
5291
5291
|
}
|
|
5292
5292
|
clone() {
|
|
5293
|
-
return new
|
|
5293
|
+
return new _n(
|
|
5294
5294
|
this._points.map((t) => t.clone()),
|
|
5295
5295
|
this._closed,
|
|
5296
5296
|
this._curveType,
|
|
@@ -5299,7 +5299,7 @@ class yn extends Ps {
|
|
|
5299
5299
|
}
|
|
5300
5300
|
transform(t) {
|
|
5301
5301
|
return this._points = this._points.map((e) => {
|
|
5302
|
-
const s = new
|
|
5302
|
+
const s = new x();
|
|
5303
5303
|
return s.copy(e), s.applyMatrix4(t), s;
|
|
5304
5304
|
}), this._boundingBoxNeedsUpdate = !0, this;
|
|
5305
5305
|
}
|
|
@@ -5338,7 +5338,7 @@ let Ct = class ds {
|
|
|
5338
5338
|
}
|
|
5339
5339
|
point(t) {
|
|
5340
5340
|
const e = this._controlPoints.map((s) => [s.x, s.y, s.z]);
|
|
5341
|
-
return
|
|
5341
|
+
return Us(
|
|
5342
5342
|
t,
|
|
5343
5343
|
this._degree,
|
|
5344
5344
|
this._knots,
|
|
@@ -5396,7 +5396,7 @@ let Ct = class ds {
|
|
|
5396
5396
|
static createFitPointsForClosedCurve(t) {
|
|
5397
5397
|
if (t.length < 4)
|
|
5398
5398
|
throw new Error("At least 4 points are required for a closed NURBS curve");
|
|
5399
|
-
const e = new
|
|
5399
|
+
const e = new _n(
|
|
5400
5400
|
t,
|
|
5401
5401
|
!0,
|
|
5402
5402
|
"centripetal"
|
|
@@ -5407,7 +5407,7 @@ let Ct = class ds {
|
|
|
5407
5407
|
const n = this.createFitPointsForClosedCurve(t).map((r) => [r.x, r.y, r.z]);
|
|
5408
5408
|
return ds.byPoints(n, e, s);
|
|
5409
5409
|
}
|
|
5410
|
-
}, ne = class
|
|
5410
|
+
}, ne = class Ys extends Ss {
|
|
5411
5411
|
constructor(t, e, s, n, r, a) {
|
|
5412
5412
|
super();
|
|
5413
5413
|
const o = arguments.length;
|
|
@@ -5532,11 +5532,11 @@ let Ct = class ds {
|
|
|
5532
5532
|
}
|
|
5533
5533
|
get startPoint() {
|
|
5534
5534
|
const t = this._nurbsCurve.knots(), e = this._nurbsCurve.degree(), s = t[e], n = this._nurbsCurve.point(s);
|
|
5535
|
-
return new
|
|
5535
|
+
return new x(n[0], n[1], n[2]);
|
|
5536
5536
|
}
|
|
5537
5537
|
get endPoint() {
|
|
5538
5538
|
const t = this._nurbsCurve.knots(), e = this._nurbsCurve.degree(), s = t[t.length - e - 1], n = this._nurbsCurve.point(s);
|
|
5539
|
-
return new
|
|
5539
|
+
return new x(n[0], n[1], n[2]);
|
|
5540
5540
|
}
|
|
5541
5541
|
get length() {
|
|
5542
5542
|
return this._nurbsCurve.length();
|
|
@@ -5555,7 +5555,7 @@ let Ct = class ds {
|
|
|
5555
5555
|
const e = this._nurbsCurve, s = [], n = e.knots(), r = this._nurbsCurve.degree(), a = n[r], o = n[n.length - r - 1], l = (o - a) / (t - 1);
|
|
5556
5556
|
for (let c = 0; c < t; c++) {
|
|
5557
5557
|
const d = c === t - 1 ? o : a + c * l, u = e.point(d);
|
|
5558
|
-
s.push(new
|
|
5558
|
+
s.push(new x(u[0], u[1], u[2]));
|
|
5559
5559
|
}
|
|
5560
5560
|
return s;
|
|
5561
5561
|
}
|
|
@@ -5580,16 +5580,16 @@ let Ct = class ds {
|
|
|
5580
5580
|
transform(t) {
|
|
5581
5581
|
if (this._fitPoints && this._knotParameterization)
|
|
5582
5582
|
this._fitPoints = this._fitPoints.map(
|
|
5583
|
-
(e) => new
|
|
5584
|
-
), this._startTangent && (this._startTangent = new
|
|
5583
|
+
(e) => new x(e).applyMatrix4(t)
|
|
5584
|
+
), this._startTangent && (this._startTangent = new x(
|
|
5585
5585
|
this._startTangent
|
|
5586
|
-
).transformDirection(t)), this._endTangent && (this._endTangent = new
|
|
5586
|
+
).transformDirection(t)), this._endTangent && (this._endTangent = new x(this._endTangent).transformDirection(
|
|
5587
5587
|
t
|
|
5588
5588
|
)), this.buildCurve();
|
|
5589
5589
|
else {
|
|
5590
5590
|
const e = this._nurbsCurve.knots(), s = this._nurbsCurve.weights();
|
|
5591
5591
|
this._controlPoints = this._controlPoints.map(
|
|
5592
|
-
(n) => new
|
|
5592
|
+
(n) => new x(n).applyMatrix4(t)
|
|
5593
5593
|
), this._nurbsCurve = Ct.byKnotsControlPointsWeights(
|
|
5594
5594
|
this._degree,
|
|
5595
5595
|
e,
|
|
@@ -5600,7 +5600,7 @@ let Ct = class ds {
|
|
|
5600
5600
|
return this._boundingBoxNeedsUpdate = !0, this;
|
|
5601
5601
|
}
|
|
5602
5602
|
clone() {
|
|
5603
|
-
return this._fitPoints && this._knotParameterization ? new
|
|
5603
|
+
return this._fitPoints && this._knotParameterization ? new Ys(
|
|
5604
5604
|
this._fitPoints.map((t) => ({
|
|
5605
5605
|
x: t.x,
|
|
5606
5606
|
y: t.y,
|
|
@@ -5619,7 +5619,7 @@ let Ct = class ds {
|
|
|
5619
5619
|
y: this._endTangent.y,
|
|
5620
5620
|
z: this._endTangent.z || 0
|
|
5621
5621
|
} : void 0
|
|
5622
|
-
) : new
|
|
5622
|
+
) : new Ys(
|
|
5623
5623
|
this._controlPoints.map((t) => ({
|
|
5624
5624
|
x: t.x,
|
|
5625
5625
|
y: t.y,
|
|
@@ -5651,13 +5651,13 @@ let Ct = class ds {
|
|
|
5651
5651
|
throw new Error(
|
|
5652
5652
|
`At least ${s + 1} points are required for a degree ${s} closed spline`
|
|
5653
5653
|
);
|
|
5654
|
-
return new
|
|
5654
|
+
return new Ys(t, e, s, !0);
|
|
5655
5655
|
}
|
|
5656
5656
|
};
|
|
5657
5657
|
var ga = ((i) => (i.ClosedFilled = "", i.Dot = "_DOT", i.DotSmall = "_DOTSMALL", i.DotBlank = "_DOTBLANK", i.Origin = "_ORIGIN", i.Origin2 = "_ORIGIN2", i.Open = "_OPEN", i.Open90 = "_OPEN90", i.Open30 = "_OPEN30", i.Closed = "_CLOSED", i.Small = "_SMALL", i.None = "_NONE", i.Oblique = "_OBLIQUE", i.BoxFilled = "_BOXFILLED", i.Box = "_BOXBLANK", i.ClosedBlank = "_CLOSEDBLANK", i.DatumBlank = "_DATUMBLANK", i.DatumFilled = "_DATUMFILLED", i.Integral = "_INTEGRAL", i.ArchTick = "_ARCHTICK", i))(ga || {}), He = ((i) => (i[i.ByBlock = -2] = "ByBlock", i[i.ByDIPs = -4] = "ByDIPs", i[i.ByLayer = -1] = "ByLayer", i[i.ByLineWeightDefault = -3] = "ByLineWeightDefault", i[i.LineWeight000 = 0] = "LineWeight000", i[i.LineWeight005 = 5] = "LineWeight005", i[i.LineWeight009 = 9] = "LineWeight009", i[i.LineWeight013 = 13] = "LineWeight013", i[i.LineWeight015 = 15] = "LineWeight015", i[i.LineWeight018 = 18] = "LineWeight018", i[i.LineWeight020 = 20] = "LineWeight020", i[i.LineWeight025 = 25] = "LineWeight025", i[i.LineWeight030 = 30] = "LineWeight030", i[i.LineWeight035 = 35] = "LineWeight035", i[i.LineWeight040 = 40] = "LineWeight040", i[i.LineWeight050 = 50] = "LineWeight050", i[i.LineWeight053 = 53] = "LineWeight053", i[i.LineWeight060 = 60] = "LineWeight060", i[i.LineWeight070 = 70] = "LineWeight070", i[i.LineWeight080 = 80] = "LineWeight080", i[i.LineWeight090 = 90] = "LineWeight090", i[i.LineWeight100 = 100] = "LineWeight100", i[i.LineWeight106 = 106] = "LineWeight106", i[i.LineWeight120 = 120] = "LineWeight120", i[i.LineWeight140 = 140] = "LineWeight140", i[i.LineWeight158 = 158] = "LineWeight158", i[i.LineWeight200 = 200] = "LineWeight200", i[i.LineWeight211 = 211] = "LineWeight211", i))(He || {}), he = ((i) => (i[i.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", i[i.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", i[i.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", i[i.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", i[i.BY_STYLE = 5] = "BY_STYLE", i))(he || {}), dt = ((i) => (i[i.TopLeft = 1] = "TopLeft", i[i.TopCenter = 2] = "TopCenter", i[i.TopRight = 3] = "TopRight", i[i.MiddleLeft = 4] = "MiddleLeft", i[i.MiddleCenter = 5] = "MiddleCenter", i[i.MiddleRight = 6] = "MiddleRight", i[i.BottomLeft = 7] = "BottomLeft", i[i.BottomCenter = 8] = "BottomCenter", i[i.BottomRight = 9] = "BottomRight", i))(dt || {}), ma = ((i) => (i[i.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", i[i.WIREFRAME = 1] = "WIREFRAME", i[i.HIDDEN_LINE = 2] = "HIDDEN_LINE", i[i.FLAT_SHADED = 3] = "FLAT_SHADED", i[i.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", i[i.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", i[i.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", i))(ma || {}), ya = ((i) => (i[i.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", i[i.TOP = 1] = "TOP", i[i.BOTTOM = 2] = "BOTTOM", i[i.FRONT = 3] = "FRONT", i[i.BACK = 4] = "BACK", i[i.LEFT = 5] = "LEFT", i[i.RIGHT = 6] = "RIGHT", i))(ya || {}), _a = ((i) => (i[i.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", i[i.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", i))(_a || {});
|
|
5658
5658
|
let Ch = class wa {
|
|
5659
5659
|
constructor() {
|
|
5660
|
-
this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new
|
|
5660
|
+
this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new x(), this._height = 0, this._width = 0, this._viewCenter = new x(), this._viewHeight = 0;
|
|
5661
5661
|
}
|
|
5662
5662
|
get number() {
|
|
5663
5663
|
return this._number;
|
|
@@ -5732,9 +5732,9 @@ let Ch = class wa {
|
|
|
5732
5732
|
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;
|
|
5733
5733
|
}
|
|
5734
5734
|
};
|
|
5735
|
-
const
|
|
5735
|
+
const Pn = class Pn extends ue {
|
|
5736
5736
|
constructor() {
|
|
5737
|
-
super(...arguments), this._visibility = !0, this._transparency = new
|
|
5737
|
+
super(...arguments), this._visibility = !0, this._transparency = new yn();
|
|
5738
5738
|
}
|
|
5739
5739
|
get type() {
|
|
5740
5740
|
return this.constructor.typeName;
|
|
@@ -5811,7 +5811,7 @@ const In = class In extends ue {
|
|
|
5811
5811
|
subGetGripPoints() {
|
|
5812
5812
|
return new Array();
|
|
5813
5813
|
}
|
|
5814
|
-
subGetOsnapPoints(t, e, s, n, r) {
|
|
5814
|
+
subGetOsnapPoints(t, e, s, n, r, a) {
|
|
5815
5815
|
}
|
|
5816
5816
|
transformBy(t) {
|
|
5817
5817
|
return this;
|
|
@@ -5951,14 +5951,14 @@ const In = class In extends ue {
|
|
|
5951
5951
|
t && (t.objectId = this.objectId, this.attrs.has("ownerId") && (t.ownerId = this.ownerId), t.layerName = this.layer, t.visible = this.visibility);
|
|
5952
5952
|
}
|
|
5953
5953
|
};
|
|
5954
|
-
|
|
5955
|
-
let mt =
|
|
5954
|
+
Pn.typeName = "Entity";
|
|
5955
|
+
let mt = Pn;
|
|
5956
5956
|
const En = class En extends mt {
|
|
5957
5957
|
};
|
|
5958
5958
|
En.typeName = "Curve";
|
|
5959
5959
|
let at = En;
|
|
5960
5960
|
var us = /* @__PURE__ */ ((i) => (i[i.SimplePoly = 0] = "SimplePoly", i[i.FitCurvePoly = 1] = "FitCurvePoly", i[i.QuadSplinePoly = 2] = "QuadSplinePoly", i[i.CubicSplinePoly = 3] = "CubicSplinePoly", i))(us || {});
|
|
5961
|
-
const
|
|
5961
|
+
const Sn = class Sn extends at {
|
|
5962
5962
|
get dxfTypeName() {
|
|
5963
5963
|
return "POLYLINE";
|
|
5964
5964
|
}
|
|
@@ -6010,7 +6010,7 @@ const Pn = class Pn extends at {
|
|
|
6010
6010
|
const t = new Array();
|
|
6011
6011
|
for (let e = 0; e < this._geo.numberOfVertices; ++e) {
|
|
6012
6012
|
const s = this._geo.getPointAt(e);
|
|
6013
|
-
t.push(new
|
|
6013
|
+
t.push(new x(s.x, s.y, 0));
|
|
6014
6014
|
}
|
|
6015
6015
|
return t;
|
|
6016
6016
|
}
|
|
@@ -6019,7 +6019,7 @@ const Pn = class Pn extends at {
|
|
|
6019
6019
|
case V.EndPoint:
|
|
6020
6020
|
for (let r = 0; r < this._geo.numberOfVertices; ++r) {
|
|
6021
6021
|
const a = this._geo.getPointAt(r);
|
|
6022
|
-
n.push(new
|
|
6022
|
+
n.push(new x(a.x, a.y, 0));
|
|
6023
6023
|
}
|
|
6024
6024
|
break;
|
|
6025
6025
|
}
|
|
@@ -6028,7 +6028,7 @@ const Pn = class Pn extends at {
|
|
|
6028
6028
|
const e = t.determinant() < 0;
|
|
6029
6029
|
let s = this._elevation;
|
|
6030
6030
|
return this._geo.vertices.forEach((n) => {
|
|
6031
|
-
const r = new
|
|
6031
|
+
const r = new x(
|
|
6032
6032
|
n.x,
|
|
6033
6033
|
n.y,
|
|
6034
6034
|
this._elevation
|
|
@@ -6109,7 +6109,7 @@ const Pn = class Pn extends at {
|
|
|
6109
6109
|
subWorldDraw(t) {
|
|
6110
6110
|
const e = [];
|
|
6111
6111
|
return this._geo.getPoints(100).forEach(
|
|
6112
|
-
(n) => e.push(new
|
|
6112
|
+
(n) => e.push(new x().set(n.x, n.y, this.elevation))
|
|
6113
6113
|
), t.lines(e);
|
|
6114
6114
|
}
|
|
6115
6115
|
dxfOut(t, e = !1) {
|
|
@@ -6128,15 +6128,15 @@ const Pn = class Pn extends at {
|
|
|
6128
6128
|
return this.polyType === 1 && (e |= 2), this.polyType === 2 && (e |= 4), this.polyType === 3 && (e |= 8), t.writeInt16(66, this.numberOfVertices > 0 ? 1 : 0), t.writeInt16(70, e), t.writeDouble(10, 0), t.writeDouble(20, 0), t.writeDouble(30, this.elevation), this;
|
|
6129
6129
|
}
|
|
6130
6130
|
};
|
|
6131
|
-
|
|
6132
|
-
let
|
|
6131
|
+
Sn.typeName = "2dPolyline";
|
|
6132
|
+
let Ui = Sn;
|
|
6133
6133
|
var Bh = /* @__PURE__ */ ((i) => (i[i.Vertex = 0] = "Vertex", i[i.CurveFitVertex = 1] = "CurveFitVertex", i[i.SplineFitVertex = 8] = "SplineFitVertex", i[i.SplineCtlVertex = 9] = "SplineCtlVertex", i))(Bh || {});
|
|
6134
|
-
const
|
|
6134
|
+
const Mn = class Mn extends mt {
|
|
6135
6135
|
get dxfTypeName() {
|
|
6136
6136
|
return "VERTEX";
|
|
6137
6137
|
}
|
|
6138
6138
|
constructor() {
|
|
6139
|
-
super(), this._position = new
|
|
6139
|
+
super(), this._position = new x(), this._bulge = 0, this._startWidth = 0, this._endWidth = 0, this._vertexType = 0;
|
|
6140
6140
|
}
|
|
6141
6141
|
get position() {
|
|
6142
6142
|
return this._position;
|
|
@@ -6187,10 +6187,10 @@ const Sn = class Sn extends mt {
|
|
|
6187
6187
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbVertex"), t.writeSubclassMarker("AcDb2dVertex"), t.writePoint2d(10, this.position), t.writeDouble(40, this.startWidth), t.writeDouble(41, this.endWidth), t.writeDouble(42, this.bulge), t.writeInt16(70, this.vertexType), this;
|
|
6188
6188
|
}
|
|
6189
6189
|
};
|
|
6190
|
-
|
|
6191
|
-
let fr =
|
|
6192
|
-
var
|
|
6193
|
-
const
|
|
6190
|
+
Mn.typeName = "2dVertex";
|
|
6191
|
+
let fr = Mn;
|
|
6192
|
+
var $s = /* @__PURE__ */ ((i) => (i[i.SimplePoly = 0] = "SimplePoly", i[i.QuadSplinePoly = 1] = "QuadSplinePoly", i[i.CubicSplinePoly = 2] = "CubicSplinePoly", i))($s || {});
|
|
6193
|
+
const Tn = class Tn extends at {
|
|
6194
6194
|
get dxfTypeName() {
|
|
6195
6195
|
return "POLYLINE";
|
|
6196
6196
|
}
|
|
@@ -6214,11 +6214,11 @@ const Mn = class Mn extends at {
|
|
|
6214
6214
|
}
|
|
6215
6215
|
getPointAt(t) {
|
|
6216
6216
|
const e = this._geo.vertices[t];
|
|
6217
|
-
return new
|
|
6217
|
+
return new x(e.x, e.y, e.z || 0);
|
|
6218
6218
|
}
|
|
6219
6219
|
get geometricExtents() {
|
|
6220
6220
|
const t = this._geo.vertices.map(
|
|
6221
|
-
(e) => new
|
|
6221
|
+
(e) => new x(e.x, e.y, e.z || 0)
|
|
6222
6222
|
);
|
|
6223
6223
|
return new C().setFromPoints(t);
|
|
6224
6224
|
}
|
|
@@ -6226,7 +6226,7 @@ const Mn = class Mn extends at {
|
|
|
6226
6226
|
const t = new Array();
|
|
6227
6227
|
for (let e = 0; e < this._geo.numberOfVertices; ++e) {
|
|
6228
6228
|
const s = this._geo.getPointAt(e);
|
|
6229
|
-
t.push(new
|
|
6229
|
+
t.push(new x(s.x, s.y, 0));
|
|
6230
6230
|
}
|
|
6231
6231
|
return t;
|
|
6232
6232
|
}
|
|
@@ -6240,7 +6240,7 @@ const Mn = class Mn extends at {
|
|
|
6240
6240
|
}
|
|
6241
6241
|
transformBy(t) {
|
|
6242
6242
|
return this._geo.vertices.forEach((e) => {
|
|
6243
|
-
const s = new
|
|
6243
|
+
const s = new x(
|
|
6244
6244
|
e.x,
|
|
6245
6245
|
e.y,
|
|
6246
6246
|
e.z || 0
|
|
@@ -6314,7 +6314,7 @@ const Mn = class Mn extends at {
|
|
|
6314
6314
|
}
|
|
6315
6315
|
subWorldDraw(t) {
|
|
6316
6316
|
const e = this._geo.vertices.map(
|
|
6317
|
-
(s) => new
|
|
6317
|
+
(s) => new x(s.x, s.y, s.z || 0)
|
|
6318
6318
|
);
|
|
6319
6319
|
return t.lines(e);
|
|
6320
6320
|
}
|
|
@@ -6336,15 +6336,15 @@ const Mn = class Mn extends at {
|
|
|
6336
6336
|
return e |= 8, this.polyType === 1 && (e |= 16), this.polyType === 2 && (e |= 32), t.writeInt16(66, this.numberOfVertices > 0 ? 1 : 0), t.writeInt16(70, e), this;
|
|
6337
6337
|
}
|
|
6338
6338
|
};
|
|
6339
|
-
|
|
6340
|
-
let
|
|
6339
|
+
Tn.typeName = "3dPolyline";
|
|
6340
|
+
let Xi = Tn;
|
|
6341
6341
|
var Fh = /* @__PURE__ */ ((i) => (i[i.SimpleVertex = 0] = "SimpleVertex", i[i.ControlVertex = 1] = "ControlVertex", i[i.FitVertex = 2] = "FitVertex", i))(Fh || {});
|
|
6342
|
-
const
|
|
6342
|
+
const An = class An extends mt {
|
|
6343
6343
|
get dxfTypeName() {
|
|
6344
6344
|
return "VERTEX";
|
|
6345
6345
|
}
|
|
6346
6346
|
constructor() {
|
|
6347
|
-
super(), this._position = new
|
|
6347
|
+
super(), this._position = new x(), this._vertexType = 0;
|
|
6348
6348
|
}
|
|
6349
6349
|
get position() {
|
|
6350
6350
|
return this._position;
|
|
@@ -6377,9 +6377,9 @@ const Tn = class Tn extends mt {
|
|
|
6377
6377
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbVertex"), t.writeSubclassMarker("AcDb3dPolylineVertex"), t.writePoint3d(10, this.position), t.writeInt16(70, this.vertexType | 32), this;
|
|
6378
6378
|
}
|
|
6379
6379
|
};
|
|
6380
|
-
|
|
6381
|
-
let br =
|
|
6382
|
-
const
|
|
6380
|
+
An.typeName = "3dVertex";
|
|
6381
|
+
let br = An;
|
|
6382
|
+
const vn = class vn extends at {
|
|
6383
6383
|
get dxfTypeName() {
|
|
6384
6384
|
return "ARC";
|
|
6385
6385
|
}
|
|
@@ -6612,15 +6612,15 @@ const An = class An extends at {
|
|
|
6612
6612
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbArc"), t.writePoint3d(10, this.center), t.writeDouble(40, this.radius), t.writeAngle(50, this.startAngle), t.writeAngle(51, this.endAngle), t.writeVector3d(210, this.normal), this;
|
|
6613
6613
|
}
|
|
6614
6614
|
};
|
|
6615
|
-
|
|
6616
|
-
let
|
|
6615
|
+
vn.typeName = "Arc";
|
|
6616
|
+
let Yi = vn;
|
|
6617
6617
|
var Rh = /* @__PURE__ */ ((i) => (i[i.LEFT = 0] = "LEFT", i[i.CENTER = 1] = "CENTER", i[i.RIGHT = 2] = "RIGHT", i[i.ALIGNED = 3] = "ALIGNED", i[i.MIDDLE = 4] = "MIDDLE", i[i.FIT = 5] = "FIT", i))(Rh || {}), zh = /* @__PURE__ */ ((i) => (i[i.BASELINE = 0] = "BASELINE", i[i.BOTTOM = 1] = "BOTTOM", i[i.MIDDLE = 2] = "MIDDLE", i[i.TOP = 3] = "TOP", i))(zh || {});
|
|
6618
|
-
const
|
|
6618
|
+
const kn = class kn extends mt {
|
|
6619
6619
|
get dxfTypeName() {
|
|
6620
6620
|
return "TEXT";
|
|
6621
6621
|
}
|
|
6622
6622
|
constructor() {
|
|
6623
|
-
super(), this._textString = "", this._height = 0, this._thickness = 1, this._position = new
|
|
6623
|
+
super(), this._textString = "", this._height = 0, this._thickness = 1, this._position = new x(), this._rotation = 0, this._oblique = 0, this._horizontalMode = 0, this._verticalModel = 2, this._styleName = "", this._widthFactor = 1;
|
|
6624
6624
|
}
|
|
6625
6625
|
get textString() {
|
|
6626
6626
|
return this._textString;
|
|
@@ -6838,10 +6838,10 @@ const vn = class vn extends mt {
|
|
|
6838
6838
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbText"), t.writePoint3d(10, this.position), t.writeDouble(39, this.thickness), t.writeDouble(40, this.height), t.writeString(1, this.textString), t.writeAngle(50, this.rotation), t.writeDouble(41, this.widthFactor), t.writeAngle(51, this.oblique), t.writeString(7, this.styleName), t.writeInt16(72, this.horizontalMode), t.writeInt16(73, this.verticalMode), t.writePoint3d(11, this.position), this;
|
|
6839
6839
|
}
|
|
6840
6840
|
};
|
|
6841
|
-
|
|
6842
|
-
let
|
|
6843
|
-
var
|
|
6844
|
-
const
|
|
6841
|
+
kn.typeName = "Text";
|
|
6842
|
+
let bs = kn;
|
|
6843
|
+
var st = /* @__PURE__ */ ((i) => (i[i.Invisible = 1] = "Invisible", i[i.Const = 2] = "Const", i[i.Verifiable = 4] = "Verifiable", i[i.Preset = 8] = "Preset", i))(st || {}), se = /* @__PURE__ */ ((i) => (i[i.MultiLine = 2] = "MultiLine", i[i.ConstMultiLine = 4] = "ConstMultiLine", i))(se || {});
|
|
6844
|
+
const Ln = class Ln extends bs {
|
|
6845
6845
|
get dxfTypeName() {
|
|
6846
6846
|
return "ATTDEF";
|
|
6847
6847
|
}
|
|
@@ -6926,9 +6926,9 @@ const kn = class kn extends fs {
|
|
|
6926
6926
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbAttributeDefinition"), t.writeString(3, this.prompt), t.writeString(2, this.tag), t.writeInt16(70, this.isInvisible ? 1 : 0), t.writeInt16(73, this.fieldLength), t.writeInt16(74, this.isReallyLocked ? 1 : 0), this;
|
|
6927
6927
|
}
|
|
6928
6928
|
};
|
|
6929
|
-
|
|
6930
|
-
let
|
|
6931
|
-
const
|
|
6929
|
+
Ln.typeName = "AttDef";
|
|
6930
|
+
let $i = Ln;
|
|
6931
|
+
const Nn = class Nn extends bs {
|
|
6932
6932
|
get dxfTypeName() {
|
|
6933
6933
|
return "ATTRIB";
|
|
6934
6934
|
}
|
|
@@ -6936,28 +6936,28 @@ const Ln = class Ln extends fs {
|
|
|
6936
6936
|
super(), this._flags = 0, this._mtextFlag = 0, this._tag = "", this._fieldLength = 0, this._lockPositionInBlock = !1, this._isReallyLocked = !1;
|
|
6937
6937
|
}
|
|
6938
6938
|
get isInvisible() {
|
|
6939
|
-
return (this._flags &
|
|
6939
|
+
return (this._flags & st.Invisible) !== 0;
|
|
6940
6940
|
}
|
|
6941
6941
|
set isInvisible(t) {
|
|
6942
|
-
t ? this._flags |=
|
|
6942
|
+
t ? this._flags |= st.Invisible : this._flags &= ~st.Invisible;
|
|
6943
6943
|
}
|
|
6944
6944
|
get isConst() {
|
|
6945
|
-
return (this._flags &
|
|
6945
|
+
return (this._flags & st.Const) !== 0;
|
|
6946
6946
|
}
|
|
6947
6947
|
set isConst(t) {
|
|
6948
|
-
t ? this._flags |=
|
|
6948
|
+
t ? this._flags |= st.Const : this._flags &= ~st.Const;
|
|
6949
6949
|
}
|
|
6950
6950
|
get isVerifiable() {
|
|
6951
|
-
return (this._flags &
|
|
6951
|
+
return (this._flags & st.Verifiable) !== 0;
|
|
6952
6952
|
}
|
|
6953
6953
|
set isVerifiable(t) {
|
|
6954
|
-
t ? this._flags |=
|
|
6954
|
+
t ? this._flags |= st.Verifiable : this._flags &= ~st.Verifiable;
|
|
6955
6955
|
}
|
|
6956
6956
|
get isPreset() {
|
|
6957
|
-
return (this._flags &
|
|
6957
|
+
return (this._flags & st.Preset) !== 0;
|
|
6958
6958
|
}
|
|
6959
6959
|
set isPreset(t) {
|
|
6960
|
-
t ? this._flags |=
|
|
6960
|
+
t ? this._flags |= st.Preset : this._flags &= ~st.Preset;
|
|
6961
6961
|
}
|
|
6962
6962
|
get isMTextAttribute() {
|
|
6963
6963
|
return (this._mtextFlag & se.MultiLine) !== 0;
|
|
@@ -7005,14 +7005,14 @@ const Ln = class Ln extends fs {
|
|
|
7005
7005
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbAttribute"), t.writeInt16(70, this.isInvisible ? 1 : 0), t.writeInt16(73, this.fieldLength), t.writeString(2, this.tag), t.writeInt16(74, this.isReallyLocked ? 1 : 0), this.mtext && t.writeInt16(71, this.isMTextAttribute ? 1 : 0), this;
|
|
7006
7006
|
}
|
|
7007
7007
|
};
|
|
7008
|
-
|
|
7009
|
-
let
|
|
7010
|
-
const
|
|
7008
|
+
Nn.typeName = "Attrib";
|
|
7009
|
+
let qi = Nn;
|
|
7010
|
+
const xs = class xs extends mt {
|
|
7011
7011
|
get dxfTypeName() {
|
|
7012
7012
|
return "INSERT";
|
|
7013
7013
|
}
|
|
7014
7014
|
constructor(t) {
|
|
7015
|
-
super(), this._blockName = t, this._position = new
|
|
7015
|
+
super(), this._blockName = t, this._position = new x(), this._rotation = 0, this._normal = new b(0, 0, 1), this._scaleFactors = new x(1, 1, 1), this._attribs = /* @__PURE__ */ new Map();
|
|
7016
7016
|
}
|
|
7017
7017
|
get position() {
|
|
7018
7018
|
return this._position;
|
|
@@ -7048,43 +7048,45 @@ const Nn = class Nn extends mt {
|
|
|
7048
7048
|
this._attribs.set(t.objectId, t), t.ownerId = this.objectId;
|
|
7049
7049
|
}
|
|
7050
7050
|
attributeIterator() {
|
|
7051
|
-
return new
|
|
7051
|
+
return new bi(this._attribs);
|
|
7052
7052
|
}
|
|
7053
7053
|
get blockTransform() {
|
|
7054
|
-
const t = this.blockTableRecord, e = (t == null ? void 0 : t.origin) ??
|
|
7054
|
+
const t = this.blockTableRecord, e = (t == null ? void 0 : t.origin) ?? x.ORIGIN, s = new U().makeTranslation(
|
|
7055
7055
|
-e.x,
|
|
7056
7056
|
-e.y,
|
|
7057
7057
|
-e.z
|
|
7058
|
-
), n = new
|
|
7058
|
+
), n = new U().makeScale(
|
|
7059
7059
|
this._scaleFactors.x,
|
|
7060
7060
|
this._scaleFactors.y,
|
|
7061
7061
|
this._scaleFactors.z
|
|
7062
7062
|
), r = new Xe().setFromAxisAngle(
|
|
7063
7063
|
b.Z_AXIS,
|
|
7064
7064
|
this._rotation
|
|
7065
|
-
), a = new
|
|
7065
|
+
), a = new U().makeRotationFromQuaternion(r), o = new U().makeTranslation(
|
|
7066
7066
|
this._position.x,
|
|
7067
7067
|
this._position.y,
|
|
7068
7068
|
this._position.z
|
|
7069
7069
|
);
|
|
7070
|
-
return new
|
|
7070
|
+
return new U().multiplyMatrices(o, a).multiply(n).multiply(s);
|
|
7071
7071
|
}
|
|
7072
|
-
subGetOsnapPoints(t, e, s, n, r) {
|
|
7073
|
-
|
|
7072
|
+
subGetOsnapPoints(t, e, s, n, r, a) {
|
|
7073
|
+
const o = a ?? new U();
|
|
7074
|
+
V.Insertion === t ? n.push(this.getInsertionPoint(o)) : r && this.subEntityGetOsnapPoints(
|
|
7074
7075
|
t,
|
|
7075
7076
|
e,
|
|
7076
7077
|
s,
|
|
7077
7078
|
n,
|
|
7078
|
-
r
|
|
7079
|
+
r,
|
|
7080
|
+
o
|
|
7079
7081
|
);
|
|
7080
7082
|
}
|
|
7081
7083
|
transformBy(t) {
|
|
7082
|
-
const e = new
|
|
7084
|
+
const e = new U().setFromExtrusionDirection(this._normal), s = new U().makeRotationZ(this._rotation), n = new U().multiplyMatrices(e, s), r = this._position.clone(), a = new x(this._scaleFactors.x, 0, 0).applyMatrix4(n).add(r), o = new x(0, this._scaleFactors.y, 0).applyMatrix4(n).add(r), l = new x(0, 0, this._scaleFactors.z).applyMatrix4(n).add(r);
|
|
7083
7085
|
r.applyMatrix4(t), a.applyMatrix4(t), o.applyMatrix4(t), l.applyMatrix4(t);
|
|
7084
7086
|
const c = new b(a).sub(r), d = new b(o).sub(r), u = new b(l).sub(r);
|
|
7085
7087
|
let g = new b().crossVectors(c, d);
|
|
7086
7088
|
g.lengthSq() === 0 ? g = this._normal.clone().transformDirection(t) : g.normalize();
|
|
7087
|
-
const m = new
|
|
7089
|
+
const m = new U().setFromExtrusionDirection(g).clone().invert(), y = c.clone().applyMatrix4(m);
|
|
7088
7090
|
return this._position.copy(r), this._normal.copy(g), this._rotation = Math.atan2(y.y, y.x), this._scaleFactors.set(c.length(), d.length(), u.length()), this._attribs.forEach((w) => w.transformBy(t)), this;
|
|
7089
7091
|
}
|
|
7090
7092
|
get properties() {
|
|
@@ -7258,7 +7260,7 @@ const Nn = class Nn extends mt {
|
|
|
7258
7260
|
const o = a.worldDraw(t);
|
|
7259
7261
|
o && n.push(o);
|
|
7260
7262
|
}
|
|
7261
|
-
}),
|
|
7263
|
+
}), Ps.instance.draw(
|
|
7262
7264
|
t,
|
|
7263
7265
|
e,
|
|
7264
7266
|
this.rgbColor,
|
|
@@ -7277,35 +7279,72 @@ const Nn = class Nn extends mt {
|
|
|
7277
7279
|
s = !0, t.writeStart("ATTRIB"), n.dxfOut(t);
|
|
7278
7280
|
return s && (t.writeStart("SEQEND"), t.writeHandle(5, this.database.generateHandle()), t.writeObjectId(330, this.objectId), t.writeSubclassMarker("AcDbEntity")), this;
|
|
7279
7281
|
}
|
|
7280
|
-
subEntityGetOsnapPoints(t, e, s, n, r) {
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7282
|
+
subEntityGetOsnapPoints(t, e, s, n, r, a, o = /* @__PURE__ */ new Set()) {
|
|
7283
|
+
if (r === this.objectId || o.has(this.objectId)) return !1;
|
|
7284
|
+
o.add(this.objectId);
|
|
7285
|
+
try {
|
|
7286
|
+
const l = this.blockTableRecord;
|
|
7287
|
+
if (l == null) return !1;
|
|
7288
|
+
const c = new U().multiplyMatrices(
|
|
7289
|
+
a,
|
|
7290
|
+
this.getFullInsertionTransform()
|
|
7291
|
+
);
|
|
7292
|
+
for (const d of l.newIterator()) {
|
|
7293
|
+
if (d.objectId === r) {
|
|
7294
|
+
const u = new x(e).applyMatrix4(
|
|
7295
|
+
c.clone().invert()
|
|
7296
|
+
), g = new x(s).applyMatrix4(
|
|
7297
|
+
c.clone().invert()
|
|
7298
|
+
), p = [];
|
|
7299
|
+
return d.subGetOsnapPoints(
|
|
7300
|
+
t,
|
|
7301
|
+
u,
|
|
7302
|
+
g,
|
|
7303
|
+
p,
|
|
7304
|
+
r,
|
|
7305
|
+
c
|
|
7306
|
+
), d instanceof xs ? p.forEach((m) => {
|
|
7307
|
+
n.push(m.clone());
|
|
7308
|
+
}) : p.forEach((m) => {
|
|
7309
|
+
n.push(
|
|
7310
|
+
new x(m).applyMatrix4(c)
|
|
7311
|
+
);
|
|
7312
|
+
}), !0;
|
|
7313
|
+
}
|
|
7314
|
+
if (d instanceof xs && d.subEntityGetOsnapPoints(
|
|
7289
7315
|
t,
|
|
7290
7316
|
e,
|
|
7291
7317
|
s,
|
|
7318
|
+
n,
|
|
7319
|
+
r,
|
|
7292
7320
|
c,
|
|
7293
|
-
|
|
7294
|
-
)
|
|
7295
|
-
|
|
7296
|
-
c.forEach((u) => {
|
|
7297
|
-
const g = u.clone().applyMatrix4(d);
|
|
7298
|
-
n.push(g);
|
|
7299
|
-
});
|
|
7321
|
+
o
|
|
7322
|
+
))
|
|
7323
|
+
return !0;
|
|
7300
7324
|
}
|
|
7325
|
+
return !1;
|
|
7326
|
+
} finally {
|
|
7327
|
+
o.delete(this.objectId);
|
|
7301
7328
|
}
|
|
7302
7329
|
}
|
|
7330
|
+
getInsertionPoint(t) {
|
|
7331
|
+
var n;
|
|
7332
|
+
const e = ((n = this.blockTableRecord) == null ? void 0 : n.origin) ?? x.ORIGIN, s = new U().multiplyMatrices(
|
|
7333
|
+
t,
|
|
7334
|
+
this.getFullInsertionTransform()
|
|
7335
|
+
);
|
|
7336
|
+
return new x(e).applyMatrix4(s);
|
|
7337
|
+
}
|
|
7338
|
+
getFullInsertionTransform() {
|
|
7339
|
+
const t = new U().setFromExtrusionDirection(this._normal);
|
|
7340
|
+
return new U().multiplyMatrices(t, this.blockTransform);
|
|
7341
|
+
}
|
|
7303
7342
|
dxfOutFields(t) {
|
|
7304
7343
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbBlockReference"), t.writePoint3d(10, this.position), t.writeString(2, this.blockName), t.writeDouble(41, this.scaleFactors.x), t.writeDouble(42, this.scaleFactors.y), t.writeDouble(43, this.scaleFactors.z), t.writeAngle(50, this.rotation), t.writeVector3d(210, this.normal), this;
|
|
7305
7344
|
}
|
|
7306
7345
|
};
|
|
7307
|
-
|
|
7308
|
-
let
|
|
7346
|
+
xs.typeName = "BlockReference";
|
|
7347
|
+
let Is = xs;
|
|
7309
7348
|
const On = class On extends at {
|
|
7310
7349
|
get dxfTypeName() {
|
|
7311
7350
|
return "CIRCLE";
|
|
@@ -7492,7 +7531,7 @@ const On = class On extends at {
|
|
|
7492
7531
|
}
|
|
7493
7532
|
};
|
|
7494
7533
|
On.typeName = "Circle";
|
|
7495
|
-
let
|
|
7534
|
+
let Ki = On;
|
|
7496
7535
|
const Cn = class Cn extends at {
|
|
7497
7536
|
get dxfTypeName() {
|
|
7498
7537
|
return "ELLIPSE";
|
|
@@ -7719,20 +7758,20 @@ const Cn = class Cn extends at {
|
|
|
7719
7758
|
}
|
|
7720
7759
|
};
|
|
7721
7760
|
Cn.typeName = "Ellipse";
|
|
7722
|
-
let
|
|
7761
|
+
let Zi = Cn;
|
|
7723
7762
|
const Bn = class Bn extends mt {
|
|
7724
7763
|
get dxfTypeName() {
|
|
7725
7764
|
return "3DFACE";
|
|
7726
7765
|
}
|
|
7727
7766
|
constructor() {
|
|
7728
|
-
super(), this._vertices = [new
|
|
7767
|
+
super(), this._vertices = [new x(), new x(), new x()], this._edgeInvisibilities = 0;
|
|
7729
7768
|
}
|
|
7730
7769
|
getVertexAt(t) {
|
|
7731
7770
|
return t < 0 ? this._vertices[0] : t > this._vertices.length ? this._vertices[this._vertices.length - 1] : this._vertices[t];
|
|
7732
7771
|
}
|
|
7733
7772
|
setVertexAt(t, e) {
|
|
7734
7773
|
if (t < 0 && this._vertices[0].copy(e), t >= 3)
|
|
7735
|
-
return this._vertices.length === 3 && this._vertices.push(new
|
|
7774
|
+
return this._vertices.length === 3 && this._vertices.push(new x()), this._vertices[3].copy(e);
|
|
7736
7775
|
this._vertices[t].copy(e);
|
|
7737
7776
|
}
|
|
7738
7777
|
setEdgeInvisibilities(t) {
|
|
@@ -7782,14 +7821,14 @@ const Bn = class Bn extends mt {
|
|
|
7782
7821
|
}
|
|
7783
7822
|
};
|
|
7784
7823
|
Bn.typeName = "Face";
|
|
7785
|
-
let
|
|
7786
|
-
var
|
|
7824
|
+
let Qi = Bn;
|
|
7825
|
+
var qs = /* @__PURE__ */ ((i) => (i[i.UserDefined = 0] = "UserDefined", i[i.Predefined = 1] = "Predefined", i[i.Custom = 2] = "Custom", i))(qs || {}), Vh = /* @__PURE__ */ ((i) => (i[i.Normal = 0] = "Normal", i[i.Outer = 1] = "Outer", i[i.Ignore = 2] = "Ignore", i))(Vh || {});
|
|
7787
7826
|
const Fn = class Fn extends mt {
|
|
7788
7827
|
get dxfTypeName() {
|
|
7789
7828
|
return "HATCH";
|
|
7790
7829
|
}
|
|
7791
7830
|
constructor() {
|
|
7792
|
-
super(), this._elevation = 0, this._geo = new
|
|
7831
|
+
super(), this._elevation = 0, this._geo = new fs(), this._isSolidFill = !1, this._definitionLines = [], this._patternName = "", this._patternType = 1, this._patternAngle = 0, this._patternScale = 1, this._hatchStyle = 0;
|
|
7793
7832
|
}
|
|
7794
7833
|
get isSolidFill() {
|
|
7795
7834
|
return this._isSolidFill || this._patternName.toUpperCase() === "SOLID";
|
|
@@ -7845,7 +7884,7 @@ const Fn = class Fn extends mt {
|
|
|
7845
7884
|
if (t.length === 1) return [this._geo];
|
|
7846
7885
|
const e = this._geo.buildHierarchy(), s = [], n = (r, a) => {
|
|
7847
7886
|
if (r.index >= 0 && a % 2 === 0) {
|
|
7848
|
-
const o = new
|
|
7887
|
+
const o = new fs();
|
|
7849
7888
|
o.add(t[r.index]), r.children.forEach((l) => {
|
|
7850
7889
|
l.index >= 0 && o.add(t[l.index]);
|
|
7851
7890
|
}), s.push(o);
|
|
@@ -7886,9 +7925,9 @@ const Fn = class Fn extends mt {
|
|
|
7886
7925
|
type: "enum",
|
|
7887
7926
|
editable: !0,
|
|
7888
7927
|
options: [
|
|
7889
|
-
{ label:
|
|
7890
|
-
{ label:
|
|
7891
|
-
{ label:
|
|
7928
|
+
{ label: qs[0], value: 0 },
|
|
7929
|
+
{ label: qs[1], value: 1 },
|
|
7930
|
+
{ label: qs[2], value: 2 }
|
|
7892
7931
|
],
|
|
7893
7932
|
accessor: {
|
|
7894
7933
|
get: () => this.patternType,
|
|
@@ -7975,7 +8014,7 @@ const Fn = class Fn extends mt {
|
|
|
7975
8014
|
return t.group(n);
|
|
7976
8015
|
}
|
|
7977
8016
|
transformBy(t) {
|
|
7978
|
-
const e = t.elements, s = new
|
|
8017
|
+
const e = t.elements, s = new _i(
|
|
7979
8018
|
e[0],
|
|
7980
8019
|
e[4],
|
|
7981
8020
|
e[12],
|
|
@@ -7986,10 +8025,10 @@ const Fn = class Fn extends mt {
|
|
|
7986
8025
|
0,
|
|
7987
8026
|
1
|
|
7988
8027
|
);
|
|
7989
|
-
this._geo.transform(s), this._elevation = new
|
|
8028
|
+
this._geo.transform(s), this._elevation = new x(0, 0, this._elevation).applyMatrix4(
|
|
7990
8029
|
t
|
|
7991
8030
|
).z;
|
|
7992
|
-
const n = new
|
|
8031
|
+
const n = new x(1, 0, 0).applyMatrix4(t), r = new x().applyMatrix4(t), a = new x(n).sub(r);
|
|
7993
8032
|
return a.length() > 0 && (this._patternAngle += Math.atan2(a.y, a.x), this._patternScale *= a.length()), this;
|
|
7994
8033
|
}
|
|
7995
8034
|
dxfOutFields(t) {
|
|
@@ -8008,7 +8047,7 @@ const Fn = class Fn extends mt {
|
|
|
8008
8047
|
t.writeInt16(97, 0);
|
|
8009
8048
|
return;
|
|
8010
8049
|
}
|
|
8011
|
-
if (s instanceof
|
|
8050
|
+
if (s instanceof ri) {
|
|
8012
8051
|
const a = r ? 1 : 0;
|
|
8013
8052
|
t.writeInt16(92, a), t.writeInt16(93, s.numberOfEdges);
|
|
8014
8053
|
for (const o of s.curves) {
|
|
@@ -8020,7 +8059,7 @@ const Fn = class Fn extends mt {
|
|
|
8020
8059
|
t.writeInt16(72, 2), t.writePoint2d(10, o.center), t.writeDouble(40, o.radius), t.writeAngle(50, o.startAngle), t.writeAngle(51, o.endAngle), t.writeInt16(73, o.clockwise ? 0 : 1);
|
|
8021
8060
|
continue;
|
|
8022
8061
|
}
|
|
8023
|
-
if (o instanceof
|
|
8062
|
+
if (o instanceof ni) {
|
|
8024
8063
|
t.writeInt16(72, 3), t.writePoint2d(10, o.center);
|
|
8025
8064
|
const l = new v(
|
|
8026
8065
|
o.majorAxisRadius * Math.cos(o.rotation),
|
|
@@ -8046,7 +8085,7 @@ const Fn = class Fn extends mt {
|
|
|
8046
8085
|
}
|
|
8047
8086
|
};
|
|
8048
8087
|
Fn.typeName = "Hatch";
|
|
8049
|
-
let
|
|
8088
|
+
let ai = Fn;
|
|
8050
8089
|
var jh = /* @__PURE__ */ ((i) => (i[i.MText = 0] = "MText", i[i.Fcf = 1] = "Fcf", i[i.BlockReference = 2] = "BlockReference", i[i.NoAnnotation = 3] = "NoAnnotation", i))(jh || {});
|
|
8051
8090
|
const Rn = class Rn extends at {
|
|
8052
8091
|
get dxfTypeName() {
|
|
@@ -8092,7 +8131,7 @@ const Rn = class Rn extends at {
|
|
|
8092
8131
|
this._annoType = t;
|
|
8093
8132
|
}
|
|
8094
8133
|
appendVertex(t) {
|
|
8095
|
-
this._vertices.push(new
|
|
8134
|
+
this._vertices.push(new x().copy(t)), this._updated = !0;
|
|
8096
8135
|
}
|
|
8097
8136
|
setVertexAt(t, e) {
|
|
8098
8137
|
throw (t < 0 || t >= this._vertices.length) && (this._vertices[t].copy(e), this._updated = !0), new Error("The vertex index is out of range!");
|
|
@@ -8132,7 +8171,7 @@ const Rn = class Rn extends at {
|
|
|
8132
8171
|
}
|
|
8133
8172
|
};
|
|
8134
8173
|
Rn.typeName = "Leader";
|
|
8135
|
-
let
|
|
8174
|
+
let Ji = Rn;
|
|
8136
8175
|
var V = /* @__PURE__ */ ((i) => (i[i.EndPoint = 1] = "EndPoint", i[i.MidPoint = 2] = "MidPoint", i[i.Center = 3] = "Center", i[i.Node = 4] = "Node", i[i.Quadrant = 5] = "Quadrant", i[i.Insertion = 7] = "Insertion", i[i.Perpendicular = 8] = "Perpendicular", i[i.Tangent = 9] = "Tangent", i[i.Nearest = 10] = "Nearest", i[i.Centroid = 11] = "Centroid", i))(V || {});
|
|
8137
8176
|
function uu(i) {
|
|
8138
8177
|
let t = 0;
|
|
@@ -8310,8 +8349,8 @@ const zn = class zn extends at {
|
|
|
8310
8349
|
}
|
|
8311
8350
|
subWorldDraw(t) {
|
|
8312
8351
|
const e = this.startPoint, s = this.endPoint, n = [
|
|
8313
|
-
new
|
|
8314
|
-
new
|
|
8352
|
+
new x(e.x, e.y, 0),
|
|
8353
|
+
new x(s.x, s.y, 0)
|
|
8315
8354
|
];
|
|
8316
8355
|
return t.lines(n);
|
|
8317
8356
|
}
|
|
@@ -8320,13 +8359,13 @@ const zn = class zn extends at {
|
|
|
8320
8359
|
}
|
|
8321
8360
|
};
|
|
8322
8361
|
zn.typeName = "Line";
|
|
8323
|
-
let
|
|
8362
|
+
let oi = zn;
|
|
8324
8363
|
const Vn = class Vn extends mt {
|
|
8325
8364
|
get dxfTypeName() {
|
|
8326
8365
|
return "MTEXT";
|
|
8327
8366
|
}
|
|
8328
8367
|
constructor() {
|
|
8329
|
-
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
|
|
8368
|
+
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 x(), this._attachmentPoint = dt.TopLeft, this._direction = new b(1, 0, 0), this._drawingDirection = he.LEFT_TO_RIGHT;
|
|
8330
8369
|
}
|
|
8331
8370
|
get contents() {
|
|
8332
8371
|
return this._contents;
|
|
@@ -8654,7 +8693,7 @@ const Vn = class Vn extends mt {
|
|
|
8654
8693
|
}
|
|
8655
8694
|
};
|
|
8656
8695
|
Vn.typeName = "MText";
|
|
8657
|
-
let
|
|
8696
|
+
let hi = Vn;
|
|
8658
8697
|
const jn = class jn extends at {
|
|
8659
8698
|
get dxfTypeName() {
|
|
8660
8699
|
return "SPLINE";
|
|
@@ -8724,8 +8763,8 @@ const jn = class jn extends at {
|
|
|
8724
8763
|
}
|
|
8725
8764
|
};
|
|
8726
8765
|
jn.typeName = "Spline";
|
|
8727
|
-
let
|
|
8728
|
-
const Wh = new b(), Wn = class Wn extends
|
|
8766
|
+
let li = jn;
|
|
8767
|
+
const Wh = new b(), Wn = class Wn extends Is {
|
|
8729
8768
|
get dxfTypeName() {
|
|
8730
8769
|
return "ACAD_TABLE";
|
|
8731
8770
|
}
|
|
@@ -8923,18 +8962,18 @@ const Wh = new b(), Wn = class Wn extends bs {
|
|
|
8923
8962
|
y,
|
|
8924
8963
|
w
|
|
8925
8964
|
), n[a++] = g + p * (this.numColumns + 1), n[a++] = g + p * (this.numColumns + 1) + y;
|
|
8926
|
-
const
|
|
8927
|
-
g + y == this.numColumns && (n[a++] = g + p * (this.numColumns + 1) + y, n[a++] =
|
|
8928
|
-
const I = -r[
|
|
8965
|
+
const f = r[n[a - 1] * 3] - s, P = g + (p + w) * (this.numColumns + 1) + y;
|
|
8966
|
+
g + y == this.numColumns && (n[a++] = g + p * (this.numColumns + 1) + y, n[a++] = P);
|
|
8967
|
+
const I = -r[P * 3 + 1] - e;
|
|
8929
8968
|
if (p + w == this.numRows && (n[a++] = g + (p + w) * (this.numColumns + 1) + w, n[a++] = g + (p + w) * (this.numColumns + 1)), n[a++] = g + (p + w) * (this.numColumns + 1), n[a++] = g + p * (this.numColumns + 1), m.text) {
|
|
8930
8969
|
const A = m.attachmentPoint || this.attachmentPoint || dt.MiddleCenter, M = this.getTableTextOffset(
|
|
8931
8970
|
A,
|
|
8932
|
-
|
|
8971
|
+
f,
|
|
8933
8972
|
I
|
|
8934
8973
|
), W = {
|
|
8935
8974
|
text: m.text,
|
|
8936
8975
|
height: m.textHeight,
|
|
8937
|
-
width:
|
|
8976
|
+
width: f,
|
|
8938
8977
|
position: Wh.set(s, -e, 0).clone().add(M),
|
|
8939
8978
|
rotation: this.rotation,
|
|
8940
8979
|
attachmentPoint: A
|
|
@@ -9071,17 +9110,17 @@ const Wh = new b(), Wn = class Wn extends bs {
|
|
|
9071
9110
|
}
|
|
9072
9111
|
};
|
|
9073
9112
|
Wn.typeName = "Table";
|
|
9074
|
-
let
|
|
9075
|
-
const Ir = new
|
|
9113
|
+
let tn = Wn;
|
|
9114
|
+
const Ir = new U(), Dn = class Dn extends at {
|
|
9076
9115
|
get dxfTypeName() {
|
|
9077
9116
|
return "TRACE";
|
|
9078
9117
|
}
|
|
9079
9118
|
constructor() {
|
|
9080
9119
|
super(), this._elevation = 0, this._thickness = 1, this._vertices = [
|
|
9081
|
-
new
|
|
9082
|
-
new
|
|
9083
|
-
new
|
|
9084
|
-
new
|
|
9120
|
+
new x(),
|
|
9121
|
+
new x(),
|
|
9122
|
+
new x(),
|
|
9123
|
+
new x()
|
|
9085
9124
|
];
|
|
9086
9125
|
}
|
|
9087
9126
|
get elevation() {
|
|
@@ -9124,7 +9163,7 @@ const Ir = new st(), Dn = class Dn extends at {
|
|
|
9124
9163
|
return this._vertices.forEach((e) => e.applyMatrix4(t)), this._elevation = this._vertices[0].z, this;
|
|
9125
9164
|
}
|
|
9126
9165
|
subWorldDraw(t) {
|
|
9127
|
-
const e = new Rt(this._vertices, !0), s = new
|
|
9166
|
+
const e = new Rt(this._vertices, !0), s = new fs();
|
|
9128
9167
|
s.add(e);
|
|
9129
9168
|
const n = t.subEntityTraits;
|
|
9130
9169
|
return n.fillType = {
|
|
@@ -9138,7 +9177,7 @@ const Ir = new st(), Dn = class Dn extends at {
|
|
|
9138
9177
|
}
|
|
9139
9178
|
};
|
|
9140
9179
|
Dn.typeName = "Trace";
|
|
9141
|
-
let
|
|
9180
|
+
let en = Dn;
|
|
9142
9181
|
const Gn = class Gn extends at {
|
|
9143
9182
|
get dxfTypeName() {
|
|
9144
9183
|
return "LWPOLYLINE";
|
|
@@ -9182,7 +9221,7 @@ const Gn = class Gn extends at {
|
|
|
9182
9221
|
}
|
|
9183
9222
|
getPoint3dAt(t) {
|
|
9184
9223
|
const e = this.getPoint2dAt(t);
|
|
9185
|
-
return new
|
|
9224
|
+
return new x(e.x, e.y, this._elevation);
|
|
9186
9225
|
}
|
|
9187
9226
|
get geometricExtents() {
|
|
9188
9227
|
const t = this._geo.box;
|
|
@@ -9211,7 +9250,7 @@ const Gn = class Gn extends at {
|
|
|
9211
9250
|
const e = t.determinant() < 0;
|
|
9212
9251
|
let s = this._elevation;
|
|
9213
9252
|
return this._geo.vertices.forEach((n) => {
|
|
9214
|
-
const r = new
|
|
9253
|
+
const r = new x(
|
|
9215
9254
|
n.x,
|
|
9216
9255
|
n.y,
|
|
9217
9256
|
this._elevation
|
|
@@ -9294,7 +9333,7 @@ const Gn = class Gn extends at {
|
|
|
9294
9333
|
if (s != null) {
|
|
9295
9334
|
const r = Dh(s, this.closed);
|
|
9296
9335
|
if (r.length >= 3 && Math.abs(Uh(r)) > St) {
|
|
9297
|
-
const a = new
|
|
9336
|
+
const a = new fs();
|
|
9298
9337
|
a.add(new Rt(r, !0));
|
|
9299
9338
|
const o = t.subEntityTraits;
|
|
9300
9339
|
return o.fillType = {
|
|
@@ -9306,7 +9345,7 @@ const Gn = class Gn extends at {
|
|
|
9306
9345
|
}
|
|
9307
9346
|
const n = [];
|
|
9308
9347
|
return e.forEach(
|
|
9309
|
-
(r) => n.push(new
|
|
9348
|
+
(r) => n.push(new x().set(r.x, r.y, this.elevation))
|
|
9310
9349
|
), t.lines(n);
|
|
9311
9350
|
}
|
|
9312
9351
|
dxfOutFields(t) {
|
|
@@ -9350,8 +9389,8 @@ const Gn = class Gn extends at {
|
|
|
9350
9389
|
}
|
|
9351
9390
|
};
|
|
9352
9391
|
Gn.typeName = "Polyline";
|
|
9353
|
-
let
|
|
9354
|
-
const St = 1e-6,
|
|
9392
|
+
let sn = Gn;
|
|
9393
|
+
const St = 1e-6, Pr = 4;
|
|
9355
9394
|
function Dh(i, t) {
|
|
9356
9395
|
if (i.length < 2) return [];
|
|
9357
9396
|
const e = Gh(i, t);
|
|
@@ -9385,21 +9424,21 @@ function Gh(i, t) {
|
|
|
9385
9424
|
}
|
|
9386
9425
|
function Hh(i, t, e) {
|
|
9387
9426
|
const s = i.length, n = i[t], r = i[(t - 1 + s) % s], a = i[(t + 1) % s];
|
|
9388
|
-
let o =
|
|
9427
|
+
let o = Er(n.x - r.x, n.y - r.y), l = Er(a.x - n.x, a.y - n.y);
|
|
9389
9428
|
if (e || (t === 0 && (o = l), t === s - 1 && (l = o)), o == null && l == null) return null;
|
|
9390
|
-
if (o == null) return
|
|
9391
|
-
if (l == null) return
|
|
9392
|
-
const c =
|
|
9429
|
+
if (o == null) return zs(l);
|
|
9430
|
+
if (l == null) return zs(o);
|
|
9431
|
+
const c = zs(o), d = zs(l), u = c.x + d.x, g = c.y + d.y, p = Math.hypot(u, g);
|
|
9393
9432
|
if (p <= St)
|
|
9394
9433
|
return d;
|
|
9395
|
-
const m = { x: u / p, y: g / p }, y = Math.abs(m.x * d.x + m.y * d.y), w = y <= St ?
|
|
9434
|
+
const m = { x: u / p, y: g / p }, y = Math.abs(m.x * d.x + m.y * d.y), w = y <= St ? Pr : Math.min(1 / y, Pr);
|
|
9396
9435
|
return { x: m.x * w, y: m.y * w };
|
|
9397
9436
|
}
|
|
9398
|
-
function
|
|
9437
|
+
function Er(i, t) {
|
|
9399
9438
|
const e = Math.hypot(i, t);
|
|
9400
9439
|
return e <= St ? null : { x: i / e, y: t / e };
|
|
9401
9440
|
}
|
|
9402
|
-
function
|
|
9441
|
+
function zs(i) {
|
|
9403
9442
|
return { x: -i.y, y: i.x };
|
|
9404
9443
|
}
|
|
9405
9444
|
function Uh(i) {
|
|
@@ -9419,7 +9458,7 @@ const Hn = class Hn extends mt {
|
|
|
9419
9458
|
return "POINT";
|
|
9420
9459
|
}
|
|
9421
9460
|
constructor() {
|
|
9422
|
-
super(), this._geo = new
|
|
9461
|
+
super(), this._geo = new x();
|
|
9423
9462
|
}
|
|
9424
9463
|
get position() {
|
|
9425
9464
|
return this._geo;
|
|
@@ -9493,14 +9532,14 @@ const Hn = class Hn extends mt {
|
|
|
9493
9532
|
}
|
|
9494
9533
|
};
|
|
9495
9534
|
Hn.typeName = "Point";
|
|
9496
|
-
let
|
|
9535
|
+
let nn = Hn;
|
|
9497
9536
|
var Yh = /* @__PURE__ */ ((i) => (i[i.Invalid = 0] = "Invalid", i[i.Rect = 1] = "Rect", i[i.Poly = 2] = "Poly", i))(Yh || {}), $h = /* @__PURE__ */ ((i) => (i[i.Show = 1] = "Show", i[i.ShowUnAligned = 2] = "ShowUnAligned", i[i.Clip = 4] = "Clip", i[i.Transparent = 8] = "Transparent", i))($h || {});
|
|
9498
9537
|
const Un = class Un extends mt {
|
|
9499
9538
|
get dxfTypeName() {
|
|
9500
9539
|
return "IMAGE";
|
|
9501
9540
|
}
|
|
9502
9541
|
constructor() {
|
|
9503
|
-
super(), this._brightness = 50, this._contrast = 50, this._fade = 0, this._width = 0, this._height = 0, this._position = new
|
|
9542
|
+
super(), this._brightness = 50, this._contrast = 50, this._fade = 0, this._width = 0, this._height = 0, this._position = new x(), this._scale = new Y(1, 1), this._rotation = 0, this._imageSize = new v(), this._clipBoundaryType = 1, this._clipBoundary = [], this._isClipped = !1, this._isShownClipped = !1, this._isImageShown = !0, this._isImageTransparent = !1, this._imageDefId = "";
|
|
9504
9543
|
}
|
|
9505
9544
|
get brightness() {
|
|
9506
9545
|
return this._brightness;
|
|
@@ -9654,7 +9693,7 @@ const Un = class Un extends mt {
|
|
|
9654
9693
|
const r = new v();
|
|
9655
9694
|
r.setX(this._position.x - n.min.x * e), r.setY(this._position.y - n.min.y * s), this._clipBoundary.forEach((a) => {
|
|
9656
9695
|
const o = a.x * e + r.x, l = a.y * s + r.y;
|
|
9657
|
-
t.push(new
|
|
9696
|
+
t.push(new x(o, l, this._position.z));
|
|
9658
9697
|
});
|
|
9659
9698
|
} else {
|
|
9660
9699
|
if (t.push(this._position), t.push(this._position.clone().setX(this._position.x + this._width)), t.push(
|
|
@@ -9666,7 +9705,7 @@ const Un = class Un extends mt {
|
|
|
9666
9705
|
), t.push(this._position.clone().setY(this._position.y + this._height)), this._rotation > 0) {
|
|
9667
9706
|
Sr.copy(t[1]);
|
|
9668
9707
|
for (let e = 1; e < 4; e++)
|
|
9669
|
-
|
|
9708
|
+
Vs.copy(t[e]), Vs.rotateAround(Sr, this._rotation), t[e].setX(Vs.x), t[e].setY(Vs.y);
|
|
9670
9709
|
}
|
|
9671
9710
|
t.push(t[0]);
|
|
9672
9711
|
}
|
|
@@ -9690,13 +9729,13 @@ const Un = class Un extends mt {
|
|
|
9690
9729
|
}
|
|
9691
9730
|
};
|
|
9692
9731
|
Un.typeName = "RasterImage";
|
|
9693
|
-
let
|
|
9694
|
-
const Sr = new v(),
|
|
9732
|
+
let ci = Un;
|
|
9733
|
+
const Sr = new v(), Vs = new v(), Xn = class Xn extends at {
|
|
9695
9734
|
get dxfTypeName() {
|
|
9696
9735
|
return "RAY";
|
|
9697
9736
|
}
|
|
9698
9737
|
constructor() {
|
|
9699
|
-
super(), this._basePoint = new
|
|
9738
|
+
super(), this._basePoint = new x(), this._unitDir = new b();
|
|
9700
9739
|
}
|
|
9701
9740
|
get basePoint() {
|
|
9702
9741
|
return this._basePoint;
|
|
@@ -9825,13 +9864,13 @@ const Sr = new v(), zs = new v(), Xn = class Xn extends at {
|
|
|
9825
9864
|
}
|
|
9826
9865
|
};
|
|
9827
9866
|
Xn.typeName = "Ray";
|
|
9828
|
-
let
|
|
9867
|
+
let rn = Xn;
|
|
9829
9868
|
const Yn = class Yn extends mt {
|
|
9830
9869
|
get dxfTypeName() {
|
|
9831
9870
|
return "VIEWPORT";
|
|
9832
9871
|
}
|
|
9833
9872
|
constructor() {
|
|
9834
|
-
super(), this._centerPoint = new
|
|
9873
|
+
super(), this._centerPoint = new x(), this._height = 0, this._width = 0, this._viewCenter = new x(), this._viewHeight = 0, this._number = -1;
|
|
9835
9874
|
}
|
|
9836
9875
|
get number() {
|
|
9837
9876
|
return this._number;
|
|
@@ -9892,12 +9931,12 @@ const Yn = class Yn extends mt {
|
|
|
9892
9931
|
const s = [];
|
|
9893
9932
|
return s.push(
|
|
9894
9933
|
e.lines([
|
|
9895
|
-
new
|
|
9934
|
+
new x(
|
|
9896
9935
|
t.centerPoint.x - t.width / 2,
|
|
9897
9936
|
t.centerPoint.y - t.height / 2,
|
|
9898
9937
|
0
|
|
9899
9938
|
),
|
|
9900
|
-
new
|
|
9939
|
+
new x(
|
|
9901
9940
|
t.centerPoint.x + t.width / 2,
|
|
9902
9941
|
t.centerPoint.y - t.height / 2,
|
|
9903
9942
|
0
|
|
@@ -9905,12 +9944,12 @@ const Yn = class Yn extends mt {
|
|
|
9905
9944
|
])
|
|
9906
9945
|
), s.push(
|
|
9907
9946
|
e.lines([
|
|
9908
|
-
new
|
|
9947
|
+
new x(
|
|
9909
9948
|
t.centerPoint.x + t.width / 2,
|
|
9910
9949
|
t.centerPoint.y - t.height / 2,
|
|
9911
9950
|
0
|
|
9912
9951
|
),
|
|
9913
|
-
new
|
|
9952
|
+
new x(
|
|
9914
9953
|
t.centerPoint.x + t.width / 2,
|
|
9915
9954
|
t.centerPoint.y + t.height / 2,
|
|
9916
9955
|
0
|
|
@@ -9918,12 +9957,12 @@ const Yn = class Yn extends mt {
|
|
|
9918
9957
|
])
|
|
9919
9958
|
), s.push(
|
|
9920
9959
|
e.lines([
|
|
9921
|
-
new
|
|
9960
|
+
new x(
|
|
9922
9961
|
t.centerPoint.x + t.width / 2,
|
|
9923
9962
|
t.centerPoint.y + t.height / 2,
|
|
9924
9963
|
0
|
|
9925
9964
|
),
|
|
9926
|
-
new
|
|
9965
|
+
new x(
|
|
9927
9966
|
t.centerPoint.x - t.width / 2,
|
|
9928
9967
|
t.centerPoint.y + t.height / 2,
|
|
9929
9968
|
0
|
|
@@ -9931,12 +9970,12 @@ const Yn = class Yn extends mt {
|
|
|
9931
9970
|
])
|
|
9932
9971
|
), s.push(
|
|
9933
9972
|
e.lines([
|
|
9934
|
-
new
|
|
9973
|
+
new x(
|
|
9935
9974
|
t.centerPoint.x - t.width / 2,
|
|
9936
9975
|
t.centerPoint.y + t.height / 2,
|
|
9937
9976
|
0
|
|
9938
9977
|
),
|
|
9939
|
-
new
|
|
9978
|
+
new x(
|
|
9940
9979
|
t.centerPoint.x - t.width / 2,
|
|
9941
9980
|
t.centerPoint.y - t.height / 2,
|
|
9942
9981
|
0
|
|
@@ -9949,13 +9988,13 @@ const Yn = class Yn extends mt {
|
|
|
9949
9988
|
}
|
|
9950
9989
|
};
|
|
9951
9990
|
Yn.typeName = "Viewport";
|
|
9952
|
-
let
|
|
9953
|
-
const $n = class $n extends
|
|
9991
|
+
let an = Yn;
|
|
9992
|
+
const $n = class $n extends ci {
|
|
9954
9993
|
get dxfTypeName() {
|
|
9955
9994
|
return "WIPEOUT";
|
|
9956
9995
|
}
|
|
9957
9996
|
subWorldDraw(t) {
|
|
9958
|
-
const e = this.boundaryPath(), s = new
|
|
9997
|
+
const e = this.boundaryPath(), s = new fs();
|
|
9959
9998
|
return s.add(new Rt(e)), t.area(s);
|
|
9960
9999
|
}
|
|
9961
10000
|
dxfOutFields(t) {
|
|
@@ -9963,13 +10002,13 @@ const $n = class $n extends li {
|
|
|
9963
10002
|
}
|
|
9964
10003
|
};
|
|
9965
10004
|
$n.typeName = "Wipeout";
|
|
9966
|
-
let
|
|
10005
|
+
let on = $n;
|
|
9967
10006
|
const qn = class qn extends at {
|
|
9968
10007
|
get dxfTypeName() {
|
|
9969
10008
|
return "XLINE";
|
|
9970
10009
|
}
|
|
9971
10010
|
constructor() {
|
|
9972
|
-
super(), this._basePoint = new
|
|
10011
|
+
super(), this._basePoint = new x(), this._unitDir = new b();
|
|
9973
10012
|
}
|
|
9974
10013
|
get basePoint() {
|
|
9975
10014
|
return this._basePoint;
|
|
@@ -10093,10 +10132,10 @@ const qn = class qn extends at {
|
|
|
10093
10132
|
}
|
|
10094
10133
|
};
|
|
10095
10134
|
qn.typeName = "Xline";
|
|
10096
|
-
let
|
|
10135
|
+
let hn = qn;
|
|
10097
10136
|
class qh {
|
|
10098
10137
|
constructor(t) {
|
|
10099
|
-
this.position = new
|
|
10138
|
+
this.position = new x(t.x, t.y, t.z || 0);
|
|
10100
10139
|
}
|
|
10101
10140
|
}
|
|
10102
10141
|
const Kn = class Kn extends at {
|
|
@@ -10138,13 +10177,13 @@ const Kn = class Kn extends at {
|
|
|
10138
10177
|
}
|
|
10139
10178
|
get geometricExtents() {
|
|
10140
10179
|
if (this._vertices.length === 0)
|
|
10141
|
-
return new C(new
|
|
10180
|
+
return new C(new x(0, 0, 0), new x(0, 0, 0));
|
|
10142
10181
|
let t = Number.MAX_VALUE, e = Number.MAX_VALUE, s = Number.MAX_VALUE, n = -Number.MAX_VALUE, r = -Number.MAX_VALUE, a = -Number.MAX_VALUE;
|
|
10143
10182
|
return this._vertices.forEach((o) => {
|
|
10144
10183
|
t = Math.min(t, o.position.x), e = Math.min(e, o.position.y), s = Math.min(s, o.position.z), n = Math.max(n, o.position.x), r = Math.max(r, o.position.y), a = Math.max(a, o.position.z);
|
|
10145
10184
|
}), new C(
|
|
10146
|
-
new
|
|
10147
|
-
new
|
|
10185
|
+
new x(t, e, s),
|
|
10186
|
+
new x(n, r, a)
|
|
10148
10187
|
);
|
|
10149
10188
|
}
|
|
10150
10189
|
subGetGripPoints() {
|
|
@@ -10297,10 +10336,10 @@ const Kn = class Kn extends at {
|
|
|
10297
10336
|
}
|
|
10298
10337
|
};
|
|
10299
10338
|
Kn.typeName = "PolygonMesh";
|
|
10300
|
-
let
|
|
10339
|
+
let ln = Kn;
|
|
10301
10340
|
class Kh {
|
|
10302
10341
|
constructor(t) {
|
|
10303
|
-
this.position = new
|
|
10342
|
+
this.position = new x(t.x, t.y, t.z || 0);
|
|
10304
10343
|
}
|
|
10305
10344
|
}
|
|
10306
10345
|
class Zh {
|
|
@@ -10338,13 +10377,13 @@ const Zn = class Zn extends at {
|
|
|
10338
10377
|
}
|
|
10339
10378
|
get geometricExtents() {
|
|
10340
10379
|
if (this._vertices.length === 0)
|
|
10341
|
-
return new C(new
|
|
10380
|
+
return new C(new x(0, 0, 0), new x(0, 0, 0));
|
|
10342
10381
|
let t = Number.MAX_VALUE, e = Number.MAX_VALUE, s = Number.MAX_VALUE, n = -Number.MAX_VALUE, r = -Number.MAX_VALUE, a = -Number.MAX_VALUE;
|
|
10343
10382
|
return this._vertices.forEach((o) => {
|
|
10344
10383
|
t = Math.min(t, o.position.x), e = Math.min(e, o.position.y), s = Math.min(s, o.position.z), n = Math.max(n, o.position.x), r = Math.max(r, o.position.y), a = Math.max(a, o.position.z);
|
|
10345
10384
|
}), new C(
|
|
10346
|
-
new
|
|
10347
|
-
new
|
|
10385
|
+
new x(t, e, s),
|
|
10386
|
+
new x(n, r, a)
|
|
10348
10387
|
);
|
|
10349
10388
|
}
|
|
10350
10389
|
subGetGripPoints() {
|
|
@@ -10474,14 +10513,14 @@ const Zn = class Zn extends at {
|
|
|
10474
10513
|
}
|
|
10475
10514
|
};
|
|
10476
10515
|
Zn.typeName = "PolyFaceMesh";
|
|
10477
|
-
let
|
|
10516
|
+
let cn = Zn;
|
|
10478
10517
|
var Qh = /* @__PURE__ */ ((i) => (i[i.AtLeast = 1] = "AtLeast", i[i.Exactly = 2] = "Exactly", i))(Qh || {});
|
|
10479
10518
|
const Qn = class Qn extends mt {
|
|
10480
10519
|
get dxfTypeName() {
|
|
10481
10520
|
return "DIMENSION";
|
|
10482
10521
|
}
|
|
10483
10522
|
constructor() {
|
|
10484
|
-
super(), this._dimBlockId = null, this._dimBlockPosition = new
|
|
10523
|
+
super(), this._dimBlockId = null, this._dimBlockPosition = new x(), this._dimensionStyleName = null, this._dimensionText = null, this._textLineSpacingFactor = 1, this._textLineSpacingStyle = 1, this._textPosition = new x(), this._textRotation = 0, this._normal = new b(0, 0, 1);
|
|
10485
10524
|
}
|
|
10486
10525
|
get dimBlockId() {
|
|
10487
10526
|
return this._dimBlockId;
|
|
@@ -10571,7 +10610,7 @@ const Qn = class Qn extends mt {
|
|
|
10571
10610
|
);
|
|
10572
10611
|
if (s) {
|
|
10573
10612
|
const n = this.computeDimBlockTransform();
|
|
10574
|
-
return
|
|
10613
|
+
return Ps.instance.draw(
|
|
10575
10614
|
t,
|
|
10576
10615
|
s,
|
|
10577
10616
|
this.rgbColor,
|
|
@@ -10628,8 +10667,8 @@ const Qn = class Qn extends mt {
|
|
|
10628
10667
|
getLineArrowStyle(t) {
|
|
10629
10668
|
}
|
|
10630
10669
|
findPointOnLine1(t, e, s) {
|
|
10631
|
-
const n = new
|
|
10632
|
-
return new
|
|
10670
|
+
const n = new x().subVectors(e, t).normalize();
|
|
10671
|
+
return new x(e).addScaledVector(n, s);
|
|
10633
10672
|
}
|
|
10634
10673
|
findPointOnLine2(t, e, s) {
|
|
10635
10674
|
const n = t.x + s * Math.cos(e), r = t.y + s * Math.sin(e);
|
|
@@ -10644,16 +10683,16 @@ const Qn = class Qn extends mt {
|
|
|
10644
10683
|
return e ? e.name.toUpperCase() : ga.Closed;
|
|
10645
10684
|
}
|
|
10646
10685
|
computeDimBlockTransform() {
|
|
10647
|
-
const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ??
|
|
10686
|
+
const t = this.dimBlockId ? this.database.tables.blockTable.getAt(this.dimBlockId) : void 0, e = (t == null ? void 0 : t.origin) ?? x.ORIGIN, s = new U().makeTranslation(
|
|
10648
10687
|
-e.x,
|
|
10649
10688
|
-e.y,
|
|
10650
10689
|
-e.z
|
|
10651
|
-
), n = new
|
|
10690
|
+
), n = new U().makeTranslation(
|
|
10652
10691
|
this._dimBlockPosition.x,
|
|
10653
10692
|
this._dimBlockPosition.y,
|
|
10654
10693
|
this._dimBlockPosition.z
|
|
10655
10694
|
);
|
|
10656
|
-
return new
|
|
10695
|
+
return new U().multiplyMatrices(n, s);
|
|
10657
10696
|
}
|
|
10658
10697
|
subTransformBy(t) {
|
|
10659
10698
|
}
|
|
@@ -10667,7 +10706,7 @@ Qn.typeName = "Dimension";
|
|
|
10667
10706
|
let ce = Qn;
|
|
10668
10707
|
const Jn = class Jn extends ce {
|
|
10669
10708
|
constructor(t, e, s, n, r = null, a = null) {
|
|
10670
|
-
super(), this._centerPoint = new
|
|
10709
|
+
super(), this._centerPoint = new x().copy(t), this._xLine1Point = new x().copy(e), this._xLine2Point = new x().copy(s), this._arcPoint = new x().copy(n), this.dimensionText = r, this.dimensionStyleName = a;
|
|
10671
10710
|
}
|
|
10672
10711
|
get arcPoint() {
|
|
10673
10712
|
return this._arcPoint;
|
|
@@ -10704,10 +10743,10 @@ const Jn = class Jn extends ce {
|
|
|
10704
10743
|
}
|
|
10705
10744
|
};
|
|
10706
10745
|
Jn.typeName = "3PointAngularDimension";
|
|
10707
|
-
let
|
|
10746
|
+
let dn = Jn;
|
|
10708
10747
|
const tr = class tr extends ce {
|
|
10709
10748
|
constructor(t, e, s, n = null, r = null) {
|
|
10710
|
-
super(), this._dimLinePoint = new
|
|
10749
|
+
super(), this._dimLinePoint = new x().copy(s), this._xLine1Point = new x().copy(t), this._xLine2Point = new x().copy(e), this._oblique = 0, this._rotation = 0, this.calculateRotation(), n ? this.dimensionText = n : this.dimensionText = this._xLine1Point.distanceTo(this._xLine2Point).toFixed(3), this.dimensionStyleName = r;
|
|
10711
10750
|
}
|
|
10712
10751
|
get dimLinePoint() {
|
|
10713
10752
|
return this._dimLinePoint;
|
|
@@ -10749,11 +10788,11 @@ const tr = class tr extends ce {
|
|
|
10749
10788
|
return !1;
|
|
10750
10789
|
}
|
|
10751
10790
|
createDimBlock(t) {
|
|
10752
|
-
const e = new
|
|
10791
|
+
const e = new Z();
|
|
10753
10792
|
e.name = t;
|
|
10754
10793
|
const s = this.createLines();
|
|
10755
10794
|
s.forEach(
|
|
10756
|
-
(o) => e.appendEntity(new
|
|
10795
|
+
(o) => e.appendEntity(new oi(o.startPoint, o.endPoint))
|
|
10757
10796
|
), this.createArrows(s[0]).forEach((o) => e.appendEntity(o));
|
|
10758
10797
|
const r = s[0].midPoint, a = this.createMText(r, this._rotation);
|
|
10759
10798
|
return a && e.appendEntity(a), e;
|
|
@@ -10765,7 +10804,7 @@ const tr = class tr extends ce {
|
|
|
10765
10804
|
z: 0
|
|
10766
10805
|
});
|
|
10767
10806
|
if (this.dimensionText) {
|
|
10768
|
-
const n = new
|
|
10807
|
+
const n = new hi();
|
|
10769
10808
|
return n.attachmentPoint = dt.MiddleLeft, n.layer = "0", n.color = new nt(S.ByBlock), n.location = t, n.contents = this.dimensionText ?? "", n.height = 10, n.direction = s(e), n.styleName = this.dimensionStyle.dimtxsty, n;
|
|
10770
10809
|
}
|
|
10771
10810
|
}
|
|
@@ -10776,7 +10815,7 @@ const tr = class tr extends ce {
|
|
|
10776
10815
|
), e.push(this.createArrow(t.endPoint, this.rotation, 10)), e;
|
|
10777
10816
|
}
|
|
10778
10817
|
createArrow(t, e, s) {
|
|
10779
|
-
const n = "_CAXARROW", r = new
|
|
10818
|
+
const n = "_CAXARROW", r = new Is(n);
|
|
10780
10819
|
return r.position = t, r.rotation = e, r.scaleFactors = { x: s, y: s, z: s }, r;
|
|
10781
10820
|
}
|
|
10782
10821
|
createLines() {
|
|
@@ -10806,10 +10845,10 @@ const tr = class tr extends ce {
|
|
|
10806
10845
|
}
|
|
10807
10846
|
};
|
|
10808
10847
|
tr.typeName = "AlignedDimension";
|
|
10809
|
-
let
|
|
10848
|
+
let un = tr;
|
|
10810
10849
|
const er = class er extends ce {
|
|
10811
10850
|
constructor(t, e, s, n, r = null, a = null) {
|
|
10812
|
-
super(), this._arcPoint = new
|
|
10851
|
+
super(), this._arcPoint = new x().copy(n), this._xLine1Point = new x().copy(e), this._xLine2Point = new x().copy(s), this._centerPoint = new x().copy(t), this.dimensionText = r, this.dimensionStyleName = a;
|
|
10813
10852
|
}
|
|
10814
10853
|
get arcPoint() {
|
|
10815
10854
|
return this._arcPoint;
|
|
@@ -10849,7 +10888,7 @@ er.typeName = "ArcDimension";
|
|
|
10849
10888
|
let Mr = er;
|
|
10850
10889
|
const sr = class sr extends ce {
|
|
10851
10890
|
constructor(t, e, s = 0, n = null, r = null) {
|
|
10852
|
-
super(), this._chordPoint = new
|
|
10891
|
+
super(), this._chordPoint = new x().copy(t), this._farChordPoint = new x().copy(e), this._extArcStartAngle = 0, this._extArcEndAngle = 0, this._leaderLength = s, this.dimensionText = n, this.dimensionStyleName = r;
|
|
10853
10892
|
}
|
|
10854
10893
|
get chordPoint() {
|
|
10855
10894
|
return this._chordPoint;
|
|
@@ -10921,10 +10960,10 @@ const sr = class sr extends ce {
|
|
|
10921
10960
|
}
|
|
10922
10961
|
};
|
|
10923
10962
|
sr.typeName = "DiametricDimension";
|
|
10924
|
-
let
|
|
10963
|
+
let pn = sr;
|
|
10925
10964
|
const ir = class ir extends ce {
|
|
10926
10965
|
constructor(t, e, s = null, n = null) {
|
|
10927
|
-
super(), this._definingPoint = new
|
|
10966
|
+
super(), this._definingPoint = new x().copy(t), this._leaderEndPoint = new x().copy(e), this.dimensionText = s, this.dimensionStyleName = n;
|
|
10928
10967
|
}
|
|
10929
10968
|
get definingPoint() {
|
|
10930
10969
|
return this._definingPoint;
|
|
@@ -10952,10 +10991,10 @@ const ir = class ir extends ce {
|
|
|
10952
10991
|
}
|
|
10953
10992
|
};
|
|
10954
10993
|
ir.typeName = "OrdinateDimension";
|
|
10955
|
-
let
|
|
10994
|
+
let gn = ir;
|
|
10956
10995
|
const nr = class nr extends ce {
|
|
10957
10996
|
constructor(t, e, s, n = null, r = null) {
|
|
10958
|
-
super(), this._center = new
|
|
10997
|
+
super(), this._center = new x().copy(t), this._chordPoint = new x().copy(e), this._leaderLength = s, this._extArcStartAngle = 0, this._extArcEndAngle = 0, this.dimensionText = n, this.dimensionStyleName = r;
|
|
10959
10998
|
}
|
|
10960
10999
|
get center() {
|
|
10961
11000
|
return this._center;
|
|
@@ -11003,7 +11042,7 @@ const nr = class nr extends ce {
|
|
|
11003
11042
|
}
|
|
11004
11043
|
};
|
|
11005
11044
|
nr.typeName = "RadialDimension";
|
|
11006
|
-
let
|
|
11045
|
+
let mn = nr;
|
|
11007
11046
|
var Jh = /* @__PURE__ */ ((i) => (i[i.kInches = 0] = "kInches", i[i.kMillimeters = 1] = "kMillimeters", i[i.kPixels = 2] = "kPixels", i))(Jh || {}), tl = /* @__PURE__ */ ((i) => (i[i.k0degrees = 0] = "k0degrees", i[i.k90degrees = 1] = "k90degrees", i[i.k180degrees = 2] = "k180degrees", i[i.k270degrees = 3] = "k270degrees", i))(tl || {}), el = /* @__PURE__ */ ((i) => (i[i.kDisplay = 0] = "kDisplay", i[i.kExtents = 1] = "kExtents", i[i.kLimits = 2] = "kLimits", i[i.kView = 3] = "kView", i[i.kWindow = 4] = "kWindow", i[i.kLayout = 5] = "kLayout", i))(el || {}), Ce = /* @__PURE__ */ ((i) => (i[i.kDraft = 0] = "kDraft", i[i.kPreview = 1] = "kPreview", i[i.kNormal = 2] = "kNormal", i[i.kPresentation = 3] = "kPresentation", i[i.kMaximum = 4] = "kMaximum", i[i.kCustom = 5] = "kCustom", i))(Ce || {}), ps = /* @__PURE__ */ ((i) => (i[i.kAsDisplayed = 0] = "kAsDisplayed", i[i.kWireframe = 1] = "kWireframe", i[i.kHidden = 2] = "kHidden", i[i.kRendered = 3] = "kRendered", i[i.kVisualStyle = 4] = "kVisualStyle", i[i.kRenderPreset = 5] = "kRenderPreset", i))(ps || {}), sl = /* @__PURE__ */ ((i) => (i[i.kScaleToFit = 0] = "kScaleToFit", i[i.k1_128in_1ft = 1] = "k1_128in_1ft", i[i.k1_64in_1ft = 2] = "k1_64in_1ft", i[i.k1_32in_1ft = 3] = "k1_32in_1ft", i[i.k1_16in_1ft = 4] = "k1_16in_1ft", i[i.k3_32in_1ft = 5] = "k3_32in_1ft", i[i.k1_8in_1ft = 6] = "k1_8in_1ft", i[i.k3_16in_1ft = 7] = "k3_16in_1ft", i[i.k1_4in_1ft = 8] = "k1_4in_1ft", i[i.k3_8in_1ft = 9] = "k3_8in_1ft", i[i.k1_2in_1ft = 10] = "k1_2in_1ft", i[i.k3_4in_1ft = 11] = "k3_4in_1ft", i[i.k1in_1ft = 12] = "k1in_1ft", i[i.k3in_1ft = 13] = "k3in_1ft", i[i.k6in_1ft = 14] = "k6in_1ft", i[i.k1ft_1ft = 15] = "k1ft_1ft", i[i.k1_1 = 16] = "k1_1", i[i.k1_2 = 17] = "k1_2", i[i.k1_4 = 18] = "k1_4", i[i.k1_5 = 19] = "k1_5", i[i.k1_8 = 20] = "k1_8", i[i.k1_10 = 21] = "k1_10", i[i.k1_16 = 22] = "k1_16", i[i.k1_20 = 23] = "k1_20", i[i.k1_30 = 24] = "k1_30", i[i.k1_40 = 25] = "k1_40", i[i.k1_50 = 26] = "k1_50", i[i.k1_100 = 27] = "k1_100", i[i.k2_1 = 28] = "k2_1", i[i.k4_1 = 29] = "k4_1", i[i.k8_1 = 30] = "k8_1", i[i.k10_1 = 31] = "k10_1", i[i.k100_1 = 32] = "k100_1", i[i.k1000_1 = 33] = "k1000_1", i[i.k1and1_2in_1ft = 34] = "k1and1_2in_1ft", i))(sl || {});
|
|
11008
11047
|
const il = {
|
|
11009
11048
|
0: 0,
|
|
@@ -11301,7 +11340,7 @@ class nl extends ue {
|
|
|
11301
11340
|
return this.plotViewportBorders && (e |= 1), this.showPlotStyles && (e |= 2), this.plotCentered && (e |= 4), this.plotHidden && (e |= 8), this.useStandardScale && (e |= 16), this.plotPlotStyles && (e |= 32), this.scaleLineweights && (e |= 64), this.printLineweights && (e |= 128), this.drawViewportsFirst && (e |= 512), this.modelType && (e |= 1024), t.writeInt16(70, e), t.writeInt16(72, this.plotPaperUnits), t.writeInt16(73, this.plotRotation), t.writeInt16(74, this.plotType), t.writeString(7, this.currentStyleSheet), t.writeInt16(75, this.stdScaleType), t.writeInt16(76, this.shadePlot), t.writeInt16(77, this.shadePlotResLevel), t.writeInt16(78, this.shadePlotCustomDPI), t.writeDouble(147, this.stdScale), t.writeObjectId(333, this.shadePlotId), this;
|
|
11302
11341
|
}
|
|
11303
11342
|
}
|
|
11304
|
-
class
|
|
11343
|
+
class fi extends nl {
|
|
11305
11344
|
constructor() {
|
|
11306
11345
|
super(), this._tabOrder = -1, this._tabSelected = !1, this._blockTableRecordId = "", this._layoutName = "", this._limits = new gt(), this._extents = new C(), this._viewportArray = [];
|
|
11307
11346
|
}
|
|
@@ -11354,7 +11393,7 @@ class xi extends nl {
|
|
|
11354
11393
|
), t.writePoint2d(10, this.limits.min), t.writePoint2d(11, this.limits.max), t.writePoint3d(14, this.extents.min), t.writePoint3d(15, this.extents.max), this;
|
|
11355
11394
|
}
|
|
11356
11395
|
}
|
|
11357
|
-
class
|
|
11396
|
+
class bi {
|
|
11358
11397
|
constructor(t) {
|
|
11359
11398
|
this.i = 0, this._records = t, this._keys = Array.from(t.keys());
|
|
11360
11399
|
}
|
|
@@ -11375,7 +11414,7 @@ class fi {
|
|
|
11375
11414
|
return { value: null, done: !0 };
|
|
11376
11415
|
}
|
|
11377
11416
|
}
|
|
11378
|
-
class
|
|
11417
|
+
class Ks extends ue {
|
|
11379
11418
|
constructor(t) {
|
|
11380
11419
|
super(), this.database = t, this.objectId = t.generateHandle(), this._recordsByName = /* @__PURE__ */ new Map(), this._recordsById = /* @__PURE__ */ new Map();
|
|
11381
11420
|
}
|
|
@@ -11429,7 +11468,7 @@ class qs extends ue {
|
|
|
11429
11468
|
return this._recordsById.get(t);
|
|
11430
11469
|
}
|
|
11431
11470
|
newIterator() {
|
|
11432
|
-
return new
|
|
11471
|
+
return new bi(this._recordsByName);
|
|
11433
11472
|
}
|
|
11434
11473
|
entries() {
|
|
11435
11474
|
return this._recordsByName.entries();
|
|
@@ -11441,7 +11480,7 @@ class qs extends ue {
|
|
|
11441
11480
|
return this;
|
|
11442
11481
|
}
|
|
11443
11482
|
}
|
|
11444
|
-
class rl extends
|
|
11483
|
+
class rl extends Ks {
|
|
11445
11484
|
getBtrIdAt(t) {
|
|
11446
11485
|
for (const [e, s] of this._recordsByName)
|
|
11447
11486
|
if (s.blockTableRecordId == t) return s;
|
|
@@ -11455,7 +11494,7 @@ class rl extends qs {
|
|
|
11455
11494
|
}
|
|
11456
11495
|
class Ve extends ue {
|
|
11457
11496
|
constructor(t, e) {
|
|
11458
|
-
t = t || {},
|
|
11497
|
+
t = t || {}, yi(t, { name: "" }), super(t, e);
|
|
11459
11498
|
}
|
|
11460
11499
|
get name() {
|
|
11461
11500
|
return this.getAttr("name");
|
|
@@ -11476,7 +11515,7 @@ const le = class le extends Ve {
|
|
|
11476
11515
|
return t.toLowerCase().startsWith(le.PAPER_SPACE_NAME_PREFIX.toLowerCase());
|
|
11477
11516
|
}
|
|
11478
11517
|
constructor() {
|
|
11479
|
-
super(), this._origin = new
|
|
11518
|
+
super(), this._origin = new x(), this._layoutId = "", this._entities = /* @__PURE__ */ new Map(), this._blockInsertUnits = 0, this._explodability = 1, this._blockScaling = 1, this._bmpPreview = void 0;
|
|
11480
11519
|
}
|
|
11481
11520
|
get isModelSapce() {
|
|
11482
11521
|
return le.isModelSapceName(this.name);
|
|
@@ -11545,7 +11584,7 @@ const le = class le extends Ve {
|
|
|
11545
11584
|
}), s.length > 0;
|
|
11546
11585
|
}
|
|
11547
11586
|
newIterator() {
|
|
11548
|
-
return new
|
|
11587
|
+
return new bi(this._entities);
|
|
11549
11588
|
}
|
|
11550
11589
|
getIdAt(t) {
|
|
11551
11590
|
return this._entities.get(t);
|
|
@@ -11564,14 +11603,14 @@ const le = class le extends Ve {
|
|
|
11564
11603
|
}
|
|
11565
11604
|
};
|
|
11566
11605
|
le.MODEL_SPACE_NAME = "*Model_Space", le.PAPER_SPACE_NAME_PREFIX = "*Paper_Space";
|
|
11567
|
-
let
|
|
11606
|
+
let Z = le;
|
|
11568
11607
|
class ol {
|
|
11569
11608
|
constructor() {
|
|
11570
11609
|
this.events = {
|
|
11571
|
-
layoutCreated: new
|
|
11572
|
-
layoutRemoved: new
|
|
11573
|
-
layoutRenamed: new
|
|
11574
|
-
layoutSwitched: new
|
|
11610
|
+
layoutCreated: new K(),
|
|
11611
|
+
layoutRemoved: new K(),
|
|
11612
|
+
layoutRenamed: new K(),
|
|
11613
|
+
layoutSwitched: new K()
|
|
11575
11614
|
};
|
|
11576
11615
|
}
|
|
11577
11616
|
countLayouts(t) {
|
|
@@ -11615,9 +11654,9 @@ class ol {
|
|
|
11615
11654
|
})), r;
|
|
11616
11655
|
}
|
|
11617
11656
|
createLayout(t, e) {
|
|
11618
|
-
const s = this.getWorkingDatabase(e), n = new
|
|
11657
|
+
const s = this.getWorkingDatabase(e), n = new fi();
|
|
11619
11658
|
n.layoutName = t, n.tabOrder = s.objects.layout.maxTabOrder;
|
|
11620
|
-
const r = new
|
|
11659
|
+
const r = new Z();
|
|
11621
11660
|
return r.name = `*Paper_Space${n.tabOrder}`, s.tables.blockTable.add(r), s.objects.layout.setAt(t, n), this.events.layoutCreated.dispatch({
|
|
11622
11661
|
layout: n
|
|
11623
11662
|
}), { layout: n, btr: r };
|
|
@@ -11682,7 +11721,7 @@ class cl {
|
|
|
11682
11721
|
createDefaultLayer() {
|
|
11683
11722
|
const t = new nt();
|
|
11684
11723
|
return t.colorIndex = 7, this.db.tables.layerTable.add(
|
|
11685
|
-
new
|
|
11724
|
+
new wn({
|
|
11686
11725
|
name: "0",
|
|
11687
11726
|
standardFlags: 0,
|
|
11688
11727
|
linetype: "Continuous",
|
|
@@ -11719,7 +11758,7 @@ class cl {
|
|
|
11719
11758
|
}
|
|
11720
11759
|
createDefaultTextStyle() {
|
|
11721
11760
|
this.db.tables.textStyleTable.add(
|
|
11722
|
-
new
|
|
11761
|
+
new xn({
|
|
11723
11762
|
name: it,
|
|
11724
11763
|
standardFlag: 0,
|
|
11725
11764
|
fixedTextHeight: 0,
|
|
@@ -11742,16 +11781,16 @@ class cl {
|
|
|
11742
11781
|
);
|
|
11743
11782
|
}
|
|
11744
11783
|
createDefaultLayout() {
|
|
11745
|
-
const t = new
|
|
11784
|
+
const t = new fi();
|
|
11746
11785
|
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;
|
|
11747
11786
|
}
|
|
11748
11787
|
createArrowBlock() {
|
|
11749
11788
|
if (!this.db.tables.blockTable.getAt("_CAXARROW")) {
|
|
11750
|
-
const e = new
|
|
11789
|
+
const e = new ai();
|
|
11751
11790
|
e.patternName = "SOLID";
|
|
11752
|
-
const s = new
|
|
11791
|
+
const s = new ri();
|
|
11753
11792
|
s.add(new ie({ x: 0, y: 0 }, { x: -1, y: 0.125 })), s.add(new ie({ x: -1, y: 0.125 }, { x: -1, y: -0.125 })), s.add(new ie({ x: -1, y: -0.125 }, { x: 0, y: 0 })), e.add(s);
|
|
11754
|
-
const n = new
|
|
11793
|
+
const n = new Z();
|
|
11755
11794
|
n.name = "_CAXARROW", n.appendEntity(e), this.db.tables.blockTable.add(n);
|
|
11756
11795
|
}
|
|
11757
11796
|
}
|
|
@@ -11807,7 +11846,7 @@ class pe extends ue {
|
|
|
11807
11846
|
return this._recordsById.get(t);
|
|
11808
11847
|
}
|
|
11809
11848
|
newIterator() {
|
|
11810
|
-
return new
|
|
11849
|
+
return new bi(this._recordsByName);
|
|
11811
11850
|
}
|
|
11812
11851
|
normalizeName(t) {
|
|
11813
11852
|
return t;
|
|
@@ -11821,8 +11860,8 @@ class ul extends pe {
|
|
|
11821
11860
|
super(t);
|
|
11822
11861
|
}
|
|
11823
11862
|
get modelSpace() {
|
|
11824
|
-
let t = this.getAt(
|
|
11825
|
-
return t || (t = new
|
|
11863
|
+
let t = this.getAt(Z.MODEL_SPACE_NAME);
|
|
11864
|
+
return t || (t = new Z(), t.name = Z.MODEL_SPACE_NAME, this.add(t)), t;
|
|
11826
11865
|
}
|
|
11827
11866
|
getEntityById(t) {
|
|
11828
11867
|
for (const e of this.database.tables.blockTable.newIterator()) {
|
|
@@ -11841,10 +11880,10 @@ class ul extends pe {
|
|
|
11841
11880
|
}
|
|
11842
11881
|
normalizeName(t) {
|
|
11843
11882
|
let e = t;
|
|
11844
|
-
if (
|
|
11845
|
-
e =
|
|
11846
|
-
else if (
|
|
11847
|
-
const s =
|
|
11883
|
+
if (Z.isModelSapceName(t))
|
|
11884
|
+
e = Z.MODEL_SPACE_NAME;
|
|
11885
|
+
else if (Z.isPaperSapceName(t)) {
|
|
11886
|
+
const s = Z.PAPER_SPACE_NAME_PREFIX, n = t.substring(s.length);
|
|
11848
11887
|
e = s + n;
|
|
11849
11888
|
}
|
|
11850
11889
|
return e;
|
|
@@ -11856,9 +11895,9 @@ class pl extends pe {
|
|
|
11856
11895
|
}
|
|
11857
11896
|
}
|
|
11858
11897
|
var gl = /* @__PURE__ */ ((i) => (i[i.Center = 0] = "Center", i[i.Left = 1] = "Left", i[i.Right = 2] = "Right", i[i.OverFirst = 3] = "OverFirst", i[i.OverSecond = 4] = "OverSecond", i))(gl || {}), ml = /* @__PURE__ */ ((i) => (i[i.Center = 0] = "Center", i[i.Above = 1] = "Above", i[i.Outside = 2] = "Outside", i[i.JIS = 3] = "JIS", i[i.Below = 4] = "Below", i))(ml || {}), yl = /* @__PURE__ */ ((i) => (i[i.Feet = 0] = "Feet", i[i.None = 1] = "None", i[i.Inch = 2] = "Inch", i[i.FeetAndInch = 3] = "FeetAndInch", i[i.Leading = 4] = "Leading", i[i.Trailing = 8] = "Trailing", i[i.LeadingAndTrailing = 12] = "LeadingAndTrailing", i))(yl || {}), _l = /* @__PURE__ */ ((i) => (i[i.None = 0] = "None", i[i.Leading = 1] = "Leading", i[i.Trailing = 2] = "Trailing", i[i.LeadingAndTrailing = 3] = "LeadingAndTrailing", i))(_l || {}), wl = /* @__PURE__ */ ((i) => (i[i.Bottom = 0] = "Bottom", i[i.Middle = 1] = "Middle", i[i.Top = 2] = "Top", i))(wl || {});
|
|
11859
|
-
const
|
|
11898
|
+
const gi = class gi extends Ve {
|
|
11860
11899
|
constructor(t, e) {
|
|
11861
|
-
t = t || {},
|
|
11900
|
+
t = t || {}, yi(t, gi.DEFAULT_DIM_VALUES), super(t, e);
|
|
11862
11901
|
}
|
|
11863
11902
|
get dimpost() {
|
|
11864
11903
|
return this.getAttr("dimpost");
|
|
@@ -12262,7 +12301,7 @@ const pi = class pi extends Ve {
|
|
|
12262
12301
|
return t.writeSubclassMarker("AcDbDimStyleTableRecord"), t.writeString(2, this.name), t.writeInt16(70, 0), t.writeString(3, this.dimpost), t.writeString(4, this.dimapost), t.writeDouble(40, this.dimscale), t.writeDouble(41, this.dimasz), t.writeDouble(42, this.dimexo), t.writeDouble(43, this.dimdli), t.writeDouble(44, this.dimexe), t.writeDouble(140, this.dimtxt), t.writeDouble(147, this.dimgap), t.writeInt16(170, this.dimalt), t.writeInt16(171, this.dimtol), t.writeInt16(172, this.dimlim), t.writeInt16(173, this.dimtih), t.writeInt16(174, this.dimtoh), t.writeObjectId(340, e == null ? void 0 : e.objectId), t.writeObjectId(341, s == null ? void 0 : s.objectId), t.writeObjectId(342, n == null ? void 0 : n.objectId), t.writeObjectId(343, r == null ? void 0 : r.objectId), t.writeObjectId(344, a == null ? void 0 : a.objectId), t.writeInt16(371, this.dimlwd), t.writeInt16(372, this.dimlwe), this;
|
|
12263
12302
|
}
|
|
12264
12303
|
};
|
|
12265
|
-
|
|
12304
|
+
gi.DEFAULT_DIM_VALUES = {
|
|
12266
12305
|
name: "",
|
|
12267
12306
|
dimpost: "",
|
|
12268
12307
|
dimapost: "",
|
|
@@ -12331,7 +12370,7 @@ pi.DEFAULT_DIM_VALUES = {
|
|
|
12331
12370
|
dimlwd: -2,
|
|
12332
12371
|
dimlwe: -2
|
|
12333
12372
|
};
|
|
12334
|
-
let Ue =
|
|
12373
|
+
let Ue = gi;
|
|
12335
12374
|
class xl extends pe {
|
|
12336
12375
|
constructor(t) {
|
|
12337
12376
|
super(t);
|
|
@@ -12343,9 +12382,9 @@ class xl extends pe {
|
|
|
12343
12382
|
});
|
|
12344
12383
|
}
|
|
12345
12384
|
}
|
|
12346
|
-
class
|
|
12385
|
+
class wn extends Ve {
|
|
12347
12386
|
constructor(t, e) {
|
|
12348
|
-
t = t || {},
|
|
12387
|
+
t = t || {}, yi(t, {
|
|
12349
12388
|
color: new nt(),
|
|
12350
12389
|
description: "",
|
|
12351
12390
|
standardFlags: 0,
|
|
@@ -12353,7 +12392,7 @@ class _n extends Ve {
|
|
|
12353
12392
|
isInUse: !0,
|
|
12354
12393
|
isOff: !1,
|
|
12355
12394
|
isPlottable: !0,
|
|
12356
|
-
transparency: new
|
|
12395
|
+
transparency: new yn(),
|
|
12357
12396
|
linetype: "",
|
|
12358
12397
|
lineWeight: 1,
|
|
12359
12398
|
materialId: -1
|
|
@@ -12500,21 +12539,21 @@ class Fe extends Ve {
|
|
|
12500
12539
|
dots: [],
|
|
12501
12540
|
y: l
|
|
12502
12541
|
});
|
|
12503
|
-
const p = [], m = [], y = u / (this.patternLength * o), w = 0.5,
|
|
12504
|
-
let
|
|
12505
|
-
for (;
|
|
12542
|
+
const p = [], m = [], y = u / (this.patternLength * o), w = 0.5, f = Math.max(r * 2, 2);
|
|
12543
|
+
let P = c;
|
|
12544
|
+
for (; P < d; )
|
|
12506
12545
|
for (const I of g) {
|
|
12507
|
-
if (
|
|
12546
|
+
if (P >= d) break;
|
|
12508
12547
|
const A = I.elementLength;
|
|
12509
12548
|
if (A === 0) {
|
|
12510
|
-
m.push(
|
|
12549
|
+
m.push(P), P = Math.min(P + f, d);
|
|
12511
12550
|
continue;
|
|
12512
12551
|
}
|
|
12513
12552
|
const M = Math.max(
|
|
12514
12553
|
Math.abs(A) * y,
|
|
12515
12554
|
w
|
|
12516
|
-
), W = Math.min(
|
|
12517
|
-
A > 0 && W >
|
|
12555
|
+
), W = Math.min(P + M, d);
|
|
12556
|
+
A > 0 && W > P && p.push([P, W]), P = W;
|
|
12518
12557
|
}
|
|
12519
12558
|
return this.buildSvgString({
|
|
12520
12559
|
width: e,
|
|
@@ -12570,7 +12609,7 @@ class bl extends pe {
|
|
|
12570
12609
|
return Array.from(t);
|
|
12571
12610
|
}
|
|
12572
12611
|
}
|
|
12573
|
-
class
|
|
12612
|
+
class xn extends Ve {
|
|
12574
12613
|
constructor(t) {
|
|
12575
12614
|
super(), this.name = t.name, this._textStyle = t, this._textStyle.font = this.getFileNameWithoutExtension(
|
|
12576
12615
|
this._textStyle.font || this._textStyle.extendedFont || this.name
|
|
@@ -12641,15 +12680,15 @@ class Il extends pe {
|
|
|
12641
12680
|
super(t);
|
|
12642
12681
|
}
|
|
12643
12682
|
}
|
|
12644
|
-
class
|
|
12683
|
+
class Pl extends pe {
|
|
12645
12684
|
constructor(t) {
|
|
12646
12685
|
super(t);
|
|
12647
12686
|
}
|
|
12648
12687
|
}
|
|
12649
|
-
const
|
|
12688
|
+
const El = () => ({
|
|
12650
12689
|
center: new v(),
|
|
12651
|
-
viewDirectionFromTarget: new
|
|
12652
|
-
viewTarget: new
|
|
12690
|
+
viewDirectionFromTarget: new x(0, 0, 1),
|
|
12691
|
+
viewTarget: new x(0, 0, 0),
|
|
12653
12692
|
lensLength: 500,
|
|
12654
12693
|
frontClippingPlane: 0,
|
|
12655
12694
|
backClippingPlane: 0,
|
|
@@ -12660,9 +12699,9 @@ const Pl = () => ({
|
|
|
12660
12699
|
renderMode: ma.OPTIMIZED_2D,
|
|
12661
12700
|
viewMode: 0,
|
|
12662
12701
|
ucsIconSetting: 0,
|
|
12663
|
-
ucsOrigin: new
|
|
12664
|
-
ucsXAxis: new
|
|
12665
|
-
ucsYAxis: new
|
|
12702
|
+
ucsOrigin: new x(0, 0, 0),
|
|
12703
|
+
ucsXAxis: new x(1, 0, 0),
|
|
12704
|
+
ucsYAxis: new x(0, 1, 0),
|
|
12666
12705
|
orthographicType: ya.TOP,
|
|
12667
12706
|
shadePlotSetting: 0,
|
|
12668
12707
|
shadePlotObjectId: void 0,
|
|
@@ -12675,7 +12714,7 @@ const Pl = () => ({
|
|
|
12675
12714
|
});
|
|
12676
12715
|
class fa extends Ve {
|
|
12677
12716
|
constructor() {
|
|
12678
|
-
super(), this._gsView =
|
|
12717
|
+
super(), this._gsView = El(), this._centerPoint = this._gsView.center;
|
|
12679
12718
|
}
|
|
12680
12719
|
get gsView() {
|
|
12681
12720
|
return this._gsView;
|
|
@@ -12937,10 +12976,10 @@ const R = {
|
|
|
12937
12976
|
WHITEBKCOLOR: "WHITEBKCOLOR"
|
|
12938
12977
|
}, bu = Object.freeze(
|
|
12939
12978
|
Object.values(R)
|
|
12940
|
-
),
|
|
12979
|
+
), mi = class mi {
|
|
12941
12980
|
constructor() {
|
|
12942
12981
|
this.registry = /* @__PURE__ */ new Map(), this.cache = /* @__PURE__ */ new Map(), this.events = {
|
|
12943
|
-
sysVarChanged: new
|
|
12982
|
+
sysVarChanged: new K()
|
|
12944
12983
|
}, this.registerVar({
|
|
12945
12984
|
name: R.CECOLOR,
|
|
12946
12985
|
type: "color",
|
|
@@ -13022,7 +13061,7 @@ const R = {
|
|
|
13022
13061
|
});
|
|
13023
13062
|
}
|
|
13024
13063
|
static instance() {
|
|
13025
|
-
return this._instance || (this._instance = new
|
|
13064
|
+
return this._instance || (this._instance = new mi()), this._instance;
|
|
13026
13065
|
}
|
|
13027
13066
|
registerVar(t) {
|
|
13028
13067
|
const e = this.normalizeName(t.name);
|
|
@@ -13098,20 +13137,20 @@ const R = {
|
|
|
13098
13137
|
return t.toLowerCase();
|
|
13099
13138
|
}
|
|
13100
13139
|
};
|
|
13101
|
-
|
|
13102
|
-
let
|
|
13140
|
+
mi._instance = null;
|
|
13141
|
+
let di = mi;
|
|
13103
13142
|
class Iu extends ue {
|
|
13104
13143
|
constructor() {
|
|
13105
13144
|
super({ objectId: "0" }), this.events = {
|
|
13106
|
-
dictObjetSet: new
|
|
13107
|
-
dictObjectErased: new
|
|
13108
|
-
entityAppended: new
|
|
13109
|
-
entityModified: new
|
|
13110
|
-
entityErased: new
|
|
13111
|
-
layerAppended: new
|
|
13112
|
-
layerModified: new
|
|
13113
|
-
layerErased: new
|
|
13114
|
-
openProgress: new
|
|
13145
|
+
dictObjetSet: new K(),
|
|
13146
|
+
dictObjectErased: new K(),
|
|
13147
|
+
entityAppended: new K(),
|
|
13148
|
+
entityModified: new K(),
|
|
13149
|
+
entityErased: new K(),
|
|
13150
|
+
layerAppended: new K(),
|
|
13151
|
+
layerModified: new K(),
|
|
13152
|
+
layerErased: new K(),
|
|
13153
|
+
openProgress: new K()
|
|
13115
13154
|
}, this._version = new Ot("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = Ur.DecimalDegrees, this._celtscale = 1, this._cecolor = new nt(), this._celtype = Tt, this._celweight = He.ByLayer, this._clayer = "0", this._textstyle = it, this._extents = new C(), this._insunits = xa.Millimeters, this._ltscale = 1, this._lwdisplay = !1, this._pdmode = 0, this._pdsize = 0, this._osmode = 0, this._maxHandle = 0, this._tables = {
|
|
13116
13155
|
appIdTable: new Sl(this),
|
|
13117
13156
|
blockTable: new ul(this),
|
|
@@ -13120,12 +13159,12 @@ class Iu extends ue {
|
|
|
13120
13159
|
textStyleTable: new bl(this),
|
|
13121
13160
|
viewTable: new Il(this),
|
|
13122
13161
|
layerTable: new xl(this),
|
|
13123
|
-
viewportTable: new
|
|
13162
|
+
viewportTable: new Pl(this)
|
|
13124
13163
|
}, this._objects = {
|
|
13125
|
-
dictionary: new
|
|
13126
|
-
imageDefinition: new
|
|
13164
|
+
dictionary: new Ks(this),
|
|
13165
|
+
imageDefinition: new Ks(this),
|
|
13127
13166
|
layout: new rl(this),
|
|
13128
|
-
xrecord: new
|
|
13167
|
+
xrecord: new Ks(this)
|
|
13129
13168
|
};
|
|
13130
13169
|
}
|
|
13131
13170
|
get tables() {
|
|
@@ -13394,7 +13433,7 @@ class Iu extends ue {
|
|
|
13394
13433
|
}
|
|
13395
13434
|
);
|
|
13396
13435
|
}
|
|
13397
|
-
async read(t, e, s =
|
|
13436
|
+
async read(t, e, s = Gs.DXF) {
|
|
13398
13437
|
const n = ee.instance.get(s);
|
|
13399
13438
|
if (n == null)
|
|
13400
13439
|
throw new Error(
|
|
@@ -13464,7 +13503,7 @@ class Iu extends ue {
|
|
|
13464
13503
|
for (const m of l)
|
|
13465
13504
|
c.set(m, d), d += m.length;
|
|
13466
13505
|
const g = this.getFileNameFromUri(t).toLowerCase().split(".").pop();
|
|
13467
|
-
g === "dwg" ? await this.read(c.buffer, e,
|
|
13506
|
+
g === "dwg" ? await this.read(c.buffer, e, Gs.DWG) : g === "dxf" ? await this.read(c.buffer, e, Gs.DXF) : await this.read(c.buffer, e, g), this.events.openProgress.dispatch({
|
|
13468
13507
|
database: this,
|
|
13469
13508
|
percentage: 100,
|
|
13470
13509
|
stage: "FETCH_FILE",
|
|
@@ -13511,7 +13550,7 @@ class Iu extends ue {
|
|
|
13511
13550
|
if (!this.tables.layerTable.has("0")) {
|
|
13512
13551
|
const e = new nt();
|
|
13513
13552
|
e.colorIndex = 7, this.tables.layerTable.add(
|
|
13514
|
-
new
|
|
13553
|
+
new wn({
|
|
13515
13554
|
name: "0",
|
|
13516
13555
|
standardFlags: 0,
|
|
13517
13556
|
linetype: ms,
|
|
@@ -13544,7 +13583,7 @@ class Iu extends ue {
|
|
|
13544
13583
|
totalPatternLength: 0
|
|
13545
13584
|
})
|
|
13546
13585
|
), this.tables.textStyleTable.has(it) || this.tables.textStyleTable.add(
|
|
13547
|
-
new
|
|
13586
|
+
new xn({
|
|
13548
13587
|
name: it,
|
|
13549
13588
|
standardFlag: 0,
|
|
13550
13589
|
fixedTextHeight: 0,
|
|
@@ -13567,7 +13606,7 @@ class Iu extends ue {
|
|
|
13567
13606
|
}
|
|
13568
13607
|
const t = this.tables.blockTable.modelSpace;
|
|
13569
13608
|
if (!this.objects.layout.getAt("Model")) {
|
|
13570
|
-
const e = new
|
|
13609
|
+
const e = new fi();
|
|
13571
13610
|
e.layoutName = "Model", e.tabOrder = 0, e.blockTableRecordId = t.objectId, e.limits.min.copy({ x: 0, y: 0 }), e.limits.max.copy({ x: 1e6, y: 1e6 }), e.extents.min.copy({ x: 0, y: 0, z: 0 }), e.extents.max.copy({ x: 1e6, y: 1e6, z: 0 }), this.objects.layout.setAt(e.layoutName, e), t.layoutId = e.objectId;
|
|
13572
13611
|
}
|
|
13573
13612
|
this.tables.appIdTable.has(dr) || this.tables.appIdTable.add(new Tr(dr)), this.tables.appIdTable.has(cr) || this.tables.appIdTable.add(new Tr(cr));
|
|
@@ -13669,7 +13708,7 @@ class Iu extends ue {
|
|
|
13669
13708
|
const a = [...n];
|
|
13670
13709
|
t.startTable(e), s.dxfOut(t);
|
|
13671
13710
|
for (const o of a) {
|
|
13672
|
-
if (r === "BLOCK_RECORD" && o instanceof
|
|
13711
|
+
if (r === "BLOCK_RECORD" && o instanceof Z) {
|
|
13673
13712
|
o.dxfOutBlockRecord(t);
|
|
13674
13713
|
continue;
|
|
13675
13714
|
}
|
|
@@ -13694,7 +13733,7 @@ class Iu extends ue {
|
|
|
13694
13733
|
return e.toUpperCase() === "BYLAYER" ? Tt : e.toUpperCase() === "BYBLOCK" ? ys : e;
|
|
13695
13734
|
}
|
|
13696
13735
|
triggerSysVarChangedEvent(t, e, s) {
|
|
13697
|
-
const n =
|
|
13736
|
+
const n = di.instance(), r = t.toLowerCase();
|
|
13698
13737
|
n.getDescriptor(r) != null && n.events.sysVarChanged.dispatch({
|
|
13699
13738
|
database: this,
|
|
13700
13739
|
name: r,
|
|
@@ -13730,7 +13769,7 @@ class ut extends qo {
|
|
|
13730
13769
|
), this.data.progress.value += this.data.step, this.data.progress.value > 100 && (this.data.progress.value = 100)), e && (e.data[this.name] = Date.now() - s), n;
|
|
13731
13770
|
}
|
|
13732
13771
|
}
|
|
13733
|
-
class
|
|
13772
|
+
class Pa {
|
|
13734
13773
|
constructor(t = {}) {
|
|
13735
13774
|
this.config = t;
|
|
13736
13775
|
}
|
|
@@ -13839,7 +13878,7 @@ class Ea {
|
|
|
13839
13878
|
progress: l,
|
|
13840
13879
|
task: async (u) => {
|
|
13841
13880
|
if (this.processHeader(u.model, e), a) {
|
|
13842
|
-
const g =
|
|
13881
|
+
const g = di.instance();
|
|
13843
13882
|
for (const [p, m] of Object.entries(a))
|
|
13844
13883
|
g.setVar(p, m, e);
|
|
13845
13884
|
}
|
|
@@ -13922,7 +13961,7 @@ class Ea {
|
|
|
13922
13961
|
return t.task.name === "ENTITY" ? !1 : (this.onFinished(), !0);
|
|
13923
13962
|
}
|
|
13924
13963
|
onFinished() {
|
|
13925
|
-
this.progress && (this.progress(100, "END", "END"),
|
|
13964
|
+
this.progress && (this.progress(100, "END", "END"), Ps.instance.clear());
|
|
13926
13965
|
}
|
|
13927
13966
|
getParserWorkerTimeout(t, e) {
|
|
13928
13967
|
const s = e ?? this.config.timeout;
|
|
@@ -13971,7 +14010,7 @@ class Ea {
|
|
|
13971
14010
|
throw new Error("Not impelemented yet!");
|
|
13972
14011
|
}
|
|
13973
14012
|
}
|
|
13974
|
-
class
|
|
14013
|
+
class Pu extends fa {
|
|
13975
14014
|
constructor() {
|
|
13976
14015
|
super(), this._standardFlags = 0, this._viewWidth = this.viewHeight, this._ucsAssociated = !1, this._cameraPlottable = !1, this._ucsElevation = 0;
|
|
13977
14016
|
}
|
|
@@ -14033,11 +14072,11 @@ class Eu extends fa {
|
|
|
14033
14072
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbViewTableRecord"), t.writeString(2, this.name), t.writeInt16(70, this.standardFlags), t.writeDouble(40, this.gsView.viewHeight), t.writePoint2d(10, this.centerPoint), t.writeDouble(41, this.viewWidth), t.writePoint3d(11, this.gsView.viewDirectionFromTarget), t.writePoint3d(12, this.gsView.viewTarget), t.writeDouble(42, this.gsView.lensLength), t.writeDouble(43, this.gsView.frontClippingPlane), t.writeDouble(44, this.gsView.backClippingPlane), t.writeAngle(50, this.gsView.viewTwistAngle), t.writeInt16(71, this.gsView.viewMode), t.writeInt16(281, this.gsView.renderMode), t.writeInt16(72, this.ucsAssociated ? 1 : 0), t.writeInt16(73, this.cameraPlottable ? 1 : 0), t.writeObjectId(332, this.backgroundObjectId), t.writeObjectId(334, this.liveSectionObjectId), t.writeObjectId(348, this.gsView.visualStyleObjectId), this.ucsAssociated && (t.writePoint3d(110, this.gsView.ucsOrigin), t.writePoint3d(111, this.gsView.ucsXAxis), t.writePoint3d(112, this.gsView.ucsYAxis), t.writeInt16(79, this.gsView.orthographicType), t.writeDouble(146, this.ucsElevation), t.writeObjectId(345, this.ucsObjectId), t.writeObjectId(346, this.ucsBaseObjectId)), this;
|
|
14034
14073
|
}
|
|
14035
14074
|
}
|
|
14036
|
-
var
|
|
14037
|
-
(
|
|
14075
|
+
var J, Ye, X, q, $e, vt, we, Vt, ot, jt, kt, xe, fe, be, _t, Wt, qe, Ke, Ie, Pe, Ze, Qe, Je, wt, Dt, G, Ee, ts, L, ht, es, lt, ss, Gt, j, is, Ht, Se, ki, Li, Lt, ns, Me, xt, Ut, Xt, Yt, rs, as, $t, Te, Ae, Ni, os, ve, qt, ke, tt, Kt, ft, Oi, et, Ci, Zt, bt, Le, hs, Ne, It, Qt, Pt, Jt, Bi, Oe, Et;
|
|
14076
|
+
(J = {})[J.None = 0] = "None", J[J.Anonymous = 1] = "Anonymous", J[J.NonConstant = 2] = "NonConstant", J[J.Xref = 4] = "Xref", J[J.XrefOverlay = 8] = "XrefOverlay", J[J.ExternallyDependent = 16] = "ExternallyDependent", J[J.ResolvedOrDependent = 32] = "ResolvedOrDependent", J[J.ReferencedXref = 64] = "ReferencedXref";
|
|
14038
14077
|
(Ye = {})[Ye.BYBLOCK = 0] = "BYBLOCK", Ye[Ye.BYLAYER = 256] = "BYLAYER";
|
|
14039
|
-
(
|
|
14040
|
-
(
|
|
14078
|
+
(X = {})[X.Rotated = 0] = "Rotated", X[X.Aligned = 1] = "Aligned", X[X.Angular = 2] = "Angular", X[X.Diameter = 3] = "Diameter", X[X.Radius = 4] = "Radius", X[X.Angular3Point = 5] = "Angular3Point", X[X.Ordinate = 6] = "Ordinate", X[X.ReferenceIsExclusive = 32] = "ReferenceIsExclusive", X[X.IsOrdinateXTypeFlag = 64] = "IsOrdinateXTypeFlag", X[X.IsCustomTextPositionFlag = 128] = "IsCustomTextPositionFlag";
|
|
14079
|
+
(q = {})[q.TopLeft = 1] = "TopLeft", q[q.TopCenter = 2] = "TopCenter", q[q.TopRight = 3] = "TopRight", q[q.MiddleLeft = 4] = "MiddleLeft", q[q.MiddleCenter = 5] = "MiddleCenter", q[q.MiddleRight = 6] = "MiddleRight", q[q.BottomLeft = 7] = "BottomLeft", q[q.BottomCenter = 8] = "BottomCenter", q[q.BottomRight = 9] = "BottomRight";
|
|
14041
14080
|
($e = {})[$e.AtLeast = 1] = "AtLeast", $e[$e.Exact = 2] = "Exact";
|
|
14042
14081
|
var vr = ((vt = {})[vt.Center = 0] = "Center", vt[vt.Above = 1] = "Above", vt[vt.Outside = 2] = "Outside", vt[vt.JIS = 3] = "JIS", vt[vt.Below = 4] = "Below", vt);
|
|
14043
14082
|
(we = {})[we.WithDimension = 0] = "WithDimension", we[we.AddLeader = 1] = "AddLeader", we[we.Independent = 2] = "Independent";
|
|
@@ -14050,13 +14089,13 @@ var De = ((ot = {})[ot.Feet = 0] = "Feet", ot[ot.None = 1] = "None", ot[ot.Inch
|
|
|
14050
14089
|
var Ll = ((qe = {})[qe.PatternFill = 0] = "PatternFill", qe[qe.SolidFill = 1] = "SolidFill", qe);
|
|
14051
14090
|
(Ke = {})[Ke.NonAssociative = 0] = "NonAssociative", Ke[Ke.Associative = 1] = "Associative";
|
|
14052
14091
|
(Ie = {})[Ie.Normal = 0] = "Normal", Ie[Ie.Outer = 1] = "Outer", Ie[Ie.Ignore = 2] = "Ignore";
|
|
14053
|
-
(
|
|
14092
|
+
(Pe = {})[Pe.UserDefined = 0] = "UserDefined", Pe[Pe.Predefined = 1] = "Predefined", Pe[Pe.Custom = 2] = "Custom";
|
|
14054
14093
|
(Ze = {})[Ze.NotAnnotated = 0] = "NotAnnotated", Ze[Ze.Annotated = 1] = "Annotated";
|
|
14055
14094
|
(Qe = {})[Qe.Solid = 0] = "Solid", Qe[Qe.Gradient = 1] = "Gradient";
|
|
14056
14095
|
(Je = {})[Je.TwoColor = 0] = "TwoColor", Je[Je.OneColor = 1] = "OneColor";
|
|
14057
|
-
var Nl = ((wt = {})[wt.Default = 0] = "Default", wt[wt.External = 1] = "External", wt[wt.Polyline = 2] = "Polyline", wt[wt.Derived = 4] = "Derived", wt[wt.Textbox = 8] = "Textbox", wt[wt.Outermost = 16] = "Outermost", wt),
|
|
14096
|
+
var Nl = ((wt = {})[wt.Default = 0] = "Default", wt[wt.External = 1] = "External", wt[wt.Polyline = 2] = "Polyline", wt[wt.Derived = 4] = "Derived", wt[wt.Textbox = 8] = "Textbox", wt[wt.Outermost = 16] = "Outermost", wt), js = ((Dt = {})[Dt.Line = 1] = "Line", Dt[Dt.Circular = 2] = "Circular", Dt[Dt.Elliptic = 3] = "Elliptic", Dt[Dt.Spline = 4] = "Spline", Dt), Ol = ((G = {})[G.Off = 0] = "Off", G[G.Solid = 1] = "Solid", G[G.Dashed = 2] = "Dashed", G[G.Dotted = 3] = "Dotted", G[G.ShotDash = 4] = "ShotDash", G[G.MediumDash = 5] = "MediumDash", G[G.LongDash = 6] = "LongDash", G[G.DoubleShortDash = 7] = "DoubleShortDash", G[G.DoubleMediumDash = 8] = "DoubleMediumDash", G[G.DoubleLongDash = 9] = "DoubleLongDash", G[G.DoubleMediumLongDash = 10] = "DoubleMediumLongDash", G[G.SparseDot = 11] = "SparseDot", G);
|
|
14058
14097
|
Ol.Off;
|
|
14059
|
-
(
|
|
14098
|
+
(Ee = {})[Ee.Standard = -3] = "Standard", Ee[Ee.ByLayer = -2] = "ByLayer", Ee[Ee.ByBlock = -1] = "ByBlock";
|
|
14060
14099
|
(ts = {})[ts.English = 0] = "English", ts[ts.Metric = 1] = "Metric";
|
|
14061
14100
|
(L = {})[L.PERSPECTIVE_MODE = 1] = "PERSPECTIVE_MODE", L[L.FRONT_CLIPPING = 2] = "FRONT_CLIPPING", L[L.BACK_CLIPPING = 4] = "BACK_CLIPPING", L[L.UCS_FOLLOW = 8] = "UCS_FOLLOW", L[L.FRONT_CLIP_NOT_AT_EYE = 16] = "FRONT_CLIP_NOT_AT_EYE", L[L.UCS_ICON_VISIBILITY = 32] = "UCS_ICON_VISIBILITY", L[L.UCS_ICON_AT_ORIGIN = 64] = "UCS_ICON_AT_ORIGIN", L[L.FAST_ZOOM = 128] = "FAST_ZOOM", L[L.SNAP_MODE = 256] = "SNAP_MODE", L[L.GRID_MODE = 512] = "GRID_MODE", L[L.ISOMETRIC_SNAP_STYLE = 1024] = "ISOMETRIC_SNAP_STYLE", L[L.HIDE_PLOT_MODE = 2048] = "HIDE_PLOT_MODE", L[L.K_ISO_PAIR_TOP = 4096] = "K_ISO_PAIR_TOP", L[L.K_ISO_PAIR_RIGHT = 8192] = "K_ISO_PAIR_RIGHT", L[L.VIEWPORT_ZOOM_LOCKING = 16384] = "VIEWPORT_ZOOM_LOCKING", L[L.UNUSED = 32768] = "UNUSED", L[L.NON_RECTANGULAR_CLIPPING = 65536] = "NON_RECTANGULAR_CLIPPING", L[L.VIEWPORT_OFF = 131072] = "VIEWPORT_OFF", L[L.GRID_BEYOND_DRAWING_LIMITS = 262144] = "GRID_BEYOND_DRAWING_LIMITS", L[L.ADAPTIVE_GRID_DISPLAY = 524288] = "ADAPTIVE_GRID_DISPLAY", L[L.SUBDIVISION_BELOW_SPACING = 1048576] = "SUBDIVISION_BELOW_SPACING", L[L.GRID_FOLLOWS_WORKPLANE = 2097152] = "GRID_FOLLOWS_WORKPLANE";
|
|
14062
14101
|
(ht = {})[ht.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", ht[ht.WIREFRAME = 1] = "WIREFRAME", ht[ht.HIDDEN_LINE = 2] = "HIDDEN_LINE", ht[ht.FLAT_SHADED = 3] = "FLAT_SHADED", ht[ht.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", ht[ht.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", ht[ht.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME";
|
|
@@ -14075,8 +14114,8 @@ function de(i) {
|
|
|
14075
14114
|
if (t.x = e.value, (e = i.next()).code !== s + 10) throw Error("Expected code for point value to be 20 but got " + e.code + ".");
|
|
14076
14115
|
return t.y = e.value, (e = i.next()).code !== s + 20 ? i.rewind() : t.z = e.value, t;
|
|
14077
14116
|
}
|
|
14078
|
-
let
|
|
14079
|
-
function
|
|
14117
|
+
let Ms = Symbol();
|
|
14118
|
+
function E(i, t) {
|
|
14080
14119
|
return (e, s, n) => {
|
|
14081
14120
|
let r = function(l, c = !1) {
|
|
14082
14121
|
return l.reduce((d, u) => {
|
|
@@ -14090,10 +14129,10 @@ function P(i, t) {
|
|
|
14090
14129
|
}, [{}]);
|
|
14091
14130
|
}(i, s.debug), a = !1, o = r.length - 1;
|
|
14092
14131
|
for (; !O(e, 0, "EOF"); ) {
|
|
14093
|
-
let l = function(w,
|
|
14132
|
+
let l = function(w, f, P) {
|
|
14094
14133
|
return w.find((I, A) => {
|
|
14095
14134
|
var M;
|
|
14096
|
-
return A >=
|
|
14135
|
+
return A >= P && ((M = I[f]) == null ? void 0 : M.length);
|
|
14097
14136
|
});
|
|
14098
14137
|
}(r, e.code, o), c = l == null ? void 0 : l[e.code], d = c == null ? void 0 : c[c.length - 1];
|
|
14099
14138
|
if (!l || !d) {
|
|
@@ -14102,13 +14141,13 @@ function P(i, t) {
|
|
|
14102
14141
|
}
|
|
14103
14142
|
d.isMultiple || l[e.code].pop();
|
|
14104
14143
|
let { name: u, parser: g, isMultiple: p, isReducible: m } = d, y = g == null ? void 0 : g(e, s, n);
|
|
14105
|
-
if (y ===
|
|
14144
|
+
if (y === Ms) {
|
|
14106
14145
|
s.rewind();
|
|
14107
14146
|
break;
|
|
14108
14147
|
}
|
|
14109
14148
|
if (u) {
|
|
14110
|
-
let [w,
|
|
14111
|
-
p && !m ? (Object.prototype.hasOwnProperty.call(w,
|
|
14149
|
+
let [w, f] = Cl(n, u);
|
|
14150
|
+
p && !m ? (Object.prototype.hasOwnProperty.call(w, f) || (w[f] = []), w[f].push(y)) : w[f] = y;
|
|
14112
14151
|
}
|
|
14113
14152
|
d.pushContext && (o -= 1), a = !0, e = s.next();
|
|
14114
14153
|
}
|
|
@@ -14120,12 +14159,12 @@ function Cl(i, t) {
|
|
|
14120
14159
|
if (!e.length) throw Error("[parserGenerator::getObjectByPath] Invalid empty path");
|
|
14121
14160
|
let s = i;
|
|
14122
14161
|
for (let n = 0; n < e.length - 1; ++n) {
|
|
14123
|
-
let r =
|
|
14162
|
+
let r = Fi(e[n]), a = Fi(e[n + 1]);
|
|
14124
14163
|
Object.prototype.hasOwnProperty.call(s, r) || (typeof a == "number" ? s[r] = [] : s[r] = {}), s = s[r];
|
|
14125
14164
|
}
|
|
14126
|
-
return [s,
|
|
14165
|
+
return [s, Fi(e[e.length - 1])];
|
|
14127
14166
|
}
|
|
14128
|
-
function
|
|
14167
|
+
function Fi(i) {
|
|
14129
14168
|
let t = Number.parseInt(i);
|
|
14130
14169
|
return Number.isNaN(t) ? i : t;
|
|
14131
14170
|
}
|
|
@@ -14141,12 +14180,12 @@ function N({ value: i }) {
|
|
|
14141
14180
|
function Bl({ value: i }) {
|
|
14142
14181
|
return i.trim();
|
|
14143
14182
|
}
|
|
14144
|
-
let Fl = [{ code: 281, name: "isEntity", parser: N }, { code: 280, name: "wasProxy", parser: N }, { code: 91, name: "instanceCount", parser: h }, { code: 90, name: "proxyFlag", parser: h }, { code: 3, name: "appName", parser: h }, { code: 2, name: "cppClassName", parser: h }, { code: 1, name: "name", parser: h }], Rl =
|
|
14145
|
-
if (i.value !== "CLASS") return
|
|
14183
|
+
let Fl = [{ code: 281, name: "isEntity", parser: N }, { code: 280, name: "wasProxy", parser: N }, { code: 91, name: "instanceCount", parser: h }, { code: 90, name: "proxyFlag", parser: h }, { code: 3, name: "appName", parser: h }, { code: 2, name: "cppClassName", parser: h }, { code: 1, name: "name", parser: h }], Rl = E(Fl), zl = [{ code: 0, name: "classes", isMultiple: !0, parser(i, t) {
|
|
14184
|
+
if (i.value !== "CLASS") return Ms;
|
|
14146
14185
|
i = t.next();
|
|
14147
14186
|
let e = {};
|
|
14148
14187
|
return Rl(i, t, e), e;
|
|
14149
|
-
} }], Vl =
|
|
14188
|
+
} }], Vl = E(zl);
|
|
14150
14189
|
(is = {})[is.RayTrace = 0] = "RayTrace", is[is.ShadowMap = 1] = "ShadowMap";
|
|
14151
14190
|
function Ft(i, t, e) {
|
|
14152
14191
|
for (; O(i, 102); ) {
|
|
@@ -14165,8 +14204,8 @@ function Ft(i, t, e) {
|
|
|
14165
14204
|
}
|
|
14166
14205
|
t.rewind();
|
|
14167
14206
|
}
|
|
14168
|
-
let jl = [{ code: 1001, name: "xdata", isMultiple: !0, parser:
|
|
14169
|
-
function
|
|
14207
|
+
let jl = [{ code: 1001, name: "xdata", isMultiple: !0, parser: Ea }], Wl = /* @__PURE__ */ new Set([1010, 1011, 1012, 1013]);
|
|
14208
|
+
function Ea(i, t) {
|
|
14170
14209
|
var n;
|
|
14171
14210
|
if (!O(i, 1001)) throw Error("XData must starts with code 1001");
|
|
14172
14211
|
let e = { appName: i.value, value: [] };
|
|
@@ -14184,7 +14223,7 @@ function Pa(i, t) {
|
|
|
14184
14223
|
}
|
|
14185
14224
|
(Ht = {})[Ht.CAST_AND_RECEIVE = 0] = "CAST_AND_RECEIVE", Ht[Ht.CAST = 1] = "CAST", Ht[Ht.RECEIVE = 2] = "RECEIVE", Ht[Ht.IGNORE = 3] = "IGNORE";
|
|
14186
14225
|
let z = [...jl, { code: 284, name: "shadowMode", parser: h }, { code: 390, name: "plotStyleHardId", parser: h }, { code: 380, name: "plotStyleType", parser: h }, { code: 440, name: "transparency", parser: h }, { code: 430, name: "colorName", parser: h }, { code: 420, name: "color", parser: h }, { code: 310, name: "proxyEntity", isMultiple: !0, isReducible: !0, parser: (i, t, e) => (e.proxyEntity ?? "") + i.value }, { code: [92, 160], name: "proxyByte", parser: h }, { code: 60, name: "isVisible", parser: N }, { code: 48, name: "lineTypeScale", parser: h }, { code: 370, name: "lineweight", parser: h }, { code: 62, name: "colorIndex", parser: h }, { code: 347, name: "materialObjectHardId", parser: h }, { code: 6, name: "lineType", parser: h }, { code: 8, name: "layer", parser: h }, { code: 410, name: "layoutTabName", parser: h }, { code: 67, name: "isInPaperSpace", parser: N }, { code: 100 }, { code: 330, name: "ownerBlockRecordSoftId", parser: h }, { code: 102, parser: Ft }, { code: 102, parser: Ft }, { code: 102, parser: Ft }, { code: 5, name: "handle", parser: h }];
|
|
14187
|
-
function
|
|
14226
|
+
function Ii(i) {
|
|
14188
14227
|
return [{ code: 3, name: i, parser: (t, e, s) => (s._code3text = (s._code3text ?? "") + t.value, s._code3text + (s._code1text ?? "")), isMultiple: !0, isReducible: !0 }, { code: 1, name: i, parser: (t, e, s) => (s._code1text = t.value, (s._code3text ?? "") + s._code1text) }];
|
|
14189
14228
|
}
|
|
14190
14229
|
function Sa(i, t, e) {
|
|
@@ -14197,45 +14236,45 @@ class Ma {
|
|
|
14197
14236
|
return this.parser(e, t, s), s;
|
|
14198
14237
|
}
|
|
14199
14238
|
constructor() {
|
|
14200
|
-
Sa(this, "parser",
|
|
14239
|
+
Sa(this, "parser", E(Gl, Dl));
|
|
14201
14240
|
}
|
|
14202
14241
|
}
|
|
14203
14242
|
Sa(Ma, "ForEntityName", "ARC");
|
|
14204
14243
|
(Se = {})[Se.BeforeText = 0] = "BeforeText", Se[Se.AboveText = 1] = "AboveText", Se[Se.None = 2] = "None";
|
|
14205
|
-
let
|
|
14244
|
+
let fn = [{ name: "DIMPOST", code: 3 }, { name: "DIMAPOST", code: 4, defaultValue: "" }, { 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: "DIMFXL", code: 49, defaultValue: 1 }, { name: "DIMJOGANG", code: 50, defaultValue: 45 }, { name: "DIMTFILL", code: 69, defaultValue: 0 }, { name: "DIMTFILLCLR", code: 70, 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: vr.Above, defaultValueImperial: vr.Center }, { name: "DIMZIN", code: 78, defaultValue: De.Trailing, defaultValueImperial: De.Feet }, { name: "DIMAZIN", code: 79, defaultValue: Al.None }, { name: "DIMARCSYM", code: 90, 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: "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, defaultValue: 0 }, { 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: 3, defaultValueImperial: 2 }, { name: "DIMAUNIT", code: 275, defaultValue: 0 }, { name: "DIMFRAC", code: 276, defaultValue: 0 }, { name: "DIMLUNIT", code: 277, defaultValue: 2 }, { name: "DIMDSEP", code: 278, defaultValue: 44, defaultValueImperial: 46 }, { name: "DIMTMOVE", code: 279, defaultValue: 0 }, { name: "DIMJUST", code: 280, defaultValue: vl.Center }, { name: "DIMSD1", code: 281, defaultValue: 0 }, { name: "DIMSD2", code: 282, defaultValue: 0 }, { name: "DIMTOLJ", code: 283, defaultValue: kl.Center }, { name: "DIMTZIN", code: 284, defaultValue: De.Trailing, defaultValueImperial: De.Feet }, { name: "DIMALTZ", code: 285, defaultValue: De.Trailing }, { name: "DIMALTTZ", code: 286, defaultValue: De.Trailing }, { name: "DIMFIT", code: 287 }, { name: "DIMUPT", code: 288, defaultValue: 0 }, { name: "DIMATFIT", code: 289, defaultValue: 3 }, { name: "DIMFXLON", code: 290, defaultValue: 0 }, { name: "DIMTXTDIRECTION", code: 294, defaultValue: 0 }, { name: "DIMTXSTY", code: 340, defaultValue: "Standard" }, { name: "DIMLDRBLK", code: 341, defaultValue: "" }, { name: "DIMBLK", code: 342, defaultValue: "" }, { name: "DIMBLK1", code: 343, defaultValue: "" }, { name: "DIMBLK2", code: 344, defaultValue: "" }, { name: "DIMLTYPE", code: 345, defaultValue: "" }, { name: "DIMLTEX1", code: 346, defaultValue: "" }, { name: "DIMLTEX2", code: 347, defaultValue: "" }, { name: "DIMLWD", code: 371, defaultValue: -2 }, { name: "DIMLWE", code: 372, defaultValue: -2 }], Ta = [{ code: 3, name: "styleName", parser: h }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 51, name: "ocsRotation", parser: h }, { code: 53, name: "textRotation", parser: h }, { code: 1, name: "text", parser: h }, { code: 42, name: "measurement", parser: h }, { code: 72, name: "textLineSpacingStyle", parser: h }, { code: 71, name: "attachmentPoint", parser: h }, { code: 70, name: "dimensionType", parser: h }, { code: 11, name: "textPoint", parser: _ }, { code: 10, name: "definitionPoint", parser: _ }, { code: 2, name: "name", parser: h }, { code: 280, name: "version", parser: h }, { code: 100 }], Hl = [{ code: 100 }, { code: 52, name: "obliqueAngle", parser: h }, { code: 50, name: "rotationAngle", parser: h }, { code: 14, name: "subDefinitionPoint2", parser: _ }, { code: 13, name: "subDefinitionPoint1", parser: _ }, { code: 12, name: "insertionPoint", parser: _ }, { code: 100, name: "subclassMarker", parser: h }], Ul = [{ code: 16, name: "arcPoint", parser: _ }, { code: 15, name: "centerPoint", parser: _ }, { code: 14, name: "subDefinitionPoint2", parser: _ }, { code: 13, name: "subDefinitionPoint1", parser: _ }, { code: 100, name: "subclassMarker", parser: h }], Xl = [{ code: 14, name: "subDefinitionPoint2", parser: _ }, { code: 13, name: "subDefinitionPoint1", parser: _ }, { code: 100, name: "subclassMarker", parser: h }], Yl = [{ code: 40, name: "leaderLength", parser: h }, { code: 15, name: "subDefinitionPoint", parser: _ }, { code: 100, name: "subclassMarker", parser: h }], $l = [{ code: 100, parser(i, t, e) {
|
|
14206
14245
|
let s = function(n) {
|
|
14207
14246
|
switch (n) {
|
|
14208
14247
|
case "AcDbAlignedDimension":
|
|
14209
|
-
return
|
|
14248
|
+
return E(Hl);
|
|
14210
14249
|
case "AcDb3PointAngularDimension":
|
|
14211
14250
|
case "AcDb2LineAngularDimension":
|
|
14212
|
-
return
|
|
14251
|
+
return E(Ul);
|
|
14213
14252
|
case "AcDbOrdinateDimension":
|
|
14214
|
-
return
|
|
14253
|
+
return E(Xl);
|
|
14215
14254
|
case "AcDbRadialDimension":
|
|
14216
14255
|
case "AcDbDiametricDimension":
|
|
14217
|
-
return
|
|
14256
|
+
return E(Yl);
|
|
14218
14257
|
}
|
|
14219
14258
|
return null;
|
|
14220
14259
|
}(i.value);
|
|
14221
|
-
if (!s) return
|
|
14260
|
+
if (!s) return Ms;
|
|
14222
14261
|
s(i, t, e);
|
|
14223
|
-
}, pushContext: !0 }, ...
|
|
14224
|
-
class
|
|
14262
|
+
}, pushContext: !0 }, ...fn.map((i) => ({ ...i, parser: h })), ...Ta, ...z];
|
|
14263
|
+
class Zs {
|
|
14225
14264
|
parseEntity(t, e) {
|
|
14226
14265
|
let s = {};
|
|
14227
|
-
return
|
|
14266
|
+
return E($l)(e, t, s), s;
|
|
14228
14267
|
}
|
|
14229
14268
|
}
|
|
14230
|
-
(
|
|
14231
|
-
let ql = [{ code: 73 }, { code: 17, name: "leaderEnd", parser: _ }, { code: 16, name: "leaderStart", parser: _ }, { code: 71, name: "hasLeader", parser: N }, { code: 41, name: "endAngle", parser: h }, { code: 40, name: "startAngle", parser: h }, { code: 70, name: "isPartial", parser: N }, { code: 15, name: "centerPoint", parser: _ }, { code: 14, name: "xline2Point", parser: _ }, { code: 13, name: "xline1Point", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...
|
|
14232
|
-
class
|
|
14269
|
+
(ki = "ForEntityName") in Zs ? Object.defineProperty(Zs, ki, { value: "DIMENSION", enumerable: !0, configurable: !0, writable: !0 }) : Zs[ki] = "DIMENSION";
|
|
14270
|
+
let ql = [{ code: 73 }, { code: 17, name: "leaderEnd", parser: _ }, { code: 16, name: "leaderStart", parser: _ }, { code: 71, name: "hasLeader", parser: N }, { code: 41, name: "endAngle", parser: h }, { code: 40, name: "startAngle", parser: h }, { code: 70, name: "isPartial", parser: N }, { code: 15, name: "centerPoint", parser: _ }, { code: 14, name: "xline2Point", parser: _ }, { code: 13, name: "xline1Point", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...fn.map((i) => ({ ...i, parser: h })), ...Ta, ...z];
|
|
14271
|
+
class Qs {
|
|
14233
14272
|
parseEntity(t, e) {
|
|
14234
14273
|
let s = {};
|
|
14235
|
-
return
|
|
14274
|
+
return E(ql)(e, t, s), s;
|
|
14236
14275
|
}
|
|
14237
14276
|
}
|
|
14238
|
-
(
|
|
14277
|
+
(Li = "ForEntityName") in Qs ? Object.defineProperty(Qs, Li, { value: "ARC_DIMENSION", enumerable: !0, configurable: !0, writable: !0 }) : Qs[Li] = "ARC_DIMENSION";
|
|
14239
14278
|
(Lt = {})[Lt.NONE = 0] = "NONE", Lt[Lt.INVISIBLE = 1] = "INVISIBLE", Lt[Lt.CONSTANT = 2] = "CONSTANT", Lt[Lt.VERIFICATION_REQUIRED = 4] = "VERIFICATION_REQUIRED", Lt[Lt.PRESET = 8] = "PRESET";
|
|
14240
14279
|
(ns = {})[ns.MULTILINE = 2] = "MULTILINE", ns[ns.CONSTANT_MULTILINE = 4] = "CONSTANT_MULTILINE";
|
|
14241
14280
|
(Me = {})[Me.NONE = 0] = "NONE", Me[Me.MIRRORED_X = 2] = "MIRRORED_X", Me[Me.MIRRORED_Y = 4] = "MIRRORED_Y";
|
|
@@ -14250,7 +14289,7 @@ class La {
|
|
|
14250
14289
|
return this.parser(e, t, s), s;
|
|
14251
14290
|
}
|
|
14252
14291
|
constructor() {
|
|
14253
|
-
Aa(this, "parser",
|
|
14292
|
+
Aa(this, "parser", E(ka, va));
|
|
14254
14293
|
}
|
|
14255
14294
|
}
|
|
14256
14295
|
function Na(i, t, e) {
|
|
@@ -14264,7 +14303,7 @@ class Oa {
|
|
|
14264
14303
|
return this.parser(e, t, s), s;
|
|
14265
14304
|
}
|
|
14266
14305
|
constructor() {
|
|
14267
|
-
Na(this, "parser",
|
|
14306
|
+
Na(this, "parser", E(Jl, Ql));
|
|
14268
14307
|
}
|
|
14269
14308
|
}
|
|
14270
14309
|
function tc(i, t) {
|
|
@@ -14275,7 +14314,7 @@ function tc(i, t) {
|
|
|
14275
14314
|
}
|
|
14276
14315
|
return e;
|
|
14277
14316
|
}
|
|
14278
|
-
function*
|
|
14317
|
+
function* ui(i, t = 1 / 0, e = 1) {
|
|
14279
14318
|
for (let s = i; s !== t; s += e) yield s;
|
|
14280
14319
|
}
|
|
14281
14320
|
function kr(i) {
|
|
@@ -14352,7 +14391,7 @@ function nc(i, t, e) {
|
|
|
14352
14391
|
i.shadowMode = t.value;
|
|
14353
14392
|
break;
|
|
14354
14393
|
case 1001:
|
|
14355
|
-
(i.xdata ?? (i.xdata = [])).push(
|
|
14394
|
+
(i.xdata ?? (i.xdata = [])).push(Ea(t, e));
|
|
14356
14395
|
break;
|
|
14357
14396
|
default:
|
|
14358
14397
|
return !1;
|
|
@@ -14362,24 +14401,24 @@ function nc(i, t, e) {
|
|
|
14362
14401
|
function Ca(i, t, e) {
|
|
14363
14402
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14364
14403
|
}
|
|
14365
|
-
let rc = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rotation: 0 },
|
|
14404
|
+
let rc = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rotation: 0 }, Js = [{ code: 46, name: "annotationHeight", parser: h }, { code: 101, parser(i, t) {
|
|
14366
14405
|
ic(t);
|
|
14367
|
-
} }, { code: 50, name: "columnHeight", parser: h }, { code: 49, name: "columnGutter", parser: h }, { code: 48, name: "columnWidth", parser: h }, { code: 79, name: "columnAutoHeight", parser: h }, { code: 78, name: "columnFlowReversed", parser: h }, { code: 76, name: "columnCount", parser: h }, { code: 75, name: "columnType", parser: h }, { code: 441, name: "backgroundFillTransparency", parser: h }, { code: 63, name: "backgroundFillColor", parser: h }, { code: 45, name: "fillBoxScale", parser: h }, { code: [...
|
|
14406
|
+
} }, { code: 50, name: "columnHeight", parser: h }, { code: 49, name: "columnGutter", parser: h }, { code: 48, name: "columnWidth", parser: h }, { code: 79, name: "columnAutoHeight", parser: h }, { code: 78, name: "columnFlowReversed", parser: h }, { code: 76, name: "columnCount", parser: h }, { code: 75, name: "columnType", parser: h }, { code: 441, name: "backgroundFillTransparency", parser: h }, { code: 63, name: "backgroundFillColor", parser: h }, { code: 45, name: "fillBoxScale", parser: h }, { code: [...ui(430, 440)], name: "backgroundColor", parser: h }, { code: [...ui(420, 430)], name: "backgroundColor", parser: h }, { code: 90, name: "backgroundFill", parser: h }, { code: 44, name: "lineSpacing", parser: h }, { code: 73, name: "lineSpacingStyle", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 43 }, { code: 42 }, { code: 11, name: "direction", parser: _ }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 7, name: "styleName", parser: h }, ...Ii("text"), { code: 72, name: "drawingDirection", parser: h }, { code: 71, name: "attachmentPoint", parser: h }, { code: 41, name: "width", parser: h }, { code: 40, name: "height", parser: h }, { code: 10, name: "insertionPoint", parser: _ }, { code: 100, name: "subclassMarker", parser: h }, ...z];
|
|
14368
14407
|
class Ba {
|
|
14369
14408
|
parseEntity(t, e) {
|
|
14370
14409
|
let s = {};
|
|
14371
14410
|
return this.parser(e, t, s), s;
|
|
14372
14411
|
}
|
|
14373
14412
|
constructor() {
|
|
14374
|
-
Ca(this, "parser",
|
|
14413
|
+
Ca(this, "parser", E(Js, rc));
|
|
14375
14414
|
}
|
|
14376
14415
|
}
|
|
14377
14416
|
function Fa(i, t, e) {
|
|
14378
14417
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14379
14418
|
}
|
|
14380
14419
|
Ca(Ba, "ForEntityName", "MTEXT");
|
|
14381
|
-
let ac = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, oc = [...
|
|
14382
|
-
if (!O(i, 0, "MTEXT")) return
|
|
14420
|
+
let ac = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, oc = [...Js.slice(Js.findIndex(({ name: i }) => i === "columnType"), Js.findIndex(({ name: i }) => i === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(i) {
|
|
14421
|
+
if (!O(i, 0, "MTEXT")) return Ms;
|
|
14383
14422
|
} }, { code: 2, name: "definitionTag", parser: h }, { code: 40, name: "annotationScale", parser: h }, { code: 10, name: "alignmentPoint", parser: _ }, { code: 340, name: "secondaryAttributesHardId", parser: h }, { code: 70, name: "numberOfSecondaryAttributes", parser: h }, { code: 70, name: "isReallyLocked", parser: N }, { code: 70, name: "mtextFlag", parser: h }, { code: 280, name: "isDuplicatedEntriesKeep", parser: N }, { code: 100 }, { code: 280, name: "lockPositionFlag", parser: N }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 11, name: "alignmentPoint", parser: _ }, { code: 74, name: "verticalJustification", parser: h }, { code: 72, name: "horizontalJustification", parser: h }, { code: 71, name: "textGenerationFlag", parser: h }, { code: 7, name: "textStyle", parser: h }, { code: 51, name: "obliqueAngle", parser: h }, { code: 41, name: "scale", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 73 }, { code: 70, name: "attributeFlag", parser: h }, { code: 2, name: "tag", parser: h }, { code: 280 }, { code: 100, name: "subclassMarker", parser: h }, { code: 1, name: "text", parser: h }, { code: 40, name: "textHeight", parser: h }, { code: 10, name: "startPoint", parser: _ }, { code: 39, name: "thickness", parser: h }, { code: 100 }, ...z];
|
|
14384
14423
|
class Ra {
|
|
14385
14424
|
parseEntity(t, e) {
|
|
@@ -14387,21 +14426,21 @@ class Ra {
|
|
|
14387
14426
|
return this.parser(e, t, s), s;
|
|
14388
14427
|
}
|
|
14389
14428
|
constructor() {
|
|
14390
|
-
Fa(this, "parser",
|
|
14429
|
+
Fa(this, "parser", E(oc, ac));
|
|
14391
14430
|
}
|
|
14392
14431
|
}
|
|
14393
14432
|
function za(i, t, e) {
|
|
14394
14433
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14395
14434
|
}
|
|
14396
14435
|
Fa(Ra, "ForEntityName", "ATTRIB");
|
|
14397
|
-
let hc = [...
|
|
14436
|
+
let hc = [...Ii("data"), { code: 70, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...z];
|
|
14398
14437
|
class Va {
|
|
14399
14438
|
parseEntity(t, e) {
|
|
14400
14439
|
let s = {};
|
|
14401
14440
|
return this.parser(e, t, s), s;
|
|
14402
14441
|
}
|
|
14403
14442
|
constructor() {
|
|
14404
|
-
za(this, "parser",
|
|
14443
|
+
za(this, "parser", E(hc));
|
|
14405
14444
|
}
|
|
14406
14445
|
}
|
|
14407
14446
|
function ja(i, t, e) {
|
|
@@ -14415,7 +14454,7 @@ class Wa {
|
|
|
14415
14454
|
return this.parser(e, t, s), s;
|
|
14416
14455
|
}
|
|
14417
14456
|
constructor() {
|
|
14418
|
-
ja(this, "parser",
|
|
14457
|
+
ja(this, "parser", E(cc, lc));
|
|
14419
14458
|
}
|
|
14420
14459
|
}
|
|
14421
14460
|
function Da(i, t, e) {
|
|
@@ -14429,7 +14468,7 @@ class Ga {
|
|
|
14429
14468
|
return this.parser(e, t, s), s;
|
|
14430
14469
|
}
|
|
14431
14470
|
constructor() {
|
|
14432
|
-
Da(this, "parser",
|
|
14471
|
+
Da(this, "parser", E(uc, dc));
|
|
14433
14472
|
}
|
|
14434
14473
|
}
|
|
14435
14474
|
function Ha(i, t, e) {
|
|
@@ -14443,7 +14482,7 @@ class Ua {
|
|
|
14443
14482
|
return this.parser(e, t, s), s;
|
|
14444
14483
|
}
|
|
14445
14484
|
constructor() {
|
|
14446
|
-
Ha(this, "parser",
|
|
14485
|
+
Ha(this, "parser", E(pc));
|
|
14447
14486
|
}
|
|
14448
14487
|
}
|
|
14449
14488
|
Ha(Ua, "ForEntityName", "3DFACE");
|
|
@@ -14451,8 +14490,8 @@ Ha(Ua, "ForEntityName", "3DFACE");
|
|
|
14451
14490
|
let Xa = [{ code: 330, name: "sourceBoundaryObjects", parser: h, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: h }], gc = [{ code: 11, name: "end", parser: _ }, { code: 10, name: "start", parser: _ }], mc = [{ code: 73, name: "isCCW", parser: N }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "radius", parser: h }, { code: 10, name: "center", parser: _ }], yc = [{ code: 73, name: "isCCW", parser: N }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "lengthOfMinorAxis", parser: h }, { code: 11, name: "end", parser: _ }, { code: 10, name: "center", parser: _ }], _c = [{ code: 13, name: "endTangent", parser: _ }, { code: 12, name: "startTangent", parser: _ }, { code: 11, name: "fitDatum", isMultiple: !0, parser: _ }, { code: 97, name: "numberOfFitData", parser: h }, { code: 10, name: "controlPoints", isMultiple: !0, parser(i, t) {
|
|
14452
14491
|
let e = { ...de(t), weight: 1 };
|
|
14453
14492
|
return (i = t.next()).code === 42 ? e.weight = i.value : t.rewind(), e;
|
|
14454
|
-
} }, { code: 40, name: "knots", isMultiple: !0, parser: h }, { code: 96, name: "numberOfControlPoints", parser: h }, { code: 95, name: "numberOfKnots", parser: h }, { code: 74, name: "isPeriodic", parser: N }, { code: 73, name: "splineFlag", parser: h }, { code: 94, name: "degree", parser: h }], wc = { [
|
|
14455
|
-
let e = { type: i.value }, s =
|
|
14493
|
+
} }, { code: 40, name: "knots", isMultiple: !0, parser: h }, { code: 96, name: "numberOfControlPoints", parser: h }, { code: 95, name: "numberOfKnots", parser: h }, { code: 74, name: "isPeriodic", parser: N }, { code: 73, name: "splineFlag", parser: h }, { code: 94, name: "degree", parser: h }], wc = { [js.Line]: gc, [js.Circular]: mc, [js.Elliptic]: yc, [js.Spline]: _c }, xc = [...Xa, { code: 72, name: "edges", parser(i, t) {
|
|
14494
|
+
let e = { type: i.value }, s = E(wc[e.type]);
|
|
14456
14495
|
if (!s) throw Error(`Invalid edge type ${e.type}`);
|
|
14457
14496
|
return s(i = t.next(), t, e), e;
|
|
14458
14497
|
}, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: h }], fc = [...Xa, { code: 10, name: "vertices", parser(i, t) {
|
|
@@ -14461,28 +14500,28 @@ let Xa = [{ code: 330, name: "sourceBoundaryObjects", parser: h, isMultiple: !0
|
|
|
14461
14500
|
}, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: h }, { code: 73, name: "isClosed", parser: N }, { code: 72, name: "hasBulge", parser: N }];
|
|
14462
14501
|
function bc(i, t) {
|
|
14463
14502
|
let e = { boundaryPathTypeFlag: i.value }, s = e.boundaryPathTypeFlag & Nl.Polyline;
|
|
14464
|
-
return i = t.next(), s ?
|
|
14503
|
+
return i = t.next(), s ? E(fc)(i, t, e) : E(xc)(i, t, e), e;
|
|
14465
14504
|
}
|
|
14466
14505
|
let Ic = [{ code: 49, name: "dashLengths", parser: h, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: h }, { code: 45, name: "offset", parser: Lr }, { code: 43, name: "base", parser: Lr }, { code: 53, name: "angle", parser: h }];
|
|
14467
14506
|
function Lr(i, t) {
|
|
14468
14507
|
let e = i.code + 1, s = { x: i.value, y: 1 };
|
|
14469
14508
|
return (i = t.next()).code === e ? s.y = i.value : t.rewind(), s;
|
|
14470
14509
|
}
|
|
14471
|
-
function
|
|
14510
|
+
function Pc(i, t) {
|
|
14472
14511
|
let e = {};
|
|
14473
|
-
return
|
|
14512
|
+
return E(Ic)(i, t, e), e;
|
|
14474
14513
|
}
|
|
14475
14514
|
function Ya(i, t, e) {
|
|
14476
14515
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14477
14516
|
}
|
|
14478
|
-
let
|
|
14517
|
+
let Ec = { extrusionDirection: { x: 0, y: 0, z: 1 }, gradientRotation: 0, colorTint: 0 }, Sc = [{ code: 470 }, { code: 463 }, { code: 462, name: "colorTint", parser: h }, { code: 461, name: "gradientDefinition", parser: h }, { code: 460, name: "gradientRotation", parser: h }, { code: 453, name: "numberOfColors", parser: h }, { code: 452, name: "gradientColorFlag", parser: h }, { code: 451 }, { code: 450, name: "gradientFlag", parser: h }, { code: 10, name: "seedPoints", parser: _, isMultiple: !0 }, { code: 99 }, { code: 11, name: "offsetVector", parser: _ }, { code: 98, name: "numberOfSeedPoints", parser: h }, { code: 47, name: "pixelSize", parser: h }, { code: 53, name: "definitionLines", parser: Pc, isMultiple: !0 }, { code: 78, name: "numberOfDefinitionLines", parser: h }, { code: 77, name: "isDouble", parser: N }, { code: 73, name: "isAnnotated", parser: N }, { code: 41, name: "patternScale", parser: h }, { code: 52, name: "patternAngle", parser: h }, { code: 76, name: "patternType", parser: h }, { code: 75, name: "hatchStyle", parser: h }, { code: 92, name: "boundaryPaths", parser: bc, isMultiple: !0 }, { code: 91, name: "numberOfBoundaryPaths", parser: h }, { code: 71, name: "associativity", parser: h }, { code: 63, name: "patternFillColor", parser: h }, { code: 70, name: "solidFill", parser: h }, { code: 2, name: "patternName", parser: h }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 10, name: "elevationPoint", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...z];
|
|
14479
14518
|
class $a {
|
|
14480
14519
|
parseEntity(t, e) {
|
|
14481
14520
|
let s = {};
|
|
14482
14521
|
return this.parser(e, t, s), s;
|
|
14483
14522
|
}
|
|
14484
14523
|
constructor() {
|
|
14485
|
-
Ya(this, "parser",
|
|
14524
|
+
Ya(this, "parser", E(Sc, Ec));
|
|
14486
14525
|
}
|
|
14487
14526
|
}
|
|
14488
14527
|
function qa(i, t, e) {
|
|
@@ -14496,7 +14535,7 @@ class Ka {
|
|
|
14496
14535
|
return this.parser(e, t, s), s;
|
|
14497
14536
|
}
|
|
14498
14537
|
constructor() {
|
|
14499
|
-
qa(this, "parser",
|
|
14538
|
+
qa(this, "parser", E(Tc, Mc));
|
|
14500
14539
|
}
|
|
14501
14540
|
}
|
|
14502
14541
|
qa(Ka, "ForEntityName", "IMAGE");
|
|
@@ -14513,7 +14552,7 @@ class Qa {
|
|
|
14513
14552
|
return this.parser(e, t, s), s;
|
|
14514
14553
|
}
|
|
14515
14554
|
constructor() {
|
|
14516
|
-
Za(this, "parser",
|
|
14555
|
+
Za(this, "parser", E(vc, Ac));
|
|
14517
14556
|
}
|
|
14518
14557
|
}
|
|
14519
14558
|
function Ja(i, t, e) {
|
|
@@ -14527,7 +14566,7 @@ class to {
|
|
|
14527
14566
|
return this.parser(e, t, s), s;
|
|
14528
14567
|
}
|
|
14529
14568
|
constructor() {
|
|
14530
|
-
Ja(this, "parser",
|
|
14569
|
+
Ja(this, "parser", E(Lc, kc));
|
|
14531
14570
|
}
|
|
14532
14571
|
}
|
|
14533
14572
|
Ja(to, "ForEntityName", "LEADER");
|
|
@@ -14542,7 +14581,7 @@ class so {
|
|
|
14542
14581
|
return this.parser(e, t, s), s;
|
|
14543
14582
|
}
|
|
14544
14583
|
constructor() {
|
|
14545
|
-
eo(this, "parser",
|
|
14584
|
+
eo(this, "parser", E(Oc, Nc));
|
|
14546
14585
|
}
|
|
14547
14586
|
}
|
|
14548
14587
|
function io(i, t, e) {
|
|
@@ -14556,7 +14595,7 @@ class no {
|
|
|
14556
14595
|
return this.parser(e, t, s), s;
|
|
14557
14596
|
}
|
|
14558
14597
|
constructor() {
|
|
14559
|
-
io(this, "parser",
|
|
14598
|
+
io(this, "parser", E(Cc));
|
|
14560
14599
|
}
|
|
14561
14600
|
}
|
|
14562
14601
|
io(no, "ForEntityName", "LIGHT");
|
|
@@ -14564,15 +14603,15 @@ io(no, "ForEntityName", "LIGHT");
|
|
|
14564
14603
|
(Ae = {})[Ae.None = 0] = "None", Ae[Ae.InverseLinear = 1] = "InverseLinear", Ae[Ae.InverseSquare = 2] = "InverseSquare";
|
|
14565
14604
|
let Bc = { flag: 0, elevation: 0, thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, Fc = { bulge: 0 }, Rc = [{ code: 42, name: "bulge", parser: h }, { code: 41, name: "endWidth", parser: h }, { code: 40, name: "startWidth", parser: h }, { code: 91, name: "id", parser: h }, { code: 20, name: "y", parser: h }, { code: 10, name: "x", parser: h }], zc = [{ code: 210, name: "extrusionDirection", parser: _ }, { code: 10, name: "vertices", isMultiple: !0, parser(i, t) {
|
|
14566
14605
|
let e = {};
|
|
14567
|
-
return
|
|
14606
|
+
return E(Rc, Fc)(i, t, e), e;
|
|
14568
14607
|
} }, { code: 39, name: "thickness", parser: h }, { code: 38, name: "elevation", parser: h }, { code: 43, name: "constantWidth", parser: h }, { code: 70, name: "flag", parser: h }, { code: 90, name: "numberOfVertices", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...z];
|
|
14569
|
-
class
|
|
14608
|
+
class ti {
|
|
14570
14609
|
parseEntity(t, e) {
|
|
14571
14610
|
let s = {};
|
|
14572
|
-
return
|
|
14611
|
+
return E(zc, Bc)(e, t, s), s;
|
|
14573
14612
|
}
|
|
14574
14613
|
}
|
|
14575
|
-
(
|
|
14614
|
+
(Ni = "ForEntityName") in ti ? Object.defineProperty(ti, Ni, { value: "LWPOLYLINE", enumerable: !0, configurable: !0, writable: !0 }) : ti[Ni] = "LWPOLYLINE";
|
|
14576
14615
|
(os = {})[os.IS_CLOSED = 1] = "IS_CLOSED", os[os.PLINE_GEN = 128] = "PLINE_GEN";
|
|
14577
14616
|
function ro(i, t, e) {
|
|
14578
14617
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
@@ -14600,7 +14639,7 @@ class ao {
|
|
|
14600
14639
|
return this.parser(e, t, s), s;
|
|
14601
14640
|
}
|
|
14602
14641
|
constructor() {
|
|
14603
|
-
ro(this, "parser",
|
|
14642
|
+
ro(this, "parser", E(Vc));
|
|
14604
14643
|
}
|
|
14605
14644
|
}
|
|
14606
14645
|
function oo(i, t, e) {
|
|
@@ -14608,10 +14647,10 @@ function oo(i, t, e) {
|
|
|
14608
14647
|
}
|
|
14609
14648
|
ro(ao, "ForEntityName", "MESH");
|
|
14610
14649
|
let jc = [{ code: 42, name: "fillParameters", parser: h, isMultiple: !0 }, { code: 75, name: "fillCount", parser: h }, { code: 41, name: "parameters", parser: h, isMultiple: !0 }, { code: 74, name: "parameterCount", parser: h }], Wc = [{ code: [74, 41, 75, 42], name: "elements", parser(i, t) {
|
|
14611
|
-
let e =
|
|
14650
|
+
let e = E(jc), s = {};
|
|
14612
14651
|
return e(i, t, s), s;
|
|
14613
14652
|
}, isMultiple: !0 }, { code: 13, name: "miterDirection", parser: _ }, { code: 12, name: "direction", parser: _ }, { code: 11, name: "position", parser: _ }], Dc = [{ code: [11, 12, 13], name: "segments", parser(i, t) {
|
|
14614
|
-
let e =
|
|
14653
|
+
let e = E(Wc), s = {};
|
|
14615
14654
|
return e(i, t, s), s;
|
|
14616
14655
|
}, isMultiple: !0 }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 10, name: "startPosition", parser: _ }, { code: 73, name: "styleCount", parser: h }, { code: 72, name: "vertexCount", parser: h }, { code: 71, name: "flags", parser: h }, { code: 70, name: "justification", parser: h }, { code: 40, name: "scale", parser: h }, { code: 340, name: "styleObjectHandle", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...z];
|
|
14617
14656
|
class ho {
|
|
@@ -14620,7 +14659,7 @@ class ho {
|
|
|
14620
14659
|
return this.parser(e, t, s), s;
|
|
14621
14660
|
}
|
|
14622
14661
|
constructor() {
|
|
14623
|
-
oo(this, "parser",
|
|
14662
|
+
oo(this, "parser", E(Dc));
|
|
14624
14663
|
}
|
|
14625
14664
|
}
|
|
14626
14665
|
oo(ho, "ForEntityName", "MLINE");
|
|
@@ -14657,7 +14696,7 @@ class co {
|
|
|
14657
14696
|
return this.parser(e, t, s), s;
|
|
14658
14697
|
}
|
|
14659
14698
|
constructor() {
|
|
14660
|
-
lo(this, "parser",
|
|
14699
|
+
lo(this, "parser", E(Hc, Gc));
|
|
14661
14700
|
}
|
|
14662
14701
|
}
|
|
14663
14702
|
function uo(i, t, e) {
|
|
@@ -14671,40 +14710,40 @@ class po {
|
|
|
14671
14710
|
return this.parser(e, t, s), s;
|
|
14672
14711
|
}
|
|
14673
14712
|
constructor() {
|
|
14674
|
-
uo(this, "parser",
|
|
14713
|
+
uo(this, "parser", E(Xc, Uc));
|
|
14675
14714
|
}
|
|
14676
14715
|
}
|
|
14677
14716
|
function go(i, t, e) {
|
|
14678
14717
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14679
14718
|
}
|
|
14680
14719
|
uo(po, "ForEntityName", "POINT");
|
|
14681
|
-
let Yc = { startWidth: 0, endWidth: 0, bulge: 0 }, $c = [{ code: 91, name: "id", parser: h }, { code: [...
|
|
14682
|
-
class
|
|
14720
|
+
let Yc = { startWidth: 0, endWidth: 0, bulge: 0 }, $c = [{ code: 91, name: "id", parser: h }, { code: [...ui(71, 75)], name: "faces", isMultiple: !0, parser: h }, { code: 50, name: "tangentDirection", parser: h }, { code: 70, name: "flag", parser: h }, { code: 42, name: "bulge", parser: h }, { code: 41, name: "endWidth", parser: h }, { code: 40, name: "startWidth", parser: h }, { code: 30, name: "z", parser: h }, { code: 20, name: "y", parser: h }, { code: 10, name: "x", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 100 }, ...z];
|
|
14721
|
+
class bn {
|
|
14683
14722
|
parseEntity(t, e) {
|
|
14684
14723
|
let s = {};
|
|
14685
14724
|
return this.parser(e, t, s), s;
|
|
14686
14725
|
}
|
|
14687
14726
|
constructor() {
|
|
14688
|
-
go(this, "parser",
|
|
14727
|
+
go(this, "parser", E($c, Yc));
|
|
14689
14728
|
}
|
|
14690
14729
|
}
|
|
14691
14730
|
function mo(i, t, e) {
|
|
14692
14731
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14693
14732
|
}
|
|
14694
|
-
go(
|
|
14695
|
-
let qc = { 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: [] }, Kc = [{ code: 0, name: "vertices", isMultiple: !0, parser: (i, t) => O(i, 0, "VERTEX") ? (i = t.next(), new
|
|
14733
|
+
go(bn, "ForEntityName", "VERTEX");
|
|
14734
|
+
let qc = { 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: [] }, Kc = [{ code: 0, name: "vertices", isMultiple: !0, parser: (i, t) => O(i, 0, "VERTEX") ? (i = t.next(), new bn().parseEntity(t, i)) : Ms }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 75, name: "smoothType", parser: h }, { code: 74, name: "surfaceNDensity", parser: h }, { code: 73, name: "surfaceMDensity", parser: h }, { code: 72, name: "meshNVertexCount", parser: h }, { code: 71, name: "meshMVertexCount", parser: h }, { code: 41, name: "endWidth", parser: h }, { code: 40, name: "startWidth", parser: h }, { code: 70, name: "flag", parser: h }, { code: 39, name: "thickness", parser: h }, { code: 30, name: "elevation", parser: h }, { code: 20 }, { code: 10 }, { code: 66 }, { code: 100, name: "subclassMarker", parser: h }, ...z];
|
|
14696
14735
|
class yo {
|
|
14697
14736
|
parseEntity(t, e) {
|
|
14698
14737
|
let s = {};
|
|
14699
14738
|
return this.parser(e, t, s), s;
|
|
14700
14739
|
}
|
|
14701
14740
|
constructor() {
|
|
14702
|
-
mo(this, "parser",
|
|
14741
|
+
mo(this, "parser", E(Kc, qc));
|
|
14703
14742
|
}
|
|
14704
14743
|
}
|
|
14705
14744
|
mo(yo, "ForEntityName", "POLYLINE");
|
|
14706
|
-
(
|
|
14707
|
-
var
|
|
14745
|
+
(tt = {})[tt.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", tt[tt.CURVE_FIT = 2] = "CURVE_FIT", tt[tt.SPLINE_FIT = 4] = "SPLINE_FIT", tt[tt.POLYLINE_3D = 8] = "POLYLINE_3D", tt[tt.POLYGON_3D = 16] = "POLYGON_3D", tt[tt.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", tt[tt.POLYFACE = 64] = "POLYFACE", tt[tt.CONTINUOUS = 128] = "CONTINUOUS";
|
|
14746
|
+
var Ws = ((Kt = {})[Kt.NONE = 0] = "NONE", Kt[Kt.QUADRATIC = 5] = "QUADRATIC", Kt[Kt.CUBIC = 6] = "CUBIC", Kt[Kt.BEZIER = 8] = "BEZIER", Kt);
|
|
14708
14747
|
function _o(i, t, e) {
|
|
14709
14748
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14710
14749
|
}
|
|
@@ -14715,21 +14754,21 @@ class wo {
|
|
|
14715
14754
|
return this.parser(e, t, s), s;
|
|
14716
14755
|
}
|
|
14717
14756
|
constructor() {
|
|
14718
|
-
_o(this, "parser",
|
|
14757
|
+
_o(this, "parser", E(Zc));
|
|
14719
14758
|
}
|
|
14720
14759
|
}
|
|
14721
14760
|
function xo(i, t, e) {
|
|
14722
14761
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14723
14762
|
}
|
|
14724
14763
|
_o(wo, "ForEntityName", "RAY");
|
|
14725
|
-
let Qc = [...
|
|
14764
|
+
let Qc = [...Ii("data"), { code: 70, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...z];
|
|
14726
14765
|
class fo {
|
|
14727
14766
|
parseEntity(t, e) {
|
|
14728
14767
|
let s = {};
|
|
14729
14768
|
return this.parser(e, t, s), s;
|
|
14730
14769
|
}
|
|
14731
14770
|
constructor() {
|
|
14732
|
-
xo(this, "parser",
|
|
14771
|
+
xo(this, "parser", E(Qc));
|
|
14733
14772
|
}
|
|
14734
14773
|
}
|
|
14735
14774
|
function bo(i, t, e) {
|
|
@@ -14743,35 +14782,35 @@ class Io {
|
|
|
14743
14782
|
return this.parser(e, t, s), s;
|
|
14744
14783
|
}
|
|
14745
14784
|
constructor() {
|
|
14746
|
-
bo(this, "parser",
|
|
14785
|
+
bo(this, "parser", E(td, Jc));
|
|
14747
14786
|
}
|
|
14748
14787
|
}
|
|
14749
|
-
function
|
|
14788
|
+
function Po(i, t, e) {
|
|
14750
14789
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14751
14790
|
}
|
|
14752
14791
|
bo(Io, "ForEntityName", "SECTION");
|
|
14753
|
-
let ed = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, sd = [{ code: 210, name: "extrusionDirection", parser: _ }, { code: 39, name: "thickness", parser: h }, { code: [...
|
|
14754
|
-
class
|
|
14792
|
+
let ed = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, sd = [{ code: 210, name: "extrusionDirection", parser: _ }, { code: 39, name: "thickness", parser: h }, { code: [...ui(10, 14)], name: "points", isMultiple: !0, parser: _ }, { code: 100, name: "subclassMarker", parser: h }, ...z];
|
|
14793
|
+
class Eo {
|
|
14755
14794
|
parseEntity(t, e) {
|
|
14756
14795
|
let s = {};
|
|
14757
14796
|
return this.parser(e, t, s), s;
|
|
14758
14797
|
}
|
|
14759
14798
|
constructor() {
|
|
14760
|
-
|
|
14799
|
+
Po(this, "parser", E(sd, ed));
|
|
14761
14800
|
}
|
|
14762
14801
|
}
|
|
14763
14802
|
function So(i, t, e) {
|
|
14764
14803
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14765
14804
|
}
|
|
14766
|
-
Eo
|
|
14767
|
-
let id = [{ code: 350, name: "historyObjectSoftId", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...
|
|
14805
|
+
Po(Eo, "ForEntityName", "SOLID");
|
|
14806
|
+
let id = [{ code: 350, name: "historyObjectSoftId", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...Ii("data"), { code: 70, name: "version", parser: h }, { code: 100 }, ...z];
|
|
14768
14807
|
class Mo {
|
|
14769
14808
|
parseEntity(t, e) {
|
|
14770
14809
|
let s = {};
|
|
14771
14810
|
return this.parser(e, t, s), s;
|
|
14772
14811
|
}
|
|
14773
14812
|
constructor() {
|
|
14774
|
-
So(this, "parser",
|
|
14813
|
+
So(this, "parser", E(id));
|
|
14775
14814
|
}
|
|
14776
14815
|
}
|
|
14777
14816
|
function To(i, t, e) {
|
|
@@ -14785,7 +14824,7 @@ class Ao {
|
|
|
14785
14824
|
return this.parser(e, t, s), s;
|
|
14786
14825
|
}
|
|
14787
14826
|
constructor() {
|
|
14788
|
-
To(this, "parser",
|
|
14827
|
+
To(this, "parser", E(rd, nd));
|
|
14789
14828
|
}
|
|
14790
14829
|
}
|
|
14791
14830
|
To(Ao, "ForEntityName", "SPLINE");
|
|
@@ -14800,11 +14839,11 @@ class ko {
|
|
|
14800
14839
|
return this.parser(e, t, s), s;
|
|
14801
14840
|
}
|
|
14802
14841
|
constructor() {
|
|
14803
|
-
vo(this, "parser",
|
|
14842
|
+
vo(this, "parser", E(ad));
|
|
14804
14843
|
}
|
|
14805
14844
|
}
|
|
14806
14845
|
vo(ko, "ForEntityName", "SUN");
|
|
14807
|
-
class
|
|
14846
|
+
class ei {
|
|
14808
14847
|
parseEntity(t, e) {
|
|
14809
14848
|
let s = {};
|
|
14810
14849
|
for (; !t.isEOF(); ) {
|
|
@@ -14983,7 +15022,7 @@ class ti {
|
|
|
14983
15022
|
function Lo(i, t, e) {
|
|
14984
15023
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
14985
15024
|
}
|
|
14986
|
-
(
|
|
15025
|
+
(Oi = "ForEntityName") in ei ? Object.defineProperty(ei, Oi, { value: "ACAD_TABLE", enumerable: !0, configurable: !0, writable: !0 }) : ei[Oi] = "ACAD_TABLE";
|
|
14987
15026
|
let od = [{ code: 11, name: "xAxisDirection", parser: _ }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 1, name: "text", parser: h }, { code: 10, name: "position", parser: _ }, { code: 3, name: "styleName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...z];
|
|
14988
15027
|
class No {
|
|
14989
15028
|
parseEntity(t, e) {
|
|
@@ -14991,22 +15030,22 @@ class No {
|
|
|
14991
15030
|
return this.parser(e, t, s), s;
|
|
14992
15031
|
}
|
|
14993
15032
|
constructor() {
|
|
14994
|
-
Lo(this, "parser",
|
|
15033
|
+
Lo(this, "parser", E(od));
|
|
14995
15034
|
}
|
|
14996
15035
|
}
|
|
14997
15036
|
Lo(No, "ForEntityName", "TOLERANCE");
|
|
14998
|
-
var hd = ((
|
|
15037
|
+
var hd = ((et = {})[et.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", et[et.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", et[et.NOT_USED = 4] = "NOT_USED", et[et.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", et[et.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", et[et.FOR_POLYLINE = 32] = "FOR_POLYLINE", et[et.FOR_POLYGON = 64] = "FOR_POLYGON", et[et.POLYFACE = 128] = "POLYFACE", et);
|
|
14999
15038
|
let ld = [{ code: [335, 343, 344, 91], name: "softPointers", isMultiple: !0, parser: h }, { code: 361, name: "sunId", parser: h }, { code: 431, name: "ambientLightColorName", parser: h }, { code: 421, name: "ambientLightColorInstance", parser: h }, { code: 63, name: "ambientLightColorIndex", parser: h }, { code: 142, name: "contrast", parser: h }, { code: 141, name: "brightness", parser: h }, { code: 282, name: "defaultLightingType", parser: h }, { code: 292, name: "isDefaultLighting", parser: N }, { code: 348, name: "visualStyleId", parser: h }, { code: 333, name: "shadePlotId", parser: h }, { code: 332, name: "backgroundId", parser: h }, { code: 61, name: "majorGridFrequency", parser: h }, { code: 170, name: "shadePlotMode", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 346, name: "ucsBaseId", parser: h }, { code: 345, name: "ucsId", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 74, name: "iconFlag", parser: h }, { code: 71, name: "ucsPerViewport", parser: h }, { code: 281, name: "renderMode", parser: h }, { code: 1, name: "sheetName", parser: h }, { code: 340, name: "clippingBoundaryId", parser: h }, { code: 90, name: "statusBitFlags", parser: h }, { code: 331, name: "frozenLayerIds", isMultiple: !0, parser: h }, { code: 72, name: "circleZoomPercent", parser: h }, { code: 51, name: "viewTwistAngle", parser: h }, { code: 50, name: "snapAngle", parser: h }, { code: 45, name: "viewHeight", parser: h }, { code: 44, name: "backClipZ", parser: h }, { code: 43, name: "frontClipZ", parser: h }, { code: 42, name: "perspectiveLensLength", parser: h }, { code: 17, name: "targetPoint", parser: _ }, { code: 16, name: "viewDirection", parser: _ }, { code: 15, name: "gridSpacing", parser: _ }, { code: 14, name: "snapSpacing", parser: _ }, { code: 13, name: "snapBase", parser: _ }, { code: 12, name: "displayCenter", parser: _ }, { code: 69, name: "viewportId", parser: h }, { code: 68, name: "status", parser: h }, { code: 41, name: "height", parser: h }, { code: 40, name: "width", parser: h }, { code: 10, name: "viewportCenter", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...z];
|
|
15000
|
-
class
|
|
15039
|
+
class si {
|
|
15001
15040
|
parseEntity(t, e) {
|
|
15002
15041
|
let s = {};
|
|
15003
|
-
return
|
|
15042
|
+
return E(ld)(e, t, s), s;
|
|
15004
15043
|
}
|
|
15005
15044
|
}
|
|
15006
15045
|
function Oo(i, t, e) {
|
|
15007
15046
|
return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
|
|
15008
15047
|
}
|
|
15009
|
-
(
|
|
15048
|
+
(Ci = "ForEntityName") in si ? Object.defineProperty(si, Ci, { value: "VIEWPORT", enumerable: !0, configurable: !0, writable: !0 }) : si[Ci] = "VIEWPORT";
|
|
15010
15049
|
let cd = { brightness: 50, constrast: 50, fade: 0 }, dd = [{ code: 14, name: "boundary", isMultiple: !0, parser: _ }, { code: 91, name: "numberOfVertices", parser: h }, { code: 71, name: "boundaryType", parser: h }, { code: 360, name: "imageDefReactorHardId", parser: h }, { code: 283, name: "fade", parser: h }, { code: 282, name: "contrast", parser: h }, { code: 281, name: "brightness", parser: h }, { code: 280, name: "isClipping", parser: N }, { code: 70, name: "displayFlag", parser: h }, { code: 340, name: "imageDefHardId", parser: h }, { code: 13, name: "imageSize", parser: _ }, { code: 12, name: "vDirection", parser: _ }, { code: 11, name: "uDirection", parser: _ }, { code: 10, name: "position", parser: _ }, { code: 90, name: "classVersion", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...z];
|
|
15011
15050
|
class Co {
|
|
15012
15051
|
parseEntity(t, e) {
|
|
@@ -15014,7 +15053,7 @@ class Co {
|
|
|
15014
15053
|
return this.parser(e, t, s), s;
|
|
15015
15054
|
}
|
|
15016
15055
|
constructor() {
|
|
15017
|
-
Oo(this, "parser",
|
|
15056
|
+
Oo(this, "parser", E(dd, cd));
|
|
15018
15057
|
}
|
|
15019
15058
|
}
|
|
15020
15059
|
Oo(Co, "ForEntityName", "WIPEOUT");
|
|
@@ -15029,7 +15068,7 @@ class Fo {
|
|
|
15029
15068
|
return this.parser(e, t, s), s;
|
|
15030
15069
|
}
|
|
15031
15070
|
constructor() {
|
|
15032
|
-
Bo(this, "parser",
|
|
15071
|
+
Bo(this, "parser", E(ud));
|
|
15033
15072
|
}
|
|
15034
15073
|
}
|
|
15035
15074
|
Bo(Fo, "ForEntityName", "XLINE");
|
|
@@ -15038,7 +15077,7 @@ function Ro(i) {
|
|
|
15038
15077
|
if (!i) throw TypeError("entity cannot be undefined or null");
|
|
15039
15078
|
i.handle || (i.handle = pd++);
|
|
15040
15079
|
}
|
|
15041
|
-
let gd = Object.fromEntries([Ma,
|
|
15080
|
+
let gd = Object.fromEntries([Ma, Qs, Oa, Ra, Va, Wa, Zs, Ga, Ua, Ka, Qa, to, so, no, ti, ao, ho, Ba, co, po, yo, wo, fo, Io, Eo, Mo, Ao, ko, ei, La, No, $a, bn, si, Co, Fo].map((i) => [i.ForEntityName, new i()]));
|
|
15042
15081
|
function zo(i, t) {
|
|
15043
15082
|
let e = [];
|
|
15044
15083
|
for (; !O(i, 0, "EOF"); ) {
|
|
@@ -15100,10 +15139,10 @@ function md(i, t) {
|
|
|
15100
15139
|
}
|
|
15101
15140
|
let re = [{ code: 100, name: "subclassMarker", parser: h }, { code: 330, name: "ownerObjectId", parser: h }, { code: 102, isMultiple: !0, parser(i, t) {
|
|
15102
15141
|
for (; !O(i, 0, "EOF") && !O(i, 102, "}"); ) i = t.next();
|
|
15103
|
-
} }, { code: 5, name: "handle", parser: h }], yd = [{ code: 70, name: "flag", parser: h }, { code: 2, name: "appName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re], _d =
|
|
15142
|
+
} }, { code: 5, name: "handle", parser: h }], yd = [{ code: 70, name: "flag", parser: h }, { code: 2, name: "appName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re], _d = E(yd), wd = E([{ code: 310, name: "bmpPreview", parser: h }, { code: 281, name: "scalability", parser: h }, { code: 280, name: "explodability", parser: h }, { code: 70, name: "insertionUnits", parser: h }, { code: 340, name: "layoutObjects", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re]), xd = E([...fn.map((i) => ({ ...i, parser: h })), { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 105, name: "handle", parser: h }, ...re.filter((i) => i.code !== 5)]), fd = E([{ code: 347, name: "materialObjectId", parser: h }, { code: 390, name: "plotStyleNameObjectId", parser: h }, { code: 370, name: "lineweight", parser: h }, { code: 290, name: "isPlotting", parser: N }, { code: 6, name: "lineType", parser: h }, { code: 62, name: "colorIndex", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re]), bd = E([{ code: 9, name: "text", parser: h }, { code: 45, name: "offsetY", parser: h }, { code: 44, name: "offsetX", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 46, name: "scale", parser: h }, { code: 340, name: "styleObjectId", parser: h }, { code: 75, name: "shapeNumber", parser: h }, { code: 74, name: "elementTypeFlag", parser: h }, { code: 49, name: "elementLength", parser: h }], { elementTypeFlag: 0, elementLength: 0 }), Id = E([{ code: 49, name: "pattern", parser(i, t) {
|
|
15104
15143
|
let e = {};
|
|
15105
15144
|
return bd(i, t, e), e;
|
|
15106
|
-
}, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: h }, { code: 73, name: "numberOfLineTypes", parser: h }, { code: 72, parser: h }, { code: 3, name: "description", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re]),
|
|
15145
|
+
}, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: h }, { code: 73, name: "numberOfLineTypes", parser: h }, { code: 72, parser: h }, { code: 3, name: "description", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re]), Pd = E([{ code: 1e3, name: "extendedFont", parser: h }, { code: 1001 }, { code: 4, name: "bigFont", parser: h }, { code: 3, name: "font", parser: h }, { code: 42, name: "lastHeight", parser: h }, { code: 71, name: "textGenerationFlag", parser: h }, { code: 50, name: "obliqueAngle", parser: h }, { code: 41, name: "widthFactor", parser: h }, { code: 40, name: "fixedTextHeight", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re]), Ed = [{ code: 13, name: "orthographicOrigin", parser: _ }, { code: 71, name: "orthographicType", parser: h }, { code: 346, name: "baseUcsHandle", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "isOrthographic", parser: N }, { code: 12, name: "yAxis", parser: _ }, { code: 11, name: "xAxis", parser: _ }, { code: 10, name: "origin", parser: _ }, { code: 70, name: "flag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re], Sd = E(Ed), Md = [{ code: 346, name: "baseUcsId", parser: h }, { code: 345, name: "ucsId", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 361, name: "sunHardId", parser: h }, { code: 348, name: "styleHardId", parser: h }, { code: 334, name: "liveSectionSoftId", parser: h }, { code: 332, name: "backgroundSoftId", parser: h }, { code: 73, name: "isPlottable", parser: N }, { code: 72, name: "isUcsAssociated", parser: N }, { code: 281, name: "renderMode", parser: h }, { code: 71, name: "viewMode", parser: h }, { code: 50, name: "twistAngle", parser: h }, { code: 44, name: "backClippingPlane", parser: h }, { code: 43, name: "frontClippingPlane", parser: h }, { code: 42, name: "lensLength", parser: h }, { code: 12, name: "target", parser: _ }, { code: 11, name: "direction", parser: _ }, { code: 10, name: "center", parser: _ }, { code: 41, name: "width", parser: h }, { code: 40, name: "height", parser: h }, { code: 70, name: "flag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re], Td = E(Md), Ad = E([{ code: [63, 421, 431], name: "ambientColor", parser: h }, { code: 142, name: "contrast", parser: h }, { code: 141, name: "brightness", parser: h }, { code: 282, name: "defaultLightingType", parser: h }, { code: 292, name: "isDefaultLightingOn", parser: N }, { code: 348, name: "visualStyleObjectId", parser: h }, { code: 333, name: "shadePlotObjectId", parser: h }, { code: 332, name: "backgroundObjectId", parser: h }, { code: 61, name: "majorGridLines", parser: h }, { code: 170, name: "shadePlotSetting", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 74, name: "ucsIconSetting", parser: h }, { code: 71, name: "viewMode", parser: h }, { code: 281, name: "renderMode", parser: h }, { code: 1, name: "styleSheet", parser: h }, { code: [331, 441], name: "frozenLayers", parser: h, isMultiple: !0 }, { code: 72, name: "circleSides", parser: h }, { code: 51, name: "viewTwistAngle", parser: h }, { code: 50, name: "snapRotationAngle", parser: h }, { code: 45, name: "viewHeight", parser: h }, { code: 44, name: "backClippingPlane", parser: h }, { code: 43, name: "frontClippingPlane", parser: h }, { code: 42, name: "lensLength", parser: h }, { code: 17, name: "viewTarget", parser: _ }, { code: 16, name: "viewDirectionFromTarget", parser: _ }, { code: 15, name: "gridSpacing", parser: _ }, { code: 14, name: "snapSpacing", parser: _ }, { code: 13, name: "snapBasePoint", parser: _ }, { code: 12, name: "center", parser: _ }, { code: 11, name: "upperRightCorner", parser: _ }, { code: 10, name: "lowerLeftCorner", parser: _ }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...re]), vd = { APPID: _d, BLOCK_RECORD: wd, DIMSTYLE: xd, LAYER: fd, LTYPE: Id, STYLE: Pd, UCS: Sd, VIEW: Td, VPORT: Ad }, kd = E([{ code: 70, name: "maxNumberOfEntries", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 330, name: "ownerObjectId", parser: h }, { code: 102, parser: Ft }, { code: 102, parser: Ft }, { code: 102, parser: Ft }, { code: 360, isMultiple: !0 }, { code: 5, name: "handle", parser: h }, { code: 2, name: "name", parser: h }]);
|
|
15107
15146
|
function Ld(i, t) {
|
|
15108
15147
|
var s;
|
|
15109
15148
|
let e = {};
|
|
@@ -15186,10 +15225,10 @@ function Od(i, t) {
|
|
|
15186
15225
|
}
|
|
15187
15226
|
return e;
|
|
15188
15227
|
}
|
|
15189
|
-
let
|
|
15228
|
+
let In = [{ code: 330, name: "ownerObjectId", parser: h }, { code: 102, parser: Ft }, { code: 102, parser: Ft }, { code: 102, parser: Ft }, { code: 5, name: "handle", parser: h }], Vo = [{ code: 333, name: "shadePlotId", parser: h }, { code: 149, name: "imageOriginY", parser: h }, { code: 148, name: "imageOriginX", parser: h }, { code: 147, name: "scaleFactor", parser: h }, { code: 78, name: "shadePlotCustomDPI", parser: h }, { code: 77, name: "shadePlotResolution", parser: h }, { code: 76, name: "shadePlotMode", parser: h }, { code: 75, name: "standardScaleType", parser: h }, { code: 7, name: "currentStyleSheet", parser: h }, { code: 74, name: "plotType", parser: h }, { code: 73, name: "plotRotation", parser: h }, { code: 72, name: "plotPaperUnit", parser: h }, { code: 70, name: "layoutFlag", parser: h }, { code: 143, name: "printScaleDenominator", parser: h }, { code: 142, name: "printScaleNumerator", parser: h }, { code: 141, name: "windowAreaYMax", parser: h }, { code: 140, name: "windowAreaXMax", parser: h }, { code: 49, name: "windowAreaYMin", parser: h }, { code: 48, name: "windowAreaXMin", parser: h }, { code: 47, name: "plotOriginY", parser: h }, { code: 46, name: "plotOriginX", parser: h }, { code: 45, name: "paperHeight", parser: h }, { code: 44, name: "paperWidth", parser: h }, { code: 43, name: "marginTop", parser: h }, { code: 42, name: "marginRight", parser: h }, { code: 41, name: "marginBottom", parser: h }, { code: 40, name: "marginLeft", parser: h }, { code: 6, name: "plotViewName", parser: h }, { code: 4, name: "paperSize", parser: h }, { code: 2, name: "configName", parser: h }, { code: 1, name: "pageSetupName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...In], Cd = [{ code: 346, name: "orthographicUcsId", parser: h }, { code: 345, name: "namedUcsId", parser: h }, { code: 331, name: "viewportId", parser: h }, { code: 330, name: "paperSpaceTableId", parser: h }, { code: 76, name: "orthographicType", parser: h }, { code: 17, name: "ucsYAxis", parser: _ }, { code: 16, name: "ucsXAxis", parser: _ }, { code: 13, name: "ucsOrigin", parser: _ }, { code: 146, name: "elevation", parser: h }, { code: 15, name: "maxExtent", parser: _ }, { code: 14, name: "minExtent", parser: _ }, { code: 12, name: "insertionPoint", parser: _ }, { code: 11, name: "maxLimit", parser: _ }, { code: 10, name: "minLimit", parser: _ }, { code: 71, name: "tabOrder", parser: h }, { code: 70, name: "controlFlag", parser: h }, { code: 1, name: "layoutName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...Vo], Bd = [{ code: 3, name: "entries", parser: (i, t) => {
|
|
15190
15229
|
let e = { name: i.value };
|
|
15191
15230
|
return (i = t.next()).code === 350 ? e.objectSoftId = i.value : i.code === 360 ? e.objectHardId = i.value : t.rewind(), e;
|
|
15192
|
-
}, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: h }, { code: 280, name: "isHardOwned", parser: N }, { code: 100, name: "subclassMarker", parser: h }, ...
|
|
15231
|
+
}, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: h }, { code: 280, name: "isHardOwned", parser: N }, { code: 100, name: "subclassMarker", parser: h }, ...In], Fd = [{ code: 40, name: "wcsToOCSTransform", parser: Cr }, { code: 40, name: "ocsToWCSTransform", parser: Cr }, { code: 41, name: "backClippingDistance", parser: h }, { code: 73, name: "isBackClipping", parser: N, pushContext: !0 }, { code: 40, name: "frontClippingDistance", parser: h }, { code: 72, name: "isFrontClipping", parser: N, pushContext: !0 }, { code: 71, name: "isClipBoundaryDisplayed", parser: N }, { code: 11, name: "position", parser: _ }, { code: 210, name: "normal", parser: _ }, { code: 10, name: "boundaryVertices", parser: _, isMultiple: !0 }, { code: 70, name: "boundaryCount", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 100 }, ...In];
|
|
15193
15232
|
function Cr(i, t) {
|
|
15194
15233
|
let e = [];
|
|
15195
15234
|
for (let s = 0; s < 3 && O(i, 40); ++s) {
|
|
@@ -15205,7 +15244,7 @@ function Vd(i, t) {
|
|
|
15205
15244
|
for (; i.code !== 0 || !["EOF", "ENDSEC"].includes(i.value); ) {
|
|
15206
15245
|
let s = i.value, n = zd[s];
|
|
15207
15246
|
if (i.code === 0 && (n != null && n.length)) {
|
|
15208
|
-
let r =
|
|
15247
|
+
let r = E(n), a = { name: s };
|
|
15209
15248
|
r(i = t.next(), t, a) ? (e.push(a), i = t.peek()) : i = t.next();
|
|
15210
15249
|
} else i = t.next();
|
|
15211
15250
|
}
|
|
@@ -15291,11 +15330,11 @@ class Wd extends EventTarget {
|
|
|
15291
15330
|
(Ne = {})[Ne.INCHES = 0] = "INCHES", Ne[Ne.MILLIMETERS = 1] = "MILLIMETERS", Ne[Ne.PIXELS = 2] = "PIXELS";
|
|
15292
15331
|
(It = {})[It.LAST_SCREEN_DISPLAY = 0] = "LAST_SCREEN_DISPLAY", It[It.DRAWING_EXTENTS = 1] = "DRAWING_EXTENTS", It[It.DRAWING_LIMITS = 2] = "DRAWING_LIMITS", It[It.VIEW_SPECIFIED = 3] = "VIEW_SPECIFIED", It[It.WINDOW_SPECIFIED = 4] = "WINDOW_SPECIFIED", It[It.LAYOUT_INFORMATION = 5] = "LAYOUT_INFORMATION";
|
|
15293
15332
|
(Qt = {})[Qt.AS_DISPLAYED = 0] = "AS_DISPLAYED", Qt[Qt.WIREFRAME = 1] = "WIREFRAME", Qt[Qt.HIDDEN = 2] = "HIDDEN", Qt[Qt.RENDERED = 3] = "RENDERED";
|
|
15294
|
-
(
|
|
15333
|
+
(Pt = {})[Pt.DRAFT = 0] = "DRAFT", Pt[Pt.PREVIEW = 1] = "PREVIEW", Pt[Pt.NORMAL = 2] = "NORMAL", Pt[Pt.PRESENTATION = 3] = "PRESENTATION", Pt[Pt.MAXIMUM = 4] = "MAXIMUM", Pt[Pt.CUSTOM = 5] = "CUSTOM";
|
|
15295
15334
|
(Jt = {})[Jt.NONE = 0] = "NONE", Jt[Jt.AbsoluteRotation = 1] = "AbsoluteRotation", Jt[Jt.TextEmbedded = 2] = "TextEmbedded", Jt[Jt.ShapeEmbedded = 4] = "ShapeEmbedded";
|
|
15296
|
-
(
|
|
15335
|
+
(Bi = {})[Bi.PaperSpace = 1] = "PaperSpace";
|
|
15297
15336
|
(Oe = {})[Oe.XrefDependent = 16] = "XrefDependent", Oe[Oe.XrefResolved = 32] = "XrefResolved", Oe[Oe.Referenced = 64] = "Referenced";
|
|
15298
|
-
(
|
|
15337
|
+
(Et = {})[Et.Off = 0] = "Off", Et[Et.Perspective = 1] = "Perspective", Et[Et.ClipFront = 2] = "ClipFront", Et[Et.ClipBack = 4] = "ClipBack", Et[Et.UcsFollow = 8] = "UcsFollow", Et[Et.ClipFrontByFrontZ = 16] = "ClipFrontByFrontZ";
|
|
15299
15338
|
class Dd {
|
|
15300
15339
|
parse(t) {
|
|
15301
15340
|
const e = new Wd(), s = this.getDxfInfoFromBuffer(t);
|
|
@@ -15312,18 +15351,18 @@ class Dd {
|
|
|
15312
15351
|
const y = (r + s.decode(p, { stream: !0 })).split(/\r?\n/);
|
|
15313
15352
|
r = y.pop() ?? "";
|
|
15314
15353
|
for (let w = 0; w < y.length; w++) {
|
|
15315
|
-
const
|
|
15316
|
-
if (
|
|
15354
|
+
const f = y[w].trim();
|
|
15355
|
+
if (f === "SECTION" && ((c = y[w + 2]) == null ? void 0 : c.trim()) === "HEADER")
|
|
15317
15356
|
l = !0;
|
|
15318
|
-
else if (
|
|
15357
|
+
else if (f === "ENDSEC" && l)
|
|
15319
15358
|
return { version: a, encoding: o };
|
|
15320
|
-
if (l &&
|
|
15321
|
-
const
|
|
15322
|
-
|
|
15323
|
-
} else if (l &&
|
|
15324
|
-
const
|
|
15325
|
-
if (
|
|
15326
|
-
const I = Xr[
|
|
15359
|
+
if (l && f === "$ACADVER") {
|
|
15360
|
+
const P = (d = y[w + 2]) == null ? void 0 : d.trim();
|
|
15361
|
+
P && (a = new Ot(P));
|
|
15362
|
+
} else if (l && f === "$DWGCODEPAGE") {
|
|
15363
|
+
const P = (u = y[w + 2]) == null ? void 0 : u.trim();
|
|
15364
|
+
if (P) {
|
|
15365
|
+
const I = Xr[P];
|
|
15327
15366
|
o = nh(I);
|
|
15328
15367
|
}
|
|
15329
15368
|
}
|
|
@@ -15343,13 +15382,13 @@ class Br {
|
|
|
15343
15382
|
return t.type == "3DFACE" ? this.convertFace(t) : t.type == "ARC" ? this.convertArc(t) : t.type == "ATTDEF" ? this.convertAttributeDefinition(t) : t.type == "ATTRIB" ? this.convertAttribute(t) : t.type == "CIRCLE" ? this.convertCirle(t) : t.type == "DIMENSION" ? this.convertDimension(t) : t.type == "ELLIPSE" ? this.convertEllipse(t) : t.type == "HATCH" ? this.convertHatch(t) : t.type == "IMAGE" ? this.convertImage(t) : t.type == "LEADER" ? this.convertLeader(t) : t.type == "LINE" ? this.convertLine(t) : t.type == "LWPOLYLINE" ? this.convertLWPolyline(t) : t.type == "MTEXT" ? this.convertMText(t) : t.type == "POLYLINE" ? this.convertPolyline(t) : t.type == "POINT" ? this.convertPoint(t) : t.type == "RAY" ? this.convertRay(t) : t.type == "SPLINE" ? this.convertSpline(t) : t.type == "ACAD_TABLE" ? this.convertTable(t) : t.type == "TEXT" ? this.convertText(t) : t.type == "SOLID" ? this.convertSolid(t) : t.type == "VIEWPORT" ? this.convertViewport(t) : t.type == "WIPEOUT" ? this.convertWipeout(t) : t.type == "XLINE" ? this.convertXline(t) : t.type == "INSERT" ? this.convertBlockReference(t) : null;
|
|
15344
15383
|
}
|
|
15345
15384
|
convertFace(t) {
|
|
15346
|
-
const e = new
|
|
15385
|
+
const e = new Qi();
|
|
15347
15386
|
return t.vertices.forEach(
|
|
15348
15387
|
(s, n) => e.setVertexAt(n, s)
|
|
15349
15388
|
), e;
|
|
15350
15389
|
}
|
|
15351
15390
|
convertArc(t) {
|
|
15352
|
-
return new
|
|
15391
|
+
return new Yi(
|
|
15353
15392
|
t.center,
|
|
15354
15393
|
t.radius,
|
|
15355
15394
|
k.degToRad(t.startAngle),
|
|
@@ -15358,18 +15397,18 @@ class Br {
|
|
|
15358
15397
|
);
|
|
15359
15398
|
}
|
|
15360
15399
|
convertAttributeCommon(t, e) {
|
|
15361
|
-
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 &
|
|
15400
|
+
e.textString = t.text, e.height = t.textHeight, e.position.copy(t.startPoint), e.rotation = t.rotation, e.oblique = t.obliqueAngle ?? 0, e.thickness = t.thickness, e.tag = t.tag, e.fieldLength = 0, e.isInvisible = (t.attributeFlag & st.Invisible) !== 0, e.isConst = (t.attributeFlag & st.Const) !== 0, e.isVerifiable = (t.attributeFlag & st.Verifiable) !== 0, e.isPreset = (t.attributeFlag & st.Preset) !== 0, e.isReallyLocked = !!t.isReallyLocked, e.isMTextAttribute = (t.mtextFlag & se.MultiLine) !== 0, e.isConstMTextAttribute = (t.mtextFlag & se.ConstMultiLine) !== 0;
|
|
15362
15401
|
}
|
|
15363
15402
|
convertAttribute(t) {
|
|
15364
|
-
const e = new
|
|
15403
|
+
const e = new qi();
|
|
15365
15404
|
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;
|
|
15366
15405
|
}
|
|
15367
15406
|
convertAttributeDefinition(t) {
|
|
15368
|
-
const e = new
|
|
15407
|
+
const e = new $i();
|
|
15369
15408
|
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;
|
|
15370
15409
|
}
|
|
15371
15410
|
convertCirle(t) {
|
|
15372
|
-
return new
|
|
15411
|
+
return new Ki(
|
|
15373
15412
|
t.center,
|
|
15374
15413
|
t.radius,
|
|
15375
15414
|
t.extrusionDirection ?? b.Z_AXIS
|
|
@@ -15377,7 +15416,7 @@ class Br {
|
|
|
15377
15416
|
}
|
|
15378
15417
|
convertEllipse(t) {
|
|
15379
15418
|
const e = new b(t.majorAxisEndPoint), s = e.length();
|
|
15380
|
-
return new
|
|
15419
|
+
return new Zi(
|
|
15381
15420
|
t.center,
|
|
15382
15421
|
t.extrusionDirection ?? b.Z_AXIS,
|
|
15383
15422
|
e,
|
|
@@ -15389,15 +15428,15 @@ class Br {
|
|
|
15389
15428
|
}
|
|
15390
15429
|
convertLine(t) {
|
|
15391
15430
|
const e = t.startPoint, s = t.endPoint;
|
|
15392
|
-
return new
|
|
15393
|
-
new
|
|
15394
|
-
new
|
|
15431
|
+
return new oi(
|
|
15432
|
+
new x(e.x, e.y, e.z || 0),
|
|
15433
|
+
new x(s.x, s.y, s.z || 0)
|
|
15395
15434
|
);
|
|
15396
15435
|
}
|
|
15397
15436
|
convertSpline(t) {
|
|
15398
15437
|
try {
|
|
15399
15438
|
if (t.numberOfControlPoints > 0 && t.numberOfKnots > 0)
|
|
15400
|
-
return new
|
|
15439
|
+
return new li(
|
|
15401
15440
|
t.controlPoints,
|
|
15402
15441
|
t.knots,
|
|
15403
15442
|
t.weights,
|
|
@@ -15405,7 +15444,7 @@ class Br {
|
|
|
15405
15444
|
!!(t.flag & 1)
|
|
15406
15445
|
);
|
|
15407
15446
|
if (t.numberOfFitPoints > 0)
|
|
15408
|
-
return new
|
|
15447
|
+
return new li(
|
|
15409
15448
|
t.fitPoints,
|
|
15410
15449
|
"Uniform",
|
|
15411
15450
|
t.degree,
|
|
@@ -15416,11 +15455,11 @@ class Br {
|
|
|
15416
15455
|
return null;
|
|
15417
15456
|
}
|
|
15418
15457
|
convertPoint(t) {
|
|
15419
|
-
const e = new
|
|
15458
|
+
const e = new nn();
|
|
15420
15459
|
return e.position = t.position, e;
|
|
15421
15460
|
}
|
|
15422
15461
|
convertSolid(t) {
|
|
15423
|
-
const e = new
|
|
15462
|
+
const e = new en();
|
|
15424
15463
|
return t.points.forEach((s, n) => e.setPointAt(n, s)), e.thickness = t.thickness, e;
|
|
15425
15464
|
}
|
|
15426
15465
|
convertPolyline(t) {
|
|
@@ -15437,16 +15476,16 @@ class Br {
|
|
|
15437
15476
|
}), l.push(d.bulge ?? 0)));
|
|
15438
15477
|
}), n) {
|
|
15439
15478
|
const d = t.meshMVertexCount, u = t.meshNVertexCount;
|
|
15440
|
-
return new
|
|
15479
|
+
return new ln(d, u, o, e, a);
|
|
15441
15480
|
} else {
|
|
15442
15481
|
if (r)
|
|
15443
|
-
return new
|
|
15482
|
+
return new cn(o, c);
|
|
15444
15483
|
if (s) {
|
|
15445
|
-
let d =
|
|
15446
|
-
return t.flag & 4 && (t.smoothType ==
|
|
15484
|
+
let d = $s.SimplePoly;
|
|
15485
|
+
return t.flag & 4 && (t.smoothType == Ws.CUBIC ? d = $s.CubicSplinePoly : t.smoothType == Ws.QUADRATIC && (d = $s.QuadSplinePoly)), new Xi(d, o, e);
|
|
15447
15486
|
} else {
|
|
15448
15487
|
let d = us.SimplePoly;
|
|
15449
|
-
return t.flag & 2 ? d = us.FitCurvePoly : t.flag & 4 && (t.smoothType ==
|
|
15488
|
+
return t.flag & 2 ? d = us.FitCurvePoly : t.flag & 4 && (t.smoothType == Ws.CUBIC ? d = us.CubicSplinePoly : t.smoothType == Ws.QUADRATIC && (d = us.QuadSplinePoly)), new Ui(
|
|
15450
15489
|
d,
|
|
15451
15490
|
o,
|
|
15452
15491
|
0,
|
|
@@ -15459,7 +15498,7 @@ class Br {
|
|
|
15459
15498
|
}
|
|
15460
15499
|
}
|
|
15461
15500
|
convertLWPolyline(t) {
|
|
15462
|
-
const e = new
|
|
15501
|
+
const e = new sn();
|
|
15463
15502
|
e.closed = !!(t.flag & 1);
|
|
15464
15503
|
const s = t.constantWidth ?? -1;
|
|
15465
15504
|
return t.vertices.forEach((n, r) => {
|
|
@@ -15474,7 +15513,7 @@ class Br {
|
|
|
15474
15513
|
}
|
|
15475
15514
|
convertHatch(t) {
|
|
15476
15515
|
var n;
|
|
15477
|
-
const e = new
|
|
15516
|
+
const e = new ai();
|
|
15478
15517
|
return (n = t.definitionLines) == null || n.forEach((r) => {
|
|
15479
15518
|
e.definitionLines.push({
|
|
15480
15519
|
angle: k.degToRad(r.angle || 0),
|
|
@@ -15511,21 +15550,21 @@ class Br {
|
|
|
15511
15550
|
);
|
|
15512
15551
|
} else if (d.type == 3) {
|
|
15513
15552
|
const u = d;
|
|
15514
|
-
new
|
|
15553
|
+
new Y().subVectors(u.end, u.center);
|
|
15515
15554
|
const p = Math.sqrt(
|
|
15516
15555
|
Math.pow(u.end.x, 2) + Math.pow(u.end.y, 2)
|
|
15517
15556
|
), m = p * u.lengthOfMinorAxis;
|
|
15518
15557
|
let y = k.degToRad(u.startAngle || 0), w = k.degToRad(u.endAngle || 0);
|
|
15519
|
-
const
|
|
15558
|
+
const f = Math.atan2(u.end.y, u.end.x);
|
|
15520
15559
|
u.isCCW || (y = Math.PI * 2 - y, w = Math.PI * 2 - w), l.push(
|
|
15521
|
-
new
|
|
15560
|
+
new ni(
|
|
15522
15561
|
{ ...u.center, z: 0 },
|
|
15523
15562
|
p,
|
|
15524
15563
|
m,
|
|
15525
15564
|
y,
|
|
15526
15565
|
w,
|
|
15527
15566
|
!u.isCCW,
|
|
15528
|
-
|
|
15567
|
+
f
|
|
15529
15568
|
)
|
|
15530
15569
|
);
|
|
15531
15570
|
} else if (d.type == 4) {
|
|
@@ -15557,13 +15596,13 @@ class Br {
|
|
|
15557
15596
|
}
|
|
15558
15597
|
}
|
|
15559
15598
|
});
|
|
15560
|
-
const c =
|
|
15561
|
-
c.length == 0 && l.length > 0 ? e.add(new
|
|
15599
|
+
const c = ri.buildFromEdges(l);
|
|
15600
|
+
c.length == 0 && l.length > 0 ? e.add(new ri(l)) : c.forEach((d) => e.add(d));
|
|
15562
15601
|
}
|
|
15563
15602
|
}), e;
|
|
15564
15603
|
}
|
|
15565
15604
|
convertTable(t) {
|
|
15566
|
-
const e = new
|
|
15605
|
+
const e = new tn(
|
|
15567
15606
|
t.name,
|
|
15568
15607
|
t.rowCount,
|
|
15569
15608
|
t.columnCount
|
|
@@ -15577,29 +15616,29 @@ class Br {
|
|
|
15577
15616
|
}), e;
|
|
15578
15617
|
}
|
|
15579
15618
|
convertText(t) {
|
|
15580
|
-
const e = new
|
|
15619
|
+
const e = new bs();
|
|
15581
15620
|
return e.textString = t.text, e.styleName = t.styleName, e.height = t.textHeight, e.position.copy(t.startPoint), e.rotation = k.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;
|
|
15582
15621
|
}
|
|
15583
15622
|
convertMText(t) {
|
|
15584
|
-
const e = new
|
|
15623
|
+
const e = new hi();
|
|
15585
15624
|
return e.contents = t.text, t.styleName != null && (e.styleName = t.styleName), e.height = t.height, e.width = t.width, e.rotation = k.degToRad(t.rotation || 0), e.location = t.insertionPoint, e.attachmentPoint = t.attachmentPoint, t.direction && (e.direction = new b(t.direction)), e.drawingDirection = t.drawingDirection, e;
|
|
15586
15625
|
}
|
|
15587
15626
|
convertLeader(t) {
|
|
15588
|
-
const e = new
|
|
15627
|
+
const e = new Ji();
|
|
15589
15628
|
return t.vertices.forEach((s) => {
|
|
15590
15629
|
e.appendVertex(s);
|
|
15591
15630
|
}), e.hasArrowHead = t.isArrowheadEnabled, e.hasHookLine = t.isHooklineExists, e.isSplined = t.isSpline, e.dimensionStyle = t.styleName, e.annoType = t.leaderCreationFlag, e;
|
|
15592
15631
|
}
|
|
15593
15632
|
convertDimension(t) {
|
|
15594
15633
|
if (t.subclassMarker == "AcDbAlignedDimension" || t.subclassMarker == "AcDbRotatedDimension") {
|
|
15595
|
-
const e = t, s = new
|
|
15634
|
+
const e = t, s = new un(
|
|
15596
15635
|
e.subDefinitionPoint1,
|
|
15597
15636
|
e.subDefinitionPoint2,
|
|
15598
15637
|
e.definitionPoint
|
|
15599
15638
|
);
|
|
15600
15639
|
return e.insertionPoint && (s.dimBlockPosition = { ...e.insertionPoint, z: 0 }), s.rotation = k.degToRad(e.rotationAngle || 0), this.processDimensionCommonAttrs(t, s), s;
|
|
15601
15640
|
} else if (t.subclassMarker == "AcDb3PointAngularDimension") {
|
|
15602
|
-
const e = t, s = new
|
|
15641
|
+
const e = t, s = new dn(
|
|
15603
15642
|
e.centerPoint,
|
|
15604
15643
|
e.subDefinitionPoint1,
|
|
15605
15644
|
e.subDefinitionPoint2,
|
|
@@ -15607,20 +15646,20 @@ class Br {
|
|
|
15607
15646
|
);
|
|
15608
15647
|
return this.processDimensionCommonAttrs(t, s), s;
|
|
15609
15648
|
} else if (t.subclassMarker == "AcDbOrdinateDimension") {
|
|
15610
|
-
const e = t, s = new
|
|
15649
|
+
const e = t, s = new gn(
|
|
15611
15650
|
e.subDefinitionPoint1,
|
|
15612
15651
|
e.subDefinitionPoint2
|
|
15613
15652
|
);
|
|
15614
15653
|
return this.processDimensionCommonAttrs(t, s), s;
|
|
15615
15654
|
} else if (t.subclassMarker == "AcDbRadialDimension") {
|
|
15616
|
-
const e = t, s = new
|
|
15655
|
+
const e = t, s = new mn(
|
|
15617
15656
|
e.definitionPoint,
|
|
15618
15657
|
e.subDefinitionPoint,
|
|
15619
15658
|
e.leaderLength
|
|
15620
15659
|
);
|
|
15621
15660
|
return this.processDimensionCommonAttrs(t, s), s;
|
|
15622
15661
|
} else if (t.subclassMarker == "AcDbDiametricDimension") {
|
|
15623
|
-
const e = t, s = new
|
|
15662
|
+
const e = t, s = new pn(
|
|
15624
15663
|
e.definitionPoint,
|
|
15625
15664
|
e.subDefinitionPoint,
|
|
15626
15665
|
e.leaderLength
|
|
@@ -15639,7 +15678,7 @@ class Br {
|
|
|
15639
15678
|
) * t.imageSize.y, e.rotation = Math.atan2(t.uPixel.y, t.uPixel.x);
|
|
15640
15679
|
}
|
|
15641
15680
|
convertImage(t) {
|
|
15642
|
-
const e = new
|
|
15681
|
+
const e = new ci();
|
|
15643
15682
|
return this.processImage(t, e), e.clipBoundaryType = t.clippingBoundaryType, e;
|
|
15644
15683
|
}
|
|
15645
15684
|
processWipeout(t, e) {
|
|
@@ -15652,23 +15691,23 @@ class Br {
|
|
|
15652
15691
|
) * t.imageSize.y, e.rotation = Math.atan2(t.uDirection.y, t.uDirection.x);
|
|
15653
15692
|
}
|
|
15654
15693
|
convertWipeout(t) {
|
|
15655
|
-
const e = new
|
|
15694
|
+
const e = new on();
|
|
15656
15695
|
return this.processWipeout(t, e), e;
|
|
15657
15696
|
}
|
|
15658
15697
|
convertViewport(t) {
|
|
15659
|
-
const e = new
|
|
15698
|
+
const e = new an();
|
|
15660
15699
|
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;
|
|
15661
15700
|
}
|
|
15662
15701
|
convertRay(t) {
|
|
15663
|
-
const e = new
|
|
15702
|
+
const e = new rn();
|
|
15664
15703
|
return e.basePoint.copy(t.position), e.unitDir.copy(t.direction), e;
|
|
15665
15704
|
}
|
|
15666
15705
|
convertXline(t) {
|
|
15667
|
-
const e = new
|
|
15706
|
+
const e = new hn();
|
|
15668
15707
|
return e.basePoint.copy(t.position), e.unitDir.copy(t.direction), e;
|
|
15669
15708
|
}
|
|
15670
15709
|
convertBlockReference(t) {
|
|
15671
|
-
const e = new
|
|
15710
|
+
const e = new Is(t.name);
|
|
15672
15711
|
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 ? k.degToRad(t.rotation) : 0, e.normal.copy(
|
|
15673
15712
|
t.extrusionDirection ?? { x: 0, y: 0, z: 1 }
|
|
15674
15713
|
), e;
|
|
@@ -15677,13 +15716,13 @@ class Br {
|
|
|
15677
15716
|
e.dimBlockId = t.name, e.textPosition.copy(t.textPoint), e.textRotation = t.textRotation || 0, t.textLineSpacingFactor && (e.textLineSpacingFactor = t.textLineSpacingFactor), t.textLineSpacingStyle && (e.textLineSpacingStyle = t.textLineSpacingStyle), e.dimensionStyleName = t.styleName, e.dimensionText = t.text || "", e.measurement = t.measurement, e.normal.copy(t.extrusionDirection ?? { x: 0, y: 0, z: 1 });
|
|
15678
15717
|
}
|
|
15679
15718
|
processCommonAttrs(t, e) {
|
|
15680
|
-
e.layer = t.layer || "0", t.handle && (e.objectId = t.handle.toString()), 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 =
|
|
15719
|
+
e.layer = t.layer || "0", t.handle && (e.objectId = t.handle.toString()), 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 = yn.deserialize(t.transparency));
|
|
15681
15720
|
}
|
|
15682
15721
|
}
|
|
15683
15722
|
class Gd {
|
|
15684
15723
|
convertLayout(t, e) {
|
|
15685
15724
|
var r, a;
|
|
15686
|
-
const s = new
|
|
15725
|
+
const s = new fi();
|
|
15687
15726
|
s.layoutName = t.layoutName, s.tabOrder = t.tabOrder, s.plotSettingsName = t.pageSetupName, s.plotCfgName = t.configName, s.canonicalMediaName = t.paperSize, s.plotViewName = t.plotViewName, s.currentStyleSheet = t.currentStyleSheet, s.plotPaperMargins = {
|
|
15688
15727
|
left: t.marginLeft,
|
|
15689
15728
|
right: t.marginRight,
|
|
@@ -15733,7 +15772,7 @@ class Gd {
|
|
|
15733
15772
|
})(), t.shadePlotCustomDPI != null && (s.shadePlotCustomDPI = t.shadePlotCustomDPI), t.shadePlotId && (s.shadePlotId = t.shadePlotId);
|
|
15734
15773
|
const n = t.layoutFlag ?? 0;
|
|
15735
15774
|
if (s.plotViewportBorders = (n & 1) !== 0, s.showPlotStyles = (n & 2) !== 0, s.plotCentered = (n & 4) !== 0, s.plotHidden = (n & 8) !== 0, s.useStandardScale = (n & 16) !== 0, s.plotPlotStyles = (n & 32) !== 0, s.scaleLineweights = (n & 64) !== 0, s.printLineweights = (n & 128) !== 0, s.drawViewportsFirst = (n & 512) !== 0, s.modelType = (n & 1024) !== 0, t.viewportId && s.viewportArray.push(t.viewportId), t.layoutName === "Model") {
|
|
15736
|
-
const o =
|
|
15775
|
+
const o = Z.MODEL_SPACE_NAME.toUpperCase();
|
|
15737
15776
|
(r = e.tables.BLOCK_RECORD) == null || r.entries.some((l) => l.name.toUpperCase() === o ? (s.blockTableRecordId = l.handle, !0) : !1);
|
|
15738
15777
|
} else
|
|
15739
15778
|
(a = e.tables.BLOCK_RECORD) == null || a.entries.some((o) => o.layoutObjects === t.handle ? (s.blockTableRecordId = o.handle, !0) : !1), s.blockTableRecordId || (s.blockTableRecordId = t.paperSpaceTableId);
|
|
@@ -15884,7 +15923,7 @@ class Ud {
|
|
|
15884
15923
|
function Xd(i) {
|
|
15885
15924
|
return new Ud(i);
|
|
15886
15925
|
}
|
|
15887
|
-
class
|
|
15926
|
+
class Eu {
|
|
15888
15927
|
constructor() {
|
|
15889
15928
|
this.setupMessageHandler();
|
|
15890
15929
|
}
|
|
@@ -15914,7 +15953,7 @@ class Pu {
|
|
|
15914
15953
|
self.postMessage(r);
|
|
15915
15954
|
}
|
|
15916
15955
|
}
|
|
15917
|
-
class Yd extends
|
|
15956
|
+
class Yd extends Pa {
|
|
15918
15957
|
constructor(t = {}) {
|
|
15919
15958
|
super(t), t.parserWorkerUrl || (t.parserWorkerUrl = "/assets/dxf-parser-worker.js");
|
|
15920
15959
|
}
|
|
@@ -16013,12 +16052,12 @@ class Yd extends Ea {
|
|
|
16013
16052
|
const u = e.tables.blockTable.modelSpace;
|
|
16014
16053
|
await c.processChunk(async (g, p) => {
|
|
16015
16054
|
let m = [], y = g < p ? o[g].type : "";
|
|
16016
|
-
for (let
|
|
16017
|
-
const
|
|
16018
|
-
if (!(
|
|
16019
|
-
const I = a.convert(
|
|
16055
|
+
for (let f = g; f < p; f++) {
|
|
16056
|
+
const P = o[f];
|
|
16057
|
+
if (!(P.ownerBlockRecordSoftId && P.ownerBlockRecordSoftId !== u.objectId) && P.type !== "ATTRIB") {
|
|
16058
|
+
const I = a.convert(P);
|
|
16020
16059
|
if (I) {
|
|
16021
|
-
if (this.config.convertByEntityType &&
|
|
16060
|
+
if (this.config.convertByEntityType && P.type !== y && (u.appendEntity(m), m = [], y = P.type), P.type === "INSERT") {
|
|
16022
16061
|
const A = d.get(I.objectId);
|
|
16023
16062
|
A && A.length > 0 && A.forEach((M) => {
|
|
16024
16063
|
I.appendAttributes(M);
|
|
@@ -16050,7 +16089,7 @@ class Yd extends Ea {
|
|
|
16050
16089
|
const s = t.blocks;
|
|
16051
16090
|
for (const [n, r] of Object.entries(s)) {
|
|
16052
16091
|
let a = e.tables.blockTable.getAt(r.name);
|
|
16053
|
-
a || (a = new
|
|
16092
|
+
a || (a = new Z(), a.objectId = r.handle, a.name = n, a.origin.copy(r.position), e.tables.blockTable.add(a)), r.entities ? this.processEntitiesInBlock(r.entities, a) : a.isPaperSapce && this.processEntitiesInBlock(t.entities, a, !0);
|
|
16054
16093
|
}
|
|
16055
16094
|
}
|
|
16056
16095
|
processHeader(t, e) {
|
|
@@ -16061,7 +16100,7 @@ class Yd extends Ea {
|
|
|
16061
16100
|
var n;
|
|
16062
16101
|
const s = (n = t.tables.BLOCK_RECORD) == null ? void 0 : n.entries;
|
|
16063
16102
|
s && s.length > 0 && (e.tables.blockTable.removeAll(), s.forEach((r) => {
|
|
16064
|
-
const a = new
|
|
16103
|
+
const a = new Z();
|
|
16065
16104
|
a.objectId = r.handle, a.name = r.name, a.layoutId = r.layoutObjects, a.blockInsertUnits = r.insertionUnits, a.explodability = r.explodability, a.blockScaling = r.scalability, r.bmpPreview && (a.bmpPreview = r.bmpPreview), e.tables.blockTable.add(a);
|
|
16066
16105
|
}));
|
|
16067
16106
|
}
|
|
@@ -16110,7 +16149,7 @@ class Yd extends Ea {
|
|
|
16110
16149
|
r && r.length > 0 && r.forEach((a) => {
|
|
16111
16150
|
const o = new nt();
|
|
16112
16151
|
o.colorIndex = a.colorIndex;
|
|
16113
|
-
const l = new
|
|
16152
|
+
const l = new wn({
|
|
16114
16153
|
name: a.name,
|
|
16115
16154
|
standardFlags: a.standardFlag,
|
|
16116
16155
|
linetype: a.lineType,
|
|
@@ -16142,7 +16181,7 @@ class Yd extends Ea {
|
|
|
16142
16181
|
this.processCommonTableAttrs(s, e.tables.textStyleTable);
|
|
16143
16182
|
const r = s.entries;
|
|
16144
16183
|
r && r.length > 0 && r.forEach((a) => {
|
|
16145
|
-
const o = new
|
|
16184
|
+
const o = new xn(a);
|
|
16146
16185
|
this.processCommonTableEntryAttrs(a, o), e.tables.textStyleTable.add(o);
|
|
16147
16186
|
});
|
|
16148
16187
|
}
|
|
@@ -16241,7 +16280,7 @@ class Yd extends Ea {
|
|
|
16241
16280
|
return s.flatMap((n) => e[n]);
|
|
16242
16281
|
}
|
|
16243
16282
|
}
|
|
16244
|
-
class $d extends
|
|
16283
|
+
class $d extends Pa {
|
|
16245
16284
|
constructor(t) {
|
|
16246
16285
|
super({}), this._database = t;
|
|
16247
16286
|
}
|
|
@@ -16342,46 +16381,46 @@ export {
|
|
|
16342
16381
|
Kd as AcCmEntityColor,
|
|
16343
16382
|
Mt as AcCmErrors,
|
|
16344
16383
|
Zd as AcCmEventDispatcher,
|
|
16345
|
-
|
|
16384
|
+
K as AcCmEventManager,
|
|
16346
16385
|
nu as AcCmLoader,
|
|
16347
16386
|
Zo as AcCmLoadingManager,
|
|
16348
16387
|
$o as AcCmObject,
|
|
16349
16388
|
jr as AcCmPerformanceCollector,
|
|
16350
16389
|
qo as AcCmTask,
|
|
16351
16390
|
Ko as AcCmTaskScheduler,
|
|
16352
|
-
|
|
16391
|
+
yn as AcCmTransparency,
|
|
16353
16392
|
pt as AcCmTransparencyMethod,
|
|
16354
|
-
|
|
16393
|
+
Ui as AcDb2dPolyline,
|
|
16355
16394
|
fr as AcDb2dVertex,
|
|
16356
16395
|
Bh as AcDb2dVertexType,
|
|
16357
|
-
|
|
16358
|
-
|
|
16396
|
+
dn as AcDb3PointAngularDimension,
|
|
16397
|
+
Xi as AcDb3dPolyline,
|
|
16359
16398
|
br as AcDb3dVertex,
|
|
16360
16399
|
Fh as AcDb3dVertexType,
|
|
16361
16400
|
fa as AcDbAbstractViewTableRecord,
|
|
16362
|
-
|
|
16401
|
+
un as AcDbAlignedDimension,
|
|
16363
16402
|
Ur as AcDbAngleUnits,
|
|
16364
|
-
|
|
16403
|
+
Yi as AcDbArc,
|
|
16365
16404
|
Mr as AcDbArcDimension,
|
|
16366
|
-
|
|
16367
|
-
|
|
16368
|
-
|
|
16405
|
+
qi as AcDbAttribute,
|
|
16406
|
+
$i as AcDbAttributeDefinition,
|
|
16407
|
+
st as AcDbAttributeFlags,
|
|
16369
16408
|
se as AcDbAttributeMTextFlag,
|
|
16370
|
-
|
|
16409
|
+
Eu as AcDbBaseWorker,
|
|
16371
16410
|
Hr as AcDbBatchProcessing,
|
|
16372
|
-
|
|
16411
|
+
Is as AcDbBlockReference,
|
|
16373
16412
|
al as AcDbBlockScaling,
|
|
16374
16413
|
ul as AcDbBlockTable,
|
|
16375
|
-
|
|
16376
|
-
|
|
16414
|
+
Z as AcDbBlockTableRecord,
|
|
16415
|
+
Ki as AcDbCircle,
|
|
16377
16416
|
Xr as AcDbCodePage,
|
|
16378
16417
|
at as AcDbCurve,
|
|
16379
16418
|
cl as AcDbDataGenerator,
|
|
16380
16419
|
Iu as AcDbDatabase,
|
|
16381
|
-
|
|
16420
|
+
Pa as AcDbDatabaseConverter,
|
|
16382
16421
|
ee as AcDbDatabaseConverterManager,
|
|
16383
|
-
|
|
16384
|
-
|
|
16422
|
+
pn as AcDbDiametricDimension,
|
|
16423
|
+
Ks as AcDbDictionary,
|
|
16385
16424
|
dl as AcDbDimArrowType,
|
|
16386
16425
|
pl as AcDbDimStyleTable,
|
|
16387
16426
|
Ue as AcDbDimStyleTableRecord,
|
|
@@ -16396,30 +16435,30 @@ export {
|
|
|
16396
16435
|
Fr as AcDbDxfCode,
|
|
16397
16436
|
Yd as AcDbDxfConverter,
|
|
16398
16437
|
jo as AcDbDxfFiler,
|
|
16399
|
-
|
|
16438
|
+
Zi as AcDbEllipse,
|
|
16400
16439
|
mt as AcDbEntity,
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
|
|
16440
|
+
Qi as AcDbFace,
|
|
16441
|
+
Gs as AcDbFileType,
|
|
16442
|
+
ai as AcDbHatch,
|
|
16443
|
+
qs as AcDbHatchPatternType,
|
|
16405
16444
|
Vh as AcDbHatchStyle,
|
|
16406
|
-
|
|
16445
|
+
Vi as AcDbHostApplicationServices,
|
|
16407
16446
|
xl as AcDbLayerTable,
|
|
16408
|
-
|
|
16409
|
-
|
|
16447
|
+
wn as AcDbLayerTableRecord,
|
|
16448
|
+
fi as AcDbLayout,
|
|
16410
16449
|
rl as AcDbLayoutDictionary,
|
|
16411
16450
|
ol as AcDbLayoutManager,
|
|
16412
|
-
|
|
16451
|
+
Ji as AcDbLeader,
|
|
16413
16452
|
jh as AcDbLeaderAnnotationType,
|
|
16414
|
-
|
|
16453
|
+
oi as AcDbLine,
|
|
16415
16454
|
Qh as AcDbLineSpacingStyle,
|
|
16416
16455
|
fl as AcDbLinetypeTable,
|
|
16417
16456
|
Fe as AcDbLinetypeTableRecord,
|
|
16418
|
-
|
|
16457
|
+
hi as AcDbMText,
|
|
16419
16458
|
ue as AcDbObject,
|
|
16420
|
-
|
|
16459
|
+
bi as AcDbObjectIterator,
|
|
16421
16460
|
sh as AcDbOpenMode,
|
|
16422
|
-
|
|
16461
|
+
gn as AcDbOrdinateDimension,
|
|
16423
16462
|
V as AcDbOsnapMode,
|
|
16424
16463
|
Jh as AcDbPlotPaperUnits,
|
|
16425
16464
|
tl as AcDbPlotRotation,
|
|
@@ -16428,76 +16467,76 @@ export {
|
|
|
16428
16467
|
ps as AcDbPlotShadePlotType,
|
|
16429
16468
|
sl as AcDbPlotStdScaleType,
|
|
16430
16469
|
el as AcDbPlotType,
|
|
16431
|
-
|
|
16470
|
+
nn as AcDbPoint,
|
|
16432
16471
|
us as AcDbPoly2dType,
|
|
16433
|
-
|
|
16434
|
-
|
|
16472
|
+
$s as AcDbPoly3dType,
|
|
16473
|
+
cn as AcDbPolyFaceMesh,
|
|
16435
16474
|
Zh as AcDbPolyFaceMeshFace,
|
|
16436
16475
|
Kh as AcDbPolyFaceMeshVertex,
|
|
16437
|
-
|
|
16476
|
+
ln as AcDbPolygonMesh,
|
|
16438
16477
|
qh as AcDbPolygonMeshVertex,
|
|
16439
|
-
|
|
16440
|
-
|
|
16441
|
-
|
|
16478
|
+
sn as AcDbPolyline,
|
|
16479
|
+
mn as AcDbRadialDimension,
|
|
16480
|
+
ci as AcDbRasterImage,
|
|
16442
16481
|
Yh as AcDbRasterImageClipBoundaryType,
|
|
16443
16482
|
hl as AcDbRasterImageDef,
|
|
16444
16483
|
$h as AcDbRasterImageImageDisplayOpt,
|
|
16445
|
-
|
|
16484
|
+
rn as AcDbRay,
|
|
16446
16485
|
Sl as AcDbRegAppTable,
|
|
16447
16486
|
Tr as AcDbRegAppTableRecord,
|
|
16448
16487
|
$d as AcDbRegenerator,
|
|
16449
|
-
|
|
16488
|
+
Ps as AcDbRenderingCache,
|
|
16450
16489
|
Gr as AcDbResultBuffer,
|
|
16451
|
-
|
|
16490
|
+
li as AcDbSpline,
|
|
16452
16491
|
pe as AcDbSymbolTable,
|
|
16453
16492
|
Ve as AcDbSymbolTableRecord,
|
|
16454
|
-
|
|
16493
|
+
di as AcDbSysVarManager,
|
|
16455
16494
|
R as AcDbSystemVariables,
|
|
16456
|
-
|
|
16457
|
-
|
|
16495
|
+
tn as AcDbTable,
|
|
16496
|
+
bs as AcDbText,
|
|
16458
16497
|
Rh as AcDbTextHorizontalMode,
|
|
16459
16498
|
bl as AcDbTextStyleTable,
|
|
16460
|
-
|
|
16499
|
+
xn as AcDbTextStyleTableRecord,
|
|
16461
16500
|
zh as AcDbTextVerticalMode,
|
|
16462
|
-
|
|
16501
|
+
en as AcDbTrace,
|
|
16463
16502
|
xa as AcDbUnitsValue,
|
|
16464
16503
|
Il as AcDbViewTable,
|
|
16465
|
-
|
|
16466
|
-
|
|
16467
|
-
|
|
16504
|
+
Pu as AcDbViewTableRecord,
|
|
16505
|
+
an as AcDbViewport,
|
|
16506
|
+
Pl as AcDbViewportTable,
|
|
16468
16507
|
ba as AcDbViewportTableRecord,
|
|
16469
|
-
|
|
16508
|
+
on as AcDbWipeout,
|
|
16470
16509
|
Ud as AcDbWorkerApi,
|
|
16471
16510
|
Hd as AcDbWorkerManager,
|
|
16472
|
-
|
|
16511
|
+
hn as AcDbXline,
|
|
16473
16512
|
wu as AcDbXrecord,
|
|
16474
|
-
|
|
16513
|
+
fs as AcGeArea2d,
|
|
16475
16514
|
gt as AcGeBox2d,
|
|
16476
16515
|
C as AcGeBox3d,
|
|
16477
|
-
|
|
16516
|
+
_n as AcGeCatmullRomCurve3d,
|
|
16478
16517
|
Re as AcGeCircArc2d,
|
|
16479
16518
|
Ge as AcGeCircArc3d,
|
|
16480
16519
|
Es as AcGeCurve2d,
|
|
16481
|
-
|
|
16520
|
+
ni as AcGeEllipseArc2d,
|
|
16482
16521
|
_s as AcGeEllipseArc3d,
|
|
16483
16522
|
cu as AcGeEuler,
|
|
16484
16523
|
Sh as AcGeGeometryUtil,
|
|
16485
16524
|
ie as AcGeLine2d,
|
|
16486
16525
|
ze as AcGeLine3d,
|
|
16487
|
-
|
|
16526
|
+
ri as AcGeLoop2d,
|
|
16488
16527
|
k as AcGeMathUtil,
|
|
16489
|
-
|
|
16490
|
-
|
|
16528
|
+
_i as AcGeMatrix2d,
|
|
16529
|
+
U as AcGeMatrix3d,
|
|
16491
16530
|
Ct as AcGeNurbsCurve,
|
|
16492
|
-
|
|
16531
|
+
xi as AcGePlane,
|
|
16493
16532
|
v as AcGePoint2d,
|
|
16494
|
-
|
|
16533
|
+
x as AcGePoint3d,
|
|
16495
16534
|
Rt as AcGePolyline2d,
|
|
16496
16535
|
Xe as AcGeQuaternion,
|
|
16497
16536
|
ua as AcGeShape2d,
|
|
16498
16537
|
ne as AcGeSpline3d,
|
|
16499
|
-
|
|
16500
|
-
|
|
16538
|
+
wi as AcGeTol,
|
|
16539
|
+
Y as AcGeVector2d,
|
|
16501
16540
|
b as AcGeVector3d,
|
|
16502
16541
|
ga as AcGiArrowType,
|
|
16503
16542
|
_a as AcGiDefaultLightingType,
|
|
@@ -16530,20 +16569,20 @@ export {
|
|
|
16530
16569
|
pu as acdbMaskToOsnapModes,
|
|
16531
16570
|
uu as acdbOsnapModesToMask,
|
|
16532
16571
|
gu as acdbToggleOsnapMode,
|
|
16533
|
-
|
|
16572
|
+
ii as basisFunction,
|
|
16534
16573
|
Ah as calculateCurveLength,
|
|
16535
16574
|
xh as ceilPowerOfTwo,
|
|
16536
16575
|
oe as clamp,
|
|
16537
|
-
|
|
16576
|
+
Cs as clone,
|
|
16538
16577
|
Mh as computeParameterValues,
|
|
16539
16578
|
Xd as createWorkerApi,
|
|
16540
16579
|
hh as damp,
|
|
16541
16580
|
or as deepClone,
|
|
16542
|
-
|
|
16581
|
+
yi as defaults,
|
|
16543
16582
|
yh as degToRad,
|
|
16544
16583
|
nh as dwgCodePageToEncoding,
|
|
16545
16584
|
qr as euclideanModulo,
|
|
16546
|
-
|
|
16585
|
+
Us as evaluateNurbsPoint,
|
|
16547
16586
|
fh as floorPowerOfTwo,
|
|
16548
16587
|
Th as generateAveragedKnots,
|
|
16549
16588
|
ou as generateChordKnots,
|
|
@@ -16562,18 +16601,18 @@ export {
|
|
|
16562
16601
|
fu as isImperialUnits,
|
|
16563
16602
|
xu as isMetricUnits,
|
|
16564
16603
|
sa as isPointInPolygon,
|
|
16565
|
-
|
|
16604
|
+
Eh as isPolygonIntersect,
|
|
16566
16605
|
wh as isPowerOfTwo,
|
|
16567
16606
|
Kr as lerp,
|
|
16568
|
-
|
|
16607
|
+
Ds as log,
|
|
16569
16608
|
ah as mapLinear,
|
|
16570
|
-
|
|
16609
|
+
Hs as normalizeAngle,
|
|
16571
16610
|
lh as pingpong,
|
|
16572
16611
|
_h as radToDeg,
|
|
16573
16612
|
ph as randFloat,
|
|
16574
16613
|
gh as randFloatSpread,
|
|
16575
16614
|
uh as randInt,
|
|
16576
|
-
|
|
16615
|
+
Ph as relativeEps,
|
|
16577
16616
|
mh as seededRandom,
|
|
16578
16617
|
th as setAcDbHostApplicationServicesProvider,
|
|
16579
16618
|
eh as setAcDbLayoutManagerFactory,
|