@mlightcad/data-model 1.0.10 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data-model.js +361 -366
- package/dist/data-model.umd.cjs +2 -2
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -1
- package/lib/converter/AcDbEntitiyConverter.js +2 -6
- package/lib/converter/AcDbEntitiyConverter.js.map +1 -1
- package/lib/entity/AcDbSpline.d.ts +4 -2
- package/lib/entity/AcDbSpline.d.ts.map +1 -1
- package/lib/entity/AcDbSpline.js +11 -6
- package/lib/entity/AcDbSpline.js.map +1 -1
- package/lib/object/layout/AcDbLayoutDictionary.js +1 -1
- package/lib/object/layout/AcDbLayoutDictionary.js.map +1 -1
- package/package.json +4 -4
package/dist/data-model.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function On(r, t) {
|
|
2
2
|
for (var e = 0; e < t.length; e++) {
|
|
3
3
|
const s = t[e];
|
|
4
4
|
if (typeof s != "string" && !Array.isArray(s)) {
|
|
@@ -644,15 +644,15 @@ let at = class {
|
|
|
644
644
|
s.call(null, t, ...e);
|
|
645
645
|
}
|
|
646
646
|
};
|
|
647
|
-
var
|
|
648
|
-
function
|
|
647
|
+
var Nn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
648
|
+
function Dn(r) {
|
|
649
649
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
650
650
|
}
|
|
651
651
|
var nr = { exports: {} };
|
|
652
652
|
(function(r) {
|
|
653
653
|
(function(t, e) {
|
|
654
654
|
r.exports ? r.exports = e() : t.log = e();
|
|
655
|
-
})(
|
|
655
|
+
})(Nn, function() {
|
|
656
656
|
var t = function() {
|
|
657
657
|
}, e = "undefined", s = typeof window !== e && typeof window.navigator !== e && /Trident\/|MSIE /.test(window.navigator.userAgent), n = [
|
|
658
658
|
"trace",
|
|
@@ -698,16 +698,16 @@ var nr = { exports: {} };
|
|
|
698
698
|
function g(y, x) {
|
|
699
699
|
var _ = this, T, E, S, A = "loglevel";
|
|
700
700
|
typeof y == "string" ? A += ":" + y : typeof y == "symbol" && (A = void 0);
|
|
701
|
-
function
|
|
702
|
-
var
|
|
701
|
+
function z(C) {
|
|
702
|
+
var R = (n[C] || "silent").toUpperCase();
|
|
703
703
|
if (!(typeof window === e || !A)) {
|
|
704
704
|
try {
|
|
705
|
-
window.localStorage[A] =
|
|
705
|
+
window.localStorage[A] = R;
|
|
706
706
|
return;
|
|
707
707
|
} catch {
|
|
708
708
|
}
|
|
709
709
|
try {
|
|
710
|
-
window.document.cookie = encodeURIComponent(A) + "=" +
|
|
710
|
+
window.document.cookie = encodeURIComponent(A) + "=" + R + ";";
|
|
711
711
|
} catch {
|
|
712
712
|
}
|
|
713
713
|
}
|
|
@@ -721,9 +721,9 @@ var nr = { exports: {} };
|
|
|
721
721
|
}
|
|
722
722
|
if (typeof C === e)
|
|
723
723
|
try {
|
|
724
|
-
var
|
|
724
|
+
var R = window.document.cookie, Lt = encodeURIComponent(A), kt = R.indexOf(Lt + "=");
|
|
725
725
|
kt !== -1 && (C = /^([^;]+)/.exec(
|
|
726
|
-
|
|
726
|
+
R.slice(kt + Lt.length + 1)
|
|
727
727
|
)[1]);
|
|
728
728
|
} catch {
|
|
729
729
|
}
|
|
@@ -743,9 +743,9 @@ var nr = { exports: {} };
|
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
745
|
function it(C) {
|
|
746
|
-
var
|
|
747
|
-
if (typeof
|
|
748
|
-
return
|
|
746
|
+
var R = C;
|
|
747
|
+
if (typeof R == "string" && _.levels[R.toUpperCase()] !== void 0 && (R = _.levels[R.toUpperCase()]), typeof R == "number" && R >= 0 && R <= _.levels.SILENT)
|
|
748
|
+
return R;
|
|
749
749
|
throw new TypeError("log.setLevel() called with invalid level: " + C);
|
|
750
750
|
}
|
|
751
751
|
_.name = y, _.levels = {
|
|
@@ -757,8 +757,8 @@ var nr = { exports: {} };
|
|
|
757
757
|
SILENT: 5
|
|
758
758
|
}, _.methodFactory = x || m, _.getLevel = function() {
|
|
759
759
|
return S ?? E ?? T;
|
|
760
|
-
}, _.setLevel = function(C,
|
|
761
|
-
return S = it(C),
|
|
760
|
+
}, _.setLevel = function(C, R) {
|
|
761
|
+
return S = it(C), R !== !1 && z(S), d.call(_);
|
|
762
762
|
}, _.setDefaultLevel = function(C) {
|
|
763
763
|
E = it(C), I() || _.setLevel(C, !1);
|
|
764
764
|
}, _.resetLevel = function() {
|
|
@@ -795,9 +795,9 @@ var nr = { exports: {} };
|
|
|
795
795
|
});
|
|
796
796
|
})(nr);
|
|
797
797
|
var ir = nr.exports;
|
|
798
|
-
const
|
|
798
|
+
const zn = /* @__PURE__ */ Dn(ir), Rn = /* @__PURE__ */ On({
|
|
799
799
|
__proto__: null,
|
|
800
|
-
default:
|
|
800
|
+
default: zn
|
|
801
801
|
}, [ir]), Ko = !0, Ve = Rn;
|
|
802
802
|
Ve.setLevel("debug");
|
|
803
803
|
const Zo = (r) => {
|
|
@@ -817,10 +817,10 @@ function Ie(r, ...t) {
|
|
|
817
817
|
Object.prototype.hasOwnProperty.call(e, s) && r[s] === void 0 && (r[s] = e[s]);
|
|
818
818
|
return r;
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function Fn(r, t) {
|
|
821
821
|
return r != null && Object.prototype.hasOwnProperty.call(r, t);
|
|
822
822
|
}
|
|
823
|
-
function
|
|
823
|
+
function Bn(r) {
|
|
824
824
|
return r == null ? !0 : Array.isArray(r) || typeof r == "string" ? r.length === 0 : r instanceof Map || r instanceof Set ? r.size === 0 : typeof r == "object" ? Object.keys(r).length === 0 : !1;
|
|
825
825
|
}
|
|
826
826
|
function fe(r, t) {
|
|
@@ -856,7 +856,7 @@ function fe(r, t) {
|
|
|
856
856
|
return !1;
|
|
857
857
|
return !0;
|
|
858
858
|
}
|
|
859
|
-
let
|
|
859
|
+
let Vn = class ar {
|
|
860
860
|
/**
|
|
861
861
|
* Create one object to store attributes. For performance reason, values of attributes passed to constructor
|
|
862
862
|
* will not be cloned to `attributes` property. So it means that value of `attributes` property in this object
|
|
@@ -917,7 +917,7 @@ let Bn = class ar {
|
|
|
917
917
|
* If you specify an attribute name, determine if that attribute has changed.
|
|
918
918
|
*/
|
|
919
919
|
hasChanged(t) {
|
|
920
|
-
return t == null ? !
|
|
920
|
+
return t == null ? !Bn(this.changed) : Fn(this.changed, t);
|
|
921
921
|
}
|
|
922
922
|
/**
|
|
923
923
|
* Return an object containing all the attributes that have changed. Useful for determining what parts
|
|
@@ -1027,7 +1027,7 @@ class Qo {
|
|
|
1027
1027
|
return `${parseFloat(o.toFixed(n))} ${i[a]}`;
|
|
1028
1028
|
}
|
|
1029
1029
|
}
|
|
1030
|
-
class
|
|
1030
|
+
class jn {
|
|
1031
1031
|
constructor(t) {
|
|
1032
1032
|
this.name = t;
|
|
1033
1033
|
}
|
|
@@ -1038,7 +1038,7 @@ class Vn {
|
|
|
1038
1038
|
throw new Error("run() must be implemented by subclass");
|
|
1039
1039
|
}
|
|
1040
1040
|
}
|
|
1041
|
-
class
|
|
1041
|
+
class Gn {
|
|
1042
1042
|
constructor() {
|
|
1043
1043
|
this.tasks = [], this.onProgress = () => {
|
|
1044
1044
|
}, this.onComplete = () => {
|
|
@@ -1098,7 +1098,7 @@ class jn {
|
|
|
1098
1098
|
this.onComplete(s);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
let
|
|
1101
|
+
let Hn = class {
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Create a new AcCmLoadingManager instance
|
|
1104
1104
|
* @param onLoad this function will be called when all loaders are done.
|
|
@@ -1182,14 +1182,14 @@ let Gn = class {
|
|
|
1182
1182
|
return null;
|
|
1183
1183
|
}
|
|
1184
1184
|
};
|
|
1185
|
-
const
|
|
1185
|
+
const Un = /* @__PURE__ */ new Hn();
|
|
1186
1186
|
let tl = class {
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Creates a new AcCmLoader instance.
|
|
1189
1189
|
* @param manager The loadingManager for the loader to use. Default is DefaultLoadingManager.
|
|
1190
1190
|
*/
|
|
1191
1191
|
constructor(t) {
|
|
1192
|
-
this.manager = t !== void 0 ? t :
|
|
1192
|
+
this.manager = t !== void 0 ? t : Un, this.crossOrigin = "anonymous", this.withCredentials = !1, this.path = "", this.resourcePath = "", this.requestHeader = {};
|
|
1193
1193
|
}
|
|
1194
1194
|
/**
|
|
1195
1195
|
* This method is equivalent to 'load', but returns a Promise.
|
|
@@ -1254,7 +1254,7 @@ let tl = class {
|
|
|
1254
1254
|
return this.requestHeader = t, this;
|
|
1255
1255
|
}
|
|
1256
1256
|
};
|
|
1257
|
-
class
|
|
1257
|
+
class Wn {
|
|
1258
1258
|
/**
|
|
1259
1259
|
* Construct one instance of this class
|
|
1260
1260
|
* @param count Input the total number of items to process
|
|
@@ -1309,13 +1309,13 @@ class Un {
|
|
|
1309
1309
|
await s();
|
|
1310
1310
|
}
|
|
1311
1311
|
}
|
|
1312
|
-
var W, ne, V, G, ie, lt, $, gt, ht, Ct, ae, oe, Ot, Nt, le, he, ce, tt, pt, D, Dt, de, P, K, ue, Z, yt, me, _t, ct, ge,
|
|
1312
|
+
var W, ne, V, G, ie, lt, $, gt, ht, Ct, ae, oe, Ot, Nt, le, he, ce, tt, pt, D, Dt, de, P, K, ue, Z, yt, me, _t, ct, ge, zt, et, xt, ns, is, ft, pe, ye, bt, _e, as, os, Rt, Y, wt, q, st, ls, hs, cs, ds, us, ms;
|
|
1313
1313
|
(W = {})[W.None = 0] = "None", W[W.Anonymous = 1] = "Anonymous", W[W.NonConstant = 2] = "NonConstant", W[W.Xref = 4] = "Xref", W[W.XrefOverlay = 8] = "XrefOverlay", W[W.ExternallyDependent = 16] = "ExternallyDependent", W[W.ResolvedOrDependent = 32] = "ResolvedOrDependent", W[W.ReferencedXref = 64] = "ReferencedXref";
|
|
1314
1314
|
(ne = {})[ne.BYBLOCK = 0] = "BYBLOCK", ne[ne.BYLAYER = 256] = "BYLAYER";
|
|
1315
1315
|
(V = {})[V.Rotated = 0] = "Rotated", V[V.Aligned = 1] = "Aligned", V[V.Angular = 2] = "Angular", V[V.Diameter = 3] = "Diameter", V[V.Radius = 4] = "Radius", V[V.Angular3Point = 5] = "Angular3Point", V[V.Ordinate = 6] = "Ordinate", V[V.ReferenceIsExclusive = 32] = "ReferenceIsExclusive", V[V.IsOrdinateXTypeFlag = 64] = "IsOrdinateXTypeFlag", V[V.IsCustomTextPositionFlag = 128] = "IsCustomTextPositionFlag";
|
|
1316
1316
|
(G = {})[G.TopLeft = 1] = "TopLeft", G[G.TopCenter = 2] = "TopCenter", G[G.TopRight = 3] = "TopRight", G[G.MiddleLeft = 4] = "MiddleLeft", G[G.MiddleCenter = 5] = "MiddleCenter", G[G.MiddleRight = 6] = "MiddleRight", G[G.BottomLeft = 7] = "BottomLeft", G[G.BottomCenter = 8] = "BottomCenter", G[G.BottomRight = 9] = "BottomRight";
|
|
1317
1317
|
(ie = {})[ie.AtLeast = 1] = "AtLeast", ie[ie.Exact = 2] = "Exact";
|
|
1318
|
-
var Fs = ((lt = {})[lt.Center = 0] = "Center", lt[lt.Above = 1] = "Above", lt[lt.Outside = 2] = "Outside", lt[lt.JIS = 3] = "JIS", lt[lt.Below = 4] = "Below", lt), Wt = (($ = {})[$.Feet = 0] = "Feet", $[$.None = 1] = "None", $[$.Inch = 2] = "Inch", $[$.FeetAndInch = 3] = "FeetAndInch", $[$.Leading = 4] = "Leading", $[$.Trailing = 8] = "Trailing", $[$.LeadingAndTrailing = 12] = "LeadingAndTrailing", $),
|
|
1318
|
+
var Fs = ((lt = {})[lt.Center = 0] = "Center", lt[lt.Above = 1] = "Above", lt[lt.Outside = 2] = "Outside", lt[lt.JIS = 3] = "JIS", lt[lt.Below = 4] = "Below", lt), Wt = (($ = {})[$.Feet = 0] = "Feet", $[$.None = 1] = "None", $[$.Inch = 2] = "Inch", $[$.FeetAndInch = 3] = "FeetAndInch", $[$.Leading = 4] = "Leading", $[$.Trailing = 8] = "Trailing", $[$.LeadingAndTrailing = 12] = "LeadingAndTrailing", $), Yn = ((gt = {})[gt.None = 0] = "None", gt[gt.Leading = 1] = "Leading", gt[gt.Trailing = 2] = "Trailing", gt[gt.LeadingAndTrailing = 3] = "LeadingAndTrailing", gt), qn = ((ht = {})[ht.Center = 0] = "Center", ht[ht.Left = 1] = "Left", ht[ht.Right = 2] = "Right", ht[ht.OverFirst = 3] = "OverFirst", ht[ht.OverSecond = 4] = "OverSecond", ht), Xn = ((Ct = {})[Ct.Bottom = 0] = "Bottom", Ct[Ct.Center = 1] = "Center", Ct[Ct.Top = 2] = "Top", Ct);
|
|
1319
1319
|
(ae = {})[ae.PatternFill = 0] = "PatternFill", ae[ae.SolidFill = 1] = "SolidFill";
|
|
1320
1320
|
(oe = {})[oe.NonAssociative = 0] = "NonAssociative", oe[oe.Associative = 1] = "Associative";
|
|
1321
1321
|
(Ot = {})[Ot.Normal = 0] = "Normal", Ot[Ot.Outer = 1] = "Outer", Ot[Ot.Ignore = 2] = "Ignore";
|
|
@@ -1323,8 +1323,8 @@ var Fs = ((lt = {})[lt.Center = 0] = "Center", lt[lt.Above = 1] = "Above", lt[lt
|
|
|
1323
1323
|
(le = {})[le.NotAnnotated = 0] = "NotAnnotated", le[le.Annotated = 1] = "Annotated";
|
|
1324
1324
|
(he = {})[he.Solid = 0] = "Solid", he[he.Gradient = 1] = "Gradient";
|
|
1325
1325
|
(ce = {})[ce.TwoColor = 0] = "TwoColor", ce[ce.OneColor = 1] = "OneColor";
|
|
1326
|
-
var
|
|
1327
|
-
|
|
1326
|
+
var $n = ((tt = {})[tt.Default = 0] = "Default", tt[tt.External = 1] = "External", tt[tt.Polyline = 2] = "Polyline", tt[tt.Derived = 4] = "Derived", tt[tt.Textbox = 8] = "Textbox", tt[tt.Outermost = 16] = "Outermost", tt), Oe = ((pt = {})[pt.Line = 1] = "Line", pt[pt.Circular = 2] = "Circular", pt[pt.Elliptic = 3] = "Elliptic", pt[pt.Spline = 4] = "Spline", pt), Kn = ((D = {})[D.Off = 0] = "Off", D[D.Solid = 1] = "Solid", D[D.Dashed = 2] = "Dashed", D[D.Dotted = 3] = "Dotted", D[D.ShotDash = 4] = "ShotDash", D[D.MediumDash = 5] = "MediumDash", D[D.LongDash = 6] = "LongDash", D[D.DoubleShortDash = 7] = "DoubleShortDash", D[D.DoubleMediumDash = 8] = "DoubleMediumDash", D[D.DoubleLongDash = 9] = "DoubleLongDash", D[D.DoubleMediumLongDash = 10] = "DoubleMediumLongDash", D[D.SparseDot = 11] = "SparseDot", D);
|
|
1327
|
+
Kn.Off;
|
|
1328
1328
|
(Dt = {})[Dt.Standard = -3] = "Standard", Dt[Dt.ByLayer = -2] = "ByLayer", Dt[Dt.ByBlock = -1] = "ByBlock";
|
|
1329
1329
|
(de = {})[de.English = 0] = "English", de[de.Metric = 1] = "Metric";
|
|
1330
1330
|
(P = {})[P.PERSPECTIVE_MODE = 1] = "PERSPECTIVE_MODE", P[P.FRONT_CLIPPING = 2] = "FRONT_CLIPPING", P[P.BACK_CLIPPING = 4] = "BACK_CLIPPING", P[P.UCS_FOLLOW = 8] = "UCS_FOLLOW", P[P.FRONT_CLIP_NOT_AT_EYE = 16] = "FRONT_CLIP_NOT_AT_EYE", P[P.UCS_ICON_VISIBILITY = 32] = "UCS_ICON_VISIBILITY", P[P.UCS_ICON_AT_ORIGIN = 64] = "UCS_ICON_AT_ORIGIN", P[P.FAST_ZOOM = 128] = "FAST_ZOOM", P[P.SNAP_MODE = 256] = "SNAP_MODE", P[P.GRID_MODE = 512] = "GRID_MODE", P[P.ISOMETRIC_SNAP_STYLE = 1024] = "ISOMETRIC_SNAP_STYLE", P[P.HIDE_PLOT_MODE = 2048] = "HIDE_PLOT_MODE", P[P.K_ISO_PAIR_TOP = 4096] = "K_ISO_PAIR_TOP", P[P.K_ISO_PAIR_RIGHT = 8192] = "K_ISO_PAIR_RIGHT", P[P.VIEWPORT_ZOOM_LOCKING = 16384] = "VIEWPORT_ZOOM_LOCKING", P[P.UNUSED = 32768] = "UNUSED", P[P.NON_RECTANGULAR_CLIPPING = 65536] = "NON_RECTANGULAR_CLIPPING", P[P.VIEWPORT_OFF = 131072] = "VIEWPORT_OFF", P[P.GRID_BEYOND_DRAWING_LIMITS = 262144] = "GRID_BEYOND_DRAWING_LIMITS", P[P.ADAPTIVE_GRID_DISPLAY = 524288] = "ADAPTIVE_GRID_DISPLAY", P[P.SUBDIVISION_BELOW_SPACING = 1048576] = "SUBDIVISION_BELOW_SPACING", P[P.GRID_FOLLOWS_WORKPLANE = 2097152] = "GRID_FOLLOWS_WORKPLANE";
|
|
@@ -1537,10 +1537,10 @@ function Ms(r, t, e) {
|
|
|
1537
1537
|
}
|
|
1538
1538
|
return !0;
|
|
1539
1539
|
}
|
|
1540
|
-
let
|
|
1540
|
+
let Zn = 0;
|
|
1541
1541
|
function cr(r) {
|
|
1542
1542
|
if (!r) throw TypeError("entity cannot be undefined or null");
|
|
1543
|
-
r.handle || (r.handle =
|
|
1543
|
+
r.handle || (r.handle = Zn++);
|
|
1544
1544
|
}
|
|
1545
1545
|
(_t = {})[_t.CAST_AND_RECEIVE = 0] = "CAST_AND_RECEIVE", _t[_t.CAST = 1] = "CAST", _t[_t.RECEIVE = 2] = "RECEIVE", _t[_t.IGNORE = 3] = "IGNORE";
|
|
1546
1546
|
let j = [{ code: 1001, name: "xdata", parser: hr }, { code: 284, name: "shadowMode", parser: l }, { code: 390, name: "plotStyleHardId", parser: l }, { code: 440, name: "transparency", parser: l }, { code: 430, name: "colorName", parser: l }, { code: 420, name: "color", parser: l }, { code: 310, name: "proxyEntity", isMultiple: !0, parser: l }, { code: 92, name: "proxyByte", parser: l }, { code: 60, name: "isVisible", parser: F }, { code: 48, name: "lineTypeScale", parser: l }, { code: 370, name: "lineweight", parser: l }, { code: 62, name: "colorIndex", parser(r, t, e) {
|
|
@@ -1553,25 +1553,25 @@ function je(r, t) {
|
|
|
1553
1553
|
function dr(r, t, e) {
|
|
1554
1554
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1555
1555
|
}
|
|
1556
|
-
let
|
|
1556
|
+
let Qn = { extrusionDirection: { x: 0, y: 0, z: 1 } }, Jn = [{ code: 210, name: "extrusionDirection", parser: f }, { code: 51, name: "endAngle", parser: l }, { code: 50, name: "startAngle", parser: l }, { code: 100, name: "subclassMarker", parser: l }, { code: 40, name: "radius", parser: l }, { code: 10, name: "center", parser: f }, { code: 39, name: "thickness", parser: l }, { code: 100 }, ...j];
|
|
1557
1557
|
class ur {
|
|
1558
1558
|
parseEntity(t, e) {
|
|
1559
1559
|
let s = {};
|
|
1560
1560
|
return this.parser(e, t, s), s;
|
|
1561
1561
|
}
|
|
1562
1562
|
constructor() {
|
|
1563
|
-
dr(this, "parser", M(
|
|
1563
|
+
dr(this, "parser", M(Jn, Qn));
|
|
1564
1564
|
}
|
|
1565
1565
|
}
|
|
1566
1566
|
dr(ur, "ForEntityName", "ARC");
|
|
1567
1567
|
(ct = {})[ct.NONE = 0] = "NONE", ct[ct.INVISIBLE = 1] = "INVISIBLE", ct[ct.CONSTANT = 2] = "CONSTANT", ct[ct.VERIFICATION_REQUIRED = 4] = "VERIFICATION_REQUIRED", ct[ct.PRESET = 8] = "PRESET";
|
|
1568
1568
|
(ge = {})[ge.MULTILINE = 2] = "MULTILINE", ge[ge.CONSTANT_MULTILINE = 4] = "CONSTANT_MULTILINE";
|
|
1569
|
-
(
|
|
1570
|
-
var
|
|
1569
|
+
(zt = {})[zt.NONE = 0] = "NONE", zt[zt.MIRRORED_X = 2] = "MIRRORED_X", zt[zt.MIRRORED_Y = 4] = "MIRRORED_Y";
|
|
1570
|
+
var ti = ((et = {})[et.LEFT = 0] = "LEFT", et[et.CENTER = 1] = "CENTER", et[et.RIGHT = 2] = "RIGHT", et[et.ALIGNED = 3] = "ALIGNED", et[et.MIDDLE = 4] = "MIDDLE", et[et.FIT = 5] = "FIT", et), ei = ((xt = {})[xt.BASELINE = 0] = "BASELINE", xt[xt.BOTTOM = 1] = "BOTTOM", xt[xt.MIDDLE = 2] = "MIDDLE", xt[xt.TOP = 3] = "TOP", xt);
|
|
1571
1571
|
function mr(r, t, e) {
|
|
1572
1572
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1573
1573
|
}
|
|
1574
|
-
let gr = { thickness: 0, rotation: 0, xScale: 1, obliqueAngle: 0, styleName: "STANDARD", generationFlag: 0, halign:
|
|
1574
|
+
let gr = { thickness: 0, rotation: 0, xScale: 1, obliqueAngle: 0, styleName: "STANDARD", generationFlag: 0, halign: ti.LEFT, valign: ei.BASELINE, extrusionDirection: { x: 0, y: 0, z: 1 } }, pr = [{ code: 73, name: "valign", parser: l }, { code: 100 }, { code: 210, name: "extrusionDirection", parser: f }, { code: 11, name: "endPoint", parser: f }, { code: 72, name: "valign", parser: l }, { code: 72, name: "halign", parser: l }, { code: 71, name: "generationFlag", parser: l }, { code: 7, name: "styleName", parser: l }, { code: 51, name: "obliqueAngle", parser: l }, { code: 41, name: "xScale", parser: l }, { code: 50, name: "rotation", parser: l }, { code: 1, name: "text", parser: l }, { code: 40, name: "textHeight", parser: l }, { code: 10, name: "startPoint", parser: f }, { code: 39, name: "thickness", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1575
1575
|
class yr {
|
|
1576
1576
|
parseEntity(t, e) {
|
|
1577
1577
|
let s = {};
|
|
@@ -1585,28 +1585,28 @@ function _r(r, t, e) {
|
|
|
1585
1585
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1586
1586
|
}
|
|
1587
1587
|
mr(yr, "ForEntityName", "TEXT");
|
|
1588
|
-
let
|
|
1588
|
+
let si = { ...gr }, ri = [{ code: 2 }, { code: 40, name: "annotationScale", parser: l }, { code: 10, name: "alignmentPoint", parser: f }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: l }, { code: 70, name: "numberOfSecondaryAttributes", parser: l }, { code: 70, name: "isReallyLocked", parser: F }, { code: 70, name: "mtextFlag", parser: l }, { code: 280, name: "isDuplicatedRecord", parser: F }, { code: 100 }, { code: 280, name: "isLocked", parser: F }, { code: 74, name: "valign", parser: l }, { code: 73 }, { code: 70, name: "attributeFlag", parser: l }, { code: 2, name: "tag", parser: l }, { code: 3, name: "prompt", parser: l }, { code: 280 }, { code: 100, name: "subclassMarker", parser: l }, ...pr.slice(2)];
|
|
1589
1589
|
class xr {
|
|
1590
1590
|
parseEntity(t, e) {
|
|
1591
1591
|
let s = {};
|
|
1592
1592
|
return this.parser(e, t, s), s;
|
|
1593
1593
|
}
|
|
1594
1594
|
constructor() {
|
|
1595
|
-
_r(this, "parser", M(
|
|
1595
|
+
_r(this, "parser", M(ri, si));
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
1598
|
function fr(r, t, e) {
|
|
1599
1599
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1600
1600
|
}
|
|
1601
1601
|
_r(xr, "ForEntityName", "ATTDEF");
|
|
1602
|
-
let
|
|
1602
|
+
let ni = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, ii = [{ code: 210, name: "extrusionDirection", parser: f }, { code: 40, name: "radius", parser: l }, { code: 10, name: "center", parser: f }, { code: 39, name: "thickness", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1603
1603
|
class br {
|
|
1604
1604
|
parseEntity(t, e) {
|
|
1605
1605
|
let s = {};
|
|
1606
1606
|
return this.parser(e, t, s), s;
|
|
1607
1607
|
}
|
|
1608
1608
|
constructor() {
|
|
1609
|
-
fr(this, "parser", M(
|
|
1609
|
+
fr(this, "parser", M(ii, ni));
|
|
1610
1610
|
}
|
|
1611
1611
|
}
|
|
1612
1612
|
fr(br, "ForEntityName", "CIRCLE");
|
|
@@ -1701,28 +1701,28 @@ function wr(r, t, e) {
|
|
|
1701
1701
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1702
1702
|
}
|
|
1703
1703
|
is = "DIMENSION", (ns = "ForEntityName") in Ge ? Object.defineProperty(Ge, ns, { value: is, enumerable: !0, configurable: !0, writable: !0 }) : Ge[ns] = is;
|
|
1704
|
-
let
|
|
1704
|
+
let ai = { extrusionDirection: { x: 0, y: 0, z: 1 } }, oi = [{ code: 42, name: "endAngle", parser: l }, { code: 41, name: "startAngle", parser: l }, { code: 40, name: "axisRatio", parser: l }, { code: 210, name: "extrusionDirection", parser: f }, { code: 11, name: "majorAxisEndPoint", parser: f }, { code: 10, name: "center", parser: f }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1705
1705
|
class Ar {
|
|
1706
1706
|
parseEntity(t, e) {
|
|
1707
1707
|
let s = {};
|
|
1708
1708
|
return this.parser(e, t, s), s;
|
|
1709
1709
|
}
|
|
1710
1710
|
constructor() {
|
|
1711
|
-
wr(this, "parser", M(
|
|
1711
|
+
wr(this, "parser", M(oi, ai));
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
1714
1714
|
wr(Ar, "ForEntityName", "ELLIPSE");
|
|
1715
|
-
let Ir = [{ code: 330, name: "sourceBoundaryObjects", parser: l, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: l }],
|
|
1715
|
+
let Ir = [{ code: 330, name: "sourceBoundaryObjects", parser: l, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: l }], li = [{ code: 11, name: "end", parser: f }, { code: 10, name: "start", parser: f }], hi = [{ code: 73, name: "isCCW", parser: F }, { code: 51, name: "endAngle", parser: l }, { code: 50, name: "startAngle", parser: l }, { code: 40, name: "radius", parser: l }, { code: 10, name: "center", parser: f }], ci = [{ code: 73, name: "isCCW", parser: F }, { code: 51, name: "endAngle", parser: l }, { code: 50, name: "startAngle", parser: l }, { code: 40, name: "lengthOfMinorAxis", parser: l }, { code: 11, name: "end", parser: f }, { code: 10, name: "center", parser: f }], di = [{ code: 13, name: "endTangent", parser: f }, { code: 12, name: "startTangent", parser: f }, { code: 11, name: "fitDatum", isMultiple: !0, parser: f }, { code: 97, name: "numberOfFitData", parser: l }, { code: 10, name: "controlPoints", isMultiple: !0, parser(r, t) {
|
|
1716
1716
|
let e = { ...O(t), weight: 1 };
|
|
1717
1717
|
return (r = t.next()).code === 42 ? e.weight = r.value : t.rewind(), e;
|
|
1718
|
-
} }, { code: 40, name: "knots", isMultiple: !0, parser: l }, { code: 96, name: "numberOfControlPoints", parser: l }, { code: 95, name: "numberOfKnots", parser: l }, { code: 74, name: "isPeriodic", parser: F }, { code: 73, name: "splineFlag", parser: l }, { code: 94, name: "degree", parser: l }],
|
|
1719
|
-
let e = { type: r.value }, s = M(
|
|
1718
|
+
} }, { code: 40, name: "knots", isMultiple: !0, parser: l }, { code: 96, name: "numberOfControlPoints", parser: l }, { code: 95, name: "numberOfKnots", parser: l }, { code: 74, name: "isPeriodic", parser: F }, { code: 73, name: "splineFlag", parser: l }, { code: 94, name: "degree", parser: l }], ui = { [Oe.Line]: li, [Oe.Circular]: hi, [Oe.Elliptic]: ci, [Oe.Spline]: di }, mi = [...Ir, { code: 72, name: "edges", parser(r, t) {
|
|
1719
|
+
let e = { type: r.value }, s = M(ui[e.type]);
|
|
1720
1720
|
if (!s) throw Error(`Invalid edge type ${e.type}`);
|
|
1721
1721
|
return s(r = t.next(), t, e), e;
|
|
1722
|
-
}, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: l }],
|
|
1722
|
+
}, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: l }], gi = [...Ir, { code: 10, name: "vertices", parser(r, t) {
|
|
1723
1723
|
let e = { ...O(t), bulge: 0 };
|
|
1724
1724
|
return (r = t.next()).code === 42 ? e.bulge = r.value : t.rewind(), e;
|
|
1725
|
-
}, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: l }, { code: 73, name: "isClosed", parser: F }, { code: 72, name: "hasBulge", parser: F }],
|
|
1725
|
+
}, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: l }, { code: 73, name: "isClosed", parser: F }, { code: 72, name: "hasBulge", parser: F }], pi = [{ code: 49, name: "dashLengths", parser: l, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: l }, { code: 45, name: "offset", parser: Bs }, { code: 43, name: "base", parser: Bs }, { code: 53, name: "angle", parser: l }];
|
|
1726
1726
|
function Bs(r, t) {
|
|
1727
1727
|
let e = r.code + 1, s = { x: r.value, y: 1 };
|
|
1728
1728
|
return (r = t.next()).code === e ? s.y = r.value : t.rewind(), s;
|
|
@@ -1730,12 +1730,12 @@ function Bs(r, t) {
|
|
|
1730
1730
|
function Pr(r, t, e) {
|
|
1731
1731
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1732
1732
|
}
|
|
1733
|
-
let
|
|
1733
|
+
let yi = { extrusionDirection: { x: 0, y: 0, z: 1 }, gradientRotation: 0, colorTint: 0 }, _i = [{ code: 470 }, { code: 463 }, { code: 462, name: "colorTint", parser: l }, { code: 461, name: "gradientDefinition", parser: l }, { code: 460, name: "gradientRotation", parser: l }, { code: 453, name: "numberOfColors", parser: l }, { code: 452, name: "gradientColorFlag", parser: l }, { code: 451 }, { code: 450, name: "gradientFlag", parser: l }, { code: 10, name: "seedPoints", parser: f, isMultiple: !0 }, { code: 99 }, { code: 11, name: "offsetVector", parser: f }, { code: 98, name: "numberOfSeedPoints", parser: l }, { code: 47, name: "pixelSize", parser: l }, { code: 53, name: "definitionLines", parser: function(r, t) {
|
|
1734
1734
|
let e = {};
|
|
1735
|
-
return M(
|
|
1735
|
+
return M(pi)(r, t, e), e;
|
|
1736
1736
|
}, isMultiple: !0 }, { code: 78, name: "numberOfDefinitionLines", parser: l }, { code: 77, name: "isDouble", parser: F }, { code: 73, name: "isAnnotated", parser: F }, { code: 41, name: "patternScale", parser: l }, { code: 52, name: "patternAngle", parser: l }, { code: 76, name: "patternType", parser: l }, { code: 75, name: "hatchStyle", parser: l }, { code: 92, name: "boundaryPaths", parser: function(r, t) {
|
|
1737
|
-
let e = { boundaryPathTypeFlag: r.value }, s = e.boundaryPathTypeFlag &
|
|
1738
|
-
return r = t.next(), s ? M(
|
|
1737
|
+
let e = { boundaryPathTypeFlag: r.value }, s = e.boundaryPathTypeFlag & $n.Polyline;
|
|
1738
|
+
return r = t.next(), s ? M(gi)(r, t, e) : M(mi)(r, t, e), e;
|
|
1739
1739
|
}, isMultiple: !0 }, { code: 91, name: "numberOfBoundaryPaths", parser: l }, { code: 71, name: "associativity", parser: l }, { code: 63, name: "patternFillColor", parser: l }, { code: 70, name: "solidFill", parser: l }, { code: 2, name: "patternName", parser: l }, { code: 210, name: "extrusionDirection", parser: f }, { code: 10, name: "elevationPoint", parser: f }, { code: 100, name: "subclassMarker", parser: l, pushContext: !0 }, ...j];
|
|
1740
1740
|
class Er {
|
|
1741
1741
|
parseEntity(t, e) {
|
|
@@ -1743,7 +1743,7 @@ class Er {
|
|
|
1743
1743
|
return this.parser(e, t, s), s;
|
|
1744
1744
|
}
|
|
1745
1745
|
constructor() {
|
|
1746
|
-
Pr(this, "parser", M(
|
|
1746
|
+
Pr(this, "parser", M(_i, yi));
|
|
1747
1747
|
}
|
|
1748
1748
|
}
|
|
1749
1749
|
Pr(Er, "ForEntityName", "HATCH");
|
|
@@ -1753,42 +1753,42 @@ Pr(Er, "ForEntityName", "HATCH");
|
|
|
1753
1753
|
function Sr(r, t, e) {
|
|
1754
1754
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1755
1755
|
}
|
|
1756
|
-
let
|
|
1756
|
+
let xi = { clippingBoundaryPath: [] }, fi = [{ code: 90, name: "version", parser: l }, { code: 10, name: "position", parser: f }, { code: 11, name: "uPixel", parser: f }, { code: 12, name: "vPixel", parser: f }, { code: 13, name: "imageSize", parser: f }, { code: 340, name: "imageDefHandle", parser: l }, { code: 70, name: "flags", parser: l }, { code: 280, name: "clipping", parser: l }, { code: 281, name: "brightness", parser: l }, { code: 282, name: "contrast", parser: l }, { code: 283, name: "fade", parser: l }, { code: 360, name: "imageDefReactorHandle", parser: l }, { code: 71, name: "clippingBoundaryType", parser: l }, { code: 91, name: "countBoundaryPoints", parser: l }, { code: 14, name: "clippingBoundaryPath", isMultiple: !0, parser: f }, { code: 290, name: "clipMode", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1757
1757
|
class vs {
|
|
1758
1758
|
parseEntity(t, e) {
|
|
1759
1759
|
let s = {};
|
|
1760
1760
|
return this.parser(e, t, s), s;
|
|
1761
1761
|
}
|
|
1762
1762
|
constructor() {
|
|
1763
|
-
Sr(this, "parser", M(
|
|
1763
|
+
Sr(this, "parser", M(fi, xi));
|
|
1764
1764
|
}
|
|
1765
1765
|
}
|
|
1766
1766
|
function Tr(r, t, e) {
|
|
1767
1767
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1768
1768
|
}
|
|
1769
1769
|
Sr(vs, "ForEntityName", "IMAGE");
|
|
1770
|
-
let
|
|
1770
|
+
let bi = { xScale: 1, yScale: 1, zScale: 1, rotation: 0, columnCount: 0, rowCount: 0, columnSpacing: 0, rowSpacing: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, wi = [{ code: 210, name: "extrusionDirection", parser: f }, { code: 45, name: "rowSpacing", parser: l }, { code: 44, name: "columnSpacing", parser: l }, { code: 71, name: "rowCount", parser: l }, { code: 70, name: "columnCount", parser: l }, { code: 50, name: "rotation", parser: l }, { code: 43, name: "zScale", parser: l }, { code: 42, name: "yScale", parser: l }, { code: 41, name: "xScale", parser: l }, { code: 10, name: "insertionPoint", parser: f }, { code: 2, name: "name", parser: l }, { code: 66, name: "isVariableAttributes", parser: F }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1771
1771
|
class Mr {
|
|
1772
1772
|
parseEntity(t, e) {
|
|
1773
1773
|
let s = {};
|
|
1774
1774
|
return this.parser(e, t, s), s;
|
|
1775
1775
|
}
|
|
1776
1776
|
constructor() {
|
|
1777
|
-
Tr(this, "parser", M(
|
|
1777
|
+
Tr(this, "parser", M(wi, bi));
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
function vr(r, t, e) {
|
|
1781
1781
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1782
1782
|
}
|
|
1783
1783
|
Tr(Mr, "ForEntityName", "INSERT");
|
|
1784
|
-
let
|
|
1784
|
+
let Ai = { isArrowheadEnabled: !0 }, Ii = [{ code: 213, name: "offsetFromAnnotation", parser: f }, { code: 212, name: "offsetFromBlock", parser: f }, { code: 211, name: "horizontalDirection", parser: f }, { code: 210, name: "normal", parser: f }, { code: 340, name: "associatedAnnotation", parser: l }, { code: 77, name: "byBlockColor", parser: l }, { code: 10, name: "vertices", parser: f, isMultiple: !0 }, { code: 76, name: "numberOfVertices", parser: l }, { code: 41, name: "textWidth", parser: l }, { code: 40, name: "textHeight", parser: l }, { code: 75, name: "isHooklineExists", parser: F }, { code: 74, name: "isHooklineSameDirection", parser: F }, { code: 73, name: "leaderCreationFlag", parser: l }, { code: 72, name: "isSpline", parser: F }, { code: 71, name: "isArrowheadEnabled", parser: F }, { code: 3, name: "styleName", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1785
1785
|
class Lr {
|
|
1786
1786
|
parseEntity(t, e) {
|
|
1787
1787
|
let s = {};
|
|
1788
1788
|
return this.parser(e, t, s), s;
|
|
1789
1789
|
}
|
|
1790
1790
|
constructor() {
|
|
1791
|
-
vr(this, "parser", M(
|
|
1791
|
+
vr(this, "parser", M(Ii, Ai));
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
1794
|
vr(Lr, "ForEntityName", "LEADER");
|
|
@@ -1796,31 +1796,31 @@ vr(Lr, "ForEntityName", "LEADER");
|
|
|
1796
1796
|
function kr(r, t, e) {
|
|
1797
1797
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1798
1798
|
}
|
|
1799
|
-
let
|
|
1799
|
+
let Pi = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Ei = [{ code: 210, name: "extrusionDirection", parser: f }, { code: 11, name: "endPoint", parser: f }, { code: 10, name: "startPoint", parser: f }, { code: 39, name: "thickness", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1800
1800
|
class Cr {
|
|
1801
1801
|
parseEntity(t, e) {
|
|
1802
1802
|
let s = {};
|
|
1803
1803
|
return this.parser(e, t, s), s;
|
|
1804
1804
|
}
|
|
1805
1805
|
constructor() {
|
|
1806
|
-
kr(this, "parser", M(
|
|
1806
|
+
kr(this, "parser", M(Ei, Pi));
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
1809
|
kr(Cr, "ForEntityName", "LINE");
|
|
1810
1810
|
(_e = {})[_e.IS_CLOSED = 1] = "IS_CLOSED", _e[_e.PLINE_GEN = 128] = "PLINE_GEN";
|
|
1811
|
-
let
|
|
1811
|
+
let Si = { flag: 0, elevation: 0, thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, Ti = { bulge: 0 }, Mi = [{ code: 42, name: "bulge", parser: l }, { code: 41, name: "endWidth", parser: l }, { code: 40, name: "startWidth", parser: l }, { code: 91, name: "id", parser: l }, { code: 20, name: "y", parser: l }, { code: 10, name: "x", parser: l }], vi = [{ code: 210, name: "extrusionDirection", parser: f }, { code: 10, name: "vertices", isMultiple: !0, parser(r, t) {
|
|
1812
1812
|
let e = {};
|
|
1813
|
-
return M(
|
|
1813
|
+
return M(Mi, Ti)(r, t, e), e;
|
|
1814
1814
|
} }, { code: 39, name: "thickness", parser: l }, { code: 38, name: "elevation", parser: l }, { code: 43, name: "constantWidth", parser: l }, { code: 70, name: "flag", parser: l }, { code: 90, name: "numberOfVertices", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1815
1815
|
class He {
|
|
1816
1816
|
parseEntity(t, e) {
|
|
1817
1817
|
let s = {};
|
|
1818
|
-
return M(
|
|
1818
|
+
return M(vi, Si)(e, t, s), s;
|
|
1819
1819
|
}
|
|
1820
1820
|
}
|
|
1821
1821
|
os = "LWPOLYLINE", (as = "ForEntityName") in He ? Object.defineProperty(He, as, { value: os, enumerable: !0, configurable: !0, writable: !0 }) : He[as] = os;
|
|
1822
|
-
(
|
|
1823
|
-
function
|
|
1822
|
+
(Rt = {})[Rt.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", Rt[Rt.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", Rt[Rt.BY_STYLE = 5] = "BY_STYLE";
|
|
1823
|
+
function Li(r, t) {
|
|
1824
1824
|
let e = {};
|
|
1825
1825
|
for (let s of r) {
|
|
1826
1826
|
let n = t(s);
|
|
@@ -1837,7 +1837,7 @@ function Tt(r) {
|
|
|
1837
1837
|
function Or(r, t, e) {
|
|
1838
1838
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1839
1839
|
}
|
|
1840
|
-
let
|
|
1840
|
+
let ki = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rotation: 0 }, Ue = [{ code: 46, name: "annotationHeight", parser: l }, { code: 101, parser(r, t) {
|
|
1841
1841
|
(function(e) {
|
|
1842
1842
|
e.rewind();
|
|
1843
1843
|
let s = e.next();
|
|
@@ -1854,93 +1854,93 @@ class Nr {
|
|
|
1854
1854
|
return this.parser(e, t, s), s;
|
|
1855
1855
|
}
|
|
1856
1856
|
constructor() {
|
|
1857
|
-
Or(this, "parser", M(Ue,
|
|
1857
|
+
Or(this, "parser", M(Ue, ki));
|
|
1858
1858
|
}
|
|
1859
1859
|
}
|
|
1860
1860
|
function Dr(r, t, e) {
|
|
1861
1861
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1862
1862
|
}
|
|
1863
1863
|
Or(Nr, "ForEntityName", "MTEXT");
|
|
1864
|
-
let
|
|
1865
|
-
class
|
|
1864
|
+
let Ci = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, angle: 0 }, Oi = [{ code: 50, name: "angle", parser: l }, { code: 210, name: "extrusionDirection", parser: f }, { code: 39, name: "thickness", parser: l }, { code: 10, name: "position", parser: f }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1865
|
+
class zr {
|
|
1866
1866
|
parseEntity(t, e) {
|
|
1867
1867
|
let s = {};
|
|
1868
1868
|
return this.parser(e, t, s), s;
|
|
1869
1869
|
}
|
|
1870
1870
|
constructor() {
|
|
1871
|
-
Dr(this, "parser", M(
|
|
1871
|
+
Dr(this, "parser", M(Oi, Ci));
|
|
1872
1872
|
}
|
|
1873
1873
|
}
|
|
1874
|
-
Dr(
|
|
1874
|
+
Dr(zr, "ForEntityName", "POINT");
|
|
1875
1875
|
(Y = {})[Y.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", Y[Y.CURVE_FIT = 2] = "CURVE_FIT", Y[Y.SPLINE_FIT = 4] = "SPLINE_FIT", Y[Y.POLYLINE_3D = 8] = "POLYLINE_3D", Y[Y.POLYGON_3D = 16] = "POLYGON_3D", Y[Y.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", Y[Y.POLYFACE = 64] = "POLYFACE", Y[Y.CONTINUOUS = 128] = "CONTINUOUS";
|
|
1876
1876
|
(wt = {})[wt.NONE = 0] = "NONE", wt[wt.QUADRATIC = 5] = "QUADRATIC", wt[wt.CUBIC = 6] = "CUBIC", wt[wt.BEZIER = 8] = "BEZIER";
|
|
1877
1877
|
(q = {})[q.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", q[q.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", q[q.NOT_USED = 4] = "NOT_USED", q[q.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", q[q.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", q[q.FOR_POLYLINE = 32] = "FOR_POLYLINE", q[q.FOR_POLYGON = 64] = "FOR_POLYGON", q[q.POLYFACE = 128] = "POLYFACE";
|
|
1878
|
-
function
|
|
1878
|
+
function Rr(r, t, e) {
|
|
1879
1879
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1880
1880
|
}
|
|
1881
|
-
let
|
|
1881
|
+
let Ni = { startWidth: 0, endWidth: 0, bulge: 0 }, Di = [{ code: 91, name: "id", parser: l }, { code: [...Ke(71, 75)], name: "faces", isMultiple: !0, parser: l }, { code: 50, name: "tangentDirection", parser: l }, { code: 70, name: "flag", parser: l }, { code: 42, name: "bulge", parser: l }, { code: 41, name: "endWidth", parser: l }, { code: 40, name: "startWidth", parser: l }, { code: 30, name: "z", parser: l }, { code: 20, name: "y", parser: l }, { code: 10, name: "x", parser: l }, { code: 100, name: "subclassMarker", parser: l }, { code: 100 }, ...j], Fr = class {
|
|
1882
1882
|
parseEntity(t, e) {
|
|
1883
1883
|
let s = {};
|
|
1884
1884
|
return this.parser(e, t, s), s;
|
|
1885
1885
|
}
|
|
1886
1886
|
constructor() {
|
|
1887
|
-
|
|
1887
|
+
Rr(this, "parser", M(Di, Ni));
|
|
1888
1888
|
}
|
|
1889
1889
|
};
|
|
1890
1890
|
function Br(r, t, e) {
|
|
1891
1891
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1892
1892
|
}
|
|
1893
|
-
|
|
1894
|
-
let
|
|
1893
|
+
Rr(Fr, "ForEntityName", "VERTEX");
|
|
1894
|
+
let zi = { 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: [] }, Ri = [{ code: 0, name: "vertices", isMultiple: !0, parser: (r, t) => v(r, 0, "VERTEX") ? (r = t.next(), new Fr().parseEntity(t, r)) : Ts }, { code: 210, name: "extrusionDirection", parser: f }, { code: 75, name: "smoothType", parser: l }, { code: 74, name: "surfaceNDensity", parser: l }, { code: 73, name: "surfaceMDensity", parser: l }, { code: 72, name: "meshNVertexCount", parser: l }, { code: 71, name: "meshMVertexCount", parser: l }, { code: 41, name: "endWidth", parser: l }, { code: 40, name: "startWidth", parser: l }, { code: 70, name: "flag", parser: l }, { code: 39, name: "thickness", parser: l }, { code: 30, name: "elevation", parser: l }, { code: 20 }, { code: 10 }, { code: 66 }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1895
1895
|
class Vr {
|
|
1896
1896
|
parseEntity(t, e) {
|
|
1897
1897
|
let s = {};
|
|
1898
1898
|
return this.parser(e, t, s), s;
|
|
1899
1899
|
}
|
|
1900
1900
|
constructor() {
|
|
1901
|
-
Br(this, "parser", M(Ri,
|
|
1901
|
+
Br(this, "parser", M(Ri, zi));
|
|
1902
1902
|
}
|
|
1903
1903
|
}
|
|
1904
1904
|
function jr(r, t, e) {
|
|
1905
1905
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1906
1906
|
}
|
|
1907
1907
|
Br(Vr, "ForEntityName", "POLYLINE");
|
|
1908
|
-
let
|
|
1908
|
+
let Fi = { firstPoint: { x: 0, y: 0, z: 1 }, extrusionDirection: { x: 0, y: 0, z: 1 } }, Bi = [{ code: 10, name: "firstPoint", parser: f }, { code: 11, name: "unitDirection", parser: f }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1909
1909
|
class Gr {
|
|
1910
1910
|
parseEntity(t, e) {
|
|
1911
1911
|
let s = {};
|
|
1912
1912
|
return this.parser(e, t, s), s;
|
|
1913
1913
|
}
|
|
1914
1914
|
constructor() {
|
|
1915
|
-
jr(this, "parser", M(
|
|
1915
|
+
jr(this, "parser", M(Bi, Fi));
|
|
1916
1916
|
}
|
|
1917
1917
|
}
|
|
1918
1918
|
function Hr(r, t, e) {
|
|
1919
1919
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1920
1920
|
}
|
|
1921
1921
|
jr(Gr, "ForEntityName", "RAY");
|
|
1922
|
-
let
|
|
1922
|
+
let Vi = { vertices: [], backLineVertices: [] }, ji = [{ code: 360, name: "geometrySettingHardId", parser: l }, { code: 12, name: "backLineVertices", isMultiple: !0, parser: f }, { code: 93, name: "numberOfBackLineVertices", parser: l }, { code: 11, name: "vertices", isMultiple: !0, parser: f }, { code: 92, name: "verticesCount", parser: l }, { code: [63, 411], name: "indicatorColor", parser: l }, { code: 70, name: "indicatorTransparency", parser: l }, { code: 41, name: "bottomHeight", parser: l }, { code: 40, name: "topHeight", parser: l }, { code: 10, name: "verticalDirection", parser: f }, { code: 1, name: "name", parser: l }, { code: 91, name: "flag", parser: l }, { code: 90, name: "state", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1923
1923
|
class Ur {
|
|
1924
1924
|
parseEntity(t, e) {
|
|
1925
1925
|
let s = {};
|
|
1926
1926
|
return this.parser(e, t, s), s;
|
|
1927
1927
|
}
|
|
1928
1928
|
constructor() {
|
|
1929
|
-
Hr(this, "parser", M(
|
|
1929
|
+
Hr(this, "parser", M(ji, Vi));
|
|
1930
1930
|
}
|
|
1931
1931
|
}
|
|
1932
1932
|
function Wr(r, t, e) {
|
|
1933
1933
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1934
1934
|
}
|
|
1935
1935
|
Hr(Ur, "ForEntityName", "SECTION");
|
|
1936
|
-
let
|
|
1936
|
+
let Gi = { points: [], thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Hi = [{ code: 210, name: "extrusionDirection", parser: f }, { code: 39, name: "thickness", parser: l }, { code: [...Ke(10, 14)], name: "points", isMultiple: !0, parser: f }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1937
1937
|
class Yr {
|
|
1938
1938
|
parseEntity(t, e) {
|
|
1939
1939
|
let s = {};
|
|
1940
1940
|
return this.parser(e, t, s), s;
|
|
1941
1941
|
}
|
|
1942
1942
|
constructor() {
|
|
1943
|
-
Wr(this, "parser", M(
|
|
1943
|
+
Wr(this, "parser", M(Hi, Gi));
|
|
1944
1944
|
}
|
|
1945
1945
|
}
|
|
1946
1946
|
Wr(Yr, "ForEntityName", "SOLID");
|
|
@@ -1948,14 +1948,14 @@ Wr(Yr, "ForEntityName", "SOLID");
|
|
|
1948
1948
|
function qr(r, t, e) {
|
|
1949
1949
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1950
1950
|
}
|
|
1951
|
-
let
|
|
1951
|
+
let Ui = { knotTolerance: 1e-6, controlTolerance: 1e-6, fitTolerance: 1e-9, knotValues: [], controlPoints: [], fitPoints: [] }, Wi = [{ code: 11, name: "fitPoints", isMultiple: !0, parser: f }, { code: 10, name: "controlPoints", isMultiple: !0, parser: f }, { code: 41, name: "weights", isMultiple: !0, parser: l }, { code: 40, name: "knots", isMultiple: !0, parser: l }, { code: 13, name: "endTangent", parser: f }, { code: 12, name: "startTangent", parser: f }, { code: 44, name: "fitTolerance", parser: l }, { code: 43, name: "controlTolerance", parser: l }, { code: 42, name: "knotTolerance", parser: l }, { code: 74, name: "numberOfFitPoints", parser: l }, { code: 73, name: "numberOfControlPoints", parser: l }, { code: 72, name: "numberOfKnots", parser: l }, { code: 71, name: "degree", parser: l }, { code: 70, name: "flag", parser: l }, { code: 210, name: "normal", parser: f }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
1952
1952
|
class Xr {
|
|
1953
1953
|
parseEntity(t, e) {
|
|
1954
1954
|
let s = {};
|
|
1955
1955
|
return this.parser(e, t, s), s;
|
|
1956
1956
|
}
|
|
1957
1957
|
constructor() {
|
|
1958
|
-
qr(this, "parser", M(
|
|
1958
|
+
qr(this, "parser", M(Wi, Ui));
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
qr(Xr, "ForEntityName", "SPLINE");
|
|
@@ -2306,21 +2306,21 @@ function $r(r, t, e) {
|
|
|
2306
2306
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
2307
2307
|
}
|
|
2308
2308
|
ms = "WIPEOUT", (us = "ForEntityName") in qe ? Object.defineProperty(qe, us, { value: ms, enumerable: !0, configurable: !0, writable: !0 }) : qe[us] = ms;
|
|
2309
|
-
let
|
|
2309
|
+
let Yi = { firstPoint: { x: 0, y: 0, z: 1 }, extrusionDirection: { x: 0, y: 0, z: 1 } }, qi = [{ code: 10, name: "firstPoint", parser: f }, { code: 11, name: "unitDirection", parser: f }, { code: 100, name: "subclassMarker", parser: l }, ...j];
|
|
2310
2310
|
class Kr {
|
|
2311
2311
|
parseEntity(t, e) {
|
|
2312
2312
|
let s = {};
|
|
2313
2313
|
return this.parser(e, t, s), s;
|
|
2314
2314
|
}
|
|
2315
2315
|
constructor() {
|
|
2316
|
-
$r(this, "parser", M(
|
|
2316
|
+
$r(this, "parser", M(qi, Yi));
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
2319
|
function Zr(r, t, e) {
|
|
2320
2320
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
2321
2321
|
}
|
|
2322
2322
|
$r(Kr, "ForEntityName", "XLINE");
|
|
2323
|
-
let
|
|
2323
|
+
let Xi = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, $i = [...Ue.slice(Ue.findIndex(({ name: r }) => r === "columnType"), Ue.findIndex(({ name: r }) => r === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(r) {
|
|
2324
2324
|
if (!v(r, 0, "MTEXT")) return Ts;
|
|
2325
2325
|
} }, { code: 2, name: "definitionTag", parser: l }, { code: 40, name: "annotationScale", parser: l }, { code: 10, name: "alignmentPoint", parser: f }, { code: 340, name: "secondaryAttributesHardId", parser: l }, { code: 70, name: "numberOfSecondaryAttributes", parser: l }, { code: 70, name: "isReallyLocked", parser: F }, { code: 70, name: "mtextFlag", parser: l }, { code: 280, name: "isDuplicatedEntriesKeep", parser: F }, { code: 100 }, { code: 280, name: "lockPositionFlag", parser: F }, { code: 210, name: "extrusionDirection", parser: f }, { code: 11, name: "alignmentPoint", parser: f }, { code: 74, name: "verticalJustification", parser: l }, { code: 72, name: "horizontalJustification", parser: l }, { code: 71, name: "textGenerationFlag", parser: l }, { code: 7, name: "textStyle", parser: l }, { code: 51, name: "obliqueAngle", parser: l }, { code: 41, name: "scale", parser: l }, { code: 50, name: "rotation", parser: l }, { code: 73 }, { code: 70, name: "attributeFlag", parser: l }, { code: 2, name: "tag", parser: l }, { code: 280 }, { code: 100, name: "subclassMarker", parser: l }, { code: 1, name: "text", parser: l }, { code: 40, name: "textHeight", parser: l }, { code: 10, name: "startPoint", parser: f }, { code: 39, name: "thickness", parser: l }, { code: 100 }, ...j];
|
|
2326
2326
|
class Qr {
|
|
@@ -2329,11 +2329,11 @@ class Qr {
|
|
|
2329
2329
|
return this.parser(e, t, s), s;
|
|
2330
2330
|
}
|
|
2331
2331
|
constructor() {
|
|
2332
|
-
Zr(this, "parser", M(
|
|
2332
|
+
Zr(this, "parser", M($i, Xi));
|
|
2333
2333
|
}
|
|
2334
2334
|
}
|
|
2335
2335
|
Zr(Qr, "ForEntityName", "ATTRIB");
|
|
2336
|
-
let
|
|
2336
|
+
let Ki = Object.fromEntries([ur, xr, Qr, br, Ge, Ar, vs, Mr, Lr, Cr, He, Nr, zr, Vr, Gr, Ur, Yr, Xr, We, yr, Er, Ye, qe, Kr].map((r) => [r.ForEntityName, new r()]));
|
|
2337
2337
|
function Jr(r, t) {
|
|
2338
2338
|
let e = [];
|
|
2339
2339
|
for (; !v(r, 0, "EOF"); ) {
|
|
@@ -2342,7 +2342,7 @@ function Jr(r, t) {
|
|
|
2342
2342
|
t.rewind();
|
|
2343
2343
|
break;
|
|
2344
2344
|
}
|
|
2345
|
-
let s =
|
|
2345
|
+
let s = Ki[r.value];
|
|
2346
2346
|
if (s) {
|
|
2347
2347
|
let n = r.value;
|
|
2348
2348
|
r = t.next();
|
|
@@ -2354,18 +2354,18 @@ function Jr(r, t) {
|
|
|
2354
2354
|
}
|
|
2355
2355
|
return e;
|
|
2356
2356
|
}
|
|
2357
|
-
function
|
|
2357
|
+
function Zi(r, t) {
|
|
2358
2358
|
let e = {};
|
|
2359
2359
|
for (; !v(r, 0, "EOF") && !v(r, 0, "ENDSEC"); ) {
|
|
2360
2360
|
if (v(r, 0, "BLOCK")) {
|
|
2361
|
-
let s =
|
|
2361
|
+
let s = Qi(r = t.next(), t);
|
|
2362
2362
|
cr(s), s.name && (e[s.name] = s);
|
|
2363
2363
|
}
|
|
2364
2364
|
r = t.next();
|
|
2365
2365
|
}
|
|
2366
2366
|
return e;
|
|
2367
2367
|
}
|
|
2368
|
-
function
|
|
2368
|
+
function Qi(r, t) {
|
|
2369
2369
|
let e = {};
|
|
2370
2370
|
for (; !v(r, 0, "EOF"); ) {
|
|
2371
2371
|
if (v(r, 0, "ENDBLK")) {
|
|
@@ -2412,29 +2412,29 @@ function Zi(r, t) {
|
|
|
2412
2412
|
}
|
|
2413
2413
|
return e;
|
|
2414
2414
|
}
|
|
2415
|
-
function
|
|
2415
|
+
function Ji(r, t) {
|
|
2416
2416
|
let e = null, s = {};
|
|
2417
2417
|
for (; !v(r, 0, "EOF") && !v(r, 0, "ENDSEC"); ) r.code === 9 ? e = r.value : r.code === 10 ? s[e] = O(t) : s[e] = r.value, r = t.next();
|
|
2418
2418
|
return s;
|
|
2419
2419
|
}
|
|
2420
|
-
let
|
|
2420
|
+
let ta = [{ code: 330, name: "imageDefReactorIdSoft", isMultiple: !0, parser: l }, { code: 90, name: "version", parser: l }, { code: 1, name: "fileName", parser: l }, { code: 10, name: "size", parser: f }, { code: 11, name: "sizeOfOnePixel", parser: f }, { code: 280, name: "isLoaded", parser: l }, { code: 281, name: "resolutionUnits", parser: l }, { code: 100, name: "subclassMarker", parser: l }], tn = [{ code: 333, name: "shadePlotId", parser: l }, { code: 149, name: "imageOriginY", parser: l }, { code: 148, name: "imageOriginX", parser: l }, { code: 147, name: "scaleFactor", parser: l }, { code: 78, name: "shadePlotCustomDPI", parser: l }, { code: 77, name: "shadePlotResolution", parser: l }, { code: 76, name: "shadePlotMode", parser: l }, { code: 75, name: "standardScaleType", parser: l }, { code: 7, name: "currentStyleSheet", parser: l }, { code: 74, name: "plotType", parser: l }, { code: 73, name: "plotRotation", parser: l }, { code: 72, name: "paperUnit", parser: l }, { code: 70, name: "layoutFlag", parser: l }, { code: 143, name: "printScaleDenominator", parser: l }, { code: 142, name: "printScaleNominator", parser: l }, { code: 141, name: "windowAreaYMax", parser: l }, { code: 140, name: "windowAreaYMin", parser: l }, { code: 49, name: "windowAreaXMax", parser: l }, { code: 48, name: "windowAreaXMin", parser: l }, { code: 47, name: "plotOriginY", parser: l }, { code: 46, name: "plotOriginX", parser: l }, { code: 45, name: "paperHeight", parser: l }, { code: 44, name: "paperWidth", parser: l }, { code: 43, name: "marginTop", parser: l }, { code: 42, name: "marginRight", parser: l }, { code: 41, name: "marginBottom", parser: l }, { code: 40, name: "marginLeft", parser: l }, { code: 6, name: "plotViewName", parser: l }, { code: 4, name: "paperSize", parser: l }, { code: 2, name: "configName", parser: l }, { code: 1, name: "pageSetupName", parser: l }, { code: 100, name: "subclassMarker", parser: l }], ea = [{ code: 333, name: "shadePlotId", parser: l }, { code: 346, name: "orthographicUcsId", parser: l }, { code: 345, name: "namedUcsId", parser: l }, { code: 331, name: "viewportId", parser: l }, { code: 330, name: "paperSpaceTableId", parser: l }, { code: 76, name: "orthographicType", parser: l }, { code: 17, name: "ucsYAxis", parser: f }, { code: 16, name: "ucsXAxis", parser: f }, { code: 13, name: "ucsOrigin", parser: f }, { code: 146, name: "elevation", parser: l }, { code: 15, name: "maxExtent", parser: f }, { code: 14, name: "minExtent", parser: f }, { code: 12, name: "insertionBase", parser: f }, { code: 11, name: "maxLimit", parser: f }, { code: 10, name: "minLimit", parser: f }, { code: 71, name: "tabOrder", parser: l }, { code: 70, name: "controlFlag", parser: l }, { code: 1, name: "layoutName", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...tn], sa = [{ code: 330, name: "ownerObjectId", parser: l }, { code: 102 }, { code: 360, name: "ownerDictionaryIdHard", parser: l }, { code: 102 }, { code: 102 }, { code: 330, name: "ownerDictionaryIdSoft", parser: l }, { code: 102 }, { code: 102 }, { code: 102 }, { code: 5, name: "handle", parser: l }];
|
|
2421
2421
|
function Vs(r) {
|
|
2422
2422
|
return r.subclassMarker === "AcDbDictionary";
|
|
2423
2423
|
}
|
|
2424
|
-
let
|
|
2424
|
+
let ra = { LAYOUT: ea, PLOTSETTINGS: tn, DICTIONARY: [{ code: 3, name: "entries", parser: (r, t) => {
|
|
2425
2425
|
let e = { name: r.value };
|
|
2426
2426
|
return (r = t.next()).code === 350 ? e.objectId = r.value : t.rewind(), e;
|
|
2427
|
-
}, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: l }, { code: 280, name: "isHardOwned", parser: F }, { code: 100, name: "subclassMarker", parser: l }], IMAGEDEF:
|
|
2428
|
-
function
|
|
2427
|
+
}, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: l }, { code: 280, name: "isHardOwned", parser: F }, { code: 100, name: "subclassMarker", parser: l }], IMAGEDEF: ta };
|
|
2428
|
+
function na(r, t) {
|
|
2429
2429
|
let e = [];
|
|
2430
2430
|
for (; r.code !== 0 || !["EOF", "ENDSEC"].includes(r.value); ) {
|
|
2431
|
-
let s = r.value, n =
|
|
2431
|
+
let s = r.value, n = ra[s];
|
|
2432
2432
|
if (r.code === 0 && (n != null && n.length)) {
|
|
2433
|
-
let i = M([...
|
|
2433
|
+
let i = M([...sa, ...n]), a = { name: s };
|
|
2434
2434
|
i(r = t.next(), t, a) ? (e.push(a), r = t.peek()) : r = t.next();
|
|
2435
2435
|
} else r = t.next();
|
|
2436
2436
|
}
|
|
2437
|
-
return { byName:
|
|
2437
|
+
return { byName: Li(e, ({ name: s }) => s), byTree: function(s) {
|
|
2438
2438
|
let n = Object.fromEntries(s.map((i) => [i.handle, i]));
|
|
2439
2439
|
for (let i of s) (!Vs(i) || i.ownerDictionaryIdSoft !== "0") && (i.ownerDictionaryIdSoft && (i.ownerDictionarySoft = n[i.ownerDictionaryIdSoft]), i.ownerDictionaryIdHard && (i.ownerDictionaryHard = n[i.ownerDictionaryIdHard]), i.ownerObjectId && (i.ownerObject = n[i.ownerObjectId])), function(a, o) {
|
|
2440
2440
|
Vs(a) && a.entries && (a.entries = Object.fromEntries(a.entries.map(({ name: c, objectId: h }) => [c, o[h]])));
|
|
@@ -2444,23 +2444,23 @@ function ra(r, t) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
let Kt = [{ code: 100, name: "subclassMarker", parser: l }, { code: 330, name: "ownerObjectId", parser: l }, { code: 102, parser(r, t) {
|
|
2446
2446
|
for (; !v(r, 0, "EOF") && !v(r, 102, "}"); ) r = t.next();
|
|
2447
|
-
} }, { code: 5, name: "handle", parser: l }],
|
|
2447
|
+
} }, { code: 5, name: "handle", parser: l }], ia = M([{ code: 310, name: "bmpPreview", parser: l }, { code: 281, name: "scalability", parser: l }, { code: 280, name: "explodability", parser: l }, { code: 70, name: "insertionUnits", parser: l }, { code: 340, name: "layoutObjects", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...Kt]), aa = M([...[{ name: "DIMPOST", code: 3 }, { name: "DIMAPOST", code: 4 }, { name: "DIMBLK_OBSOLETE", code: 5 }, { name: "DIMBLK1_OBSOLETE", code: 6 }, { name: "DIMBLK2_OBSOLETE", code: 7 }, { name: "DIMSCALE", code: 40, defaultValue: 1 }, { name: "DIMASZ", code: 41, defaultValue: 0.25 }, { name: "DIMEXO", code: 42, defaultValue: 0.625, defaultValueImperial: 0.0625 }, { name: "DIMDLI", code: 43, defaultValue: 3.75, defaultValueImperial: 0.38 }, { name: "DIMEXE", code: 44, defaultValue: 2.25, defaultValueImperial: 0.28 }, { name: "DIMRND", code: 45, defaultValue: 0 }, { name: "DIMDLE", code: 46, defaultValue: 0 }, { name: "DIMTP", code: 47, defaultValue: 0 }, { name: "DIMTM", code: 48, defaultValue: 0 }, { name: "DIMTXT", code: 140, defaultValue: 2.5, defaultValueImperial: 0.28 }, { name: "DIMCEN", code: 141, defaultValue: 2.5, defaultValueImperial: 0.09 }, { name: "DIMTSZ", code: 142, defaultValue: 0 }, { name: "DIMALTF", code: 143, defaultValue: 25.4 }, { name: "DIMLFAC", code: 144, defaultValue: 1 }, { name: "DIMTVP", code: 145, defaultValue: 0 }, { name: "DIMTFAC", code: 146, defaultValue: 1 }, { name: "DIMGAP", code: 147, defaultValue: 0.625, defaultValueImperial: 0.09 }, { name: "DIMALTRND", code: 148, defaultValue: 0 }, { name: "DIMTOL", code: 71, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMLIM", code: 72, defaultValue: 0 }, { name: "DIMTIH", code: 73, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMTOH", code: 74, defaultValue: 0, defaultValueImperial: 1 }, { name: "DIMSE1", code: 75, defaultValue: 0 }, { name: "DIMSE2", code: 76, defaultValue: 0 }, { name: "DIMTAD", code: 77, defaultValue: Fs.Above, defaultValueImperial: Fs.Center }, { name: "DIMZIN", code: 78, defaultValue: Wt.Trailing, defaultValueImperial: Wt.Feet }, { name: "DIMAZIN", code: 79, defaultValue: Yn.None }, { name: "DIMALT", code: 170, defaultValue: 0 }, { name: "DIMALTD", code: 171, defaultValue: 3, defaultValueImperial: 2 }, { name: "DIMTOFL", code: 172, defaultValue: 1, defaultValueImperial: 0 }, { name: "DIMSAH", code: 173, defaultValue: 0 }, { name: "DIMTIX", code: 174, defaultValue: 0 }, { name: "DIMSOXD", code: 175, defaultValue: 0 }, { name: "DIMCLRD", code: 176, defaultValue: 0 }, { name: "DIMCLRE", code: 177, defaultValue: 0 }, { name: "DIMCLRT", code: 178, defaultValue: 0 }, { name: "DIMADEC", code: 179 }, { name: "DIMUNIT", code: 270 }, { name: "DIMDEC", code: 271, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMTDEC", code: 272, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMALTU", code: 273, defaultValue: 2 }, { name: "DIMALTTD", code: 274, defaultValue: 2, defaultValueImperial: 4 }, { name: "DIMAUNIT", code: 275, defaultValue: 0 }, { name: "DIMFRAC", code: 276, defaultValue: 0 }, { name: "DIMLUNIT", code: 277, defaultValue: 2 }, { name: "DIMDSEP", code: 278, defaultValue: ",", defaultValueImperial: "." }, { name: "DIMJUST", code: 280, defaultValue: qn.Center }, { name: "DIMSD1", code: 281, defaultValue: 0 }, { name: "DIMSD2", code: 282, defaultValue: 0 }, { name: "DIMTOLJ", code: 283, defaultValue: Xn.Center }, { name: "DIMTZIN", code: 284, defaultValue: Wt.Trailing, defaultValueImperial: Wt.Feet }, { name: "DIMALTZ", code: 285, defaultValue: Wt.Trailing }, { name: "DIMALTTZ", code: 286, defaultValue: Wt.Trailing }, { name: "DIMFIT", code: 287 }, { name: "DIMUPT", code: 288, defaultValue: 0 }, { name: "DIMATFIT", code: 289, defaultValue: 3 }, { name: "DIMTXSTY", code: 340 }, { name: "DIMLDRBLK", code: 341 }, { name: "DIMBLK", code: 342 }, { name: "DIMBLK1", code: 343 }, { name: "DIMBLK2", code: 344 }, { name: "DIMLWD", code: 371, defaultValue: -2 }, { name: "DIMLWD", code: 372, defaultValue: -2 }].map((r) => ({ ...r, parser: l })), { code: 70, name: "standardFlag", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, { code: 105, name: "handle", parser: l }, ...Kt.filter((r) => r.code !== 5)]), oa = M([{ code: 347, name: "materialObjectId", parser: l }, { code: 390, name: "plotStyleNameObjectId", parser: l }, { code: 370, name: "lineweight", parser: l }, { code: 290, name: "isPlotting", parser: F }, { code: 6, name: "lineType", parser: l }, { code: 62, name: "colorIndex", parser: l }, { code: 70, name: "standardFlag", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...Kt]), la = M([{ code: 9, name: "text", parser: l }, { code: 45, name: "offsetY", parser: l }, { code: 44, name: "offsetX", parser: l }, { code: 50, name: "rotation", parser: l }, { code: 46, name: "scale", parser: l }, { code: 340, name: "styleObjectId", parser: l }, { code: 75, name: "shapeNumber", parser: l }, { code: 74, name: "elementTypeFlag", parser: l }, { code: 49, name: "elementLength", parser: l }], { elementTypeFlag: 0, elementLength: 0 }), ha = { BLOCK_RECORD: ia, DIMSTYLE: aa, LAYER: oa, LTYPE: M([{ code: 49, name: "pattern", parser(r, t) {
|
|
2448
2448
|
let e = {};
|
|
2449
|
-
return
|
|
2450
|
-
}, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: l }, { code: 73, name: "numberOfLineTypes", parser: l }, { code: 72, parser: l }, { code: 3, name: "description", parser: l }, { code: 70, name: "standardFlag", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...Kt]), STYLE: M([{ code: 1e3, name: "extendedFont", parser: l }, { code: 1001 }, { code: 4, name: "bigFont", parser: l }, { code: 3, name: "font", parser: l }, { code: 42, name: "lastHeight", parser: l }, { code: 71, name: "textGenerationFlag", parser: l }, { code: 50, name: "obliqueAngle", parser: l }, { code: 41, name: "widthFactor", parser: l }, { code: 40, name: "fixedTextHeight", parser: l }, { code: 70, name: "standardFlag", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...Kt]), VPORT: M([{ code: [63, 421, 431], name: "ambientColor", parser: l }, { code: 142, name: "contrast", parser: l }, { code: 141, name: "brightness", parser: l }, { code: 282, name: "defaultLightingType", parser: l }, { code: 292, name: "isDefaultLightingOn", parser: F }, { code: 348, name: "visualStyleObjectId", parser: l }, { code: 333, name: "shadePlotObjectId", parser: l }, { code: 332, name: "backgroundObjectId", parser: l }, { code: 61, name: "majorGridLines", parser: l }, { code: 170, name: "shadePlotSetting", parser: l }, { code: 146, name: "elevation", parser: l }, { code: 79, name: "orthographicType", parser: l }, { code: 112, name: "ucsYAxis", parser: f }, { code: 111, name: "ucsXAxis", parser: f }, { code: 110, name: "ucsOrigin", parser: f }, { code: 74, name: "ucsIconSetting", parser: l }, { code: 71, name: "viewMode", parser: l }, { code: 281, name: "renderMode", parser: l }, { code: 1, name: "styleSheet", parser: l }, { code: [331, 441], name: "frozenLayers", parser: l, isMultiple: !0 }, { code: 72, name: "circleSides", parser: l }, { code: 51, name: "viewTwistAngle", parser: l }, { code: 50, name: "snapRotationAngle", parser: l }, { code: 45, name: "viewHeight", parser: l }, { code: 44, name: "backClippingPlane", parser: l }, { code: 43, name: "frontClippingPlane", parser: l }, { code: 42, name: "lensLength", parser: l }, { code: 17, name: "viewTarget", parser: f }, { code: 16, name: "viewDirectionFromTarget", parser: f }, { code: 15, name: "gridSpacing", parser: f }, { code: 14, name: "snapSpacing", parser: f }, { code: 13, name: "snapBasePoint", parser: f }, { code: 12, name: "center", parser: f }, { code: 11, name: "upperRightCorner", parser: f }, { code: 10, name: "lowerLeftCorner", parser: f }, { code: 70, name: "standardFlag", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...Kt]) },
|
|
2451
|
-
function
|
|
2449
|
+
return la(r, t, e), e;
|
|
2450
|
+
}, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: l }, { code: 73, name: "numberOfLineTypes", parser: l }, { code: 72, parser: l }, { code: 3, name: "description", parser: l }, { code: 70, name: "standardFlag", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...Kt]), STYLE: M([{ code: 1e3, name: "extendedFont", parser: l }, { code: 1001 }, { code: 4, name: "bigFont", parser: l }, { code: 3, name: "font", parser: l }, { code: 42, name: "lastHeight", parser: l }, { code: 71, name: "textGenerationFlag", parser: l }, { code: 50, name: "obliqueAngle", parser: l }, { code: 41, name: "widthFactor", parser: l }, { code: 40, name: "fixedTextHeight", parser: l }, { code: 70, name: "standardFlag", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...Kt]), VPORT: M([{ code: [63, 421, 431], name: "ambientColor", parser: l }, { code: 142, name: "contrast", parser: l }, { code: 141, name: "brightness", parser: l }, { code: 282, name: "defaultLightingType", parser: l }, { code: 292, name: "isDefaultLightingOn", parser: F }, { code: 348, name: "visualStyleObjectId", parser: l }, { code: 333, name: "shadePlotObjectId", parser: l }, { code: 332, name: "backgroundObjectId", parser: l }, { code: 61, name: "majorGridLines", parser: l }, { code: 170, name: "shadePlotSetting", parser: l }, { code: 146, name: "elevation", parser: l }, { code: 79, name: "orthographicType", parser: l }, { code: 112, name: "ucsYAxis", parser: f }, { code: 111, name: "ucsXAxis", parser: f }, { code: 110, name: "ucsOrigin", parser: f }, { code: 74, name: "ucsIconSetting", parser: l }, { code: 71, name: "viewMode", parser: l }, { code: 281, name: "renderMode", parser: l }, { code: 1, name: "styleSheet", parser: l }, { code: [331, 441], name: "frozenLayers", parser: l, isMultiple: !0 }, { code: 72, name: "circleSides", parser: l }, { code: 51, name: "viewTwistAngle", parser: l }, { code: 50, name: "snapRotationAngle", parser: l }, { code: 45, name: "viewHeight", parser: l }, { code: 44, name: "backClippingPlane", parser: l }, { code: 43, name: "frontClippingPlane", parser: l }, { code: 42, name: "lensLength", parser: l }, { code: 17, name: "viewTarget", parser: f }, { code: 16, name: "viewDirectionFromTarget", parser: f }, { code: 15, name: "gridSpacing", parser: f }, { code: 14, name: "snapSpacing", parser: f }, { code: 13, name: "snapBasePoint", parser: f }, { code: 12, name: "center", parser: f }, { code: 11, name: "upperRightCorner", parser: f }, { code: 10, name: "lowerLeftCorner", parser: f }, { code: 70, name: "standardFlag", parser: l }, { code: 2, name: "name", parser: l }, { code: 100, name: "subclassMarker", parser: l }, ...Kt]) }, ca = M([{ code: 70, name: "maxNumberOfEntries", parser: l }, { code: 100, name: "subclassMarker", parser: l }, { code: 330, name: "ownerObjectId", parser: l }, { code: 102 }, { code: 360, isMultiple: !0 }, { code: 102 }, { code: 5, name: "handle", parser: l }, { code: 2, name: "name", parser: l }]);
|
|
2451
|
+
function da(r, t) {
|
|
2452
2452
|
var s;
|
|
2453
2453
|
let e = {};
|
|
2454
2454
|
for (; !v(r, 0, "EOF") && !v(r, 0, "ENDSEC"); ) {
|
|
2455
2455
|
if (v(r, 0, "TABLE")) {
|
|
2456
2456
|
r = t.next();
|
|
2457
2457
|
let n = { entries: [] };
|
|
2458
|
-
|
|
2458
|
+
ca(r, t, n), e[n.name] = n;
|
|
2459
2459
|
}
|
|
2460
2460
|
if (v(r, 0) && !v(r, 0, "ENDTAB")) {
|
|
2461
2461
|
let n = r.value;
|
|
2462
2462
|
r = t.next();
|
|
2463
|
-
let i =
|
|
2463
|
+
let i = ha[n];
|
|
2464
2464
|
if (!i) {
|
|
2465
2465
|
console.warn(`parseTable: Invalid table name '${n}'`), r = t.next();
|
|
2466
2466
|
continue;
|
|
@@ -2510,12 +2510,12 @@ function Gs(r, t) {
|
|
|
2510
2510
|
function fs(r, t, e) {
|
|
2511
2511
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
2512
2512
|
}
|
|
2513
|
-
let
|
|
2513
|
+
let ua = class {
|
|
2514
2514
|
constructor() {
|
|
2515
2515
|
fs(this, "encoding", "utf-8"), fs(this, "encodingFailureFatal", !1);
|
|
2516
2516
|
}
|
|
2517
2517
|
};
|
|
2518
|
-
class
|
|
2518
|
+
class ma extends EventTarget {
|
|
2519
2519
|
parseSync(t) {
|
|
2520
2520
|
let e = new js(t.split(/\r\n|\r|\n/g));
|
|
2521
2521
|
if (!e.hasNext()) throw Error("Empty file");
|
|
@@ -2555,10 +2555,10 @@ class ua extends EventTarget {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
parseAll(t) {
|
|
2557
2557
|
let e = { header: {}, blocks: {}, entities: [], tables: {}, objects: { byName: {}, byTree: void 0 } }, s = t.next();
|
|
2558
|
-
for (; !v(s, 0, "EOF"); ) v(s, 0, "SECTION") && (v(s = t.next(), 2, "HEADER") ? (s = t.next(), e.header =
|
|
2558
|
+
for (; !v(s, 0, "EOF"); ) v(s, 0, "SECTION") && (v(s = t.next(), 2, "HEADER") ? (s = t.next(), e.header = Ji(s, t)) : v(s, 2, "BLOCKS") ? (s = t.next(), e.blocks = Zi(s, t)) : v(s, 2, "ENTITIES") ? (s = t.next(), e.entities = Jr(s, t)) : v(s, 2, "TABLES") ? (s = t.next(), e.tables = da(s, t)) : v(s, 2, "OBJECTS") && (s = t.next(), e.objects = na(s, t))), s = t.next();
|
|
2559
2559
|
return e;
|
|
2560
2560
|
}
|
|
2561
|
-
constructor(t = new
|
|
2561
|
+
constructor(t = new ua()) {
|
|
2562
2562
|
super(), fs(this, "_decoder", void 0), this._decoder = new TextDecoder(t.encoding, { fatal: t.encodingFailureFatal });
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
@@ -2649,7 +2649,7 @@ class jt {
|
|
|
2649
2649
|
return t.group(o);
|
|
2650
2650
|
}
|
|
2651
2651
|
}
|
|
2652
|
-
const Hs = /* @__PURE__ */ new Jt(), bs = "Continuous", gs = "ByLayer",
|
|
2652
|
+
const Hs = /* @__PURE__ */ new Jt(), bs = "Continuous", gs = "ByLayer", ga = "ByBlock";
|
|
2653
2653
|
var Xt = /* @__PURE__ */ ((r) => (r[r.EndPoint = 1] = "EndPoint", r[r.MidPoint = 2] = "MidPoint", r[r.Center = 3] = "Center", r[r.Node = 4] = "Node", r[r.Quadrant = 5] = "Quadrant", r[r.Insertion = 7] = "Insertion", r[r.Perpendicular = 8] = "Perpendicular", r[r.Tangent = 9] = "Tangent", r[r.Nearest = 10] = "Nearest", r[r.Centroid = 11] = "Centroid", r))(Xt || {}), sn = /* @__PURE__ */ ((r) => (r[r.Undefined = 0] = "Undefined", r[r.Inches = 1] = "Inches", r[r.Feet = 2] = "Feet", r[r.Miles = 3] = "Miles", r[r.Millimeters = 4] = "Millimeters", r[r.Centimeters = 5] = "Centimeters", r[r.Meters = 6] = "Meters", r[r.Kilometers = 7] = "Kilometers", r[r.Microinches = 8] = "Microinches", r[r.Mils = 9] = "Mils", r[r.Yards = 10] = "Yards", r[r.Angstroms = 11] = "Angstroms", r[r.Nanometers = 12] = "Nanometers", r[r.Microns = 13] = "Microns", r[r.Decimeters = 14] = "Decimeters", r[r.Dekameters = 15] = "Dekameters", r[r.Hectometers = 16] = "Hectometers", r[r.Gigameters = 17] = "Gigameters", r[r.Astronomical = 18] = "Astronomical", r[r.LightYears = 19] = "LightYears", r[r.Parsecs = 20] = "Parsecs", r[r.USSurveyFeet = 21] = "USSurveyFeet", r[r.USSurveyInch = 22] = "USSurveyInch", r[r.USSurveyYard = 23] = "USSurveyYard", r[r.USSurveyMile = 24] = "USSurveyMile", r[
|
|
2654
2654
|
r.Max = 24
|
|
2655
2655
|
/* USSurveyMile */
|
|
@@ -2660,7 +2660,7 @@ function il(r) {
|
|
|
2660
2660
|
function al(r) {
|
|
2661
2661
|
return r == 1 || r == 2 || r == 3 || r == 8 || r == 9 || r == 10 || r == 21;
|
|
2662
2662
|
}
|
|
2663
|
-
var
|
|
2663
|
+
var pa = /* @__PURE__ */ ((r) => (r.ClosedFilled = "", r.Dot = "_DOT", r.DotSmall = "_DOTSMALL", r.DotBlank = "_DOTBLANK", r.Origin = "_ORIGIN", r.Origin2 = "_ORIGIN2", r.Open = "_OPEN", r.Open90 = "_OPEN90", r.Open30 = "_OPEN30", r.Closed = "_CLOSED", r.Small = "_SMALL", r.None = "_NONE", r.Oblique = "_OBLIQUE", r.BoxFilled = "_BOXFILLED", r.Box = "_BOXBLANK", r.ClosedBlank = "_CLOSEDBLANK", r.DatumBlank = "_DATUMBLANK", r.DatumFilled = "_DATUMFILLED", r.Integral = "_INTEGRAL", r.ArchTick = "_ARCHTICK", r))(pa || {});
|
|
2664
2664
|
class Ls {
|
|
2665
2665
|
constructor(t) {
|
|
2666
2666
|
this.i = 0, this._records = t, this._keys = Array.from(t.keys());
|
|
@@ -2681,7 +2681,7 @@ class Ls {
|
|
|
2681
2681
|
}
|
|
2682
2682
|
}
|
|
2683
2683
|
const rn = "Load Database";
|
|
2684
|
-
class J extends
|
|
2684
|
+
class J extends jn {
|
|
2685
2685
|
constructor(t, e) {
|
|
2686
2686
|
super(t.stage), this.data = t, this.progress = e;
|
|
2687
2687
|
}
|
|
@@ -2706,7 +2706,7 @@ class J extends Vn {
|
|
|
2706
2706
|
return e && (e.data[this.name] = Date.now() - s), n;
|
|
2707
2707
|
}
|
|
2708
2708
|
}
|
|
2709
|
-
class
|
|
2709
|
+
class ya {
|
|
2710
2710
|
/**
|
|
2711
2711
|
* Read the drawing specified by data and store them into the specified database. It will break up
|
|
2712
2712
|
* entities in the drawing into smaller chunks that are processed asynchronously to allow the UI to
|
|
@@ -2730,7 +2730,7 @@ class pa {
|
|
|
2730
2730
|
}
|
|
2731
2731
|
};
|
|
2732
2732
|
or.getInstance().collect(i), this.progress = n;
|
|
2733
|
-
const a = { value: 0 }, o = new
|
|
2733
|
+
const a = { value: 0 }, o = new Gn();
|
|
2734
2734
|
o.setCompleteCallback(() => this.onFinished()), o.setErrorCallback(() => this.onFinished()), o.addTask(
|
|
2735
2735
|
new J(
|
|
2736
2736
|
{
|
|
@@ -3184,7 +3184,7 @@ const X = [
|
|
|
3184
3184
|
];
|
|
3185
3185
|
let Us = 1234567;
|
|
3186
3186
|
const nn = Math.PI / 180, an = 180 / Math.PI;
|
|
3187
|
-
function
|
|
3187
|
+
function _a() {
|
|
3188
3188
|
const r = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, s = Math.random() * 4294967295 | 0;
|
|
3189
3189
|
return (X[r & 255] + X[r >> 8 & 255] + X[r >> 16 & 255] + X[r >> 24 & 255] + "-" + X[t & 255] + X[t >> 8 & 255] + "-" + X[t >> 16 & 15 | 64] + X[t >> 24 & 255] + "-" + X[e & 63 | 128] + X[e >> 8 & 255] + "-" + X[e >> 16 & 255] + X[e >> 24 & 255] + X[s & 255] + X[s >> 8 & 255] + X[s >> 16 & 255] + X[s >> 24 & 255]).toLowerCase();
|
|
3190
3190
|
}
|
|
@@ -3194,100 +3194,100 @@ function Mt(r, t, e) {
|
|
|
3194
3194
|
function on(r, t) {
|
|
3195
3195
|
return (r % t + t) % t;
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3197
|
+
function xa(r, t, e, s, n) {
|
|
3198
3198
|
return s + (r - t) * (n - s) / (e - t);
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3200
|
+
function fa(r, t, e) {
|
|
3201
3201
|
return r !== t ? (e - r) / (t - r) : 0;
|
|
3202
3202
|
}
|
|
3203
3203
|
function ln(r, t, e) {
|
|
3204
3204
|
return (1 - e) * r + e * t;
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3206
|
+
function ba(r, t, e, s) {
|
|
3207
3207
|
return ln(r, t, 1 - Math.exp(-e * s));
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function wa(r, t = 1) {
|
|
3210
3210
|
return t - Math.abs(on(r, t * 2) - t);
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function Aa(r, t, e) {
|
|
3213
3213
|
return r <= t ? 0 : r >= e ? 1 : (r = (r - t) / (e - t), r * r * (3 - 2 * r));
|
|
3214
3214
|
}
|
|
3215
|
-
function
|
|
3215
|
+
function Ia(r, t, e) {
|
|
3216
3216
|
return r <= t ? 0 : r >= e ? 1 : (r = (r - t) / (e - t), r * r * r * (r * (r * 6 - 15) + 10));
|
|
3217
3217
|
}
|
|
3218
|
-
function
|
|
3218
|
+
function Pa(r, t) {
|
|
3219
3219
|
return r + Math.floor(Math.random() * (t - r + 1));
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function Ea(r, t) {
|
|
3222
3222
|
return r + Math.random() * (t - r);
|
|
3223
3223
|
}
|
|
3224
|
-
function
|
|
3224
|
+
function Sa(r) {
|
|
3225
3225
|
return r * (0.5 - Math.random());
|
|
3226
3226
|
}
|
|
3227
|
-
function
|
|
3227
|
+
function Ta(r) {
|
|
3228
3228
|
r !== void 0 && (Us = r);
|
|
3229
3229
|
let t = Us += 1831565813;
|
|
3230
3230
|
return t = Math.imul(t ^ t >>> 15, t | 1), t ^= t + Math.imul(t ^ t >>> 7, t | 61), ((t ^ t >>> 14) >>> 0) / 4294967296;
|
|
3231
3231
|
}
|
|
3232
|
-
function
|
|
3232
|
+
function Ma(r) {
|
|
3233
3233
|
return r * nn;
|
|
3234
3234
|
}
|
|
3235
|
-
function
|
|
3235
|
+
function va(r) {
|
|
3236
3236
|
return r * an;
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3238
|
+
function La(r) {
|
|
3239
3239
|
return (r & r - 1) === 0 && r !== 0;
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3241
|
+
function ka(r) {
|
|
3242
3242
|
return Math.pow(2, Math.ceil(Math.log(r) / Math.LN2));
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3244
|
+
function Ca(r) {
|
|
3245
3245
|
return Math.pow(2, Math.floor(Math.log(r) / Math.LN2));
|
|
3246
3246
|
}
|
|
3247
3247
|
function Xe(r) {
|
|
3248
3248
|
const t = Math.PI * 2;
|
|
3249
3249
|
return (r % t + t) % t;
|
|
3250
3250
|
}
|
|
3251
|
-
function
|
|
3251
|
+
function Oa(r, t, e) {
|
|
3252
3252
|
return r > t && r < e || r > e && r < t;
|
|
3253
3253
|
}
|
|
3254
|
-
function
|
|
3254
|
+
function Na(r, t, e, s = !1) {
|
|
3255
3255
|
return r = Xe(r), t = Xe(t), e = Xe(e), s ? t > e ? r <= t && r >= e : r <= t || r >= e : t < e ? r >= t && r <= e : r >= t || r <= e;
|
|
3256
3256
|
}
|
|
3257
3257
|
function hn(r) {
|
|
3258
3258
|
return r = Math.abs(r), r < 1 ? 0 : Math.ceil(Math.log10(Math.abs(r) + 1));
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3260
|
+
function Da(r, t = 1e-7) {
|
|
3261
3261
|
const e = hn(r);
|
|
3262
3262
|
return Math.max(Math.pow(10, e) * t, t);
|
|
3263
3263
|
}
|
|
3264
3264
|
const k = {
|
|
3265
3265
|
DEG2RAD: nn,
|
|
3266
3266
|
RAD2DEG: an,
|
|
3267
|
-
generateUUID:
|
|
3267
|
+
generateUUID: _a,
|
|
3268
3268
|
clamp: Mt,
|
|
3269
3269
|
euclideanModulo: on,
|
|
3270
|
-
mapLinear:
|
|
3271
|
-
inverseLerp:
|
|
3270
|
+
mapLinear: xa,
|
|
3271
|
+
inverseLerp: fa,
|
|
3272
3272
|
lerp: ln,
|
|
3273
|
-
damp:
|
|
3274
|
-
pingpong:
|
|
3275
|
-
smoothstep:
|
|
3276
|
-
smootherstep:
|
|
3277
|
-
randInt:
|
|
3278
|
-
randFloat:
|
|
3279
|
-
randFloatSpread:
|
|
3280
|
-
seededRandom:
|
|
3281
|
-
degToRad:
|
|
3282
|
-
radToDeg:
|
|
3283
|
-
isPowerOfTwo:
|
|
3284
|
-
ceilPowerOfTwo:
|
|
3285
|
-
floorPowerOfTwo:
|
|
3273
|
+
damp: ba,
|
|
3274
|
+
pingpong: wa,
|
|
3275
|
+
smoothstep: Aa,
|
|
3276
|
+
smootherstep: Ia,
|
|
3277
|
+
randInt: Pa,
|
|
3278
|
+
randFloat: Ea,
|
|
3279
|
+
randFloatSpread: Sa,
|
|
3280
|
+
seededRandom: Ta,
|
|
3281
|
+
degToRad: Ma,
|
|
3282
|
+
radToDeg: va,
|
|
3283
|
+
isPowerOfTwo: La,
|
|
3284
|
+
ceilPowerOfTwo: ka,
|
|
3285
|
+
floorPowerOfTwo: Ca,
|
|
3286
3286
|
normalizeAngle: Xe,
|
|
3287
|
-
isBetween:
|
|
3288
|
-
isBetweenAngle:
|
|
3287
|
+
isBetween: Oa,
|
|
3288
|
+
isBetweenAngle: Na,
|
|
3289
3289
|
intPartLength: hn,
|
|
3290
|
-
relativeEps:
|
|
3290
|
+
relativeEps: Da
|
|
3291
3291
|
}, ws = class cn {
|
|
3292
3292
|
/**
|
|
3293
3293
|
* Construct one vector by two numbers
|
|
@@ -3879,8 +3879,8 @@ const As = class dn {
|
|
|
3879
3879
|
* @returns Return this matrix
|
|
3880
3880
|
*/
|
|
3881
3881
|
multiplyMatrices(t, e) {
|
|
3882
|
-
const s = t.elements, n = e.elements, i = this.elements, a = s[0], o = s[3], c = s[6], h = s[1], d = s[4], u = s[7], m = s[2], g = s[5], p = s[8], y = n[0], x = n[3], _ = n[6], T = n[1], E = n[4], S = n[7], A = n[2],
|
|
3883
|
-
return i[0] = a * y + o * T + c * A, i[3] = a * x + o * E + c *
|
|
3882
|
+
const s = t.elements, n = e.elements, i = this.elements, a = s[0], o = s[3], c = s[6], h = s[1], d = s[4], u = s[7], m = s[2], g = s[5], p = s[8], y = n[0], x = n[3], _ = n[6], T = n[1], E = n[4], S = n[7], A = n[2], z = n[5], I = n[8];
|
|
3883
|
+
return i[0] = a * y + o * T + c * A, i[3] = a * x + o * E + c * z, i[6] = a * _ + o * S + c * I, i[1] = h * y + d * T + u * A, i[4] = h * x + d * E + u * z, i[7] = h * _ + d * S + u * I, i[2] = m * y + g * T + p * A, i[5] = m * x + g * E + p * z, i[8] = m * _ + g * S + p * I, this;
|
|
3884
3884
|
}
|
|
3885
3885
|
/**
|
|
3886
3886
|
* Multiply every component of the matrix by the scalar value s.
|
|
@@ -4066,7 +4066,7 @@ const ps = /* @__PURE__ */ new ks(), Yt = 1e-6, H = 2 * Math.PI, ol = {
|
|
|
4066
4066
|
y: 0,
|
|
4067
4067
|
z: 0
|
|
4068
4068
|
};
|
|
4069
|
-
class
|
|
4069
|
+
class mn {
|
|
4070
4070
|
/**
|
|
4071
4071
|
* Create tolerance class with default tolerance values
|
|
4072
4072
|
*/
|
|
@@ -4135,8 +4135,8 @@ class Da {
|
|
|
4135
4135
|
return t - e < s;
|
|
4136
4136
|
}
|
|
4137
4137
|
}
|
|
4138
|
-
const
|
|
4139
|
-
function
|
|
4138
|
+
const gn = new mn();
|
|
4139
|
+
function pn(r, t, e = !1) {
|
|
4140
4140
|
const s = r.x, n = r.y;
|
|
4141
4141
|
let i = !1;
|
|
4142
4142
|
const a = t.length;
|
|
@@ -4147,22 +4147,22 @@ function gn(r, t, e = !1) {
|
|
|
4147
4147
|
}
|
|
4148
4148
|
return i;
|
|
4149
4149
|
}
|
|
4150
|
-
function
|
|
4150
|
+
function za(r, t) {
|
|
4151
4151
|
if (r.length === 0 || t.length === 0)
|
|
4152
4152
|
return !1;
|
|
4153
4153
|
const e = new Q().setFromPoints(r), s = new Q().setFromPoints(t);
|
|
4154
4154
|
if (!e.intersectsBox(s))
|
|
4155
4155
|
return !1;
|
|
4156
4156
|
for (let n = 0; n < r.length; ) {
|
|
4157
|
-
if (
|
|
4157
|
+
if (pn(r[n], t, !0))
|
|
4158
4158
|
return !0;
|
|
4159
|
-
n < r.length - 1 &&
|
|
4159
|
+
n < r.length - 1 && gn.equalPoint2d(r[n + 1], r[n]) && ++n, ++n;
|
|
4160
4160
|
}
|
|
4161
4161
|
return !1;
|
|
4162
4162
|
}
|
|
4163
|
-
const
|
|
4164
|
-
isPointInPolygon:
|
|
4165
|
-
isPolygonIntersect:
|
|
4163
|
+
const Ra = {
|
|
4164
|
+
isPointInPolygon: pn,
|
|
4165
|
+
isPolygonIntersect: za
|
|
4166
4166
|
};
|
|
4167
4167
|
function Fa(r, t) {
|
|
4168
4168
|
const e = [], s = t - 1, n = r;
|
|
@@ -4300,8 +4300,8 @@ class Gt {
|
|
|
4300
4300
|
let x = 1 - o;
|
|
4301
4301
|
const _ = c * m + h * g + d * p + u * y, T = _ >= 0 ? 1 : -1, E = 1 - _ * _;
|
|
4302
4302
|
if (E > Number.EPSILON) {
|
|
4303
|
-
const A = Math.sqrt(E),
|
|
4304
|
-
x = Math.sin(x *
|
|
4303
|
+
const A = Math.sqrt(E), z = Math.atan2(A, _ * T);
|
|
4304
|
+
x = Math.sin(x * z) / A, o = Math.sin(o * z) / A;
|
|
4305
4305
|
}
|
|
4306
4306
|
const S = o * T;
|
|
4307
4307
|
if (c = c * x + m * S, h = h * x + g * S, d = d * x + p * S, u = u * x + y * S, x === 1 - o) {
|
|
@@ -4655,7 +4655,7 @@ class Gt {
|
|
|
4655
4655
|
yield this._x, yield this._y, yield this._z, yield this._w;
|
|
4656
4656
|
}
|
|
4657
4657
|
}
|
|
4658
|
-
const nt = class
|
|
4658
|
+
const nt = class yn {
|
|
4659
4659
|
/**
|
|
4660
4660
|
* Vector may be constructed by three points, or by three float numbers,
|
|
4661
4661
|
* or by array of three numbers
|
|
@@ -4772,7 +4772,7 @@ const nt = class pn {
|
|
|
4772
4772
|
* @returns Return a new vector3 with the same x, y and z values as this one.
|
|
4773
4773
|
*/
|
|
4774
4774
|
clone() {
|
|
4775
|
-
return new
|
|
4775
|
+
return new yn(this.x, this.y, this.z);
|
|
4776
4776
|
}
|
|
4777
4777
|
/**
|
|
4778
4778
|
* Copy the values of the passed vector3's x, y and z properties to this vector3.
|
|
@@ -5299,7 +5299,7 @@ const nt = class pn {
|
|
|
5299
5299
|
};
|
|
5300
5300
|
nt.X_AXIS = Object.freeze(new nt(1, 0, 0)), nt.NEGATIVE_X_AXIS = Object.freeze(new nt(-1, 0, 0)), nt.Y_AXIS = Object.freeze(new nt(0, 1, 0)), nt.NEGATIVE_Y_AXIS = Object.freeze(new nt(0, -1, 0)), nt.Z_AXIS = Object.freeze(new nt(0, 0, 1)), nt.NEGATIVE_Z_AXIS = Object.freeze(new nt(0, 0, -1));
|
|
5301
5301
|
let b = nt;
|
|
5302
|
-
const ys = /* @__PURE__ */ new b(), Ws = /* @__PURE__ */ new Gt(), Ps = class
|
|
5302
|
+
const ys = /* @__PURE__ */ new b(), Ws = /* @__PURE__ */ new Gt(), Ps = class _n {
|
|
5303
5303
|
/**
|
|
5304
5304
|
* Create a 4x4 matrix with the given arguments in row-major order. If no arguments are provided,
|
|
5305
5305
|
* the constructor initializes the Matrix4 to the 4x4 identity matrix.
|
|
@@ -5374,7 +5374,7 @@ const ys = /* @__PURE__ */ new b(), Ws = /* @__PURE__ */ new Gt(), Ps = class yn
|
|
|
5374
5374
|
return this.set(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
|
|
5375
5375
|
}
|
|
5376
5376
|
clone() {
|
|
5377
|
-
return new
|
|
5377
|
+
return new _n().fromArray(this.elements);
|
|
5378
5378
|
}
|
|
5379
5379
|
/**
|
|
5380
5380
|
* Copy the elements of matrix m into this matrix.
|
|
@@ -5426,7 +5426,7 @@ const ys = /* @__PURE__ */ new b(), Ws = /* @__PURE__ */ new Gt(), Ps = class yn
|
|
|
5426
5426
|
* @returns Return this matrix
|
|
5427
5427
|
*/
|
|
5428
5428
|
setFromExtrusionDirection(t) {
|
|
5429
|
-
if (
|
|
5429
|
+
if (gn.equalPoint3d(t, b.Z_AXIS))
|
|
5430
5430
|
this.identity();
|
|
5431
5431
|
else {
|
|
5432
5432
|
const e = new b(1, 0, 0);
|
|
@@ -5648,8 +5648,8 @@ const ys = /* @__PURE__ */ new b(), Ws = /* @__PURE__ */ new Gt(), Ps = class yn
|
|
|
5648
5648
|
* @returns Return this matrix
|
|
5649
5649
|
*/
|
|
5650
5650
|
multiplyMatrices(t, e) {
|
|
5651
|
-
const s = t.elements, n = e.elements, i = this.elements, a = s[0], o = s[4], c = s[8], h = s[12], d = s[1], u = s[5], m = s[9], g = s[13], p = s[2], y = s[6], x = s[10], _ = s[14], T = s[3], E = s[7], S = s[11], A = s[15],
|
|
5652
|
-
return i[0] = a *
|
|
5651
|
+
const s = t.elements, n = e.elements, i = this.elements, a = s[0], o = s[4], c = s[8], h = s[12], d = s[1], u = s[5], m = s[9], g = s[13], p = s[2], y = s[6], x = s[10], _ = s[14], T = s[3], E = s[7], S = s[11], A = s[15], z = n[0], I = n[4], U = n[8], it = n[12], mt = n[1], C = n[5], R = n[9], Lt = n[13], kt = n[2], Ee = n[6], Se = n[10], Te = n[14], Me = n[3], ve = n[7], Le = n[11], ke = n[15];
|
|
5652
|
+
return i[0] = a * z + o * mt + c * kt + h * Me, i[4] = a * I + o * C + c * Ee + h * ve, i[8] = a * U + o * R + c * Se + h * Le, i[12] = a * it + o * Lt + c * Te + h * ke, i[1] = d * z + u * mt + m * kt + g * Me, i[5] = d * I + u * C + m * Ee + g * ve, i[9] = d * U + u * R + m * Se + g * Le, i[13] = d * it + u * Lt + m * Te + g * ke, i[2] = p * z + y * mt + x * kt + _ * Me, i[6] = p * I + y * C + x * Ee + _ * ve, i[10] = p * U + y * R + x * Se + _ * Le, i[14] = p * it + y * Lt + x * Te + _ * ke, i[3] = T * z + E * mt + S * kt + A * Me, i[7] = T * I + E * C + S * Ee + A * ve, i[11] = T * U + E * R + S * Se + A * Le, i[15] = T * it + E * Lt + S * Te + A * ke, this;
|
|
5653
5653
|
}
|
|
5654
5654
|
/**
|
|
5655
5655
|
* Multiply every component of the matrix by a scalar value s.
|
|
@@ -5694,10 +5694,10 @@ const ys = /* @__PURE__ */ new b(), Ws = /* @__PURE__ */ new Gt(), Ps = class yn
|
|
|
5694
5694
|
* @returns Return this matrix
|
|
5695
5695
|
*/
|
|
5696
5696
|
invert() {
|
|
5697
|
-
const t = this.elements, e = t[0], s = t[1], n = t[2], i = t[3], a = t[4], o = t[5], c = t[6], h = t[7], d = t[8], u = t[9], m = t[10], g = t[11], p = t[12], y = t[13], x = t[14], _ = t[15], T = u * x * h - y * m * h + y * c * g - o * x * g - u * c * _ + o * m * _, E = p * m * h - d * x * h - p * c * g + a * x * g + d * c * _ - a * m * _, S = d * y * h - p * u * h + p * o * g - a * y * g - d * o * _ + a * u * _, A = p * u * c - d * y * c - p * o * m + a * y * m + d * o * x - a * u * x,
|
|
5698
|
-
if (
|
|
5697
|
+
const t = this.elements, e = t[0], s = t[1], n = t[2], i = t[3], a = t[4], o = t[5], c = t[6], h = t[7], d = t[8], u = t[9], m = t[10], g = t[11], p = t[12], y = t[13], x = t[14], _ = t[15], T = u * x * h - y * m * h + y * c * g - o * x * g - u * c * _ + o * m * _, E = p * m * h - d * x * h - p * c * g + a * x * g + d * c * _ - a * m * _, S = d * y * h - p * u * h + p * o * g - a * y * g - d * o * _ + a * u * _, A = p * u * c - d * y * c - p * o * m + a * y * m + d * o * x - a * u * x, z = e * T + s * E + n * S + i * A;
|
|
5698
|
+
if (z === 0)
|
|
5699
5699
|
return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
5700
|
-
const I = 1 /
|
|
5700
|
+
const I = 1 / z;
|
|
5701
5701
|
return t[0] = T * I, t[1] = (y * m * i - u * x * i - y * n * g + s * x * g + u * n * _ - s * m * _) * I, t[2] = (o * x * i - y * c * i + y * n * h - s * x * h - o * n * _ + s * c * _) * I, t[3] = (u * c * i - o * m * i - u * n * h + s * m * h + o * n * g - s * c * g) * I, t[4] = E * I, t[5] = (d * x * i - p * m * i + p * n * g - e * x * g - d * n * _ + e * m * _) * I, t[6] = (p * c * i - a * x * i - p * n * h + e * x * h + a * n * _ - e * c * _) * I, t[7] = (a * m * i - d * c * i + d * n * h - e * m * h - a * n * g + e * c * g) * I, t[8] = S * I, t[9] = (p * u * i - d * y * i - p * s * g + e * y * g + d * s * _ - e * u * _) * I, t[10] = (a * y * i - p * o * i + p * s * h - e * y * h - a * s * _ + e * o * _) * I, t[11] = (d * o * i - a * u * i - d * s * h + e * u * h + a * s * g - e * o * g) * I, t[12] = A * I, t[13] = (d * y * n - p * u * n + p * s * m - e * y * m - d * s * x + e * u * x) * I, t[14] = (p * o * n - a * y * n - p * s * c + e * y * c + a * s * x - e * o * x) * I, t[15] = (a * u * n - d * o * n + d * s * c - e * u * c - a * s * m + e * o * m) * I, this;
|
|
5702
5702
|
}
|
|
5703
5703
|
/**
|
|
@@ -5812,8 +5812,8 @@ const ys = /* @__PURE__ */ new b(), Ws = /* @__PURE__ */ new Gt(), Ps = class yn
|
|
|
5812
5812
|
* @returns Return this matrix
|
|
5813
5813
|
*/
|
|
5814
5814
|
compose(t, e, s) {
|
|
5815
|
-
const n = this.elements, i = e.x, a = e.y, o = e.z, c = e.w, h = i + i, d = a + a, u = o + o, m = i * h, g = i * d, p = i * u, y = a * d, x = a * u, _ = o * u, T = c * h, E = c * d, S = c * u, A = s.x,
|
|
5816
|
-
return n[0] = (1 - (y + _)) * A, n[1] = (g + S) * A, n[2] = (p - E) * A, n[3] = 0, n[4] = (g - S) *
|
|
5815
|
+
const n = this.elements, i = e.x, a = e.y, o = e.z, c = e.w, h = i + i, d = a + a, u = o + o, m = i * h, g = i * d, p = i * u, y = a * d, x = a * u, _ = o * u, T = c * h, E = c * d, S = c * u, A = s.x, z = s.y, I = s.z;
|
|
5816
|
+
return n[0] = (1 - (y + _)) * A, n[1] = (g + S) * A, n[2] = (p - E) * A, n[3] = 0, n[4] = (g - S) * z, n[5] = (1 - (m + _)) * z, n[6] = (x + T) * z, n[7] = 0, n[8] = (p + E) * I, n[9] = (x - T) * I, n[10] = (1 - (m + y)) * I, n[11] = 0, n[12] = t.x, n[13] = t.y, n[14] = t.z, n[15] = 1, this;
|
|
5817
5817
|
}
|
|
5818
5818
|
/**
|
|
5819
5819
|
* Decompose this matrix into its position, quaternion and scale components.
|
|
@@ -6642,7 +6642,7 @@ class w extends b {
|
|
|
6642
6642
|
}), n;
|
|
6643
6643
|
}
|
|
6644
6644
|
}
|
|
6645
|
-
const Xs = /* @__PURE__ */ new Qt(), $s = /* @__PURE__ */ new Gt(),
|
|
6645
|
+
const Xs = /* @__PURE__ */ new Qt(), $s = /* @__PURE__ */ new Gt(), xn = class Es {
|
|
6646
6646
|
/**
|
|
6647
6647
|
* Create one instance of this class
|
|
6648
6648
|
* @param x (optional) the angle of the x axis in radians. Default is 0.
|
|
@@ -6834,9 +6834,9 @@ const Xs = /* @__PURE__ */ new Qt(), $s = /* @__PURE__ */ new Gt(), _n = class E
|
|
|
6834
6834
|
yield this._x, yield this._y, yield this._z, yield this._order;
|
|
6835
6835
|
}
|
|
6836
6836
|
};
|
|
6837
|
-
|
|
6838
|
-
let qa =
|
|
6839
|
-
class
|
|
6837
|
+
xn.DEFAULT_ORDER = "XYZ";
|
|
6838
|
+
let qa = xn;
|
|
6839
|
+
class fn {
|
|
6840
6840
|
constructor() {
|
|
6841
6841
|
this._boundingBoxNeedsUpdate = !1;
|
|
6842
6842
|
}
|
|
@@ -6848,7 +6848,7 @@ class xn {
|
|
|
6848
6848
|
return this._boundingBoxNeedsUpdate;
|
|
6849
6849
|
}
|
|
6850
6850
|
}
|
|
6851
|
-
class
|
|
6851
|
+
class bn extends fn {
|
|
6852
6852
|
/**
|
|
6853
6853
|
* Return new shape translated by given vector.
|
|
6854
6854
|
*/
|
|
@@ -6864,7 +6864,7 @@ class fn extends xn {
|
|
|
6864
6864
|
return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
|
|
6865
6865
|
}
|
|
6866
6866
|
}
|
|
6867
|
-
class Cs extends
|
|
6867
|
+
class Cs extends bn {
|
|
6868
6868
|
/**
|
|
6869
6869
|
* Create one 2d area defined by one outter loop and multiple inner loops
|
|
6870
6870
|
*/
|
|
@@ -6932,7 +6932,7 @@ class Cs extends fn {
|
|
|
6932
6932
|
let m = c + 1;
|
|
6933
6933
|
for (; m < a; m++) {
|
|
6934
6934
|
const g = n[m], p = e[g];
|
|
6935
|
-
if (s[g].containsBox(u) &&
|
|
6935
|
+
if (s[g].containsBox(u) && Ra.isPointInPolygon(
|
|
6936
6936
|
d[k.randInt(0, d.length - 1)],
|
|
6937
6937
|
p
|
|
6938
6938
|
)) {
|
|
@@ -6975,7 +6975,7 @@ class Cs extends fn {
|
|
|
6975
6975
|
}), s;
|
|
6976
6976
|
}
|
|
6977
6977
|
}
|
|
6978
|
-
class Pe extends
|
|
6978
|
+
class Pe extends bn {
|
|
6979
6979
|
constructor() {
|
|
6980
6980
|
super(), this.arcLengthDivisions = 100;
|
|
6981
6981
|
}
|
|
@@ -7140,12 +7140,12 @@ class be extends Pe {
|
|
|
7140
7140
|
x: (I.x + U.x) / 2,
|
|
7141
7141
|
y: (I.y + U.y) / 2
|
|
7142
7142
|
}), i = (I, U) => (U.y - I.y) / (U.x - I.x), a = (I) => -1 / I, o = n(t, e), c = n(e, s), h = i(t, e), d = i(e, s), u = a(h), m = a(d), g = (I, U, it, mt) => {
|
|
7143
|
-
const C = (mt - U) / (I - it),
|
|
7144
|
-
return { x: C, y:
|
|
7143
|
+
const C = (mt - U) / (I - it), R = I * C + U;
|
|
7144
|
+
return { x: C, y: R };
|
|
7145
7145
|
}, p = o.y - u * o.x, y = c.y - m * c.x, x = g(u, p, m, y), _ = Math.sqrt(
|
|
7146
7146
|
Math.pow(t.x - x.x, 2) + Math.pow(t.y - x.y, 2)
|
|
7147
|
-
), T = (I, U) => Math.atan2(I.y - U.y, I.x - U.x), E = T(t, x), S = T(e, x), A = T(s, x),
|
|
7148
|
-
this.center = x, this.radius = _, this.startAngle = E, this.endAngle = A, this.clockwise = !
|
|
7147
|
+
), T = (I, U) => Math.atan2(I.y - U.y, I.x - U.x), E = T(t, x), S = T(e, x), A = T(s, x), z = A > E && A < S || E > A && E < S || S > A && S < E;
|
|
7148
|
+
this.center = x, this.radius = _, this.startAngle = E, this.endAngle = A, this.clockwise = !z;
|
|
7149
7149
|
}
|
|
7150
7150
|
/**
|
|
7151
7151
|
* Create circular arc by two points and one bugle factor
|
|
@@ -7328,7 +7328,7 @@ class be extends Pe {
|
|
|
7328
7328
|
return e;
|
|
7329
7329
|
}
|
|
7330
7330
|
}
|
|
7331
|
-
class Xa extends
|
|
7331
|
+
class Xa extends fn {
|
|
7332
7332
|
/**
|
|
7333
7333
|
* Return new shape translated by given vector.
|
|
7334
7334
|
* Translation vector may be also defined by a pair of numbers.
|
|
@@ -7457,9 +7457,9 @@ class Ht extends es {
|
|
|
7457
7457
|
* @returns Return a point parameter based on the closest point as projected on the line segment.
|
|
7458
7458
|
*/
|
|
7459
7459
|
closestPointToPointParameter(t, e) {
|
|
7460
|
-
Ks.subVectors(t, this._start),
|
|
7461
|
-
const s =
|
|
7462
|
-
let n =
|
|
7460
|
+
Ks.subVectors(t, this._start), ze.subVectors(this.endPoint, this.startPoint);
|
|
7461
|
+
const s = ze.dot(ze);
|
|
7462
|
+
let n = ze.dot(Ks) / s;
|
|
7463
7463
|
return e && (n = k.clamp(n, 0, 1)), n;
|
|
7464
7464
|
}
|
|
7465
7465
|
/**
|
|
@@ -7556,7 +7556,7 @@ class Ht extends es {
|
|
|
7556
7556
|
return new Ht(this._start.clone(), this._end.clone());
|
|
7557
7557
|
}
|
|
7558
7558
|
}
|
|
7559
|
-
const Ft = /* @__PURE__ */ new b(), Ks = /* @__PURE__ */ new b(),
|
|
7559
|
+
const Ft = /* @__PURE__ */ new b(), Ks = /* @__PURE__ */ new b(), ze = /* @__PURE__ */ new b();
|
|
7560
7560
|
class Zt extends es {
|
|
7561
7561
|
/**
|
|
7562
7562
|
* Compute center point of the arc given three points
|
|
@@ -8082,14 +8082,23 @@ class Ns extends es {
|
|
|
8082
8082
|
/**
|
|
8083
8083
|
* @inheritdoc
|
|
8084
8084
|
*/
|
|
8085
|
+
/**
|
|
8086
|
+
* Check if this ellipse arc is actually a circular arc (major and minor radii are equal)
|
|
8087
|
+
* @returns True if the ellipse arc is circular
|
|
8088
|
+
*/
|
|
8089
|
+
get isCircular() {
|
|
8090
|
+
return mn.equal(this.majorAxisRadius, this.minorAxisRadius);
|
|
8091
|
+
}
|
|
8085
8092
|
get length() {
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8093
|
+
if (this.isCircular)
|
|
8094
|
+
return this.majorAxisRadius * Math.abs(this.deltaAngle);
|
|
8095
|
+
const t = 1e3, e = this.deltaAngle / t;
|
|
8096
|
+
let s = 0, n = this.getPointAtAngle(this.startAngle);
|
|
8097
|
+
for (let i = 1; i <= t; i++) {
|
|
8098
|
+
const a = this.startAngle + i * e, o = this.getPointAtAngle(a), c = o.x - n.x, h = o.y - n.y, d = o.z - n.z;
|
|
8099
|
+
s += Math.sqrt(c * c + h * h + d * d), n = o;
|
|
8091
8100
|
}
|
|
8092
|
-
return
|
|
8101
|
+
return s;
|
|
8093
8102
|
}
|
|
8094
8103
|
/**
|
|
8095
8104
|
* Compute the bounding box of the 3D ellipse arc.
|
|
@@ -8559,32 +8568,33 @@ class Bt {
|
|
|
8559
8568
|
}
|
|
8560
8569
|
}
|
|
8561
8570
|
class we extends es {
|
|
8562
|
-
constructor(t, e, s) {
|
|
8571
|
+
constructor(t, e, s, n) {
|
|
8563
8572
|
super();
|
|
8564
|
-
const
|
|
8565
|
-
if (
|
|
8573
|
+
const i = +(t !== void 0) + +(e !== void 0) + +(s !== void 0) + +(n !== void 0);
|
|
8574
|
+
if (i < 2 || i > 4)
|
|
8566
8575
|
throw ot.ILLEGAL_PARAMETERS;
|
|
8567
|
-
const
|
|
8568
|
-
if (this._closed = !1,
|
|
8569
|
-
if (this.
|
|
8576
|
+
const a = 3;
|
|
8577
|
+
if (this._closed = n || !1, Array.isArray(e)) {
|
|
8578
|
+
if (this._controlPoints = t, i >= 4 && (this._closed = n), this._controlPoints.length < 4)
|
|
8570
8579
|
throw ot.ILLEGAL_PARAMETERS;
|
|
8571
|
-
const
|
|
8572
|
-
this._nurbsCurve = Bt.byPoints(
|
|
8573
|
-
a,
|
|
8574
|
-
i,
|
|
8575
|
-
this._knotParameterization
|
|
8576
|
-
), this._controlPoints = this.toGePoints(this._nurbsCurve.controlPoints()), this._originalControlPoints = [...this._controlPoints], this._originalKnots = [...this._nurbsCurve.knots()], this._originalWeights = [...this._nurbsCurve.weights()];
|
|
8577
|
-
} else {
|
|
8578
|
-
if (this._controlPoints = t, this._controlPoints.length < 4)
|
|
8579
|
-
throw ot.ILLEGAL_PARAMETERS;
|
|
8580
|
-
const a = this.toNurbsPoints(this._controlPoints);
|
|
8580
|
+
const o = this.toNurbsPoints(this._controlPoints);
|
|
8581
8581
|
this._nurbsCurve = Bt.byKnotsControlPointsWeights(
|
|
8582
|
-
i,
|
|
8583
|
-
e,
|
|
8584
8582
|
a,
|
|
8583
|
+
e,
|
|
8584
|
+
o,
|
|
8585
8585
|
s
|
|
8586
8586
|
), this._originalControlPoints = [...this._controlPoints], this._originalKnots = [...this._nurbsCurve.knots()], this._originalWeights = s ? [...s] : new Array(this._controlPoints.length).fill(1);
|
|
8587
|
+
} else {
|
|
8588
|
+
if (this._fitPoints = t, this._knotParameterization = e, i >= 3 && (this._closed = s), this._fitPoints.length < 4)
|
|
8589
|
+
throw ot.ILLEGAL_PARAMETERS;
|
|
8590
|
+
const o = this.toNurbsPoints(this._fitPoints);
|
|
8591
|
+
this._nurbsCurve = Bt.byPoints(
|
|
8592
|
+
o,
|
|
8593
|
+
a,
|
|
8594
|
+
this._knotParameterization
|
|
8595
|
+
), this._controlPoints = this.toGePoints(this._nurbsCurve.controlPoints()), this._originalControlPoints = [...this._controlPoints], this._originalKnots = [...this._nurbsCurve.knots()], this._originalWeights = [...this._nurbsCurve.weights()];
|
|
8587
8596
|
}
|
|
8597
|
+
this._closed && this.makeClosed();
|
|
8588
8598
|
}
|
|
8589
8599
|
/**
|
|
8590
8600
|
* Set the closed property and rebuild the curve if necessary
|
|
@@ -8596,13 +8606,10 @@ class we extends es {
|
|
|
8596
8606
|
* Make the spline closed by adding control points and adjusting knots
|
|
8597
8607
|
*/
|
|
8598
8608
|
makeClosed() {
|
|
8599
|
-
const t = this._nurbsCurve.degree(), e = this._nurbsCurve.controlPoints(), s = this._nurbsCurve.
|
|
8600
|
-
|
|
8601
|
-
...e.
|
|
8602
|
-
|
|
8603
|
-
...s,
|
|
8604
|
-
...s.slice(0, t)
|
|
8605
|
-
], o = this.createClosedKnotVector(n, t);
|
|
8609
|
+
const t = this._nurbsCurve.degree(), e = this._nurbsCurve.controlPoints(), s = this._nurbsCurve.knots(), n = this._nurbsCurve.weights(), i = [...e], a = [...n];
|
|
8610
|
+
for (let c = 0; c < t; c++)
|
|
8611
|
+
i.push([...e[0]]), a.push(n[0]);
|
|
8612
|
+
const o = this.createClosedKnotVector(s, t);
|
|
8606
8613
|
this._nurbsCurve = Bt.byKnotsControlPointsWeights(
|
|
8607
8614
|
t,
|
|
8608
8615
|
o,
|
|
@@ -8625,13 +8632,13 @@ class we extends es {
|
|
|
8625
8632
|
), this._controlPoints = [...this._originalControlPoints];
|
|
8626
8633
|
}
|
|
8627
8634
|
/**
|
|
8628
|
-
* Create
|
|
8635
|
+
* Create knot vector for closed curve
|
|
8629
8636
|
*/
|
|
8630
8637
|
createClosedKnotVector(t, e) {
|
|
8631
|
-
const s = t
|
|
8632
|
-
for (let
|
|
8633
|
-
|
|
8634
|
-
return
|
|
8638
|
+
const s = [...t], n = t[t.length - 1], i = e;
|
|
8639
|
+
for (let a = 1; a <= i; a++)
|
|
8640
|
+
s.push(n + a);
|
|
8641
|
+
return s;
|
|
8635
8642
|
}
|
|
8636
8643
|
/**
|
|
8637
8644
|
* Degree of the spline to be created.
|
|
@@ -8653,8 +8660,6 @@ class we extends es {
|
|
|
8653
8660
|
* The end point of this spline
|
|
8654
8661
|
*/
|
|
8655
8662
|
get endPoint() {
|
|
8656
|
-
if (this._closed)
|
|
8657
|
-
return this.startPoint;
|
|
8658
8663
|
const t = this._nurbsCurve.knots(), e = this._nurbsCurve.degree(), s = t[t.length - e - 1], n = this._nurbsCurve.point(s);
|
|
8659
8664
|
return new w(n[0], n[1], n[2]);
|
|
8660
8665
|
}
|
|
@@ -8689,26 +8694,16 @@ class we extends es {
|
|
|
8689
8694
|
return this._controlPoints[s];
|
|
8690
8695
|
}
|
|
8691
8696
|
/**
|
|
8692
|
-
* Divide this spline into the specified
|
|
8697
|
+
* Divide this spline into the specified nubmer of points
|
|
8693
8698
|
* those points as an array of points.
|
|
8694
|
-
* @param numPoints Input the
|
|
8699
|
+
* @param numPoints Input the nubmer of points returned
|
|
8695
8700
|
* @returns Return an array of point
|
|
8696
8701
|
*/
|
|
8697
8702
|
getPoints(t = 100) {
|
|
8698
|
-
const e = this._nurbsCurve, s = [], n = e.knots(), i =
|
|
8699
|
-
|
|
8700
|
-
const
|
|
8701
|
-
|
|
8702
|
-
const d = a + h * c, u = e.point(d);
|
|
8703
|
-
s.push(new w(u[0], u[1], u[2]));
|
|
8704
|
-
}
|
|
8705
|
-
s.push(s[0]);
|
|
8706
|
-
} else {
|
|
8707
|
-
const c = (o - a) / (t - 1);
|
|
8708
|
-
for (let h = 0; h < t; h++) {
|
|
8709
|
-
const d = h === t - 1 ? o : a + h * c, u = e.point(d);
|
|
8710
|
-
s.push(new w(u[0], u[1], u[2]));
|
|
8711
|
-
}
|
|
8703
|
+
const e = this._nurbsCurve, s = [], n = e.knots(), i = this._nurbsCurve.degree(), a = n[i], o = n[n.length - i - 1], c = (o - a) / (t - 1);
|
|
8704
|
+
for (let h = 0; h < t; h++) {
|
|
8705
|
+
const d = h === t - 1 ? o : a + h * c, u = e.point(d);
|
|
8706
|
+
s.push(new w(u[0], u[1], u[2]));
|
|
8712
8707
|
}
|
|
8713
8708
|
return s;
|
|
8714
8709
|
}
|
|
@@ -8762,14 +8757,14 @@ class we extends es {
|
|
|
8762
8757
|
}), e;
|
|
8763
8758
|
}
|
|
8764
8759
|
}
|
|
8765
|
-
var Vt = 256,
|
|
8766
|
-
for (; Vt--; )
|
|
8760
|
+
var Vt = 256, wn = [], Zs = 256, Re;
|
|
8761
|
+
for (; Vt--; ) wn[Vt] = (Vt + 256).toString(16).substring(1);
|
|
8767
8762
|
function Ka(r) {
|
|
8768
8763
|
var t = 0, e = 11;
|
|
8769
|
-
if (!
|
|
8770
|
-
for (
|
|
8771
|
-
|
|
8772
|
-
return
|
|
8764
|
+
if (!Re || Vt + e > Zs * 2)
|
|
8765
|
+
for (Re = "", Vt = 0; t < Zs; t++)
|
|
8766
|
+
Re += wn[Math.random() * 256 | 0];
|
|
8767
|
+
return Re.substring(Vt, Vt++ + e);
|
|
8773
8768
|
}
|
|
8774
8769
|
class Ut {
|
|
8775
8770
|
/**
|
|
@@ -8778,7 +8773,7 @@ class Ut {
|
|
|
8778
8773
|
* @param defaultAttrs Input default values of attributes of this object.
|
|
8779
8774
|
*/
|
|
8780
8775
|
constructor(t, e) {
|
|
8781
|
-
t = t || {}, Ie(t, { objectId: Ka() }), this._attrs = new
|
|
8776
|
+
t = t || {}, Ie(t, { objectId: Ka() }), this._attrs = new Vn(t, e);
|
|
8782
8777
|
}
|
|
8783
8778
|
/**
|
|
8784
8779
|
* Attributes of this object
|
|
@@ -8844,7 +8839,7 @@ class Ut {
|
|
|
8844
8839
|
* set automatically. So it means you should never set its value by your own.
|
|
8845
8840
|
*/
|
|
8846
8841
|
get database() {
|
|
8847
|
-
return this._database ? this._database :
|
|
8842
|
+
return this._database ? this._database : Cn().workingDatabase;
|
|
8848
8843
|
}
|
|
8849
8844
|
set database(t) {
|
|
8850
8845
|
this._database = t;
|
|
@@ -8994,7 +8989,7 @@ class Et extends Ut {
|
|
|
8994
8989
|
if (this.lineType == gs) {
|
|
8995
8990
|
const t = this.database.tables.layerTable.getAt(this.layer);
|
|
8996
8991
|
if (t && t.linetype) return t.linetype;
|
|
8997
|
-
} else return this.lineType ==
|
|
8992
|
+
} else return this.lineType == ga ? bs : this.lineType;
|
|
8998
8993
|
return bs;
|
|
8999
8994
|
}
|
|
9000
8995
|
getLayerColor() {
|
|
@@ -9008,7 +9003,7 @@ class Et extends Ut {
|
|
|
9008
9003
|
return null;
|
|
9009
9004
|
}
|
|
9010
9005
|
}
|
|
9011
|
-
class
|
|
9006
|
+
class An extends Et {
|
|
9012
9007
|
constructor(t) {
|
|
9013
9008
|
super(), this._blockName = t, this._position = new w(), this._rotation = 0, this._normal = new b(0, 0, 1), this._scaleFactors = new w(1, 1, 1);
|
|
9014
9009
|
}
|
|
@@ -9653,8 +9648,8 @@ class io extends ut {
|
|
|
9653
9648
|
return t.lines(n, this.lineStyle);
|
|
9654
9649
|
}
|
|
9655
9650
|
}
|
|
9656
|
-
var
|
|
9657
|
-
class
|
|
9651
|
+
var In = /* @__PURE__ */ ((r) => (r.ClosedFilled = "", r.Dot = "_DOT", r.DotSmall = "_DOTSMALL", r.DotBlank = "_DOTBLANK", r.Origin = "_ORIGIN", r.Origin2 = "_ORIGIN2", r.Open = "_OPEN", r.Open90 = "_OPEN90", r.Open30 = "_OPEN30", r.Closed = "_CLOSED", r.Small = "_SMALL", r.None = "_NONE", r.Oblique = "_OBLIQUE", r.BoxFilled = "_BOXFILLED", r.Box = "_BOXBLANK", r.ClosedBlank = "_CLOSEDBLANK", r.DatumBlank = "_DATUMBLANK", r.DatumFilled = "_DATUMFILLED", r.Integral = "_INTEGRAL", r.ArchTick = "_ARCHTICK", r))(In || {}), zs = /* @__PURE__ */ ((r) => (r[r.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", r[r.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", r[r.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", r[r.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", r[r.BY_STYLE = 5] = "BY_STYLE", r))(zs || {}), Ae = /* @__PURE__ */ ((r) => (r[r.TopLeft = 1] = "TopLeft", r[r.TopCenter = 2] = "TopCenter", r[r.TopRight = 3] = "TopRight", r[r.MiddleLeft = 4] = "MiddleLeft", r[r.MiddleCenter = 5] = "MiddleCenter", r[r.MiddleRight = 6] = "MiddleRight", r[r.BottomLeft = 7] = "BottomLeft", r[r.BottomCenter = 8] = "BottomCenter", r[r.BottomRight = 9] = "BottomRight", r))(Ae || {}), Pn = /* @__PURE__ */ ((r) => (r[r.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", r[r.WIREFRAME = 1] = "WIREFRAME", r[r.HIDDEN_LINE = 2] = "HIDDEN_LINE", r[r.FLAT_SHADED = 3] = "FLAT_SHADED", r[r.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", r[r.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", r[r.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", r))(Pn || {}), En = /* @__PURE__ */ ((r) => (r[r.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", r[r.TOP = 1] = "TOP", r[r.BOTTOM = 2] = "BOTTOM", r[r.FRONT = 3] = "FRONT", r[r.BACK = 4] = "BACK", r[r.LEFT = 5] = "LEFT", r[r.RIGHT = 6] = "RIGHT", r))(En || {}), Sn = /* @__PURE__ */ ((r) => (r[r.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", r[r.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", r))(Sn || {});
|
|
9652
|
+
class Rs {
|
|
9658
9653
|
constructor() {
|
|
9659
9654
|
this._number = -1, this._id = "", this._groupId = "", this._centerPoint = new w(), this._height = 0, this._width = 0, this._viewCenter = new w(), this._viewHeight = 0;
|
|
9660
9655
|
}
|
|
@@ -9764,7 +9759,7 @@ class zs {
|
|
|
9764
9759
|
* @returns Return the cloned instance of this viewport
|
|
9765
9760
|
*/
|
|
9766
9761
|
clone() {
|
|
9767
|
-
const t = new
|
|
9762
|
+
const t = new Rs();
|
|
9768
9763
|
return t.id = this.id, t.groupId = this.groupId, t.number = this.number, t.centerPoint.copy(this.centerPoint), t.height = this.height, t.width = this.width, t.viewCenter.copy(this.viewCenter), t.viewHeight = this.viewHeight, t;
|
|
9769
9764
|
}
|
|
9770
9765
|
/**
|
|
@@ -9778,7 +9773,7 @@ class zs {
|
|
|
9778
9773
|
}
|
|
9779
9774
|
class ao extends Et {
|
|
9780
9775
|
constructor() {
|
|
9781
|
-
super(), this._contents = "", this._height = 0, this._width = 0, this._lineSpacingFactor = 0.25, this._lineSpacingStyle = 0, this._backgroundFill = !1, this._backgroundFillColor = 13158600, this._backgroundFillTransparency = 1, this._backgroundScaleFactor = 1, this._rotation = 0, this._styleName = "", this._location = new w(), this._attachmentPoint = Ae.TopLeft, this._direction = new b(1, 0, 0), this._drawingDirection =
|
|
9776
|
+
super(), this._contents = "", this._height = 0, this._width = 0, this._lineSpacingFactor = 0.25, this._lineSpacingStyle = 0, this._backgroundFill = !1, this._backgroundFillColor = 13158600, this._backgroundFillTransparency = 1, this._backgroundScaleFactor = 1, this._rotation = 0, this._styleName = "", this._location = new w(), this._attachmentPoint = Ae.TopLeft, this._direction = new b(1, 0, 0), this._drawingDirection = zs.LEFT_TO_RIGHT;
|
|
9782
9777
|
}
|
|
9783
9778
|
/**
|
|
9784
9779
|
* Returns a string that contains the contents of the mtext object. Formatting data used for word
|
|
@@ -9957,18 +9952,20 @@ class ao extends Et {
|
|
|
9957
9952
|
}
|
|
9958
9953
|
}
|
|
9959
9954
|
class Qs extends ut {
|
|
9960
|
-
constructor(t, e, s) {
|
|
9955
|
+
constructor(t, e, s, n) {
|
|
9961
9956
|
super();
|
|
9962
|
-
const
|
|
9963
|
-
if (
|
|
9957
|
+
const i = +(t !== void 0) + +(e !== void 0) + +(s !== void 0) + +(n !== void 0);
|
|
9958
|
+
if (i < 2 || i > 4)
|
|
9964
9959
|
throw ot.ILLEGAL_PARAMETERS;
|
|
9965
|
-
|
|
9960
|
+
i <= 3 && !Array.isArray(e) ? this._geo = new we(
|
|
9966
9961
|
t,
|
|
9967
|
-
e
|
|
9962
|
+
e,
|
|
9963
|
+
s
|
|
9968
9964
|
) : this._geo = new we(
|
|
9969
9965
|
t,
|
|
9970
9966
|
e,
|
|
9971
|
-
s
|
|
9967
|
+
s,
|
|
9968
|
+
n
|
|
9972
9969
|
);
|
|
9973
9970
|
}
|
|
9974
9971
|
/**
|
|
@@ -9995,7 +9992,7 @@ class Qs extends ut {
|
|
|
9995
9992
|
}
|
|
9996
9993
|
}
|
|
9997
9994
|
const oo = /* @__PURE__ */ new b();
|
|
9998
|
-
class lo extends
|
|
9995
|
+
class lo extends An {
|
|
9999
9996
|
constructor(t, e, s) {
|
|
10000
9997
|
super(t), this._attachmentPoint = Ae.TopLeft, this._numColumns = s, this._numRows = e, this._columnWidth = new Array(s), this._rowHeight = new Array(e), this._cells = new Array(e * s);
|
|
10001
9998
|
}
|
|
@@ -10171,7 +10168,7 @@ class lo extends wn {
|
|
|
10171
10168
|
S,
|
|
10172
10169
|
_,
|
|
10173
10170
|
E
|
|
10174
|
-
),
|
|
10171
|
+
), z = {
|
|
10175
10172
|
text: p.text,
|
|
10176
10173
|
height: p.textHeight,
|
|
10177
10174
|
width: _,
|
|
@@ -10182,7 +10179,7 @@ class lo extends wn {
|
|
|
10182
10179
|
...this.getTextStyle(p),
|
|
10183
10180
|
color: this.color.color
|
|
10184
10181
|
};
|
|
10185
|
-
o.push(t.mtext(
|
|
10182
|
+
o.push(t.mtext(z, I));
|
|
10186
10183
|
}
|
|
10187
10184
|
}
|
|
10188
10185
|
}
|
|
@@ -10369,7 +10366,7 @@ class uo extends Et {
|
|
|
10369
10366
|
// rotation value.
|
|
10370
10367
|
rotation: this.rotation,
|
|
10371
10368
|
// MText draw text from top to bottom.
|
|
10372
|
-
drawingDirection:
|
|
10369
|
+
drawingDirection: zs.BOTTOM_TO_TOP,
|
|
10373
10370
|
attachmentPoint: Ae.BottomLeft
|
|
10374
10371
|
}, s = { ...this.getTextStyle(), color: this.rgbColor };
|
|
10375
10372
|
return t.mtext(e, s);
|
|
@@ -10601,7 +10598,7 @@ class po extends Et {
|
|
|
10601
10598
|
}
|
|
10602
10599
|
}
|
|
10603
10600
|
var yo = /* @__PURE__ */ ((r) => (r[r.Invalid = 0] = "Invalid", r[r.Rect = 1] = "Rect", r[r.Poly = 2] = "Poly", r))(yo || {}), _o = /* @__PURE__ */ ((r) => (r[r.Show = 1] = "Show", r[r.ShowUnAligned = 2] = "ShowUnAligned", r[r.Clip = 4] = "Clip", r[r.Transparent = 8] = "Transparent", r))(_o || {});
|
|
10604
|
-
class
|
|
10601
|
+
class Tn extends Et {
|
|
10605
10602
|
/**
|
|
10606
10603
|
* Construct one instance of this class.
|
|
10607
10604
|
*/
|
|
@@ -10949,7 +10946,7 @@ class fo extends Et {
|
|
|
10949
10946
|
}
|
|
10950
10947
|
}
|
|
10951
10948
|
toGiViewport() {
|
|
10952
|
-
const t = new
|
|
10949
|
+
const t = new Rs();
|
|
10953
10950
|
return t.id = this.objectId, t.groupId = this.ownerId, t.number = this.number, t.centerPoint = this.centerPoint, t.width = this.width, t.height = this.height, t.viewHeight = this.viewHeight, t.viewCenter = this.viewCenter, t;
|
|
10954
10951
|
}
|
|
10955
10952
|
createViewportRect(t, e) {
|
|
@@ -11021,7 +11018,7 @@ class fo extends Et {
|
|
|
11021
11018
|
), s;
|
|
11022
11019
|
}
|
|
11023
11020
|
}
|
|
11024
|
-
class bo extends
|
|
11021
|
+
class bo extends Tn {
|
|
11025
11022
|
/**
|
|
11026
11023
|
* @inheritdoc
|
|
11027
11024
|
*/
|
|
@@ -11356,7 +11353,7 @@ class te extends Et {
|
|
|
11356
11353
|
*/
|
|
11357
11354
|
getArrowName(t) {
|
|
11358
11355
|
const e = this.database.tables.blockTable.getIdAt(t);
|
|
11359
|
-
return e ? e.name.toUpperCase() :
|
|
11356
|
+
return e ? e.name.toUpperCase() : In.Closed;
|
|
11360
11357
|
}
|
|
11361
11358
|
}
|
|
11362
11359
|
class Io extends te {
|
|
@@ -11844,22 +11841,20 @@ class er {
|
|
|
11844
11841
|
);
|
|
11845
11842
|
}
|
|
11846
11843
|
convertSpline(t) {
|
|
11847
|
-
if (t.numberOfControlPoints > 0 && t.numberOfKnots > 0)
|
|
11848
|
-
|
|
11844
|
+
if (t.numberOfControlPoints > 0 && t.numberOfKnots > 0)
|
|
11845
|
+
return new Qs(
|
|
11849
11846
|
t.controlPoints,
|
|
11850
11847
|
t.knots,
|
|
11851
|
-
t.weights
|
|
11848
|
+
t.weights,
|
|
11849
|
+
!!(t.flag & 1)
|
|
11852
11850
|
);
|
|
11853
|
-
|
|
11854
|
-
} else if (t.numberOfFitPoints > 0) {
|
|
11851
|
+
if (t.numberOfFitPoints > 0) {
|
|
11855
11852
|
const e = this.numberArrayToPointArray(
|
|
11856
11853
|
t.fitPoints,
|
|
11857
11854
|
t.numberOfFitPoints
|
|
11858
11855
|
);
|
|
11859
|
-
if (e != null)
|
|
11860
|
-
|
|
11861
|
-
return s.closed = !!(t.flag & 1), s;
|
|
11862
|
-
}
|
|
11856
|
+
if (e != null)
|
|
11857
|
+
return new Qs(e, "Uniform", !!(t.flag & 1));
|
|
11863
11858
|
}
|
|
11864
11859
|
return null;
|
|
11865
11860
|
}
|
|
@@ -12048,7 +12043,7 @@ class er {
|
|
|
12048
12043
|
) * t.imageSize.y, e.rotation = Math.atan2(t.uPixel.y, t.uPixel.x);
|
|
12049
12044
|
}
|
|
12050
12045
|
convertImage(t) {
|
|
12051
|
-
const e = new
|
|
12046
|
+
const e = new Tn();
|
|
12052
12047
|
return this.processImage(t, e), e;
|
|
12053
12048
|
}
|
|
12054
12049
|
convertWipeout(t) {
|
|
@@ -12068,7 +12063,7 @@ class er {
|
|
|
12068
12063
|
return e.basePoint.copy(t.firstPoint), e.unitDir.copy(t.unitDirection), e;
|
|
12069
12064
|
}
|
|
12070
12065
|
convertBlockReference(t) {
|
|
12071
|
-
const e = new
|
|
12066
|
+
const e = new An(t.name);
|
|
12072
12067
|
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(t.extrusionDirection), e;
|
|
12073
12068
|
}
|
|
12074
12069
|
processDimensionCommonAttrs(t, e) {
|
|
@@ -12091,7 +12086,7 @@ class er {
|
|
|
12091
12086
|
return i;
|
|
12092
12087
|
}
|
|
12093
12088
|
}
|
|
12094
|
-
class
|
|
12089
|
+
class Mn extends Ut {
|
|
12095
12090
|
constructor() {
|
|
12096
12091
|
super(), this._tabOrder = -1, this._tabSelected = !1, this._blockTableRecordId = "", this._layoutName = "", this._limits = new Q(), this._extents = new N();
|
|
12097
12092
|
}
|
|
@@ -12155,7 +12150,7 @@ class Tn extends Ut {
|
|
|
12155
12150
|
this._extents.copy(t);
|
|
12156
12151
|
}
|
|
12157
12152
|
}
|
|
12158
|
-
class
|
|
12153
|
+
class vn extends Ut {
|
|
12159
12154
|
constructor(t) {
|
|
12160
12155
|
super(), this.database = t, this._recordsByName = /* @__PURE__ */ new Map(), this._recordsById = /* @__PURE__ */ new Map();
|
|
12161
12156
|
}
|
|
@@ -12242,7 +12237,7 @@ class Mn extends Ut {
|
|
|
12242
12237
|
return new Ls(this._recordsByName);
|
|
12243
12238
|
}
|
|
12244
12239
|
}
|
|
12245
|
-
class Mo extends
|
|
12240
|
+
class Mo extends vn {
|
|
12246
12241
|
/**
|
|
12247
12242
|
* Search the dictionary for the record with the specified block table record id. If found
|
|
12248
12243
|
* one layout associated with the block table record with the specified id, it returns the record.
|
|
@@ -12284,7 +12279,7 @@ class vo extends Ut {
|
|
|
12284
12279
|
}
|
|
12285
12280
|
class Lo {
|
|
12286
12281
|
convertLayout(t) {
|
|
12287
|
-
const e = new
|
|
12282
|
+
const e = new Mn();
|
|
12288
12283
|
return e.layoutName = t.layoutName, e.tabOrder = t.tabOrder, e.blockTableRecordId = t.ownerObjectId, e.limits.min.copy(t.minLimit), e.limits.max.copy(t.maxLimit), e.extents.min.copy(t.minExtent), e.extents.max.copy(t.maxExtent), this.processCommonAttrs(t, e), e;
|
|
12289
12284
|
}
|
|
12290
12285
|
convertImageDef(t) {
|
|
@@ -12295,9 +12290,9 @@ class Lo {
|
|
|
12295
12290
|
e.objectId = t.handle, e.ownerId = t.ownerObjectId;
|
|
12296
12291
|
}
|
|
12297
12292
|
}
|
|
12298
|
-
class ko extends
|
|
12293
|
+
class ko extends ya {
|
|
12299
12294
|
parse(t) {
|
|
12300
|
-
return new
|
|
12295
|
+
return new ma().parseSync(t);
|
|
12301
12296
|
}
|
|
12302
12297
|
/**
|
|
12303
12298
|
* Get all of fonts used by entities in model space and paper space
|
|
@@ -12348,7 +12343,7 @@ class ko extends pa {
|
|
|
12348
12343
|
* smaller pieces and executed in small intervals to allow the UI to remain responsive.
|
|
12349
12344
|
*/
|
|
12350
12345
|
async processEntities(t, e, s, n, i) {
|
|
12351
|
-
const a = new er(), o = t.entities, c = o.length, h = new
|
|
12346
|
+
const a = new er(), o = t.entities, c = o.length, h = new Wn(
|
|
12352
12347
|
c,
|
|
12353
12348
|
100 - n.value,
|
|
12354
12349
|
s
|
|
@@ -12435,7 +12430,7 @@ class ko extends pa {
|
|
|
12435
12430
|
s && s.length > 0 && s.forEach((a) => {
|
|
12436
12431
|
const o = new Jt();
|
|
12437
12432
|
o.colorIndex = a.colorIndex;
|
|
12438
|
-
const c = new
|
|
12433
|
+
const c = new kn({
|
|
12439
12434
|
name: a.name,
|
|
12440
12435
|
standardFlags: a.standardFlag,
|
|
12441
12436
|
linetype: a.lineType,
|
|
@@ -12544,7 +12539,7 @@ class ko extends pa {
|
|
|
12544
12539
|
e.name = t.name, e.objectId = t.handle, e.ownerId = t.ownerObjectId;
|
|
12545
12540
|
}
|
|
12546
12541
|
}
|
|
12547
|
-
var
|
|
12542
|
+
var Ln = /* @__PURE__ */ ((r) => (r.DXF = "dxf", r.DWG = "dwg", r))(Ln || {});
|
|
12548
12543
|
class Pt {
|
|
12549
12544
|
constructor() {
|
|
12550
12545
|
this.events = {
|
|
@@ -12775,7 +12770,7 @@ class Oo extends se {
|
|
|
12775
12770
|
super(t);
|
|
12776
12771
|
}
|
|
12777
12772
|
}
|
|
12778
|
-
class
|
|
12773
|
+
class kn extends ee {
|
|
12779
12774
|
/**
|
|
12780
12775
|
* Default constructor.
|
|
12781
12776
|
*/
|
|
@@ -12932,7 +12927,7 @@ class No extends se {
|
|
|
12932
12927
|
super(t);
|
|
12933
12928
|
const e = new Jt();
|
|
12934
12929
|
e.color = 16777215;
|
|
12935
|
-
const s = new
|
|
12930
|
+
const s = new kn({
|
|
12936
12931
|
name: "0",
|
|
12937
12932
|
standardFlags: 0,
|
|
12938
12933
|
linetype: bs,
|
|
@@ -12958,7 +12953,7 @@ class Do extends se {
|
|
|
12958
12953
|
super(t);
|
|
12959
12954
|
}
|
|
12960
12955
|
}
|
|
12961
|
-
class
|
|
12956
|
+
class zo extends se {
|
|
12962
12957
|
constructor(t) {
|
|
12963
12958
|
super(t);
|
|
12964
12959
|
}
|
|
@@ -12981,7 +12976,7 @@ class Ro extends se {
|
|
|
12981
12976
|
return Array.from(t);
|
|
12982
12977
|
}
|
|
12983
12978
|
}
|
|
12984
|
-
class
|
|
12979
|
+
class Ro extends se {
|
|
12985
12980
|
constructor(t) {
|
|
12986
12981
|
super(t);
|
|
12987
12982
|
}
|
|
@@ -13006,12 +13001,12 @@ class hl extends Ut {
|
|
|
13006
13001
|
blockTable: new Co(this),
|
|
13007
13002
|
dimStyleTable: new Oo(this),
|
|
13008
13003
|
linetypeTable: new Do(this),
|
|
13009
|
-
textStyleTable: new
|
|
13004
|
+
textStyleTable: new zo(this),
|
|
13010
13005
|
layerTable: new No(this),
|
|
13011
|
-
viewportTable: new
|
|
13006
|
+
viewportTable: new Ro(this)
|
|
13012
13007
|
}, this._dictionaries = {
|
|
13013
13008
|
layouts: new Mo(this),
|
|
13014
|
-
imageDefs: new
|
|
13009
|
+
imageDefs: new vn(this)
|
|
13015
13010
|
};
|
|
13016
13011
|
}
|
|
13017
13012
|
/**
|
|
@@ -13135,7 +13130,7 @@ class hl extends Ut {
|
|
|
13135
13130
|
* @param options Input options to read drawing data
|
|
13136
13131
|
* @param fileType Input file type of the drawing
|
|
13137
13132
|
*/
|
|
13138
|
-
async read(t, e, s =
|
|
13133
|
+
async read(t, e, s = Ln.DXF) {
|
|
13139
13134
|
const n = Pt.instance.get(s);
|
|
13140
13135
|
if (n == null)
|
|
13141
13136
|
throw new Error(
|
|
@@ -14261,18 +14256,18 @@ const Wo = {
|
|
|
14261
14256
|
viewTwistAngle: 0,
|
|
14262
14257
|
frozenLayers: [],
|
|
14263
14258
|
styleSheet: "",
|
|
14264
|
-
renderMode:
|
|
14259
|
+
renderMode: Pn.OPTIMIZED_2D,
|
|
14265
14260
|
viewMode: 0,
|
|
14266
14261
|
ucsIconSetting: 0,
|
|
14267
14262
|
ucsOrigin: new w(0, 0, 0),
|
|
14268
14263
|
ucsXAxis: new w(1, 0, 0),
|
|
14269
14264
|
ucsYAxis: new w(0, 1, 0),
|
|
14270
|
-
orthographicType:
|
|
14265
|
+
orthographicType: En.TOP,
|
|
14271
14266
|
shadePlotSetting: 0,
|
|
14272
14267
|
shadePlotObjectId: void 0,
|
|
14273
14268
|
visualStyleObjectId: void 0,
|
|
14274
14269
|
isDefaultLightingOn: !1,
|
|
14275
|
-
defaultLightingType:
|
|
14270
|
+
defaultLightingType: Sn.ONE_DISTANT_LIGHT,
|
|
14276
14271
|
brightness: 0,
|
|
14277
14272
|
contrast: 0,
|
|
14278
14273
|
ambientColor: void 0
|
|
@@ -14527,7 +14522,7 @@ class qo {
|
|
|
14527
14522
|
* @returns Return newly created layout and its associated block table record.
|
|
14528
14523
|
*/
|
|
14529
14524
|
createLayout(t, e) {
|
|
14530
|
-
const s = this.getWorkingDatabase(e), n = new
|
|
14525
|
+
const s = this.getWorkingDatabase(e), n = new Mn();
|
|
14531
14526
|
n.layoutName = t, n.tabOrder = s.dictionaries.layouts.maxTabOrder;
|
|
14532
14527
|
const i = new vt();
|
|
14533
14528
|
return i.name = `*Paper_Space${n.tabOrder}`, s.tables.blockTable.add(i), s.dictionaries.layouts.setAt(t, n), { layout: n, btr: i };
|
|
@@ -14542,7 +14537,7 @@ class qo {
|
|
|
14542
14537
|
return e.dictionaries.layouts.getBtrIdAt(e.currentSpaceId);
|
|
14543
14538
|
}
|
|
14544
14539
|
getWorkingDatabase(t) {
|
|
14545
|
-
return t ||
|
|
14540
|
+
return t || Cn().workingDatabase;
|
|
14546
14541
|
}
|
|
14547
14542
|
setCurrentLayoutInternal(t, e) {
|
|
14548
14543
|
return t ? (this.events.layoutSwitched.dispatch({
|
|
@@ -14551,7 +14546,7 @@ class qo {
|
|
|
14551
14546
|
}), e.currentSpaceId = t.blockTableRecordId, !0) : !1;
|
|
14552
14547
|
}
|
|
14553
14548
|
}
|
|
14554
|
-
function
|
|
14549
|
+
function Cn() {
|
|
14555
14550
|
return Ss.instance;
|
|
14556
14551
|
}
|
|
14557
14552
|
const Je = class Je {
|
|
@@ -14590,28 +14585,28 @@ export {
|
|
|
14590
14585
|
Xo as AcCmEventDispatcher,
|
|
14591
14586
|
at as AcCmEventManager,
|
|
14592
14587
|
tl as AcCmLoader,
|
|
14593
|
-
|
|
14594
|
-
|
|
14588
|
+
Hn as AcCmLoadingManager,
|
|
14589
|
+
Vn as AcCmObject,
|
|
14595
14590
|
or as AcCmPerformanceCollector,
|
|
14596
|
-
|
|
14597
|
-
|
|
14591
|
+
jn as AcCmTask,
|
|
14592
|
+
Gn as AcCmTaskScheduler,
|
|
14598
14593
|
Io as AcDb3PointAngularDimension,
|
|
14599
14594
|
Po as AcDbAlignedDimension,
|
|
14600
14595
|
en as AcDbAngleUnits,
|
|
14601
14596
|
Qa as AcDbArc,
|
|
14602
14597
|
ll as AcDbArcDimension,
|
|
14603
|
-
|
|
14604
|
-
|
|
14598
|
+
Wn as AcDbBatchProcessing,
|
|
14599
|
+
An as AcDbBlockReference,
|
|
14605
14600
|
Co as AcDbBlockTable,
|
|
14606
14601
|
vt as AcDbBlockTableRecord,
|
|
14607
14602
|
Ja as AcDbCircle,
|
|
14608
14603
|
ut as AcDbCurve,
|
|
14609
14604
|
hl as AcDbDatabase,
|
|
14610
|
-
|
|
14605
|
+
ya as AcDbDatabaseConverter,
|
|
14611
14606
|
Pt as AcDbDatabaseConverterManager,
|
|
14612
14607
|
Eo as AcDbDiametricDimension,
|
|
14613
|
-
|
|
14614
|
-
|
|
14608
|
+
vn as AcDbDictionary,
|
|
14609
|
+
pa as AcDbDimArrowType,
|
|
14615
14610
|
Oo as AcDbDimStyleTable,
|
|
14616
14611
|
Ze as AcDbDimStyleTableRecord,
|
|
14617
14612
|
Fo as AcDbDimTextHorizontal,
|
|
@@ -14623,14 +14618,14 @@ export {
|
|
|
14623
14618
|
ko as AcDbDxfConverter,
|
|
14624
14619
|
Za as AcDbEllipse,
|
|
14625
14620
|
Et as AcDbEntity,
|
|
14626
|
-
|
|
14621
|
+
Ln as AcDbFileType,
|
|
14627
14622
|
so as AcDbHatch,
|
|
14628
14623
|
to as AcDbHatchPatternType,
|
|
14629
14624
|
eo as AcDbHatchStyle,
|
|
14630
14625
|
Ss as AcDbHostApplicationServices,
|
|
14631
14626
|
No as AcDbLayerTable,
|
|
14632
|
-
|
|
14633
|
-
|
|
14627
|
+
kn as AcDbLayerTableRecord,
|
|
14628
|
+
Mn as AcDbLayout,
|
|
14634
14629
|
Mo as AcDbLayoutDictionary,
|
|
14635
14630
|
qo as AcDbLayoutManager,
|
|
14636
14631
|
no as AcDbLeader,
|
|
@@ -14647,7 +14642,7 @@ export {
|
|
|
14647
14642
|
po as AcDbPoint,
|
|
14648
14643
|
go as AcDbPolyline,
|
|
14649
14644
|
To as AcDbRadialDimension,
|
|
14650
|
-
|
|
14645
|
+
Tn as AcDbRasterImage,
|
|
14651
14646
|
yo as AcDbRasterImageClipBoundaryType,
|
|
14652
14647
|
vo as AcDbRasterImageDef,
|
|
14653
14648
|
_o as AcDbRasterImageImageDisplayOpt,
|
|
@@ -14659,13 +14654,13 @@ export {
|
|
|
14659
14654
|
lo as AcDbTable,
|
|
14660
14655
|
uo as AcDbText,
|
|
14661
14656
|
ho as AcDbTextHorizontalMode,
|
|
14662
|
-
|
|
14657
|
+
zo as AcDbTextStyleTable,
|
|
14663
14658
|
Uo as AcDbTextStyleTableRecord,
|
|
14664
14659
|
co as AcDbTextVerticalMode,
|
|
14665
14660
|
mo as AcDbTrace,
|
|
14666
14661
|
sn as AcDbUnitsValue,
|
|
14667
14662
|
fo as AcDbViewport,
|
|
14668
|
-
|
|
14663
|
+
Ro as AcDbViewportTable,
|
|
14669
14664
|
Yo as AcDbViewportTableRecord,
|
|
14670
14665
|
bo as AcDbWipeout,
|
|
14671
14666
|
wo as AcDbXline,
|
|
@@ -14678,7 +14673,7 @@ export {
|
|
|
14678
14673
|
Os as AcGeEllipseArc2d,
|
|
14679
14674
|
Ns as AcGeEllipseArc3d,
|
|
14680
14675
|
qa as AcGeEuler,
|
|
14681
|
-
|
|
14676
|
+
Ra as AcGeGeometryUtil,
|
|
14682
14677
|
Ds as AcGeLine2d,
|
|
14683
14678
|
Ht as AcGeLine3d,
|
|
14684
14679
|
$a as AcGeLoop2d,
|
|
@@ -14690,72 +14685,72 @@ export {
|
|
|
14690
14685
|
w as AcGePoint3d,
|
|
14691
14686
|
ss as AcGePolyline2d,
|
|
14692
14687
|
Gt as AcGeQuaternion,
|
|
14693
|
-
|
|
14688
|
+
bn as AcGeShape2d,
|
|
14694
14689
|
we as AcGeSpline3d,
|
|
14695
|
-
|
|
14690
|
+
mn as AcGeTol,
|
|
14696
14691
|
B as AcGeVector2d,
|
|
14697
14692
|
b as AcGeVector3d,
|
|
14698
|
-
|
|
14699
|
-
|
|
14693
|
+
In as AcGiArrowType,
|
|
14694
|
+
Sn as AcGiDefaultLightingType,
|
|
14700
14695
|
Ae as AcGiMTextAttachmentPoint,
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
|
|
14704
|
-
|
|
14696
|
+
zs as AcGiMTextFlowDirection,
|
|
14697
|
+
En as AcGiOrthographicType,
|
|
14698
|
+
Pn as AcGiRenderMode,
|
|
14699
|
+
Rs as AcGiViewport,
|
|
14705
14700
|
Qo as AcTrStringUtil,
|
|
14706
|
-
|
|
14701
|
+
ga as ByBlock,
|
|
14707
14702
|
gs as ByLayer,
|
|
14708
14703
|
Ko as DEBUG_MODE,
|
|
14709
14704
|
bs as DEFAULT_LINE_TYPE,
|
|
14710
|
-
|
|
14705
|
+
gn as DEFAULT_TOL,
|
|
14711
14706
|
nn as DEG2RAD,
|
|
14712
|
-
|
|
14707
|
+
Un as DefaultLoadingManager,
|
|
14713
14708
|
Yt as FLOAT_TOL,
|
|
14714
14709
|
ol as ORIGIN_POINT_2D,
|
|
14715
14710
|
un as ORIGIN_POINT_3D,
|
|
14716
14711
|
an as RAD2DEG,
|
|
14717
14712
|
H as TAU,
|
|
14718
|
-
|
|
14713
|
+
Cn as acdbHostApplicationServices,
|
|
14719
14714
|
Is as basisFunction,
|
|
14720
14715
|
ja as calculateCurveLength,
|
|
14721
|
-
|
|
14716
|
+
ka as ceilPowerOfTwo,
|
|
14722
14717
|
Mt as clamp,
|
|
14723
14718
|
Ce as clone,
|
|
14724
|
-
|
|
14719
|
+
ba as damp,
|
|
14725
14720
|
Ie as defaults,
|
|
14726
|
-
|
|
14721
|
+
Ma as degToRad,
|
|
14727
14722
|
on as euclideanModulo,
|
|
14728
14723
|
$e as evaluateNurbsPoint,
|
|
14729
|
-
|
|
14724
|
+
Ca as floorPowerOfTwo,
|
|
14730
14725
|
Ba as generateChordKnots,
|
|
14731
14726
|
Va as generateSqrtChordKnots,
|
|
14732
|
-
|
|
14727
|
+
_a as generateUUID,
|
|
14733
14728
|
Fa as generateUniformKnots,
|
|
14734
|
-
|
|
14729
|
+
Fn as has,
|
|
14735
14730
|
hn as intPartLength,
|
|
14736
14731
|
Ga as interpolateControlPoints,
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14732
|
+
fa as inverseLerp,
|
|
14733
|
+
Oa as isBetween,
|
|
14734
|
+
Na as isBetweenAngle,
|
|
14735
|
+
Bn as isEmpty,
|
|
14741
14736
|
fe as isEqual,
|
|
14742
14737
|
al as isImperialUnits,
|
|
14743
14738
|
il as isMetricUnits,
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14739
|
+
pn as isPointInPolygon,
|
|
14740
|
+
za as isPolygonIntersect,
|
|
14741
|
+
La as isPowerOfTwo,
|
|
14747
14742
|
ln as lerp,
|
|
14748
14743
|
Ve as log,
|
|
14749
|
-
|
|
14744
|
+
xa as mapLinear,
|
|
14750
14745
|
Xe as normalizeAngle,
|
|
14751
|
-
|
|
14752
|
-
|
|
14753
|
-
|
|
14754
|
-
|
|
14755
|
-
|
|
14756
|
-
|
|
14757
|
-
|
|
14746
|
+
wa as pingpong,
|
|
14747
|
+
va as radToDeg,
|
|
14748
|
+
Ea as randFloat,
|
|
14749
|
+
Sa as randFloatSpread,
|
|
14750
|
+
Pa as randInt,
|
|
14751
|
+
Da as relativeEps,
|
|
14752
|
+
Ta as seededRandom,
|
|
14758
14753
|
Zo as setLogLevel,
|
|
14759
|
-
|
|
14760
|
-
|
|
14754
|
+
Ia as smootherstep,
|
|
14755
|
+
Aa as smoothstep
|
|
14761
14756
|
};
|