mxcad 1.0.86 → 1.0.87
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/mxcad.d.ts +13 -0
- package/dist/mxcad.es.js +150 -143
- package/dist/mxcad.umd.js +2 -2
- package/dist/wasm/2d/mxdrawassembly_min.js +547 -546
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +540 -539
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.es.js
CHANGED
|
@@ -112,7 +112,7 @@ class bC {
|
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
let k = new bC();
|
|
115
|
-
class
|
|
115
|
+
class p {
|
|
116
116
|
static kOrigin;
|
|
117
117
|
imp;
|
|
118
118
|
constructor(t, e, C) {
|
|
@@ -146,7 +146,7 @@ class m {
|
|
|
146
146
|
return this.imp.isEqualTo(t.imp);
|
|
147
147
|
}
|
|
148
148
|
clone() {
|
|
149
|
-
return new
|
|
149
|
+
return new p(this.imp);
|
|
150
150
|
}
|
|
151
151
|
get x() {
|
|
152
152
|
return this.imp.x;
|
|
@@ -375,7 +375,7 @@ class GC {
|
|
|
375
375
|
return this.imp.length();
|
|
376
376
|
}
|
|
377
377
|
at(t) {
|
|
378
|
-
return new
|
|
378
|
+
return new p(this.imp.at(t));
|
|
379
379
|
}
|
|
380
380
|
setAt(t, e) {
|
|
381
381
|
this.imp.setAt(t, e.imp);
|
|
@@ -773,16 +773,16 @@ class qt extends ot {
|
|
|
773
773
|
return new be(C);
|
|
774
774
|
}
|
|
775
775
|
get origin() {
|
|
776
|
-
return new
|
|
776
|
+
return new p(this.imp.origin());
|
|
777
777
|
}
|
|
778
778
|
set origin(t) {
|
|
779
779
|
this.imp.setOrigin(t.imp);
|
|
780
780
|
}
|
|
781
781
|
getBoundingBox() {
|
|
782
782
|
let t = this.imp.getBoundingBox();
|
|
783
|
-
return t.length() < 2 ? { minPt: new
|
|
784
|
-
minPt: new
|
|
785
|
-
maxPt: new
|
|
783
|
+
return t.length() < 2 ? { minPt: new p(), maxPt: new p(), ret: !1 } : {
|
|
784
|
+
minPt: new p(t.at(0)),
|
|
785
|
+
maxPt: new p(t.at(1)),
|
|
786
786
|
ret: !0
|
|
787
787
|
};
|
|
788
788
|
}
|
|
@@ -899,13 +899,13 @@ class mt extends ot {
|
|
|
899
899
|
let t = this.imp.GetBoundingBox();
|
|
900
900
|
if (t) {
|
|
901
901
|
let e = {
|
|
902
|
-
minPt: new
|
|
903
|
-
maxPt: new
|
|
902
|
+
minPt: new p(t.AtPoint(0)),
|
|
903
|
+
maxPt: new p(t.AtPoint(1)),
|
|
904
904
|
ret: !0
|
|
905
905
|
};
|
|
906
906
|
return F.App.DestroyObject(t), e;
|
|
907
907
|
} else
|
|
908
|
-
return { minPt: new
|
|
908
|
+
return { minPt: new p(), maxPt: new p(), ret: !1 };
|
|
909
909
|
}
|
|
910
910
|
}
|
|
911
911
|
class at extends mt {
|
|
@@ -929,25 +929,25 @@ class at extends mt {
|
|
|
929
929
|
}
|
|
930
930
|
getPointAtDist(t) {
|
|
931
931
|
return {
|
|
932
|
-
val: new
|
|
932
|
+
val: new p(this.imp.getPointAtDist(t)),
|
|
933
933
|
ret: F.getCallResult()
|
|
934
934
|
};
|
|
935
935
|
}
|
|
936
936
|
getStartPoint() {
|
|
937
937
|
return {
|
|
938
|
-
val: new
|
|
938
|
+
val: new p(this.imp.getStartPoint()),
|
|
939
939
|
ret: F.getCallResult()
|
|
940
940
|
};
|
|
941
941
|
}
|
|
942
942
|
getEndPoint() {
|
|
943
943
|
return {
|
|
944
|
-
val: new
|
|
944
|
+
val: new p(this.imp.getStartPoint()),
|
|
945
945
|
ret: F.getCallResult()
|
|
946
946
|
};
|
|
947
947
|
}
|
|
948
948
|
getPointAtParam(t) {
|
|
949
949
|
return {
|
|
950
|
-
val: new
|
|
950
|
+
val: new p(this.imp.getPointAtParam(t)),
|
|
951
951
|
ret: F.getCallResult()
|
|
952
952
|
};
|
|
953
953
|
}
|
|
@@ -971,7 +971,7 @@ class at extends mt {
|
|
|
971
971
|
}
|
|
972
972
|
getClosestPointTo(t, e) {
|
|
973
973
|
return {
|
|
974
|
-
val: new
|
|
974
|
+
val: new p(this.imp.getClosestPointTo(t.imp, e)),
|
|
975
975
|
ret: F.getCallResult()
|
|
976
976
|
};
|
|
977
977
|
}
|
|
@@ -1008,16 +1008,16 @@ class at extends mt {
|
|
|
1008
1008
|
}
|
|
1009
1009
|
class kt extends at {
|
|
1010
1010
|
constructor(t, e, C, i, D, B) {
|
|
1011
|
-
t instanceof Object ? t instanceof
|
|
1011
|
+
t instanceof Object ? t instanceof p ? (super(), this.initTempObject(new F.mxcadassemblyimp.MdDbLine()), e instanceof p && (this.startPoint = t, this.endPoint = e)) : super(t) : (super(), this.initTempObject(new F.mxcadassemblyimp.MdDbLine()), this.startPoint = new p(t, e, C), this.endPoint = new p(i, D, B));
|
|
1012
1012
|
}
|
|
1013
1013
|
get startPoint() {
|
|
1014
|
-
return new
|
|
1014
|
+
return new p(this.imp.startPoint());
|
|
1015
1015
|
}
|
|
1016
1016
|
set startPoint(t) {
|
|
1017
1017
|
this.imp.setStartPoint(t.imp);
|
|
1018
1018
|
}
|
|
1019
1019
|
get endPoint() {
|
|
1020
|
-
return new
|
|
1020
|
+
return new p(this.imp.endPoint());
|
|
1021
1021
|
}
|
|
1022
1022
|
set endPoint(t) {
|
|
1023
1023
|
this.imp.setEndPoint(t.imp);
|
|
@@ -1028,13 +1028,13 @@ class Ce extends mt {
|
|
|
1028
1028
|
super(t), t || this.initTempObject(new F.mxcadassemblyimp.MdDbText());
|
|
1029
1029
|
}
|
|
1030
1030
|
get position() {
|
|
1031
|
-
return new
|
|
1031
|
+
return new p(this.imp.position());
|
|
1032
1032
|
}
|
|
1033
1033
|
set position(t) {
|
|
1034
1034
|
this.imp.setPosition(t.imp);
|
|
1035
1035
|
}
|
|
1036
1036
|
get alignmentPoint() {
|
|
1037
|
-
return new
|
|
1037
|
+
return new p(this.imp.position());
|
|
1038
1038
|
}
|
|
1039
1039
|
set alignmentPoint(t) {
|
|
1040
1040
|
this.imp.setAlignmentPoint(t.imp);
|
|
@@ -1087,7 +1087,7 @@ class Ht extends mt {
|
|
|
1087
1087
|
super(t), t || this.initTempObject(new F.mxcadassemblyimp.MdDbMText());
|
|
1088
1088
|
}
|
|
1089
1089
|
get location() {
|
|
1090
|
-
return new
|
|
1090
|
+
return new p(this.imp.location());
|
|
1091
1091
|
}
|
|
1092
1092
|
set location(t) {
|
|
1093
1093
|
this.imp.setLocation(t.imp);
|
|
@@ -1125,13 +1125,13 @@ class Ht extends mt {
|
|
|
1125
1125
|
}
|
|
1126
1126
|
class ht extends at {
|
|
1127
1127
|
constructor(t, e, C, i) {
|
|
1128
|
-
t instanceof Object ? super(t) : (super(), this.initTempObject(new F.mxcadassemblyimp.MdDbCircle()), typeof t == "number" && (this.imp.setCenter(new
|
|
1128
|
+
t instanceof Object ? super(t) : (super(), this.initTempObject(new F.mxcadassemblyimp.MdDbCircle()), typeof t == "number" && (this.imp.setCenter(new p(t, e, C).imp), this.imp.setRadius(i)));
|
|
1129
1129
|
}
|
|
1130
1130
|
setCenter(t, e, C) {
|
|
1131
|
-
this.imp.setCenter(new
|
|
1131
|
+
this.imp.setCenter(new p(t, e, C).imp);
|
|
1132
1132
|
}
|
|
1133
1133
|
get center() {
|
|
1134
|
-
return new
|
|
1134
|
+
return new p(this.imp.center());
|
|
1135
1135
|
}
|
|
1136
1136
|
set center(t) {
|
|
1137
1137
|
this.imp.setCenter(t.imp);
|
|
@@ -1203,7 +1203,7 @@ class ie extends mt {
|
|
|
1203
1203
|
this.imp.setBlockTableRecordId(t.id);
|
|
1204
1204
|
}
|
|
1205
1205
|
get position() {
|
|
1206
|
-
return new
|
|
1206
|
+
return new p(this.imp.position());
|
|
1207
1207
|
}
|
|
1208
1208
|
set position(t) {
|
|
1209
1209
|
this.imp.setPosition(t.imp);
|
|
@@ -1232,7 +1232,7 @@ class Fe extends mt {
|
|
|
1232
1232
|
super(t);
|
|
1233
1233
|
}
|
|
1234
1234
|
get textPosition() {
|
|
1235
|
-
return new
|
|
1235
|
+
return new p(this.imp.textPosition());
|
|
1236
1236
|
}
|
|
1237
1237
|
set textPosition(t) {
|
|
1238
1238
|
this.imp.setTextPosition(t.imp);
|
|
@@ -1318,19 +1318,19 @@ class Ee extends Fe {
|
|
|
1318
1318
|
super(t), t || this.initTempObject(new F.mxcadassemblyimp.MdDbAlignedDimension());
|
|
1319
1319
|
}
|
|
1320
1320
|
get xLine1Point() {
|
|
1321
|
-
return new
|
|
1321
|
+
return new p(this.imp.xLine1Point());
|
|
1322
1322
|
}
|
|
1323
1323
|
set xLine1Point(t) {
|
|
1324
1324
|
this.imp.setXLine1Point(t.imp);
|
|
1325
1325
|
}
|
|
1326
1326
|
get xLine2Point() {
|
|
1327
|
-
return new
|
|
1327
|
+
return new p(this.imp.xLine2Point());
|
|
1328
1328
|
}
|
|
1329
1329
|
set xLine2Point(t) {
|
|
1330
1330
|
this.imp.setXLine2Point(t.imp);
|
|
1331
1331
|
}
|
|
1332
1332
|
get dimLinePoint() {
|
|
1333
|
-
return new
|
|
1333
|
+
return new p(this.imp.dimLinePoint());
|
|
1334
1334
|
}
|
|
1335
1335
|
set dimLinePoint(t) {
|
|
1336
1336
|
this.imp.setDimLinePoint(t.imp);
|
|
@@ -1347,19 +1347,19 @@ class De extends Fe {
|
|
|
1347
1347
|
super(t), t || this.initTempObject(new F.mxcadassemblyimp.MdDbRotatedDimension());
|
|
1348
1348
|
}
|
|
1349
1349
|
get xLine1Point() {
|
|
1350
|
-
return new
|
|
1350
|
+
return new p(this.imp.xLine1Point());
|
|
1351
1351
|
}
|
|
1352
1352
|
set xLine1Point(t) {
|
|
1353
1353
|
this.imp.setXLine1Point(t.imp);
|
|
1354
1354
|
}
|
|
1355
1355
|
get xLine2Point() {
|
|
1356
|
-
return new
|
|
1356
|
+
return new p(this.imp.xLine2Point());
|
|
1357
1357
|
}
|
|
1358
1358
|
set xLine2Point(t) {
|
|
1359
1359
|
this.imp.setXLine2Point(t.imp);
|
|
1360
1360
|
}
|
|
1361
1361
|
get dimLinePoint() {
|
|
1362
|
-
return new
|
|
1362
|
+
return new p(this.imp.dimLinePoint());
|
|
1363
1363
|
}
|
|
1364
1364
|
set dimLinePoint(t) {
|
|
1365
1365
|
this.imp.setDimLinePoint(t.imp);
|
|
@@ -1382,10 +1382,10 @@ class Wt extends at {
|
|
|
1382
1382
|
super(t), t || this.initTempObject(new F.mxcadassemblyimp.MdDbArc());
|
|
1383
1383
|
}
|
|
1384
1384
|
setCenter(t, e, C) {
|
|
1385
|
-
this.imp.setCenter(new
|
|
1385
|
+
this.imp.setCenter(new p(t, e, C).imp);
|
|
1386
1386
|
}
|
|
1387
1387
|
get center() {
|
|
1388
|
-
return new
|
|
1388
|
+
return new p(this.imp.center());
|
|
1389
1389
|
}
|
|
1390
1390
|
set center(t) {
|
|
1391
1391
|
this.imp.setCenter(t.imp);
|
|
@@ -1421,13 +1421,13 @@ class Wt extends at {
|
|
|
1421
1421
|
}
|
|
1422
1422
|
class Zt extends at {
|
|
1423
1423
|
constructor(t, e, C, i, D, B, r, n, A) {
|
|
1424
|
-
t instanceof Object ? super(t) : (super(), this.initTempObject(new F.mxcadassemblyimp.MdDbEllipse()), typeof t == "number" && (r || (r = 1), typeof n != "number" && (n = 0), typeof A != "number" && (A = 6.283185307179586), this.imp.InitData(new
|
|
1424
|
+
t instanceof Object ? super(t) : (super(), this.initTempObject(new F.mxcadassemblyimp.MdDbEllipse()), typeof t == "number" && (r || (r = 1), typeof n != "number" && (n = 0), typeof A != "number" && (A = 6.283185307179586), this.imp.InitData(new p(t, e, C).imp, new y(i, D, B).imp, r, n, A)));
|
|
1425
1425
|
}
|
|
1426
1426
|
setCenter(t, e, C) {
|
|
1427
|
-
this.imp.setCenter(new
|
|
1427
|
+
this.imp.setCenter(new p(t, e, C).imp);
|
|
1428
1428
|
}
|
|
1429
1429
|
get center() {
|
|
1430
|
-
return new
|
|
1430
|
+
return new p(this.imp.center());
|
|
1431
1431
|
}
|
|
1432
1432
|
set center(t) {
|
|
1433
1433
|
this.imp.setCenter(t.imp);
|
|
@@ -1471,13 +1471,13 @@ class Zt extends at {
|
|
|
1471
1471
|
}
|
|
1472
1472
|
class oe extends mt {
|
|
1473
1473
|
constructor(t, e, C) {
|
|
1474
|
-
t instanceof Object ? t instanceof
|
|
1474
|
+
t instanceof Object ? t instanceof p ? (super(), this.initTempObject(new F.mxcadassemblyimp.MdDbPoint()), this.imp.setPosition(t.imp)) : super(t) : (super(), this.initTempObject(new F.mxcadassemblyimp.MdDbPoint()), typeof t == "number" && this.imp.setPosition(new p(t, e, C).imp));
|
|
1475
1475
|
}
|
|
1476
1476
|
setPosition(t, e, C) {
|
|
1477
|
-
this.imp.setPosition(new
|
|
1477
|
+
this.imp.setPosition(new p(t, e, C).imp);
|
|
1478
1478
|
}
|
|
1479
1479
|
get position() {
|
|
1480
|
-
return new
|
|
1480
|
+
return new p(this.imp.position());
|
|
1481
1481
|
}
|
|
1482
1482
|
set position(t) {
|
|
1483
1483
|
this.imp.setPosition(t.imp);
|
|
@@ -1521,7 +1521,7 @@ class M extends It {
|
|
|
1521
1521
|
return e ? { val: k.decodeFromGb2312(this.imp.AtString(t)), ret: F.getCallResult() } : { val: this.imp.AtString(t), ret: F.getCallResult() };
|
|
1522
1522
|
}
|
|
1523
1523
|
AtPoint(t) {
|
|
1524
|
-
return { val: new
|
|
1524
|
+
return { val: new p(this.imp.AtPoint(t)), ret: F.getCallResult() };
|
|
1525
1525
|
}
|
|
1526
1526
|
ItemDataType() {
|
|
1527
1527
|
return this.imp.ItemDataType();
|
|
@@ -1640,7 +1640,7 @@ class Ue {
|
|
|
1640
1640
|
let r = await te.getCorner(e.toVector3(), t, i, (n) => {
|
|
1641
1641
|
D = n.detailedResult;
|
|
1642
1642
|
});
|
|
1643
|
-
r && (B = new
|
|
1643
|
+
r && (B = new p(r));
|
|
1644
1644
|
break;
|
|
1645
1645
|
}
|
|
1646
1646
|
return C && C(D), new Promise((r) => {
|
|
@@ -1656,7 +1656,7 @@ class Ue {
|
|
|
1656
1656
|
let B = D.GetBoundingBox();
|
|
1657
1657
|
!B.ret || (!e || !C ? (e = new THREE.Vector3(B.minPt.x, B.minPt.y, 0), C = new THREE.Vector3(B.maxPt.x, B.maxPt.y, 0)) : (e.x > B.minPt.x && (e.x = B.minPt.x), e.y > B.minPt.y && (e.y = B.minPt.y), C.x < B.maxPt.x && (C.x = B.maxPt.x), C.y < B.maxPt.y && (C.y = B.maxPt.y)));
|
|
1658
1658
|
}), e && C)
|
|
1659
|
-
return { minPt: new
|
|
1659
|
+
return { minPt: new p(e), maxPt: new p(C) };
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
1662
|
let Q = new Ue();
|
|
@@ -1664,8 +1664,8 @@ var Ye = /* @__PURE__ */ ((E) => (E[E.kSelected = 0] = "kSelected", E[E.kNone =
|
|
|
1664
1664
|
class lt extends It {
|
|
1665
1665
|
isWhileSelect = !0;
|
|
1666
1666
|
isSelectHighlight = !0;
|
|
1667
|
-
selectPt1 = new
|
|
1668
|
-
selectPt2 = new
|
|
1667
|
+
selectPt1 = new p();
|
|
1668
|
+
selectPt2 = new p();
|
|
1669
1669
|
constructor() {
|
|
1670
1670
|
super(), this.initTempObject(new F.mxcadassemblyimp.McDrawSelSet());
|
|
1671
1671
|
}
|
|
@@ -1699,7 +1699,7 @@ class lt extends It {
|
|
|
1699
1699
|
return t;
|
|
1700
1700
|
}
|
|
1701
1701
|
async userSelect(t, e = null) {
|
|
1702
|
-
this.selectPt1 = new
|
|
1702
|
+
this.selectPt1 = new p(), this.selectPt2 = new p();
|
|
1703
1703
|
let C = new x();
|
|
1704
1704
|
t && C.setMessage(t), C.setCursorType(ne.kRect), C.setDynamicInputType(Gt.kDynTip), C.setDisableOsnap(!0);
|
|
1705
1705
|
let i = 0, D = _t(e);
|
|
@@ -1750,7 +1750,7 @@ class ct {
|
|
|
1750
1750
|
}
|
|
1751
1751
|
setUserDraw(t) {
|
|
1752
1752
|
this.imp.setUserDraw((e, C) => {
|
|
1753
|
-
t(new
|
|
1753
|
+
t(new p(e), C);
|
|
1754
1754
|
});
|
|
1755
1755
|
}
|
|
1756
1756
|
getDetailedResult() {
|
|
@@ -1806,18 +1806,18 @@ class nt extends ct {
|
|
|
1806
1806
|
go() {
|
|
1807
1807
|
return new Promise((t) => {
|
|
1808
1808
|
this.imp.go((e) => {
|
|
1809
|
-
e != 0 ? t(null) : t(new
|
|
1809
|
+
e != 0 ? t(null) : t(new p(this.imp.value()));
|
|
1810
1810
|
});
|
|
1811
1811
|
});
|
|
1812
1812
|
}
|
|
1813
1813
|
value() {
|
|
1814
|
-
return new
|
|
1814
|
+
return new p(this.imp.value());
|
|
1815
1815
|
}
|
|
1816
1816
|
getCADValue() {
|
|
1817
|
-
return new
|
|
1817
|
+
return new p(this.imp.getCADValue());
|
|
1818
1818
|
}
|
|
1819
1819
|
basePt() {
|
|
1820
|
-
return new
|
|
1820
|
+
return new p(this.imp.basePt());
|
|
1821
1821
|
}
|
|
1822
1822
|
setBasePt(t) {
|
|
1823
1823
|
this.imp.setBasePt(t.toVector3());
|
|
@@ -1834,7 +1834,7 @@ class Xt extends ct {
|
|
|
1834
1834
|
return this.imp.value();
|
|
1835
1835
|
}
|
|
1836
1836
|
basePt() {
|
|
1837
|
-
return new
|
|
1837
|
+
return new p(this.imp.basePt());
|
|
1838
1838
|
}
|
|
1839
1839
|
setBasePt(t) {
|
|
1840
1840
|
this.imp.setBasePt(t.toVector3());
|
|
@@ -1854,7 +1854,7 @@ class VC extends ct {
|
|
|
1854
1854
|
return this.imp.value();
|
|
1855
1855
|
}
|
|
1856
1856
|
basePt() {
|
|
1857
|
-
return new
|
|
1857
|
+
return new p(this.imp.basePt());
|
|
1858
1858
|
}
|
|
1859
1859
|
setBasePt(t) {
|
|
1860
1860
|
this.imp.setBasePt(t.toVector3());
|
|
@@ -1922,13 +1922,13 @@ class St extends ct {
|
|
|
1922
1922
|
});
|
|
1923
1923
|
}
|
|
1924
1924
|
pickPoint() {
|
|
1925
|
-
return new
|
|
1925
|
+
return new p(this.imp.value());
|
|
1926
1926
|
}
|
|
1927
1927
|
value() {
|
|
1928
1928
|
return this.id;
|
|
1929
1929
|
}
|
|
1930
1930
|
getCADPickPoint() {
|
|
1931
|
-
return new
|
|
1931
|
+
return new p(this.imp.getCADValue());
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
class yt {
|
|
@@ -2003,6 +2003,12 @@ class yt {
|
|
|
2003
2003
|
GetSysVarDouble(t) {
|
|
2004
2004
|
return this.imp.GetSysVarDouble(t);
|
|
2005
2005
|
}
|
|
2006
|
+
GetSysVarPoint(t) {
|
|
2007
|
+
return new p(this.imp.GetSysVarPoint(t));
|
|
2008
|
+
}
|
|
2009
|
+
SetSysVarPoint(t, e) {
|
|
2010
|
+
return this.imp.SetSysVarPoint(t, e.imp);
|
|
2011
|
+
}
|
|
2006
2012
|
SetSysVarDouble(t, e) {
|
|
2007
2013
|
return this.imp.SetSysVarDouble(t, e);
|
|
2008
2014
|
}
|
|
@@ -2175,17 +2181,17 @@ class yt {
|
|
|
2175
2181
|
return F;
|
|
2176
2182
|
}
|
|
2177
2183
|
DocCoord2Cad(t) {
|
|
2178
|
-
return new
|
|
2184
|
+
return new p(this.imp.mxdrawObject.docCoord2Cad(t.x, t.y, t.z));
|
|
2179
2185
|
}
|
|
2180
2186
|
CadCoord2Doc(t) {
|
|
2181
|
-
return new
|
|
2187
|
+
return new p(this.imp.mxdrawObject.cadCoord2Doc(t.x, t.y, t.z));
|
|
2182
2188
|
}
|
|
2183
2189
|
}
|
|
2184
2190
|
class je {
|
|
2185
2191
|
imp;
|
|
2186
2192
|
MxCADAssist;
|
|
2187
2193
|
init(t) {
|
|
2188
|
-
this.imp = t, y.kZAxis = new y(0, 0, 1), y.kNegateZAxis = new y(0, 0, -1), y.kXAxis = new y(1, 0, 0), y.kYAxis = new y(0, 1, 0),
|
|
2194
|
+
this.imp = t, y.kZAxis = new y(0, 0, 1), y.kNegateZAxis = new y(0, 0, -1), y.kXAxis = new y(1, 0, 0), y.kYAxis = new y(0, 1, 0), p.kOrigin = new p(0, 0, 0), st.kIdentity = new st(), this.MxCADAssist = new F.mxcadassemblyimp.MxDrawAssist();
|
|
2189
2195
|
}
|
|
2190
2196
|
getImp() {
|
|
2191
2197
|
return this.imp;
|
|
@@ -2280,7 +2286,7 @@ class Ve {
|
|
|
2280
2286
|
return this.App.getLastCallResult();
|
|
2281
2287
|
}
|
|
2282
2288
|
NewMcGePoint3d(t) {
|
|
2283
|
-
let e = new
|
|
2289
|
+
let e = new p();
|
|
2284
2290
|
return t && typeof t.x == "number" && typeof t.y == "number" && (e.x = t.x, e.y = t.y, typeof t.z == "number" && (e.z = t.z)), e;
|
|
2285
2291
|
}
|
|
2286
2292
|
NewMcGeVector3d(t) {
|
|
@@ -3018,7 +3024,7 @@ async function Bi() {
|
|
|
3018
3024
|
i.setMessage("\u6307\u5B9A\u65CB\u8F6C\u89D2\u5EA6"), i.setBasePt(D), i.setUseBasePt(!0), i.setUserDraw((a, c) => {
|
|
3019
3025
|
let h = a, g = D, N = h.sub(g).angleTo2(y.kXAxis, y.kNegateZAxis), d = new st();
|
|
3020
3026
|
if (d.setToRotation(N, y.kZAxis, g), t && e) {
|
|
3021
|
-
let I = new
|
|
3027
|
+
let I = new p(t.x, e.y, 0), V = new p(e.x, t.y, 0), U = new p(I.x, V.y, 0), G = new p(V.x, I.y, 0);
|
|
3022
3028
|
I.transformBy(d), V.transformBy(d), U.transformBy(d), G.transformBy(d), c.drawLine(G.toVector3(), I.toVector3()), c.drawLine(I.toVector3(), U.toVector3()), c.drawLine(U.toVector3(), V.toVector3()), c.drawLine(V.toVector3(), G.toVector3());
|
|
3023
3029
|
}
|
|
3024
3030
|
g = F.GetCurrentMxCAD().DocCoord2Cad(g), d.setToRotation(N, y.kZAxis, g);
|
|
@@ -3058,14 +3064,14 @@ async function ri() {
|
|
|
3058
3064
|
if (n == null)
|
|
3059
3065
|
return;
|
|
3060
3066
|
r.setMessage("\u6307\u5B9A\u6BD4\u4F8B\u56E0\u5B50"), r.setBasePt(n), r.setUseBasePt(!0), r.setUserDraw((g, O) => {
|
|
3061
|
-
let N = new
|
|
3067
|
+
let N = new p(g), d = new p(n), I = N.distanceTo(d);
|
|
3062
3068
|
if (I < 1e-5)
|
|
3063
3069
|
return;
|
|
3064
3070
|
let V = I / B;
|
|
3065
3071
|
V > 1e5 && (V = 1e5);
|
|
3066
3072
|
let U = new st();
|
|
3067
3073
|
if (U.setToScaling(V, d), t && e) {
|
|
3068
|
-
let G = new
|
|
3074
|
+
let G = new p(t.x, e.y, 0), f = new p(e.x, t.y, 0), At = new p(G.x, f.y, 0), Ot = new p(f.x, G.y, 0);
|
|
3069
3075
|
G.transformBy(U), f.transformBy(U), At.transformBy(U), Ot.transformBy(U), O.drawLine(Ot.toVector3(), G.toVector3()), O.drawLine(G.toVector3(), At.toVector3()), O.drawLine(At.toVector3(), f.toVector3()), O.drawLine(f.toVector3(), Ot.toVector3());
|
|
3070
3076
|
}
|
|
3071
3077
|
d = F.GetCurrentMxCAD().DocCoord2Cad(d), U.setToScaling(V, d);
|
|
@@ -3133,7 +3139,8 @@ async function Ai() {
|
|
|
3133
3139
|
});
|
|
3134
3140
|
}
|
|
3135
3141
|
function Fi() {
|
|
3136
|
-
|
|
3142
|
+
let E = R.getCurrentDraw().screenCoordLong2Doc(21);
|
|
3143
|
+
console.log("len" + E), F.GetCurrentMxCAD().getImp().regen();
|
|
3137
3144
|
}
|
|
3138
3145
|
async function oi() {
|
|
3139
3146
|
let E = await Q.userSelect("\u9009\u62E9\u955C\u50CF\u5BF9\u8C61");
|
|
@@ -3153,7 +3160,7 @@ async function oi() {
|
|
|
3153
3160
|
if (t && e) {
|
|
3154
3161
|
let A = new st();
|
|
3155
3162
|
A.setMirror(D, r);
|
|
3156
|
-
let u = new
|
|
3163
|
+
let u = new p(t.x, e.y, 0), l = new p(e.x, t.y, 0), a = new p(u.x, l.y, 0), c = new p(l.x, u.y, 0);
|
|
3157
3164
|
u.transformBy(A), l.transformBy(A), a.transformBy(A), c.transformBy(A), n.drawLine(c.toVector3(), u.toVector3()), n.drawLine(u.toVector3(), a.toVector3()), n.drawLine(a.toVector3(), l.toVector3()), n.drawLine(l.toVector3(), c.toVector3());
|
|
3158
3165
|
}
|
|
3159
3166
|
for (let A = 0; A < E.length && A < 10; A++) {
|
|
@@ -3399,7 +3406,7 @@ class Tt {
|
|
|
3399
3406
|
MdGeDir: Y,
|
|
3400
3407
|
MdGeAxis: S,
|
|
3401
3408
|
MdGeCSYSR: P,
|
|
3402
|
-
MdGePoint:
|
|
3409
|
+
MdGePoint: m,
|
|
3403
3410
|
MdGeVec: w,
|
|
3404
3411
|
MdGeAngleDim: Xe,
|
|
3405
3412
|
MdGeArray1OfInteger: bt,
|
|
@@ -3511,7 +3518,7 @@ class pt extends o {
|
|
|
3511
3518
|
}
|
|
3512
3519
|
class L extends o {
|
|
3513
3520
|
constructor(t, e) {
|
|
3514
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeEdge())) : t instanceof
|
|
3521
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeEdge())) : t instanceof m && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeEdge(t.getImp(), e?.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
3515
3522
|
}
|
|
3516
3523
|
Wire() {
|
|
3517
3524
|
return new b(this.imp.Wire());
|
|
@@ -3980,13 +3987,13 @@ class Y extends _ {
|
|
|
3980
3987
|
}
|
|
3981
3988
|
class S extends _ {
|
|
3982
3989
|
constructor(t, e) {
|
|
3983
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeAxis())) : t instanceof
|
|
3990
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeAxis())) : t instanceof m && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeAxis(t.getImp(), e?.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
3984
3991
|
}
|
|
3985
3992
|
Direction() {
|
|
3986
3993
|
return new Y(this.imp.Direction());
|
|
3987
3994
|
}
|
|
3988
3995
|
Location() {
|
|
3989
|
-
return new
|
|
3996
|
+
return new m(this.imp.Location());
|
|
3990
3997
|
}
|
|
3991
3998
|
SetDirection(t) {
|
|
3992
3999
|
this.imp.SetDirection(t.getImp());
|
|
@@ -3997,10 +4004,10 @@ class S extends _ {
|
|
|
3997
4004
|
}
|
|
3998
4005
|
class P extends _ {
|
|
3999
4006
|
constructor(t, e, C) {
|
|
4000
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCSYSR())) : t instanceof
|
|
4007
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCSYSR())) : t instanceof m && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeCSYSR(t.getImp(), e?.getImp(), C?.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
4001
4008
|
}
|
|
4002
4009
|
Origin() {
|
|
4003
|
-
return new
|
|
4010
|
+
return new m(this.imp.Origin());
|
|
4004
4011
|
}
|
|
4005
4012
|
XDirection() {
|
|
4006
4013
|
return new Y(this.imp.XDirection());
|
|
@@ -4012,7 +4019,7 @@ class P extends _ {
|
|
|
4012
4019
|
return new Y(this.imp.ZDirection());
|
|
4013
4020
|
}
|
|
4014
4021
|
SetOrigin(t, e, C) {
|
|
4015
|
-
t instanceof
|
|
4022
|
+
t instanceof m && arguments.length == 1 ? this.imp.SetOrigin(t.getImp()) : typeof t == "number" && arguments.length == 3 && this.imp.SetOrigin(t, e, C);
|
|
4016
4023
|
}
|
|
4017
4024
|
SetXDirection(t) {
|
|
4018
4025
|
this.imp.SetXDirection(t.getImp());
|
|
@@ -4084,7 +4091,7 @@ class P extends _ {
|
|
|
4084
4091
|
return new P(this.imp.TranslatedBy2Points(t.getImp(), e.getImp()));
|
|
4085
4092
|
}
|
|
4086
4093
|
}
|
|
4087
|
-
class
|
|
4094
|
+
class m extends _ {
|
|
4088
4095
|
constructor(t, e, C) {
|
|
4089
4096
|
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGePoint())) : typeof t == "number" && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGePoint(t, e, C))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
4090
4097
|
}
|
|
@@ -4125,49 +4132,49 @@ class p extends _ {
|
|
|
4125
4132
|
this.imp.MirrorByPoint(t.imp);
|
|
4126
4133
|
}
|
|
4127
4134
|
MirroredByPoint(t) {
|
|
4128
|
-
return new
|
|
4135
|
+
return new m(this.imp.MirroredByPoint(t.imp));
|
|
4129
4136
|
}
|
|
4130
4137
|
MirrorByAxis(t) {
|
|
4131
4138
|
this.imp.MirrorByAxis(t.getImp());
|
|
4132
4139
|
}
|
|
4133
4140
|
MirroredByAxis(t) {
|
|
4134
|
-
return new
|
|
4141
|
+
return new m(this.imp.MirroredByAxis(t.getImp()));
|
|
4135
4142
|
}
|
|
4136
4143
|
MirrorByCSYSR(t) {
|
|
4137
4144
|
this.imp.MirrorByCSYSR(t.getImp());
|
|
4138
4145
|
}
|
|
4139
4146
|
MirroredByCSYSR(t) {
|
|
4140
|
-
return new
|
|
4147
|
+
return new m(this.imp.MirroredByCSYSR(t.getImp()));
|
|
4141
4148
|
}
|
|
4142
4149
|
Rotate(t, e) {
|
|
4143
4150
|
this.imp.Rotate(t.getImp(), e);
|
|
4144
4151
|
}
|
|
4145
4152
|
Rotated(t, e) {
|
|
4146
|
-
return new
|
|
4153
|
+
return new m(this.imp.Rotated(t.getImp(), e));
|
|
4147
4154
|
}
|
|
4148
4155
|
Scale(t, e) {
|
|
4149
4156
|
this.imp.Scale(t.imp, e);
|
|
4150
4157
|
}
|
|
4151
4158
|
Scaled(t, e) {
|
|
4152
|
-
return new
|
|
4159
|
+
return new m(this.imp.Scaled(t.imp, e));
|
|
4153
4160
|
}
|
|
4154
4161
|
Transform(t) {
|
|
4155
4162
|
this.imp.Transform(t.getImp());
|
|
4156
4163
|
}
|
|
4157
4164
|
Transformed(t) {
|
|
4158
|
-
return new
|
|
4165
|
+
return new m(this.imp.Transformed(t.getImp()));
|
|
4159
4166
|
}
|
|
4160
4167
|
TranslateByVec(t) {
|
|
4161
4168
|
this.imp.TranslateByVec(t.getImp());
|
|
4162
4169
|
}
|
|
4163
4170
|
TranslatedByVec(t) {
|
|
4164
|
-
return new
|
|
4171
|
+
return new m(this.imp.TranslatedByVec(t.getImp()));
|
|
4165
4172
|
}
|
|
4166
4173
|
TranslateBy2Points(t, e) {
|
|
4167
4174
|
this.imp.TranslateBy2Points(t.imp, e.imp);
|
|
4168
4175
|
}
|
|
4169
4176
|
TranslatedBy2Points(t, e) {
|
|
4170
|
-
return new
|
|
4177
|
+
return new m(this.imp.TranslatedBy2Points(t.imp, e.imp));
|
|
4171
4178
|
}
|
|
4172
4179
|
Shape() {
|
|
4173
4180
|
return new o(this.imp.Shape());
|
|
@@ -4178,7 +4185,7 @@ class p extends _ {
|
|
|
4178
4185
|
}
|
|
4179
4186
|
class w extends _ {
|
|
4180
4187
|
constructor(t, e, C) {
|
|
4181
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeVec())) : t instanceof
|
|
4188
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeVec())) : t instanceof m && e instanceof m && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeVec(t.getImp(), e.getImp()))) : typeof t == "number" && typeof e == "number" && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeVec(t, e, C))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
4182
4189
|
}
|
|
4183
4190
|
SetCoord(t, e, C) {
|
|
4184
4191
|
arguments.length == 2 ? this.imp.SetCoord(t, e) : this.imp.SetCoord(t, e, C);
|
|
@@ -4333,16 +4340,16 @@ class w extends _ {
|
|
|
4333
4340
|
}
|
|
4334
4341
|
class Xe extends _ {
|
|
4335
4342
|
constructor(t, e, C) {
|
|
4336
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeAngleDim())) : t instanceof L && e instanceof L && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeAngleDim(t.getImp(), e.getImp()))) : t instanceof
|
|
4343
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeAngleDim())) : t instanceof L && e instanceof L && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeAngleDim(t.getImp(), e.getImp()))) : t instanceof m && e instanceof m && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeAngleDim(t.getImp(), e.getImp(), C?.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
4337
4344
|
}
|
|
4338
4345
|
FirstPoint() {
|
|
4339
|
-
return new
|
|
4346
|
+
return new m(this.imp.FirstPoint());
|
|
4340
4347
|
}
|
|
4341
4348
|
SecondPoint() {
|
|
4342
|
-
return new
|
|
4349
|
+
return new m(this.imp.SecondPoint());
|
|
4343
4350
|
}
|
|
4344
4351
|
CenterPoint() {
|
|
4345
|
-
return new
|
|
4352
|
+
return new m(this.imp.CenterPoint());
|
|
4346
4353
|
}
|
|
4347
4354
|
FirstShape() {
|
|
4348
4355
|
return new o(this.imp.FirstShape());
|
|
@@ -4354,19 +4361,19 @@ class Xe extends _ {
|
|
|
4354
4361
|
return new o(this.imp.ThirdShape());
|
|
4355
4362
|
}
|
|
4356
4363
|
SetMeasuredGeometry(t, e, C) {
|
|
4357
|
-
t instanceof T && arguments.length == 1 ? this.imp.SetMeasuredGeometry(t.getImp()) : t instanceof L && e instanceof L && arguments.length == 2 ? this.imp.SetMeasuredGeometry(t.getImp(), e.getImp()) : t instanceof
|
|
4364
|
+
t instanceof T && arguments.length == 1 ? this.imp.SetMeasuredGeometry(t.getImp()) : t instanceof L && e instanceof L && arguments.length == 2 ? this.imp.SetMeasuredGeometry(t.getImp(), e.getImp()) : t instanceof m && e instanceof m && arguments.length == 3 && this.imp.SetMeasuredGeometry(t.getImp(), e.getImp(), C?.getImp());
|
|
4358
4365
|
}
|
|
4359
4366
|
SetTextPosition(t) {
|
|
4360
4367
|
this.imp.SetTextPosition(t.getImp());
|
|
4361
4368
|
}
|
|
4362
4369
|
GetTextPosition() {
|
|
4363
|
-
return new
|
|
4370
|
+
return new m(this.imp.GetTextPosition());
|
|
4364
4371
|
}
|
|
4365
4372
|
GetNormalForMinAngle() {
|
|
4366
4373
|
return new Y(this.imp.GetNormalForMinAngle());
|
|
4367
4374
|
}
|
|
4368
4375
|
GetCenterOnArc(t, e, C) {
|
|
4369
|
-
return new
|
|
4376
|
+
return new m(this.imp.GetCenterOnArc(t.getImp(), e.getImp(), C.getImp()));
|
|
4370
4377
|
}
|
|
4371
4378
|
Display() {
|
|
4372
4379
|
this.imp.Display();
|
|
@@ -4445,13 +4452,13 @@ class q extends _ {
|
|
|
4445
4452
|
return this.imp.IsAllocated();
|
|
4446
4453
|
}
|
|
4447
4454
|
First() {
|
|
4448
|
-
return new
|
|
4455
|
+
return new m(this.imp.First());
|
|
4449
4456
|
}
|
|
4450
4457
|
Last() {
|
|
4451
|
-
return new
|
|
4458
|
+
return new m(this.imp.Last());
|
|
4452
4459
|
}
|
|
4453
4460
|
Value(t) {
|
|
4454
|
-
return new
|
|
4461
|
+
return new m(this.imp.Value(t));
|
|
4455
4462
|
}
|
|
4456
4463
|
SetValue(t, e) {
|
|
4457
4464
|
this.imp.SetValue(t, e.getImp());
|
|
@@ -4506,7 +4513,7 @@ class rt extends _ {
|
|
|
4506
4513
|
}
|
|
4507
4514
|
class W extends _ {
|
|
4508
4515
|
constructor(t, e, C, i, D) {
|
|
4509
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeArray2OfPnt())) : typeof t == "number" && arguments.length == 4 ? (super(), this.initTempObject(new s.MdGeArray2OfPnt(t, e, C, i))) : t instanceof
|
|
4516
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeArray2OfPnt())) : typeof t == "number" && arguments.length == 4 ? (super(), this.initTempObject(new s.MdGeArray2OfPnt(t, e, C, i))) : t instanceof m && arguments.length == 5 ? (super(), this.initTempObject(new s.MdGeArray2OfPnt(t.getImp(), e, C, i, D))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
4510
4517
|
}
|
|
4511
4518
|
Init(t) {
|
|
4512
4519
|
this.imp.Init(t.getImp());
|
|
@@ -4545,7 +4552,7 @@ class W extends _ {
|
|
|
4545
4552
|
return this.imp.IsDeletable();
|
|
4546
4553
|
}
|
|
4547
4554
|
Value(t, e) {
|
|
4548
|
-
return new
|
|
4555
|
+
return new m(this.imp.Value(t, e));
|
|
4549
4556
|
}
|
|
4550
4557
|
SetValue(t, e, C) {
|
|
4551
4558
|
this.imp.SetValue(t, e, C.getImp());
|
|
@@ -4657,10 +4664,10 @@ class Qe extends _ {
|
|
|
4657
4664
|
return new w(this.imp.DN(t, e));
|
|
4658
4665
|
}
|
|
4659
4666
|
StartPoint() {
|
|
4660
|
-
return new
|
|
4667
|
+
return new m(this.imp.StartPoint());
|
|
4661
4668
|
}
|
|
4662
4669
|
EndPoint() {
|
|
4663
|
-
return new
|
|
4670
|
+
return new m(this.imp.EndPoint());
|
|
4664
4671
|
}
|
|
4665
4672
|
FirstParameter() {
|
|
4666
4673
|
return this.imp.FirstParameter();
|
|
@@ -4672,7 +4679,7 @@ class Qe extends _ {
|
|
|
4672
4679
|
return this.imp.NbPoles();
|
|
4673
4680
|
}
|
|
4674
4681
|
Pole(t) {
|
|
4675
|
-
return new
|
|
4682
|
+
return new m(this.imp.Pole(t));
|
|
4676
4683
|
}
|
|
4677
4684
|
Poles() {
|
|
4678
4685
|
return new q(this.imp.Poles());
|
|
@@ -4773,7 +4780,7 @@ class Je extends _ {
|
|
|
4773
4780
|
return this.imp.NbVPoles();
|
|
4774
4781
|
}
|
|
4775
4782
|
Pole(t, e) {
|
|
4776
|
-
return new
|
|
4783
|
+
return new m(this.imp.Pole(t, e));
|
|
4777
4784
|
}
|
|
4778
4785
|
Poles() {
|
|
4779
4786
|
return new W(this.imp.Poles());
|
|
@@ -4950,7 +4957,7 @@ class H extends _ {
|
|
|
4950
4957
|
return this.imp.Length();
|
|
4951
4958
|
}
|
|
4952
4959
|
Location() {
|
|
4953
|
-
return new
|
|
4960
|
+
return new m(this.imp.Location());
|
|
4954
4961
|
}
|
|
4955
4962
|
Position() {
|
|
4956
4963
|
return new P(this.imp.Position());
|
|
@@ -5033,7 +5040,7 @@ class H extends _ {
|
|
|
5033
5040
|
}
|
|
5034
5041
|
class j extends _ {
|
|
5035
5042
|
constructor(t, e, C) {
|
|
5036
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCSYS())) : t instanceof
|
|
5043
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeCSYS())) : t instanceof m && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeCSYS(t.getImp(), e?.getImp()))) : t instanceof m && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeCSYS(t.getImp(), e?.getImp(), C?.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
5037
5044
|
}
|
|
5038
5045
|
XReverse() {
|
|
5039
5046
|
this.imp.XReverse();
|
|
@@ -5051,7 +5058,7 @@ class j extends _ {
|
|
|
5051
5058
|
this.imp.SetZDirection(t.getImp());
|
|
5052
5059
|
}
|
|
5053
5060
|
SetOrigin(t, e, C) {
|
|
5054
|
-
t instanceof
|
|
5061
|
+
t instanceof m && arguments.length == 1 ? this.imp.SetOrigin(t.getImp()) : typeof t == "number" && arguments.length == 3 && this.imp.SetOrigin(t, e, C);
|
|
5055
5062
|
}
|
|
5056
5063
|
SetXDirection(t) {
|
|
5057
5064
|
this.imp.SetXDirection(t.getImp());
|
|
@@ -5072,7 +5079,7 @@ class j extends _ {
|
|
|
5072
5079
|
return new Y(this.imp.ZDirection());
|
|
5073
5080
|
}
|
|
5074
5081
|
Origin() {
|
|
5075
|
-
return new
|
|
5082
|
+
return new m(this.imp.Origin());
|
|
5076
5083
|
}
|
|
5077
5084
|
XDirection() {
|
|
5078
5085
|
return new Y(this.imp.XDirection());
|
|
@@ -5158,7 +5165,7 @@ class et extends _ {
|
|
|
5158
5165
|
this.imp.SetSemiAngle(t);
|
|
5159
5166
|
}
|
|
5160
5167
|
Apex() {
|
|
5161
|
-
return new
|
|
5168
|
+
return new m(this.imp.Apex());
|
|
5162
5169
|
}
|
|
5163
5170
|
UReverse() {
|
|
5164
5171
|
this.imp.UReverse();
|
|
@@ -5173,7 +5180,7 @@ class et extends _ {
|
|
|
5173
5180
|
return new S(this.imp.Axis());
|
|
5174
5181
|
}
|
|
5175
5182
|
Location() {
|
|
5176
|
-
return new
|
|
5183
|
+
return new m(this.imp.Location());
|
|
5177
5184
|
}
|
|
5178
5185
|
Position() {
|
|
5179
5186
|
return new j(this.imp.Position());
|
|
@@ -5274,7 +5281,7 @@ class Ct extends _ {
|
|
|
5274
5281
|
return new S(this.imp.Axis());
|
|
5275
5282
|
}
|
|
5276
5283
|
Location() {
|
|
5277
|
-
return new
|
|
5284
|
+
return new m(this.imp.Location());
|
|
5278
5285
|
}
|
|
5279
5286
|
Position() {
|
|
5280
5287
|
return new j(this.imp.Position());
|
|
@@ -5345,7 +5352,7 @@ class Ct extends _ {
|
|
|
5345
5352
|
}
|
|
5346
5353
|
class $ extends _ {
|
|
5347
5354
|
constructor(t, e, C, i) {
|
|
5348
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGePlane())) : t instanceof j && arguments.length == 1 ? (super(), this.initTempObject(new s.MdGePlane(t.getImp()))) : t instanceof
|
|
5355
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGePlane())) : t instanceof j && arguments.length == 1 ? (super(), this.initTempObject(new s.MdGePlane(t.getImp()))) : t instanceof m && e instanceof Y && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGePlane(t.getImp(), e.getImp()))) : typeof t == "number" && typeof e == "number" && arguments.length == 4 ? (super(), this.initTempObject(new s.MdGePlane(t, e, C, i))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
5349
5356
|
}
|
|
5350
5357
|
SetAxis(t) {
|
|
5351
5358
|
this.imp.SetAxis(t.getImp());
|
|
@@ -5369,7 +5376,7 @@ class $ extends _ {
|
|
|
5369
5376
|
return new S(this.imp.Axis());
|
|
5370
5377
|
}
|
|
5371
5378
|
Location() {
|
|
5372
|
-
return new
|
|
5379
|
+
return new m(this.imp.Location());
|
|
5373
5380
|
}
|
|
5374
5381
|
Position() {
|
|
5375
5382
|
return new j(this.imp.Position());
|
|
@@ -5455,7 +5462,7 @@ class Me extends _ {
|
|
|
5455
5462
|
return new H(this.imp.Circle());
|
|
5456
5463
|
}
|
|
5457
5464
|
AnchorPoint() {
|
|
5458
|
-
return new
|
|
5465
|
+
return new m(this.imp.AnchorPoint());
|
|
5459
5466
|
}
|
|
5460
5467
|
Shape() {
|
|
5461
5468
|
return new o(this.imp.Shape());
|
|
@@ -5467,7 +5474,7 @@ class Me extends _ {
|
|
|
5467
5474
|
this.imp.SetTextPosition(t.getImp());
|
|
5468
5475
|
}
|
|
5469
5476
|
GetTextPosition() {
|
|
5470
|
-
return new
|
|
5477
|
+
return new m(this.imp.GetTextPosition());
|
|
5471
5478
|
}
|
|
5472
5479
|
Display() {
|
|
5473
5480
|
this.imp.Display();
|
|
@@ -5511,13 +5518,13 @@ class ut extends _ {
|
|
|
5511
5518
|
return this.imp.Focal();
|
|
5512
5519
|
}
|
|
5513
5520
|
Focus1() {
|
|
5514
|
-
return new
|
|
5521
|
+
return new m(this.imp.Focus1());
|
|
5515
5522
|
}
|
|
5516
5523
|
Focus2() {
|
|
5517
|
-
return new
|
|
5524
|
+
return new m(this.imp.Focus2());
|
|
5518
5525
|
}
|
|
5519
5526
|
Location() {
|
|
5520
|
-
return new
|
|
5527
|
+
return new m(this.imp.Location());
|
|
5521
5528
|
}
|
|
5522
5529
|
MajorRadius() {
|
|
5523
5530
|
return this.imp.MajorRadius();
|
|
@@ -5807,13 +5814,13 @@ class X extends _ {
|
|
|
5807
5814
|
return this.imp.Focal();
|
|
5808
5815
|
}
|
|
5809
5816
|
Focus1() {
|
|
5810
|
-
return new
|
|
5817
|
+
return new m(this.imp.Focus1());
|
|
5811
5818
|
}
|
|
5812
5819
|
Focus2() {
|
|
5813
|
-
return new
|
|
5820
|
+
return new m(this.imp.Focus2());
|
|
5814
5821
|
}
|
|
5815
5822
|
Location() {
|
|
5816
|
-
return new
|
|
5823
|
+
return new m(this.imp.Location());
|
|
5817
5824
|
}
|
|
5818
5825
|
MajorRadius() {
|
|
5819
5826
|
return this.imp.MajorRadius();
|
|
@@ -5896,10 +5903,10 @@ class X extends _ {
|
|
|
5896
5903
|
}
|
|
5897
5904
|
class eC extends _ {
|
|
5898
5905
|
constructor(t, e, C, i) {
|
|
5899
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeBox())) : t instanceof
|
|
5906
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeBox())) : t instanceof m && e instanceof m && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeBox(t.getImp(), e.getImp()))) : typeof t == "number" && typeof e == "number" && arguments.length == 3 ? (super(), this.initTempObject(new s.MdGeBox(t, e, C))) : t instanceof P && typeof e == "number" && arguments.length == 4 ? (super(), this.initTempObject(new s.MdGeBox(t.getImp(), e, C, i))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
5900
5907
|
}
|
|
5901
5908
|
Init(t, e, C, i) {
|
|
5902
|
-
t instanceof
|
|
5909
|
+
t instanceof m && e instanceof m && arguments.length == 2 ? this.imp.Init(t.getImp(), e.getImp()) : typeof t == "number" && typeof e == "number" && arguments.length == 3 ? this.imp.Init(t, e, C) : t instanceof P && typeof e == "number" && arguments.length == 4 && this.imp.Init(t.getImp(), e, C, i);
|
|
5903
5910
|
}
|
|
5904
5911
|
Shape() {
|
|
5905
5912
|
return new o(this.imp.Shape());
|
|
@@ -6003,13 +6010,13 @@ class Jt extends _ {
|
|
|
6003
6010
|
return new w(this.imp.DN(t, e));
|
|
6004
6011
|
}
|
|
6005
6012
|
LocalValue(t, e, C) {
|
|
6006
|
-
return new
|
|
6013
|
+
return new m(this.imp.LocalValue(t, e, C));
|
|
6007
6014
|
}
|
|
6008
6015
|
LocalDN(t, e, C, i) {
|
|
6009
6016
|
return new w(this.imp.LocalDN(t, e, C, i));
|
|
6010
6017
|
}
|
|
6011
6018
|
EndPoint() {
|
|
6012
|
-
return new
|
|
6019
|
+
return new m(this.imp.EndPoint());
|
|
6013
6020
|
}
|
|
6014
6021
|
FirstUKnotIndex() {
|
|
6015
6022
|
return this.imp.FirstUKnotIndex();
|
|
@@ -6045,13 +6052,13 @@ class Jt extends _ {
|
|
|
6045
6052
|
return this.imp.NbPoles();
|
|
6046
6053
|
}
|
|
6047
6054
|
Pole(t) {
|
|
6048
|
-
return new
|
|
6055
|
+
return new m(this.imp.Pole(t));
|
|
6049
6056
|
}
|
|
6050
6057
|
Poles() {
|
|
6051
6058
|
return new q(this.imp.Poles());
|
|
6052
6059
|
}
|
|
6053
6060
|
StartPoint() {
|
|
6054
|
-
return new
|
|
6061
|
+
return new m(this.imp.StartPoint());
|
|
6055
6062
|
}
|
|
6056
6063
|
Weight(t) {
|
|
6057
6064
|
return this.imp.Weight(t);
|
|
@@ -6221,7 +6228,7 @@ class he extends _ {
|
|
|
6221
6228
|
return this.imp.NbVPoles();
|
|
6222
6229
|
}
|
|
6223
6230
|
Pole(t, e) {
|
|
6224
|
-
return new
|
|
6231
|
+
return new m(this.imp.Pole(t, e));
|
|
6225
6232
|
}
|
|
6226
6233
|
Poles() {
|
|
6227
6234
|
return new W(this.Poles());
|
|
@@ -6275,7 +6282,7 @@ class he extends _ {
|
|
|
6275
6282
|
return new w(this.imp.LocalDN(t, e, C, i, D, B, r, n));
|
|
6276
6283
|
}
|
|
6277
6284
|
LocalValue(t, e, C, i, D, B) {
|
|
6278
|
-
return new
|
|
6285
|
+
return new m(this.imp.LocalValue(t, e, C, i, D, B));
|
|
6279
6286
|
}
|
|
6280
6287
|
Transform(t) {
|
|
6281
6288
|
this.imp.Transform(t.getImp());
|
|
@@ -6309,13 +6316,13 @@ class CC extends _ {
|
|
|
6309
6316
|
}
|
|
6310
6317
|
class iC extends _ {
|
|
6311
6318
|
constructor(t, e, C) {
|
|
6312
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeLengthDim())) : t instanceof L && e instanceof $ && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeLengthDim(t.getImp(), e.getImp()))) : t instanceof
|
|
6319
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeLengthDim())) : t instanceof L && e instanceof $ && arguments.length == 2 ? (super(), this.initTempObject(new s.MdGeLengthDim(t.getImp(), e.getImp()))) : t instanceof m && e instanceof m && C instanceof $ ? (super(), this.initTempObject(new s.MdGeLengthDim(t.getImp(), e.getImp(), C.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
6313
6320
|
}
|
|
6314
6321
|
FirstPoint() {
|
|
6315
|
-
return new
|
|
6322
|
+
return new m(this.imp.FirstPoint());
|
|
6316
6323
|
}
|
|
6317
6324
|
SecondPoint() {
|
|
6318
|
-
return new
|
|
6325
|
+
return new m(this.imp.SecondPoint());
|
|
6319
6326
|
}
|
|
6320
6327
|
FirstShape() {
|
|
6321
6328
|
return new o(this.imp.FirstShape());
|
|
@@ -6333,7 +6340,7 @@ class iC extends _ {
|
|
|
6333
6340
|
this.imp.SetTextPosition(t.getImp());
|
|
6334
6341
|
}
|
|
6335
6342
|
GetTextPosition() {
|
|
6336
|
-
return new
|
|
6343
|
+
return new m(this.imp.GetTextPosition());
|
|
6337
6344
|
}
|
|
6338
6345
|
SetDirection(t, e) {
|
|
6339
6346
|
this.imp.SetDirection(t.getImp(), e);
|
|
@@ -6344,7 +6351,7 @@ class iC extends _ {
|
|
|
6344
6351
|
}
|
|
6345
6352
|
class J extends _ {
|
|
6346
6353
|
constructor(t, e) {
|
|
6347
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeLine())) : t instanceof
|
|
6354
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeLine())) : t instanceof m && e instanceof Y ? (super(), this.initTempObject(new s.MdGeLine(t.getImp(), e.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
6348
6355
|
}
|
|
6349
6356
|
Reverse() {
|
|
6350
6357
|
this.imp.Reverse();
|
|
@@ -6365,7 +6372,7 @@ class J extends _ {
|
|
|
6365
6372
|
return new Y(this.imp.Direction());
|
|
6366
6373
|
}
|
|
6367
6374
|
Location() {
|
|
6368
|
-
return new
|
|
6375
|
+
return new m(this.imp.Location());
|
|
6369
6376
|
}
|
|
6370
6377
|
Position() {
|
|
6371
6378
|
return new S(this.imp.Position());
|
|
@@ -6609,10 +6616,10 @@ class it extends _ {
|
|
|
6609
6616
|
return this.imp.Focal();
|
|
6610
6617
|
}
|
|
6611
6618
|
Focus() {
|
|
6612
|
-
return new
|
|
6619
|
+
return new m(this.imp.Focus());
|
|
6613
6620
|
}
|
|
6614
6621
|
Location() {
|
|
6615
|
-
return new
|
|
6622
|
+
return new m(this.imp.Location());
|
|
6616
6623
|
}
|
|
6617
6624
|
Parameter() {
|
|
6618
6625
|
return this.imp.Parameter();
|
|
@@ -6754,13 +6761,13 @@ class AC extends _ {
|
|
|
6754
6761
|
}
|
|
6755
6762
|
class FC extends _ {
|
|
6756
6763
|
constructor(t, e) {
|
|
6757
|
-
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeRadiusDim())) : t instanceof H && arguments.length == 1 ? (super(), this.initTempObject(new s.MdGeRadiusDim(t.getImp()))) : t instanceof H && e instanceof
|
|
6764
|
+
arguments.length == 0 ? (super(), this.initTempObject(new s.MdGeRadiusDim())) : t instanceof H && arguments.length == 1 ? (super(), this.initTempObject(new s.MdGeRadiusDim(t.getImp()))) : t instanceof H && e instanceof m ? (super(), this.initTempObject(new s.MdGeRadiusDim(t.getImp(), e.getImp()))) : t instanceof Object && arguments.length == 1 && super(t);
|
|
6758
6765
|
}
|
|
6759
6766
|
Circle() {
|
|
6760
6767
|
return new H(this.imp.Circle());
|
|
6761
6768
|
}
|
|
6762
6769
|
AnchorPoint() {
|
|
6763
|
-
return new
|
|
6770
|
+
return new m(this.imp.AnchorPoint());
|
|
6764
6771
|
}
|
|
6765
6772
|
Shape() {
|
|
6766
6773
|
return new o(this.imp.Shape());
|
|
@@ -6772,7 +6779,7 @@ class FC extends _ {
|
|
|
6772
6779
|
this.imp.SetTextPosition(t.getImp());
|
|
6773
6780
|
}
|
|
6774
6781
|
GetTextPosition() {
|
|
6775
|
-
return new
|
|
6782
|
+
return new m(this.imp.GetTextPosition());
|
|
6776
6783
|
}
|
|
6777
6784
|
Display() {
|
|
6778
6785
|
this.imp.Display();
|
|
@@ -6871,7 +6878,7 @@ class Et extends _ {
|
|
|
6871
6878
|
return this.imp.Direct();
|
|
6872
6879
|
}
|
|
6873
6880
|
Location() {
|
|
6874
|
-
return new
|
|
6881
|
+
return new m(this.imp.Location());
|
|
6875
6882
|
}
|
|
6876
6883
|
Position() {
|
|
6877
6884
|
return new j(this.imp.Position());
|
|
@@ -6951,7 +6958,7 @@ class pC extends _ {
|
|
|
6951
6958
|
this.imp.SetText(t);
|
|
6952
6959
|
}
|
|
6953
6960
|
Position() {
|
|
6954
|
-
return new
|
|
6961
|
+
return new m(this.imp.Position());
|
|
6955
6962
|
}
|
|
6956
6963
|
SetPosition(t) {
|
|
6957
6964
|
this.imp.SetPosition(t.getImp());
|
|
@@ -7037,7 +7044,7 @@ class mC extends _ {
|
|
|
7037
7044
|
this.imp.UnsetOrientation3D();
|
|
7038
7045
|
}
|
|
7039
7046
|
Position() {
|
|
7040
|
-
return new
|
|
7047
|
+
return new m(this.imp.Position());
|
|
7041
7048
|
}
|
|
7042
7049
|
FontAspect() {
|
|
7043
7050
|
return this.imp.FontAspect();
|
|
@@ -7141,7 +7148,7 @@ class Dt extends _ {
|
|
|
7141
7148
|
return new S(this.imp.Axis());
|
|
7142
7149
|
}
|
|
7143
7150
|
Location() {
|
|
7144
|
-
return new
|
|
7151
|
+
return new m(this.imp.Location());
|
|
7145
7152
|
}
|
|
7146
7153
|
Position() {
|
|
7147
7154
|
return new j(this.imp.Position());
|
|
@@ -7263,7 +7270,7 @@ class $t extends _ {
|
|
|
7263
7270
|
return new S(this.imp.Axis());
|
|
7264
7271
|
}
|
|
7265
7272
|
Location() {
|
|
7266
|
-
return new
|
|
7273
|
+
return new m(this.imp.Location());
|
|
7267
7274
|
}
|
|
7268
7275
|
Position() {
|
|
7269
7276
|
return new j(this.imp.Position());
|
|
@@ -7314,7 +7321,7 @@ class se {
|
|
|
7314
7321
|
return this.imp.MaxContinuity(t.getImp());
|
|
7315
7322
|
}
|
|
7316
7323
|
Pnt(t) {
|
|
7317
|
-
return new
|
|
7324
|
+
return new m(this.imp.Pnt(t.getImp()));
|
|
7318
7325
|
}
|
|
7319
7326
|
Parameter(t, e, C) {
|
|
7320
7327
|
return arguments.length == 2 ? this.imp.Parameter(t.getImp(), e.getImp()) : this.imp.Parameter(t.getImp(), e.getImp(), C?.getImp());
|
|
@@ -7498,7 +7505,7 @@ const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7498
7505
|
downloadFile: Se,
|
|
7499
7506
|
downloadFileFromUrl: ye,
|
|
7500
7507
|
MxTools: Pt,
|
|
7501
|
-
McGePoint3d:
|
|
7508
|
+
McGePoint3d: p,
|
|
7502
7509
|
McGeVector3d: y,
|
|
7503
7510
|
McGeMatrix3d: st,
|
|
7504
7511
|
McGeLongArray: Lt,
|
|
@@ -7585,7 +7592,7 @@ const Ti = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7585
7592
|
MdGeDir: Y,
|
|
7586
7593
|
MdGeAxis: S,
|
|
7587
7594
|
MdGeCSYSR: P,
|
|
7588
|
-
MdGePoint:
|
|
7595
|
+
MdGePoint: m,
|
|
7589
7596
|
MdGeVec: w,
|
|
7590
7597
|
MdGeAngleDim: Xe,
|
|
7591
7598
|
MdGeArray1OfInteger: bt,
|
|
@@ -7672,7 +7679,7 @@ export {
|
|
|
7672
7679
|
Pe as McDbTextStyleTable,
|
|
7673
7680
|
Lt as McGeLongArray,
|
|
7674
7681
|
st as McGeMatrix3d,
|
|
7675
|
-
|
|
7682
|
+
p as McGePoint3d,
|
|
7676
7683
|
GC as McGePoint3dArray,
|
|
7677
7684
|
Te as McGeStringArray,
|
|
7678
7685
|
y as McGeVector3d,
|
|
@@ -7727,7 +7734,7 @@ export {
|
|
|
7727
7734
|
it as MdGeParab,
|
|
7728
7735
|
rC as MdGePipe,
|
|
7729
7736
|
$ as MdGePlane,
|
|
7730
|
-
|
|
7737
|
+
m as MdGePoint,
|
|
7731
7738
|
sC as MdGePointsToBSpl,
|
|
7732
7739
|
nC as MdGePointsToBSplSurface,
|
|
7733
7740
|
AC as MdGePrism,
|