@mlightcad/data-model 1.7.13 → 1.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/README.md +224 -224
- package/dist/data-model.cjs +3 -3
- package/dist/data-model.js +140 -108
- package/lib/base/AcDbDxfFiler.d.ts +3 -0
- package/lib/base/AcDbDxfFiler.d.ts.map +1 -1
- package/lib/base/AcDbDxfFiler.js +28 -5
- package/lib/base/AcDbDxfFiler.js.map +1 -1
- package/lib/database/AcDbDatabase.d.ts.map +1 -1
- package/lib/database/AcDbDatabase.js +6 -0
- package/lib/database/AcDbDatabase.js.map +1 -1
- package/lib/entity/AcDbEllipse.d.ts.map +1 -1
- package/lib/entity/AcDbEllipse.js +5 -3
- package/lib/entity/AcDbEllipse.js.map +1 -1
- package/lib/entity/AcDbMText.d.ts +1 -0
- package/lib/entity/AcDbMText.d.ts.map +1 -1
- package/lib/entity/AcDbMText.js +5 -1
- package/lib/entity/AcDbMText.js.map +1 -1
- package/lib/entity/AcDbSpline.d.ts +46 -0
- package/lib/entity/AcDbSpline.d.ts.map +1 -1
- package/lib/entity/AcDbSpline.js +14 -12
- package/lib/entity/AcDbSpline.js.map +1 -1
- package/package.json +4 -4
package/dist/data-model.js
CHANGED
|
@@ -127,6 +127,9 @@ class Lo {
|
|
|
127
127
|
get version() {
|
|
128
128
|
return this._version;
|
|
129
129
|
}
|
|
130
|
+
get nextHandle() {
|
|
131
|
+
return this._nextHandle;
|
|
132
|
+
}
|
|
130
133
|
setVersion(t) {
|
|
131
134
|
return this._version = t instanceof kt ? t : new kt(t), this;
|
|
132
135
|
}
|
|
@@ -136,14 +139,17 @@ class Lo {
|
|
|
136
139
|
`;
|
|
137
140
|
}
|
|
138
141
|
registerHandle(t) {
|
|
139
|
-
return this._handleMap.has(t) || (/^[0-9A-F]+$/i.test(t) ? this._handleMap.set(t, t.toUpperCase()) : (this._handleMap.set(t, this._nextHandle.toString(16).toUpperCase()), this._nextHandle += 1
|
|
142
|
+
return this._handleMap.has(t) || (/^[0-9A-F]+$/i.test(t) ? this._handleMap.set(t, t.toUpperCase()) : (this._handleMap.set(t, this._nextHandle.toString(16).toUpperCase()), this._nextHandle += 1)), this._handleMap.get(t);
|
|
140
143
|
}
|
|
141
144
|
resolveHandle(t) {
|
|
142
145
|
if (t)
|
|
143
146
|
return this.registerHandle(t);
|
|
144
147
|
}
|
|
145
148
|
writeGroup(t, e) {
|
|
146
|
-
|
|
149
|
+
if (e == null) return this;
|
|
150
|
+
this._lines.push(String(Math.trunc(t)));
|
|
151
|
+
const i = this.formatValue(e);
|
|
152
|
+
return this._lines.push(i === "" ? "0" : i), this;
|
|
147
153
|
}
|
|
148
154
|
writeStart(t) {
|
|
149
155
|
return this.writeString(0, t);
|
|
@@ -229,7 +235,20 @@ class Lo {
|
|
|
229
235
|
return this.writeStart("ENDTAB"), this;
|
|
230
236
|
}
|
|
231
237
|
formatValue(t) {
|
|
232
|
-
|
|
238
|
+
if (typeof t == "string")
|
|
239
|
+
return this.sanitizeStringForDxfLine(t);
|
|
240
|
+
if (typeof t == "boolean") return t ? "1" : "0";
|
|
241
|
+
if (typeof t == "number") {
|
|
242
|
+
if (!Number.isFinite(t)) return "0";
|
|
243
|
+
if (Number.isInteger(t)) return String(t);
|
|
244
|
+
const i = t.toFixed(this._precision).replace(/\.?0+$/, "");
|
|
245
|
+
return i === "" || i === "-" ? "0" : i;
|
|
246
|
+
}
|
|
247
|
+
return String(t);
|
|
248
|
+
}
|
|
249
|
+
/** Removes characters that must not appear on a single DXF value line. */
|
|
250
|
+
sanitizeStringForDxfLine(t) {
|
|
251
|
+
return t.replace(/\r\n|\r|\n/g, " ").replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, "");
|
|
233
252
|
}
|
|
234
253
|
}
|
|
235
254
|
function No(s, t) {
|
|
@@ -1458,15 +1477,15 @@ var Mr = { exports: {} };
|
|
|
1458
1477
|
var w = this, P, I, k, T = "loglevel";
|
|
1459
1478
|
typeof y == "string" ? T += ":" + y : typeof y == "symbol" && (T = void 0);
|
|
1460
1479
|
function W(B) {
|
|
1461
|
-
var
|
|
1480
|
+
var D = (n[B] || "silent").toUpperCase();
|
|
1462
1481
|
if (!(typeof window === e || !T)) {
|
|
1463
1482
|
try {
|
|
1464
|
-
window.localStorage[T] =
|
|
1483
|
+
window.localStorage[T] = D;
|
|
1465
1484
|
return;
|
|
1466
1485
|
} catch {
|
|
1467
1486
|
}
|
|
1468
1487
|
try {
|
|
1469
|
-
window.document.cookie = encodeURIComponent(T) + "=" +
|
|
1488
|
+
window.document.cookie = encodeURIComponent(T) + "=" + D + ";";
|
|
1470
1489
|
} catch {
|
|
1471
1490
|
}
|
|
1472
1491
|
}
|
|
@@ -1480,9 +1499,9 @@ var Mr = { exports: {} };
|
|
|
1480
1499
|
}
|
|
1481
1500
|
if (typeof B === e)
|
|
1482
1501
|
try {
|
|
1483
|
-
var
|
|
1502
|
+
var D = window.document.cookie, de = encodeURIComponent(T), ue = D.indexOf(de + "=");
|
|
1484
1503
|
ue !== -1 && (B = /^([^;]+)/.exec(
|
|
1485
|
-
|
|
1504
|
+
D.slice(ue + de.length + 1)
|
|
1486
1505
|
)[1]);
|
|
1487
1506
|
} catch {
|
|
1488
1507
|
}
|
|
@@ -1502,9 +1521,9 @@ var Mr = { exports: {} };
|
|
|
1502
1521
|
}
|
|
1503
1522
|
}
|
|
1504
1523
|
function F(B) {
|
|
1505
|
-
var
|
|
1506
|
-
if (typeof
|
|
1507
|
-
return
|
|
1524
|
+
var D = B;
|
|
1525
|
+
if (typeof D == "string" && w.levels[D.toUpperCase()] !== void 0 && (D = w.levels[D.toUpperCase()]), typeof D == "number" && D >= 0 && D <= w.levels.SILENT)
|
|
1526
|
+
return D;
|
|
1508
1527
|
throw new TypeError("log.setLevel() called with invalid level: " + B);
|
|
1509
1528
|
}
|
|
1510
1529
|
w.name = y, w.levels = {
|
|
@@ -1516,8 +1535,8 @@ var Mr = { exports: {} };
|
|
|
1516
1535
|
SILENT: 5
|
|
1517
1536
|
}, w.methodFactory = x || m, w.getLevel = function() {
|
|
1518
1537
|
return k ?? I ?? P;
|
|
1519
|
-
}, w.setLevel = function(B,
|
|
1520
|
-
return k = F(B),
|
|
1538
|
+
}, w.setLevel = function(B, D) {
|
|
1539
|
+
return k = F(B), D !== !1 && W(k), c.call(w);
|
|
1521
1540
|
}, w.setDefaultLevel = function(B) {
|
|
1522
1541
|
I = F(B), A() || w.setLevel(B, !1);
|
|
1523
1542
|
}, w.resetLevel = function() {
|
|
@@ -2190,14 +2209,14 @@ let Go = class {
|
|
|
2190
2209
|
return null;
|
|
2191
2210
|
}
|
|
2192
2211
|
};
|
|
2193
|
-
const
|
|
2194
|
-
class
|
|
2212
|
+
const Do = /* @__PURE__ */ new Go();
|
|
2213
|
+
class Hd {
|
|
2195
2214
|
/**
|
|
2196
2215
|
* Creates a new AcCmLoader instance.
|
|
2197
2216
|
* @param manager The loadingManager for the loader to use. Default is DefaultLoadingManager.
|
|
2198
2217
|
*/
|
|
2199
2218
|
constructor(t) {
|
|
2200
|
-
this.manager = t !== void 0 ? t :
|
|
2219
|
+
this.manager = t !== void 0 ? t : Do, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
|
|
2201
2220
|
}
|
|
2202
2221
|
/**
|
|
2203
2222
|
* This method is equivalent to 'load', but returns a Promise.
|
|
@@ -2264,7 +2283,7 @@ class Dd {
|
|
|
2264
2283
|
}
|
|
2265
2284
|
var Ne = 256, Nr = [], sr = 256, ks;
|
|
2266
2285
|
for (; Ne--; ) Nr[Ne] = (Ne + 256).toString(16).substring(1);
|
|
2267
|
-
function
|
|
2286
|
+
function Ho(s) {
|
|
2268
2287
|
var t = 0, e = 11;
|
|
2269
2288
|
if (!ks || Ne + e > sr * 2)
|
|
2270
2289
|
for (ks = "", Ne = 0; t < sr; t++)
|
|
@@ -2302,7 +2321,7 @@ class le {
|
|
|
2302
2321
|
* @returns A temporary hexadecimal string
|
|
2303
2322
|
*/
|
|
2304
2323
|
generateTemporaryHandle() {
|
|
2305
|
-
return mi +
|
|
2324
|
+
return mi + Ho();
|
|
2306
2325
|
}
|
|
2307
2326
|
/**
|
|
2308
2327
|
* Gets the attributes object for this AcDbObject.
|
|
@@ -3686,7 +3705,7 @@ const O = {
|
|
|
3686
3705
|
isBetweenAngle: ph,
|
|
3687
3706
|
intPartLength: Gr,
|
|
3688
3707
|
relativeEps: mh
|
|
3689
|
-
}, Ni = class
|
|
3708
|
+
}, Ni = class Dr {
|
|
3690
3709
|
/**
|
|
3691
3710
|
* Construct one vector by two numbers
|
|
3692
3711
|
*/
|
|
@@ -3802,7 +3821,7 @@ const O = {
|
|
|
3802
3821
|
* @returns Return the cloned vector
|
|
3803
3822
|
*/
|
|
3804
3823
|
clone() {
|
|
3805
|
-
return new
|
|
3824
|
+
return new Dr(this.x, this.y);
|
|
3806
3825
|
}
|
|
3807
3826
|
/**
|
|
3808
3827
|
* Copy the values of the passed vector's x and y properties to this vector.
|
|
@@ -4184,7 +4203,7 @@ const O = {
|
|
|
4184
4203
|
};
|
|
4185
4204
|
Ni.EMPTY = Object.freeze(new Ni(0, 0));
|
|
4186
4205
|
let U = Ni;
|
|
4187
|
-
const Oi = class
|
|
4206
|
+
const Oi = class Hr {
|
|
4188
4207
|
/**
|
|
4189
4208
|
* Create a 3x3 matrix with the given arguments in row-major order. If no arguments are provided,
|
|
4190
4209
|
* the constructor initializes the Matrix3 to the 3x3 identity matrix.
|
|
@@ -4451,12 +4470,12 @@ const Oi = class Dr {
|
|
|
4451
4470
|
* @returns Return the cloned matrix
|
|
4452
4471
|
*/
|
|
4453
4472
|
clone() {
|
|
4454
|
-
return new
|
|
4473
|
+
return new Hr().fromArray(this.elements);
|
|
4455
4474
|
}
|
|
4456
4475
|
};
|
|
4457
4476
|
Oi.IDENTITY = Object.freeze(new Oi());
|
|
4458
4477
|
let ln = Oi;
|
|
4459
|
-
const gi = /* @__PURE__ */ new ln(), Re = 1e-6,
|
|
4478
|
+
const gi = /* @__PURE__ */ new ln(), Re = 1e-6, H = 2 * Math.PI, Ud = {
|
|
4460
4479
|
x: 0,
|
|
4461
4480
|
y: 0
|
|
4462
4481
|
}, Ur = {
|
|
@@ -6147,8 +6166,8 @@ const _i = /* @__PURE__ */ new b(), or = /* @__PURE__ */ new Ue(), Ci = class Kr
|
|
|
6147
6166
|
* @returns Return this matrix
|
|
6148
6167
|
*/
|
|
6149
6168
|
multiplyMatrices(t, e) {
|
|
6150
|
-
const i = t.elements, n = e.elements, r = this.elements, a = i[0], o = i[4], l = i[8], d = i[12], c = i[1], p = i[5], m = i[9], u = i[13], g = i[2], y = i[6], x = i[10], w = i[14], P = i[3], I = i[7], k = i[11], T = i[15], W = n[0], A = n[4], Y = n[8], F = n[12], Q = n[1], B = n[5],
|
|
6151
|
-
return r[0] = a * W + o * Q + l * ue + d * Ps, r[4] = a * A + o * B + l * Is + d * Ts, r[8] = a * Y + o *
|
|
6169
|
+
const i = t.elements, n = e.elements, r = this.elements, a = i[0], o = i[4], l = i[8], d = i[12], c = i[1], p = i[5], m = i[9], u = i[13], g = i[2], y = i[6], x = i[10], w = i[14], P = i[3], I = i[7], k = i[11], T = i[15], W = n[0], A = n[4], Y = n[8], F = n[12], Q = n[1], B = n[5], D = n[9], de = n[13], ue = n[2], Is = n[6], Es = n[10], Ss = n[14], Ps = n[3], Ts = n[7], As = n[11], Ms = n[15];
|
|
6170
|
+
return r[0] = a * W + o * Q + l * ue + d * Ps, r[4] = a * A + o * B + l * Is + d * Ts, r[8] = a * Y + o * D + l * Es + d * As, r[12] = a * F + o * de + l * Ss + d * Ms, r[1] = c * W + p * Q + m * ue + u * Ps, r[5] = c * A + p * B + m * Is + u * Ts, r[9] = c * Y + p * D + m * Es + u * As, r[13] = c * F + p * de + m * Ss + u * Ms, r[2] = g * W + y * Q + x * ue + w * Ps, r[6] = g * A + y * B + x * Is + w * Ts, r[10] = g * Y + y * D + x * Es + w * As, r[14] = g * F + y * de + x * Ss + w * Ms, r[3] = P * W + I * Q + k * ue + T * Ps, r[7] = P * A + I * B + k * Is + T * Ts, r[11] = P * Y + I * D + k * Es + T * As, r[15] = P * F + I * de + k * Ss + T * Ms, this;
|
|
6152
6171
|
}
|
|
6153
6172
|
/**
|
|
6154
6173
|
* Multiply every component of the matrix by a scalar value s.
|
|
@@ -7664,8 +7683,8 @@ let We = class ia extends xs {
|
|
|
7664
7683
|
x: (A.x + Y.x) / 2,
|
|
7665
7684
|
y: (A.y + Y.y) / 2
|
|
7666
7685
|
}), r = (A, Y) => (Y.y - A.y) / (Y.x - A.x), a = (A) => -1 / A, o = n(t, e), l = n(e, i), d = r(t, e), c = r(e, i), p = a(d), m = a(c), u = (A, Y, F, Q) => {
|
|
7667
|
-
const B = (Q - Y) / (A - F),
|
|
7668
|
-
return { x: B, y:
|
|
7686
|
+
const B = (Q - Y) / (A - F), D = A * B + Y;
|
|
7687
|
+
return { x: B, y: D };
|
|
7669
7688
|
}, g = o.y - p * o.x, y = l.y - m * l.x, x = u(p, g, m, y), w = Math.sqrt(
|
|
7670
7689
|
Math.pow(t.x - x.x, 2) + Math.pow(t.y - x.y, 2)
|
|
7671
7690
|
), P = (A, Y) => Math.atan2(A.y - Y.y, A.x - Y.x), I = P(t, x), k = P(e, x), T = P(i, x), W = T > I && T < k || I > T && I < k || k > T && k < I;
|
|
@@ -7740,7 +7759,7 @@ let We = class ia extends xs {
|
|
|
7740
7759
|
return this._clockwise ? this._mirrorAngle(this._endAngle) : this._endAngle;
|
|
7741
7760
|
}
|
|
7742
7761
|
set endAngle(t) {
|
|
7743
|
-
const e = this.startAngle == 0 && t ==
|
|
7762
|
+
const e = this.startAngle == 0 && t == H ? t : O.normalizeAngle(t);
|
|
7744
7763
|
this._endAngle = this._clockwise ? this._mirrorAngle(e) : e, this._boundingBoxNeedsUpdate = !0;
|
|
7745
7764
|
}
|
|
7746
7765
|
/**
|
|
@@ -7864,7 +7883,7 @@ let We = class ia extends xs {
|
|
|
7864
7883
|
getPoints(t = 100) {
|
|
7865
7884
|
const e = [];
|
|
7866
7885
|
let i = this.deltaAngle, n = this._getInternalAngle(this.startAngle);
|
|
7867
|
-
if (this.closed && (i =
|
|
7886
|
+
if (this.closed && (i = H, n = 0), this.clockwise)
|
|
7868
7887
|
for (let r = 0; r <= t; r++) {
|
|
7869
7888
|
const a = n - i * (r / t), o = this._clockwise ? this._mirrorAngle(a) : a, l = this.getPointAtAngle(o);
|
|
7870
7889
|
e.push(new N(l.x, l.y));
|
|
@@ -8161,7 +8180,7 @@ class je extends fs {
|
|
|
8161
8180
|
* @param refVec The reference vector from which angles are measured. Default value is x axis.
|
|
8162
8181
|
*/
|
|
8163
8182
|
constructor(t, e, i, n, r, a = b.X_AXIS) {
|
|
8164
|
-
super(), this.center = t, this.radius = e, this.startAngle = i, this.endAngle = n, this.normal = r, this.refVec = a, (n - i) %
|
|
8183
|
+
super(), this.center = t, this.radius = e, this.startAngle = i, this.endAngle = n, this.normal = r, this.refVec = a, (n - i) % H == 0 ? (this.startAngle = 0, this.endAngle = H) : (this.startAngle = i, this.endAngle = n);
|
|
8165
8184
|
}
|
|
8166
8185
|
/**
|
|
8167
8186
|
* Center of circular arc
|
|
@@ -8198,7 +8217,7 @@ class je extends fs {
|
|
|
8198
8217
|
return this._endAngle;
|
|
8199
8218
|
}
|
|
8200
8219
|
set endAngle(t) {
|
|
8201
|
-
this._endAngle = this.startAngle == 0 && t ==
|
|
8220
|
+
this._endAngle = this.startAngle == 0 && t == H ? t : O.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
|
|
8202
8221
|
}
|
|
8203
8222
|
/**
|
|
8204
8223
|
* Return angle between endAngle and startAngle in range 0 to 2*PI
|
|
@@ -8253,7 +8272,7 @@ class je extends fs {
|
|
|
8253
8272
|
*/
|
|
8254
8273
|
get midPoint() {
|
|
8255
8274
|
let t = this.startAngle, e = this.deltaAngle;
|
|
8256
|
-
this.closed && (t = 0, e =
|
|
8275
|
+
this.closed && (t = 0, e = H);
|
|
8257
8276
|
const i = t + e * 0.5;
|
|
8258
8277
|
return this.getPointAtAngle(i);
|
|
8259
8278
|
}
|
|
@@ -8340,7 +8359,7 @@ class je extends fs {
|
|
|
8340
8359
|
getPoints(t) {
|
|
8341
8360
|
const e = [];
|
|
8342
8361
|
let i = this.deltaAngle, n = this.startAngle;
|
|
8343
|
-
this.closed && (i =
|
|
8362
|
+
this.closed && (i = H, n = 0);
|
|
8344
8363
|
for (let r = 0; r <= t; r++) {
|
|
8345
8364
|
const a = n + i * (r / t), o = this.getPointAtAngle(a);
|
|
8346
8365
|
e.push(o);
|
|
@@ -8421,8 +8440,8 @@ class Ge extends xs {
|
|
|
8421
8440
|
* @param rotation The rotation angle of the ellipse in radians, counterclockwise from the positive X
|
|
8422
8441
|
* axis (optional). Default is 0.
|
|
8423
8442
|
*/
|
|
8424
|
-
constructor(t, e, i, n = 0, r =
|
|
8425
|
-
super(), this.center = t, this.majorAxisRadius = e, this.minorAxisRadius = i, (r - n) %
|
|
8443
|
+
constructor(t, e, i, n = 0, r = H, a = !1, o = 0) {
|
|
8444
|
+
super(), this.center = t, this.majorAxisRadius = e, this.minorAxisRadius = i, (r - n) % H == 0 ? (this.startAngle = 0, this.endAngle = H) : (this.startAngle = n, this.endAngle = r), this.clockwise = a, this.rotation = o;
|
|
8426
8445
|
}
|
|
8427
8446
|
/**
|
|
8428
8447
|
* Center of the ellipse in 3d space
|
|
@@ -8469,7 +8488,7 @@ class Ge extends xs {
|
|
|
8469
8488
|
return this._endAngle;
|
|
8470
8489
|
}
|
|
8471
8490
|
set endAngle(t) {
|
|
8472
|
-
this._endAngle = this.startAngle == 0 && t ==
|
|
8491
|
+
this._endAngle = this.startAngle == 0 && t == H ? t : O.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
|
|
8473
8492
|
}
|
|
8474
8493
|
/**
|
|
8475
8494
|
* The flag Whether the ellipse arc is drawn clockwise. Default is false.
|
|
@@ -8579,10 +8598,10 @@ class cn extends fs {
|
|
|
8579
8598
|
* @param startAngle Start angle of the ellipse arc in radians.
|
|
8580
8599
|
* @param endAngle End angle of the ellipse arc in radians.
|
|
8581
8600
|
*/
|
|
8582
|
-
constructor(t, e, i, n, r, a = 0, o =
|
|
8601
|
+
constructor(t, e, i, n, r, a = 0, o = H) {
|
|
8583
8602
|
super(), this.center = t, this.normal = e, this.majorAxis = i, this.majorAxisRadius = n, this.minorAxisRadius = r;
|
|
8584
8603
|
const l = Math.abs(o - a);
|
|
8585
|
-
Math.abs(l -
|
|
8604
|
+
Math.abs(l - H) < 1e-10 || Math.abs(l - 2 * H) < 1e-10 ? (this.startAngle = 0, this.endAngle = H) : (this.startAngle = a, this.endAngle = o);
|
|
8586
8605
|
}
|
|
8587
8606
|
/**
|
|
8588
8607
|
* Center of the ellipse in 3d space
|
|
@@ -8629,14 +8648,14 @@ class cn extends fs {
|
|
|
8629
8648
|
return this._endAngle;
|
|
8630
8649
|
}
|
|
8631
8650
|
set endAngle(t) {
|
|
8632
|
-
this._endAngle = this.startAngle == 0 && t ==
|
|
8651
|
+
this._endAngle = this.startAngle == 0 && t == H ? t : O.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
|
|
8633
8652
|
}
|
|
8634
8653
|
/**
|
|
8635
8654
|
* Return angle between endAngle and startAngle in range 0 to 2*PI
|
|
8636
8655
|
*/
|
|
8637
8656
|
get deltaAngle() {
|
|
8638
8657
|
const t = this.endAngle - this.startAngle;
|
|
8639
|
-
return Math.abs(t -
|
|
8658
|
+
return Math.abs(t - H) < 1e-10 ? H : O.normalizeAngle(t);
|
|
8640
8659
|
}
|
|
8641
8660
|
/**
|
|
8642
8661
|
* Return true if the arc is a large arc whose delta angle value is greater than PI.
|
|
@@ -8696,7 +8715,7 @@ class cn extends fs {
|
|
|
8696
8715
|
*/
|
|
8697
8716
|
get midPoint() {
|
|
8698
8717
|
let t = this.startAngle, e = this.deltaAngle;
|
|
8699
|
-
(this.closed || Math.abs(e -
|
|
8718
|
+
(this.closed || Math.abs(e - H) < 1e-10) && (t = 0, e = H);
|
|
8700
8719
|
const i = t + e / 2;
|
|
8701
8720
|
return this.getPointAtAngle(i);
|
|
8702
8721
|
}
|
|
@@ -8728,7 +8747,7 @@ class cn extends fs {
|
|
|
8728
8747
|
*/
|
|
8729
8748
|
get area() {
|
|
8730
8749
|
const t = this.majorAxisRadius, e = this.minorAxisRadius, i = this.startAngle, n = i + this.deltaAngle;
|
|
8731
|
-
if (Math.abs(this.deltaAngle -
|
|
8750
|
+
if (Math.abs(this.deltaAngle - H) < 1e-10)
|
|
8732
8751
|
return Math.PI * t * e;
|
|
8733
8752
|
const r = t * e / 2 * (n - i - (Math.sin(n) * Math.cos(n) - Math.sin(i) * Math.cos(i)));
|
|
8734
8753
|
return Math.abs(r);
|
|
@@ -8773,7 +8792,7 @@ class cn extends fs {
|
|
|
8773
8792
|
getPoints(t = 100) {
|
|
8774
8793
|
const e = [];
|
|
8775
8794
|
let i = this.deltaAngle, n = this.startAngle;
|
|
8776
|
-
this.closed && (i =
|
|
8795
|
+
this.closed && (i = H, n = 0);
|
|
8777
8796
|
for (let r = 0; r <= t; r++) {
|
|
8778
8797
|
const a = n + i * (r / t), o = this.getPointAtAngle(a);
|
|
8779
8798
|
e.push(o);
|
|
@@ -9846,7 +9865,7 @@ class Ct extends fs {
|
|
|
9846
9865
|
return new Ct(t, e, i, !0);
|
|
9847
9866
|
}
|
|
9848
9867
|
}
|
|
9849
|
-
var na = /* @__PURE__ */ ((s) => (s.ClosedFilled = "", s.Dot = "_DOT", s.DotSmall = "_DOTSMALL", s.DotBlank = "_DOTBLANK", s.Origin = "_ORIGIN", s.Origin2 = "_ORIGIN2", s.Open = "_OPEN", s.Open90 = "_OPEN90", s.Open30 = "_OPEN30", s.Closed = "_CLOSED", s.Small = "_SMALL", s.None = "_NONE", s.Oblique = "_OBLIQUE", s.BoxFilled = "_BOXFILLED", s.Box = "_BOXBLANK", s.ClosedBlank = "_CLOSEDBLANK", s.DatumBlank = "_DATUMBLANK", s.DatumFilled = "_DATUMFILLED", s.Integral = "_INTEGRAL", s.ArchTick = "_ARCHTICK", s))(na || {}),
|
|
9868
|
+
var na = /* @__PURE__ */ ((s) => (s.ClosedFilled = "", s.Dot = "_DOT", s.DotSmall = "_DOTSMALL", s.DotBlank = "_DOTBLANK", s.Origin = "_ORIGIN", s.Origin2 = "_ORIGIN2", s.Open = "_OPEN", s.Open90 = "_OPEN90", s.Open30 = "_OPEN30", s.Closed = "_CLOSED", s.Small = "_SMALL", s.None = "_NONE", s.Oblique = "_OBLIQUE", s.BoxFilled = "_BOXFILLED", s.Box = "_BOXBLANK", s.ClosedBlank = "_CLOSEDBLANK", s.DatumBlank = "_DATUMBLANK", s.DatumFilled = "_DATUMFILLED", s.Integral = "_INTEGRAL", s.ArchTick = "_ARCHTICK", s))(na || {}), De = /* @__PURE__ */ ((s) => (s[s.ByBlock = -2] = "ByBlock", s[s.ByDIPs = -4] = "ByDIPs", s[s.ByLayer = -1] = "ByLayer", s[s.ByLineWeightDefault = -3] = "ByLineWeightDefault", s[s.LineWeight000 = 0] = "LineWeight000", s[s.LineWeight005 = 5] = "LineWeight005", s[s.LineWeight009 = 9] = "LineWeight009", s[s.LineWeight013 = 13] = "LineWeight013", s[s.LineWeight015 = 15] = "LineWeight015", s[s.LineWeight018 = 18] = "LineWeight018", s[s.LineWeight020 = 20] = "LineWeight020", s[s.LineWeight025 = 25] = "LineWeight025", s[s.LineWeight030 = 30] = "LineWeight030", s[s.LineWeight035 = 35] = "LineWeight035", s[s.LineWeight040 = 40] = "LineWeight040", s[s.LineWeight050 = 50] = "LineWeight050", s[s.LineWeight053 = 53] = "LineWeight053", s[s.LineWeight060 = 60] = "LineWeight060", s[s.LineWeight070 = 70] = "LineWeight070", s[s.LineWeight080 = 80] = "LineWeight080", s[s.LineWeight090 = 90] = "LineWeight090", s[s.LineWeight100 = 100] = "LineWeight100", s[s.LineWeight106 = 106] = "LineWeight106", s[s.LineWeight120 = 120] = "LineWeight120", s[s.LineWeight140 = 140] = "LineWeight140", s[s.LineWeight158 = 158] = "LineWeight158", s[s.LineWeight200 = 200] = "LineWeight200", s[s.LineWeight211 = 211] = "LineWeight211", s))(De || {}), re = /* @__PURE__ */ ((s) => (s[s.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", s[s.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", s[s.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", s[s.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", s[s.BY_STYLE = 5] = "BY_STYLE", s))(re || {}), ct = /* @__PURE__ */ ((s) => (s[s.TopLeft = 1] = "TopLeft", s[s.TopCenter = 2] = "TopCenter", s[s.TopRight = 3] = "TopRight", s[s.MiddleLeft = 4] = "MiddleLeft", s[s.MiddleCenter = 5] = "MiddleCenter", s[s.MiddleRight = 6] = "MiddleRight", s[s.BottomLeft = 7] = "BottomLeft", s[s.BottomCenter = 8] = "BottomCenter", s[s.BottomRight = 9] = "BottomRight", s))(ct || {}), ra = /* @__PURE__ */ ((s) => (s[s.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", s[s.WIREFRAME = 1] = "WIREFRAME", s[s.HIDDEN_LINE = 2] = "HIDDEN_LINE", s[s.FLAT_SHADED = 3] = "FLAT_SHADED", s[s.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", s[s.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", s[s.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", s))(ra || {}), aa = /* @__PURE__ */ ((s) => (s[s.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", s[s.TOP = 1] = "TOP", s[s.BOTTOM = 2] = "BOTTOM", s[s.FRONT = 3] = "FRONT", s[s.BACK = 4] = "BACK", s[s.LEFT = 5] = "LEFT", s[s.RIGHT = 6] = "RIGHT", s))(aa || {}), oa = /* @__PURE__ */ ((s) => (s[s.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", s[s.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", s))(oa || {});
|
|
9850
9869
|
let Th = class ha {
|
|
9851
9870
|
constructor() {
|
|
9852
9871
|
this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new f(), this._height = 0, this._width = 0, this._viewCenter = new f(), this._viewHeight = 0;
|
|
@@ -10103,7 +10122,7 @@ const yn = class yn extends le {
|
|
|
10103
10122
|
* @returns The line weight value
|
|
10104
10123
|
*/
|
|
10105
10124
|
get lineWeight() {
|
|
10106
|
-
return this._lineWeight == null && (this._lineWeight = this.database.celweight ??
|
|
10125
|
+
return this._lineWeight == null && (this._lineWeight = this.database.celweight ?? De.ByLayer), this._lineWeight;
|
|
10107
10126
|
}
|
|
10108
10127
|
/**
|
|
10109
10128
|
* Sets the line weight for this entity.
|
|
@@ -10243,7 +10262,7 @@ const yn = class yn extends le {
|
|
|
10243
10262
|
* downstream processing.
|
|
10244
10263
|
*/
|
|
10245
10264
|
resolveEffectiveProperties() {
|
|
10246
|
-
this._layer == null && (this._layer = this.database.clayer ?? "0"), this._color == null && (this._color = new it(), this.database.cecolor && this._color.copy(this.database.cecolor)), this._linetypeScale == null && (this._linetypeScale = this.database.celtscale ?? -1), this._lineWeight == null && (this._lineWeight = this.database.celweight ??
|
|
10265
|
+
this._layer == null && (this._layer = this.database.clayer ?? "0"), this._color == null && (this._color = new it(), this.database.cecolor && this._color.copy(this.database.cecolor)), this._linetypeScale == null && (this._linetypeScale = this.database.celtscale ?? -1), this._lineWeight == null && (this._lineWeight = this.database.celweight ?? De.ByLayer);
|
|
10247
10266
|
}
|
|
10248
10267
|
/**
|
|
10249
10268
|
* Returns the full property definition for this entity, including
|
|
@@ -13326,7 +13345,7 @@ const An = class An extends rt {
|
|
|
13326
13345
|
t,
|
|
13327
13346
|
e,
|
|
13328
13347
|
0,
|
|
13329
|
-
|
|
13348
|
+
H,
|
|
13330
13349
|
i,
|
|
13331
13350
|
b.X_AXIS
|
|
13332
13351
|
);
|
|
@@ -14079,10 +14098,12 @@ const Mn = class Mn extends rt {
|
|
|
14079
14098
|
* @returns The instance (for chaining).
|
|
14080
14099
|
*/
|
|
14081
14100
|
dxfOutFields(t) {
|
|
14082
|
-
|
|
14083
|
-
|
|
14084
|
-
|
|
14085
|
-
|
|
14101
|
+
super.dxfOutFields(t), t.writeSubclassMarker("AcDbEllipse"), t.writePoint3d(10, this.center);
|
|
14102
|
+
const e = this._geo.majorAxis, i = this.majorAxisRadius;
|
|
14103
|
+
return t.writePoint3d(11, {
|
|
14104
|
+
x: e.x * i,
|
|
14105
|
+
y: e.y * i,
|
|
14106
|
+
z: e.z * i
|
|
14086
14107
|
}), t.writeVector3d(210, this.normal), t.writeDouble(40, this.minorAxisRadius / this.majorAxisRadius), t.writeDouble(41, this.startAngle), t.writeDouble(42, this.endAngle), this;
|
|
14087
14108
|
}
|
|
14088
14109
|
};
|
|
@@ -14278,7 +14299,7 @@ const vn = class vn extends mt {
|
|
|
14278
14299
|
}
|
|
14279
14300
|
};
|
|
14280
14301
|
vn.typeName = "Face";
|
|
14281
|
-
let
|
|
14302
|
+
let Di = vn;
|
|
14282
14303
|
var Gs = /* @__PURE__ */ ((s) => (s[s.UserDefined = 0] = "UserDefined", s[s.Predefined = 1] = "Predefined", s[s.Custom = 2] = "Custom", s))(Gs || {}), Lh = /* @__PURE__ */ ((s) => (s[s.Normal = 0] = "Normal", s[s.Outer = 1] = "Outer", s[s.Ignore = 2] = "Ignore", s))(Lh || {});
|
|
14283
14304
|
const kn = class kn extends mt {
|
|
14284
14305
|
get dxfTypeName() {
|
|
@@ -14849,7 +14870,7 @@ const Ln = class Ln extends rt {
|
|
|
14849
14870
|
}
|
|
14850
14871
|
};
|
|
14851
14872
|
Ln.typeName = "Leader";
|
|
14852
|
-
let
|
|
14873
|
+
let Hi = Ln;
|
|
14853
14874
|
var z = /* @__PURE__ */ ((s) => (s[s.EndPoint = 1] = "EndPoint", s[s.MidPoint = 2] = "MidPoint", s[s.Center = 3] = "Center", s[s.Node = 4] = "Node", s[s.Quadrant = 5] = "Quadrant", s[s.Insertion = 7] = "Insertion", s[s.Perpendicular = 8] = "Perpendicular", s[s.Tangent = 9] = "Tangent", s[s.Nearest = 10] = "Nearest", s[s.Centroid = 11] = "Centroid", s))(z || {});
|
|
14854
14875
|
function Jd(s) {
|
|
14855
14876
|
let t = 0;
|
|
@@ -15675,6 +15696,9 @@ const On = class On extends mt {
|
|
|
15675
15696
|
};
|
|
15676
15697
|
return t.mtext(i, this.getTextStyle(), e);
|
|
15677
15698
|
}
|
|
15699
|
+
encodeMTextContentsForDxf(t) {
|
|
15700
|
+
return t.replace(/\r\n|\r|\n/g, "\\P");
|
|
15701
|
+
}
|
|
15678
15702
|
/**
|
|
15679
15703
|
* Writes DXF fields for this object.
|
|
15680
15704
|
*
|
|
@@ -15682,7 +15706,7 @@ const On = class On extends mt {
|
|
|
15682
15706
|
* @returns The instance (for chaining).
|
|
15683
15707
|
*/
|
|
15684
15708
|
dxfOutFields(t) {
|
|
15685
|
-
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbMText"), t.writePoint3d(10, this.location), t.writeDouble(40, this.height), t.writeDouble(41, this.width), t.writeString(1, this.contents), t.writeString(7, this.styleName), t.writeAngle(50, this.rotation), t.writeVector3d(11, this.direction), t.writeInt16(71, this.attachmentPoint), t.writeInt16(72, this.drawingDirection), t.writeInt16(73, this.lineSpacingStyle), t.writeDouble(44, this.lineSpacingFactor), this.backgroundFill && (t.writeInt16(90, 1), t.writeInt32(63, this.backgroundFillColor), t.writeInt32(441, this.backgroundFillTransparency), t.writeDouble(45, this.backgroundScaleFactor)), this;
|
|
15709
|
+
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbMText"), t.writePoint3d(10, this.location), t.writeDouble(40, this.height), t.writeDouble(41, this.width), t.writeString(1, this.encodeMTextContentsForDxf(this.contents)), t.writeString(7, this.styleName), t.writeAngle(50, this.rotation), t.writeVector3d(11, this.direction), t.writeInt16(71, this.attachmentPoint), t.writeInt16(72, this.drawingDirection), t.writeInt16(73, this.lineSpacingStyle), t.writeDouble(44, this.lineSpacingFactor), this.backgroundFill && (t.writeInt16(90, 1), t.writeInt32(63, this.backgroundFillColor), t.writeInt32(441, this.backgroundFillTransparency), t.writeDouble(45, this.backgroundScaleFactor)), this;
|
|
15686
15710
|
}
|
|
15687
15711
|
};
|
|
15688
15712
|
On.typeName = "MText";
|
|
@@ -15692,7 +15716,15 @@ const Cn = class Cn extends rt {
|
|
|
15692
15716
|
return "SPLINE";
|
|
15693
15717
|
}
|
|
15694
15718
|
constructor(t, e, i, n, r) {
|
|
15695
|
-
super()
|
|
15719
|
+
super(), this.rebuild(
|
|
15720
|
+
t,
|
|
15721
|
+
e,
|
|
15722
|
+
i,
|
|
15723
|
+
n,
|
|
15724
|
+
r
|
|
15725
|
+
);
|
|
15726
|
+
}
|
|
15727
|
+
rebuild(t, e, i, n, r) {
|
|
15696
15728
|
const a = +(t !== void 0) + +(e !== void 0) + +(i !== void 0) + +(n !== void 0) + +(r !== void 0);
|
|
15697
15729
|
if (a < 2 || a > 5)
|
|
15698
15730
|
throw St.ILLEGAL_PARAMETERS;
|
|
@@ -17897,7 +17929,7 @@ const Gn = class Gn extends ii {
|
|
|
17897
17929
|
};
|
|
17898
17930
|
Gn.typeName = "Wipeout";
|
|
17899
17931
|
let Ki = Gn;
|
|
17900
|
-
const
|
|
17932
|
+
const Dn = class Dn extends rt {
|
|
17901
17933
|
get dxfTypeName() {
|
|
17902
17934
|
return "XLINE";
|
|
17903
17935
|
}
|
|
@@ -18144,8 +18176,8 @@ const Hn = class Hn extends rt {
|
|
|
18144
18176
|
return super.dxfOutFields(t), t.writeSubclassMarker("AcDbXline"), t.writePoint3d(10, this.basePoint), t.writeVector3d(11, this.unitDir), this;
|
|
18145
18177
|
}
|
|
18146
18178
|
};
|
|
18147
|
-
|
|
18148
|
-
let Qi =
|
|
18179
|
+
Dn.typeName = "Xline";
|
|
18180
|
+
let Qi = Dn;
|
|
18149
18181
|
class Bh {
|
|
18150
18182
|
/**
|
|
18151
18183
|
* Creates a new polygon mesh vertex.
|
|
@@ -18155,7 +18187,7 @@ class Bh {
|
|
|
18155
18187
|
this.position = new f(t.x, t.y, t.z || 0);
|
|
18156
18188
|
}
|
|
18157
18189
|
}
|
|
18158
|
-
const
|
|
18190
|
+
const Hn = class Hn extends rt {
|
|
18159
18191
|
get dxfTypeName() {
|
|
18160
18192
|
return "POLYLINE";
|
|
18161
18193
|
}
|
|
@@ -18406,8 +18438,8 @@ const Dn = class Dn extends rt {
|
|
|
18406
18438
|
return t.writeStart("SEQEND"), t.writeHandle(5, this.database.generateHandle()), t.writeObjectId(330, this.objectId), t.writeSubclassMarker("AcDbEntity"), this;
|
|
18407
18439
|
}
|
|
18408
18440
|
};
|
|
18409
|
-
|
|
18410
|
-
let Ji =
|
|
18441
|
+
Hn.typeName = "PolygonMesh";
|
|
18442
|
+
let Ji = Hn;
|
|
18411
18443
|
class Rh {
|
|
18412
18444
|
/**
|
|
18413
18445
|
* Creates a new polyface mesh vertex.
|
|
@@ -18776,7 +18808,7 @@ const Xn = class Xn extends mt {
|
|
|
18776
18808
|
let t;
|
|
18777
18809
|
this.dimensionStyleName && (t = this.database.tables.dimStyleTable.getAt(
|
|
18778
18810
|
this.dimensionStyleName
|
|
18779
|
-
)), t == null && (t = new
|
|
18811
|
+
)), t == null && (t = new He()), this._dimStyle = t;
|
|
18780
18812
|
}
|
|
18781
18813
|
return this._dimStyle;
|
|
18782
18814
|
}
|
|
@@ -20027,8 +20059,8 @@ const Qn = class Qn extends oe {
|
|
|
20027
20059
|
};
|
|
20028
20060
|
Qn.typeName = "RadialDimension";
|
|
20029
20061
|
let an = Qn;
|
|
20030
|
-
var jh = /* @__PURE__ */ ((s) => (s[s.kInches = 0] = "kInches", s[s.kMillimeters = 1] = "kMillimeters", s[s.kPixels = 2] = "kPixels", s))(jh || {}), Wh = /* @__PURE__ */ ((s) => (s[s.k0degrees = 0] = "k0degrees", s[s.k90degrees = 1] = "k90degrees", s[s.k180degrees = 2] = "k180degrees", s[s.k270degrees = 3] = "k270degrees", s))(Wh || {}), Gh = /* @__PURE__ */ ((s) => (s[s.kDisplay = 0] = "kDisplay", s[s.kExtents = 1] = "kExtents", s[s.kLimits = 2] = "kLimits", s[s.kView = 3] = "kView", s[s.kWindow = 4] = "kWindow", s[s.kLayout = 5] = "kLayout", s))(Gh || {}), Le = /* @__PURE__ */ ((s) => (s[s.kDraft = 0] = "kDraft", s[s.kPreview = 1] = "kPreview", s[s.kNormal = 2] = "kNormal", s[s.kPresentation = 3] = "kPresentation", s[s.kMaximum = 4] = "kMaximum", s[s.kCustom = 5] = "kCustom", s))(Le || {}), ds = /* @__PURE__ */ ((s) => (s[s.kAsDisplayed = 0] = "kAsDisplayed", s[s.kWireframe = 1] = "kWireframe", s[s.kHidden = 2] = "kHidden", s[s.kRendered = 3] = "kRendered", s[s.kVisualStyle = 4] = "kVisualStyle", s[s.kRenderPreset = 5] = "kRenderPreset", s))(ds || {}),
|
|
20031
|
-
const
|
|
20062
|
+
var jh = /* @__PURE__ */ ((s) => (s[s.kInches = 0] = "kInches", s[s.kMillimeters = 1] = "kMillimeters", s[s.kPixels = 2] = "kPixels", s))(jh || {}), Wh = /* @__PURE__ */ ((s) => (s[s.k0degrees = 0] = "k0degrees", s[s.k90degrees = 1] = "k90degrees", s[s.k180degrees = 2] = "k180degrees", s[s.k270degrees = 3] = "k270degrees", s))(Wh || {}), Gh = /* @__PURE__ */ ((s) => (s[s.kDisplay = 0] = "kDisplay", s[s.kExtents = 1] = "kExtents", s[s.kLimits = 2] = "kLimits", s[s.kView = 3] = "kView", s[s.kWindow = 4] = "kWindow", s[s.kLayout = 5] = "kLayout", s))(Gh || {}), Le = /* @__PURE__ */ ((s) => (s[s.kDraft = 0] = "kDraft", s[s.kPreview = 1] = "kPreview", s[s.kNormal = 2] = "kNormal", s[s.kPresentation = 3] = "kPresentation", s[s.kMaximum = 4] = "kMaximum", s[s.kCustom = 5] = "kCustom", s))(Le || {}), ds = /* @__PURE__ */ ((s) => (s[s.kAsDisplayed = 0] = "kAsDisplayed", s[s.kWireframe = 1] = "kWireframe", s[s.kHidden = 2] = "kHidden", s[s.kRendered = 3] = "kRendered", s[s.kVisualStyle = 4] = "kVisualStyle", s[s.kRenderPreset = 5] = "kRenderPreset", s))(ds || {}), Dh = /* @__PURE__ */ ((s) => (s[s.kScaleToFit = 0] = "kScaleToFit", s[s.k1_128in_1ft = 1] = "k1_128in_1ft", s[s.k1_64in_1ft = 2] = "k1_64in_1ft", s[s.k1_32in_1ft = 3] = "k1_32in_1ft", s[s.k1_16in_1ft = 4] = "k1_16in_1ft", s[s.k3_32in_1ft = 5] = "k3_32in_1ft", s[s.k1_8in_1ft = 6] = "k1_8in_1ft", s[s.k3_16in_1ft = 7] = "k3_16in_1ft", s[s.k1_4in_1ft = 8] = "k1_4in_1ft", s[s.k3_8in_1ft = 9] = "k3_8in_1ft", s[s.k1_2in_1ft = 10] = "k1_2in_1ft", s[s.k3_4in_1ft = 11] = "k3_4in_1ft", s[s.k1in_1ft = 12] = "k1in_1ft", s[s.k3in_1ft = 13] = "k3in_1ft", s[s.k6in_1ft = 14] = "k6in_1ft", s[s.k1ft_1ft = 15] = "k1ft_1ft", s[s.k1_1 = 16] = "k1_1", s[s.k1_2 = 17] = "k1_2", s[s.k1_4 = 18] = "k1_4", s[s.k1_5 = 19] = "k1_5", s[s.k1_8 = 20] = "k1_8", s[s.k1_10 = 21] = "k1_10", s[s.k1_16 = 22] = "k1_16", s[s.k1_20 = 23] = "k1_20", s[s.k1_30 = 24] = "k1_30", s[s.k1_40 = 25] = "k1_40", s[s.k1_50 = 26] = "k1_50", s[s.k1_100 = 27] = "k1_100", s[s.k2_1 = 28] = "k2_1", s[s.k4_1 = 29] = "k4_1", s[s.k8_1 = 30] = "k8_1", s[s.k10_1 = 31] = "k10_1", s[s.k100_1 = 32] = "k100_1", s[s.k1000_1 = 33] = "k1000_1", s[s.k1and1_2in_1ft = 34] = "k1and1_2in_1ft", s))(Dh || {});
|
|
20063
|
+
const Hh = {
|
|
20032
20064
|
0: 0,
|
|
20033
20065
|
1: 1 / 1536,
|
|
20034
20066
|
2: 1 / 768,
|
|
@@ -20565,7 +20597,7 @@ class Uh extends le {
|
|
|
20565
20597
|
* ObjectARX-style getter for the standard scale as a numeric ratio.
|
|
20566
20598
|
*/
|
|
20567
20599
|
get stdScale() {
|
|
20568
|
-
return
|
|
20600
|
+
return Hh[this._stdScaleType] ?? 1;
|
|
20569
20601
|
}
|
|
20570
20602
|
/**
|
|
20571
20603
|
* Gets whether the standard scale is used to compute the plot scale.
|
|
@@ -20874,7 +20906,7 @@ class di {
|
|
|
20874
20906
|
return { value: null, done: !0 };
|
|
20875
20907
|
}
|
|
20876
20908
|
}
|
|
20877
|
-
class
|
|
20909
|
+
class Ds extends le {
|
|
20878
20910
|
/**
|
|
20879
20911
|
* Creates a new AcDbDictionary instance.
|
|
20880
20912
|
*
|
|
@@ -21083,7 +21115,7 @@ class Hs extends le {
|
|
|
21083
21115
|
return this;
|
|
21084
21116
|
}
|
|
21085
21117
|
}
|
|
21086
|
-
class Xh extends
|
|
21118
|
+
class Xh extends Ds {
|
|
21087
21119
|
/**
|
|
21088
21120
|
* Searches the dictionary for a layout associated with the specified block table record ID.
|
|
21089
21121
|
*
|
|
@@ -21822,7 +21854,7 @@ class Kh {
|
|
|
21822
21854
|
}
|
|
21823
21855
|
createDefaultDimStyle() {
|
|
21824
21856
|
this.db.tables.dimStyleTable.add(
|
|
21825
|
-
new
|
|
21857
|
+
new He({
|
|
21826
21858
|
name: $,
|
|
21827
21859
|
dimtxsty: $
|
|
21828
21860
|
})
|
|
@@ -23100,7 +23132,7 @@ ai.DEFAULT_DIM_VALUES = {
|
|
|
23100
23132
|
dimlwd: -2,
|
|
23101
23133
|
dimlwe: -2
|
|
23102
23134
|
};
|
|
23103
|
-
let
|
|
23135
|
+
let He = ai;
|
|
23104
23136
|
class al extends ce {
|
|
23105
23137
|
/**
|
|
23106
23138
|
* Creates a new AcDbLayerTable instance.
|
|
@@ -24362,7 +24394,7 @@ const j = {
|
|
|
24362
24394
|
name: j.CELWEIGHT,
|
|
24363
24395
|
type: "number",
|
|
24364
24396
|
isDbVar: !0,
|
|
24365
|
-
defaultValue:
|
|
24397
|
+
defaultValue: De.ByLayer
|
|
24366
24398
|
}), this.registerVar({
|
|
24367
24399
|
name: j.CLAYER,
|
|
24368
24400
|
type: "string",
|
|
@@ -24544,7 +24576,7 @@ class hu extends le {
|
|
|
24544
24576
|
layerErased: new Z(),
|
|
24545
24577
|
/** Fired during database opening operations to report progress */
|
|
24546
24578
|
openProgress: new Z()
|
|
24547
|
-
}, this._version = new kt("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = Br.DecimalDegrees, this._celtscale = 1, this._cecolor = new it(), this._celweight =
|
|
24579
|
+
}, this._version = new kt("AC1014"), this._angBase = 0, this._angDir = 0, this._aunits = Br.DecimalDegrees, this._celtscale = 1, this._cecolor = new it(), this._celweight = De.ByLayer, this._clayer = "0", this._textstyle = $, this._extents = new C(), this._insunits = ca.Millimeters, this._ltscale = 1, this._lwdisplay = !0, this._pdmode = 0, this._pdsize = 0, this._osmode = 0, this._maxHandle = 0, this._tables = {
|
|
24548
24580
|
appIdTable: new ul(this),
|
|
24549
24581
|
blockTable: new Jh(this),
|
|
24550
24582
|
dimStyleTable: new tl(this),
|
|
@@ -24554,10 +24586,10 @@ class hu extends le {
|
|
|
24554
24586
|
layerTable: new al(this),
|
|
24555
24587
|
viewportTable: new cl(this)
|
|
24556
24588
|
}, this._objects = {
|
|
24557
|
-
dictionary: new
|
|
24558
|
-
imageDefinition: new
|
|
24589
|
+
dictionary: new Ds(this),
|
|
24590
|
+
imageDefinition: new Ds(this),
|
|
24559
24591
|
layout: new Xh(this),
|
|
24560
|
-
xrecord: new
|
|
24592
|
+
xrecord: new Ds(this)
|
|
24561
24593
|
};
|
|
24562
24594
|
}
|
|
24563
24595
|
/**
|
|
@@ -24886,7 +24918,7 @@ class hu extends le {
|
|
|
24886
24918
|
this.updateSysVar(
|
|
24887
24919
|
j.CELWEIGHT,
|
|
24888
24920
|
this._celweight,
|
|
24889
|
-
t ??
|
|
24921
|
+
t ?? De.ByLayer,
|
|
24890
24922
|
(e) => {
|
|
24891
24923
|
this._celweight = e;
|
|
24892
24924
|
}
|
|
@@ -25272,7 +25304,7 @@ class hu extends le {
|
|
|
25272
25304
|
extendedFont: "SimKai"
|
|
25273
25305
|
})
|
|
25274
25306
|
), this.tables.dimStyleTable.has($) || this.tables.dimStyleTable.add(
|
|
25275
|
-
new
|
|
25307
|
+
new He({
|
|
25276
25308
|
name: $,
|
|
25277
25309
|
dimtxsty: $
|
|
25278
25310
|
})
|
|
@@ -25294,7 +25326,7 @@ class hu extends le {
|
|
|
25294
25326
|
*/
|
|
25295
25327
|
writeDxfHeaderSection(t) {
|
|
25296
25328
|
var e;
|
|
25297
|
-
t.startSection("HEADER"), t.writeString(9, "$ACADVER"), t.writeString(1, ((e = t.version) == null ? void 0 : e.name) ?? this.version.name), t.writeString(9, "$INSUNITS"), t.writeInt16(70, this.insunits), t.writeString(9, "$LTSCALE"), t.writeDouble(40, this.ltscale), t.writeString(9, "$LWDISPLAY"), t.writeInt16(70, this.lwdisplay ? 1 : 0), t.writeString(9, "$CLAYER"), t.writeString(8, this.clayer), t.writeString(9, "$TEXTSTYLE"), t.writeString(7, this.textstyle), t.writeString(9, "$ANGBASE"), t.writeAngle(50, this.angBase), t.writeString(9, "$ANGDIR"), t.writeInt16(70, this.angDir), t.writeString(9, "$EXTMIN"), t.writePoint3d(10, this.extmin), t.writeString(9, "$EXTMAX"), t.writePoint3d(10, this.extmax), t.writeString(9, "$PDMODE"), t.writeInt32(70, this.pdmode), t.writeString(9, "$PDSIZE"), t.writeDouble(40, this.pdsize), t.writeString(9, "$OSMODE"), t.writeInt32(70, this.osmode), t.endSection();
|
|
25329
|
+
t.startSection("HEADER"), t.writeString(9, "$ACADVER"), t.writeString(1, ((e = t.version) == null ? void 0 : e.name) ?? this.version.name), t.writeString(9, "$HANDSEED"), t.writeString(5, t.nextHandle.toString(16).toUpperCase()), t.version != null && t.version.value >= 27 && (t.writeString(9, "$DWGCODEPAGE"), t.writeString(3, "UTF-8")), t.writeString(9, "$INSUNITS"), t.writeInt16(70, this.insunits), t.writeString(9, "$LTSCALE"), t.writeDouble(40, this.ltscale), t.writeString(9, "$LWDISPLAY"), t.writeInt16(70, this.lwdisplay ? 1 : 0), t.writeString(9, "$CLAYER"), t.writeString(8, this.clayer), t.writeString(9, "$TEXTSTYLE"), t.writeString(7, this.textstyle), t.writeString(9, "$ANGBASE"), t.writeAngle(50, this.angBase), t.writeString(9, "$ANGDIR"), t.writeInt16(70, this.angDir), t.writeString(9, "$EXTMIN"), t.writePoint3d(10, this.extmin), t.writeString(9, "$EXTMAX"), t.writePoint3d(10, this.extmax), t.writeString(9, "$PDMODE"), t.writeInt32(70, this.pdmode), t.writeString(9, "$PDSIZE"), t.writeDouble(40, this.pdsize), t.writeString(9, "$OSMODE"), t.writeInt32(70, this.osmode), t.endSection();
|
|
25298
25330
|
}
|
|
25299
25331
|
/**
|
|
25300
25332
|
* Writes the TABLES section for the DXF export.
|
|
@@ -25895,7 +25927,7 @@ class lu extends da {
|
|
|
25895
25927
|
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;
|
|
25896
25928
|
}
|
|
25897
25929
|
}
|
|
25898
|
-
var J, Xe, X, q, Ye, At, ge, Rt, at, zt, Mt, ye, _e, we, yt, Vt, $e, qe, xe, fe, Ze, Ke, Qe, _t, jt, G, be, Je, M, ot, ts, ht, es, Wt, V, ss, Gt, Ie, bi, Ii, vt, is, Ee, wt,
|
|
25930
|
+
var J, Xe, X, q, Ye, At, ge, Rt, at, zt, Mt, ye, _e, we, yt, Vt, $e, qe, xe, fe, Ze, Ke, Qe, _t, jt, G, be, Je, M, ot, ts, ht, es, Wt, V, ss, Gt, Ie, bi, Ii, vt, is, Ee, wt, Dt, Ht, Ut, ns, rs, Xt, Se, Pe, Ei, as, Te, Yt, Ae, tt, $t, xt, Si, et, Pi, qt, ft, Me, os, ve, bt, Zt, It, Kt, Ti, ke, Et;
|
|
25899
25931
|
(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";
|
|
25900
25932
|
(Xe = {})[Xe.BYBLOCK = 0] = "BYBLOCK", Xe[Xe.BYLAYER = 256] = "BYLAYER";
|
|
25901
25933
|
(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";
|
|
@@ -26083,13 +26115,13 @@ let pn = [{ name: "DIMPOST", code: 3 }, { name: "DIMAPOST", code: 4, defaultValu
|
|
|
26083
26115
|
if (!i) return bs;
|
|
26084
26116
|
i(s, t, e);
|
|
26085
26117
|
}, pushContext: !0 }, ...pn.map((s) => ({ ...s, parser: h })), ...wa, ...R];
|
|
26086
|
-
class
|
|
26118
|
+
class Hs {
|
|
26087
26119
|
parseEntity(t, e) {
|
|
26088
26120
|
let i = {};
|
|
26089
26121
|
return E(Fl)(e, t, i), i;
|
|
26090
26122
|
}
|
|
26091
26123
|
}
|
|
26092
|
-
(bi = "ForEntityName") in
|
|
26124
|
+
(bi = "ForEntityName") in Hs ? Object.defineProperty(Hs, bi, { value: "DIMENSION", enumerable: !0, configurable: !0, writable: !0 }) : Hs[bi] = "DIMENSION";
|
|
26093
26125
|
let Bl = [{ code: 73 }, { code: 17, name: "leaderEnd", parser: _ }, { code: 16, name: "leaderStart", parser: _ }, { code: 71, name: "hasLeader", parser: v }, { code: 41, name: "endAngle", parser: h }, { code: 40, name: "startAngle", parser: h }, { code: 70, name: "isPartial", parser: v }, { code: 15, name: "centerPoint", parser: _ }, { code: 14, name: "xline2Point", parser: _ }, { code: 13, name: "xline1Point", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...pn.map((s) => ({ ...s, parser: h })), ...wa, ...R];
|
|
26094
26126
|
class Us {
|
|
26095
26127
|
parseEntity(t, e) {
|
|
@@ -26101,7 +26133,7 @@ class Us {
|
|
|
26101
26133
|
(vt = {})[vt.NONE = 0] = "NONE", vt[vt.INVISIBLE = 1] = "INVISIBLE", vt[vt.CONSTANT = 2] = "CONSTANT", vt[vt.VERIFICATION_REQUIRED = 4] = "VERIFICATION_REQUIRED", vt[vt.PRESET = 8] = "PRESET";
|
|
26102
26134
|
(is = {})[is.MULTILINE = 2] = "MULTILINE", is[is.CONSTANT_MULTILINE = 4] = "CONSTANT_MULTILINE";
|
|
26103
26135
|
(Ee = {})[Ee.NONE = 0] = "NONE", Ee[Ee.MIRRORED_X = 2] = "MIRRORED_X", Ee[Ee.MIRRORED_Y = 4] = "MIRRORED_Y";
|
|
26104
|
-
var Rl = ((wt = {})[wt.LEFT = 0] = "LEFT", wt[wt.CENTER = 1] = "CENTER", wt[wt.RIGHT = 2] = "RIGHT", wt[wt.ALIGNED = 3] = "ALIGNED", wt[wt.MIDDLE = 4] = "MIDDLE", wt[wt.FIT = 5] = "FIT", wt), zl = ((
|
|
26136
|
+
var Rl = ((wt = {})[wt.LEFT = 0] = "LEFT", wt[wt.CENTER = 1] = "CENTER", wt[wt.RIGHT = 2] = "RIGHT", wt[wt.ALIGNED = 3] = "ALIGNED", wt[wt.MIDDLE = 4] = "MIDDLE", wt[wt.FIT = 5] = "FIT", wt), zl = ((Dt = {})[Dt.BASELINE = 0] = "BASELINE", Dt[Dt.BOTTOM = 1] = "BOTTOM", Dt[Dt.MIDDLE = 2] = "MIDDLE", Dt[Dt.TOP = 3] = "TOP", Dt);
|
|
26105
26137
|
function xa(s, t, e) {
|
|
26106
26138
|
return t in s ? Object.defineProperty(s, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = e, s;
|
|
26107
26139
|
}
|
|
@@ -26145,10 +26177,10 @@ function br(s) {
|
|
|
26145
26177
|
}
|
|
26146
26178
|
Ea(Sa, "ForEntityName", "ATTDEF");
|
|
26147
26179
|
var Gl = [0, 16711680, 16776960, 65280, 65535, 255, 16711935, 16777215, 8421504, 12632256, 16711680, 16744319, 13369344, 13395558, 10027008, 10046540, 8323072, 8339263, 4980736, 4990502, 16727808, 16752511, 13382400, 13401958, 10036736, 10051404, 8331008, 8343359, 4985600, 4992806, 16744192, 16760703, 13395456, 13408614, 10046464, 10056268, 8339200, 8347455, 4990464, 4995366, 16760576, 16768895, 13408512, 13415014, 10056192, 10061132, 8347392, 8351551, 4995328, 4997670, 16776960, 16777087, 13421568, 13421670, 10000384, 10000460, 8355584, 8355647, 5000192, 5000230, 12582656, 14679935, 10079232, 11717734, 7510016, 8755276, 6258432, 7307071, 3755008, 4344870, 8388352, 12582783, 6736896, 10079334, 5019648, 7510092, 4161280, 6258495, 2509824, 3755046, 4194048, 10485631, 3394560, 8375398, 2529280, 6264908, 2064128, 5209919, 1264640, 3099686, 65280, 8388479, 52224, 6736998, 38912, 5019724, 32512, 4161343, 19456, 2509862, 65343, 8388511, 52275, 6737023, 38950, 5019743, 32543, 4161359, 19475, 2509871, 65407, 8388543, 52326, 6737049, 38988, 5019762, 32575, 4161375, 19494, 2509881, 65471, 8388575, 52377, 6737074, 39026, 5019781, 32607, 4161391, 19513, 2509890, 65535, 8388607, 52428, 6737100, 39064, 5019800, 32639, 4161407, 19532, 2509900, 49151, 8380415, 39372, 6730444, 29336, 5014936, 24447, 4157311, 14668, 2507340, 32767, 8372223, 26316, 6724044, 19608, 5010072, 16255, 4153215, 9804, 2505036, 16383, 8364031, 13260, 6717388, 9880, 5005208, 8063, 4149119, 4940, 2502476, 255, 8355839, 204, 6710988, 152, 5000344, 127, 4145023, 76, 2500172, 4129023, 10452991, 3342540, 8349388, 2490520, 6245528, 2031743, 5193599, 1245260, 3089996, 8323327, 12550143, 6684876, 10053324, 4980888, 7490712, 4128895, 6242175, 2490444, 3745356, 12517631, 14647295, 10027212, 11691724, 7471256, 8735896, 6226047, 7290751, 3735628, 4335180, 16711935, 16744447, 13369548, 13395660, 9961624, 9981080, 8323199, 8339327, 4980812, 4990540, 16711871, 16744415, 13369497, 13395634, 9961586, 9981061, 8323167, 8339311, 4980793, 4990530, 16711807, 16744383, 13369446, 13395609, 9961548, 9981042, 8323135, 8339295, 4980774, 4990521, 16711743, 16744351, 13369395, 13395583, 9961510, 9981023, 8323103, 8339279, 4980755, 4990511, 3355443, 5987163, 8684676, 11382189, 14079702, 16777215];
|
|
26148
|
-
function
|
|
26180
|
+
function Dl(s) {
|
|
26149
26181
|
return Gl[s];
|
|
26150
26182
|
}
|
|
26151
|
-
function
|
|
26183
|
+
function Hl(s) {
|
|
26152
26184
|
s.rewind();
|
|
26153
26185
|
let t = s.next();
|
|
26154
26186
|
if (t.code !== 101) throw Error("Bad call for skipEmbeddedObject()");
|
|
@@ -26182,7 +26214,7 @@ function Ul(s, t, e) {
|
|
|
26182
26214
|
s.materialObjectHardId = t.value;
|
|
26183
26215
|
break;
|
|
26184
26216
|
case 62:
|
|
26185
|
-
s.colorIndex = t.value, s.color =
|
|
26217
|
+
s.colorIndex = t.value, s.color = Dl(Math.abs(t.value));
|
|
26186
26218
|
break;
|
|
26187
26219
|
case 370:
|
|
26188
26220
|
s.lineweight = t.value;
|
|
@@ -26225,7 +26257,7 @@ function Pa(s, t, e) {
|
|
|
26225
26257
|
return t in s ? Object.defineProperty(s, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = e, s;
|
|
26226
26258
|
}
|
|
26227
26259
|
let Xl = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rotation: 0 }, Xs = [{ code: 46, name: "annotationHeight", parser: h }, { code: 101, parser(s, t) {
|
|
26228
|
-
|
|
26260
|
+
Hl(t);
|
|
26229
26261
|
} }, { 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: [...ni(430, 440)], name: "backgroundColor", parser: h }, { code: [...ni(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 }, ...ui("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 }, ...R];
|
|
26230
26262
|
class Ta {
|
|
26231
26263
|
parseEntity(t, e) {
|
|
@@ -26309,7 +26341,7 @@ class Ba {
|
|
|
26309
26341
|
}
|
|
26310
26342
|
}
|
|
26311
26343
|
Fa(Ba, "ForEntityName", "3DFACE");
|
|
26312
|
-
(
|
|
26344
|
+
(Ht = {})[Ht.First = 1] = "First", Ht[Ht.Second = 2] = "Second", Ht[Ht.Third = 4] = "Third", Ht[Ht.Fourth = 8] = "Fourth";
|
|
26313
26345
|
let Ra = [{ code: 330, name: "sourceBoundaryObjects", parser: h, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: h }], ec = [{ code: 11, name: "end", parser: _ }, { code: 10, name: "start", parser: _ }], sc = [{ code: 73, name: "isCCW", parser: v }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "radius", parser: h }, { code: 10, name: "center", parser: _ }], ic = [{ code: 73, name: "isCCW", parser: v }, { 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: _ }], nc = [{ 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(s, t) {
|
|
26314
26346
|
let e = { ...he(t), weight: 1 };
|
|
26315
26347
|
return (s = t.next()).code === 42 ? e.weight = s.value : t.rewind(), e;
|
|
@@ -26369,7 +26401,7 @@ function Ga(s, t, e) {
|
|
|
26369
26401
|
return t in s ? Object.defineProperty(s, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = e, s;
|
|
26370
26402
|
}
|
|
26371
26403
|
let gc = { xScale: 1, yScale: 1, zScale: 1, rotation: 0, columnCount: 0, rowCount: 0, columnSpacing: 0, rowSpacing: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, yc = [{ code: 210, name: "extrusionDirection", parser: _ }, { code: 45, name: "rowSpacing", parser: h }, { code: 44, name: "columnSpacing", parser: h }, { code: 71, name: "rowCount", parser: h }, { code: 70, name: "columnCount", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 43, name: "zScale", parser: h }, { code: 42, name: "yScale", parser: h }, { code: 41, name: "xScale", parser: h }, { code: 10, name: "insertionPoint", parser: _ }, { code: 2, name: "name", parser: h }, { code: 66, name: "isVariableAttributes", parser: v }, { code: 100, name: "subclassMarker", parser: h }, ...R];
|
|
26372
|
-
class
|
|
26404
|
+
class Da {
|
|
26373
26405
|
parseEntity(t, e) {
|
|
26374
26406
|
let i = {};
|
|
26375
26407
|
return this.parser(e, t, i), i;
|
|
@@ -26378,10 +26410,10 @@ class Ha {
|
|
|
26378
26410
|
Ga(this, "parser", E(yc, gc));
|
|
26379
26411
|
}
|
|
26380
26412
|
}
|
|
26381
|
-
function
|
|
26413
|
+
function Ha(s, t, e) {
|
|
26382
26414
|
return t in s ? Object.defineProperty(s, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = e, s;
|
|
26383
26415
|
}
|
|
26384
|
-
Ga(
|
|
26416
|
+
Ga(Da, "ForEntityName", "INSERT");
|
|
26385
26417
|
let _c = { isArrowheadEnabled: !0 }, wc = [{ code: 213, name: "offsetFromAnnotation", parser: _ }, { code: 212, name: "offsetFromBlock", parser: _ }, { code: 211, name: "horizontalDirection", parser: _ }, { code: 210, name: "normal", parser: _ }, { code: 340, name: "associatedAnnotation", parser: h }, { code: 77, name: "byBlockColor", parser: h }, { code: 10, name: "vertices", parser: _, isMultiple: !0 }, { code: 76, name: "numberOfVertices", parser: h }, { code: 41, name: "textWidth", parser: h }, { code: 40, name: "textHeight", parser: h }, { code: 75, name: "isHooklineExists", parser: v }, { code: 74, name: "isHooklineSameDirection", parser: v }, { code: 73, name: "leaderCreationFlag", parser: h }, { code: 72, name: "isSpline", parser: v }, { code: 71, name: "isArrowheadEnabled", parser: v }, { code: 3, name: "styleName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
|
|
26386
26418
|
class Ua {
|
|
26387
26419
|
parseEntity(t, e) {
|
|
@@ -26389,10 +26421,10 @@ class Ua {
|
|
|
26389
26421
|
return this.parser(e, t, i), i;
|
|
26390
26422
|
}
|
|
26391
26423
|
constructor() {
|
|
26392
|
-
|
|
26424
|
+
Ha(this, "parser", E(wc, _c));
|
|
26393
26425
|
}
|
|
26394
26426
|
}
|
|
26395
|
-
|
|
26427
|
+
Ha(Ua, "ForEntityName", "LEADER");
|
|
26396
26428
|
(Xt = {})[Xt.TextAnnotation = 0] = "TextAnnotation", Xt[Xt.ToleranceAnnotation = 1] = "ToleranceAnnotation", Xt[Xt.BlockReferenceAnnotation = 2] = "BlockReferenceAnnotation", Xt[Xt.NoAnnotation = 3] = "NoAnnotation";
|
|
26397
26429
|
function Xa(s, t, e) {
|
|
26398
26430
|
return t in s ? Object.defineProperty(s, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = e, s;
|
|
@@ -26612,28 +26644,28 @@ function mo(s, t, e) {
|
|
|
26612
26644
|
return t in s ? Object.defineProperty(s, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = e, s;
|
|
26613
26645
|
}
|
|
26614
26646
|
uo(po, "ForEntityName", "SECTION");
|
|
26615
|
-
let Gc = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } },
|
|
26647
|
+
let Gc = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Dc = [{ code: 210, name: "extrusionDirection", parser: _ }, { code: 39, name: "thickness", parser: h }, { code: [...ni(10, 14)], name: "points", isMultiple: !0, parser: _ }, { code: 100, name: "subclassMarker", parser: h }, ...R];
|
|
26616
26648
|
class go {
|
|
26617
26649
|
parseEntity(t, e) {
|
|
26618
26650
|
let i = {};
|
|
26619
26651
|
return this.parser(e, t, i), i;
|
|
26620
26652
|
}
|
|
26621
26653
|
constructor() {
|
|
26622
|
-
mo(this, "parser", E(
|
|
26654
|
+
mo(this, "parser", E(Dc, Gc));
|
|
26623
26655
|
}
|
|
26624
26656
|
}
|
|
26625
26657
|
function yo(s, t, e) {
|
|
26626
26658
|
return t in s ? Object.defineProperty(s, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : s[t] = e, s;
|
|
26627
26659
|
}
|
|
26628
26660
|
mo(go, "ForEntityName", "SOLID");
|
|
26629
|
-
let
|
|
26661
|
+
let Hc = [{ code: 350, name: "historyObjectSoftId", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ui("data"), { code: 70, name: "version", parser: h }, { code: 100 }, ...R];
|
|
26630
26662
|
class _o {
|
|
26631
26663
|
parseEntity(t, e) {
|
|
26632
26664
|
let i = {};
|
|
26633
26665
|
return this.parser(e, t, i), i;
|
|
26634
26666
|
}
|
|
26635
26667
|
constructor() {
|
|
26636
|
-
yo(this, "parser", E(
|
|
26668
|
+
yo(this, "parser", E(Hc));
|
|
26637
26669
|
}
|
|
26638
26670
|
}
|
|
26639
26671
|
function wo(s, t, e) {
|
|
@@ -26900,7 +26932,7 @@ function Mo(s) {
|
|
|
26900
26932
|
if (!s) throw TypeError("entity cannot be undefined or null");
|
|
26901
26933
|
s.handle || (s.handle = td++);
|
|
26902
26934
|
}
|
|
26903
|
-
let ed = Object.fromEntries([_a, Us, Sa, Ma, ka, Na,
|
|
26935
|
+
let ed = Object.fromEntries([_a, Us, Sa, Ma, ka, Na, Hs, Ca, Ba, Wa, Da, Ua, Ya, qa, Ys, Ka, Ja, Ta, eo, io, ao, ho, co, po, go, _o, xo, bo, $s, Ia, Eo, Va, mn, qs, Po, Ao].map((s) => [s.ForEntityName, new s()]));
|
|
26904
26936
|
function vo(s, t) {
|
|
26905
26937
|
let e = [];
|
|
26906
26938
|
for (; !L(s, 0, "EOF"); ) {
|
|
@@ -27250,7 +27282,7 @@ class Tr {
|
|
|
27250
27282
|
* @returns The converted AcDbFace entity
|
|
27251
27283
|
*/
|
|
27252
27284
|
convertFace(t) {
|
|
27253
|
-
const e = new
|
|
27285
|
+
const e = new Di();
|
|
27254
27286
|
return t.vertices.forEach(
|
|
27255
27287
|
(i, n) => e.setVertexAt(n, i)
|
|
27256
27288
|
), e;
|
|
@@ -27527,7 +27559,7 @@ class Tr {
|
|
|
27527
27559
|
return e.contents = t.text, t.styleName != null && (e.styleName = t.styleName), e.height = t.height, e.width = t.width, e.rotation = O.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;
|
|
27528
27560
|
}
|
|
27529
27561
|
convertLeader(t) {
|
|
27530
|
-
const e = new
|
|
27562
|
+
const e = new Hi();
|
|
27531
27563
|
return t.vertices.forEach((i) => {
|
|
27532
27564
|
e.appendVertex(i);
|
|
27533
27565
|
}), e.hasArrowHead = t.isArrowheadEnabled, e.hasHookLine = t.isHooklineExists, e.isSplined = t.isSpline, e.dimensionStyle = t.styleName, e.annoType = t.leaderCreationFlag, e;
|
|
@@ -28468,7 +28500,7 @@ class Cd extends ma {
|
|
|
28468
28500
|
dimblk2: a.DIMBLK2 || "",
|
|
28469
28501
|
dimlwd: a.DIMLWD,
|
|
28470
28502
|
dimlwe: a.DIMLWE
|
|
28471
|
-
}, l = new
|
|
28503
|
+
}, l = new He(o);
|
|
28472
28504
|
this.processCommonTableEntryAttrs(a, l), e.tables.dimStyleTable.add(l);
|
|
28473
28505
|
});
|
|
28474
28506
|
}
|
|
@@ -28680,7 +28712,7 @@ export {
|
|
|
28680
28712
|
St as AcCmErrors,
|
|
28681
28713
|
zd as AcCmEventDispatcher,
|
|
28682
28714
|
Z as AcCmEventManager,
|
|
28683
|
-
|
|
28715
|
+
Hd as AcCmLoader,
|
|
28684
28716
|
Go as AcCmLoadingManager,
|
|
28685
28717
|
Vo as AcCmObject,
|
|
28686
28718
|
Lr as AcCmPerformanceCollector,
|
|
@@ -28718,10 +28750,10 @@ export {
|
|
|
28718
28750
|
ma as AcDbDatabaseConverter,
|
|
28719
28751
|
Jt as AcDbDatabaseConverterManager,
|
|
28720
28752
|
nn as AcDbDiametricDimension,
|
|
28721
|
-
|
|
28753
|
+
Ds as AcDbDictionary,
|
|
28722
28754
|
Qh as AcDbDimArrowType,
|
|
28723
28755
|
tl as AcDbDimStyleTable,
|
|
28724
|
-
|
|
28756
|
+
He as AcDbDimStyleTableRecord,
|
|
28725
28757
|
el as AcDbDimTextHorizontal,
|
|
28726
28758
|
sl as AcDbDimTextVertical,
|
|
28727
28759
|
rl as AcDbDimVerticalJustification,
|
|
@@ -28735,7 +28767,7 @@ export {
|
|
|
28735
28767
|
Lo as AcDbDxfFiler,
|
|
28736
28768
|
Gi as AcDbEllipse,
|
|
28737
28769
|
mt as AcDbEntity,
|
|
28738
|
-
|
|
28770
|
+
Di as AcDbFace,
|
|
28739
28771
|
Rs as AcDbFileType,
|
|
28740
28772
|
Js as AcDbHatch,
|
|
28741
28773
|
Gs as AcDbHatchPatternType,
|
|
@@ -28746,7 +28778,7 @@ export {
|
|
|
28746
28778
|
ci as AcDbLayout,
|
|
28747
28779
|
Xh as AcDbLayoutDictionary,
|
|
28748
28780
|
$h as AcDbLayoutManager,
|
|
28749
|
-
|
|
28781
|
+
Hi as AcDbLeader,
|
|
28750
28782
|
Nh as AcDbLeaderAnnotationType,
|
|
28751
28783
|
ti as AcDbLine,
|
|
28752
28784
|
Vh as AcDbLineSpacingStyle,
|
|
@@ -28763,7 +28795,7 @@ export {
|
|
|
28763
28795
|
Uh as AcDbPlotSettings,
|
|
28764
28796
|
Le as AcDbPlotShadePlotResLevel,
|
|
28765
28797
|
ds as AcDbPlotShadePlotType,
|
|
28766
|
-
|
|
28798
|
+
Dh as AcDbPlotStdScaleType,
|
|
28767
28799
|
Gh as AcDbPlotType,
|
|
28768
28800
|
$i as AcDbPoint,
|
|
28769
28801
|
cs as AcDbPoly2dType,
|
|
@@ -28838,7 +28870,7 @@ export {
|
|
|
28838
28870
|
b as AcGeVector3d,
|
|
28839
28871
|
na as AcGiArrowType,
|
|
28840
28872
|
oa as AcGiDefaultLightingType,
|
|
28841
|
-
|
|
28873
|
+
De as AcGiLineWeight,
|
|
28842
28874
|
ct as AcGiMTextAttachmentPoint,
|
|
28843
28875
|
re as AcGiMTextFlowDirection,
|
|
28844
28876
|
aa as AcGiOrthographicType,
|
|
@@ -28852,13 +28884,13 @@ export {
|
|
|
28852
28884
|
$ as DEFAULT_TEXT_STYLE,
|
|
28853
28885
|
Yr as DEFAULT_TOL,
|
|
28854
28886
|
zr as DEG2RAD,
|
|
28855
|
-
|
|
28887
|
+
Do as DefaultLoadingManager,
|
|
28856
28888
|
Re as FLOAT_TOL,
|
|
28857
28889
|
nr as MLIGHTCAD_APPID,
|
|
28858
28890
|
Ud as ORIGIN_POINT_2D,
|
|
28859
28891
|
Ur as ORIGIN_POINT_3D,
|
|
28860
28892
|
Vr as RAD2DEG,
|
|
28861
|
-
|
|
28893
|
+
H as TAU,
|
|
28862
28894
|
mi as TEMP_OBJECT_ID_PREFIX,
|
|
28863
28895
|
nu as acdbDisableOsnapMode,
|
|
28864
28896
|
iu as acdbEnableOsnapMode,
|