@mlightcad/data-model 1.1.5 → 1.1.7
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 +289 -261
- package/dist/data-model.umd.cjs +2 -2
- package/lib/converter/AcDbEntitiyConverter.d.ts.map +1 -1
- package/lib/converter/AcDbEntitiyConverter.js +2 -2
- package/lib/converter/AcDbEntitiyConverter.js.map +1 -1
- package/lib/database/AcDbBlockTable.d.ts +13 -0
- package/lib/database/AcDbBlockTable.d.ts.map +1 -1
- package/lib/database/AcDbBlockTable.js +26 -0
- package/lib/database/AcDbBlockTable.js.map +1 -1
- package/lib/database/AcDbBlockTableRecord.d.ts +2 -2
- package/lib/database/AcDbBlockTableRecord.js +4 -4
- package/lib/entity/AcDbSpline.d.ts +4 -2
- package/lib/entity/AcDbSpline.d.ts.map +1 -1
- package/lib/entity/AcDbSpline.js +8 -7
- package/lib/entity/AcDbSpline.js.map +1 -1
- package/package.json +3 -3
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)) {
|
|
@@ -788,7 +788,7 @@ let at = class {
|
|
|
788
788
|
}
|
|
789
789
|
};
|
|
790
790
|
var Dn = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
791
|
-
function
|
|
791
|
+
function Rn(r) {
|
|
792
792
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
793
793
|
}
|
|
794
794
|
var ar = { exports: {} };
|
|
@@ -841,16 +841,16 @@ var ar = { exports: {} };
|
|
|
841
841
|
function g(y, x) {
|
|
842
842
|
var _ = this, S, E, T, A = "loglevel";
|
|
843
843
|
typeof y == "string" ? A += ":" + y : typeof y == "symbol" && (A = void 0);
|
|
844
|
-
function
|
|
845
|
-
var
|
|
844
|
+
function R(C) {
|
|
845
|
+
var z = (n[C] || "silent").toUpperCase();
|
|
846
846
|
if (!(typeof window === e || !A)) {
|
|
847
847
|
try {
|
|
848
|
-
window.localStorage[A] =
|
|
848
|
+
window.localStorage[A] = z;
|
|
849
849
|
return;
|
|
850
850
|
} catch {
|
|
851
851
|
}
|
|
852
852
|
try {
|
|
853
|
-
window.document.cookie = encodeURIComponent(A) + "=" +
|
|
853
|
+
window.document.cookie = encodeURIComponent(A) + "=" + z + ";";
|
|
854
854
|
} catch {
|
|
855
855
|
}
|
|
856
856
|
}
|
|
@@ -864,9 +864,9 @@ var ar = { exports: {} };
|
|
|
864
864
|
}
|
|
865
865
|
if (typeof C === e)
|
|
866
866
|
try {
|
|
867
|
-
var
|
|
867
|
+
var z = window.document.cookie, kt = encodeURIComponent(A), Ct = z.indexOf(kt + "=");
|
|
868
868
|
Ct !== -1 && (C = /^([^;]+)/.exec(
|
|
869
|
-
|
|
869
|
+
z.slice(Ct + kt.length + 1)
|
|
870
870
|
)[1]);
|
|
871
871
|
} catch {
|
|
872
872
|
}
|
|
@@ -886,9 +886,9 @@ var ar = { exports: {} };
|
|
|
886
886
|
}
|
|
887
887
|
}
|
|
888
888
|
function it(C) {
|
|
889
|
-
var
|
|
890
|
-
if (typeof
|
|
891
|
-
return
|
|
889
|
+
var z = C;
|
|
890
|
+
if (typeof z == "string" && _.levels[z.toUpperCase()] !== void 0 && (z = _.levels[z.toUpperCase()]), typeof z == "number" && z >= 0 && z <= _.levels.SILENT)
|
|
891
|
+
return z;
|
|
892
892
|
throw new TypeError("log.setLevel() called with invalid level: " + C);
|
|
893
893
|
}
|
|
894
894
|
_.name = y, _.levels = {
|
|
@@ -900,8 +900,8 @@ var ar = { exports: {} };
|
|
|
900
900
|
SILENT: 5
|
|
901
901
|
}, _.methodFactory = x || m, _.getLevel = function() {
|
|
902
902
|
return T ?? E ?? S;
|
|
903
|
-
}, _.setLevel = function(C,
|
|
904
|
-
return T = it(C),
|
|
903
|
+
}, _.setLevel = function(C, z) {
|
|
904
|
+
return T = it(C), z !== !1 && R(T), d.call(_);
|
|
905
905
|
}, _.setDefaultLevel = function(C) {
|
|
906
906
|
E = it(C), P() || _.setLevel(C, !1);
|
|
907
907
|
}, _.resetLevel = function() {
|
|
@@ -917,8 +917,8 @@ var ar = { exports: {} };
|
|
|
917
917
|
}, S = it(
|
|
918
918
|
a ? a.getLevel() : "WARN"
|
|
919
919
|
);
|
|
920
|
-
var
|
|
921
|
-
|
|
920
|
+
var pt = P();
|
|
921
|
+
pt != null && (T = it(pt)), d.call(_);
|
|
922
922
|
}
|
|
923
923
|
a = new g(), a.getLogger = function(y) {
|
|
924
924
|
if (typeof y != "symbol" && typeof y != "string" || y === "")
|
|
@@ -938,9 +938,9 @@ var ar = { exports: {} };
|
|
|
938
938
|
});
|
|
939
939
|
})(ar);
|
|
940
940
|
var or = ar.exports;
|
|
941
|
-
const
|
|
941
|
+
const zn = /* @__PURE__ */ Rn(or), Fn = /* @__PURE__ */ On({
|
|
942
942
|
__proto__: null,
|
|
943
|
-
default:
|
|
943
|
+
default: zn
|
|
944
944
|
}, [or]), Zo = !0, je = Fn;
|
|
945
945
|
je.setLevel("debug");
|
|
946
946
|
const Qo = (r) => {
|
|
@@ -950,7 +950,7 @@ const Qo = (r) => {
|
|
|
950
950
|
je.setLevel("error"), je.error(t);
|
|
951
951
|
}
|
|
952
952
|
};
|
|
953
|
-
function
|
|
953
|
+
function Ne(r) {
|
|
954
954
|
return r === null || typeof r != "object" ? r : Array.isArray(r) ? [...r] : { ...r };
|
|
955
955
|
}
|
|
956
956
|
function Pe(r, ...t) {
|
|
@@ -1048,7 +1048,7 @@ let jn = class hr {
|
|
|
1048
1048
|
let n;
|
|
1049
1049
|
typeof t == "object" ? (n = t, s = e) : (n = {}, n[t] = e), s || (s = {});
|
|
1050
1050
|
const i = s.unset, a = s.silent, o = [], c = this._changing;
|
|
1051
|
-
this._changing = !0, c || (this._previousAttributes =
|
|
1051
|
+
this._changing = !0, c || (this._previousAttributes = Ne(this.attributes), this.changed = {});
|
|
1052
1052
|
const l = this.attributes, d = this.changed, u = this._previousAttributes;
|
|
1053
1053
|
for (const m in n)
|
|
1054
1054
|
e = n[m], be(l[m], e) || o.push(m), be(u[m], e) ? delete d[m] : d[m] = e, i ? delete l[m] : l[m] = e;
|
|
@@ -1089,7 +1089,7 @@ let jn = class hr {
|
|
|
1089
1089
|
* the model, determining if there *would be* a change.
|
|
1090
1090
|
*/
|
|
1091
1091
|
changedAttributes(t) {
|
|
1092
|
-
if (!t) return this.hasChanged() ?
|
|
1092
|
+
if (!t) return this.hasChanged() ? Ne(this.changed) : {};
|
|
1093
1093
|
const e = this._changing ? this._previousAttributes : this.attributes, s = {};
|
|
1094
1094
|
for (const n in t) {
|
|
1095
1095
|
const i = t[n];
|
|
@@ -1107,13 +1107,13 @@ let jn = class hr {
|
|
|
1107
1107
|
* Get all of the attributes of the model at the time of the previous `"change"` event.
|
|
1108
1108
|
*/
|
|
1109
1109
|
previousAttributes() {
|
|
1110
|
-
return
|
|
1110
|
+
return Ne(this._previousAttributes);
|
|
1111
1111
|
}
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Create a new model with identical attributes to this one.
|
|
1114
1114
|
*/
|
|
1115
1115
|
clone() {
|
|
1116
|
-
const t =
|
|
1116
|
+
const t = Ne(this.attributes);
|
|
1117
1117
|
return new hr(t);
|
|
1118
1118
|
}
|
|
1119
1119
|
}, lr = class fe {
|
|
@@ -1600,34 +1600,34 @@ class Yn {
|
|
|
1600
1600
|
await s();
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
var W, ie, V, G, ae, ht, $,
|
|
1603
|
+
var W, ie, V, G, ae, ht, $, yt, lt, Nt, oe, he, Ot, Dt, le, ce, de, tt, _t, D, Rt, ue, I, K, me, Z, xt, ge, ft, ct, pe, zt, et, bt, is, as, wt, ye, _e, At, xe, os, hs, Ft, Y, Pt, q, st, ls, cs, ds, us, ms, gs;
|
|
1604
1604
|
(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";
|
|
1605
1605
|
(ie = {})[ie.BYBLOCK = 0] = "BYBLOCK", ie[ie.BYLAYER = 256] = "BYLAYER";
|
|
1606
1606
|
(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";
|
|
1607
1607
|
(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";
|
|
1608
1608
|
(ae = {})[ae.AtLeast = 1] = "AtLeast", ae[ae.Exact = 2] = "Exact";
|
|
1609
|
-
var Vs = ((ht = {})[ht.Center = 0] = "Center", ht[ht.Above = 1] = "Above", ht[ht.Outside = 2] = "Outside", ht[ht.JIS = 3] = "JIS", ht[ht.Below = 4] = "Below", ht), Yt = (($ = {})[$.Feet = 0] = "Feet", $[$.None = 1] = "None", $[$.Inch = 2] = "Inch", $[$.FeetAndInch = 3] = "FeetAndInch", $[$.Leading = 4] = "Leading", $[$.Trailing = 8] = "Trailing", $[$.LeadingAndTrailing = 12] = "LeadingAndTrailing", $), qn = ((
|
|
1609
|
+
var Vs = ((ht = {})[ht.Center = 0] = "Center", ht[ht.Above = 1] = "Above", ht[ht.Outside = 2] = "Outside", ht[ht.JIS = 3] = "JIS", ht[ht.Below = 4] = "Below", ht), Yt = (($ = {})[$.Feet = 0] = "Feet", $[$.None = 1] = "None", $[$.Inch = 2] = "Inch", $[$.FeetAndInch = 3] = "FeetAndInch", $[$.Leading = 4] = "Leading", $[$.Trailing = 8] = "Trailing", $[$.LeadingAndTrailing = 12] = "LeadingAndTrailing", $), qn = ((yt = {})[yt.None = 0] = "None", yt[yt.Leading = 1] = "Leading", yt[yt.Trailing = 2] = "Trailing", yt[yt.LeadingAndTrailing = 3] = "LeadingAndTrailing", yt), Xn = ((lt = {})[lt.Center = 0] = "Center", lt[lt.Left = 1] = "Left", lt[lt.Right = 2] = "Right", lt[lt.OverFirst = 3] = "OverFirst", lt[lt.OverSecond = 4] = "OverSecond", lt), $n = ((Nt = {})[Nt.Bottom = 0] = "Bottom", Nt[Nt.Center = 1] = "Center", Nt[Nt.Top = 2] = "Top", Nt);
|
|
1610
1610
|
(oe = {})[oe.PatternFill = 0] = "PatternFill", oe[oe.SolidFill = 1] = "SolidFill";
|
|
1611
1611
|
(he = {})[he.NonAssociative = 0] = "NonAssociative", he[he.Associative = 1] = "Associative";
|
|
1612
|
-
(
|
|
1612
|
+
(Ot = {})[Ot.Normal = 0] = "Normal", Ot[Ot.Outer = 1] = "Outer", Ot[Ot.Ignore = 2] = "Ignore";
|
|
1613
1613
|
(Dt = {})[Dt.UserDefined = 0] = "UserDefined", Dt[Dt.Predefined = 1] = "Predefined", Dt[Dt.Custom = 2] = "Custom";
|
|
1614
1614
|
(le = {})[le.NotAnnotated = 0] = "NotAnnotated", le[le.Annotated = 1] = "Annotated";
|
|
1615
1615
|
(ce = {})[ce.Solid = 0] = "Solid", ce[ce.Gradient = 1] = "Gradient";
|
|
1616
1616
|
(de = {})[de.TwoColor = 0] = "TwoColor", de[de.OneColor = 1] = "OneColor";
|
|
1617
|
-
var Kn = ((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),
|
|
1617
|
+
var Kn = ((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 = ((_t = {})[_t.Line = 1] = "Line", _t[_t.Circular = 2] = "Circular", _t[_t.Elliptic = 3] = "Elliptic", _t[_t.Spline = 4] = "Spline", _t), Zn = ((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);
|
|
1618
1618
|
Zn.Off;
|
|
1619
|
-
(
|
|
1619
|
+
(Rt = {})[Rt.Standard = -3] = "Standard", Rt[Rt.ByLayer = -2] = "ByLayer", Rt[Rt.ByBlock = -1] = "ByBlock";
|
|
1620
1620
|
(ue = {})[ue.English = 0] = "English", ue[ue.Metric = 1] = "Metric";
|
|
1621
1621
|
(I = {})[I.PERSPECTIVE_MODE = 1] = "PERSPECTIVE_MODE", I[I.FRONT_CLIPPING = 2] = "FRONT_CLIPPING", I[I.BACK_CLIPPING = 4] = "BACK_CLIPPING", I[I.UCS_FOLLOW = 8] = "UCS_FOLLOW", I[I.FRONT_CLIP_NOT_AT_EYE = 16] = "FRONT_CLIP_NOT_AT_EYE", I[I.UCS_ICON_VISIBILITY = 32] = "UCS_ICON_VISIBILITY", I[I.UCS_ICON_AT_ORIGIN = 64] = "UCS_ICON_AT_ORIGIN", I[I.FAST_ZOOM = 128] = "FAST_ZOOM", I[I.SNAP_MODE = 256] = "SNAP_MODE", I[I.GRID_MODE = 512] = "GRID_MODE", I[I.ISOMETRIC_SNAP_STYLE = 1024] = "ISOMETRIC_SNAP_STYLE", I[I.HIDE_PLOT_MODE = 2048] = "HIDE_PLOT_MODE", I[I.K_ISO_PAIR_TOP = 4096] = "K_ISO_PAIR_TOP", I[I.K_ISO_PAIR_RIGHT = 8192] = "K_ISO_PAIR_RIGHT", I[I.VIEWPORT_ZOOM_LOCKING = 16384] = "VIEWPORT_ZOOM_LOCKING", I[I.UNUSED = 32768] = "UNUSED", I[I.NON_RECTANGULAR_CLIPPING = 65536] = "NON_RECTANGULAR_CLIPPING", I[I.VIEWPORT_OFF = 131072] = "VIEWPORT_OFF", I[I.GRID_BEYOND_DRAWING_LIMITS = 262144] = "GRID_BEYOND_DRAWING_LIMITS", I[I.ADAPTIVE_GRID_DISPLAY = 524288] = "ADAPTIVE_GRID_DISPLAY", I[I.SUBDIVISION_BELOW_SPACING = 1048576] = "SUBDIVISION_BELOW_SPACING", I[I.GRID_FOLLOWS_WORKPLANE = 2097152] = "GRID_FOLLOWS_WORKPLANE";
|
|
1622
1622
|
(K = {})[K.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", K[K.WIREFRAME = 1] = "WIREFRAME", K[K.HIDDEN_LINE = 2] = "HIDDEN_LINE", K[K.FLAT_SHADED = 3] = "FLAT_SHADED", K[K.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", K[K.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", K[K.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME";
|
|
1623
1623
|
(me = {})[me.UCS_UNCHANGED = 0] = "UCS_UNCHANGED", me[me.HAS_OWN_UCS = 1] = "HAS_OWN_UCS";
|
|
1624
1624
|
(Z = {})[Z.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", Z[Z.TOP = 1] = "TOP", Z[Z.BOTTOM = 2] = "BOTTOM", Z[Z.FRONT = 3] = "FRONT", Z[Z.BACK = 4] = "BACK", Z[Z.LEFT = 5] = "LEFT", Z[Z.RIGHT = 6] = "RIGHT";
|
|
1625
|
-
(
|
|
1625
|
+
(xt = {})[xt.AS_DISPLAYED = 0] = "AS_DISPLAYED", xt[xt.WIREFRAME = 1] = "WIREFRAME", xt[xt.HIDDEN = 2] = "HIDDEN", xt[xt.RENDERED = 3] = "RENDERED";
|
|
1626
1626
|
(ge = {})[ge.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", ge[ge.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS";
|
|
1627
1627
|
function v(r, t, e) {
|
|
1628
1628
|
return r.code === t && (e == null || r.value === e);
|
|
1629
1629
|
}
|
|
1630
|
-
function
|
|
1630
|
+
function N(r) {
|
|
1631
1631
|
let t = {};
|
|
1632
1632
|
r.rewind();
|
|
1633
1633
|
let e = r.next(), s = e.code;
|
|
@@ -1683,7 +1683,7 @@ function h({ value: r }) {
|
|
|
1683
1683
|
return r;
|
|
1684
1684
|
}
|
|
1685
1685
|
function w(r, t) {
|
|
1686
|
-
return
|
|
1686
|
+
return N(t);
|
|
1687
1687
|
}
|
|
1688
1688
|
function F({ value: r }) {
|
|
1689
1689
|
return !!r;
|
|
@@ -1706,37 +1706,37 @@ function dr(r, t) {
|
|
|
1706
1706
|
case 1040:
|
|
1707
1707
|
case 1070:
|
|
1708
1708
|
case 1071:
|
|
1709
|
-
i.push({ type:
|
|
1709
|
+
i.push({ type: It(r.code), value: r.value });
|
|
1710
1710
|
break;
|
|
1711
1711
|
case 1003:
|
|
1712
|
-
i.push({ name: "layer", type:
|
|
1712
|
+
i.push({ name: "layer", type: It(r.code), value: r.value });
|
|
1713
1713
|
break;
|
|
1714
1714
|
case 1005:
|
|
1715
|
-
i.push({ name: "handle", type:
|
|
1715
|
+
i.push({ name: "handle", type: It(r.code), value: r.value });
|
|
1716
1716
|
break;
|
|
1717
1717
|
case 1010:
|
|
1718
|
-
i.push({ type:
|
|
1718
|
+
i.push({ type: It(r.code), value: N(t) });
|
|
1719
1719
|
break;
|
|
1720
1720
|
case 1011:
|
|
1721
|
-
i.push({ name: "worldSpacePosition", type:
|
|
1721
|
+
i.push({ name: "worldSpacePosition", type: It(r.code), value: N(t) });
|
|
1722
1722
|
break;
|
|
1723
1723
|
case 1012:
|
|
1724
|
-
i.push({ name: "worldSpaceDisplacement", type:
|
|
1724
|
+
i.push({ name: "worldSpaceDisplacement", type: It(r.code), value: N(t) });
|
|
1725
1725
|
break;
|
|
1726
1726
|
case 1013:
|
|
1727
|
-
i.push({ name: "worldSpaceDirection", type:
|
|
1727
|
+
i.push({ name: "worldSpaceDirection", type: It(r.code), value: N(t) });
|
|
1728
1728
|
break;
|
|
1729
1729
|
case 1041:
|
|
1730
|
-
i.push({ name: "distance", type:
|
|
1730
|
+
i.push({ name: "distance", type: It(r.code), value: r.value });
|
|
1731
1731
|
break;
|
|
1732
1732
|
case 1042:
|
|
1733
|
-
i.push({ name: "scale", type:
|
|
1733
|
+
i.push({ name: "scale", type: It(r.code), value: r.value });
|
|
1734
1734
|
}
|
|
1735
1735
|
r = t.next();
|
|
1736
1736
|
}
|
|
1737
1737
|
return t.rewind(), e;
|
|
1738
1738
|
}
|
|
1739
|
-
function
|
|
1739
|
+
function It(r) {
|
|
1740
1740
|
switch (r) {
|
|
1741
1741
|
case 1e3:
|
|
1742
1742
|
case 1003:
|
|
@@ -1833,7 +1833,7 @@ function ur(r) {
|
|
|
1833
1833
|
if (!r) throw TypeError("entity cannot be undefined or null");
|
|
1834
1834
|
r.handle || (r.handle = Qn++);
|
|
1835
1835
|
}
|
|
1836
|
-
(
|
|
1836
|
+
(ft = {})[ft.CAST_AND_RECEIVE = 0] = "CAST_AND_RECEIVE", ft[ft.CAST = 1] = "CAST", ft[ft.RECEIVE = 2] = "RECEIVE", ft[ft.IGNORE = 3] = "IGNORE";
|
|
1837
1837
|
let j = [{ code: 1001, name: "xdata", parser: dr }, { code: 284, name: "shadowMode", parser: h }, { code: 390, name: "plotStyleHardId", parser: h }, { code: 440, name: "transparency", parser: h }, { code: 430, name: "colorName", parser: h }, { code: 420, name: "color", parser: h }, { code: 310, name: "proxyEntity", isMultiple: !0, parser: h }, { code: 92, name: "proxyByte", parser: h }, { code: 60, name: "isVisible", parser: F }, { code: 48, name: "lineTypeScale", parser: h }, { code: 370, name: "lineweight", parser: h }, { code: 62, name: "colorIndex", parser(r, t, e) {
|
|
1838
1838
|
let s = r.value;
|
|
1839
1839
|
return e.color = cr[Math.abs(s)], s;
|
|
@@ -1857,8 +1857,8 @@ class gr {
|
|
|
1857
1857
|
mr(gr, "ForEntityName", "ARC");
|
|
1858
1858
|
(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";
|
|
1859
1859
|
(pe = {})[pe.MULTILINE = 2] = "MULTILINE", pe[pe.CONSTANT_MULTILINE = 4] = "CONSTANT_MULTILINE";
|
|
1860
|
-
(
|
|
1861
|
-
var ei = ((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), si = ((
|
|
1860
|
+
(zt = {})[zt.NONE = 0] = "NONE", zt[zt.MIRRORED_X = 2] = "MIRRORED_X", zt[zt.MIRRORED_Y = 4] = "MIRRORED_Y";
|
|
1861
|
+
var ei = ((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), si = ((bt = {})[bt.BASELINE = 0] = "BASELINE", bt[bt.BOTTOM = 1] = "BOTTOM", bt[bt.MIDDLE = 2] = "MIDDLE", bt[bt.TOP = 3] = "TOP", bt);
|
|
1862
1862
|
function pr(r, t, e) {
|
|
1863
1863
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
1864
1864
|
}
|
|
@@ -1921,25 +1921,25 @@ let He = class {
|
|
|
1921
1921
|
n.name = i.value;
|
|
1922
1922
|
break;
|
|
1923
1923
|
case 10:
|
|
1924
|
-
n.definitionPoint =
|
|
1924
|
+
n.definitionPoint = N(a);
|
|
1925
1925
|
break;
|
|
1926
1926
|
case 11:
|
|
1927
|
-
n.textPoint =
|
|
1927
|
+
n.textPoint = N(a);
|
|
1928
1928
|
break;
|
|
1929
1929
|
case 12:
|
|
1930
|
-
n.insertionPoint =
|
|
1930
|
+
n.insertionPoint = N(a);
|
|
1931
1931
|
break;
|
|
1932
1932
|
case 13:
|
|
1933
|
-
n.subDefinitionPoint1 =
|
|
1933
|
+
n.subDefinitionPoint1 = N(a);
|
|
1934
1934
|
break;
|
|
1935
1935
|
case 14:
|
|
1936
|
-
n.subDefinitionPoint2 =
|
|
1936
|
+
n.subDefinitionPoint2 = N(a);
|
|
1937
1937
|
break;
|
|
1938
1938
|
case 15:
|
|
1939
|
-
n.centerPoint =
|
|
1939
|
+
n.centerPoint = N(a);
|
|
1940
1940
|
break;
|
|
1941
1941
|
case 16:
|
|
1942
|
-
n.arcPoint =
|
|
1942
|
+
n.arcPoint = N(a);
|
|
1943
1943
|
break;
|
|
1944
1944
|
case 70:
|
|
1945
1945
|
n.dimensionType = i.value;
|
|
@@ -1975,7 +1975,7 @@ let He = class {
|
|
|
1975
1975
|
n.ocsRotation = i.value;
|
|
1976
1976
|
break;
|
|
1977
1977
|
case 210:
|
|
1978
|
-
n.extrusionDirection =
|
|
1978
|
+
n.extrusionDirection = N(a);
|
|
1979
1979
|
break;
|
|
1980
1980
|
case 3:
|
|
1981
1981
|
n.styleName = i.value;
|
|
@@ -2004,14 +2004,14 @@ class Ir {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
Pr(Ir, "ForEntityName", "ELLIPSE");
|
|
2006
2006
|
let Er = [{ code: 330, name: "sourceBoundaryObjects", parser: h, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: h }], li = [{ code: 11, name: "end", parser: w }, { code: 10, name: "start", parser: w }], ci = [{ code: 73, name: "isCCW", parser: F }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "radius", parser: h }, { code: 10, name: "center", parser: w }], di = [{ code: 73, name: "isCCW", parser: F }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "lengthOfMinorAxis", parser: h }, { code: 11, name: "end", parser: w }, { code: 10, name: "center", parser: w }], ui = [{ code: 13, name: "endTangent", parser: w }, { code: 12, name: "startTangent", parser: w }, { code: 11, name: "fitDatum", isMultiple: !0, parser: w }, { code: 97, name: "numberOfFitData", parser: h }, { code: 10, name: "controlPoints", isMultiple: !0, parser(r, t) {
|
|
2007
|
-
let e = { ...
|
|
2007
|
+
let e = { ...N(t), weight: 1 };
|
|
2008
2008
|
return (r = t.next()).code === 42 ? e.weight = r.value : t.rewind(), e;
|
|
2009
|
-
} }, { code: 40, name: "knots", isMultiple: !0, parser: h }, { code: 96, name: "numberOfControlPoints", parser: h }, { code: 95, name: "numberOfKnots", parser: h }, { code: 74, name: "isPeriodic", parser: F }, { code: 73, name: "splineFlag", parser: h }, { code: 94, name: "degree", parser: h }], mi = { [
|
|
2009
|
+
} }, { code: 40, name: "knots", isMultiple: !0, parser: h }, { code: 96, name: "numberOfControlPoints", parser: h }, { code: 95, name: "numberOfKnots", parser: h }, { code: 74, name: "isPeriodic", parser: F }, { code: 73, name: "splineFlag", parser: h }, { code: 94, name: "degree", parser: h }], mi = { [Oe.Line]: li, [Oe.Circular]: ci, [Oe.Elliptic]: di, [Oe.Spline]: ui }, gi = [...Er, { code: 72, name: "edges", parser(r, t) {
|
|
2010
2010
|
let e = { type: r.value }, s = M(mi[e.type]);
|
|
2011
2011
|
if (!s) throw Error(`Invalid edge type ${e.type}`);
|
|
2012
2012
|
return s(r = t.next(), t, e), e;
|
|
2013
2013
|
}, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: h }], pi = [...Er, { code: 10, name: "vertices", parser(r, t) {
|
|
2014
|
-
let e = { ...
|
|
2014
|
+
let e = { ...N(t), bulge: 0 };
|
|
2015
2015
|
return (r = t.next()).code === 42 ? e.bulge = r.value : t.rewind(), e;
|
|
2016
2016
|
}, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: h }, { code: 73, name: "isClosed", parser: F }, { code: 72, name: "hasBulge", parser: F }], yi = [{ code: 49, name: "dashLengths", parser: h, isMultiple: !0 }, { code: 79, name: "numberOfDashLengths", parser: h }, { code: 45, name: "offset", parser: js }, { code: 43, name: "base", parser: js }, { code: 53, name: "angle", parser: h }];
|
|
2017
2017
|
function js(r, t) {
|
|
@@ -2038,7 +2038,7 @@ class Sr {
|
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
Tr(Sr, "ForEntityName", "HATCH");
|
|
2041
|
-
(
|
|
2041
|
+
(wt = {})[wt.ShowImage = 1] = "ShowImage", wt[wt.ShowImageWhenNotAlignedWithScreen = 2] = "ShowImageWhenNotAlignedWithScreen", wt[wt.UseClippingBoundary = 4] = "UseClippingBoundary", wt[wt.TransparencyIsOn = 8] = "TransparencyIsOn";
|
|
2042
2042
|
(ye = {})[ye.Rectangular = 1] = "Rectangular", ye[ye.Polygonal = 2] = "Polygonal";
|
|
2043
2043
|
(_e = {})[_e.Outside = 0] = "Outside", _e[_e.Inside = 1] = "Inside";
|
|
2044
2044
|
function Mr(r, t, e) {
|
|
@@ -2083,21 +2083,21 @@ class Cr {
|
|
|
2083
2083
|
}
|
|
2084
2084
|
}
|
|
2085
2085
|
kr(Cr, "ForEntityName", "LEADER");
|
|
2086
|
-
(
|
|
2087
|
-
function
|
|
2086
|
+
(At = {})[At.TextAnnotation = 0] = "TextAnnotation", At[At.ToleranceAnnotation = 1] = "ToleranceAnnotation", At[At.BlockReferenceAnnotation = 2] = "BlockReferenceAnnotation", At[At.NoAnnotation = 3] = "NoAnnotation";
|
|
2087
|
+
function Nr(r, t, e) {
|
|
2088
2088
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
2089
2089
|
}
|
|
2090
2090
|
let Ei = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Ti = [{ code: 210, name: "extrusionDirection", parser: w }, { code: 11, name: "endPoint", parser: w }, { code: 10, name: "startPoint", parser: w }, { code: 39, name: "thickness", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...j];
|
|
2091
|
-
class
|
|
2091
|
+
class Or {
|
|
2092
2092
|
parseEntity(t, e) {
|
|
2093
2093
|
let s = {};
|
|
2094
2094
|
return this.parser(e, t, s), s;
|
|
2095
2095
|
}
|
|
2096
2096
|
constructor() {
|
|
2097
|
-
|
|
2097
|
+
Nr(this, "parser", M(Ti, Ei));
|
|
2098
2098
|
}
|
|
2099
2099
|
}
|
|
2100
|
-
Or
|
|
2100
|
+
Nr(Or, "ForEntityName", "LINE");
|
|
2101
2101
|
(xe = {})[xe.IS_CLOSED = 1] = "IS_CLOSED", xe[xe.PLINE_GEN = 128] = "PLINE_GEN";
|
|
2102
2102
|
let Si = { flag: 0, elevation: 0, thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, vertices: [] }, Mi = { bulge: 0 }, vi = [{ code: 42, name: "bulge", parser: h }, { code: 41, name: "endWidth", parser: h }, { code: 40, name: "startWidth", parser: h }, { code: 91, name: "id", parser: h }, { code: 20, name: "y", parser: h }, { code: 10, name: "x", parser: h }], Li = [{ code: 210, name: "extrusionDirection", parser: w }, { code: 10, name: "vertices", isMultiple: !0, parser(r, t) {
|
|
2103
2103
|
let e = {};
|
|
@@ -2122,7 +2122,7 @@ function ki(r, t) {
|
|
|
2122
2122
|
function* Qe(r, t = 1 / 0, e = 1) {
|
|
2123
2123
|
for (let s = r; s !== t; s += e) yield s;
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function vt(r) {
|
|
2126
2126
|
return { x: r.x ?? 0, y: r.y ?? 0, z: r.z ?? 0 };
|
|
2127
2127
|
}
|
|
2128
2128
|
function Dr(r, t, e) {
|
|
@@ -2139,7 +2139,7 @@ let Ci = { textStyle: "STANDARD", extrusionDirection: { x: 0, y: 0, z: 1 }, rota
|
|
|
2139
2139
|
e.rewind();
|
|
2140
2140
|
})(t);
|
|
2141
2141
|
} }, { code: 50, name: "columnHeight", parser: h }, { code: 49, name: "columnGutter", parser: h }, { code: 48, name: "columnWidth", parser: h }, { code: 79, name: "columnAutoHeight", parser: h }, { code: 78, name: "columnFlowReversed", parser: h }, { code: 76, name: "columnCount", parser: h }, { code: 75, name: "columnType", parser: h }, { code: 441, name: "backgroundFillTransparency", parser: h }, { code: 63, name: "backgroundFillColor", parser: h }, { code: 45, name: "fillBoxScale", parser: h }, { code: [...Qe(430, 440)], name: "backgroundColor", parser: h }, { code: [...Qe(420, 430)], name: "backgroundColor", parser: h }, { code: 90, name: "backgroundFill", parser: h }, { code: 44, name: "lineSpacing", parser: h }, { code: 73, name: "lineSpacingStyle", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 43 }, { code: 42 }, { code: 11, name: "direction", parser: w }, { code: 210, name: "extrusionDirection", parser: w }, { code: 7, name: "styleName", parser: h }, { code: 3, name: "text", isMultiple: !0, parser: h }, { code: 1, name: "text", isMultiple: !0, parser: h }, { code: 72, name: "drawingDirection", parser: h }, { code: 71, name: "attachmentPoint", parser: h }, { code: 41, name: "width", parser: h }, { code: 40, name: "height", parser: h }, { code: 10, name: "insertionPoint", parser: w }, { code: 100, name: "subclassMarker", parser: h }, ...j];
|
|
2142
|
-
class
|
|
2142
|
+
class Rr {
|
|
2143
2143
|
parseEntity(t, e) {
|
|
2144
2144
|
let s = {};
|
|
2145
2145
|
return this.parser(e, t, s), s;
|
|
@@ -2148,48 +2148,48 @@ class zr {
|
|
|
2148
2148
|
Dr(this, "parser", M(We, Ci));
|
|
2149
2149
|
}
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function zr(r, t, e) {
|
|
2152
2152
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
2153
2153
|
}
|
|
2154
|
-
Dr(
|
|
2155
|
-
let
|
|
2154
|
+
Dr(Rr, "ForEntityName", "MTEXT");
|
|
2155
|
+
let Ni = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 }, angle: 0 }, Oi = [{ code: 50, name: "angle", parser: h }, { code: 210, name: "extrusionDirection", parser: w }, { code: 39, name: "thickness", parser: h }, { code: 10, name: "position", parser: w }, { code: 100, name: "subclassMarker", parser: h }, ...j];
|
|
2156
2156
|
class Fr {
|
|
2157
2157
|
parseEntity(t, e) {
|
|
2158
2158
|
let s = {};
|
|
2159
2159
|
return this.parser(e, t, s), s;
|
|
2160
2160
|
}
|
|
2161
2161
|
constructor() {
|
|
2162
|
-
|
|
2162
|
+
zr(this, "parser", M(Oi, Ni));
|
|
2163
2163
|
}
|
|
2164
2164
|
}
|
|
2165
|
-
|
|
2165
|
+
zr(Fr, "ForEntityName", "POINT");
|
|
2166
2166
|
(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";
|
|
2167
|
-
(
|
|
2167
|
+
(Pt = {})[Pt.NONE = 0] = "NONE", Pt[Pt.QUADRATIC = 5] = "QUADRATIC", Pt[Pt.CUBIC = 6] = "CUBIC", Pt[Pt.BEZIER = 8] = "BEZIER";
|
|
2168
2168
|
(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";
|
|
2169
2169
|
function Br(r, t, e) {
|
|
2170
2170
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
2171
2171
|
}
|
|
2172
|
-
let Di = { startWidth: 0, endWidth: 0, bulge: 0 },
|
|
2172
|
+
let Di = { startWidth: 0, endWidth: 0, bulge: 0 }, Ri = [{ code: 91, name: "id", parser: h }, { code: [...Qe(71, 75)], name: "faces", isMultiple: !0, parser: h }, { code: 50, name: "tangentDirection", parser: h }, { code: 70, name: "flag", parser: h }, { code: 42, name: "bulge", parser: h }, { code: 41, name: "endWidth", parser: h }, { code: 40, name: "startWidth", parser: h }, { code: 30, name: "z", parser: h }, { code: 20, name: "y", parser: h }, { code: 10, name: "x", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 100 }, ...j], Vr = class {
|
|
2173
2173
|
parseEntity(t, e) {
|
|
2174
2174
|
let s = {};
|
|
2175
2175
|
return this.parser(e, t, s), s;
|
|
2176
2176
|
}
|
|
2177
2177
|
constructor() {
|
|
2178
|
-
Br(this, "parser", M(
|
|
2178
|
+
Br(this, "parser", M(Ri, Di));
|
|
2179
2179
|
}
|
|
2180
2180
|
};
|
|
2181
2181
|
function jr(r, t, e) {
|
|
2182
2182
|
return t in r ? Object.defineProperty(r, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : r[t] = e, r;
|
|
2183
2183
|
}
|
|
2184
2184
|
Br(Vr, "ForEntityName", "VERTEX");
|
|
2185
|
-
let
|
|
2185
|
+
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: [] }, Fi = [{ code: 0, name: "vertices", isMultiple: !0, parser: (r, t) => v(r, 0, "VERTEX") ? (r = t.next(), new Vr().parseEntity(t, r)) : vs }, { code: 210, name: "extrusionDirection", parser: w }, { code: 75, name: "smoothType", parser: h }, { code: 74, name: "surfaceNDensity", parser: h }, { code: 73, name: "surfaceMDensity", parser: h }, { code: 72, name: "meshNVertexCount", parser: h }, { code: 71, name: "meshMVertexCount", parser: h }, { code: 41, name: "endWidth", parser: h }, { code: 40, name: "startWidth", parser: h }, { code: 70, name: "flag", parser: h }, { code: 39, name: "thickness", parser: h }, { code: 30, name: "elevation", parser: h }, { code: 20 }, { code: 10 }, { code: 66 }, { code: 100, name: "subclassMarker", parser: h }, ...j];
|
|
2186
2186
|
class Gr {
|
|
2187
2187
|
parseEntity(t, e) {
|
|
2188
2188
|
let s = {};
|
|
2189
2189
|
return this.parser(e, t, s), s;
|
|
2190
2190
|
}
|
|
2191
2191
|
constructor() {
|
|
2192
|
-
jr(this, "parser", M(Fi,
|
|
2192
|
+
jr(this, "parser", M(Fi, zi));
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
2195
|
function Hr(r, t, e) {
|
|
@@ -2269,10 +2269,10 @@ class Ye {
|
|
|
2269
2269
|
s.handle = e.value, e = t.next();
|
|
2270
2270
|
break;
|
|
2271
2271
|
case 10:
|
|
2272
|
-
s.startPoint =
|
|
2272
|
+
s.startPoint = vt(N(t)), e = t.lastReadGroup;
|
|
2273
2273
|
break;
|
|
2274
2274
|
case 11:
|
|
2275
|
-
s.directionVector =
|
|
2275
|
+
s.directionVector = vt(N(t)), e = t.lastReadGroup;
|
|
2276
2276
|
break;
|
|
2277
2277
|
case 90:
|
|
2278
2278
|
s.tableValue = e.value, e = t.next();
|
|
@@ -2445,7 +2445,7 @@ class qe {
|
|
|
2445
2445
|
n.subclassMarker = a.value;
|
|
2446
2446
|
break;
|
|
2447
2447
|
case 10:
|
|
2448
|
-
n.viewportCenter =
|
|
2448
|
+
n.viewportCenter = vt(N(i));
|
|
2449
2449
|
break;
|
|
2450
2450
|
case 40:
|
|
2451
2451
|
n.width = a.value;
|
|
@@ -2460,22 +2460,22 @@ class qe {
|
|
|
2460
2460
|
n.viewportId = a.value;
|
|
2461
2461
|
break;
|
|
2462
2462
|
case 12:
|
|
2463
|
-
n.displayCenter =
|
|
2463
|
+
n.displayCenter = N(i);
|
|
2464
2464
|
break;
|
|
2465
2465
|
case 13:
|
|
2466
|
-
n.snapBase =
|
|
2466
|
+
n.snapBase = N(i);
|
|
2467
2467
|
break;
|
|
2468
2468
|
case 14:
|
|
2469
|
-
n.snapSpacing =
|
|
2469
|
+
n.snapSpacing = N(i);
|
|
2470
2470
|
break;
|
|
2471
2471
|
case 15:
|
|
2472
|
-
n.gridSpacing =
|
|
2472
|
+
n.gridSpacing = N(i);
|
|
2473
2473
|
break;
|
|
2474
2474
|
case 16:
|
|
2475
|
-
n.viewDirection =
|
|
2475
|
+
n.viewDirection = vt(N(i));
|
|
2476
2476
|
break;
|
|
2477
2477
|
case 17:
|
|
2478
|
-
n.targetPoint =
|
|
2478
|
+
n.targetPoint = vt(N(i));
|
|
2479
2479
|
break;
|
|
2480
2480
|
case 42:
|
|
2481
2481
|
n.perspectiveLensLength = a.value;
|
|
@@ -2520,13 +2520,13 @@ class qe {
|
|
|
2520
2520
|
n.ucsPerViewport = a.value;
|
|
2521
2521
|
break;
|
|
2522
2522
|
case 110:
|
|
2523
|
-
n.ucsOrigin =
|
|
2523
|
+
n.ucsOrigin = vt(N(i));
|
|
2524
2524
|
break;
|
|
2525
2525
|
case 111:
|
|
2526
|
-
n.ucsXAxis =
|
|
2526
|
+
n.ucsXAxis = vt(N(i));
|
|
2527
2527
|
break;
|
|
2528
2528
|
case 112:
|
|
2529
|
-
n.ucsYAxis =
|
|
2529
|
+
n.ucsYAxis = vt(N(i));
|
|
2530
2530
|
break;
|
|
2531
2531
|
case 345:
|
|
2532
2532
|
n.ucsId = a.value;
|
|
@@ -2624,7 +2624,7 @@ class tn {
|
|
|
2624
2624
|
}
|
|
2625
2625
|
}
|
|
2626
2626
|
Jr(tn, "ForEntityName", "ATTRIB");
|
|
2627
|
-
let Zi = Object.fromEntries([gr, br, tn, Ar, He, Ir, ks, Lr, Cr,
|
|
2627
|
+
let Zi = Object.fromEntries([gr, br, tn, Ar, He, Ir, ks, Lr, Cr, Or, Ue, Rr, Fr, Gr, Ur, Yr, Xr, Kr, Ye, xr, Sr, qe, Xe, Qr].map((r) => [r.ForEntityName, new r()]));
|
|
2628
2628
|
function en(r, t) {
|
|
2629
2629
|
let e = [];
|
|
2630
2630
|
for (; !v(r, 0, "EOF"); ) {
|
|
@@ -2683,7 +2683,7 @@ function Ji(r, t) {
|
|
|
2683
2683
|
e.layer = r.value;
|
|
2684
2684
|
break;
|
|
2685
2685
|
case 10:
|
|
2686
|
-
e.position =
|
|
2686
|
+
e.position = N(t);
|
|
2687
2687
|
break;
|
|
2688
2688
|
case 67:
|
|
2689
2689
|
e.paperSpace = !!r.value && r.value == 1;
|
|
@@ -2705,7 +2705,7 @@ function Ji(r, t) {
|
|
|
2705
2705
|
}
|
|
2706
2706
|
function ta(r, t) {
|
|
2707
2707
|
let e = null, s = {};
|
|
2708
|
-
for (; !v(r, 0, "EOF") && !v(r, 0, "ENDSEC"); ) r.code === 9 ? e = r.value : r.code === 10 ? s[e] =
|
|
2708
|
+
for (; !v(r, 0, "EOF") && !v(r, 0, "ENDSEC"); ) r.code === 9 ? e = r.value : r.code === 10 ? s[e] = N(t) : s[e] = r.value, r = t.next();
|
|
2709
2709
|
return s;
|
|
2710
2710
|
}
|
|
2711
2711
|
let ea = [{ code: 330, name: "imageDefReactorIdSoft", isMultiple: !0, parser: h }, { code: 90, name: "version", parser: h }, { code: 1, name: "fileName", parser: h }, { code: 10, name: "size", parser: w }, { code: 11, name: "sizeOfOnePixel", parser: w }, { code: 280, name: "isLoaded", parser: h }, { code: 281, name: "resolutionUnits", parser: h }, { code: 100, name: "subclassMarker", parser: h }], sn = [{ code: 333, name: "shadePlotId", parser: h }, { code: 149, name: "imageOriginY", parser: h }, { code: 148, name: "imageOriginX", parser: h }, { code: 147, name: "scaleFactor", parser: h }, { code: 78, name: "shadePlotCustomDPI", parser: h }, { code: 77, name: "shadePlotResolution", parser: h }, { code: 76, name: "shadePlotMode", parser: h }, { code: 75, name: "standardScaleType", parser: h }, { code: 7, name: "currentStyleSheet", parser: h }, { code: 74, name: "plotType", parser: h }, { code: 73, name: "plotRotation", parser: h }, { code: 72, name: "paperUnit", parser: h }, { code: 70, name: "layoutFlag", parser: h }, { code: 143, name: "printScaleDenominator", parser: h }, { code: 142, name: "printScaleNominator", parser: h }, { code: 141, name: "windowAreaYMax", parser: h }, { code: 140, name: "windowAreaYMin", parser: h }, { code: 49, name: "windowAreaXMax", parser: h }, { code: 48, name: "windowAreaXMin", parser: h }, { code: 47, name: "plotOriginY", parser: h }, { code: 46, name: "plotOriginX", parser: h }, { code: 45, name: "paperHeight", parser: h }, { code: 44, name: "paperWidth", parser: h }, { code: 43, name: "marginTop", parser: h }, { code: 42, name: "marginRight", parser: h }, { code: 41, name: "marginBottom", parser: h }, { code: 40, name: "marginLeft", parser: h }, { code: 6, name: "plotViewName", parser: h }, { code: 4, name: "paperSize", parser: h }, { code: 2, name: "configName", parser: h }, { code: 1, name: "pageSetupName", parser: h }, { code: 100, name: "subclassMarker", parser: h }], sa = [{ code: 333, name: "shadePlotId", parser: h }, { code: 346, name: "orthographicUcsId", parser: h }, { code: 345, name: "namedUcsId", parser: h }, { code: 331, name: "viewportId", parser: h }, { code: 330, name: "paperSpaceTableId", parser: h }, { code: 76, name: "orthographicType", parser: h }, { code: 17, name: "ucsYAxis", parser: w }, { code: 16, name: "ucsXAxis", parser: w }, { code: 13, name: "ucsOrigin", parser: w }, { code: 146, name: "elevation", parser: h }, { code: 15, name: "maxExtent", parser: w }, { code: 14, name: "minExtent", parser: w }, { code: 12, name: "insertionBase", parser: w }, { code: 11, name: "maxLimit", parser: w }, { code: 10, name: "minLimit", parser: w }, { code: 71, name: "tabOrder", parser: h }, { code: 70, name: "controlFlag", parser: h }, { code: 1, name: "layoutName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...sn], ra = [{ code: 330, name: "ownerObjectId", parser: h }, { code: 102 }, { code: 360, name: "ownerDictionaryIdHard", parser: h }, { code: 102 }, { code: 102 }, { code: 330, name: "ownerDictionaryIdSoft", parser: h }, { code: 102 }, { code: 102 }, { code: 102 }, { code: 5, name: "handle", parser: h }];
|
|
@@ -3588,7 +3588,7 @@ function xa() {
|
|
|
3588
3588
|
const r = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, s = Math.random() * 4294967295 | 0;
|
|
3589
3589
|
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();
|
|
3590
3590
|
}
|
|
3591
|
-
function
|
|
3591
|
+
function Lt(r, t, e) {
|
|
3592
3592
|
return Math.max(t, Math.min(e, r));
|
|
3593
3593
|
}
|
|
3594
3594
|
function ln(r, t) {
|
|
@@ -3641,14 +3641,14 @@ function ka(r) {
|
|
|
3641
3641
|
function Ca(r) {
|
|
3642
3642
|
return Math.pow(2, Math.ceil(Math.log(r) / Math.LN2));
|
|
3643
3643
|
}
|
|
3644
|
-
function
|
|
3644
|
+
function Na(r) {
|
|
3645
3645
|
return Math.pow(2, Math.floor(Math.log(r) / Math.LN2));
|
|
3646
3646
|
}
|
|
3647
3647
|
function $e(r) {
|
|
3648
3648
|
const t = Math.PI * 2;
|
|
3649
3649
|
return (r % t + t) % t;
|
|
3650
3650
|
}
|
|
3651
|
-
function
|
|
3651
|
+
function Oa(r, t, e) {
|
|
3652
3652
|
return r > t && r < e || r > e && r < t;
|
|
3653
3653
|
}
|
|
3654
3654
|
function Da(r, t, e, s = !1) {
|
|
@@ -3657,7 +3657,7 @@ function Da(r, t, e, s = !1) {
|
|
|
3657
3657
|
function dn(r) {
|
|
3658
3658
|
return r = Math.abs(r), r < 1 ? 0 : Math.ceil(Math.log10(Math.abs(r) + 1));
|
|
3659
3659
|
}
|
|
3660
|
-
function
|
|
3660
|
+
function Ra(r, t = 1e-7) {
|
|
3661
3661
|
const e = dn(r);
|
|
3662
3662
|
return Math.max(Math.pow(10, e) * t, t);
|
|
3663
3663
|
}
|
|
@@ -3665,7 +3665,7 @@ const k = {
|
|
|
3665
3665
|
DEG2RAD: on,
|
|
3666
3666
|
RAD2DEG: hn,
|
|
3667
3667
|
generateUUID: xa,
|
|
3668
|
-
clamp:
|
|
3668
|
+
clamp: Lt,
|
|
3669
3669
|
euclideanModulo: ln,
|
|
3670
3670
|
mapLinear: fa,
|
|
3671
3671
|
inverseLerp: ba,
|
|
@@ -3682,12 +3682,12 @@ const k = {
|
|
|
3682
3682
|
radToDeg: La,
|
|
3683
3683
|
isPowerOfTwo: ka,
|
|
3684
3684
|
ceilPowerOfTwo: Ca,
|
|
3685
|
-
floorPowerOfTwo:
|
|
3685
|
+
floorPowerOfTwo: Na,
|
|
3686
3686
|
normalizeAngle: $e,
|
|
3687
|
-
isBetween:
|
|
3687
|
+
isBetween: Oa,
|
|
3688
3688
|
isBetweenAngle: Da,
|
|
3689
3689
|
intPartLength: dn,
|
|
3690
|
-
relativeEps:
|
|
3690
|
+
relativeEps: Ra
|
|
3691
3691
|
}, Ps = class un {
|
|
3692
3692
|
/**
|
|
3693
3693
|
* Construct one vector by two numbers
|
|
@@ -4279,8 +4279,8 @@ const Is = class mn {
|
|
|
4279
4279
|
* @returns Return this matrix
|
|
4280
4280
|
*/
|
|
4281
4281
|
multiplyMatrices(t, e) {
|
|
4282
|
-
const s = t.elements, n = e.elements, i = this.elements, a = s[0], o = s[3], c = s[6], l = 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], S = n[1], E = n[4], T = n[7], A = n[2],
|
|
4283
|
-
return i[0] = a * y + o * S + c * A, i[3] = a * x + o * E + c *
|
|
4282
|
+
const s = t.elements, n = e.elements, i = this.elements, a = s[0], o = s[3], c = s[6], l = 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], S = n[1], E = n[4], T = n[7], A = n[2], R = n[5], P = n[8];
|
|
4283
|
+
return i[0] = a * y + o * S + c * A, i[3] = a * x + o * E + c * R, i[6] = a * _ + o * T + c * P, i[1] = l * y + d * S + u * A, i[4] = l * x + d * E + u * R, i[7] = l * _ + d * T + u * P, i[2] = m * y + g * S + p * A, i[5] = m * x + g * E + p * R, i[8] = m * _ + g * T + p * P, this;
|
|
4284
4284
|
}
|
|
4285
4285
|
/**
|
|
4286
4286
|
* Multiply every component of the matrix by the scalar value s.
|
|
@@ -4457,8 +4457,8 @@ const Is = class mn {
|
|
|
4457
4457
|
}
|
|
4458
4458
|
};
|
|
4459
4459
|
Is.IDENTITY = Object.freeze(new Is());
|
|
4460
|
-
let
|
|
4461
|
-
const ys = /* @__PURE__ */ new
|
|
4460
|
+
let Ns = Is;
|
|
4461
|
+
const ys = /* @__PURE__ */ new Ns(), qt = 1e-6, H = 2 * Math.PI, hh = {
|
|
4462
4462
|
x: 0,
|
|
4463
4463
|
y: 0
|
|
4464
4464
|
}, gn = {
|
|
@@ -4547,7 +4547,7 @@ function _n(r, t, e = !1) {
|
|
|
4547
4547
|
}
|
|
4548
4548
|
return i;
|
|
4549
4549
|
}
|
|
4550
|
-
function
|
|
4550
|
+
function za(r, t) {
|
|
4551
4551
|
if (r.length === 0 || t.length === 0)
|
|
4552
4552
|
return !1;
|
|
4553
4553
|
const e = new Q().setFromPoints(r), s = new Q().setFromPoints(t);
|
|
@@ -4562,7 +4562,7 @@ function Ra(r, t) {
|
|
|
4562
4562
|
}
|
|
4563
4563
|
const Fa = {
|
|
4564
4564
|
isPointInPolygon: _n,
|
|
4565
|
-
isPolygonIntersect:
|
|
4565
|
+
isPolygonIntersect: za
|
|
4566
4566
|
};
|
|
4567
4567
|
function Ba(r, t) {
|
|
4568
4568
|
const e = [], s = t - 1, n = r;
|
|
@@ -4700,8 +4700,8 @@ class Gt {
|
|
|
4700
4700
|
let x = 1 - o;
|
|
4701
4701
|
const _ = c * m + l * g + d * p + u * y, S = _ >= 0 ? 1 : -1, E = 1 - _ * _;
|
|
4702
4702
|
if (E > Number.EPSILON) {
|
|
4703
|
-
const A = Math.sqrt(E),
|
|
4704
|
-
x = Math.sin(x *
|
|
4703
|
+
const A = Math.sqrt(E), R = Math.atan2(A, _ * S);
|
|
4704
|
+
x = Math.sin(x * R) / A, o = Math.sin(o * R) / A;
|
|
4705
4705
|
}
|
|
4706
4706
|
const T = o * S;
|
|
4707
4707
|
if (c = c * x + m * T, l = l * x + g * T, d = d * x + p * T, u = u * x + y * T, x === 1 - o) {
|
|
@@ -4870,7 +4870,7 @@ class Gt {
|
|
|
4870
4870
|
* @returns Return the angle between this quaternion and quaternion q in radians.
|
|
4871
4871
|
*/
|
|
4872
4872
|
angleTo(t) {
|
|
4873
|
-
return 2 * Math.acos(Math.abs(
|
|
4873
|
+
return 2 * Math.acos(Math.abs(Lt(this.dot(t), -1, 1)));
|
|
4874
4874
|
}
|
|
4875
4875
|
/**
|
|
4876
4876
|
* Rotate this quaternion by a given angular step to the defined quaternion q. The method ensures
|
|
@@ -6023,7 +6023,7 @@ const _s = /* @__PURE__ */ new b(), qs = /* @__PURE__ */ new Gt(), Ts = class fn
|
|
|
6023
6023
|
*/
|
|
6024
6024
|
lookAt(t, e, s) {
|
|
6025
6025
|
const n = this.elements;
|
|
6026
|
-
return rt.subVectors(t, e), rt.lengthSq() === 0 && (rt.z = 1), rt.normalize(),
|
|
6026
|
+
return rt.subVectors(t, e), rt.lengthSq() === 0 && (rt.z = 1), rt.normalize(), Mt.crossVectors(s, rt), Mt.lengthSq() === 0 && (Math.abs(s.z) === 1 ? rt.x += 1e-4 : rt.z += 1e-4, rt.normalize(), Mt.crossVectors(s, rt)), Mt.normalize(), Re.crossVectors(rt, Mt), n[0] = Mt.x, n[4] = Re.x, n[8] = rt.x, n[1] = Mt.y, n[5] = Re.y, n[9] = rt.y, n[2] = Mt.z, n[6] = Re.z, n[10] = rt.z, this;
|
|
6027
6027
|
}
|
|
6028
6028
|
/**
|
|
6029
6029
|
* Post-multiply this matrix by m.
|
|
@@ -6048,8 +6048,8 @@ const _s = /* @__PURE__ */ new b(), qs = /* @__PURE__ */ new Gt(), Ts = class fn
|
|
|
6048
6048
|
* @returns Return this matrix
|
|
6049
6049
|
*/
|
|
6050
6050
|
multiplyMatrices(t, e) {
|
|
6051
|
-
const s = t.elements, n = e.elements, i = this.elements, a = s[0], o = s[4], c = s[8], l = 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], S = s[3], E = s[7], T = s[11], A = s[15],
|
|
6052
|
-
return i[0] = a *
|
|
6051
|
+
const s = t.elements, n = e.elements, i = this.elements, a = s[0], o = s[4], c = s[8], l = 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], S = s[3], E = s[7], T = s[11], A = s[15], R = n[0], P = n[4], U = n[8], it = n[12], pt = n[1], C = n[5], z = n[9], kt = n[13], Ct = n[2], Te = n[6], Se = n[10], Me = n[14], ve = n[3], Le = n[7], ke = n[11], Ce = n[15];
|
|
6052
|
+
return i[0] = a * R + o * pt + c * Ct + l * ve, i[4] = a * P + o * C + c * Te + l * Le, i[8] = a * U + o * z + c * Se + l * ke, i[12] = a * it + o * kt + c * Me + l * Ce, i[1] = d * R + u * pt + m * Ct + g * ve, i[5] = d * P + u * C + m * Te + g * Le, i[9] = d * U + u * z + m * Se + g * ke, i[13] = d * it + u * kt + m * Me + g * Ce, i[2] = p * R + y * pt + x * Ct + _ * ve, i[6] = p * P + y * C + x * Te + _ * Le, i[10] = p * U + y * z + x * Se + _ * ke, i[14] = p * it + y * kt + x * Me + _ * Ce, i[3] = S * R + E * pt + T * Ct + A * ve, i[7] = S * P + E * C + T * Te + A * Le, i[11] = S * U + E * z + T * Se + A * ke, i[15] = S * it + E * kt + T * Me + A * Ce, this;
|
|
6053
6053
|
}
|
|
6054
6054
|
/**
|
|
6055
6055
|
* Multiply every component of the matrix by a scalar value s.
|
|
@@ -6094,10 +6094,10 @@ const _s = /* @__PURE__ */ new b(), qs = /* @__PURE__ */ new Gt(), Ts = class fn
|
|
|
6094
6094
|
* @returns Return this matrix
|
|
6095
6095
|
*/
|
|
6096
6096
|
invert() {
|
|
6097
|
-
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], l = 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], S = u * x * l - y * m * l + y * c * g - o * x * g - u * c * _ + o * m * _, E = p * m * l - d * x * l - p * c * g + a * x * g + d * c * _ - a * m * _, T = d * y * l - p * u * l + 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,
|
|
6098
|
-
if (
|
|
6097
|
+
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], l = 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], S = u * x * l - y * m * l + y * c * g - o * x * g - u * c * _ + o * m * _, E = p * m * l - d * x * l - p * c * g + a * x * g + d * c * _ - a * m * _, T = d * y * l - p * u * l + 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, R = e * S + s * E + n * T + i * A;
|
|
6098
|
+
if (R === 0)
|
|
6099
6099
|
return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
6100
|
-
const P = 1 /
|
|
6100
|
+
const P = 1 / R;
|
|
6101
6101
|
return t[0] = S * P, t[1] = (y * m * i - u * x * i - y * n * g + s * x * g + u * n * _ - s * m * _) * P, t[2] = (o * x * i - y * c * i + y * n * l - s * x * l - o * n * _ + s * c * _) * P, t[3] = (u * c * i - o * m * i - u * n * l + s * m * l + o * n * g - s * c * g) * P, t[4] = E * P, t[5] = (d * x * i - p * m * i + p * n * g - e * x * g - d * n * _ + e * m * _) * P, t[6] = (p * c * i - a * x * i - p * n * l + e * x * l + a * n * _ - e * c * _) * P, t[7] = (a * m * i - d * c * i + d * n * l - e * m * l - a * n * g + e * c * g) * P, t[8] = T * P, t[9] = (p * u * i - d * y * i - p * s * g + e * y * g + d * s * _ - e * u * _) * P, t[10] = (a * y * i - p * o * i + p * s * l - e * y * l - a * s * _ + e * o * _) * P, t[11] = (d * o * i - a * u * i - d * s * l + e * u * l + a * s * g - e * o * g) * P, t[12] = A * P, t[13] = (d * y * n - p * u * n + p * s * m - e * y * m - d * s * x + e * u * x) * P, t[14] = (p * o * n - a * y * n - p * s * c + e * y * c + a * s * x - e * o * x) * P, t[15] = (a * u * n - d * o * n + d * s * c - e * u * c - a * s * m + e * o * m) * P, this;
|
|
6102
6102
|
}
|
|
6103
6103
|
/**
|
|
@@ -6212,8 +6212,8 @@ const _s = /* @__PURE__ */ new b(), qs = /* @__PURE__ */ new Gt(), Ts = class fn
|
|
|
6212
6212
|
* @returns Return this matrix
|
|
6213
6213
|
*/
|
|
6214
6214
|
compose(t, e, s) {
|
|
6215
|
-
const n = this.elements, i = e.x, a = e.y, o = e.z, c = e.w, l = i + i, d = a + a, u = o + o, m = i * l, g = i * d, p = i * u, y = a * d, x = a * u, _ = o * u, S = c * l, E = c * d, T = c * u, A = s.x,
|
|
6216
|
-
return n[0] = (1 - (y + _)) * A, n[1] = (g + T) * A, n[2] = (p - E) * A, n[3] = 0, n[4] = (g - T) *
|
|
6215
|
+
const n = this.elements, i = e.x, a = e.y, o = e.z, c = e.w, l = i + i, d = a + a, u = o + o, m = i * l, g = i * d, p = i * u, y = a * d, x = a * u, _ = o * u, S = c * l, E = c * d, T = c * u, A = s.x, R = s.y, P = s.z;
|
|
6216
|
+
return n[0] = (1 - (y + _)) * A, n[1] = (g + T) * A, n[2] = (p - E) * A, n[3] = 0, n[4] = (g - T) * R, n[5] = (1 - (m + _)) * R, n[6] = (x + S) * R, n[7] = 0, n[8] = (p + E) * P, n[9] = (x - S) * P, n[10] = (1 - (m + y)) * P, n[11] = 0, n[12] = t.x, n[13] = t.y, n[14] = t.z, n[15] = 1, this;
|
|
6217
6217
|
}
|
|
6218
6218
|
/**
|
|
6219
6219
|
* Decompose this matrix into its position, quaternion and scale components.
|
|
@@ -6360,8 +6360,8 @@ const _s = /* @__PURE__ */ new b(), qs = /* @__PURE__ */ new Gt(), Ts = class fn
|
|
|
6360
6360
|
};
|
|
6361
6361
|
Ts.IDENTITY = Object.freeze(new Ts());
|
|
6362
6362
|
let Jt = Ts;
|
|
6363
|
-
const Xt = /* @__PURE__ */ new b(), dt = /* @__PURE__ */ new Jt(), Ha = /* @__PURE__ */ new b(0, 0, 0), Ua = /* @__PURE__ */ new b(1, 1, 1),
|
|
6364
|
-
class
|
|
6363
|
+
const Xt = /* @__PURE__ */ new b(), dt = /* @__PURE__ */ new Jt(), Ha = /* @__PURE__ */ new b(0, 0, 0), Ua = /* @__PURE__ */ new b(1, 1, 1), Mt = /* @__PURE__ */ new b(), Re = /* @__PURE__ */ new b(), rt = /* @__PURE__ */ new b();
|
|
6364
|
+
class O {
|
|
6365
6365
|
/**
|
|
6366
6366
|
* Create a 3d box bounded by min and max.
|
|
6367
6367
|
* @param min (optional) Input the lower (x, y, z) boundary of the box.
|
|
@@ -6419,7 +6419,7 @@ class N {
|
|
|
6419
6419
|
* @returns Return a new box with the same min and max as this one.
|
|
6420
6420
|
*/
|
|
6421
6421
|
clone() {
|
|
6422
|
-
return new
|
|
6422
|
+
return new O().copy(this);
|
|
6423
6423
|
}
|
|
6424
6424
|
/**
|
|
6425
6425
|
* Copy the min and max from box to this box.
|
|
@@ -6589,7 +6589,7 @@ class N {
|
|
|
6589
6589
|
* @returns Return this box
|
|
6590
6590
|
*/
|
|
6591
6591
|
applyMatrix4(t) {
|
|
6592
|
-
return this.isEmpty() ? this : (
|
|
6592
|
+
return this.isEmpty() ? this : (Et[0].set(this.min.x, this.min.y, this.min.z).applyMatrix3d(t), Et[1].set(this.min.x, this.min.y, this.max.z).applyMatrix3d(t), Et[2].set(this.min.x, this.max.y, this.min.z).applyMatrix3d(t), Et[3].set(this.min.x, this.max.y, this.max.z).applyMatrix3d(t), Et[4].set(this.max.x, this.min.y, this.min.z).applyMatrix3d(t), Et[5].set(this.max.x, this.min.y, this.max.z).applyMatrix3d(t), Et[6].set(this.max.x, this.max.y, this.min.z).applyMatrix3d(t), Et[7].set(this.max.x, this.max.y, this.max.z).applyMatrix3d(t), this.setFromPoints(Et), this);
|
|
6593
6593
|
}
|
|
6594
6594
|
/**
|
|
6595
6595
|
* Add offset to both the upper and lower bounds of this box, effectively moving this box offset units
|
|
@@ -6609,7 +6609,7 @@ class N {
|
|
|
6609
6609
|
return t.min.equals(this.min) && t.max.equals(this.max);
|
|
6610
6610
|
}
|
|
6611
6611
|
}
|
|
6612
|
-
const
|
|
6612
|
+
const Et = [
|
|
6613
6613
|
/* @__PURE__ */ new b(),
|
|
6614
6614
|
/* @__PURE__ */ new b(),
|
|
6615
6615
|
/* @__PURE__ */ new b(),
|
|
@@ -6836,7 +6836,7 @@ class Q {
|
|
|
6836
6836
|
return t.min.equals(this.min) && t.max.equals(this.max);
|
|
6837
6837
|
}
|
|
6838
6838
|
}
|
|
6839
|
-
const $s = /* @__PURE__ */ new b(), Wa = /* @__PURE__ */ new b(), Ya = /* @__PURE__ */ new
|
|
6839
|
+
const $s = /* @__PURE__ */ new b(), Wa = /* @__PURE__ */ new b(), Ya = /* @__PURE__ */ new Ns();
|
|
6840
6840
|
class ss {
|
|
6841
6841
|
/**
|
|
6842
6842
|
* Create one plane
|
|
@@ -7137,22 +7137,22 @@ const Ks = /* @__PURE__ */ new Jt(), Zs = /* @__PURE__ */ new Gt(), bn = class S
|
|
|
7137
7137
|
const n = t.elements, i = n[0], a = n[4], o = n[8], c = n[1], l = n[5], d = n[9], u = n[2], m = n[6], g = n[10];
|
|
7138
7138
|
switch (e) {
|
|
7139
7139
|
case "XYZ":
|
|
7140
|
-
this._y = Math.asin(
|
|
7140
|
+
this._y = Math.asin(Lt(o, -1, 1)), Math.abs(o) < 0.9999999 ? (this._x = Math.atan2(-d, g), this._z = Math.atan2(-a, i)) : (this._x = Math.atan2(m, l), this._z = 0);
|
|
7141
7141
|
break;
|
|
7142
7142
|
case "YXZ":
|
|
7143
|
-
this._x = Math.asin(-
|
|
7143
|
+
this._x = Math.asin(-Lt(d, -1, 1)), Math.abs(d) < 0.9999999 ? (this._y = Math.atan2(o, g), this._z = Math.atan2(c, l)) : (this._y = Math.atan2(-u, i), this._z = 0);
|
|
7144
7144
|
break;
|
|
7145
7145
|
case "ZXY":
|
|
7146
|
-
this._x = Math.asin(
|
|
7146
|
+
this._x = Math.asin(Lt(m, -1, 1)), Math.abs(m) < 0.9999999 ? (this._y = Math.atan2(-u, g), this._z = Math.atan2(-a, l)) : (this._y = 0, this._z = Math.atan2(c, i));
|
|
7147
7147
|
break;
|
|
7148
7148
|
case "ZYX":
|
|
7149
|
-
this._y = Math.asin(-
|
|
7149
|
+
this._y = Math.asin(-Lt(u, -1, 1)), Math.abs(u) < 0.9999999 ? (this._x = Math.atan2(m, g), this._z = Math.atan2(c, i)) : (this._x = 0, this._z = Math.atan2(-a, l));
|
|
7150
7150
|
break;
|
|
7151
7151
|
case "YZX":
|
|
7152
|
-
this._z = Math.asin(
|
|
7152
|
+
this._z = Math.asin(Lt(c, -1, 1)), Math.abs(c) < 0.9999999 ? (this._x = Math.atan2(-d, l), this._y = Math.atan2(-u, i)) : (this._x = 0, this._y = Math.atan2(o, g));
|
|
7153
7153
|
break;
|
|
7154
7154
|
case "XZY":
|
|
7155
|
-
this._z = Math.asin(-
|
|
7155
|
+
this._z = Math.asin(-Lt(a, -1, 1)), Math.abs(a) < 0.9999999 ? (this._x = Math.atan2(m, l), this._y = Math.atan2(o, i)) : (this._x = Math.atan2(-d, g), this._y = 0);
|
|
7156
7156
|
break;
|
|
7157
7157
|
default:
|
|
7158
7158
|
console.warn(
|
|
@@ -7253,7 +7253,7 @@ class An extends wn {
|
|
|
7253
7253
|
* Return new shape translated by given vector.
|
|
7254
7254
|
*/
|
|
7255
7255
|
translate(t) {
|
|
7256
|
-
return this.transform(new
|
|
7256
|
+
return this.transform(new Ns().makeTranslation(t.x, t.y));
|
|
7257
7257
|
}
|
|
7258
7258
|
/**
|
|
7259
7259
|
* The bounding box of this shape. Because it is a time-consuming operation to calculate the bounding
|
|
@@ -7264,7 +7264,7 @@ class An extends wn {
|
|
|
7264
7264
|
return (this._box == null || this._boundingBoxNeedsUpdate) && (this._box = this.calculateBoundingBox(), this._boundingBoxNeedsUpdate = !1), this._box;
|
|
7265
7265
|
}
|
|
7266
7266
|
}
|
|
7267
|
-
class
|
|
7267
|
+
class Os extends An {
|
|
7268
7268
|
/**
|
|
7269
7269
|
* Create one 2d area defined by one outter loop and multiple inner loops
|
|
7270
7270
|
*/
|
|
@@ -7539,13 +7539,13 @@ class we extends Ie {
|
|
|
7539
7539
|
const n = (P, U) => ({
|
|
7540
7540
|
x: (P.x + U.x) / 2,
|
|
7541
7541
|
y: (P.y + U.y) / 2
|
|
7542
|
-
}), i = (P, U) => (U.y - P.y) / (U.x - P.x), a = (P) => -1 / P, o = n(t, e), c = n(e, s), l = i(t, e), d = i(e, s), u = a(l), m = a(d), g = (P, U, it,
|
|
7543
|
-
const C = (
|
|
7544
|
-
return { x: C, y:
|
|
7542
|
+
}), i = (P, U) => (U.y - P.y) / (U.x - P.x), a = (P) => -1 / P, o = n(t, e), c = n(e, s), l = i(t, e), d = i(e, s), u = a(l), m = a(d), g = (P, U, it, pt) => {
|
|
7543
|
+
const C = (pt - U) / (P - it), z = P * C + U;
|
|
7544
|
+
return { x: C, y: z };
|
|
7545
7545
|
}, p = o.y - u * o.x, y = c.y - m * c.x, x = g(u, p, m, y), _ = Math.sqrt(
|
|
7546
7546
|
Math.pow(t.x - x.x, 2) + Math.pow(t.y - x.y, 2)
|
|
7547
|
-
), S = (P, U) => Math.atan2(P.y - U.y, P.x - U.x), E = S(t, x), T = S(e, x), A = S(s, x),
|
|
7548
|
-
this.center = x, this.radius = _, this.startAngle = E, this.endAngle = A, this.clockwise = !
|
|
7547
|
+
), S = (P, U) => Math.atan2(P.y - U.y, P.x - U.x), E = S(t, x), T = S(e, x), A = S(s, x), R = A > E && A < T || E > A && E < T || T > A && T < E;
|
|
7548
|
+
this.center = x, this.radius = _, this.startAngle = E, this.endAngle = A, this.clockwise = !R;
|
|
7549
7549
|
}
|
|
7550
7550
|
/**
|
|
7551
7551
|
* Create circular arc by two points and one bugle factor
|
|
@@ -7857,9 +7857,9 @@ class Ht extends Ee {
|
|
|
7857
7857
|
* @returns Return a point parameter based on the closest point as projected on the line segment.
|
|
7858
7858
|
*/
|
|
7859
7859
|
closestPointToPointParameter(t, e) {
|
|
7860
|
-
Qs.subVectors(t, this._start),
|
|
7861
|
-
const s =
|
|
7862
|
-
let n =
|
|
7860
|
+
Qs.subVectors(t, this._start), ze.subVectors(this.endPoint, this.startPoint);
|
|
7861
|
+
const s = ze.dot(ze);
|
|
7862
|
+
let n = ze.dot(Qs) / s;
|
|
7863
7863
|
return e && (n = k.clamp(n, 0, 1)), n;
|
|
7864
7864
|
}
|
|
7865
7865
|
/**
|
|
@@ -7929,7 +7929,7 @@ class Ht extends Ee {
|
|
|
7929
7929
|
Math.max(this._start.y, this._end.y),
|
|
7930
7930
|
Math.max(this._start.z, this._end.z)
|
|
7931
7931
|
);
|
|
7932
|
-
return new
|
|
7932
|
+
return new O(t, e);
|
|
7933
7933
|
}
|
|
7934
7934
|
/**
|
|
7935
7935
|
* @inheritdoc
|
|
@@ -7956,7 +7956,7 @@ class Ht extends Ee {
|
|
|
7956
7956
|
return new Ht(this._start.clone(), this._end.clone());
|
|
7957
7957
|
}
|
|
7958
7958
|
}
|
|
7959
|
-
const Bt = /* @__PURE__ */ new b(), Qs = /* @__PURE__ */ new b(),
|
|
7959
|
+
const Bt = /* @__PURE__ */ new b(), Qs = /* @__PURE__ */ new b(), ze = /* @__PURE__ */ new b();
|
|
7960
7960
|
class Qt extends Ee {
|
|
7961
7961
|
/**
|
|
7962
7962
|
* Compute center point of the arc given three points
|
|
@@ -8110,7 +8110,7 @@ class Qt extends Ee {
|
|
|
8110
8110
|
const l = this.getPointAtAngle(c);
|
|
8111
8111
|
l.x < e && (e = l.x), l.y < s && (s = l.y), l.z < n && (n = l.z), l.x > i && (i = l.x), l.y > a && (a = l.y), l.z > o && (o = l.z);
|
|
8112
8112
|
}
|
|
8113
|
-
return new
|
|
8113
|
+
return new O(
|
|
8114
8114
|
{ x: e, y: s, z: n },
|
|
8115
8115
|
{ x: i, y: a, z: o }
|
|
8116
8116
|
);
|
|
@@ -8358,7 +8358,7 @@ class Ds extends Ie {
|
|
|
8358
8358
|
);
|
|
8359
8359
|
}
|
|
8360
8360
|
}
|
|
8361
|
-
class
|
|
8361
|
+
class Rs extends Ee {
|
|
8362
8362
|
/**
|
|
8363
8363
|
* Construct an instance of the ellipse arc.
|
|
8364
8364
|
* @param center Center point of the ellipse.
|
|
@@ -8515,7 +8515,7 @@ class zs extends Ee {
|
|
|
8515
8515
|
const l = this.getPointAtAngle(c);
|
|
8516
8516
|
l.x < e && (e = l.x), l.y < s && (s = l.y), l.z < n && (n = l.z), l.x > i && (i = l.x), l.y > a && (a = l.y), l.z > o && (o = l.z);
|
|
8517
8517
|
}
|
|
8518
|
-
return new
|
|
8518
|
+
return new O(
|
|
8519
8519
|
{ x: e, y: s, z: n },
|
|
8520
8520
|
{ x: i, y: a, z: o }
|
|
8521
8521
|
);
|
|
@@ -8525,7 +8525,7 @@ class zs extends Ee {
|
|
|
8525
8525
|
const c = this.startAngle + this.deltaAngle * (o / 100), l = this.getPointAtAngle(c);
|
|
8526
8526
|
t = Math.min(t, l.x), e = Math.min(e, l.y), s = Math.min(s, l.z), n = Math.max(n, l.x), i = Math.max(i, l.y), a = Math.max(a, l.z);
|
|
8527
8527
|
}
|
|
8528
|
-
return new
|
|
8528
|
+
return new O(
|
|
8529
8529
|
{ x: t, y: e, z: s },
|
|
8530
8530
|
{ x: n, y: i, z: a }
|
|
8531
8531
|
);
|
|
@@ -8585,7 +8585,7 @@ class zs extends Ee {
|
|
|
8585
8585
|
* @inheritdoc
|
|
8586
8586
|
*/
|
|
8587
8587
|
clone() {
|
|
8588
|
-
return new
|
|
8588
|
+
return new Rs(
|
|
8589
8589
|
this.center,
|
|
8590
8590
|
this.normal,
|
|
8591
8591
|
this.majorAxis,
|
|
@@ -8740,7 +8740,7 @@ class rs extends Ie {
|
|
|
8740
8740
|
return e;
|
|
8741
8741
|
}
|
|
8742
8742
|
}
|
|
8743
|
-
class
|
|
8743
|
+
class zs extends Ie {
|
|
8744
8744
|
/**
|
|
8745
8745
|
* This constructor initializes the line object to use start as the start point, and end
|
|
8746
8746
|
* as the endpoint. Both points must be in WCS coordinates.
|
|
@@ -8816,7 +8816,7 @@ class Rs extends Ie {
|
|
|
8816
8816
|
* @inheritdoc
|
|
8817
8817
|
*/
|
|
8818
8818
|
clone() {
|
|
8819
|
-
return new
|
|
8819
|
+
return new zs(this._start.clone(), this._end.clone());
|
|
8820
8820
|
}
|
|
8821
8821
|
}
|
|
8822
8822
|
class $a extends Ie {
|
|
@@ -9083,8 +9083,8 @@ class Ka extends Ee {
|
|
|
9083
9083
|
*/
|
|
9084
9084
|
calculateBoundingBox() {
|
|
9085
9085
|
if (this._points.length === 0)
|
|
9086
|
-
return new
|
|
9087
|
-
const t = new
|
|
9086
|
+
return new O();
|
|
9087
|
+
const t = new O();
|
|
9088
9088
|
return this._points.forEach((e) => {
|
|
9089
9089
|
t.expandByPoint(e);
|
|
9090
9090
|
}), t;
|
|
@@ -9211,28 +9211,29 @@ class ut {
|
|
|
9211
9211
|
}
|
|
9212
9212
|
}
|
|
9213
9213
|
class Ut extends Ee {
|
|
9214
|
-
constructor(t, e, s, n) {
|
|
9214
|
+
constructor(t, e, s, n, i) {
|
|
9215
9215
|
super();
|
|
9216
|
-
const
|
|
9217
|
-
if (
|
|
9216
|
+
const a = arguments.length;
|
|
9217
|
+
if (a < 2 || a > 5)
|
|
9218
9218
|
throw ot.ILLEGAL_PARAMETERS;
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9219
|
+
if (this._degree = 3, this._closed = !1, Array.isArray(e)) {
|
|
9220
|
+
this._controlPoints = t;
|
|
9221
|
+
let o, c = 3, l = !1;
|
|
9222
|
+
if (a >= 3 && (Array.isArray(s) ? (o = s, a >= 4 && (c = n || 3), a >= 5 && (l = i)) : s !== void 0 && (c = s || 3, a >= 4 && (l = n))), s === void 0 && a >= 4 && (c = n || 3, a >= 5 && (l = i)), this._degree = c, this._closed = l, this._controlPoints.length < this._degree + 1)
|
|
9222
9223
|
throw ot.ILLEGAL_PARAMETERS;
|
|
9223
9224
|
this._nurbsCurve = ut.byKnotsControlPointsWeights(
|
|
9224
|
-
|
|
9225
|
+
this._degree,
|
|
9225
9226
|
e,
|
|
9226
9227
|
this._controlPoints,
|
|
9227
|
-
|
|
9228
|
+
o
|
|
9228
9229
|
);
|
|
9229
9230
|
} else {
|
|
9230
|
-
if (this._fitPoints = t, this._knotParameterization = e,
|
|
9231
|
+
if (this._fitPoints = t, this._knotParameterization = e, a >= 3 && (this._degree = s || 3), a >= 4 && (this._closed = n), this._fitPoints.length < this._degree + 1)
|
|
9231
9232
|
throw ot.ILLEGAL_PARAMETERS;
|
|
9232
9233
|
const o = this.toNurbsPoints(this._fitPoints);
|
|
9233
9234
|
this._nurbsCurve = ut.byPoints(
|
|
9234
9235
|
o,
|
|
9235
|
-
|
|
9236
|
+
this._degree,
|
|
9236
9237
|
this._knotParameterization
|
|
9237
9238
|
), this._controlPoints = this._nurbsCurve.controlPoints();
|
|
9238
9239
|
}
|
|
@@ -9246,14 +9247,14 @@ class Ut extends Ee {
|
|
|
9246
9247
|
if (this._closed)
|
|
9247
9248
|
this._nurbsCurve = ut.createClosedCurve(
|
|
9248
9249
|
this._fitPoints,
|
|
9249
|
-
|
|
9250
|
+
this._degree,
|
|
9250
9251
|
this._knotParameterization
|
|
9251
9252
|
);
|
|
9252
9253
|
else {
|
|
9253
9254
|
const t = this.toNurbsPoints(this._fitPoints);
|
|
9254
9255
|
this._nurbsCurve = ut.byPoints(
|
|
9255
9256
|
t,
|
|
9256
|
-
|
|
9257
|
+
this._degree,
|
|
9257
9258
|
this._knotParameterization
|
|
9258
9259
|
);
|
|
9259
9260
|
}
|
|
@@ -9263,13 +9264,13 @@ class Ut extends Ee {
|
|
|
9263
9264
|
const t = this._knotParameterization || "Chord";
|
|
9264
9265
|
this._nurbsCurve = ut.createClosedCurve(
|
|
9265
9266
|
this._controlPoints,
|
|
9266
|
-
|
|
9267
|
+
this._degree,
|
|
9267
9268
|
t
|
|
9268
9269
|
), this._controlPoints = this._nurbsCurve.controlPoints();
|
|
9269
9270
|
} else {
|
|
9270
9271
|
const t = this._nurbsCurve.knots(), e = this._nurbsCurve.weights();
|
|
9271
9272
|
this._nurbsCurve = ut.byKnotsControlPointsWeights(
|
|
9272
|
-
|
|
9273
|
+
this._degree,
|
|
9273
9274
|
t,
|
|
9274
9275
|
this._controlPoints,
|
|
9275
9276
|
e
|
|
@@ -9286,7 +9287,7 @@ class Ut extends Ee {
|
|
|
9286
9287
|
* Degree of the spline to be created.
|
|
9287
9288
|
*/
|
|
9288
9289
|
get degree() {
|
|
9289
|
-
return this.
|
|
9290
|
+
return this._degree;
|
|
9290
9291
|
}
|
|
9291
9292
|
get knotParameterization() {
|
|
9292
9293
|
return this._knotParameterization;
|
|
@@ -9362,7 +9363,7 @@ class Ut extends Ee {
|
|
|
9362
9363
|
*/
|
|
9363
9364
|
calculateBoundingBox() {
|
|
9364
9365
|
const t = this.getPoints(100);
|
|
9365
|
-
return new
|
|
9366
|
+
return new O().setFromPoints(t);
|
|
9366
9367
|
}
|
|
9367
9368
|
get closed() {
|
|
9368
9369
|
return this._closed;
|
|
@@ -9391,12 +9392,13 @@ class Ut extends Ee {
|
|
|
9391
9392
|
* Create a closed spline from fit points using AcGeNurbsCurve.createClosedCurve
|
|
9392
9393
|
* @param fitPoints - Array of fit points defining the curve
|
|
9393
9394
|
* @param parameterization - Knot parameterization type for NURBS
|
|
9395
|
+
* @param degree - Optional degree of the spline (default: 3)
|
|
9394
9396
|
* @returns A closed spline
|
|
9395
9397
|
*/
|
|
9396
|
-
static createClosedSpline(t, e = "Uniform") {
|
|
9397
|
-
if (t.length <
|
|
9398
|
-
throw new Error(
|
|
9399
|
-
return new Ut(t, e, !0);
|
|
9398
|
+
static createClosedSpline(t, e = "Uniform", s = 3) {
|
|
9399
|
+
if (t.length < s + 1)
|
|
9400
|
+
throw new Error(`At least ${s + 1} points are required for a degree ${s} closed spline`);
|
|
9401
|
+
return new Ut(t, e, s, !0);
|
|
9400
9402
|
}
|
|
9401
9403
|
}
|
|
9402
9404
|
var Vt = 256, Pn = [], Js = 256, Fe;
|
|
@@ -9569,7 +9571,7 @@ class Wt {
|
|
|
9569
9571
|
* ```
|
|
9570
9572
|
*/
|
|
9571
9573
|
get database() {
|
|
9572
|
-
return this._database ? this._database :
|
|
9574
|
+
return this._database ? this._database : Nn().workingDatabase;
|
|
9573
9575
|
}
|
|
9574
9576
|
/**
|
|
9575
9577
|
* Sets the database for this object.
|
|
@@ -9602,7 +9604,7 @@ class Wt {
|
|
|
9602
9604
|
close() {
|
|
9603
9605
|
}
|
|
9604
9606
|
}
|
|
9605
|
-
class
|
|
9607
|
+
class St extends Wt {
|
|
9606
9608
|
constructor() {
|
|
9607
9609
|
super(...arguments), this._layer = "0", this._color = new te(), this._lineType = ps, this._lineWeight = 1, this._linetypeScale = -1, this._visibility = !0, this._transparency = 0;
|
|
9608
9610
|
}
|
|
@@ -9974,7 +9976,7 @@ class Tt extends Wt {
|
|
|
9974
9976
|
return null;
|
|
9975
9977
|
}
|
|
9976
9978
|
}
|
|
9977
|
-
class In extends
|
|
9979
|
+
class In extends St {
|
|
9978
9980
|
/**
|
|
9979
9981
|
* Creates a new block reference entity.
|
|
9980
9982
|
*
|
|
@@ -10140,7 +10142,7 @@ class In extends Tt {
|
|
|
10140
10142
|
* ```
|
|
10141
10143
|
*/
|
|
10142
10144
|
get geometricExtents() {
|
|
10143
|
-
const t = new
|
|
10145
|
+
const t = new O(), e = this.blockTableRecord;
|
|
10144
10146
|
if (e != null) {
|
|
10145
10147
|
const i = e.newIterator();
|
|
10146
10148
|
for (const a of i)
|
|
@@ -10178,9 +10180,9 @@ class In extends Tt {
|
|
|
10178
10180
|
);
|
|
10179
10181
|
}
|
|
10180
10182
|
}
|
|
10181
|
-
class
|
|
10183
|
+
class gt extends St {
|
|
10182
10184
|
}
|
|
10183
|
-
class Qa extends
|
|
10185
|
+
class Qa extends gt {
|
|
10184
10186
|
/**
|
|
10185
10187
|
* Creates a new ellipse entity.
|
|
10186
10188
|
*
|
|
@@ -10221,7 +10223,7 @@ class Qa extends mt {
|
|
|
10221
10223
|
* ```
|
|
10222
10224
|
*/
|
|
10223
10225
|
constructor(t, e, s, n, i, a, o) {
|
|
10224
|
-
super(), this._geo = new
|
|
10226
|
+
super(), this._geo = new Rs(
|
|
10225
10227
|
t,
|
|
10226
10228
|
e,
|
|
10227
10229
|
s,
|
|
@@ -10384,7 +10386,7 @@ class Qa extends mt {
|
|
|
10384
10386
|
return t.ellipticalArc(this._geo, this.lineStyle);
|
|
10385
10387
|
}
|
|
10386
10388
|
}
|
|
10387
|
-
class Ja extends
|
|
10389
|
+
class Ja extends gt {
|
|
10388
10390
|
/**
|
|
10389
10391
|
* Creates a new arc entity.
|
|
10390
10392
|
*
|
|
@@ -10646,7 +10648,7 @@ class Ja extends mt {
|
|
|
10646
10648
|
return t.circularArc(this._geo, this.lineStyle);
|
|
10647
10649
|
}
|
|
10648
10650
|
}
|
|
10649
|
-
class to extends
|
|
10651
|
+
class to extends gt {
|
|
10650
10652
|
/**
|
|
10651
10653
|
* Creates a new circle entity.
|
|
10652
10654
|
*
|
|
@@ -10834,7 +10836,7 @@ class to extends mt {
|
|
|
10834
10836
|
}
|
|
10835
10837
|
}
|
|
10836
10838
|
var eo = /* @__PURE__ */ ((r) => (r[r.UserDefined = 0] = "UserDefined", r[r.Predefined = 1] = "Predefined", r[r.Custom = 2] = "Custom", r))(eo || {}), so = /* @__PURE__ */ ((r) => (r[r.Normal = 0] = "Normal", r[r.Outer = 1] = "Outer", r[r.Ignore = 2] = "Ignore", r))(so || {});
|
|
10837
|
-
class ro extends
|
|
10839
|
+
class ro extends St {
|
|
10838
10840
|
/**
|
|
10839
10841
|
* Creates a new hatch entity.
|
|
10840
10842
|
*
|
|
@@ -10850,7 +10852,7 @@ class ro extends Tt {
|
|
|
10850
10852
|
* ```
|
|
10851
10853
|
*/
|
|
10852
10854
|
constructor() {
|
|
10853
|
-
super(), this._elevation = 0, this._geo = new
|
|
10855
|
+
super(), this._elevation = 0, this._geo = new Os(), this._definitionLines = [], this._patternName = "", this._patternType = 1, this._patternAngle = 0, this._patternScale = 1, this._hatchStyle = 0;
|
|
10854
10856
|
}
|
|
10855
10857
|
/**
|
|
10856
10858
|
* Gets the definition lines for the hatch pattern.
|
|
@@ -10924,7 +10926,7 @@ class ro extends Tt {
|
|
|
10924
10926
|
*/
|
|
10925
10927
|
get geometricExtents() {
|
|
10926
10928
|
const t = this._geo.box;
|
|
10927
|
-
return new
|
|
10929
|
+
return new O(
|
|
10928
10930
|
{ x: t.min.x, y: t.min.y, z: this._elevation },
|
|
10929
10931
|
{ x: t.max.x, y: t.max.y, z: this._elevation }
|
|
10930
10932
|
);
|
|
@@ -10942,7 +10944,7 @@ class ro extends Tt {
|
|
|
10942
10944
|
}
|
|
10943
10945
|
}
|
|
10944
10946
|
var no = /* @__PURE__ */ ((r) => (r[r.MText = 0] = "MText", r[r.Fcf = 1] = "Fcf", r[r.BlockReference = 2] = "BlockReference", r[r.NoAnnotation = 3] = "NoAnnotation", r))(no || {});
|
|
10945
|
-
class io extends
|
|
10947
|
+
class io extends gt {
|
|
10946
10948
|
/**
|
|
10947
10949
|
* Creates a new leader entity.
|
|
10948
10950
|
*
|
|
@@ -11143,7 +11145,7 @@ class io extends mt {
|
|
|
11143
11145
|
* @inheritdoc
|
|
11144
11146
|
*/
|
|
11145
11147
|
get geometricExtents() {
|
|
11146
|
-
return this._isSplined && this.splineGeo ? this.splineGeo.calculateBoundingBox() : new
|
|
11148
|
+
return this._isSplined && this.splineGeo ? this.splineGeo.calculateBoundingBox() : new O().setFromPoints(this._vertices);
|
|
11147
11149
|
}
|
|
11148
11150
|
/**
|
|
11149
11151
|
* @inheritdoc
|
|
@@ -11170,7 +11172,7 @@ class io extends mt {
|
|
|
11170
11172
|
this.isSplined && this.numVertices >= 2 && (this._splineGeo == null || this._updated) && (this._splineGeo = new Ut(this._vertices, "Uniform"), this._updated = !1);
|
|
11171
11173
|
}
|
|
11172
11174
|
}
|
|
11173
|
-
class ao extends
|
|
11175
|
+
class ao extends gt {
|
|
11174
11176
|
/**
|
|
11175
11177
|
* Creates a new line entity.
|
|
11176
11178
|
*
|
|
@@ -11513,7 +11515,7 @@ class Bs {
|
|
|
11513
11515
|
return this.id = t.id, this.groupId = t.groupId, this.number = t.number, this.centerPoint.copy(t.centerPoint), this.height = t.height, this.width = t.width, this.viewCenter.copy(t.viewCenter), this.viewHeight = t.viewHeight, this;
|
|
11514
11516
|
}
|
|
11515
11517
|
}
|
|
11516
|
-
class oo extends
|
|
11518
|
+
class oo extends St {
|
|
11517
11519
|
/**
|
|
11518
11520
|
* Creates a new multiline text entity.
|
|
11519
11521
|
*
|
|
@@ -11745,7 +11747,7 @@ class oo extends Tt {
|
|
|
11745
11747
|
* @inheritdoc
|
|
11746
11748
|
*/
|
|
11747
11749
|
get geometricExtents() {
|
|
11748
|
-
return new
|
|
11750
|
+
return new O();
|
|
11749
11751
|
}
|
|
11750
11752
|
getTextStyle() {
|
|
11751
11753
|
const t = this.database.tables.textStyleTable;
|
|
@@ -11773,21 +11775,23 @@ class oo extends Tt {
|
|
|
11773
11775
|
return t.mtext(e, s);
|
|
11774
11776
|
}
|
|
11775
11777
|
}
|
|
11776
|
-
class tr extends
|
|
11777
|
-
constructor(t, e, s, n) {
|
|
11778
|
+
class tr extends gt {
|
|
11779
|
+
constructor(t, e, s, n, i) {
|
|
11778
11780
|
super();
|
|
11779
|
-
const
|
|
11780
|
-
if (
|
|
11781
|
+
const a = +(t !== void 0) + +(e !== void 0) + +(s !== void 0) + +(n !== void 0) + +(i !== void 0);
|
|
11782
|
+
if (a < 2 || a > 5)
|
|
11781
11783
|
throw ot.ILLEGAL_PARAMETERS;
|
|
11782
|
-
|
|
11784
|
+
!Array.isArray(e) ? this._geo = new Ut(
|
|
11783
11785
|
t,
|
|
11784
11786
|
e,
|
|
11785
|
-
s
|
|
11787
|
+
s,
|
|
11788
|
+
n
|
|
11786
11789
|
) : this._geo = new Ut(
|
|
11787
11790
|
t,
|
|
11788
11791
|
e,
|
|
11789
11792
|
s,
|
|
11790
|
-
n
|
|
11793
|
+
n,
|
|
11794
|
+
i
|
|
11791
11795
|
);
|
|
11792
11796
|
}
|
|
11793
11797
|
/**
|
|
@@ -12028,7 +12032,7 @@ class lo extends In {
|
|
|
12028
12032
|
* @inheritdoc
|
|
12029
12033
|
*/
|
|
12030
12034
|
get geometricExtents() {
|
|
12031
|
-
return new
|
|
12035
|
+
return new O();
|
|
12032
12036
|
}
|
|
12033
12037
|
/**
|
|
12034
12038
|
* Renders the table entity using the specified graphics renderer.
|
|
@@ -12079,7 +12083,7 @@ class lo extends In {
|
|
|
12079
12083
|
T,
|
|
12080
12084
|
_,
|
|
12081
12085
|
E
|
|
12082
|
-
),
|
|
12086
|
+
), R = {
|
|
12083
12087
|
text: p.text,
|
|
12084
12088
|
height: p.textHeight,
|
|
12085
12089
|
width: _,
|
|
@@ -12090,7 +12094,7 @@ class lo extends In {
|
|
|
12090
12094
|
...this.getTextStyle(p),
|
|
12091
12095
|
color: this.color.color
|
|
12092
12096
|
};
|
|
12093
|
-
o.push(t.mtext(
|
|
12097
|
+
o.push(t.mtext(R, P));
|
|
12094
12098
|
}
|
|
12095
12099
|
}
|
|
12096
12100
|
}
|
|
@@ -12182,7 +12186,7 @@ class lo extends In {
|
|
|
12182
12186
|
}
|
|
12183
12187
|
const er = /* @__PURE__ */ new Jt();
|
|
12184
12188
|
var co = /* @__PURE__ */ ((r) => (r[r.LEFT = 0] = "LEFT", r[r.CENTER = 1] = "CENTER", r[r.RIGHT = 2] = "RIGHT", r[r.ALIGNED = 3] = "ALIGNED", r[r.MIDDLE = 4] = "MIDDLE", r[r.FIT = 5] = "FIT", r))(co || {}), uo = /* @__PURE__ */ ((r) => (r[r.BASELINE = 0] = "BASELINE", r[r.BOTTOM = 1] = "BOTTOM", r[r.MIDDLE = 2] = "MIDDLE", r[r.TOP = 3] = "TOP", r))(uo || {});
|
|
12185
|
-
class mo extends
|
|
12189
|
+
class mo extends St {
|
|
12186
12190
|
/**
|
|
12187
12191
|
* Creates a new text entity.
|
|
12188
12192
|
*
|
|
@@ -12500,7 +12504,7 @@ class mo extends Tt {
|
|
|
12500
12504
|
* ```
|
|
12501
12505
|
*/
|
|
12502
12506
|
get geometricExtents() {
|
|
12503
|
-
return new
|
|
12507
|
+
return new O();
|
|
12504
12508
|
}
|
|
12505
12509
|
/**
|
|
12506
12510
|
* Gets the text style for this text entity.
|
|
@@ -12551,7 +12555,7 @@ class mo extends Tt {
|
|
|
12551
12555
|
return t.mtext(e, s);
|
|
12552
12556
|
}
|
|
12553
12557
|
}
|
|
12554
|
-
class go extends
|
|
12558
|
+
class go extends gt {
|
|
12555
12559
|
/**
|
|
12556
12560
|
* Creates a new trace entity.
|
|
12557
12561
|
*
|
|
@@ -12698,7 +12702,7 @@ class go extends mt {
|
|
|
12698
12702
|
* ```
|
|
12699
12703
|
*/
|
|
12700
12704
|
get geometricExtents() {
|
|
12701
|
-
return new
|
|
12705
|
+
return new O().setFromPoints(this._vertices);
|
|
12702
12706
|
}
|
|
12703
12707
|
/**
|
|
12704
12708
|
* Gets the grip points for this trace.
|
|
@@ -12735,7 +12739,7 @@ class go extends mt {
|
|
|
12735
12739
|
* ```
|
|
12736
12740
|
*/
|
|
12737
12741
|
draw(t) {
|
|
12738
|
-
const e = new rs(this._vertices, !0), s = new
|
|
12742
|
+
const e = new rs(this._vertices, !0), s = new Os();
|
|
12739
12743
|
return s.add(e), t.area(s, {
|
|
12740
12744
|
color: this.rgbColor,
|
|
12741
12745
|
solidFill: !0,
|
|
@@ -12744,7 +12748,7 @@ class go extends mt {
|
|
|
12744
12748
|
});
|
|
12745
12749
|
}
|
|
12746
12750
|
}
|
|
12747
|
-
class po extends
|
|
12751
|
+
class po extends gt {
|
|
12748
12752
|
/**
|
|
12749
12753
|
* Creates a new empty polyline entity.
|
|
12750
12754
|
*
|
|
@@ -12920,7 +12924,7 @@ class po extends mt {
|
|
|
12920
12924
|
*/
|
|
12921
12925
|
get geometricExtents() {
|
|
12922
12926
|
const t = this._geo.box;
|
|
12923
|
-
return new
|
|
12927
|
+
return new O(
|
|
12924
12928
|
{ x: t.min.x, y: t.min.y, z: this._elevation },
|
|
12925
12929
|
{ x: t.max.x, y: t.max.y, z: this._elevation }
|
|
12926
12930
|
);
|
|
@@ -12966,7 +12970,7 @@ class po extends mt {
|
|
|
12966
12970
|
), t.lines(e, this.lineStyle);
|
|
12967
12971
|
}
|
|
12968
12972
|
}
|
|
12969
|
-
class yo extends
|
|
12973
|
+
class yo extends St {
|
|
12970
12974
|
/**
|
|
12971
12975
|
* Creates a new point entity.
|
|
12972
12976
|
*
|
|
@@ -13023,7 +13027,7 @@ class yo extends Tt {
|
|
|
13023
13027
|
* ```
|
|
13024
13028
|
*/
|
|
13025
13029
|
get geometricExtents() {
|
|
13026
|
-
return new
|
|
13030
|
+
return new O().expandByPoint(this._geo);
|
|
13027
13031
|
}
|
|
13028
13032
|
/**
|
|
13029
13033
|
* Transforms this point by the specified matrix.
|
|
@@ -13067,7 +13071,7 @@ class yo extends Tt {
|
|
|
13067
13071
|
}
|
|
13068
13072
|
}
|
|
13069
13073
|
var _o = /* @__PURE__ */ ((r) => (r[r.Invalid = 0] = "Invalid", r[r.Rect = 1] = "Rect", r[r.Poly = 2] = "Poly", r))(_o || {}), xo = /* @__PURE__ */ ((r) => (r[r.Show = 1] = "Show", r[r.ShowUnAligned = 2] = "ShowUnAligned", r[r.Clip = 4] = "Clip", r[r.Transparent = 8] = "Transparent", r))(xo || {});
|
|
13070
|
-
class vn extends
|
|
13074
|
+
class vn extends St {
|
|
13071
13075
|
/**
|
|
13072
13076
|
* Creates a new raster image entity.
|
|
13073
13077
|
*
|
|
@@ -13246,7 +13250,7 @@ class vn extends Tt {
|
|
|
13246
13250
|
* @inheritdoc
|
|
13247
13251
|
*/
|
|
13248
13252
|
get geometricExtents() {
|
|
13249
|
-
const t = new
|
|
13253
|
+
const t = new O();
|
|
13250
13254
|
return t.min.copy(this._position), t.max.set(
|
|
13251
13255
|
this._position.x + this._width,
|
|
13252
13256
|
this._position.y + this._height,
|
|
@@ -13297,7 +13301,7 @@ class vn extends Tt {
|
|
|
13297
13301
|
}
|
|
13298
13302
|
}
|
|
13299
13303
|
const sr = /* @__PURE__ */ new L(), Be = /* @__PURE__ */ new L();
|
|
13300
|
-
class fo extends
|
|
13304
|
+
class fo extends gt {
|
|
13301
13305
|
/**
|
|
13302
13306
|
* Creates a new ray entity.
|
|
13303
13307
|
*
|
|
@@ -13398,7 +13402,7 @@ class fo extends mt {
|
|
|
13398
13402
|
* ```
|
|
13399
13403
|
*/
|
|
13400
13404
|
get geometricExtents() {
|
|
13401
|
-
const t = new
|
|
13405
|
+
const t = new O();
|
|
13402
13406
|
return t.expandByPoint(
|
|
13403
13407
|
this._unitDir.clone().multiplyScalar(10).add(this._basePoint)
|
|
13404
13408
|
), t.expandByPoint(
|
|
@@ -13445,7 +13449,7 @@ class fo extends mt {
|
|
|
13445
13449
|
), t.lines(e, this.lineStyle);
|
|
13446
13450
|
}
|
|
13447
13451
|
}
|
|
13448
|
-
class bo extends
|
|
13452
|
+
class bo extends St {
|
|
13449
13453
|
/**
|
|
13450
13454
|
* Creates a new AcDbViewport instance.
|
|
13451
13455
|
*
|
|
@@ -13571,7 +13575,7 @@ class bo extends Tt {
|
|
|
13571
13575
|
* @inheritdoc
|
|
13572
13576
|
*/
|
|
13573
13577
|
get geometricExtents() {
|
|
13574
|
-
return new
|
|
13578
|
+
return new O();
|
|
13575
13579
|
}
|
|
13576
13580
|
/**
|
|
13577
13581
|
* Renders the viewport entity using the specified renderer.
|
|
@@ -13705,7 +13709,7 @@ class wo extends vn {
|
|
|
13705
13709
|
* ```
|
|
13706
13710
|
*/
|
|
13707
13711
|
draw(t) {
|
|
13708
|
-
const e = this.boundaryPath(), s = new
|
|
13712
|
+
const e = this.boundaryPath(), s = new Os();
|
|
13709
13713
|
return s.add(new rs(e)), t.area(s, {
|
|
13710
13714
|
color: 0,
|
|
13711
13715
|
solidFill: !0,
|
|
@@ -13714,7 +13718,7 @@ class wo extends vn {
|
|
|
13714
13718
|
});
|
|
13715
13719
|
}
|
|
13716
13720
|
}
|
|
13717
|
-
class Ao extends
|
|
13721
|
+
class Ao extends gt {
|
|
13718
13722
|
/**
|
|
13719
13723
|
* Creates a new xline entity.
|
|
13720
13724
|
*
|
|
@@ -13816,7 +13820,7 @@ class Ao extends mt {
|
|
|
13816
13820
|
* ```
|
|
13817
13821
|
*/
|
|
13818
13822
|
get geometricExtents() {
|
|
13819
|
-
const t = new
|
|
13823
|
+
const t = new O();
|
|
13820
13824
|
return t.expandByPoint(
|
|
13821
13825
|
this._unitDir.clone().multiplyScalar(10).add(this._basePoint)
|
|
13822
13826
|
), t.expandByPoint(
|
|
@@ -13866,7 +13870,7 @@ class Ao extends mt {
|
|
|
13866
13870
|
}
|
|
13867
13871
|
}
|
|
13868
13872
|
var Po = /* @__PURE__ */ ((r) => (r[r.AtLeast = 1] = "AtLeast", r[r.Exactly = 2] = "Exactly", r))(Po || {});
|
|
13869
|
-
class ee extends
|
|
13873
|
+
class ee extends St {
|
|
13870
13874
|
/**
|
|
13871
13875
|
* Creates a new dimension entity.
|
|
13872
13876
|
*
|
|
@@ -14284,7 +14288,7 @@ class Io extends ee {
|
|
|
14284
14288
|
* @inheritdoc
|
|
14285
14289
|
*/
|
|
14286
14290
|
get geometricExtents() {
|
|
14287
|
-
return new
|
|
14291
|
+
return new O();
|
|
14288
14292
|
}
|
|
14289
14293
|
}
|
|
14290
14294
|
class Eo extends ee {
|
|
@@ -14464,7 +14468,7 @@ class Eo extends ee {
|
|
|
14464
14468
|
* @inheritdoc
|
|
14465
14469
|
*/
|
|
14466
14470
|
get geometricExtents() {
|
|
14467
|
-
return new
|
|
14471
|
+
return new O();
|
|
14468
14472
|
}
|
|
14469
14473
|
/**
|
|
14470
14474
|
* @inheritdoc
|
|
@@ -14596,7 +14600,7 @@ class ch extends ee {
|
|
|
14596
14600
|
* @inheritdoc
|
|
14597
14601
|
*/
|
|
14598
14602
|
get geometricExtents() {
|
|
14599
|
-
return new
|
|
14603
|
+
return new O();
|
|
14600
14604
|
}
|
|
14601
14605
|
}
|
|
14602
14606
|
class To extends ee {
|
|
@@ -14702,7 +14706,7 @@ class To extends ee {
|
|
|
14702
14706
|
* @inheritdoc
|
|
14703
14707
|
*/
|
|
14704
14708
|
get geometricExtents() {
|
|
14705
|
-
return new
|
|
14709
|
+
return new O();
|
|
14706
14710
|
}
|
|
14707
14711
|
/**
|
|
14708
14712
|
* Draws the dimension lines with appropriate arrow styles.
|
|
@@ -14827,7 +14831,7 @@ class So extends ee {
|
|
|
14827
14831
|
* @inheritdoc
|
|
14828
14832
|
*/
|
|
14829
14833
|
get geometricExtents() {
|
|
14830
|
-
return new
|
|
14834
|
+
return new O();
|
|
14831
14835
|
}
|
|
14832
14836
|
/**
|
|
14833
14837
|
* Gets the number of arrow lines for this dimension.
|
|
@@ -15029,7 +15033,7 @@ class Mo extends ee {
|
|
|
15029
15033
|
* @inheritdoc
|
|
15030
15034
|
*/
|
|
15031
15035
|
get geometricExtents() {
|
|
15032
|
-
return new
|
|
15036
|
+
return new O();
|
|
15033
15037
|
}
|
|
15034
15038
|
/**
|
|
15035
15039
|
* @inheritdoc
|
|
@@ -15155,6 +15159,7 @@ class rr {
|
|
|
15155
15159
|
t.controlPoints,
|
|
15156
15160
|
t.knots,
|
|
15157
15161
|
t.weights,
|
|
15162
|
+
t.degree,
|
|
15158
15163
|
!!(t.flag & 1)
|
|
15159
15164
|
);
|
|
15160
15165
|
if (t.numberOfFitPoints > 0) {
|
|
@@ -15163,7 +15168,7 @@ class rr {
|
|
|
15163
15168
|
t.numberOfFitPoints
|
|
15164
15169
|
);
|
|
15165
15170
|
if (e != null)
|
|
15166
|
-
return new tr(e, "Uniform", !!(t.flag & 1));
|
|
15171
|
+
return new tr(e, "Uniform", t.degree, !!(t.flag & 1));
|
|
15167
15172
|
}
|
|
15168
15173
|
return null;
|
|
15169
15174
|
}
|
|
@@ -15212,7 +15217,7 @@ class rr {
|
|
|
15212
15217
|
o.edges.forEach((l) => {
|
|
15213
15218
|
if (l.type == 1) {
|
|
15214
15219
|
const d = l;
|
|
15215
|
-
c.add(new
|
|
15220
|
+
c.add(new zs(d.start, d.end));
|
|
15216
15221
|
} else if (l.type == 2) {
|
|
15217
15222
|
const d = l;
|
|
15218
15223
|
c.add(
|
|
@@ -15439,7 +15444,7 @@ class Ln extends Wt {
|
|
|
15439
15444
|
* ```
|
|
15440
15445
|
*/
|
|
15441
15446
|
constructor() {
|
|
15442
|
-
super(), this._tabOrder = -1, this._tabSelected = !1, this._blockTableRecordId = "", this._layoutName = "", this._limits = new Q(), this._extents = new
|
|
15447
|
+
super(), this._tabOrder = -1, this._tabSelected = !1, this._blockTableRecordId = "", this._layoutName = "", this._limits = new Q(), this._extents = new O();
|
|
15443
15448
|
}
|
|
15444
15449
|
/**
|
|
15445
15450
|
* Gets the user-friendly layout name that is displayed in the tab control.
|
|
@@ -16079,7 +16084,7 @@ class Co extends _a {
|
|
|
16079
16084
|
const s = t.blocks;
|
|
16080
16085
|
for (const [n, i] of Object.entries(s)) {
|
|
16081
16086
|
let a = e.tables.blockTable.getAt(i.name);
|
|
16082
|
-
a || (a = new
|
|
16087
|
+
a || (a = new mt(), a.objectId = i.handle, a.name = n, a.origin.copy(i.position), e.tables.blockTable.add(a)), i.entities && this.processEntitiesInBlock(
|
|
16083
16088
|
i.entities,
|
|
16084
16089
|
a,
|
|
16085
16090
|
e.tables.blockTable
|
|
@@ -16122,7 +16127,7 @@ class Co extends _a {
|
|
|
16122
16127
|
var n;
|
|
16123
16128
|
const s = (n = t.tables.BLOCK_RECORD) == null ? void 0 : n.entries;
|
|
16124
16129
|
s && s.length > 0 && (e.tables.blockTable.removeAll(), s.forEach((i) => {
|
|
16125
|
-
const a = new
|
|
16130
|
+
const a = new mt();
|
|
16126
16131
|
a.objectId = i.handle, a.name = i.name, e.tables.blockTable.add(a);
|
|
16127
16132
|
}));
|
|
16128
16133
|
}
|
|
@@ -16372,7 +16377,7 @@ class Co extends _a {
|
|
|
16372
16377
|
}
|
|
16373
16378
|
}
|
|
16374
16379
|
var Ze = /* @__PURE__ */ ((r) => (r.DXF = "dxf", r.DWG = "dwg", r))(Ze || {});
|
|
16375
|
-
class
|
|
16380
|
+
class Tt {
|
|
16376
16381
|
/**
|
|
16377
16382
|
* Private constructor to enforce singleton pattern.
|
|
16378
16383
|
*
|
|
@@ -16397,7 +16402,7 @@ class Et {
|
|
|
16397
16402
|
* ```
|
|
16398
16403
|
*/
|
|
16399
16404
|
static createInstance() {
|
|
16400
|
-
return
|
|
16405
|
+
return Tt._instance == null && (Tt._instance = new Tt()), this._instance;
|
|
16401
16406
|
}
|
|
16402
16407
|
/**
|
|
16403
16408
|
* Gets the singleton instance of this class.
|
|
@@ -16410,7 +16415,7 @@ class Et {
|
|
|
16410
16415
|
* ```
|
|
16411
16416
|
*/
|
|
16412
16417
|
static get instance() {
|
|
16413
|
-
return
|
|
16418
|
+
return Tt._instance || (Tt._instance = new Tt()), Tt._instance;
|
|
16414
16419
|
}
|
|
16415
16420
|
/**
|
|
16416
16421
|
* Gets all registered file types.
|
|
@@ -16637,8 +16642,8 @@ const Kt = class Kt extends se {
|
|
|
16637
16642
|
return this._entities.get(t);
|
|
16638
16643
|
}
|
|
16639
16644
|
};
|
|
16640
|
-
Kt.MODEL_SPACE_NAME = "*
|
|
16641
|
-
let
|
|
16645
|
+
Kt.MODEL_SPACE_NAME = "*MODEL_SPACE", Kt.PAPER_SPACE_NAME_PREFIX = "*PAPER_SPACE";
|
|
16646
|
+
let mt = Kt;
|
|
16642
16647
|
class re extends Wt {
|
|
16643
16648
|
/**
|
|
16644
16649
|
* Creates a new AcDbSymbolTable instance.
|
|
@@ -16815,7 +16820,7 @@ class re extends Wt {
|
|
|
16815
16820
|
return new Cs(this._recordsByName);
|
|
16816
16821
|
}
|
|
16817
16822
|
}
|
|
16818
|
-
class
|
|
16823
|
+
class No extends re {
|
|
16819
16824
|
/**
|
|
16820
16825
|
* Creates a new AcDbBlockTable instance.
|
|
16821
16826
|
*
|
|
@@ -16829,6 +16834,29 @@ class Oo extends re {
|
|
|
16829
16834
|
constructor(t) {
|
|
16830
16835
|
super(t);
|
|
16831
16836
|
}
|
|
16837
|
+
/**
|
|
16838
|
+
* Adds a block table record and indexes it by a regularized name key.
|
|
16839
|
+
*
|
|
16840
|
+
* - For model space: indexed under `*MODEL_SPACE`.
|
|
16841
|
+
* - For paper space: indexed under `*PAPER_SPACE` plus the original name suffix after the prefix.
|
|
16842
|
+
* - For other blocks: indexed under the record's `name` as-is.
|
|
16843
|
+
*
|
|
16844
|
+
* Note: Only the internal index key is regularized; the record's `name` is not mutated.
|
|
16845
|
+
*
|
|
16846
|
+
* @param record - The record to add to the table
|
|
16847
|
+
*
|
|
16848
|
+
*/
|
|
16849
|
+
add(t) {
|
|
16850
|
+
t.database = this.database;
|
|
16851
|
+
let e = t.name;
|
|
16852
|
+
if (t.isModelSapce)
|
|
16853
|
+
e = mt.MODEL_SPACE_NAME;
|
|
16854
|
+
else if (t.isPaperSapce) {
|
|
16855
|
+
const s = mt.PAPER_SPACE_NAME_PREFIX, n = t.name.substring(s.length);
|
|
16856
|
+
e = s + n;
|
|
16857
|
+
}
|
|
16858
|
+
this._recordsByName.set(e, t), this._recordsById.set(t.objectId, t);
|
|
16859
|
+
}
|
|
16832
16860
|
/**
|
|
16833
16861
|
* Gets the MODEL_SPACE block table record.
|
|
16834
16862
|
*
|
|
@@ -16845,11 +16873,11 @@ class Oo extends re {
|
|
|
16845
16873
|
* ```
|
|
16846
16874
|
*/
|
|
16847
16875
|
get modelSpace() {
|
|
16848
|
-
let t = this.getAt(
|
|
16849
|
-
return t || (t = new
|
|
16876
|
+
let t = this.getAt(mt.MODEL_SPACE_NAME);
|
|
16877
|
+
return t || (t = new mt(), t.name = mt.MODEL_SPACE_NAME, this.add(t)), t;
|
|
16850
16878
|
}
|
|
16851
16879
|
}
|
|
16852
|
-
class
|
|
16880
|
+
class Oo extends re {
|
|
16853
16881
|
/**
|
|
16854
16882
|
* Creates a new AcDbDimStyleTable instance.
|
|
16855
16883
|
*
|
|
@@ -17216,7 +17244,7 @@ class Do extends re {
|
|
|
17216
17244
|
});
|
|
17217
17245
|
}
|
|
17218
17246
|
}
|
|
17219
|
-
class
|
|
17247
|
+
class Ro extends re {
|
|
17220
17248
|
/**
|
|
17221
17249
|
* Creates a new AcDbLinetypeTable instance.
|
|
17222
17250
|
*
|
|
@@ -17231,7 +17259,7 @@ class zo extends re {
|
|
|
17231
17259
|
super(t);
|
|
17232
17260
|
}
|
|
17233
17261
|
}
|
|
17234
|
-
class
|
|
17262
|
+
class zo extends re {
|
|
17235
17263
|
/**
|
|
17236
17264
|
* Creates a new AcDbTextStyleTable instance.
|
|
17237
17265
|
*
|
|
@@ -17313,10 +17341,10 @@ class dh extends Wt {
|
|
|
17313
17341
|
/** Fired when a header system variable is changed */
|
|
17314
17342
|
headerSysVarChanged: new at()
|
|
17315
17343
|
}, this._angBase = 0, this._angDir = 0, this._aunits = rn.DecimalDegrees, this._celtscale = 1, this._cecolor = new te(), this._insunits = nn.Millimeters, this._ltscale = 1, this._pdmode = 0, this._pdsize = 0, this._tables = {
|
|
17316
|
-
blockTable: new
|
|
17317
|
-
dimStyleTable: new
|
|
17318
|
-
linetypeTable: new
|
|
17319
|
-
textStyleTable: new
|
|
17344
|
+
blockTable: new No(this),
|
|
17345
|
+
dimStyleTable: new Oo(this),
|
|
17346
|
+
linetypeTable: new Ro(this),
|
|
17347
|
+
textStyleTable: new zo(this),
|
|
17320
17348
|
layerTable: new Do(this),
|
|
17321
17349
|
viewportTable: new Fo(this)
|
|
17322
17350
|
}, this._dictionaries = {
|
|
@@ -17572,7 +17600,7 @@ class dh extends Wt {
|
|
|
17572
17600
|
* ```
|
|
17573
17601
|
*/
|
|
17574
17602
|
async read(t, e, s = Ze.DXF) {
|
|
17575
|
-
const n =
|
|
17603
|
+
const n = Tt.instance.get(s);
|
|
17576
17604
|
if (n == null)
|
|
17577
17605
|
throw new Error(
|
|
17578
17606
|
`Database converter for file type '${s}' isn't registered and can can't read this file!`
|
|
@@ -19221,7 +19249,7 @@ class Xo {
|
|
|
19221
19249
|
createLayout(t, e) {
|
|
19222
19250
|
const s = this.getWorkingDatabase(e), n = new Ln();
|
|
19223
19251
|
n.layoutName = t, n.tabOrder = s.dictionaries.layouts.maxTabOrder;
|
|
19224
|
-
const i = new
|
|
19252
|
+
const i = new mt();
|
|
19225
19253
|
return i.name = `*Paper_Space${n.tabOrder}`, s.tables.blockTable.add(i), s.dictionaries.layouts.setAt(t, n), { layout: n, btr: i };
|
|
19226
19254
|
}
|
|
19227
19255
|
/**
|
|
@@ -19234,7 +19262,7 @@ class Xo {
|
|
|
19234
19262
|
return e.dictionaries.layouts.getBtrIdAt(e.currentSpaceId);
|
|
19235
19263
|
}
|
|
19236
19264
|
getWorkingDatabase(t) {
|
|
19237
|
-
return t ||
|
|
19265
|
+
return t || Nn().workingDatabase;
|
|
19238
19266
|
}
|
|
19239
19267
|
setCurrentLayoutInternal(t, e) {
|
|
19240
19268
|
return t ? (this.events.layoutSwitched.dispatch({
|
|
@@ -19243,7 +19271,7 @@ class Xo {
|
|
|
19243
19271
|
}), e.currentSpaceId = t.blockTableRecordId, !0) : !1;
|
|
19244
19272
|
}
|
|
19245
19273
|
}
|
|
19246
|
-
function
|
|
19274
|
+
function Nn() {
|
|
19247
19275
|
return Ms.instance;
|
|
19248
19276
|
}
|
|
19249
19277
|
const es = class es {
|
|
@@ -19336,17 +19364,17 @@ export {
|
|
|
19336
19364
|
ch as AcDbArcDimension,
|
|
19337
19365
|
Yn as AcDbBatchProcessing,
|
|
19338
19366
|
In as AcDbBlockReference,
|
|
19339
|
-
|
|
19340
|
-
|
|
19367
|
+
No as AcDbBlockTable,
|
|
19368
|
+
mt as AcDbBlockTableRecord,
|
|
19341
19369
|
to as AcDbCircle,
|
|
19342
|
-
|
|
19370
|
+
gt as AcDbCurve,
|
|
19343
19371
|
dh as AcDbDatabase,
|
|
19344
19372
|
_a as AcDbDatabaseConverter,
|
|
19345
|
-
|
|
19373
|
+
Tt as AcDbDatabaseConverterManager,
|
|
19346
19374
|
To as AcDbDiametricDimension,
|
|
19347
19375
|
kn as AcDbDictionary,
|
|
19348
19376
|
ya as AcDbDimArrowType,
|
|
19349
|
-
|
|
19377
|
+
Oo as AcDbDimStyleTable,
|
|
19350
19378
|
Je as AcDbDimStyleTableRecord,
|
|
19351
19379
|
Bo as AcDbDimTextHorizontal,
|
|
19352
19380
|
Vo as AcDbDimTextVertical,
|
|
@@ -19356,7 +19384,7 @@ export {
|
|
|
19356
19384
|
ee as AcDbDimension,
|
|
19357
19385
|
Co as AcDbDxfConverter,
|
|
19358
19386
|
Qa as AcDbEllipse,
|
|
19359
|
-
|
|
19387
|
+
St as AcDbEntity,
|
|
19360
19388
|
Ze as AcDbFileType,
|
|
19361
19389
|
ro as AcDbHatch,
|
|
19362
19390
|
eo as AcDbHatchPatternType,
|
|
@@ -19371,7 +19399,7 @@ export {
|
|
|
19371
19399
|
no as AcDbLeaderAnnotationType,
|
|
19372
19400
|
ao as AcDbLine,
|
|
19373
19401
|
Po as AcDbLineSpacingStyle,
|
|
19374
|
-
|
|
19402
|
+
Ro as AcDbLinetypeTable,
|
|
19375
19403
|
Uo as AcDbLinetypeTableRecord,
|
|
19376
19404
|
oo as AcDbMText,
|
|
19377
19405
|
Wt as AcDbObject,
|
|
@@ -19393,7 +19421,7 @@ export {
|
|
|
19393
19421
|
lo as AcDbTable,
|
|
19394
19422
|
mo as AcDbText,
|
|
19395
19423
|
co as AcDbTextHorizontalMode,
|
|
19396
|
-
|
|
19424
|
+
zo as AcDbTextStyleTable,
|
|
19397
19425
|
Wo as AcDbTextStyleTableRecord,
|
|
19398
19426
|
uo as AcDbTextVerticalMode,
|
|
19399
19427
|
go as AcDbTrace,
|
|
@@ -19403,22 +19431,22 @@ export {
|
|
|
19403
19431
|
qo as AcDbViewportTableRecord,
|
|
19404
19432
|
wo as AcDbWipeout,
|
|
19405
19433
|
Ao as AcDbXline,
|
|
19406
|
-
|
|
19434
|
+
Os as AcGeArea2d,
|
|
19407
19435
|
Q as AcGeBox2d,
|
|
19408
|
-
|
|
19436
|
+
O as AcGeBox3d,
|
|
19409
19437
|
Ka as AcGeCatmullRomCurve3d,
|
|
19410
19438
|
we as AcGeCircArc2d,
|
|
19411
19439
|
Qt as AcGeCircArc3d,
|
|
19412
19440
|
Ie as AcGeCurve2d,
|
|
19413
19441
|
Ds as AcGeEllipseArc2d,
|
|
19414
|
-
|
|
19442
|
+
Rs as AcGeEllipseArc3d,
|
|
19415
19443
|
qa as AcGeEuler,
|
|
19416
19444
|
Fa as AcGeGeometryUtil,
|
|
19417
|
-
|
|
19445
|
+
zs as AcGeLine2d,
|
|
19418
19446
|
Ht as AcGeLine3d,
|
|
19419
19447
|
$a as AcGeLoop2d,
|
|
19420
19448
|
k as AcGeMathUtil,
|
|
19421
|
-
|
|
19449
|
+
Ns as AcGeMatrix2d,
|
|
19422
19450
|
Jt as AcGeMatrix3d,
|
|
19423
19451
|
ut as AcGeNurbsCurve,
|
|
19424
19452
|
ss as AcGePlane,
|
|
@@ -19451,18 +19479,18 @@ export {
|
|
|
19451
19479
|
gn as ORIGIN_POINT_3D,
|
|
19452
19480
|
hn as RAD2DEG,
|
|
19453
19481
|
H as TAU,
|
|
19454
|
-
|
|
19482
|
+
Nn as acdbHostApplicationServices,
|
|
19455
19483
|
Es as basisFunction,
|
|
19456
19484
|
Ga as calculateCurveLength,
|
|
19457
19485
|
Ca as ceilPowerOfTwo,
|
|
19458
|
-
|
|
19459
|
-
|
|
19486
|
+
Lt as clamp,
|
|
19487
|
+
Ne as clone,
|
|
19460
19488
|
wa as damp,
|
|
19461
19489
|
Pe as defaults,
|
|
19462
19490
|
va as degToRad,
|
|
19463
19491
|
ln as euclideanModulo,
|
|
19464
19492
|
Ke as evaluateNurbsPoint,
|
|
19465
|
-
|
|
19493
|
+
Na as floorPowerOfTwo,
|
|
19466
19494
|
Va as generateChordKnots,
|
|
19467
19495
|
ja as generateSqrtChordKnots,
|
|
19468
19496
|
xa as generateUUID,
|
|
@@ -19471,14 +19499,14 @@ export {
|
|
|
19471
19499
|
dn as intPartLength,
|
|
19472
19500
|
lh as interpolateControlPoints,
|
|
19473
19501
|
ba as inverseLerp,
|
|
19474
|
-
|
|
19502
|
+
Oa as isBetween,
|
|
19475
19503
|
Da as isBetweenAngle,
|
|
19476
19504
|
Vn as isEmpty,
|
|
19477
19505
|
be as isEqual,
|
|
19478
19506
|
oh as isImperialUnits,
|
|
19479
19507
|
ah as isMetricUnits,
|
|
19480
19508
|
_n as isPointInPolygon,
|
|
19481
|
-
|
|
19509
|
+
za as isPolygonIntersect,
|
|
19482
19510
|
ka as isPowerOfTwo,
|
|
19483
19511
|
cn as lerp,
|
|
19484
19512
|
je as log,
|
|
@@ -19489,7 +19517,7 @@ export {
|
|
|
19489
19517
|
Ta as randFloat,
|
|
19490
19518
|
Sa as randFloatSpread,
|
|
19491
19519
|
Ea as randInt,
|
|
19492
|
-
|
|
19520
|
+
Ra as relativeEps,
|
|
19493
19521
|
Ma as seededRandom,
|
|
19494
19522
|
Qo as setLogLevel,
|
|
19495
19523
|
Ia as smootherstep,
|