mxcad 1.0.81 → 1.0.82
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 +7 -3
- package/dist/mxcad.es.js +394 -354
- package/dist/mxcad.umd.js +46 -45
- package/dist/wasm/2d/mxdrawassembly_min.js +577 -577
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +632 -632
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +2 -2
package/dist/mxcad.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MxFun as h, MrxDbgUiPrPoint as O, MxCursorType as MD, MrxDbgUtils as oD, DynamicInputType as dD, DetailedResult as Z, MrxDbgUiPrDist as AC, MrxDbgUiPrAngle as eC, MrxDbgUiPrInt as tC, MrxDbgUiPrKeyWord as iC, MrxDbgUiPrString as rC, store as PD, loadCoreCode as
|
|
1
|
+
import { MxFun as h, MrxDbgUiPrPoint as O, MxCursorType as MD, MrxDbgUtils as oD, DynamicInputType as dD, DetailedResult as Z, MrxDbgUiPrDist as AC, MrxDbgUiPrAngle as eC, MrxDbgUiPrInt as tC, MrxDbgUiPrKeyWord as iC, MrxDbgUiPrString as rC, store as PD, loadCoreCode as nC, MxPaintBrush as I, MrxDbgUiPrBaseReturn as T, MxDbCircleShape as TD, MxDbLine as CD, MxDbPolyline as sC, MxDbCircleArc as DD, Mx3PointArc as oC, MxDbEllipseShape as aC, McEdGetPointWorldDrawObject as uC, MxDbEllipse as lC } from "mxdraw";
|
|
2
2
|
function kD(E) {
|
|
3
3
|
return btoa(unescape(encodeURIComponent(E)));
|
|
4
4
|
}
|
|
@@ -116,7 +116,7 @@ class o {
|
|
|
116
116
|
static kOrigin;
|
|
117
117
|
imp;
|
|
118
118
|
constructor(D, C, B) {
|
|
119
|
-
this.imp = new
|
|
119
|
+
this.imp = new n.mxcadassemblyimp.MdGePoint3d(), D instanceof Object ? (this.imp.x = D.x, this.imp.y = D.y, this.imp.z = D.z) : (this.imp.x = D || 0, this.imp.y = C || 0, this.imp.z = B || 0);
|
|
120
120
|
}
|
|
121
121
|
toVector3() {
|
|
122
122
|
return new THREE.Vector3(this.imp.x, this.imp.y, this.imp.z);
|
|
@@ -171,7 +171,7 @@ class y {
|
|
|
171
171
|
static kNegateZAxis;
|
|
172
172
|
imp;
|
|
173
173
|
constructor(D, C, B) {
|
|
174
|
-
this.imp = new
|
|
174
|
+
this.imp = new n.mxcadassemblyimp.MdGeVector3d(), D instanceof Object ? (this.imp.x = D.x, this.imp.y = D.y, this.imp.z = D.z) : (this.imp.x = D || 0, this.imp.y = C || 0, this.imp.z = B || 0);
|
|
175
175
|
}
|
|
176
176
|
copy(D) {
|
|
177
177
|
return this.imp.x = D.imp.x, this.imp.y = D.imp.y, this.imp.z = D.imp.z, this;
|
|
@@ -235,17 +235,17 @@ class y {
|
|
|
235
235
|
this.imp.z = D;
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
class
|
|
238
|
+
class v {
|
|
239
239
|
static kIdentity;
|
|
240
240
|
imp;
|
|
241
241
|
constructor(D) {
|
|
242
|
-
this.imp = new
|
|
242
|
+
this.imp = new n.mxcadassemblyimp.MdGeMatrix3d(), D instanceof Object && this.imp.copy(D);
|
|
243
243
|
}
|
|
244
244
|
copy(D) {
|
|
245
245
|
return this.imp.copy(D.imp), this;
|
|
246
246
|
}
|
|
247
247
|
clone() {
|
|
248
|
-
return new
|
|
248
|
+
return new v(this.imp);
|
|
249
249
|
}
|
|
250
250
|
setToIdentity() {
|
|
251
251
|
return this.imp.setToIdentity(), this;
|
|
@@ -286,6 +286,9 @@ class I {
|
|
|
286
286
|
setToScaling(D, C) {
|
|
287
287
|
return this.imp.setToScaling(D, C.imp), this;
|
|
288
288
|
}
|
|
289
|
+
setMirror(D, C) {
|
|
290
|
+
return this.imp.setMirror(D.imp, C.imp), this;
|
|
291
|
+
}
|
|
289
292
|
scale() {
|
|
290
293
|
return this.imp.scale();
|
|
291
294
|
}
|
|
@@ -296,7 +299,7 @@ class I {
|
|
|
296
299
|
class SD {
|
|
297
300
|
imp;
|
|
298
301
|
constructor(D) {
|
|
299
|
-
this.imp = new
|
|
302
|
+
this.imp = new n.mxcadassemblyimp.MdGeLongArray(), D instanceof Object && this.imp.copy(D);
|
|
300
303
|
}
|
|
301
304
|
copy(D) {
|
|
302
305
|
return this.imp.copy(D.imp), this;
|
|
@@ -317,7 +320,7 @@ class SD {
|
|
|
317
320
|
class ID {
|
|
318
321
|
imp;
|
|
319
322
|
constructor(D) {
|
|
320
|
-
this.imp = new
|
|
323
|
+
this.imp = new n.mxcadassemblyimp.MdGeStringArray(), D instanceof Object && this.imp.copy(D);
|
|
321
324
|
}
|
|
322
325
|
copy(D) {
|
|
323
326
|
return this.imp.copy(D.imp), this;
|
|
@@ -343,7 +346,7 @@ class ID {
|
|
|
343
346
|
class mC {
|
|
344
347
|
imp;
|
|
345
348
|
constructor(D) {
|
|
346
|
-
this.imp = new
|
|
349
|
+
this.imp = new n.mxcadassemblyimp.MdGePoint3dArray(), D instanceof Object && this.imp.copy(D);
|
|
347
350
|
}
|
|
348
351
|
copy(D) {
|
|
349
352
|
return this.imp.copy(D.imp), this;
|
|
@@ -362,7 +365,7 @@ class mC {
|
|
|
362
365
|
}
|
|
363
366
|
}
|
|
364
367
|
const pC = new FinalizationRegistry((E) => {
|
|
365
|
-
|
|
368
|
+
n.App.DestroyObject(E);
|
|
366
369
|
}), dC = {};
|
|
367
370
|
class H {
|
|
368
371
|
imp = 0;
|
|
@@ -404,30 +407,30 @@ class R {
|
|
|
404
407
|
return this.type != 2 && this.id != 0;
|
|
405
408
|
}
|
|
406
409
|
erase() {
|
|
407
|
-
this.type == 1 ? h.getCurrentDraw().eraseMxEntity(this.id) : this.type == 0 &&
|
|
410
|
+
this.type == 1 ? h.getCurrentDraw().eraseMxEntity(this.id) : this.type == 0 && U.eraseEntity(this.id);
|
|
408
411
|
}
|
|
409
412
|
getMcDbObject() {
|
|
410
|
-
return this.type == 0 ?
|
|
413
|
+
return this.type == 0 ? n.App.ObjectIdToObject(this.id) : null;
|
|
411
414
|
}
|
|
412
415
|
getMcDbEntity() {
|
|
413
|
-
return this.type == 0 &&
|
|
416
|
+
return this.type == 0 && n.App.ObjectIdIsKindOf(this.id, "McDbEntity") ? n.App.ObjectIdToObject(this.id) : null;
|
|
414
417
|
}
|
|
415
418
|
getMcDbCurve() {
|
|
416
|
-
return this.type == 0 &&
|
|
419
|
+
return this.type == 0 && n.App.ObjectIdIsKindOf(this.id, "McDbCurve") ? n.App.ObjectIdToObject(this.id) : null;
|
|
417
420
|
}
|
|
418
421
|
clone() {
|
|
419
422
|
if (this.type == 0) {
|
|
420
|
-
let D =
|
|
423
|
+
let D = n.App.getImp().ObjectIdToMdObject(this.id);
|
|
421
424
|
if (!D)
|
|
422
425
|
return null;
|
|
423
426
|
let C = D.Clone();
|
|
424
|
-
return
|
|
427
|
+
return n.App.DestroyObject(D), n.App.CreateCloneObject(C);
|
|
425
428
|
}
|
|
426
429
|
return null;
|
|
427
430
|
}
|
|
428
431
|
getObjectName() {
|
|
429
432
|
if (this.type == 0)
|
|
430
|
-
return
|
|
433
|
+
return n.App.getImp().ObjectIdToObjectName(this.id);
|
|
431
434
|
if (this.type == 1) {
|
|
432
435
|
let D = h.getCurrentDraw().getMxEntity(this.id);
|
|
433
436
|
if (D)
|
|
@@ -451,7 +454,7 @@ class j extends H {
|
|
|
451
454
|
}
|
|
452
455
|
Clone() {
|
|
453
456
|
let D = this.imp.Clone();
|
|
454
|
-
return
|
|
457
|
+
return n.App.CreateCloneObject(D);
|
|
455
458
|
}
|
|
456
459
|
GetHandle() {
|
|
457
460
|
return this.imp.GetHandle();
|
|
@@ -469,10 +472,10 @@ class aD {
|
|
|
469
472
|
if (D) {
|
|
470
473
|
let C = 0, B = D.length();
|
|
471
474
|
for (; C < B; C++) {
|
|
472
|
-
let F = D.release(C), A =
|
|
475
|
+
let F = D.release(C), A = n.App.CreateCloneObject(F);
|
|
473
476
|
A != null && this.aryVal.push(A);
|
|
474
477
|
}
|
|
475
|
-
|
|
478
|
+
n.App.DestroyObject(D);
|
|
476
479
|
}
|
|
477
480
|
}
|
|
478
481
|
forEach(D) {
|
|
@@ -502,7 +505,7 @@ var uD;
|
|
|
502
505
|
class N {
|
|
503
506
|
imp;
|
|
504
507
|
constructor(D, C, B) {
|
|
505
|
-
this.imp = new
|
|
508
|
+
this.imp = new n.mxcadassemblyimp.MdCmColor(), D instanceof Object ? (this.imp.red = D.red, this.imp.green = D.green, this.imp.blue = D.blue, this.imp.method = D.method, this.imp.n = D.n, this.imp.colorIndex = D.colorIndex) : typeof D == "number" && typeof C == "number" && typeof B == "number" && this.imp.setRGB(D, C, B);
|
|
506
509
|
}
|
|
507
510
|
getImp() {
|
|
508
511
|
return this.imp;
|
|
@@ -558,7 +561,7 @@ class N {
|
|
|
558
561
|
}
|
|
559
562
|
class hC extends j {
|
|
560
563
|
constructor(D) {
|
|
561
|
-
super(D), D || this.initTempObject(new
|
|
564
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbLayerTableRecord());
|
|
562
565
|
}
|
|
563
566
|
get name() {
|
|
564
567
|
return this.imp.getName();
|
|
@@ -635,7 +638,7 @@ class hD extends H {
|
|
|
635
638
|
return new zD(this.imp.GetBlockTable());
|
|
636
639
|
}
|
|
637
640
|
CurrentSpace() {
|
|
638
|
-
return new
|
|
641
|
+
return new eD(this.imp.CurrentSpace());
|
|
639
642
|
}
|
|
640
643
|
GetCurrentlyLineTypeScale() {
|
|
641
644
|
return this.imp.GetCurrentlyLineTypeScale();
|
|
@@ -711,9 +714,9 @@ class UD extends H {
|
|
|
711
714
|
return this.imp.step(D, C);
|
|
712
715
|
}
|
|
713
716
|
}
|
|
714
|
-
class
|
|
717
|
+
class eD extends j {
|
|
715
718
|
constructor(D) {
|
|
716
|
-
super(D), D || this.initTempObject(new
|
|
719
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbBlockTableRecord());
|
|
717
720
|
}
|
|
718
721
|
appendAcDbEntity(D) {
|
|
719
722
|
return new R(
|
|
@@ -755,7 +758,7 @@ class WD extends H {
|
|
|
755
758
|
}
|
|
756
759
|
getRecord() {
|
|
757
760
|
let D = this.imp.getRecord();
|
|
758
|
-
return new
|
|
761
|
+
return new eD(D);
|
|
759
762
|
}
|
|
760
763
|
step(D = !0, C = !0) {
|
|
761
764
|
this.imp.start(D, C);
|
|
@@ -763,11 +766,11 @@ class WD extends H {
|
|
|
763
766
|
}
|
|
764
767
|
class zD extends j {
|
|
765
768
|
constructor(D) {
|
|
766
|
-
super(D), D || this.initTempObject(new
|
|
769
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbBlockTable());
|
|
767
770
|
}
|
|
768
771
|
getAt(D) {
|
|
769
772
|
let C = this.getAt(D);
|
|
770
|
-
return C && new
|
|
773
|
+
return C && new eD(C);
|
|
771
774
|
}
|
|
772
775
|
has(D) {
|
|
773
776
|
return this.imp.has(D);
|
|
@@ -780,13 +783,13 @@ class zD extends j {
|
|
|
780
783
|
return this.imp.add(D.getImp());
|
|
781
784
|
}
|
|
782
785
|
}
|
|
783
|
-
class
|
|
786
|
+
class V extends j {
|
|
784
787
|
constructor(D) {
|
|
785
788
|
super(D);
|
|
786
789
|
}
|
|
787
790
|
explode() {
|
|
788
791
|
let D = this.imp.explode();
|
|
789
|
-
return new
|
|
792
|
+
return new iD(D);
|
|
790
793
|
}
|
|
791
794
|
get trueColor() {
|
|
792
795
|
return new N(this.imp.TrueColor());
|
|
@@ -856,76 +859,76 @@ class G extends j {
|
|
|
856
859
|
maxPt: new o(D.AtPoint(1)),
|
|
857
860
|
ret: !0
|
|
858
861
|
};
|
|
859
|
-
return
|
|
862
|
+
return n.App.DestroyObject(D), C;
|
|
860
863
|
} else
|
|
861
864
|
return { minPt: new o(), maxPt: new o(), ret: !1 };
|
|
862
865
|
}
|
|
863
866
|
}
|
|
864
|
-
class
|
|
867
|
+
class z extends V {
|
|
865
868
|
constructor(D) {
|
|
866
869
|
super(D);
|
|
867
870
|
}
|
|
868
871
|
getStartParam() {
|
|
869
|
-
return { val: this.imp.getStartParam(), ret:
|
|
872
|
+
return { val: this.imp.getStartParam(), ret: n.getCallResult() };
|
|
870
873
|
}
|
|
871
874
|
getEndParam() {
|
|
872
|
-
return { val: this.imp.getEndParam(), ret:
|
|
875
|
+
return { val: this.imp.getEndParam(), ret: n.getCallResult() };
|
|
873
876
|
}
|
|
874
877
|
getDistAtParam(D) {
|
|
875
|
-
return { val: this.imp.getDistAtParam(D), ret:
|
|
878
|
+
return { val: this.imp.getDistAtParam(D), ret: n.getCallResult() };
|
|
876
879
|
}
|
|
877
880
|
getParamAtDist(D) {
|
|
878
|
-
return { val: this.imp.getParamAtDist(D), ret:
|
|
881
|
+
return { val: this.imp.getParamAtDist(D), ret: n.getCallResult() };
|
|
879
882
|
}
|
|
880
883
|
getDistAtPoint(D) {
|
|
881
|
-
return { val: this.imp.getDistAtPoint(D.imp), ret:
|
|
884
|
+
return { val: this.imp.getDistAtPoint(D.imp), ret: n.getCallResult() };
|
|
882
885
|
}
|
|
883
886
|
getPointAtDist(D) {
|
|
884
887
|
return {
|
|
885
888
|
val: new o(this.imp.getPointAtDist(D)),
|
|
886
|
-
ret:
|
|
889
|
+
ret: n.getCallResult()
|
|
887
890
|
};
|
|
888
891
|
}
|
|
889
892
|
getStartPoint() {
|
|
890
893
|
return {
|
|
891
894
|
val: new o(this.imp.getStartPoint()),
|
|
892
|
-
ret:
|
|
895
|
+
ret: n.getCallResult()
|
|
893
896
|
};
|
|
894
897
|
}
|
|
895
898
|
getEndPoint() {
|
|
896
899
|
return {
|
|
897
900
|
val: new o(this.imp.getStartPoint()),
|
|
898
|
-
ret:
|
|
901
|
+
ret: n.getCallResult()
|
|
899
902
|
};
|
|
900
903
|
}
|
|
901
904
|
getPointAtParam(D) {
|
|
902
905
|
return {
|
|
903
906
|
val: new o(this.imp.getPointAtParam(D)),
|
|
904
|
-
ret:
|
|
907
|
+
ret: n.getCallResult()
|
|
905
908
|
};
|
|
906
909
|
}
|
|
907
910
|
getParamAtPoint(D) {
|
|
908
911
|
return {
|
|
909
912
|
val: this.imp.getParamAtPoint(D.imp),
|
|
910
|
-
ret:
|
|
913
|
+
ret: n.getCallResult()
|
|
911
914
|
};
|
|
912
915
|
}
|
|
913
916
|
getFirstDeriv(D) {
|
|
914
917
|
return {
|
|
915
918
|
val: new y(this.imp.getFirstDeriv(D)),
|
|
916
|
-
ret:
|
|
919
|
+
ret: n.getCallResult()
|
|
917
920
|
};
|
|
918
921
|
}
|
|
919
922
|
getFirstDerivEx(D) {
|
|
920
923
|
return {
|
|
921
924
|
val: new y(this.imp.getFirstDerivEx(D.imp)),
|
|
922
|
-
ret:
|
|
925
|
+
ret: n.getCallResult()
|
|
923
926
|
};
|
|
924
927
|
}
|
|
925
928
|
getClosestPointTo(D, C) {
|
|
926
929
|
return {
|
|
927
930
|
val: new o(this.imp.getClosestPointTo(D.imp, C)),
|
|
928
|
-
ret:
|
|
931
|
+
ret: n.getCallResult()
|
|
929
932
|
};
|
|
930
933
|
}
|
|
931
934
|
offsetCurves(D, C) {
|
|
@@ -937,19 +940,19 @@ class W extends G {
|
|
|
937
940
|
return new aD(C);
|
|
938
941
|
}
|
|
939
942
|
getArea() {
|
|
940
|
-
return { val: this.imp.getArea(), ret:
|
|
943
|
+
return { val: this.imp.getArea(), ret: n.getCallResult() };
|
|
941
944
|
}
|
|
942
945
|
getSamplePoints(D) {
|
|
943
946
|
let C = this.imp.getSamplePoints(D);
|
|
944
|
-
return new
|
|
947
|
+
return new iD(C);
|
|
945
948
|
}
|
|
946
949
|
getLength() {
|
|
947
|
-
return { val: this.imp.getLength(), ret:
|
|
950
|
+
return { val: this.imp.getLength(), ret: n.getCallResult() };
|
|
948
951
|
}
|
|
949
952
|
}
|
|
950
|
-
class
|
|
953
|
+
class BD extends z {
|
|
951
954
|
constructor(D, C, B, F, A, e) {
|
|
952
|
-
D instanceof Object ? D instanceof o ? (super(), this.initTempObject(new
|
|
955
|
+
D instanceof Object ? D instanceof o ? (super(), this.initTempObject(new n.mxcadassemblyimp.MdDbLine()), C instanceof o && (this.startPoint = D, this.endPoint = C)) : super(D) : (super(), this.initTempObject(new n.mxcadassemblyimp.MdDbLine()), this.startPoint = new o(D, C, B), this.endPoint = new o(F, A, e));
|
|
953
956
|
}
|
|
954
957
|
get startPoint() {
|
|
955
958
|
return new o(this.imp.startPoint());
|
|
@@ -964,9 +967,9 @@ class CD extends W {
|
|
|
964
967
|
this.imp.setEndPoint(D.imp);
|
|
965
968
|
}
|
|
966
969
|
}
|
|
967
|
-
class lD extends
|
|
970
|
+
class lD extends V {
|
|
968
971
|
constructor(D) {
|
|
969
|
-
super(D), D || this.initTempObject(new
|
|
972
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbText());
|
|
970
973
|
}
|
|
971
974
|
get position() {
|
|
972
975
|
return new o(this.imp.position());
|
|
@@ -1023,9 +1026,9 @@ class lD extends G {
|
|
|
1023
1026
|
this.imp.setVerticalMode(D);
|
|
1024
1027
|
}
|
|
1025
1028
|
}
|
|
1026
|
-
class
|
|
1029
|
+
class ED extends V {
|
|
1027
1030
|
constructor(D) {
|
|
1028
|
-
super(D), D || this.initTempObject(new
|
|
1031
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbMText());
|
|
1029
1032
|
}
|
|
1030
1033
|
get location() {
|
|
1031
1034
|
return new o(this.imp.location());
|
|
@@ -1064,9 +1067,9 @@ class BD extends G {
|
|
|
1064
1067
|
this.imp.setContents(P.encodeToGb2312(D));
|
|
1065
1068
|
}
|
|
1066
1069
|
}
|
|
1067
|
-
class
|
|
1070
|
+
class W extends z {
|
|
1068
1071
|
constructor(D, C, B, F) {
|
|
1069
|
-
D instanceof Object ? super(D) : (super(), this.initTempObject(new
|
|
1072
|
+
D instanceof Object ? super(D) : (super(), this.initTempObject(new n.mxcadassemblyimp.MdDbCircle()), typeof D == "number" && (this.imp.setCenter(new o(D, C, B).imp), this.imp.setRadius(F)));
|
|
1070
1073
|
}
|
|
1071
1074
|
setCenter(D, C, B) {
|
|
1072
1075
|
this.imp.setCenter(new o(D, C, B).imp);
|
|
@@ -1084,9 +1087,9 @@ class U extends W {
|
|
|
1084
1087
|
this.imp.setRadius(D);
|
|
1085
1088
|
}
|
|
1086
1089
|
}
|
|
1087
|
-
class
|
|
1090
|
+
class FD extends z {
|
|
1088
1091
|
constructor(D) {
|
|
1089
|
-
super(D), D || this.initTempObject(new
|
|
1092
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbPolyline());
|
|
1090
1093
|
}
|
|
1091
1094
|
get isClosed() {
|
|
1092
1095
|
return this.imp.isClosed();
|
|
@@ -1102,7 +1105,7 @@ class ED extends W {
|
|
|
1102
1105
|
}
|
|
1103
1106
|
addVertexAt(D, C = 0, B = 0, F = 0, A = 0) {
|
|
1104
1107
|
if (D instanceof THREE.Vector3) {
|
|
1105
|
-
let e = new
|
|
1108
|
+
let e = new n.mxcadassemblyimp.MdGePoint3d();
|
|
1106
1109
|
return e.x = D.x, e.y = D.y, e.z = D.z, this.imp.addVertexAt(A, e, C, B, F);
|
|
1107
1110
|
} else
|
|
1108
1111
|
return this.imp.addVertexAt(A, D.imp, C, B, F);
|
|
@@ -1114,7 +1117,7 @@ class ED extends W {
|
|
|
1114
1117
|
return this.imp.numVerts();
|
|
1115
1118
|
}
|
|
1116
1119
|
getPointAt(D) {
|
|
1117
|
-
return { val: this.imp.getPointAt(D), ret:
|
|
1120
|
+
return { val: this.imp.getPointAt(D), ret: n.getCallResult() };
|
|
1118
1121
|
}
|
|
1119
1122
|
getBulgeAt(D) {
|
|
1120
1123
|
return this.imp.getBulgeAt(D);
|
|
@@ -1123,7 +1126,7 @@ class ED extends W {
|
|
|
1123
1126
|
return {
|
|
1124
1127
|
val1: this.imp.getStartWidthsAt(D),
|
|
1125
1128
|
val2: this.imp.getEndWidthsAt(D),
|
|
1126
|
-
ret:
|
|
1129
|
+
ret: n.getCallResult()
|
|
1127
1130
|
};
|
|
1128
1131
|
}
|
|
1129
1132
|
setPointAt(D, C) {
|
|
@@ -1133,9 +1136,9 @@ class ED extends W {
|
|
|
1133
1136
|
return this.imp.setBulgeAt(D, C);
|
|
1134
1137
|
}
|
|
1135
1138
|
}
|
|
1136
|
-
class cD extends
|
|
1139
|
+
class cD extends V {
|
|
1137
1140
|
constructor(D) {
|
|
1138
|
-
super(D), D || this.initTempObject(new
|
|
1141
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbBlockReference());
|
|
1139
1142
|
}
|
|
1140
1143
|
get blockTableRecordId() {
|
|
1141
1144
|
return new R(this.imp.blockTableRecord(), k.kMxCAD);
|
|
@@ -1162,13 +1165,13 @@ class cD extends G {
|
|
|
1162
1165
|
this.imp.setRotation(D);
|
|
1163
1166
|
}
|
|
1164
1167
|
get blockTransform() {
|
|
1165
|
-
return new
|
|
1168
|
+
return new v(this.imp.blockTransform());
|
|
1166
1169
|
}
|
|
1167
1170
|
set blockTransform(D) {
|
|
1168
1171
|
this.imp.setBlockTransform(D.imp);
|
|
1169
1172
|
}
|
|
1170
1173
|
}
|
|
1171
|
-
class yD extends
|
|
1174
|
+
class yD extends V {
|
|
1172
1175
|
constructor(D) {
|
|
1173
1176
|
super(D);
|
|
1174
1177
|
}
|
|
@@ -1256,7 +1259,7 @@ class yD extends G {
|
|
|
1256
1259
|
}
|
|
1257
1260
|
class mD extends yD {
|
|
1258
1261
|
constructor(D) {
|
|
1259
|
-
super(D), D || this.initTempObject(new
|
|
1262
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbAlignedDimension());
|
|
1260
1263
|
}
|
|
1261
1264
|
get xLine1Point() {
|
|
1262
1265
|
return new o(this.imp.xLine1Point());
|
|
@@ -1285,7 +1288,7 @@ class mD extends yD {
|
|
|
1285
1288
|
}
|
|
1286
1289
|
class pD extends yD {
|
|
1287
1290
|
constructor(D) {
|
|
1288
|
-
super(D), D || this.initTempObject(new
|
|
1291
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbRotatedDimension());
|
|
1289
1292
|
}
|
|
1290
1293
|
get xLine1Point() {
|
|
1291
1294
|
return new o(this.imp.xLine1Point());
|
|
@@ -1318,9 +1321,9 @@ class pD extends yD {
|
|
|
1318
1321
|
this.imp.setRotation(D);
|
|
1319
1322
|
}
|
|
1320
1323
|
}
|
|
1321
|
-
class
|
|
1324
|
+
class AD extends z {
|
|
1322
1325
|
constructor(D) {
|
|
1323
|
-
super(D), D || this.initTempObject(new
|
|
1326
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.MdDbArc());
|
|
1324
1327
|
}
|
|
1325
1328
|
setCenter(D, C, B) {
|
|
1326
1329
|
this.imp.setCenter(new o(D, C, B).imp);
|
|
@@ -1360,9 +1363,9 @@ class FD extends W {
|
|
|
1360
1363
|
);
|
|
1361
1364
|
}
|
|
1362
1365
|
}
|
|
1363
|
-
class
|
|
1364
|
-
constructor(D, C, B, F, A, e, t, i,
|
|
1365
|
-
D instanceof Object ? super(D) : (super(), this.initTempObject(new
|
|
1366
|
+
class tD extends z {
|
|
1367
|
+
constructor(D, C, B, F, A, e, t, i, r) {
|
|
1368
|
+
D instanceof Object ? super(D) : (super(), this.initTempObject(new n.mxcadassemblyimp.MdDbEllipse()), typeof D == "number" && (t || (t = 1), typeof i != "number" && (i = 0), typeof r != "number" && (r = 6.283185307179586), this.imp.InitData(new o(D, C, B).imp, new y(F, A, e).imp, t, i, r)));
|
|
1366
1369
|
}
|
|
1367
1370
|
setCenter(D, C, B) {
|
|
1368
1371
|
this.imp.setCenter(new o(D, C, B).imp);
|
|
@@ -1410,9 +1413,9 @@ class eD extends W {
|
|
|
1410
1413
|
this.imp.setEndAngle(D);
|
|
1411
1414
|
}
|
|
1412
1415
|
}
|
|
1413
|
-
class wD extends
|
|
1416
|
+
class wD extends V {
|
|
1414
1417
|
constructor(D, C, B) {
|
|
1415
|
-
D instanceof Object ? D instanceof o ? (super(), this.initTempObject(new
|
|
1418
|
+
D instanceof Object ? D instanceof o ? (super(), this.initTempObject(new n.mxcadassemblyimp.MdDbPoint()), this.imp.setPosition(D.imp)) : super(D) : (super(), this.initTempObject(new n.mxcadassemblyimp.MdDbPoint()), typeof D == "number" && this.imp.setPosition(new o(D, C, B).imp));
|
|
1416
1419
|
}
|
|
1417
1420
|
setPosition(D, C, B) {
|
|
1418
1421
|
this.imp.setPosition(new o(D, C, B).imp);
|
|
@@ -1426,11 +1429,11 @@ class wD extends G {
|
|
|
1426
1429
|
}
|
|
1427
1430
|
function K(E = null) {
|
|
1428
1431
|
let D;
|
|
1429
|
-
return E == null ? D = new
|
|
1432
|
+
return E == null ? D = new n.mxcadassemblyimp.McDrawResbuf() : D = E.getImp(), D;
|
|
1430
1433
|
}
|
|
1431
|
-
class
|
|
1434
|
+
class iD extends H {
|
|
1432
1435
|
constructor(D) {
|
|
1433
|
-
super(D), D || this.initTempObject(new
|
|
1436
|
+
super(D), D || this.initTempObject(new n.mxcadassemblyimp.McDrawResbuf());
|
|
1434
1437
|
}
|
|
1435
1438
|
Clear() {
|
|
1436
1439
|
this.imp.Clear();
|
|
@@ -1439,16 +1442,16 @@ class tD extends H {
|
|
|
1439
1442
|
return this.imp.GetCount();
|
|
1440
1443
|
}
|
|
1441
1444
|
AtDouble(D) {
|
|
1442
|
-
return { val: this.imp.AtDouble(D), ret:
|
|
1445
|
+
return { val: this.imp.AtDouble(D), ret: n.getCallResult() };
|
|
1443
1446
|
}
|
|
1444
1447
|
Atlong(D) {
|
|
1445
|
-
return { val: this.imp.Atlong(D), ret:
|
|
1448
|
+
return { val: this.imp.Atlong(D), ret: n.getCallResult() };
|
|
1446
1449
|
}
|
|
1447
1450
|
AtObject(D) {
|
|
1448
1451
|
if (this.imp.AtObjectName(D) == "McDbMText") {
|
|
1449
1452
|
let B = this.imp.AtObjectMdDbMText(D);
|
|
1450
1453
|
if (B)
|
|
1451
|
-
return { val: new
|
|
1454
|
+
return { val: new ED(B), ret: n.getCallResult() };
|
|
1452
1455
|
}
|
|
1453
1456
|
return { val: void 0, ret: -1 };
|
|
1454
1457
|
}
|
|
@@ -1456,13 +1459,13 @@ class tD extends H {
|
|
|
1456
1459
|
this.imp.AddObject(D.getImp());
|
|
1457
1460
|
}
|
|
1458
1461
|
AtObjectId(D) {
|
|
1459
|
-
return { val: new R(this.imp.AtObjectId(D), k.kMxCAD), ret:
|
|
1462
|
+
return { val: new R(this.imp.AtObjectId(D), k.kMxCAD), ret: n.getCallResult() };
|
|
1460
1463
|
}
|
|
1461
1464
|
AtString(D, C = !0) {
|
|
1462
|
-
return C ? { val: P.decodeFromGb2312(this.imp.AtString(D)), ret:
|
|
1465
|
+
return C ? { val: P.decodeFromGb2312(this.imp.AtString(D)), ret: n.getCallResult() } : { val: this.imp.AtString(D), ret: n.getCallResult() };
|
|
1463
1466
|
}
|
|
1464
1467
|
AtPoint(D) {
|
|
1465
|
-
return { val: new o(this.imp.AtPoint(D)), ret:
|
|
1468
|
+
return { val: new o(this.imp.AtPoint(D)), ret: n.getCallResult() };
|
|
1466
1469
|
}
|
|
1467
1470
|
ItemDataType() {
|
|
1468
1471
|
return this.imp.ItemDataType();
|
|
@@ -1519,11 +1522,11 @@ class KD {
|
|
|
1519
1522
|
if (B)
|
|
1520
1523
|
oD.findEntAtPoint(e).then((t) => {
|
|
1521
1524
|
let i = [];
|
|
1522
|
-
t.forEach((
|
|
1523
|
-
i.push(new R(
|
|
1525
|
+
t.forEach((s) => {
|
|
1526
|
+
i.push(new R(s, k.kMxDraw));
|
|
1524
1527
|
});
|
|
1525
|
-
let
|
|
1526
|
-
|
|
1528
|
+
let r = this.findEntAtPoint(e.x, e.y, e.z, -1, C);
|
|
1529
|
+
r.isValid() && i.push(r), F(i);
|
|
1527
1530
|
});
|
|
1528
1531
|
else {
|
|
1529
1532
|
let t = [], i = this.findEntAtPoint(e.x, e.y, e.z, -1, C);
|
|
@@ -1541,14 +1544,14 @@ class KD {
|
|
|
1541
1544
|
return C;
|
|
1542
1545
|
if (D) {
|
|
1543
1546
|
let A = new SD();
|
|
1544
|
-
F.forEach((
|
|
1545
|
-
A.append(
|
|
1547
|
+
F.forEach((r) => {
|
|
1548
|
+
A.append(r);
|
|
1546
1549
|
});
|
|
1547
|
-
let e = new
|
|
1548
|
-
|
|
1550
|
+
let e = new n.mxcadassemblyimp.McDrawSelSet(), t = e.getFilterEntity(A.imp, K(D));
|
|
1551
|
+
n.App.DestroyObject(e), F = [];
|
|
1549
1552
|
let i = t.length();
|
|
1550
|
-
for (let
|
|
1551
|
-
F.push(t.at(
|
|
1553
|
+
for (let r = 0; r < i; r++)
|
|
1554
|
+
F.push(t.at(r));
|
|
1552
1555
|
}
|
|
1553
1556
|
return F.forEach((A) => {
|
|
1554
1557
|
C.push(new R(A, k.kMxCAD));
|
|
@@ -1567,13 +1570,13 @@ class KD {
|
|
|
1567
1570
|
});
|
|
1568
1571
|
}
|
|
1569
1572
|
init() {
|
|
1570
|
-
this.imp || (this.imp = new
|
|
1573
|
+
this.imp || (this.imp = new n.mxcadassemblyimp.McDrawUtility());
|
|
1571
1574
|
}
|
|
1572
1575
|
async getCorner(D, C, B, F = !1) {
|
|
1573
1576
|
let A = 0, e;
|
|
1574
1577
|
for (; ; ) {
|
|
1575
1578
|
if (!C) {
|
|
1576
|
-
let i = new
|
|
1579
|
+
let i = new G();
|
|
1577
1580
|
D && i.setMessage(D), i.setDynamicInputType(dD.kDynTip), C = await i.go(), A = i.getDetailedResult();
|
|
1578
1581
|
}
|
|
1579
1582
|
if (!C)
|
|
@@ -1600,11 +1603,11 @@ class KD {
|
|
|
1600
1603
|
return { minPt: new o(C), maxPt: new o(B) };
|
|
1601
1604
|
}
|
|
1602
1605
|
}
|
|
1603
|
-
let
|
|
1606
|
+
let U = new KD();
|
|
1604
1607
|
var HD = /* @__PURE__ */ ((E) => (E[E.kSelected = 0] = "kSelected", E[E.kNone = 1] = "kNone", E[E.kCanceled = 2] = "kCanceled", E[E.kRejected = 3] = "kRejected", E[E.kKeyword = 4] = "kKeyword", E))(HD || {});
|
|
1605
1608
|
class _ extends H {
|
|
1606
1609
|
constructor() {
|
|
1607
|
-
super(), this.initTempObject(new
|
|
1610
|
+
super(), this.initTempObject(new n.mxcadassemblyimp.McDrawSelSet());
|
|
1608
1611
|
}
|
|
1609
1612
|
allSelect(D = null) {
|
|
1610
1613
|
return this.imp.allSelect(K(D));
|
|
@@ -1730,7 +1733,7 @@ class q {
|
|
|
1730
1733
|
this.imp.setUserInputControls(D);
|
|
1731
1734
|
}
|
|
1732
1735
|
}
|
|
1733
|
-
class
|
|
1736
|
+
class G extends q {
|
|
1734
1737
|
constructor() {
|
|
1735
1738
|
super(new O());
|
|
1736
1739
|
}
|
|
@@ -1842,15 +1845,17 @@ class $ {
|
|
|
1842
1845
|
getImp() {
|
|
1843
1846
|
return this.imp;
|
|
1844
1847
|
}
|
|
1845
|
-
openWebFile(D, C, B = !0, F
|
|
1848
|
+
openWebFile(D, C, B = !0, F) {
|
|
1846
1849
|
let A = this.imp.mxdrawObject, e = Math.round(Math.random() * 1e7);
|
|
1847
1850
|
if (C) {
|
|
1848
|
-
let
|
|
1849
|
-
A.removeEventFuction("openFileComplete",
|
|
1851
|
+
let i = (r, s) => {
|
|
1852
|
+
A.removeEventFuction("openFileComplete", i), e == s && C(r);
|
|
1850
1853
|
};
|
|
1851
|
-
A.addEvent("openFileComplete",
|
|
1854
|
+
A.addEvent("openFileComplete", i);
|
|
1852
1855
|
}
|
|
1853
|
-
|
|
1856
|
+
$.currentFileName = D.split("/").pop();
|
|
1857
|
+
let t = "";
|
|
1858
|
+
return F && (t = JSON.stringify(F)), this.imp.openWebFile(D, B, e, t);
|
|
1854
1859
|
}
|
|
1855
1860
|
getCurrentFileName() {
|
|
1856
1861
|
return $.currentFileName;
|
|
@@ -1861,15 +1866,15 @@ class $ {
|
|
|
1861
1866
|
C(A, F);
|
|
1862
1867
|
}, this.imp.saveFileToUrl(D);
|
|
1863
1868
|
}
|
|
1864
|
-
saveFile(D, C, B = !0, F = !0) {
|
|
1869
|
+
saveFile(D, C, B = !0, F = !0, A) {
|
|
1865
1870
|
D || (D = this.getCurrentFileName()), D.indexOf(".") == -1 && (D += ".mxweb");
|
|
1866
|
-
const
|
|
1867
|
-
|
|
1868
|
-
if (C && C(
|
|
1871
|
+
const e = window;
|
|
1872
|
+
e.mx_saveFile_call = (i) => {
|
|
1873
|
+
if (C && C(i), !!i) {
|
|
1869
1874
|
if (B) {
|
|
1870
|
-
let
|
|
1871
|
-
/^((?!chrome|android).)*safari/i.test(navigator.userAgent) ?
|
|
1872
|
-
blob:
|
|
1875
|
+
let r;
|
|
1876
|
+
/^((?!chrome|android).)*safari/i.test(navigator.userAgent) ? r = new Blob([i.buffer], { type: "application/octet-stream" }) : r = new Blob([i.buffer], { type: "application/octet-binary" }), F ? Q.saveAsFileDialog({
|
|
1877
|
+
blob: r,
|
|
1873
1878
|
filename: D,
|
|
1874
1879
|
types: [{
|
|
1875
1880
|
description: "mxweb File",
|
|
@@ -1877,11 +1882,13 @@ class $ {
|
|
|
1877
1882
|
"application/octet-stream": [".mxweb"]
|
|
1878
1883
|
}
|
|
1879
1884
|
}]
|
|
1880
|
-
}) : Q.downloadFile(
|
|
1885
|
+
}) : Q.downloadFile(r, D);
|
|
1881
1886
|
}
|
|
1882
|
-
|
|
1887
|
+
e.mx_saveFile_call = null;
|
|
1883
1888
|
}
|
|
1884
|
-
}
|
|
1889
|
+
};
|
|
1890
|
+
let t = "";
|
|
1891
|
+
return A && (t = JSON.stringify(A)), this.imp.saveFile(D, t);
|
|
1885
1892
|
}
|
|
1886
1893
|
GetDatabase() {
|
|
1887
1894
|
return this.imp.McDbDatabase || (this.imp.McDbDatabase = new hD(this.imp.GetDatabase())), this.imp.McDbDatabase;
|
|
@@ -2052,10 +2059,10 @@ class $ {
|
|
|
2052
2059
|
return this.imp.DrawEntity(D.getImp());
|
|
2053
2060
|
}
|
|
2054
2061
|
ObjectIdToObject(D) {
|
|
2055
|
-
return
|
|
2062
|
+
return n.App.ObjectIdToObject(D);
|
|
2056
2063
|
}
|
|
2057
2064
|
DestroyObject(D) {
|
|
2058
|
-
!D ||
|
|
2065
|
+
!D || n.App.getImp().DestroyObject(D);
|
|
2059
2066
|
}
|
|
2060
2067
|
GetAllLayoutName() {
|
|
2061
2068
|
return new ID(this.imp.GetAllLayoutName());
|
|
@@ -2064,7 +2071,7 @@ class $ {
|
|
|
2064
2071
|
this.imp.SetCurrentLayout(P.encodeToGb2312(D));
|
|
2065
2072
|
}
|
|
2066
2073
|
GetMxCpp() {
|
|
2067
|
-
return
|
|
2074
|
+
return n;
|
|
2068
2075
|
}
|
|
2069
2076
|
docCoord2Cad(D) {
|
|
2070
2077
|
return new o(this.imp.mxdrawObject.docCoord2Cad(D.x, D.y, D.z));
|
|
@@ -2073,7 +2080,7 @@ class $ {
|
|
|
2073
2080
|
class _D {
|
|
2074
2081
|
imp;
|
|
2075
2082
|
init(D) {
|
|
2076
|
-
this.imp = D, 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), o.kOrigin = new o(0, 0, 0),
|
|
2083
|
+
this.imp = D, 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), o.kOrigin = new o(0, 0, 0), v.kIdentity = new v();
|
|
2077
2084
|
}
|
|
2078
2085
|
getImp() {
|
|
2079
2086
|
return this.imp;
|
|
@@ -2104,19 +2111,19 @@ class _D {
|
|
|
2104
2111
|
let C = this.imp.ObjectIdToObjectName(D);
|
|
2105
2112
|
if (C == "McDbLine") {
|
|
2106
2113
|
let B = this.imp.ObjectIdToMdDbLine(D);
|
|
2107
|
-
return new
|
|
2114
|
+
return new BD(B);
|
|
2108
2115
|
} else if (C == "McDbText") {
|
|
2109
2116
|
let B = this.imp.ObjectIdToMdDbText(D);
|
|
2110
2117
|
return new lD(B);
|
|
2111
2118
|
} else if (C == "McDbPolyline") {
|
|
2112
2119
|
let B = this.imp.ObjectIdToMdDbPolyline(D);
|
|
2113
|
-
return new
|
|
2120
|
+
return new FD(B);
|
|
2114
2121
|
} else if (C == "McDbCircle") {
|
|
2115
2122
|
let B = this.imp.ObjectIdToMdDbCircle(D);
|
|
2116
|
-
return new
|
|
2123
|
+
return new W(B);
|
|
2117
2124
|
} else if (C == "McDbArc") {
|
|
2118
2125
|
let B = this.imp.ObjectIdToMdDbArc(D);
|
|
2119
|
-
return new
|
|
2126
|
+
return new AD(B);
|
|
2120
2127
|
} else if (C == "McDbBlockReference") {
|
|
2121
2128
|
let B = this.imp.ObjectIdToMdDbBlockReference(D);
|
|
2122
2129
|
return new cD(B);
|
|
@@ -2128,19 +2135,19 @@ class _D {
|
|
|
2128
2135
|
return new pD(B);
|
|
2129
2136
|
} else if (C == "McDbMText") {
|
|
2130
2137
|
let B = this.imp.ObjectIdToMdDbMText(D);
|
|
2131
|
-
return new
|
|
2138
|
+
return new ED(B);
|
|
2132
2139
|
} else if (C == "McDbEllipse") {
|
|
2133
2140
|
let B = this.imp.ObjectIdToMdDbEllipse(D);
|
|
2134
|
-
return new
|
|
2141
|
+
return new tD(B);
|
|
2135
2142
|
} else if (C == "McDbPoint") {
|
|
2136
2143
|
let B = this.imp.ObjectIdToMdDbPoint(D);
|
|
2137
2144
|
return new wD(B);
|
|
2138
2145
|
} else if (this.imp.ObjectIdIsKindOf(D, "McDbCurve")) {
|
|
2139
2146
|
let B = this.imp.ObjectIdToMdDbCurve(D);
|
|
2140
|
-
return new
|
|
2147
|
+
return new z(B);
|
|
2141
2148
|
} else if (this.imp.ObjectIdIsKindOf(D, "McDbEntity")) {
|
|
2142
2149
|
let B = this.imp.ObjectIdToMdDbEntity(D);
|
|
2143
|
-
return new
|
|
2150
|
+
return new V(B);
|
|
2144
2151
|
} else {
|
|
2145
2152
|
let B = this.imp.ObjectIdToMdObject(D);
|
|
2146
2153
|
return new j(B);
|
|
@@ -2150,7 +2157,7 @@ class _D {
|
|
|
2150
2157
|
if (!D)
|
|
2151
2158
|
return null;
|
|
2152
2159
|
let C = D.getObjectName(), B = null;
|
|
2153
|
-
return C == "McDbLine" ? B = new
|
|
2160
|
+
return C == "McDbLine" ? B = new BD() : C == "McDbText" ? B = new lD() : C == "McDbPolyline" ? B = new FD() : C == "McDbCircle" ? B = new W() : C == "McDbArc" ? B = new AD() : C == "McDbBlockReference" ? B = new cD() : C == "McDbAlignedDimension" ? B = new mD() : C == "McDbRotatedDimension" ? B = new pD() : C == "McDbMText" ? B = new ED() : D.isKindOf("McDbCurve") ? (B = new z(), B.initTempObject(new n.mxcadassemblyimp.MdDbCurve())) : D.isKindOf("McDbEntity") && (B = new V(), B.initTempObject(new n.mxcadassemblyimp.MdDbEntity())), B ? (B.getImp().ConnectionTempObject(D), n.App.DestroyObject(D), B) : new j(D);
|
|
2154
2161
|
}
|
|
2155
2162
|
setFontFilePath(D) {
|
|
2156
2163
|
this.imp.setFontFilePath(D);
|
|
@@ -2182,7 +2189,7 @@ class qD {
|
|
|
2182
2189
|
return this.App.GetCurrentMxCAD().GetDatabase();
|
|
2183
2190
|
}
|
|
2184
2191
|
}
|
|
2185
|
-
const gD = "1.0.
|
|
2192
|
+
const gD = "1.0.82", xC = "SharedArrayBuffer" in window, rD = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src), bC = (E, D = self.location.href) => rD ? `https://unpkg.com/mxcad@${gD}/dist/wasm/2d-st/${E}` : D + E, MC = (E, D = self.location.href) => rD ? `https://unpkg.com/mxcad@${gD}/dist/wasm/2d/${E}` : D + E, PC = (E, D = self.location.href) => rD ? `https://unpkg.com/mxcad@${gD}/dist/wasm/3d/${E}` : D + E, ZD = (E) => new Promise((D, C) => {
|
|
2186
2193
|
const B = document.createElement("script");
|
|
2187
2194
|
B.src = E, B.type = "text/javascript", B.crossOrigin = "anonymous", document.body.appendChild(B), B.onload = () => {
|
|
2188
2195
|
D();
|
|
@@ -2193,19 +2200,19 @@ const gD = "1.0.81", xC = "SharedArrayBuffer" in window, iD = document.currentSc
|
|
|
2193
2200
|
const { locateFile: B } = C, F = B(E + ".js");
|
|
2194
2201
|
return await ZD(F), await globalThis[D](C);
|
|
2195
2202
|
};
|
|
2196
|
-
let
|
|
2197
|
-
async function $D(E, D = xC || !
|
|
2203
|
+
let n;
|
|
2204
|
+
async function $D(E, D = xC || !rD ? bC : MC, C, B, F) {
|
|
2198
2205
|
return new Promise(async (A, e) => {
|
|
2199
2206
|
try {
|
|
2200
|
-
if (
|
|
2201
|
-
return E && E(
|
|
2207
|
+
if (n || (n = new qD()), n.mxcadassemblyimp)
|
|
2208
|
+
return E && E(n), A(n);
|
|
2202
2209
|
const i = await TC("mxdrawassembly_min", "mxdrawassembly", {
|
|
2203
2210
|
locateFile: D,
|
|
2204
2211
|
wasmBinary: C
|
|
2205
2212
|
});
|
|
2206
|
-
|
|
2207
|
-
let
|
|
2208
|
-
B &&
|
|
2213
|
+
n.mxcadassemblyimp = i;
|
|
2214
|
+
let r = new i.McApp();
|
|
2215
|
+
B && r.setFontFilePath(B), r.Init(), n.App.init(r), F && n.App.addNetworkLoadingFont(F), E && E(n), A(n);
|
|
2209
2216
|
} catch (t) {
|
|
2210
2217
|
e(t);
|
|
2211
2218
|
}
|
|
@@ -2231,8 +2238,8 @@ const kC = (E) => {
|
|
|
2231
2238
|
B(F);
|
|
2232
2239
|
}
|
|
2233
2240
|
}), OC = async (E) => {
|
|
2234
|
-
PD.state.MxFun || await
|
|
2235
|
-
const { multipleSelect: D, openParameter: C, networkFonts: B, fontspath: F, locateFile: A, wasmBinary: e, canvas: t, userIdentitySign: i, onOpenFileComplete:
|
|
2241
|
+
PD.state.MxFun || await nC();
|
|
2242
|
+
const { multipleSelect: D, openParameter: C, networkFonts: B, fontspath: F, locateFile: A, wasmBinary: e, canvas: t, userIdentitySign: i, onOpenFileComplete: r, fileUrl: s, onInit: u = () => {
|
|
2236
2243
|
h.setIniset({
|
|
2237
2244
|
EnableIntelliSelect: !0,
|
|
2238
2245
|
IntelliSelectType: 1,
|
|
@@ -2242,13 +2249,13 @@ const kC = (E) => {
|
|
|
2242
2249
|
await $D(() => {
|
|
2243
2250
|
}, A, e, F, B), u();
|
|
2244
2251
|
let l = await RC(t, i);
|
|
2245
|
-
const
|
|
2246
|
-
let
|
|
2247
|
-
l.getRenderer().getSize(
|
|
2248
|
-
const
|
|
2249
|
-
return l.initMxCpp(
|
|
2250
|
-
|
|
2251
|
-
}),
|
|
2252
|
+
const c = h.getMxFunTHREE();
|
|
2253
|
+
let a = new c.Vector2();
|
|
2254
|
+
l.getRenderer().getSize(a);
|
|
2255
|
+
const m = n.App.CreateMxCAD(a.width, a.height, l.getCanvas().id, l.isWebgl2(), l.getId());
|
|
2256
|
+
return l.initMxCpp(m), l.addEvent("openFileComplete", () => {
|
|
2257
|
+
r && r();
|
|
2258
|
+
}), s && m.openWebFile(s, void 0, !0, C), m;
|
|
2252
2259
|
};
|
|
2253
2260
|
async function LC() {
|
|
2254
2261
|
const E = new O();
|
|
@@ -2282,43 +2289,43 @@ class vC extends TD {
|
|
|
2282
2289
|
}
|
|
2283
2290
|
}
|
|
2284
2291
|
const xD = (E) => {
|
|
2285
|
-
const [D, C, B] = E, { x: F, y: A, z: e } = D, { x: t, y: i, z:
|
|
2292
|
+
const [D, C, B] = E, { x: F, y: A, z: e } = D, { x: t, y: i, z: r } = C, { x: s, y: u, z: l } = B, c = A * r - i * e - A * l + u * e + i * l - u * r, a = -(F * r - t * e - F * l + s * e + t * l - s * r), m = F * i - t * A - F * u + s * A + t * u - s * i, w = -(F * i * l - F * u * r - t * A * l + t * u * e + s * A * r - s * i * e), f = 2 * (t - F), p = 2 * (i - A), d = 2 * (r - e), b = F * F + A * A + e * e - t * t - i * i - r * r, x = 2 * (s - F), g = 2 * (u - A), M = 2 * (l - e), S = F * F + A * A + e * e - s * s - u * u - l * l, Y = -(a * d * S - a * M * b - p * m * S + p * M * w + g * m * b - g * d * w) / (c * p * M - c * g * d - f * a * M + f * g * m + x * a * d - x * p * m), EC = (c * d * S - c * M * b - f * m * S + f * M * w + x * m * b - x * d * w) / (c * p * M - c * g * d - f * a * M + f * g * m + x * a * d - x * p * m), FC = -(c * p * S - c * g * b - f * a * S + f * g * w + x * a * b - x * p * w) / (c * p * M - c * g * d - f * a * M + f * g * m + x * a * d - x * p * m);
|
|
2286
2293
|
return new THREE.Vector3(Y, EC, FC);
|
|
2287
2294
|
};
|
|
2288
2295
|
function JD() {
|
|
2289
2296
|
const E = new O();
|
|
2290
|
-
let D = new vC(), C =
|
|
2291
|
-
|
|
2297
|
+
let D = new vC(), C = n.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2298
|
+
I.use(D), D.closed = !1, D.setColor(C);
|
|
2292
2299
|
let B = 0, F = "default", A = !0;
|
|
2293
2300
|
const e = () => {
|
|
2294
2301
|
E.setUserDraw(
|
|
2295
|
-
(
|
|
2296
|
-
D.radius = A ? D.center.distanceTo(
|
|
2302
|
+
(a, m) => {
|
|
2303
|
+
D.radius = A ? D.center.distanceTo(a) : D.center.distanceTo(a) / 2, m.drawCustomEntity(D), m.drawLine(D.center, a);
|
|
2297
2304
|
}
|
|
2298
2305
|
);
|
|
2299
|
-
}, t = (
|
|
2306
|
+
}, t = (a) => {
|
|
2300
2307
|
if (F === "default") {
|
|
2301
|
-
if (
|
|
2308
|
+
if (a === T.kOk) {
|
|
2302
2309
|
if (B === 0)
|
|
2303
2310
|
E.setMessage(`
|
|
2304
2311
|
\u6307\u5B9A\u5706\u7684\u534A\u5F84:`), E.setKeyWords("[\u76F4\u5F84(D)]"), D.center = E.value(), e();
|
|
2305
2312
|
else if (B === 1)
|
|
2306
|
-
return
|
|
2313
|
+
return n.GetCurrentMxCAD().DrawEntity(new W(D.center.x, D.center.y, 0, D.radius)), !0;
|
|
2307
2314
|
B++;
|
|
2308
2315
|
}
|
|
2309
|
-
|
|
2316
|
+
a === T.kKeyWord && E.isKeyWordPicked("D") && (A = !1, e(), E.setMessage(`
|
|
2310
2317
|
\u6307\u5B9A\u5706\u7684\u76F4\u5F84:`), E.setKeyWords(""));
|
|
2311
2318
|
}
|
|
2312
2319
|
};
|
|
2313
2320
|
let i = [];
|
|
2314
|
-
const
|
|
2321
|
+
const r = (a) => {
|
|
2315
2322
|
if (F === "3P" && (E.setMessage(`
|
|
2316
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9:`),
|
|
2317
|
-
if (B === 0 && (i.push(E.value()), E.setUserDraw((
|
|
2318
|
-
w.drawLine(i[0],
|
|
2323
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9:`), a === T.kOk)) {
|
|
2324
|
+
if (B === 0 && (i.push(E.value()), E.setUserDraw((m, w) => {
|
|
2325
|
+
w.drawLine(i[0], m);
|
|
2319
2326
|
}), E.setMessage(`
|
|
2320
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9:`)), B === 1 && (i.push(E.value()), E.setUserDraw((
|
|
2321
|
-
const [f, p] = i, d =
|
|
2327
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9:`)), B === 1 && (i.push(E.value()), E.setUserDraw((m, w) => {
|
|
2328
|
+
const [f, p] = i, d = m;
|
|
2322
2329
|
D.center = xD([
|
|
2323
2330
|
f,
|
|
2324
2331
|
p,
|
|
@@ -2326,30 +2333,30 @@ function JD() {
|
|
|
2326
2333
|
]), D.radius = D.center.distanceTo(f), w.drawCustomEntity(D);
|
|
2327
2334
|
}), E.setMessage(`
|
|
2328
2335
|
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E09\u4E2A\u70B9:`)), B === 2)
|
|
2329
|
-
return i.push(E.value()), D.center = xD(i), D.radius = D.center.distanceTo(i[0]),
|
|
2336
|
+
return i.push(E.value()), D.center = xD(i), D.radius = D.center.distanceTo(i[0]), n.GetCurrentMxCAD().DrawEntity(new W(D.center.x, D.center.y, 0, D.radius)), !0;
|
|
2330
2337
|
B++;
|
|
2331
2338
|
}
|
|
2332
2339
|
};
|
|
2333
|
-
let
|
|
2334
|
-
const u = (
|
|
2335
|
-
new THREE.Line3(
|
|
2336
|
-
}, l = (
|
|
2340
|
+
let s;
|
|
2341
|
+
const u = (a, m) => {
|
|
2342
|
+
new THREE.Line3(a, m).getCenter(D.center), D.radius = m.distanceTo(a) / 2;
|
|
2343
|
+
}, l = (a) => {
|
|
2337
2344
|
if (F === "2P" && (E.setMessage(`
|
|
2338
|
-
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`),
|
|
2339
|
-
if (B === 0 && (
|
|
2340
|
-
u(
|
|
2345
|
+
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`), a === T.kOk)) {
|
|
2346
|
+
if (B === 0 && (s = E.value(), E.setUserDraw((m, w) => {
|
|
2347
|
+
u(s, m), w.drawCustomEntity(D), w.drawLine(s, m);
|
|
2341
2348
|
}), E.setMessage(`
|
|
2342
2349
|
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9:`)), B === 1)
|
|
2343
|
-
return u(
|
|
2350
|
+
return u(s, E.value()), n.GetCurrentMxCAD().DrawEntity(new W(D.center.x, D.center.y, 0, D.radius)), !0;
|
|
2344
2351
|
B++;
|
|
2345
2352
|
}
|
|
2346
|
-
},
|
|
2353
|
+
}, c = (a) => {
|
|
2347
2354
|
if (F === "T") {
|
|
2348
2355
|
if (E.setMessage(`
|
|
2349
|
-
\u6307\u5B9A\u5BF9\u8C61\u4E0E\u5706\u7684\u7B2C\u4E00\u4E2A\u5207\u70B9:`),
|
|
2356
|
+
\u6307\u5B9A\u5BF9\u8C61\u4E0E\u5706\u7684\u7B2C\u4E00\u4E2A\u5207\u70B9:`), a === T.kOk) {
|
|
2350
2357
|
if (B === 0) {
|
|
2351
|
-
const
|
|
2352
|
-
console.log(
|
|
2358
|
+
const m = E.value();
|
|
2359
|
+
console.log(m), h.getCurrentDraw();
|
|
2353
2360
|
}
|
|
2354
2361
|
B++;
|
|
2355
2362
|
}
|
|
@@ -2360,18 +2367,18 @@ function JD() {
|
|
|
2360
2367
|
`
|
|
2361
2368
|
\u6307\u5B9A\u5706\u7684\u5706\u5FC3\u6216[\u4E09\u70B9(3P)/\u4E24\u70B9(2P)/\u5207\u70B9\u3001\u5207\u70B9\u3001\u534A\u5F84(T)]:`
|
|
2362
2369
|
), E.setKeyWords("3P 2P T"), E.goWhile(
|
|
2363
|
-
(
|
|
2364
|
-
if (
|
|
2370
|
+
(a) => {
|
|
2371
|
+
if (a === T.kKeyWord && (E.isKeyWordPicked("3P") ? F = "3P" : E.isKeyWordPicked("2P") ? F = "2P" : E.isKeyWordPicked("T") && (F = "T")), t(a))
|
|
2365
2372
|
return { exit: !0 };
|
|
2366
|
-
if (
|
|
2373
|
+
if (r(a))
|
|
2367
2374
|
return { exit: !0 };
|
|
2368
|
-
if (l(
|
|
2375
|
+
if (l(a))
|
|
2369
2376
|
return { exit: !0 };
|
|
2370
|
-
if (
|
|
2377
|
+
if (c(a))
|
|
2371
2378
|
return { exit: !0 };
|
|
2372
2379
|
},
|
|
2373
|
-
(
|
|
2374
|
-
|
|
2380
|
+
(a) => {
|
|
2381
|
+
a === T.kCancel && n.GetCurrentMxCAD().DrawEntity(new W(D.center.x, D.center.y, 0, D.radius));
|
|
2375
2382
|
}
|
|
2376
2383
|
);
|
|
2377
2384
|
}
|
|
@@ -2379,7 +2386,7 @@ h.on("init", () => {
|
|
|
2379
2386
|
h.addCommand("Mx_Circle", JD);
|
|
2380
2387
|
});
|
|
2381
2388
|
const bD = () => PD.state.MxFun.stopRunCommand();
|
|
2382
|
-
function
|
|
2389
|
+
function nD(E, D, C, B) {
|
|
2383
2390
|
const F = E - C, A = D - B;
|
|
2384
2391
|
let e = 0;
|
|
2385
2392
|
return F == 0 ? e = Math.PI / 2 : e = Math.atan(Math.abs(A / F)), F < 0 && A >= 0 ? e = Math.PI - e : F < 0 && A < 0 ? e = Math.PI + e : F >= 0 && A < 0 && (e = Math.PI * 2 - e), e;
|
|
@@ -2395,7 +2402,7 @@ const L = (E, D, C) => {
|
|
|
2395
2402
|
};
|
|
2396
2403
|
async function YD() {
|
|
2397
2404
|
const E = new O();
|
|
2398
|
-
let D = new
|
|
2405
|
+
let D = new CD(), C = n.GetCurrentDatabase().GetCurrentlyDrawColor(), B = [];
|
|
2399
2406
|
E.setMessage(`
|
|
2400
2407
|
\u6307\u5B9A\u7B2C\u4E00\u70B9:`);
|
|
2401
2408
|
let F = await E.go();
|
|
@@ -2412,12 +2419,12 @@ async function YD() {
|
|
|
2412
2419
|
};
|
|
2413
2420
|
A(), E.goWhile(
|
|
2414
2421
|
(e) => {
|
|
2415
|
-
if (e === T.kOk && (D = new
|
|
2422
|
+
if (e === T.kOk && (D = new CD(), I.use(D), D.pt1 = F, D.pt2 = E.value(), F = D.pt2.clone(), B.push(D), A()), e === T.kKeyWord) {
|
|
2416
2423
|
if (E.isKeyWordPicked("E"))
|
|
2417
2424
|
bD();
|
|
2418
2425
|
else if (E.isKeyWordPicked("C")) {
|
|
2419
|
-
const t = new
|
|
2420
|
-
return t.pt1 = F.clone(), t.pt2 = B[0].pt1.clone(),
|
|
2426
|
+
const t = new CD();
|
|
2427
|
+
return t.pt1 = F.clone(), t.pt2 = B[0].pt1.clone(), I.use(t), B.push(t), F = t.pt2.clone(), bD(), { exit: !0 };
|
|
2421
2428
|
} else if (E.isKeyWordPicked("U")) {
|
|
2422
2429
|
const t = B.pop();
|
|
2423
2430
|
t && (F = t.pt1);
|
|
@@ -2425,17 +2432,17 @@ async function YD() {
|
|
|
2425
2432
|
}
|
|
2426
2433
|
},
|
|
2427
2434
|
(e) => (e != T.kCancel && B.forEach((t) => {
|
|
2428
|
-
|
|
2435
|
+
n.GetCurrentMxCAD().DrawEntity(new BD(t.pt1.x, t.pt1.y, 0, t.pt2.x, t.pt2.y, 0));
|
|
2429
2436
|
}), { exit: !0 })
|
|
2430
2437
|
);
|
|
2431
2438
|
}
|
|
2432
2439
|
async function SC() {
|
|
2433
|
-
let E = new
|
|
2440
|
+
let E = new G();
|
|
2434
2441
|
for (E.setMessage("\u6307\u5B9A\u70B9"); ; ) {
|
|
2435
2442
|
let D = await E.go();
|
|
2436
2443
|
if (D == null)
|
|
2437
2444
|
break;
|
|
2438
|
-
|
|
2445
|
+
n.GetCurrentMxCAD().DrawEntity(new wD(D));
|
|
2439
2446
|
}
|
|
2440
2447
|
}
|
|
2441
2448
|
h.on("init", () => {
|
|
@@ -2464,9 +2471,9 @@ async function IC() {
|
|
|
2464
2471
|
}
|
|
2465
2472
|
async function QD() {
|
|
2466
2473
|
const E = new O();
|
|
2467
|
-
let D =
|
|
2468
|
-
const C = new
|
|
2469
|
-
|
|
2474
|
+
let D = n.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2475
|
+
const C = new sC();
|
|
2476
|
+
I.use(C), C.color = D, E.setMessage(`
|
|
2470
2477
|
\u6307\u5B9A\u8D77\u70B9:`);
|
|
2471
2478
|
let B;
|
|
2472
2479
|
E.setUserDraw((F, A) => {
|
|
@@ -2482,7 +2489,7 @@ async function QD() {
|
|
|
2482
2489
|
},
|
|
2483
2490
|
(F) => {
|
|
2484
2491
|
if (F != T.kCancel) {
|
|
2485
|
-
let A =
|
|
2492
|
+
let A = n.GetCurrentMxCAD(), e = new FD();
|
|
2486
2493
|
for (let t = 0; t < C.points.length; t++)
|
|
2487
2494
|
e.addVertexAt(C.points[t]);
|
|
2488
2495
|
A.DrawEntity(e);
|
|
@@ -2497,22 +2504,22 @@ async function XD() {
|
|
|
2497
2504
|
const E = new O();
|
|
2498
2505
|
E.setMessage(`
|
|
2499
2506
|
\u6307\u5B9A\u4E00\u70B9:`);
|
|
2500
|
-
let D = await E.go(), C = new
|
|
2507
|
+
let D = await E.go(), C = new W();
|
|
2501
2508
|
C.setCenter(D.x, D.y, D.z);
|
|
2502
|
-
let B = 5, F =
|
|
2509
|
+
let B = 5, F = n.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2503
2510
|
E.setUserDraw((A, e) => {
|
|
2504
2511
|
e.setColor(F), C.radius = D.distanceTo(A);
|
|
2505
|
-
let t = C.getEndParam().val,
|
|
2506
|
-
for (let
|
|
2507
|
-
let
|
|
2508
|
-
|
|
2512
|
+
let t = C.getEndParam().val, r = C.getDistAtParam(t).val / B, s = 0, u = new THREE.Vector3(), l = new THREE.Vector3();
|
|
2513
|
+
for (let c = 0; c < B; c++) {
|
|
2514
|
+
let a = C.getPointAtDist(s).val;
|
|
2515
|
+
s += r, c > 0 ? e.drawMcDbLine(a.x, a.y, a.z, u.x, u.y, u.z) : l = new THREE.Vector3(a.x, a.y, a.z), c == B - 1 && e.drawMcDbLine(a.x, a.y, a.z, l.x, l.y, l.z), u = new THREE.Vector3(a.x, a.y, a.z);
|
|
2509
2516
|
}
|
|
2510
2517
|
}), E.setMessage(`
|
|
2511
2518
|
\u6307\u5B9A\u4E8C\u70B9:`), await E.go(), E.drawReserve();
|
|
2512
2519
|
}
|
|
2513
2520
|
h.addCommand("Mx_Polygon", XD);
|
|
2514
2521
|
function jC(E, D, C) {
|
|
2515
|
-
const B = E.x, F = D.x, A = C.x, e = E.y, t = D.y, i = C.y,
|
|
2522
|
+
const B = E.x, F = D.x, A = C.x, e = E.y, t = D.y, i = C.y, r = B - F, s = e - t, u = B - A, l = e - i, c = (B * B - F * F + (e * e - t * t)) / 2, a = (B * B - A * A + (e * e - i * i)) / 2, m = s * u - r * l, w = -(l * c - s * a) / m, f = -(r * a - u * c) / m;
|
|
2516
2523
|
return new THREE.Vector3(w, f, 0);
|
|
2517
2524
|
}
|
|
2518
2525
|
function GC(E, D) {
|
|
@@ -2525,13 +2532,13 @@ function VC(E, D, C) {
|
|
|
2525
2532
|
let F;
|
|
2526
2533
|
return E < D ? F = D - E : F = D - E + 360, F > B;
|
|
2527
2534
|
}
|
|
2528
|
-
function
|
|
2535
|
+
function sD(E, D, C) {
|
|
2529
2536
|
const B = E.x, F = D.x, A = E.y, e = D.y;
|
|
2530
|
-
let t, i,
|
|
2531
|
-
return t = (A - e) / C, i = (B - F) / C, i >= 0.99999 && (i = 0.99999), i <= -0.99999 && (i = -0.99999),
|
|
2537
|
+
let t, i, r;
|
|
2538
|
+
return t = (A - e) / C, i = (B - F) / C, i >= 0.99999 && (i = 0.99999), i <= -0.99999 && (i = -0.99999), r = Math.acos(i), r = r / Math.PI * 180, t < -0.05 && (r = 360 - r), {
|
|
2532
2539
|
sin: t,
|
|
2533
2540
|
cos: i,
|
|
2534
|
-
angle:
|
|
2541
|
+
angle: r
|
|
2535
2542
|
};
|
|
2536
2543
|
}
|
|
2537
2544
|
class fD extends TD {
|
|
@@ -2554,12 +2561,12 @@ class fD extends TD {
|
|
|
2554
2561
|
getArcMidPoint(D, C, B, F, A) {
|
|
2555
2562
|
const e = D, t = B * Math.PI / 180;
|
|
2556
2563
|
let i = F * Math.PI / 180;
|
|
2557
|
-
const
|
|
2558
|
-
|
|
2564
|
+
const r = new THREE.Vector3(), s = new THREE.Vector3();
|
|
2565
|
+
r.x = e.x + C * Math.cos(t), r.y = e.y + C * Math.sin(t), s.x = e.x + C * Math.cos(i), s.y = e.y + C * Math.sin(i);
|
|
2559
2566
|
const u = C;
|
|
2560
2567
|
(A ? B < F : B > F) && (i += Math.PI * 2);
|
|
2561
2568
|
const l = new THREE.Vector3();
|
|
2562
|
-
return l.x = e.x + u * Math.cos((t + i) / 2), l.y = e.y + u * Math.sin((t + i) / 2), [
|
|
2569
|
+
return l.x = e.x + u * Math.cos((t + i) / 2), l.y = e.y + u * Math.sin((t + i) / 2), [r, l, s, this.center];
|
|
2563
2570
|
}
|
|
2564
2571
|
getGripPoints() {
|
|
2565
2572
|
return this.getArcMidPoint(
|
|
@@ -2580,21 +2587,21 @@ class fD extends TD {
|
|
|
2580
2587
|
D[C].add(B);
|
|
2581
2588
|
const [F, A, e] = D;
|
|
2582
2589
|
this.center = jC(F, e, A), this.radius = GC(A, this.center);
|
|
2583
|
-
const t =
|
|
2590
|
+
const t = sD(F, this.center, this.radius), i = sD(e, this.center, this.radius), r = sD(A, this.center, this.radius);
|
|
2584
2591
|
this.clockwise = VC(
|
|
2585
2592
|
i.angle,
|
|
2586
2593
|
t.angle,
|
|
2587
|
-
|
|
2594
|
+
r.angle
|
|
2588
2595
|
), this.startAngle = THREE.MathUtils.degToRad(t.angle), this.endAngle = THREE.MathUtils.degToRad(i.angle);
|
|
2589
2596
|
}
|
|
2590
2597
|
}
|
|
2591
2598
|
async function DC() {
|
|
2592
|
-
let E =
|
|
2599
|
+
let E = n.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2593
2600
|
const D = new O();
|
|
2594
2601
|
D.setMessage(`
|
|
2595
2602
|
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), D.setKeyWords("[\u5706\u5FC3(C)]");
|
|
2596
2603
|
let C = new fD();
|
|
2597
|
-
C.closed = !1,
|
|
2604
|
+
C.closed = !1, I.use(C);
|
|
2598
2605
|
let B, F, A;
|
|
2599
2606
|
const e = L(
|
|
2600
2607
|
D,
|
|
@@ -2602,11 +2609,11 @@ async function DC() {
|
|
|
2602
2609
|
B = D.value(), D.setMessage(`
|
|
2603
2610
|
\u6307\u5B9A\u5706\u5F27\u7684\u7B2C\u4E8C\u4E2A\u70B9:`), D.setKeyWords("[\u5706\u5FC3(C)/\u7AEF\u70B9(E)]"), D.setUserDraw((p, d) => {
|
|
2604
2611
|
d.setColor(E), d.drawLine(B, p);
|
|
2605
|
-
}),
|
|
2612
|
+
}), m();
|
|
2606
2613
|
},
|
|
2607
2614
|
() => {
|
|
2608
2615
|
if (D.isKeyWordPicked("C")) {
|
|
2609
|
-
const p = new
|
|
2616
|
+
const p = new DD();
|
|
2610
2617
|
p.color = E, C.center = D.value(), p.center = D.value(), D.setMessage(`
|
|
2611
2618
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3:`), D.setKeyWords(""), i();
|
|
2612
2619
|
} else
|
|
@@ -2617,7 +2624,7 @@ async function DC() {
|
|
|
2617
2624
|
const i = L(
|
|
2618
2625
|
D,
|
|
2619
2626
|
() => {
|
|
2620
|
-
t = D.value(), A = new
|
|
2627
|
+
t = D.value(), A = new DD(), A.closed = !1, I.use(A), A.color = E, A.center = t, C.center = t, D.setMessage(`
|
|
2621
2628
|
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), D.setUserDraw((p, d) => {
|
|
2622
2629
|
d.drawCustomEntity(A), d.setColor(E), d.drawLine(t, p);
|
|
2623
2630
|
}), u();
|
|
@@ -2625,25 +2632,25 @@ async function DC() {
|
|
|
2625
2632
|
() => {
|
|
2626
2633
|
}
|
|
2627
2634
|
);
|
|
2628
|
-
let
|
|
2635
|
+
let r, s;
|
|
2629
2636
|
const u = L(
|
|
2630
2637
|
D,
|
|
2631
2638
|
() => {
|
|
2632
|
-
|
|
2639
|
+
r = D.value(), A.endPoint = r, D.setMessage(
|
|
2633
2640
|
`
|
|
2634
2641
|
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)\u6216 [\u89D2\u5EA6(A)/\u5F26\u957F(L)/\u4FEE\u6539\u534A\u5F84(R)]:`
|
|
2635
|
-
), D.setKeyWords("A L R"),
|
|
2636
|
-
A.startPoint = p,
|
|
2637
|
-
}),
|
|
2642
|
+
), D.setKeyWords("A L R"), s = new CD(), s.setDashLineDisplay(!0), s.setDashArray(0.05), s.setLineWidth(2), s.setColor("#ffd30d"), s.pt1 = A.center, D.setUserDraw((p, d) => {
|
|
2643
|
+
A.startPoint = p, s.pt2 = p, d.drawCustomEntity(A), d.drawCustomEntity(s);
|
|
2644
|
+
}), c();
|
|
2638
2645
|
},
|
|
2639
2646
|
() => {
|
|
2640
2647
|
}
|
|
2641
2648
|
);
|
|
2642
2649
|
let l;
|
|
2643
|
-
const
|
|
2650
|
+
const c = L(
|
|
2644
2651
|
D,
|
|
2645
2652
|
() => {
|
|
2646
|
-
l = D.value(), A.startPoint = l, A.endPoint =
|
|
2653
|
+
l = D.value(), A.startPoint = l, A.endPoint = r, w.DrawArc(A.center.x, A.center.y, A.radius, A.startAngle, A.endAngle);
|
|
2647
2654
|
},
|
|
2648
2655
|
() => {
|
|
2649
2656
|
if (D.isKeyWordPicked("A"))
|
|
@@ -2651,14 +2658,14 @@ async function DC() {
|
|
|
2651
2658
|
`
|
|
2652
2659
|
\u6307\u5B9A\u5706\u5F27\u7684\u5939\u89D2(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)\u6216 [\u4FEE\u6539\u534A\u5F84(R)]:`
|
|
2653
2660
|
), D.setKeyWords("R"), D.setUserDraw((p, d) => {
|
|
2654
|
-
A.startPoint = p, d.drawCustomEntity(A), d.drawCustomEntity(
|
|
2661
|
+
A.startPoint = p, d.drawCustomEntity(A), d.drawCustomEntity(s);
|
|
2655
2662
|
}), !0;
|
|
2656
2663
|
if (D.isKeyWordPicked("L"))
|
|
2657
2664
|
return D.setMessage(
|
|
2658
2665
|
`
|
|
2659
2666
|
\u6307\u5B9A\u5706\u5F27\u7684\u5939\u89D2(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)\u6216 [\u4FEE\u6539\u534A\u5F84(R)]:`
|
|
2660
2667
|
), D.setKeyWords("R"), D.setUserDraw((p, d) => {
|
|
2661
|
-
A.startPoint = p, d.drawCustomEntity(A), d.drawCustomEntity(
|
|
2668
|
+
A.startPoint = p, d.drawCustomEntity(A), d.drawCustomEntity(s);
|
|
2662
2669
|
}), !0;
|
|
2663
2670
|
if (D.isKeyWordPicked("R"))
|
|
2664
2671
|
D.setMessage(
|
|
@@ -2671,23 +2678,23 @@ async function DC() {
|
|
|
2671
2678
|
return !0;
|
|
2672
2679
|
}
|
|
2673
2680
|
);
|
|
2674
|
-
let
|
|
2675
|
-
const
|
|
2681
|
+
let a;
|
|
2682
|
+
const m = L(
|
|
2676
2683
|
D,
|
|
2677
2684
|
() => {
|
|
2678
|
-
|
|
2679
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), F = new oC(), F.color = E, F.autoClockwise = !0, F.closed = !1,
|
|
2680
|
-
F.point1 = B, F.point3 =
|
|
2685
|
+
a = D.value(), D.setMessage(`
|
|
2686
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), F = new oC(), F.color = E, F.autoClockwise = !0, F.closed = !1, I.use(F), D.setUserDraw((p, d) => {
|
|
2687
|
+
F.point1 = B, F.point3 = a, F.point2 = p, d.drawCustomEntity(F);
|
|
2681
2688
|
}), f();
|
|
2682
2689
|
},
|
|
2683
2690
|
() => {
|
|
2684
2691
|
if (D.isKeyWordPicked("C"))
|
|
2685
|
-
A = new
|
|
2692
|
+
A = new DD(), A.closed = !1, I.use(A), A.color = E, D.setMessage(`
|
|
2686
2693
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), D.setKeyWords(""), D.setUserDraw((p, d) => {
|
|
2687
2694
|
A.startPoint = B, d.drawLine(p, A.startPoint);
|
|
2688
2695
|
}), i();
|
|
2689
2696
|
else if (D.isKeyWordPicked("E"))
|
|
2690
|
-
A = new
|
|
2697
|
+
A = new DD(), A.closed = !1, I.use(A), A.color = E, D.setMessage(`
|
|
2691
2698
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), D.setKeyWords(""), D.setUserDraw((p, d) => {
|
|
2692
2699
|
A.startPoint = B, d.drawLine(p, A.startPoint);
|
|
2693
2700
|
}), i();
|
|
@@ -2695,12 +2702,12 @@ async function DC() {
|
|
|
2695
2702
|
return !0;
|
|
2696
2703
|
}
|
|
2697
2704
|
);
|
|
2698
|
-
let w =
|
|
2705
|
+
let w = n.GetCurrentMxCAD();
|
|
2699
2706
|
const f = L(
|
|
2700
2707
|
D,
|
|
2701
2708
|
() => {
|
|
2702
|
-
F.point1 = B, F.point2 = D.value(), F.point3 =
|
|
2703
|
-
let p = new
|
|
2709
|
+
F.point1 = B, F.point2 = D.value(), F.point3 = a;
|
|
2710
|
+
let p = new AD();
|
|
2704
2711
|
p.computeArc(F.point1.x, F.point1.y, F.point3.x, F.point3.y, F.point2.x, F.point2.y), w.DrawEntity(p);
|
|
2705
2712
|
},
|
|
2706
2713
|
() => {
|
|
@@ -2719,15 +2726,15 @@ h.on("init", () => {
|
|
|
2719
2726
|
});
|
|
2720
2727
|
function CC() {
|
|
2721
2728
|
const E = new O(), D = new aC();
|
|
2722
|
-
D.closed = !1,
|
|
2729
|
+
D.closed = !1, I.use(D), E.setMessage(`
|
|
2723
2730
|
\u6307\u5B9A\u692D\u5706\u7684\u8F74\u7AEF\u70B9`), E.setKeyWords("[\u4E2D\u5FC3\u70B9(C)]");
|
|
2724
2731
|
let C, B = new THREE.Vector3();
|
|
2725
2732
|
L(
|
|
2726
2733
|
E,
|
|
2727
2734
|
() => {
|
|
2728
|
-
C = E.value(), E.setUserDraw((
|
|
2729
|
-
const u = new THREE.Line3(C,
|
|
2730
|
-
u.getCenter(B), D.center = B, D.xRadius = u.distance() / 2, D.yRadius = D.xRadius, D.rotation =
|
|
2735
|
+
C = E.value(), E.setUserDraw((r, s) => {
|
|
2736
|
+
const u = new THREE.Line3(C, r);
|
|
2737
|
+
u.getCenter(B), D.center = B, D.xRadius = u.distance() / 2, D.yRadius = D.xRadius, D.rotation = nD(r.x, r.y, B.x, B.y), s.drawLine(r, C);
|
|
2731
2738
|
}), E.setMessage(`
|
|
2732
2739
|
\u6307\u5B9A\u692D\u5706\u5F27\u8F74\u7684\u53E6\u4E00\u4E2A\u7AEF\u70B9:`), E.setKeyWords(""), A();
|
|
2733
2740
|
},
|
|
@@ -2737,8 +2744,8 @@ function CC() {
|
|
|
2737
2744
|
const A = L(
|
|
2738
2745
|
E,
|
|
2739
2746
|
() => {
|
|
2740
|
-
E.setUserDraw((
|
|
2741
|
-
D.yRadius = B.distanceTo(
|
|
2747
|
+
E.setUserDraw((r, s) => {
|
|
2748
|
+
D.yRadius = B.distanceTo(r), s.drawLine(B, r), s.drawCustomEntity(D);
|
|
2742
2749
|
}), E.setMessage(`
|
|
2743
2750
|
\u6307\u5B9A\u53E6\u4E00\u6761\u534A\u8F74\u957F\u5EA6`), E.setKeyWords(""), e();
|
|
2744
2751
|
},
|
|
@@ -2748,8 +2755,8 @@ function CC() {
|
|
|
2748
2755
|
E,
|
|
2749
2756
|
() => {
|
|
2750
2757
|
E.setMessage(`
|
|
2751
|
-
\u6307\u5B9A\u8D77\u59CB\u89D2\u5EA6`), E.setKeyWords(""), E.setUserDraw((
|
|
2752
|
-
D.startAngle =
|
|
2758
|
+
\u6307\u5B9A\u8D77\u59CB\u89D2\u5EA6`), E.setKeyWords(""), E.setUserDraw((r, s) => {
|
|
2759
|
+
D.startAngle = nD(r.x, r.y, B.x, B.y) - D.rotation, s.drawLine(B, r), s.drawCustomEntity(D);
|
|
2753
2760
|
}), t();
|
|
2754
2761
|
},
|
|
2755
2762
|
() => {
|
|
@@ -2757,8 +2764,8 @@ function CC() {
|
|
|
2757
2764
|
), t = L(
|
|
2758
2765
|
E,
|
|
2759
2766
|
() => {
|
|
2760
|
-
E.setUserDraw((
|
|
2761
|
-
D.endAngle =
|
|
2767
|
+
E.setUserDraw((r, s) => {
|
|
2768
|
+
D.endAngle = nD(r.x, r.y, B.x, B.y) - D.rotation, s.drawLine(B, r), s.drawCustomEntity(D);
|
|
2762
2769
|
}), E.setMessage(`
|
|
2763
2770
|
\u6307\u5B9A\u7EC8\u6B62\u89D2\u5EA6`), E.setKeyWords(""), i();
|
|
2764
2771
|
},
|
|
@@ -2767,8 +2774,8 @@ function CC() {
|
|
|
2767
2774
|
), i = L(
|
|
2768
2775
|
E,
|
|
2769
2776
|
() => {
|
|
2770
|
-
let
|
|
2771
|
-
|
|
2777
|
+
let r = new y(D.xRadius, 0, 0);
|
|
2778
|
+
r.rotateBy(D.rotation, y.kZAxis), n.GetCurrentMxCAD().DrawEntity(new tD(D.center.x, D.center.y, 0, r.x, r.y, 0, D.yRadius / D.xRadius, D.startAngle, D.endAngle));
|
|
2772
2779
|
},
|
|
2773
2780
|
() => {
|
|
2774
2781
|
}
|
|
@@ -2776,14 +2783,14 @@ function CC() {
|
|
|
2776
2783
|
}
|
|
2777
2784
|
function UC() {
|
|
2778
2785
|
const E = new O(), D = new uC(), C = new lC();
|
|
2779
|
-
let B =
|
|
2786
|
+
let B = n.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2780
2787
|
C.setColor(B), E.setMessage(`
|
|
2781
2788
|
\u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u692D\u5706:`), E.go(() => {
|
|
2782
2789
|
C.point1 = E.value(), D.setDraw((F) => {
|
|
2783
2790
|
C.point2 = F, D.drawCustomEntity(C);
|
|
2784
2791
|
}), E.setUserDraw(D), E.setMessage(`
|
|
2785
2792
|
\u518D\u6B21\u70B9\u51FB\u7ED3\u675F\u7ED8\u5236\u692D\u5706:`), E.go(() => {
|
|
2786
|
-
|
|
2793
|
+
n.GetCurrentMxCAD().DrawEntity(new tD(C.center.x, C.center.y, 0, C.xRadius, 0, 0, C.yRadius / C.xRadius));
|
|
2787
2794
|
});
|
|
2788
2795
|
});
|
|
2789
2796
|
}
|
|
@@ -2791,7 +2798,7 @@ h.on("init", () => {
|
|
|
2791
2798
|
h.addCommand("Mx_EllipseArc", CC), h.addCommand("Mx_Ellipse", UC);
|
|
2792
2799
|
});
|
|
2793
2800
|
async function BC() {
|
|
2794
|
-
let E =
|
|
2801
|
+
let E = U.getCurrentSelect();
|
|
2795
2802
|
if (E.length > 0) {
|
|
2796
2803
|
E.forEach((C) => {
|
|
2797
2804
|
C.erase();
|
|
@@ -2804,7 +2811,7 @@ async function BC() {
|
|
|
2804
2811
|
C.erase();
|
|
2805
2812
|
});
|
|
2806
2813
|
}
|
|
2807
|
-
function
|
|
2814
|
+
function X(E) {
|
|
2808
2815
|
let D, C;
|
|
2809
2816
|
if (E.forEach((B) => {
|
|
2810
2817
|
let F = B.getMcDbEntity();
|
|
@@ -2817,7 +2824,7 @@ function rD(E) {
|
|
|
2817
2824
|
}
|
|
2818
2825
|
async function WC() {
|
|
2819
2826
|
let E;
|
|
2820
|
-
for (; E =
|
|
2827
|
+
for (; E = U.getCurrentSelect(), !(E.length > 0); ) {
|
|
2821
2828
|
let e = new _();
|
|
2822
2829
|
if (!await e.userSelect(`
|
|
2823
2830
|
\u9009\u62E9\u590D\u5236\u5BF9\u8C61`) || (E = e.getIds(), E.length == 0))
|
|
@@ -2826,34 +2833,34 @@ async function WC() {
|
|
|
2826
2833
|
}
|
|
2827
2834
|
let D, C;
|
|
2828
2835
|
if (E.length >= 10) {
|
|
2829
|
-
let e =
|
|
2836
|
+
let e = X(E);
|
|
2830
2837
|
e && (D = e.minPt, C = e.maxPt);
|
|
2831
2838
|
}
|
|
2832
|
-
let B = new
|
|
2839
|
+
let B = new G();
|
|
2833
2840
|
B.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
2834
2841
|
let F = await B.go();
|
|
2835
2842
|
if (!F)
|
|
2836
2843
|
return;
|
|
2837
2844
|
B.setMessage("\u6307\u5B9A\u79FB\u52A8\u5230\u70B9"), B.setBasePt(F), B.setUseBasePt(!0), B.setUserDraw((e, t) => {
|
|
2838
2845
|
if (D && C) {
|
|
2839
|
-
let i = e.x - F.x,
|
|
2840
|
-
t.drawLine(
|
|
2846
|
+
let i = e.x - F.x, r = e.y - F.y, s = new THREE.Vector3(D.x + i, C.y + r, 0), u = new THREE.Vector3(C.x + i, D.y + r, 0), l = new THREE.Vector3(s.x, u.y, 0), c = new THREE.Vector3(u.x, s.y, 0);
|
|
2847
|
+
t.drawLine(c, s), t.drawLine(s, l), t.drawLine(l, u), t.drawLine(u, c);
|
|
2841
2848
|
}
|
|
2842
2849
|
for (let i = 0; i < E.length && i < 10; i++) {
|
|
2843
|
-
let
|
|
2844
|
-
!
|
|
2850
|
+
let r = E[i].clone();
|
|
2851
|
+
!r || (r.Move(F, e), t.drawMcDbEntity(r));
|
|
2845
2852
|
}
|
|
2846
2853
|
});
|
|
2847
2854
|
let A = await B.go();
|
|
2848
2855
|
if (!!A)
|
|
2849
2856
|
for (let e = 0; e < E.length; e++) {
|
|
2850
2857
|
let t = E[e].clone();
|
|
2851
|
-
!t || (t.Move(F, A),
|
|
2858
|
+
!t || (t.Move(F, A), n.GetCurrentMxCAD().DrawEntity(t));
|
|
2852
2859
|
}
|
|
2853
2860
|
}
|
|
2854
2861
|
async function zC() {
|
|
2855
2862
|
let E;
|
|
2856
|
-
for (; E =
|
|
2863
|
+
for (; E = U.getCurrentSelect(), !(E.length > 0); ) {
|
|
2857
2864
|
let e = new _();
|
|
2858
2865
|
if (!await e.userSelect(`
|
|
2859
2866
|
\u9009\u62E9\u79FB\u52A8\u5BF9\u8C61`) || (E = e.getIds(), E.length == 0))
|
|
@@ -2862,22 +2869,22 @@ async function zC() {
|
|
|
2862
2869
|
}
|
|
2863
2870
|
let D, C;
|
|
2864
2871
|
if (E.length >= 10) {
|
|
2865
|
-
let e =
|
|
2872
|
+
let e = X(E);
|
|
2866
2873
|
e && (D = e.minPt, C = e.maxPt);
|
|
2867
2874
|
}
|
|
2868
|
-
let B = new
|
|
2875
|
+
let B = new G();
|
|
2869
2876
|
B.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
2870
2877
|
let F = await B.go();
|
|
2871
2878
|
if (!F)
|
|
2872
2879
|
return;
|
|
2873
2880
|
B.setMessage("\u6307\u5B9A\u79FB\u52A8\u5230\u70B9"), B.setBasePt(F), B.setUseBasePt(!0), B.setUserDraw((e, t) => {
|
|
2874
2881
|
if (D && C) {
|
|
2875
|
-
let i = e.x - F.x,
|
|
2876
|
-
t.drawLine(
|
|
2882
|
+
let i = e.x - F.x, r = e.y - F.y, s = new THREE.Vector3(D.x + i, C.y + r, 0), u = new THREE.Vector3(C.x + i, D.y + r, 0), l = new THREE.Vector3(s.x, u.y, 0), c = new THREE.Vector3(u.x, s.y, 0);
|
|
2883
|
+
t.drawLine(c, s), t.drawLine(s, l), t.drawLine(l, u), t.drawLine(u, c);
|
|
2877
2884
|
}
|
|
2878
2885
|
for (let i = 0; i < E.length && i < 10; i++) {
|
|
2879
|
-
let
|
|
2880
|
-
!
|
|
2886
|
+
let r = E[i].clone();
|
|
2887
|
+
!r || (r.Move(F, e), t.drawMcDbEntity(r));
|
|
2881
2888
|
}
|
|
2882
2889
|
});
|
|
2883
2890
|
let A = await B.go();
|
|
@@ -2889,96 +2896,96 @@ async function zC() {
|
|
|
2889
2896
|
}
|
|
2890
2897
|
async function KC() {
|
|
2891
2898
|
let E;
|
|
2892
|
-
for (; E =
|
|
2899
|
+
for (; E = U.getCurrentSelect(), !(E.length > 0); ) {
|
|
2893
2900
|
let l = new _();
|
|
2894
2901
|
if (!await l.userSelect(`
|
|
2895
2902
|
\u9009\u62E9\u65CB\u8F6C\u5BF9\u8C61`) || (E = l.getIds(), E.length == 0))
|
|
2896
2903
|
return;
|
|
2897
2904
|
break;
|
|
2898
2905
|
}
|
|
2899
|
-
let D, C, B =
|
|
2906
|
+
let D, C, B = X(E);
|
|
2900
2907
|
B && (D = B.minPt, C = B.maxPt);
|
|
2901
|
-
let F = new
|
|
2908
|
+
let F = new G();
|
|
2902
2909
|
F.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
2903
2910
|
let A = await F.go();
|
|
2904
2911
|
if (A == null)
|
|
2905
2912
|
return;
|
|
2906
|
-
F.setMessage("\u6307\u5B9A\u65CB\u8F6C\u89D2\u5EA6"), F.setBasePt(A), F.setUseBasePt(!0), F.setUserDraw((l,
|
|
2907
|
-
let
|
|
2908
|
-
if (p.setToRotation(f, y.kZAxis,
|
|
2913
|
+
F.setMessage("\u6307\u5B9A\u65CB\u8F6C\u89D2\u5EA6"), F.setBasePt(A), F.setUseBasePt(!0), F.setUserDraw((l, c) => {
|
|
2914
|
+
let a = l, m = A, f = a.sub(m).angleTo2(y.kXAxis, y.kNegateZAxis), p = new v();
|
|
2915
|
+
if (p.setToRotation(f, y.kZAxis, m), D && C) {
|
|
2909
2916
|
let d = new o(D.x, C.y, 0), b = new o(C.x, D.y, 0), x = new o(d.x, b.y, 0), g = new o(b.x, d.y, 0);
|
|
2910
|
-
d.transformBy(p), b.transformBy(p), x.transformBy(p), g.transformBy(p),
|
|
2917
|
+
d.transformBy(p), b.transformBy(p), x.transformBy(p), g.transformBy(p), c.drawLine(g.toVector3(), d.toVector3()), c.drawLine(d.toVector3(), x.toVector3()), c.drawLine(x.toVector3(), b.toVector3()), c.drawLine(b.toVector3(), g.toVector3());
|
|
2911
2918
|
}
|
|
2912
|
-
|
|
2919
|
+
m = n.GetCurrentMxCAD().docCoord2Cad(m), p.setToRotation(f, y.kZAxis, m);
|
|
2913
2920
|
for (let d = 0; d < E.length && d < 10; d++) {
|
|
2914
2921
|
let b = E[d].clone();
|
|
2915
|
-
!b || (b.TransformBy(p),
|
|
2922
|
+
!b || (b.TransformBy(p), c.drawMcDbEntity(b));
|
|
2916
2923
|
}
|
|
2917
2924
|
});
|
|
2918
2925
|
let e = await F.go();
|
|
2919
2926
|
if (!e)
|
|
2920
2927
|
return;
|
|
2921
|
-
let t = e, i = A,
|
|
2922
|
-
i =
|
|
2928
|
+
let t = e, i = A, s = t.sub(i).angleTo2(y.kXAxis, y.kNegateZAxis), u = new v();
|
|
2929
|
+
i = n.GetCurrentMxCAD().docCoord2Cad(i), u.setToRotation(s, y.kZAxis, i);
|
|
2923
2930
|
for (let l = 0; l < E.length; l++) {
|
|
2924
|
-
let
|
|
2925
|
-
!
|
|
2931
|
+
let c = E[l].getMcDbObject();
|
|
2932
|
+
!c || c.TransformBy(u);
|
|
2926
2933
|
}
|
|
2927
2934
|
}
|
|
2928
2935
|
async function HC() {
|
|
2929
2936
|
let E;
|
|
2930
|
-
for (; E =
|
|
2931
|
-
let
|
|
2932
|
-
if (!await
|
|
2933
|
-
\u9009\u62E9\u7F29\u653E\u5BF9\u8C61`) || (E =
|
|
2937
|
+
for (; E = U.getCurrentSelect(), !(E.length > 0); ) {
|
|
2938
|
+
let m = new _();
|
|
2939
|
+
if (!await m.userSelect(`
|
|
2940
|
+
\u9009\u62E9\u7F29\u653E\u5BF9\u8C61`) || (E = m.getIds(), E.length == 0))
|
|
2934
2941
|
return;
|
|
2935
2942
|
break;
|
|
2936
2943
|
}
|
|
2937
|
-
let D, C, B =
|
|
2944
|
+
let D, C, B = X(E);
|
|
2938
2945
|
if (!B)
|
|
2939
2946
|
return;
|
|
2940
2947
|
D = B.minPt, C = B.maxPt;
|
|
2941
2948
|
let F = C.x - D.x, A = C.y - D.y, e = (F + A) / 3;
|
|
2942
2949
|
e < 1e-5 && (e = 1);
|
|
2943
|
-
let t = new
|
|
2950
|
+
let t = new G();
|
|
2944
2951
|
t.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
2945
2952
|
let i = await t.go();
|
|
2946
2953
|
if (i == null)
|
|
2947
2954
|
return;
|
|
2948
|
-
t.setMessage("\u6307\u5B9A\u6BD4\u4F8B\u56E0\u5B50"), t.setBasePt(i), t.setUseBasePt(!0), t.setUserDraw((
|
|
2949
|
-
let f = new o(
|
|
2955
|
+
t.setMessage("\u6307\u5B9A\u6BD4\u4F8B\u56E0\u5B50"), t.setBasePt(i), t.setUseBasePt(!0), t.setUserDraw((m, w) => {
|
|
2956
|
+
let f = new o(m), p = new o(i), d = f.distanceTo(p);
|
|
2950
2957
|
if (d < 1e-5)
|
|
2951
2958
|
return;
|
|
2952
2959
|
let b = d / e;
|
|
2953
2960
|
b > 1e5 && (b = 1e5);
|
|
2954
|
-
let x = new
|
|
2961
|
+
let x = new v();
|
|
2955
2962
|
if (x.setToScaling(b, p), D && C) {
|
|
2956
|
-
let g = new o(D.x, C.y, 0), M = new o(C.x, D.y, 0),
|
|
2957
|
-
g.transformBy(x), M.transformBy(x),
|
|
2963
|
+
let g = new o(D.x, C.y, 0), M = new o(C.x, D.y, 0), S = new o(g.x, M.y, 0), Y = new o(M.x, g.y, 0);
|
|
2964
|
+
g.transformBy(x), M.transformBy(x), S.transformBy(x), Y.transformBy(x), w.drawLine(Y.toVector3(), g.toVector3()), w.drawLine(g.toVector3(), S.toVector3()), w.drawLine(S.toVector3(), M.toVector3()), w.drawLine(M.toVector3(), Y.toVector3());
|
|
2958
2965
|
}
|
|
2959
|
-
p =
|
|
2966
|
+
p = n.GetCurrentMxCAD().docCoord2Cad(p), x.setToScaling(b, p);
|
|
2960
2967
|
for (let g = 0; g < E.length && g < 10; g++) {
|
|
2961
2968
|
let M = E[g].clone();
|
|
2962
2969
|
!M || (M.TransformBy(x), w.drawMcDbEntity(M));
|
|
2963
2970
|
}
|
|
2964
2971
|
});
|
|
2965
|
-
let
|
|
2966
|
-
if (!
|
|
2972
|
+
let r = await t.go();
|
|
2973
|
+
if (!r)
|
|
2967
2974
|
return;
|
|
2968
|
-
let
|
|
2975
|
+
let s = r, u = i, l = s.distanceTo(u);
|
|
2969
2976
|
if (l < 1e-5)
|
|
2970
2977
|
return;
|
|
2971
|
-
let
|
|
2972
|
-
|
|
2973
|
-
let
|
|
2974
|
-
u =
|
|
2975
|
-
for (let
|
|
2976
|
-
let w = E[
|
|
2977
|
-
!w || w.TransformBy(
|
|
2978
|
+
let c = l / e;
|
|
2979
|
+
c > 1e5 && (c = 1e5);
|
|
2980
|
+
let a = new v();
|
|
2981
|
+
u = n.GetCurrentMxCAD().docCoord2Cad(u), a.setToScaling(c, u);
|
|
2982
|
+
for (let m = 0; m < E.length; m++) {
|
|
2983
|
+
let w = E[m].getMcDbObject();
|
|
2984
|
+
!w || w.TransformBy(a);
|
|
2978
2985
|
}
|
|
2979
2986
|
}
|
|
2980
2987
|
async function NC() {
|
|
2981
|
-
let E = new
|
|
2988
|
+
let E = new G();
|
|
2982
2989
|
E.setDisableOsnap(!0), E.setMessage("\u70B9\u53D6\u7F29\u653E\u533A\u57DF"), E.setDynamicInputType(dD.kDynTip);
|
|
2983
2990
|
let D = await E.go();
|
|
2984
2991
|
if (D == null)
|
|
@@ -2990,7 +2997,7 @@ async function NC() {
|
|
|
2990
2997
|
C != null && h.getCurrentDraw().zoomW(D.toVector3(), C.toVector3());
|
|
2991
2998
|
}
|
|
2992
2999
|
async function _C() {
|
|
2993
|
-
let E =
|
|
3000
|
+
let E = n.GetCurrentDatabase().CurrentSpace().getBoundingBox();
|
|
2994
3001
|
!E.ret || h.getCurrentDraw().zoomW(E.minPt.toVector3(), E.maxPt.toVector3());
|
|
2995
3002
|
}
|
|
2996
3003
|
async function qC() {
|
|
@@ -3000,13 +3007,13 @@ async function qC() {
|
|
|
3000
3007
|
let D = await E.go();
|
|
3001
3008
|
if (D == null)
|
|
3002
3009
|
return;
|
|
3003
|
-
let C = new
|
|
3010
|
+
let C = new iD();
|
|
3004
3011
|
C.AddMcDbEntityTypes("LINE,CIRCLE,LWPOLYLINE,ARC");
|
|
3005
|
-
let B = await
|
|
3012
|
+
let B = await U.selectEnt(`
|
|
3006
3013
|
\u9009\u62E9\u504F\u79FB\u5BF9\u8C61`, C, !1);
|
|
3007
3014
|
if (B.length == 0)
|
|
3008
3015
|
return;
|
|
3009
|
-
const F = new
|
|
3016
|
+
const F = new G();
|
|
3010
3017
|
F.setMessage(`
|
|
3011
3018
|
\u6307\u5B9A\u8981\u504F\u79FB\u90A3\u4E00\u4FA7\u4E0A\u7684\u70B9:`), F.setDisableOsnap(!0);
|
|
3012
3019
|
let A = await F.go();
|
|
@@ -3017,25 +3024,58 @@ async function qC() {
|
|
|
3017
3024
|
return;
|
|
3018
3025
|
let t = e.offsetCurves(D, A);
|
|
3019
3026
|
t.empty() || t.forEach((i) => {
|
|
3020
|
-
|
|
3027
|
+
n.GetCurrentMxCAD().DrawEntity(i);
|
|
3021
3028
|
});
|
|
3022
3029
|
}
|
|
3023
3030
|
function ZC() {
|
|
3024
|
-
|
|
3031
|
+
n.GetCurrentMxCAD().getImp().regen();
|
|
3032
|
+
}
|
|
3033
|
+
async function $C() {
|
|
3034
|
+
let E = await U.userSelect("\u9009\u62E9\u955C\u50CF\u5BF9\u8C61");
|
|
3035
|
+
if (E.length == 0) {
|
|
3036
|
+
h.acutPrintf(`
|
|
3037
|
+
\u6CA1\u6709\u80FD\u955C\u50CF\u7684\u5BF9\u8C61`);
|
|
3038
|
+
return;
|
|
3039
|
+
}
|
|
3040
|
+
let D, C, B = X(E);
|
|
3041
|
+
B && (D = B.minPt, C = B.maxPt);
|
|
3042
|
+
let F = new G();
|
|
3043
|
+
F.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
3044
|
+
let A = await F.go();
|
|
3045
|
+
if (A == null)
|
|
3046
|
+
return;
|
|
3047
|
+
F.setMessage("\u6307\u5B9A\u955C\u5411\u70B9"), F.setBasePt(A), F.setUseBasePt(!0), F.setUserDraw((t, i) => {
|
|
3048
|
+
if (D && C) {
|
|
3049
|
+
let r = new v();
|
|
3050
|
+
r.setMirror(A, t);
|
|
3051
|
+
let s = new o(D.x, C.y, 0), u = new o(C.x, D.y, 0), l = new o(s.x, u.y, 0), c = new o(u.x, s.y, 0);
|
|
3052
|
+
s.transformBy(r), u.transformBy(r), l.transformBy(r), c.transformBy(r), i.drawLine(c.toVector3(), s.toVector3()), i.drawLine(s.toVector3(), l.toVector3()), i.drawLine(l.toVector3(), u.toVector3()), i.drawLine(u.toVector3(), c.toVector3());
|
|
3053
|
+
}
|
|
3054
|
+
for (let r = 0; r < E.length && r < 10; r++) {
|
|
3055
|
+
let s = E[r].clone();
|
|
3056
|
+
!s || (s.Mirror(A, t), i.drawMcDbEntity(s));
|
|
3057
|
+
}
|
|
3058
|
+
});
|
|
3059
|
+
let e = await F.go();
|
|
3060
|
+
if (!!e)
|
|
3061
|
+
for (let t = 0; t < E.length; t++) {
|
|
3062
|
+
let i = E[t].clone();
|
|
3063
|
+
!i || (i.Mirror(A, e), n.GetCurrentMxCAD().DrawEntity(i));
|
|
3064
|
+
}
|
|
3025
3065
|
}
|
|
3026
3066
|
h.on("init", () => {
|
|
3027
|
-
h.addCommand("Mx_Erase", BC), h.addCommand("Mx_Copy", WC), h.addCommand("Mx_Move", zC), h.addCommand("Mx_Rotate", KC), h.addCommand("Mx_Scale", HC), h.addCommand("Mx_WindowZoom", NC), h.addCommand("Mx_ZoomE", _C), h.addCommand("Mx_Offset", qC), h.addCommand("Mx_Regen", ZC);
|
|
3067
|
+
h.addCommand("Mx_Erase", BC), h.addCommand("Mx_Copy", WC), h.addCommand("Mx_Move", zC), h.addCommand("Mx_Rotate", KC), h.addCommand("Mx_Scale", HC), h.addCommand("Mx_WindowZoom", NC), h.addCommand("Mx_ZoomE", _C), h.addCommand("Mx_Offset", qC), h.addCommand("Mx_Regen", ZC), h.addCommand("Mx_Mirror", $C);
|
|
3028
3068
|
});
|
|
3029
|
-
const
|
|
3069
|
+
const JC = async (E, D, C) => {
|
|
3030
3070
|
const { locateFile: B } = C, F = B(E + ".js");
|
|
3031
3071
|
return await ZD(F), await globalThis[D](C);
|
|
3032
3072
|
};
|
|
3033
|
-
function
|
|
3073
|
+
function YC(E) {
|
|
3034
3074
|
return typeof ResizeObserver == "function" ? new ResizeObserver(E) : null;
|
|
3035
3075
|
}
|
|
3036
|
-
function
|
|
3076
|
+
function QC(E, D) {
|
|
3037
3077
|
const C = () => requestAnimationFrame(D);
|
|
3038
|
-
let B =
|
|
3078
|
+
let B = YC(C);
|
|
3039
3079
|
if (B) {
|
|
3040
3080
|
B.observe(E);
|
|
3041
3081
|
return;
|
|
@@ -3045,7 +3085,7 @@ function YC(E, D) {
|
|
|
3045
3085
|
return;
|
|
3046
3086
|
}
|
|
3047
3087
|
}
|
|
3048
|
-
function
|
|
3088
|
+
function XC(E, D) {
|
|
3049
3089
|
let C = null;
|
|
3050
3090
|
return function(...B) {
|
|
3051
3091
|
C || (C = setTimeout(() => {
|
|
@@ -3059,41 +3099,41 @@ class J {
|
|
|
3059
3099
|
constructor(D) {
|
|
3060
3100
|
const C = () => {
|
|
3061
3101
|
const u = this.canvas.parentElement?.clientWidth || window.innerWidth, l = this.canvas.parentElement?.clientHeight || window.innerHeight;
|
|
3062
|
-
let
|
|
3063
|
-
|
|
3064
|
-
const
|
|
3065
|
-
this.canvas.width =
|
|
3066
|
-
}, B =
|
|
3102
|
+
let c = Math.min(u, window.screen.availWidth), a = Math.min(l, window.screen.availHeight);
|
|
3103
|
+
c = Math.max(A, c), a = Math.max(e, a), this.canvas.style.width = c + 1 + "px", this.canvas.style.height = a + "px";
|
|
3104
|
+
const m = window.devicePixelRatio || 1;
|
|
3105
|
+
this.canvas.width = c * m, this.canvas.height = a * m;
|
|
3106
|
+
}, B = XC(C, 50), {
|
|
3067
3107
|
canvas: F,
|
|
3068
3108
|
minWidth: A = 300,
|
|
3069
3109
|
minHeight: e = 300,
|
|
3070
3110
|
updateCanvasSize: t = B,
|
|
3071
3111
|
...i
|
|
3072
3112
|
} = D;
|
|
3073
|
-
let
|
|
3074
|
-
|
|
3113
|
+
let r = typeof F == "string" ? document.querySelectorAll(F)[0] : F, s = r.getContext("webgl2", { alpha: !1, depth: !0, antialias: !1, preserveDrawingBuffer: !0 });
|
|
3114
|
+
s == null && (s = r.getContext("webgl", { alpha: !1, depth: !0, antialias: !1, preserveDrawingBuffer: !0 })), this.canvas = r, this.ctx = s, i.canvas = this.canvas;
|
|
3075
3115
|
for (let u in i)
|
|
3076
3116
|
this[u] = i[u];
|
|
3077
3117
|
if (this.canvas instanceof HTMLCanvasElement) {
|
|
3078
3118
|
const u = this.canvas.parentElement || document.body;
|
|
3079
|
-
|
|
3119
|
+
QC(u, t);
|
|
3080
3120
|
} else
|
|
3081
3121
|
console.error("createMxDraw3d canvas \u53C2\u6570\u4E0D\u6B63\u786E \u65E0\u6CD5\u83B7\u53D6\u5230canvas\u5143\u7D20");
|
|
3082
|
-
window.onresize = C, C(),
|
|
3122
|
+
window.onresize = C, C(), JC("mxdraw3d_min", "mxdraw3d", this).then(() => {
|
|
3083
3123
|
J.onloadWasmMxDraw3dModel && J.onloadWasmMxDraw3dModel(this), this.updateCanvasSize = t, this.open3DFile = (u) => {
|
|
3084
3124
|
const l = new FileReader();
|
|
3085
3125
|
l.onload = () => {
|
|
3086
3126
|
if (!!l.result && l.result instanceof ArrayBuffer) {
|
|
3087
|
-
var
|
|
3088
|
-
const
|
|
3089
|
-
this.HEAPU8.set(
|
|
3127
|
+
var c = new Uint8Array(l.result);
|
|
3128
|
+
const a = this._malloc(c.length);
|
|
3129
|
+
this.HEAPU8.set(c, a), this.openFromMemory(u.name, a, c.length, !0), this.displayGround(!0), this.canvas.focus();
|
|
3090
3130
|
}
|
|
3091
3131
|
}, l.readAsArrayBuffer(u);
|
|
3092
3132
|
};
|
|
3093
3133
|
});
|
|
3094
3134
|
}
|
|
3095
3135
|
}
|
|
3096
|
-
function
|
|
3136
|
+
function D9(E, D) {
|
|
3097
3137
|
return new Promise(async (C, B) => {
|
|
3098
3138
|
try {
|
|
3099
3139
|
E.locateFile || (E.locateFile = PC);
|
|
@@ -3106,7 +3146,7 @@ function XC(E, D) {
|
|
|
3106
3146
|
}
|
|
3107
3147
|
});
|
|
3108
3148
|
}
|
|
3109
|
-
const
|
|
3149
|
+
const B9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3110
3150
|
__proto__: null,
|
|
3111
3151
|
b64Encode: kD,
|
|
3112
3152
|
b64Decode: RD,
|
|
@@ -3116,18 +3156,18 @@ const C9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3116
3156
|
MxTools: Q,
|
|
3117
3157
|
McGePoint3d: o,
|
|
3118
3158
|
McGeVector3d: y,
|
|
3119
|
-
McGeMatrix3d:
|
|
3159
|
+
McGeMatrix3d: v,
|
|
3120
3160
|
McGeLongArray: SD,
|
|
3121
3161
|
McGeStringArray: ID,
|
|
3122
3162
|
McGePoint3dArray: mC,
|
|
3123
3163
|
getFilterImp: K,
|
|
3124
|
-
MxCADResbuf:
|
|
3164
|
+
MxCADResbuf: iD,
|
|
3125
3165
|
MxCADUtilityClass: KD,
|
|
3126
|
-
MxCADUtility:
|
|
3166
|
+
MxCADUtility: U,
|
|
3127
3167
|
MxCADSelectionSetStatus: HD,
|
|
3128
3168
|
MxCADSelectionSet: _,
|
|
3129
3169
|
MxCADUiPrBase: q,
|
|
3130
|
-
MxCADUiPrPoint:
|
|
3170
|
+
MxCADUiPrPoint: G,
|
|
3131
3171
|
MxCADUiPrDist: ND,
|
|
3132
3172
|
MxCADUiPrAngle: yC,
|
|
3133
3173
|
MxCADUiPrInt: wC,
|
|
@@ -3148,28 +3188,28 @@ const C9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3148
3188
|
McDbTextStyleTable: VD,
|
|
3149
3189
|
McDbDatabase: hD,
|
|
3150
3190
|
McDbBlockTableRecordIterator: UD,
|
|
3151
|
-
McDbBlockTableRecord:
|
|
3191
|
+
McDbBlockTableRecord: eD,
|
|
3152
3192
|
McDbBlockTableIterator: WD,
|
|
3153
3193
|
McDbBlockTable: zD,
|
|
3154
|
-
McDbEntity:
|
|
3155
|
-
McDbCurve:
|
|
3156
|
-
McDbLine:
|
|
3194
|
+
McDbEntity: V,
|
|
3195
|
+
McDbCurve: z,
|
|
3196
|
+
McDbLine: BD,
|
|
3157
3197
|
McDbText: lD,
|
|
3158
|
-
McDbMText:
|
|
3159
|
-
McDbCircle:
|
|
3160
|
-
McDbPolyline:
|
|
3198
|
+
McDbMText: ED,
|
|
3199
|
+
McDbCircle: W,
|
|
3200
|
+
McDbPolyline: FD,
|
|
3161
3201
|
McDbBlockReference: cD,
|
|
3162
3202
|
McDbDimension: yD,
|
|
3163
3203
|
McDbAlignedDimension: mD,
|
|
3164
3204
|
McDbRotatedDimension: pD,
|
|
3165
|
-
McDbArc:
|
|
3166
|
-
McDbEllipse:
|
|
3205
|
+
McDbArc: AD,
|
|
3206
|
+
McDbEllipse: tD,
|
|
3167
3207
|
McDbPoint: wD,
|
|
3168
3208
|
McObject: $,
|
|
3169
3209
|
McAppType: _D,
|
|
3170
3210
|
MxCppType: qD,
|
|
3171
3211
|
get MxCpp() {
|
|
3172
|
-
return
|
|
3212
|
+
return n;
|
|
3173
3213
|
},
|
|
3174
3214
|
loadMxCADassembly: $D,
|
|
3175
3215
|
createMxCad: OC,
|
|
@@ -3183,39 +3223,39 @@ const C9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3183
3223
|
drawEllipticalArc: CC,
|
|
3184
3224
|
Mx_Erase: BC,
|
|
3185
3225
|
MxDraw3d: J,
|
|
3186
|
-
loadMxCADassembly3d:
|
|
3226
|
+
loadMxCADassembly3d: D9
|
|
3187
3227
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3188
3228
|
export {
|
|
3189
3229
|
_D as McAppType,
|
|
3190
3230
|
N as McCmColor,
|
|
3191
3231
|
uD as McDb,
|
|
3192
3232
|
mD as McDbAlignedDimension,
|
|
3193
|
-
|
|
3233
|
+
AD as McDbArc,
|
|
3194
3234
|
cD as McDbBlockReference,
|
|
3195
3235
|
zD as McDbBlockTable,
|
|
3196
3236
|
WD as McDbBlockTableIterator,
|
|
3197
|
-
|
|
3237
|
+
eD as McDbBlockTableRecord,
|
|
3198
3238
|
UD as McDbBlockTableRecordIterator,
|
|
3199
|
-
|
|
3200
|
-
|
|
3239
|
+
W as McDbCircle,
|
|
3240
|
+
z as McDbCurve,
|
|
3201
3241
|
hD as McDbDatabase,
|
|
3202
3242
|
yD as McDbDimension,
|
|
3203
|
-
|
|
3204
|
-
|
|
3243
|
+
tD as McDbEllipse,
|
|
3244
|
+
V as McDbEntity,
|
|
3205
3245
|
jD as McDbLayerTable,
|
|
3206
3246
|
hC as McDbLayerTableRecord,
|
|
3207
|
-
|
|
3247
|
+
BD as McDbLine,
|
|
3208
3248
|
GD as McDbLinetypeTable,
|
|
3209
|
-
|
|
3249
|
+
ED as McDbMText,
|
|
3210
3250
|
j as McDbObject,
|
|
3211
3251
|
aD as McDbObjectArray,
|
|
3212
3252
|
wD as McDbPoint,
|
|
3213
|
-
|
|
3253
|
+
FD as McDbPolyline,
|
|
3214
3254
|
pD as McDbRotatedDimension,
|
|
3215
3255
|
lD as McDbText,
|
|
3216
3256
|
VD as McDbTextStyleTable,
|
|
3217
3257
|
SD as McGeLongArray,
|
|
3218
|
-
|
|
3258
|
+
v as McGeMatrix3d,
|
|
3219
3259
|
o as McGePoint3d,
|
|
3220
3260
|
mC as McGePoint3dArray,
|
|
3221
3261
|
ID as McGeStringArray,
|
|
@@ -3224,7 +3264,7 @@ export {
|
|
|
3224
3264
|
R as McObjectId,
|
|
3225
3265
|
k as McObjectIdType,
|
|
3226
3266
|
H as McRxObject,
|
|
3227
|
-
|
|
3267
|
+
iD as MxCADResbuf,
|
|
3228
3268
|
_ as MxCADSelectionSet,
|
|
3229
3269
|
HD as MxCADSelectionSetStatus,
|
|
3230
3270
|
yC as MxCADUiPrAngle,
|
|
@@ -3232,11 +3272,11 @@ export {
|
|
|
3232
3272
|
ND as MxCADUiPrDist,
|
|
3233
3273
|
wC as MxCADUiPrInt,
|
|
3234
3274
|
gC as MxCADUiPrKeyWord,
|
|
3235
|
-
|
|
3275
|
+
G as MxCADUiPrPoint,
|
|
3236
3276
|
fC as MxCADUiPrString,
|
|
3237
|
-
|
|
3277
|
+
U as MxCADUtility,
|
|
3238
3278
|
KD as MxCADUtilityClass,
|
|
3239
|
-
|
|
3279
|
+
n as MxCpp,
|
|
3240
3280
|
qD as MxCppType,
|
|
3241
3281
|
J as MxDraw3d,
|
|
3242
3282
|
Q as MxTools,
|
|
@@ -3244,7 +3284,7 @@ export {
|
|
|
3244
3284
|
RD as b64Decode,
|
|
3245
3285
|
kD as b64Encode,
|
|
3246
3286
|
OC as createMxCad,
|
|
3247
|
-
|
|
3287
|
+
B9 as default,
|
|
3248
3288
|
LD as downloadFile,
|
|
3249
3289
|
vD as downloadFileFromUrl,
|
|
3250
3290
|
DC as drawArc,
|
|
@@ -3257,6 +3297,6 @@ export {
|
|
|
3257
3297
|
LC as drawText,
|
|
3258
3298
|
K as getFilterImp,
|
|
3259
3299
|
$D as loadMxCADassembly,
|
|
3260
|
-
|
|
3300
|
+
D9 as loadMxCADassembly3d,
|
|
3261
3301
|
OD as saveAsFileDialog
|
|
3262
3302
|
};
|