mxcad 1.0.84 → 1.0.85
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 +37 -4
- package/dist/mxcad.es.js +543 -420
- package/dist/mxcad.umd.js +37 -37
- package/dist/wasm/2d/mxdrawassembly_min.js +630 -621
- package/dist/wasm/2d/mxdrawassembly_min.wasm +0 -0
- package/dist/wasm/2d-st/mxdrawassembly_min.js +632 -623
- package/dist/wasm/2d-st/mxdrawassembly_minst.wasm +0 -0
- package/package.json +1 -1
package/dist/mxcad.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MxFun as h, MrxDbgUiPrPoint as
|
|
1
|
+
import { MxFun as h, MrxDbgUiPrPoint as I, MxCursorType as wD, MrxDbgUtils as mD, DynamicInputType as BD, DetailedResult as Y, MrxDbgUiPrDist as tC, MrxDbgUiPrAngle as eC, MrxDbgUiPrInt as iC, MrxDbgUiPrKeyWord as rC, MrxDbgUiPrString as sC, store as LD, loadCoreCode as nC, MxPaintBrush as V, MrxDbgUiPrBaseReturn as k, MxDbCircleShape as RD, MxDbLine as AD, MxDbPolyline as oC, MxDbCircleArc as FD, Mx3PointArc as aC, MxDbEllipseShape as uC, McEdGetPointWorldDrawObject as lC, MxDbEllipse as cC } from "mxdraw";
|
|
2
2
|
function OD(E) {
|
|
3
3
|
return btoa(unescape(encodeURIComponent(E)));
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function ID(E) {
|
|
6
6
|
return decodeURIComponent(escape(atob(E)));
|
|
7
7
|
}
|
|
8
8
|
async function vD({
|
|
@@ -45,7 +45,7 @@ async function vD({
|
|
|
45
45
|
console.error(B.name, B.message);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function SD(E, D) {
|
|
49
49
|
const C = document.createElement("a");
|
|
50
50
|
C.href = window.URL.createObjectURL(E), C.download = D, C.click();
|
|
51
51
|
}
|
|
@@ -55,11 +55,11 @@ function jD(E, D) {
|
|
|
55
55
|
B.href = window.URL.createObjectURL(C), B.download = D, B.click();
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const CD = {
|
|
59
59
|
b64Encode: OD,
|
|
60
|
-
b64Decode:
|
|
60
|
+
b64Decode: ID,
|
|
61
61
|
saveAsFileDialog: vD,
|
|
62
|
-
downloadFile:
|
|
62
|
+
downloadFile: SD,
|
|
63
63
|
downloadFileFromUrl: jD
|
|
64
64
|
};
|
|
65
65
|
class mC {
|
|
@@ -111,7 +111,7 @@ class mC {
|
|
|
111
111
|
return C;
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
let
|
|
114
|
+
let T = new mC();
|
|
115
115
|
class o {
|
|
116
116
|
static kOrigin;
|
|
117
117
|
imp;
|
|
@@ -219,6 +219,9 @@ class y {
|
|
|
219
219
|
isEqualTo(D) {
|
|
220
220
|
return this.imp.isEqualTo(D.imp);
|
|
221
221
|
}
|
|
222
|
+
mult(D) {
|
|
223
|
+
return this.imp.mult(D), this;
|
|
224
|
+
}
|
|
222
225
|
get x() {
|
|
223
226
|
return this.imp.x;
|
|
224
227
|
}
|
|
@@ -238,7 +241,7 @@ class y {
|
|
|
238
241
|
this.imp.z = D;
|
|
239
242
|
}
|
|
240
243
|
}
|
|
241
|
-
class
|
|
244
|
+
class S {
|
|
242
245
|
static kIdentity;
|
|
243
246
|
imp;
|
|
244
247
|
constructor(D) {
|
|
@@ -248,7 +251,7 @@ class v {
|
|
|
248
251
|
return this.imp.copy(D.imp), this;
|
|
249
252
|
}
|
|
250
253
|
clone() {
|
|
251
|
-
return new
|
|
254
|
+
return new S(this.imp);
|
|
252
255
|
}
|
|
253
256
|
setToIdentity() {
|
|
254
257
|
return this.imp.setToIdentity(), this;
|
|
@@ -299,7 +302,7 @@ class v {
|
|
|
299
302
|
return this.imp.getData(D, C);
|
|
300
303
|
}
|
|
301
304
|
}
|
|
302
|
-
class
|
|
305
|
+
class Q {
|
|
303
306
|
imp;
|
|
304
307
|
constructor(D) {
|
|
305
308
|
this.imp = new s.mxcadassemblyimp.MdGeLongArray(), D instanceof Object && this.imp.copy(D);
|
|
@@ -343,15 +346,15 @@ class GD {
|
|
|
343
346
|
return this.imp.length();
|
|
344
347
|
}
|
|
345
348
|
at(D, C = !0) {
|
|
346
|
-
return C ?
|
|
349
|
+
return C ? T.decodeFromGb2312(this.imp.at(D)) : this.imp.at(D);
|
|
347
350
|
}
|
|
348
351
|
setAt(D, C, B = !0) {
|
|
349
|
-
B ? this.imp.setAt(D,
|
|
352
|
+
B ? this.imp.setAt(D, T.encodeToGb2312(C)) : this.imp.setAt(D, C);
|
|
350
353
|
}
|
|
351
354
|
forEach(D, C = !0) {
|
|
352
355
|
let B = this.imp.length();
|
|
353
356
|
for (let F = 0; F < B; F++)
|
|
354
|
-
D(C ?
|
|
357
|
+
D(C ? T.decodeFromGb2312(this.imp.at(F)) : this.imp.at(F), F);
|
|
355
358
|
}
|
|
356
359
|
clear() {
|
|
357
360
|
this.imp.clear();
|
|
@@ -381,13 +384,37 @@ class pC {
|
|
|
381
384
|
this.imp.clear();
|
|
382
385
|
}
|
|
383
386
|
}
|
|
384
|
-
|
|
387
|
+
class dC {
|
|
388
|
+
imp;
|
|
389
|
+
constructor(D) {
|
|
390
|
+
this.imp = new s.mxcadassemblyimp.MdGeDoubleArray(), D instanceof Object && this.imp.copy(D);
|
|
391
|
+
}
|
|
392
|
+
copy(D) {
|
|
393
|
+
return this.imp.clear(), this.imp.copy(D.imp), this;
|
|
394
|
+
}
|
|
395
|
+
append(D) {
|
|
396
|
+
this.imp.append(D);
|
|
397
|
+
}
|
|
398
|
+
length() {
|
|
399
|
+
return this.imp.length();
|
|
400
|
+
}
|
|
401
|
+
at(D) {
|
|
402
|
+
return this.imp.at(D);
|
|
403
|
+
}
|
|
404
|
+
setAt(D, C) {
|
|
405
|
+
this.imp.setAt(D, C);
|
|
406
|
+
}
|
|
407
|
+
clear() {
|
|
408
|
+
this.imp.clear();
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
const hC = new FinalizationRegistry((E) => {
|
|
385
412
|
s.App.DestroyObject(E);
|
|
386
|
-
}),
|
|
387
|
-
class
|
|
413
|
+
}), yC = {};
|
|
414
|
+
class q {
|
|
388
415
|
imp = 0;
|
|
389
416
|
constructor(D) {
|
|
390
|
-
this.imp = D, this.imp &&
|
|
417
|
+
this.imp = D, this.imp && hC.register(this, D, yC);
|
|
391
418
|
}
|
|
392
419
|
getImp() {
|
|
393
420
|
return this.imp;
|
|
@@ -403,18 +430,18 @@ class _ {
|
|
|
403
430
|
}
|
|
404
431
|
getJson() {
|
|
405
432
|
let D = this.imp.getJson();
|
|
406
|
-
return
|
|
433
|
+
return T.decodeFromGb2312(D);
|
|
407
434
|
}
|
|
408
435
|
setJson(D) {
|
|
409
|
-
let C =
|
|
436
|
+
let C = T.encodeToGb2312(D);
|
|
410
437
|
return this.imp.setJson(C);
|
|
411
438
|
}
|
|
412
439
|
isKindOf(D) {
|
|
413
440
|
return this.imp.isKindOf(D);
|
|
414
441
|
}
|
|
415
442
|
}
|
|
416
|
-
var
|
|
417
|
-
class
|
|
443
|
+
var R = /* @__PURE__ */ ((E) => (E[E.kMxCAD = 0] = "kMxCAD", E[E.kMxDraw = 1] = "kMxDraw", E[E.kInvalid = 2] = "kInvalid", E))(R || {});
|
|
444
|
+
class L {
|
|
418
445
|
id;
|
|
419
446
|
type;
|
|
420
447
|
constructor(D = 0, C = 2) {
|
|
@@ -424,7 +451,7 @@ class k {
|
|
|
424
451
|
return this.type != 2 && this.id != 0;
|
|
425
452
|
}
|
|
426
453
|
erase() {
|
|
427
|
-
this.type == 1 ? h.getCurrentDraw().eraseMxEntity(this.id) : this.type == 0 &&
|
|
454
|
+
this.type == 1 ? h.getCurrentDraw().eraseMxEntity(this.id) : this.type == 0 && P.eraseEntity(this.id);
|
|
428
455
|
}
|
|
429
456
|
getMcDbObject() {
|
|
430
457
|
return this.type == 0 ? s.App.ObjectIdToObject(this.id) : null;
|
|
@@ -459,7 +486,7 @@ class k {
|
|
|
459
486
|
return this.type == 1 ? h.getCurrentDraw().getMxEntity(this.id) : null;
|
|
460
487
|
}
|
|
461
488
|
}
|
|
462
|
-
class
|
|
489
|
+
class W extends q {
|
|
463
490
|
constructor(D) {
|
|
464
491
|
super(D);
|
|
465
492
|
}
|
|
@@ -483,7 +510,7 @@ class G extends _ {
|
|
|
483
510
|
return this.imp.GetOwnerID();
|
|
484
511
|
}
|
|
485
512
|
}
|
|
486
|
-
class
|
|
513
|
+
class tD {
|
|
487
514
|
aryVal = [];
|
|
488
515
|
constructor(D) {
|
|
489
516
|
if (D) {
|
|
@@ -498,7 +525,7 @@ class cD {
|
|
|
498
525
|
forEach(D) {
|
|
499
526
|
let C = this.aryVal.length;
|
|
500
527
|
for (let B = 0; B < C; B++)
|
|
501
|
-
D(this.aryVal[B]);
|
|
528
|
+
D(this.aryVal[B], B);
|
|
502
529
|
}
|
|
503
530
|
length() {
|
|
504
531
|
return this.aryVal.length;
|
|
@@ -507,7 +534,7 @@ class cD {
|
|
|
507
534
|
return this.aryVal.length == 0;
|
|
508
535
|
}
|
|
509
536
|
}
|
|
510
|
-
var
|
|
537
|
+
var pD;
|
|
511
538
|
((E) => {
|
|
512
539
|
((D) => {
|
|
513
540
|
D[D.kTextLeft = 0] = "kTextLeft", D[D.kTextCenter = 1] = "kTextCenter", D[D.kTextRight = 2] = "kTextRight", D[D.kTextAlign = 3] = "kTextAlign", D[D.kTextMid = 4] = "kTextMid", D[D.kTextFit = 5] = "kTextFit";
|
|
@@ -518,8 +545,8 @@ var mD;
|
|
|
518
545
|
})(E.AttachmentPoint || (E.AttachmentPoint = {})), ((D) => {
|
|
519
546
|
D[D.kLnWt000 = 0] = "kLnWt000", D[D.kLnWt005 = 5] = "kLnWt005", D[D.kLnWt009 = 9] = "kLnWt009", D[D.kLnWt013 = 13] = "kLnWt013", D[D.kLnWt015 = 15] = "kLnWt015", D[D.kLnWt018 = 18] = "kLnWt018", D[D.kLnWt020 = 20] = "kLnWt020", D[D.kLnWt025 = 25] = "kLnWt025", D[D.kLnWt030 = 30] = "kLnWt030", D[D.kLnWt035 = 35] = "kLnWt035", D[D.kLnWt040 = 40] = "kLnWt040", D[D.kLnWt050 = 50] = "kLnWt050", D[D.kLnWt053 = 53] = "kLnWt053", D[D.kLnWt060 = 60] = "kLnWt060", D[D.kLnWt070 = 70] = "kLnWt070", D[D.kLnWt080 = 80] = "kLnWt080", D[D.kLnWt090 = 90] = "kLnWt090", D[D.kLnWt100 = 100] = "kLnWt100", D[D.kLnWt106 = 106] = "kLnWt106", D[D.kLnWt120 = 120] = "kLnWt120", D[D.kLnWt140 = 140] = "kLnWt140", D[D.kLnWt158 = 158] = "kLnWt158", D[D.kLnWt200 = 200] = "kLnWt200", D[D.kLnWt211 = 211] = "kLnWt211", D[D.kLnWtByLayer = -1] = "kLnWtByLayer", D[D.kLnWtByBlock = -2] = "kLnWtByBlock", D[D.kLnWtByLwDefault = -3] = "kLnWtByLwDefault";
|
|
520
547
|
})(E.LineWeight || (E.LineWeight = {}));
|
|
521
|
-
})(
|
|
522
|
-
class
|
|
548
|
+
})(pD || (pD = {}));
|
|
549
|
+
class Z {
|
|
523
550
|
imp;
|
|
524
551
|
constructor(D, C, B) {
|
|
525
552
|
this.imp = new s.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);
|
|
@@ -531,7 +558,7 @@ class q {
|
|
|
531
558
|
return this.imp.red = D.imp.red, this.imp.green = D.imp.green, this.imp.blue = D.imp.blue, this.imp.method = D.imp.method, this.imp.n = D.imp.n, this.imp.colorIndex = D.imp.colorIndex, this;
|
|
532
559
|
}
|
|
533
560
|
clone() {
|
|
534
|
-
return new
|
|
561
|
+
return new Z(this.imp);
|
|
535
562
|
}
|
|
536
563
|
setColorIndex(D) {
|
|
537
564
|
this.imp.setColorIndex(D);
|
|
@@ -576,7 +603,7 @@ class q {
|
|
|
576
603
|
this.imp.colorIndex = D;
|
|
577
604
|
}
|
|
578
605
|
}
|
|
579
|
-
class
|
|
606
|
+
class gC extends W {
|
|
580
607
|
constructor(D) {
|
|
581
608
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbLayerTableRecord());
|
|
582
609
|
}
|
|
@@ -605,13 +632,13 @@ class yC extends G {
|
|
|
605
632
|
this.imp.setIsLocked(D);
|
|
606
633
|
}
|
|
607
634
|
get color() {
|
|
608
|
-
return new
|
|
635
|
+
return new Z(this.imp.color());
|
|
609
636
|
}
|
|
610
637
|
set color(D) {
|
|
611
638
|
this.imp.setColor(D.getImp());
|
|
612
639
|
}
|
|
613
640
|
get linetypeObjectId() {
|
|
614
|
-
return new
|
|
641
|
+
return new L(this.imp.linetypeObjectId(), R.kMxCAD);
|
|
615
642
|
}
|
|
616
643
|
set linetypeObjectId(D) {
|
|
617
644
|
this.imp.setLinetypeObjectId(D.id);
|
|
@@ -623,22 +650,22 @@ class yC extends G {
|
|
|
623
650
|
this.imp.setLineWeight(D);
|
|
624
651
|
}
|
|
625
652
|
}
|
|
626
|
-
class VD extends
|
|
653
|
+
class VD extends W {
|
|
627
654
|
constructor(D) {
|
|
628
655
|
super(D);
|
|
629
656
|
}
|
|
630
657
|
}
|
|
631
|
-
class WD extends
|
|
658
|
+
class WD extends W {
|
|
632
659
|
constructor(D) {
|
|
633
660
|
super(D);
|
|
634
661
|
}
|
|
635
662
|
}
|
|
636
|
-
class UD extends
|
|
663
|
+
class UD extends W {
|
|
637
664
|
constructor(D) {
|
|
638
665
|
super(D);
|
|
639
666
|
}
|
|
640
667
|
}
|
|
641
|
-
class fD extends
|
|
668
|
+
class fD extends q {
|
|
642
669
|
constructor(D) {
|
|
643
670
|
super(D);
|
|
644
671
|
}
|
|
@@ -652,10 +679,10 @@ class fD extends _ {
|
|
|
652
679
|
return new UD(this.imp.GetTextStyleTable());
|
|
653
680
|
}
|
|
654
681
|
GetBlockTable() {
|
|
655
|
-
return new
|
|
682
|
+
return new HD(this.imp.GetBlockTable());
|
|
656
683
|
}
|
|
657
684
|
CurrentSpace() {
|
|
658
|
-
return new
|
|
685
|
+
return new nD(this.imp.CurrentSpace());
|
|
659
686
|
}
|
|
660
687
|
GetCurrentlyLineTypeScale() {
|
|
661
688
|
return this.imp.GetCurrentlyLineTypeScale();
|
|
@@ -665,22 +692,22 @@ class fD extends _ {
|
|
|
665
692
|
}
|
|
666
693
|
GetCurrentlyLineTypeName() {
|
|
667
694
|
let D = this.imp.GetCurrentlyLineTypeName();
|
|
668
|
-
return
|
|
695
|
+
return T.decodeFromGb2312(D);
|
|
669
696
|
}
|
|
670
697
|
SetCurrentlyLineTypeName(D) {
|
|
671
|
-
let C =
|
|
698
|
+
let C = T.encodeToGb2312(D);
|
|
672
699
|
this.imp.SetCurrentlyLineTypeName(C);
|
|
673
700
|
}
|
|
674
701
|
GetCurrentlyLayerName() {
|
|
675
702
|
let D = this.imp.GetCurrentlyLayerName();
|
|
676
|
-
return
|
|
703
|
+
return T.decodeFromGb2312(D);
|
|
677
704
|
}
|
|
678
705
|
SetCurrentlyLayerName(D) {
|
|
679
|
-
let C =
|
|
706
|
+
let C = T.encodeToGb2312(D);
|
|
680
707
|
this.imp.SetCurrentlyLayerName(C);
|
|
681
708
|
}
|
|
682
709
|
GetCurrentlyTrueColor() {
|
|
683
|
-
return new
|
|
710
|
+
return new Z(this.imp.GetCurrentlyTrueColor());
|
|
684
711
|
}
|
|
685
712
|
GetCurrentlyDrawColor() {
|
|
686
713
|
let D = this.imp.GetCurrentlyDrawColor(), C = new THREE.Color();
|
|
@@ -697,15 +724,15 @@ class fD extends _ {
|
|
|
697
724
|
}
|
|
698
725
|
GetCurrentlyTextStyleName() {
|
|
699
726
|
let D = this.imp.GetCurrentlyTextStyleName();
|
|
700
|
-
return
|
|
727
|
+
return T.decodeFromGb2312(D);
|
|
701
728
|
}
|
|
702
729
|
SetCurrentlyTextStyle(D) {
|
|
703
|
-
let C =
|
|
730
|
+
let C = T.encodeToGb2312(D);
|
|
704
731
|
this.imp.SetCurrentlyTextStyle(C);
|
|
705
732
|
}
|
|
706
733
|
HandleToIdIndex(D) {
|
|
707
734
|
let C = this.imp.HandleToIdIndex(D);
|
|
708
|
-
return new
|
|
735
|
+
return new L(C, R.kMxCAD);
|
|
709
736
|
}
|
|
710
737
|
IsModifyed() {
|
|
711
738
|
return this.imp.IsModifyed();
|
|
@@ -714,7 +741,7 @@ class fD extends _ {
|
|
|
714
741
|
return this.imp.SetModifyed(!1);
|
|
715
742
|
}
|
|
716
743
|
}
|
|
717
|
-
class zD extends
|
|
744
|
+
class zD extends q {
|
|
718
745
|
constructor(D) {
|
|
719
746
|
super(D);
|
|
720
747
|
}
|
|
@@ -725,20 +752,20 @@ class zD extends _ {
|
|
|
725
752
|
return this.imp.done();
|
|
726
753
|
}
|
|
727
754
|
getEntityId() {
|
|
728
|
-
return new
|
|
755
|
+
return new L(this.imp.getEntityId(), R.kMxCAD);
|
|
729
756
|
}
|
|
730
757
|
step(D = !0, C = !0) {
|
|
731
758
|
return this.imp.step(D, C);
|
|
732
759
|
}
|
|
733
760
|
}
|
|
734
|
-
class
|
|
761
|
+
class nD extends W {
|
|
735
762
|
constructor(D) {
|
|
736
763
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbBlockTableRecord());
|
|
737
764
|
}
|
|
738
765
|
appendAcDbEntity(D) {
|
|
739
|
-
return new
|
|
766
|
+
return new L(
|
|
740
767
|
this.imp.appendAcDbEntity(D.getImp()),
|
|
741
|
-
|
|
768
|
+
R.kMxCAD
|
|
742
769
|
);
|
|
743
770
|
}
|
|
744
771
|
newIterator(D = !0, C = !0) {
|
|
@@ -763,7 +790,7 @@ class rD extends G {
|
|
|
763
790
|
this.imp.invalidBoundingBoxBuffer();
|
|
764
791
|
}
|
|
765
792
|
}
|
|
766
|
-
class
|
|
793
|
+
class ND extends q {
|
|
767
794
|
constructor(D) {
|
|
768
795
|
super(D);
|
|
769
796
|
}
|
|
@@ -775,41 +802,41 @@ class HD extends _ {
|
|
|
775
802
|
}
|
|
776
803
|
getRecord() {
|
|
777
804
|
let D = this.imp.getRecord();
|
|
778
|
-
return new
|
|
805
|
+
return new nD(D);
|
|
779
806
|
}
|
|
780
807
|
step(D = !0, C = !0) {
|
|
781
808
|
this.imp.start(D, C);
|
|
782
809
|
}
|
|
783
810
|
}
|
|
784
|
-
class
|
|
811
|
+
class HD extends W {
|
|
785
812
|
constructor(D) {
|
|
786
813
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbBlockTable());
|
|
787
814
|
}
|
|
788
815
|
getAt(D) {
|
|
789
816
|
let C = this.getAt(D);
|
|
790
|
-
return C && new
|
|
817
|
+
return C && new nD(C);
|
|
791
818
|
}
|
|
792
819
|
has(D) {
|
|
793
820
|
return this.imp.has(D);
|
|
794
821
|
}
|
|
795
822
|
newIterator(D = !0, C = !0) {
|
|
796
823
|
let B = this.imp.newIterator(D, C);
|
|
797
|
-
return new
|
|
824
|
+
return new ND(B);
|
|
798
825
|
}
|
|
799
826
|
add(D) {
|
|
800
827
|
return this.imp.add(D.getImp());
|
|
801
828
|
}
|
|
802
829
|
}
|
|
803
|
-
class
|
|
830
|
+
class U extends W {
|
|
804
831
|
constructor(D) {
|
|
805
832
|
super(D);
|
|
806
833
|
}
|
|
807
834
|
explode() {
|
|
808
835
|
let D = this.imp.explode();
|
|
809
|
-
return new
|
|
836
|
+
return new O(D);
|
|
810
837
|
}
|
|
811
838
|
get trueColor() {
|
|
812
|
-
return new
|
|
839
|
+
return new Z(this.imp.TrueColor());
|
|
813
840
|
}
|
|
814
841
|
set trueColor(D) {
|
|
815
842
|
this.imp.SetTrueColor(D.getImp());
|
|
@@ -881,7 +908,7 @@ class W extends G {
|
|
|
881
908
|
return { minPt: new o(), maxPt: new o(), ret: !1 };
|
|
882
909
|
}
|
|
883
910
|
}
|
|
884
|
-
class
|
|
911
|
+
class H extends U {
|
|
885
912
|
constructor(D) {
|
|
886
913
|
super(D);
|
|
887
914
|
}
|
|
@@ -930,13 +957,13 @@ class z extends W {
|
|
|
930
957
|
ret: s.getCallResult()
|
|
931
958
|
};
|
|
932
959
|
}
|
|
933
|
-
|
|
960
|
+
getFirstDerivFromParam(D) {
|
|
934
961
|
return {
|
|
935
962
|
val: new y(this.imp.getFirstDeriv(D)),
|
|
936
963
|
ret: s.getCallResult()
|
|
937
964
|
};
|
|
938
965
|
}
|
|
939
|
-
|
|
966
|
+
getFirstDeriv(D) {
|
|
940
967
|
return {
|
|
941
968
|
val: new y(this.imp.getFirstDerivEx(D.imp)),
|
|
942
969
|
ret: s.getCallResult()
|
|
@@ -950,24 +977,36 @@ class z extends W {
|
|
|
950
977
|
}
|
|
951
978
|
offsetCurves(D, C) {
|
|
952
979
|
let B = this.imp.offsetCurves(D, C.imp);
|
|
953
|
-
return new
|
|
980
|
+
return new tD(B);
|
|
954
981
|
}
|
|
955
982
|
splitCurves(D) {
|
|
956
|
-
let C =
|
|
957
|
-
|
|
983
|
+
let C = new O();
|
|
984
|
+
D.forEach((F) => {
|
|
985
|
+
C.AddPoint(F);
|
|
986
|
+
});
|
|
987
|
+
let B = this.imp.splitCurves(C.getImp());
|
|
988
|
+
return new tD(B);
|
|
989
|
+
}
|
|
990
|
+
splitCurvesFromParam(D) {
|
|
991
|
+
let C = new O();
|
|
992
|
+
D.forEach((F) => {
|
|
993
|
+
C.AddDouble(F);
|
|
994
|
+
});
|
|
995
|
+
let B = this.imp.splitCurves(C.getImp());
|
|
996
|
+
return new tD(B);
|
|
958
997
|
}
|
|
959
998
|
getArea() {
|
|
960
999
|
return { val: this.imp.getArea(), ret: s.getCallResult() };
|
|
961
1000
|
}
|
|
962
1001
|
getSamplePoints(D) {
|
|
963
1002
|
let C = this.imp.getSamplePoints(D);
|
|
964
|
-
return new
|
|
1003
|
+
return new O(C);
|
|
965
1004
|
}
|
|
966
1005
|
getLength() {
|
|
967
1006
|
return { val: this.imp.getLength(), ret: s.getCallResult() };
|
|
968
1007
|
}
|
|
969
1008
|
}
|
|
970
|
-
class
|
|
1009
|
+
class eD extends H {
|
|
971
1010
|
constructor(D, C, B, F, A, t) {
|
|
972
1011
|
D instanceof Object ? D instanceof o ? (super(), this.initTempObject(new s.mxcadassemblyimp.MdDbLine()), C instanceof o && (this.startPoint = D, this.endPoint = C)) : super(D) : (super(), this.initTempObject(new s.mxcadassemblyimp.MdDbLine()), this.startPoint = new o(D, C, B), this.endPoint = new o(F, A, t));
|
|
973
1012
|
}
|
|
@@ -984,7 +1023,7 @@ class AD extends z {
|
|
|
984
1023
|
this.imp.setEndPoint(D.imp);
|
|
985
1024
|
}
|
|
986
1025
|
}
|
|
987
|
-
class
|
|
1026
|
+
class dD extends U {
|
|
988
1027
|
constructor(D) {
|
|
989
1028
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbText());
|
|
990
1029
|
}
|
|
@@ -1025,10 +1064,10 @@ class pD extends W {
|
|
|
1025
1064
|
this.imp.setWidthFactor(D);
|
|
1026
1065
|
}
|
|
1027
1066
|
get textString() {
|
|
1028
|
-
return
|
|
1067
|
+
return T.decodeFromGb2312(this.imp.textString());
|
|
1029
1068
|
}
|
|
1030
1069
|
set textString(D) {
|
|
1031
|
-
this.imp.setTextString(
|
|
1070
|
+
this.imp.setTextString(T.encodeToGb2312(D));
|
|
1032
1071
|
}
|
|
1033
1072
|
get horizontalMode() {
|
|
1034
1073
|
return this.imp.horizontalMode();
|
|
@@ -1043,7 +1082,7 @@ class pD extends W {
|
|
|
1043
1082
|
this.imp.setVerticalMode(D);
|
|
1044
1083
|
}
|
|
1045
1084
|
}
|
|
1046
|
-
class
|
|
1085
|
+
class iD extends U {
|
|
1047
1086
|
constructor(D) {
|
|
1048
1087
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbMText());
|
|
1049
1088
|
}
|
|
@@ -1078,13 +1117,13 @@ class tD extends W {
|
|
|
1078
1117
|
this.imp.setAttachment(D);
|
|
1079
1118
|
}
|
|
1080
1119
|
get contents() {
|
|
1081
|
-
return
|
|
1120
|
+
return T.decodeFromGb2312(this.imp.contents());
|
|
1082
1121
|
}
|
|
1083
1122
|
set contents(D) {
|
|
1084
|
-
this.imp.setContents(
|
|
1123
|
+
this.imp.setContents(T.encodeToGb2312(D));
|
|
1085
1124
|
}
|
|
1086
1125
|
}
|
|
1087
|
-
class
|
|
1126
|
+
class N extends H {
|
|
1088
1127
|
constructor(D, C, B, F) {
|
|
1089
1128
|
D instanceof Object ? super(D) : (super(), this.initTempObject(new s.mxcadassemblyimp.MdDbCircle()), typeof D == "number" && (this.imp.setCenter(new o(D, C, B).imp), this.imp.setRadius(F)));
|
|
1090
1129
|
}
|
|
@@ -1104,7 +1143,7 @@ class U extends z {
|
|
|
1104
1143
|
this.imp.setRadius(D);
|
|
1105
1144
|
}
|
|
1106
1145
|
}
|
|
1107
|
-
class
|
|
1146
|
+
class rD extends H {
|
|
1108
1147
|
constructor(D) {
|
|
1109
1148
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbPolyline());
|
|
1110
1149
|
}
|
|
@@ -1153,12 +1192,12 @@ class eD extends z {
|
|
|
1153
1192
|
return this.imp.setBulgeAt(D, C);
|
|
1154
1193
|
}
|
|
1155
1194
|
}
|
|
1156
|
-
class
|
|
1195
|
+
class hD extends U {
|
|
1157
1196
|
constructor(D) {
|
|
1158
1197
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbBlockReference());
|
|
1159
1198
|
}
|
|
1160
1199
|
get blockTableRecordId() {
|
|
1161
|
-
return new
|
|
1200
|
+
return new L(this.imp.blockTableRecord(), R.kMxCAD);
|
|
1162
1201
|
}
|
|
1163
1202
|
set blockTableRecordId(D) {
|
|
1164
1203
|
this.imp.setBlockTableRecordId(D.id);
|
|
@@ -1182,13 +1221,13 @@ class dD extends W {
|
|
|
1182
1221
|
this.imp.setRotation(D);
|
|
1183
1222
|
}
|
|
1184
1223
|
get blockTransform() {
|
|
1185
|
-
return new
|
|
1224
|
+
return new S(this.imp.blockTransform());
|
|
1186
1225
|
}
|
|
1187
1226
|
set blockTransform(D) {
|
|
1188
1227
|
this.imp.setBlockTransform(D.imp);
|
|
1189
1228
|
}
|
|
1190
1229
|
}
|
|
1191
|
-
class xD extends
|
|
1230
|
+
class xD extends U {
|
|
1192
1231
|
constructor(D) {
|
|
1193
1232
|
super(D);
|
|
1194
1233
|
}
|
|
@@ -1226,7 +1265,7 @@ class xD extends W {
|
|
|
1226
1265
|
this.imp.setTextRotation(D);
|
|
1227
1266
|
}
|
|
1228
1267
|
get dimensionStyle() {
|
|
1229
|
-
return new
|
|
1268
|
+
return new L(this.imp.dimensionStyle(), R.kMxCAD);
|
|
1230
1269
|
}
|
|
1231
1270
|
set dimensionStyle(D) {
|
|
1232
1271
|
this.imp.setDimensionStyle(D.id);
|
|
@@ -1265,16 +1304,16 @@ class xD extends W {
|
|
|
1265
1304
|
this.imp.SetDimVarString(D, C);
|
|
1266
1305
|
}
|
|
1267
1306
|
getDimVarObjectId(D) {
|
|
1268
|
-
return new
|
|
1307
|
+
return new L(
|
|
1269
1308
|
this.imp.GetDimVarObjectId(D),
|
|
1270
|
-
|
|
1309
|
+
R.kMxCAD
|
|
1271
1310
|
);
|
|
1272
1311
|
}
|
|
1273
1312
|
setDimVarObjectId(D, C) {
|
|
1274
1313
|
this.imp.SetDimVarObjectId(D, C.id);
|
|
1275
1314
|
}
|
|
1276
1315
|
}
|
|
1277
|
-
class
|
|
1316
|
+
class yD extends xD {
|
|
1278
1317
|
constructor(D) {
|
|
1279
1318
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbAlignedDimension());
|
|
1280
1319
|
}
|
|
@@ -1303,7 +1342,7 @@ class hD extends xD {
|
|
|
1303
1342
|
this.imp.setOblique(D);
|
|
1304
1343
|
}
|
|
1305
1344
|
}
|
|
1306
|
-
class
|
|
1345
|
+
class gD extends xD {
|
|
1307
1346
|
constructor(D) {
|
|
1308
1347
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbRotatedDimension());
|
|
1309
1348
|
}
|
|
@@ -1338,7 +1377,7 @@ class yD extends xD {
|
|
|
1338
1377
|
this.imp.setRotation(D);
|
|
1339
1378
|
}
|
|
1340
1379
|
}
|
|
1341
|
-
class
|
|
1380
|
+
class sD extends H {
|
|
1342
1381
|
constructor(D) {
|
|
1343
1382
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.MdDbArc());
|
|
1344
1383
|
}
|
|
@@ -1380,7 +1419,7 @@ class iD extends z {
|
|
|
1380
1419
|
);
|
|
1381
1420
|
}
|
|
1382
1421
|
}
|
|
1383
|
-
class
|
|
1422
|
+
class oD extends H {
|
|
1384
1423
|
constructor(D, C, B, F, A, t, e, i, r) {
|
|
1385
1424
|
D instanceof Object ? super(D) : (super(), this.initTempObject(new s.mxcadassemblyimp.MdDbEllipse()), typeof D == "number" && (e || (e = 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, t).imp, e, i, r)));
|
|
1386
1425
|
}
|
|
@@ -1430,7 +1469,7 @@ class sD extends z {
|
|
|
1430
1469
|
this.imp.setEndAngle(D);
|
|
1431
1470
|
}
|
|
1432
1471
|
}
|
|
1433
|
-
class bD extends
|
|
1472
|
+
class bD extends U {
|
|
1434
1473
|
constructor(D, C, B) {
|
|
1435
1474
|
D instanceof Object ? D instanceof o ? (super(), this.initTempObject(new s.mxcadassemblyimp.MdDbPoint()), this.imp.setPosition(D.imp)) : super(D) : (super(), this.initTempObject(new s.mxcadassemblyimp.MdDbPoint()), typeof D == "number" && this.imp.setPosition(new o(D, C, B).imp));
|
|
1436
1475
|
}
|
|
@@ -1444,11 +1483,11 @@ class bD extends W {
|
|
|
1444
1483
|
this.imp.setPosition(D.imp);
|
|
1445
1484
|
}
|
|
1446
1485
|
}
|
|
1447
|
-
function
|
|
1486
|
+
function _(E = null) {
|
|
1448
1487
|
let D;
|
|
1449
1488
|
return E ? D = E.getImp() : D = new s.mxcadassemblyimp.McDrawResbuf(), D;
|
|
1450
1489
|
}
|
|
1451
|
-
class
|
|
1490
|
+
class O extends q {
|
|
1452
1491
|
constructor(D) {
|
|
1453
1492
|
super(D), D || this.initTempObject(new s.mxcadassemblyimp.McDrawResbuf());
|
|
1454
1493
|
}
|
|
@@ -1468,7 +1507,7 @@ class Z extends _ {
|
|
|
1468
1507
|
if (this.imp.AtObjectName(D) == "McDbMText") {
|
|
1469
1508
|
let B = this.imp.AtObjectMdDbMText(D);
|
|
1470
1509
|
if (B)
|
|
1471
|
-
return { val: new
|
|
1510
|
+
return { val: new iD(B), ret: s.getCallResult() };
|
|
1472
1511
|
}
|
|
1473
1512
|
return { val: void 0, ret: -1 };
|
|
1474
1513
|
}
|
|
@@ -1476,10 +1515,10 @@ class Z extends _ {
|
|
|
1476
1515
|
this.imp.AddObject(D.getImp());
|
|
1477
1516
|
}
|
|
1478
1517
|
AtObjectId(D) {
|
|
1479
|
-
return { val: new
|
|
1518
|
+
return { val: new L(this.imp.AtObjectId(D), R.kMxCAD), ret: s.getCallResult() };
|
|
1480
1519
|
}
|
|
1481
1520
|
AtString(D, C = !0) {
|
|
1482
|
-
return C ? { val:
|
|
1521
|
+
return C ? { val: T.decodeFromGb2312(this.imp.AtString(D)), ret: s.getCallResult() } : { val: this.imp.AtString(D), ret: s.getCallResult() };
|
|
1483
1522
|
}
|
|
1484
1523
|
AtPoint(D) {
|
|
1485
1524
|
return { val: new o(this.imp.AtPoint(D)), ret: s.getCallResult() };
|
|
@@ -1497,7 +1536,7 @@ class Z extends _ {
|
|
|
1497
1536
|
return this.imp.AddObjectId(D, C);
|
|
1498
1537
|
}
|
|
1499
1538
|
AddString(D, C = -10, B = !0) {
|
|
1500
|
-
return B ? this.imp.AddString(
|
|
1539
|
+
return B ? this.imp.AddString(T.encodeToGb2312(D), C) : this.imp.AddString(D, C);
|
|
1501
1540
|
}
|
|
1502
1541
|
AddMcDbEntityTypes(D) {
|
|
1503
1542
|
return this.imp.AddString(D, 5020);
|
|
@@ -1512,7 +1551,7 @@ class Z extends _ {
|
|
|
1512
1551
|
this.imp.Remove(D);
|
|
1513
1552
|
}
|
|
1514
1553
|
}
|
|
1515
|
-
class
|
|
1554
|
+
class KD {
|
|
1516
1555
|
imp;
|
|
1517
1556
|
MxCADAssist;
|
|
1518
1557
|
constructor() {
|
|
@@ -1525,23 +1564,23 @@ class ND {
|
|
|
1525
1564
|
}
|
|
1526
1565
|
findEntAtPoint(D, C, B, F = -1, A = null) {
|
|
1527
1566
|
this.init();
|
|
1528
|
-
let t = this.imp.findEntAtPoint(D, C, B, F,
|
|
1529
|
-
return new
|
|
1567
|
+
let t = this.imp.findEntAtPoint(D, C, B, F, _(A));
|
|
1568
|
+
return new L(t, R.kMxCAD);
|
|
1530
1569
|
}
|
|
1531
1570
|
selectEnt(D, C = null, B = !0) {
|
|
1532
1571
|
return this.init(), new Promise(async (F) => {
|
|
1533
|
-
const A = new
|
|
1534
|
-
D && A.setMessage(D), A.setCursorType(
|
|
1572
|
+
const A = new I();
|
|
1573
|
+
D && A.setMessage(D), A.setCursorType(wD.kRect), A.setDisableOsnap(!0);
|
|
1535
1574
|
let t = await A.go();
|
|
1536
1575
|
if (!t) {
|
|
1537
1576
|
F([]);
|
|
1538
1577
|
return;
|
|
1539
1578
|
}
|
|
1540
1579
|
if (B)
|
|
1541
|
-
|
|
1580
|
+
mD.findEntAtPoint(t).then((e) => {
|
|
1542
1581
|
let i = [];
|
|
1543
1582
|
e.forEach((n) => {
|
|
1544
|
-
i.push(new
|
|
1583
|
+
i.push(new L(n, R.kMxDraw));
|
|
1545
1584
|
});
|
|
1546
1585
|
let r = this.findEntAtPoint(t.x, t.y, t.z, -1, C);
|
|
1547
1586
|
r.isValid() && i.push(r), F(i);
|
|
@@ -1555,30 +1594,30 @@ class ND {
|
|
|
1555
1594
|
getCurrentSelect(D = null) {
|
|
1556
1595
|
let C = [];
|
|
1557
1596
|
h.getCurrentDraw().getMxCurrentSelect().forEach((A) => {
|
|
1558
|
-
C.push(new
|
|
1597
|
+
C.push(new L(A, R.kMxDraw));
|
|
1559
1598
|
});
|
|
1560
1599
|
let F = h.getCurrentDraw().getMxCADCurrentSelect();
|
|
1561
1600
|
if (F.length <= 0)
|
|
1562
1601
|
return C;
|
|
1563
1602
|
if (D) {
|
|
1564
|
-
let A = new
|
|
1603
|
+
let A = new Q();
|
|
1565
1604
|
F.forEach((r) => {
|
|
1566
1605
|
A.append(r);
|
|
1567
1606
|
});
|
|
1568
|
-
let t = new s.mxcadassemblyimp.McDrawSelSet(), e = t.getFilterEntity(A.imp,
|
|
1607
|
+
let t = new s.mxcadassemblyimp.McDrawSelSet(), e = t.getFilterEntity(A.imp, _(D));
|
|
1569
1608
|
s.App.DestroyObject(t), F = [];
|
|
1570
1609
|
let i = e.length();
|
|
1571
1610
|
for (let r = 0; r < i; r++)
|
|
1572
1611
|
F.push(e.at(r));
|
|
1573
1612
|
}
|
|
1574
1613
|
return F.forEach((A) => {
|
|
1575
|
-
C.push(new
|
|
1614
|
+
C.push(new L(A, R.kMxCAD));
|
|
1576
1615
|
}), C;
|
|
1577
1616
|
}
|
|
1578
1617
|
async userSelect(D, C = null) {
|
|
1579
1618
|
let B = this.getCurrentSelect(C);
|
|
1580
1619
|
if (B.length == 0) {
|
|
1581
|
-
let F = new
|
|
1620
|
+
let F = new z();
|
|
1582
1621
|
await F.userSelect(D, C) && F.forEach((A) => {
|
|
1583
1622
|
B.push(A);
|
|
1584
1623
|
});
|
|
@@ -1594,19 +1633,19 @@ class ND {
|
|
|
1594
1633
|
let A = 0, t;
|
|
1595
1634
|
for (; ; ) {
|
|
1596
1635
|
if (!C) {
|
|
1597
|
-
let i = new
|
|
1598
|
-
D && i.setMessage(D), i.setDynamicInputType(
|
|
1636
|
+
let i = new j();
|
|
1637
|
+
D && i.setMessage(D), i.setDynamicInputType(BD.kDynTip), C = await i.go(), A = i.getDetailedResult();
|
|
1599
1638
|
}
|
|
1600
1639
|
if (!C)
|
|
1601
1640
|
break;
|
|
1602
|
-
let e = await
|
|
1641
|
+
let e = await mD.getCorner(C.toVector3(), D, F, (i) => {
|
|
1603
1642
|
A = i.detailedResult;
|
|
1604
1643
|
});
|
|
1605
1644
|
e && (t = new o(e));
|
|
1606
1645
|
break;
|
|
1607
1646
|
}
|
|
1608
1647
|
return B && B(A), new Promise((e) => {
|
|
1609
|
-
A ==
|
|
1648
|
+
A == Y.kEcsIn || A == Y.kNewCommadIn || A == Y.kUnknown ? e(null) : e(C && t ? { pt1: C, pt2: t } : null);
|
|
1610
1649
|
});
|
|
1611
1650
|
}
|
|
1612
1651
|
getMcDbEntitysBoundingBox(D) {
|
|
@@ -1621,9 +1660,9 @@ class ND {
|
|
|
1621
1660
|
return { minPt: new o(C), maxPt: new o(B) };
|
|
1622
1661
|
}
|
|
1623
1662
|
}
|
|
1624
|
-
let
|
|
1663
|
+
let P = new KD();
|
|
1625
1664
|
var _D = /* @__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))(_D || {});
|
|
1626
|
-
class
|
|
1665
|
+
class z extends q {
|
|
1627
1666
|
isWhileSelect = !0;
|
|
1628
1667
|
isSelectHighlight = !0;
|
|
1629
1668
|
selectPt1 = new o();
|
|
@@ -1635,19 +1674,19 @@ class H extends _ {
|
|
|
1635
1674
|
return { pt1: this.selectPt1, pt2: this.selectPt2 };
|
|
1636
1675
|
}
|
|
1637
1676
|
allSelect(D = null) {
|
|
1638
|
-
return this.imp.allSelect(
|
|
1677
|
+
return this.imp.allSelect(_(D));
|
|
1639
1678
|
}
|
|
1640
1679
|
pointSelect(D, C, B = null, F = -1) {
|
|
1641
|
-
return this.imp.pointSelect(D, C,
|
|
1680
|
+
return this.imp.pointSelect(D, C, _(B), F);
|
|
1642
1681
|
}
|
|
1643
1682
|
crossingSelect(D, C, B, F, A = null) {
|
|
1644
|
-
return this.imp.crossingSelect(D, C, B, F,
|
|
1683
|
+
return this.imp.crossingSelect(D, C, B, F, _(A));
|
|
1645
1684
|
}
|
|
1646
1685
|
count() {
|
|
1647
1686
|
return this.imp.count();
|
|
1648
1687
|
}
|
|
1649
1688
|
item(D) {
|
|
1650
|
-
return new
|
|
1689
|
+
return new L(this.imp.item(D), R.kMxCAD);
|
|
1651
1690
|
}
|
|
1652
1691
|
forEach(D) {
|
|
1653
1692
|
let C = this.imp.count();
|
|
@@ -1662,9 +1701,9 @@ class H extends _ {
|
|
|
1662
1701
|
}
|
|
1663
1702
|
async userSelect(D, C = null) {
|
|
1664
1703
|
this.selectPt1 = new o(), this.selectPt2 = new o();
|
|
1665
|
-
let B = new
|
|
1666
|
-
D && B.setMessage(D), B.setCursorType(
|
|
1667
|
-
let F = 0, A =
|
|
1704
|
+
let B = new I();
|
|
1705
|
+
D && B.setMessage(D), B.setCursorType(wD.kRect), B.setDynamicInputType(BD.kDynTip), B.setDisableOsnap(!0);
|
|
1706
|
+
let F = 0, A = _(C);
|
|
1668
1707
|
for (; ; ) {
|
|
1669
1708
|
let t = await B.go();
|
|
1670
1709
|
if (F = B.getDetailedResult(), !t)
|
|
@@ -1674,13 +1713,13 @@ class H extends _ {
|
|
|
1674
1713
|
continue;
|
|
1675
1714
|
break;
|
|
1676
1715
|
}
|
|
1677
|
-
let e = await
|
|
1716
|
+
let e = await mD.getCorner(t, D, !0, (i) => {
|
|
1678
1717
|
F = i.detailedResult;
|
|
1679
1718
|
});
|
|
1680
1719
|
if (!e || (this.imp.userSelect(t.x, t.y, e.x, e.y, A, this.isSelectHighlight), this.selectPt1.setFromVector3(t), this.selectPt2.setFromVector3(e), !this.isWhileSelect))
|
|
1681
1720
|
break;
|
|
1682
1721
|
}
|
|
1683
|
-
return this.isSelectHighlight && this.imp.highlightEntity(!1), F ==
|
|
1722
|
+
return this.isSelectHighlight && this.imp.highlightEntity(!1), F == Y.kEcsIn || F == Y.kNewCommadIn || F == Y.kUnknown ? new Promise((t) => {
|
|
1684
1723
|
t(!1);
|
|
1685
1724
|
}) : new Promise((t) => {
|
|
1686
1725
|
t(!0);
|
|
@@ -1761,9 +1800,9 @@ class K {
|
|
|
1761
1800
|
this.imp.setUserInputControls(D);
|
|
1762
1801
|
}
|
|
1763
1802
|
}
|
|
1764
|
-
class
|
|
1803
|
+
class j extends K {
|
|
1765
1804
|
constructor() {
|
|
1766
|
-
super(new
|
|
1805
|
+
super(new I());
|
|
1767
1806
|
}
|
|
1768
1807
|
go() {
|
|
1769
1808
|
return new Promise((D) => {
|
|
@@ -1788,7 +1827,7 @@ class V extends K {
|
|
|
1788
1827
|
this.imp.setUseBasePt(D);
|
|
1789
1828
|
}
|
|
1790
1829
|
}
|
|
1791
|
-
class
|
|
1830
|
+
class aD extends K {
|
|
1792
1831
|
constructor() {
|
|
1793
1832
|
super(new tC());
|
|
1794
1833
|
}
|
|
@@ -1808,7 +1847,7 @@ class nD extends K {
|
|
|
1808
1847
|
return this.imp.go();
|
|
1809
1848
|
}
|
|
1810
1849
|
}
|
|
1811
|
-
class
|
|
1850
|
+
class wC extends K {
|
|
1812
1851
|
constructor() {
|
|
1813
1852
|
super(new eC());
|
|
1814
1853
|
}
|
|
@@ -1828,7 +1867,7 @@ class gC extends K {
|
|
|
1828
1867
|
return this.imp.go();
|
|
1829
1868
|
}
|
|
1830
1869
|
}
|
|
1831
|
-
class
|
|
1870
|
+
class fC extends K {
|
|
1832
1871
|
constructor() {
|
|
1833
1872
|
super(new iC());
|
|
1834
1873
|
}
|
|
@@ -1839,7 +1878,7 @@ class wC extends K {
|
|
|
1839
1878
|
return this.imp.go();
|
|
1840
1879
|
}
|
|
1841
1880
|
}
|
|
1842
|
-
class
|
|
1881
|
+
class xC extends K {
|
|
1843
1882
|
constructor() {
|
|
1844
1883
|
super(new rC());
|
|
1845
1884
|
}
|
|
@@ -1847,9 +1886,9 @@ class fC extends K {
|
|
|
1847
1886
|
return this.imp.go();
|
|
1848
1887
|
}
|
|
1849
1888
|
}
|
|
1850
|
-
class
|
|
1889
|
+
class bC extends K {
|
|
1851
1890
|
constructor() {
|
|
1852
|
-
super(new sC()), this.setDynamicInputType(
|
|
1891
|
+
super(new sC()), this.setDynamicInputType(BD.kNoInput), this.setDisableOsnap(!0);
|
|
1853
1892
|
}
|
|
1854
1893
|
value() {
|
|
1855
1894
|
return this.imp.value();
|
|
@@ -1858,11 +1897,11 @@ class xC extends K {
|
|
|
1858
1897
|
return this.imp.go();
|
|
1859
1898
|
}
|
|
1860
1899
|
}
|
|
1861
|
-
class
|
|
1900
|
+
class J extends K {
|
|
1862
1901
|
filter;
|
|
1863
|
-
id = new
|
|
1902
|
+
id = new L();
|
|
1864
1903
|
constructor() {
|
|
1865
|
-
super(new
|
|
1904
|
+
super(new I()), this.setCursorType(wD.kRect), this.setDynamicInputType(BD.kDynTip), this.setDisableOsnap(!0);
|
|
1866
1905
|
}
|
|
1867
1906
|
setFilter(D) {
|
|
1868
1907
|
this.filter = D;
|
|
@@ -1875,10 +1914,10 @@ class DD extends K {
|
|
|
1875
1914
|
let C = this;
|
|
1876
1915
|
this.imp.go((B) => {
|
|
1877
1916
|
if (B != 0)
|
|
1878
|
-
D(new
|
|
1917
|
+
D(new L());
|
|
1879
1918
|
else {
|
|
1880
1919
|
let F = this.imp.value();
|
|
1881
|
-
C.id =
|
|
1920
|
+
C.id = P.findEntAtPoint(F.x, F.y, F.z, -1, C.filter), D(C.id);
|
|
1882
1921
|
}
|
|
1883
1922
|
});
|
|
1884
1923
|
});
|
|
@@ -1893,7 +1932,7 @@ class DD extends K {
|
|
|
1893
1932
|
return new o(this.imp.getCADValue());
|
|
1894
1933
|
}
|
|
1895
1934
|
}
|
|
1896
|
-
class
|
|
1935
|
+
class $ {
|
|
1897
1936
|
imp;
|
|
1898
1937
|
static currentFileName;
|
|
1899
1938
|
constructor(D) {
|
|
@@ -1916,12 +1955,12 @@ class J {
|
|
|
1916
1955
|
};
|
|
1917
1956
|
A.addEvent("openFileComplete", i);
|
|
1918
1957
|
}
|
|
1919
|
-
|
|
1958
|
+
$.currentFileName = D.split("/").pop();
|
|
1920
1959
|
let e = "";
|
|
1921
1960
|
return F && (e = JSON.stringify(F)), this.imp.openWebFile(D, B, t, e);
|
|
1922
1961
|
}
|
|
1923
1962
|
getCurrentFileName() {
|
|
1924
|
-
return
|
|
1963
|
+
return $.currentFileName;
|
|
1925
1964
|
}
|
|
1926
1965
|
saveFileToUrl(D, C) {
|
|
1927
1966
|
const B = window;
|
|
@@ -1936,7 +1975,7 @@ class J {
|
|
|
1936
1975
|
if (C && C(i), !!i) {
|
|
1937
1976
|
if (B) {
|
|
1938
1977
|
let r;
|
|
1939
|
-
/^((?!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 ?
|
|
1978
|
+
/^((?!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 ? CD.saveAsFileDialog({
|
|
1940
1979
|
blob: r,
|
|
1941
1980
|
filename: D,
|
|
1942
1981
|
types: [{
|
|
@@ -1945,7 +1984,7 @@ class J {
|
|
|
1945
1984
|
"application/octet-stream": [".mxweb"]
|
|
1946
1985
|
}
|
|
1947
1986
|
}]
|
|
1948
|
-
}) :
|
|
1987
|
+
}) : CD.downloadFile(r, D);
|
|
1949
1988
|
}
|
|
1950
1989
|
t.mx_saveFile_call = null;
|
|
1951
1990
|
}
|
|
@@ -1975,7 +2014,7 @@ class J {
|
|
|
1975
2014
|
return this.imp.SetSysVarLong(D, C);
|
|
1976
2015
|
}
|
|
1977
2016
|
get DrawColor() {
|
|
1978
|
-
return new
|
|
2017
|
+
return new Z(this.imp.GetDrawColor());
|
|
1979
2018
|
}
|
|
1980
2019
|
set DrawColor(D) {
|
|
1981
2020
|
this.imp.SetDrawColor(D.getImp());
|
|
@@ -2131,7 +2170,7 @@ class J {
|
|
|
2131
2170
|
return new GD(this.imp.GetAllLayoutName());
|
|
2132
2171
|
}
|
|
2133
2172
|
SetCurrentLayout(D) {
|
|
2134
|
-
this.imp.SetCurrentLayout(
|
|
2173
|
+
this.imp.SetCurrentLayout(T.encodeToGb2312(D));
|
|
2135
2174
|
}
|
|
2136
2175
|
GetMxCpp() {
|
|
2137
2176
|
return s;
|
|
@@ -2146,7 +2185,7 @@ class J {
|
|
|
2146
2185
|
class qD {
|
|
2147
2186
|
imp;
|
|
2148
2187
|
init(D) {
|
|
2149
|
-
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),
|
|
2188
|
+
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), S.kIdentity = new S(), P.MxCADAssist = new s.mxcadassemblyimp.MxDrawAssist();
|
|
2150
2189
|
}
|
|
2151
2190
|
getImp() {
|
|
2152
2191
|
return this.imp;
|
|
@@ -2156,14 +2195,14 @@ class qD {
|
|
|
2156
2195
|
}
|
|
2157
2196
|
CreateMxCAD(D, C, B, F, A) {
|
|
2158
2197
|
let t = this.imp.CreateMxDraw(D, C, B, F, A);
|
|
2159
|
-
return new
|
|
2198
|
+
return new $(t);
|
|
2160
2199
|
}
|
|
2161
2200
|
DestroyObject(D) {
|
|
2162
2201
|
this.imp.DestroyObject(D);
|
|
2163
2202
|
}
|
|
2164
2203
|
GetCurrentMxCAD() {
|
|
2165
2204
|
let D = this.imp.GetCurrentMxDraw();
|
|
2166
|
-
return D.McObject || (D.McObject = new
|
|
2205
|
+
return D.McObject || (D.McObject = new $(this.imp.GetCurrentMxDraw())), D.McObject;
|
|
2167
2206
|
}
|
|
2168
2207
|
mcedRGB2Index(D, C, B, F = !0) {
|
|
2169
2208
|
return this.imp.mcedRGB2Index(D, C, B, F);
|
|
@@ -2177,53 +2216,53 @@ class qD {
|
|
|
2177
2216
|
let C = this.imp.ObjectIdToObjectName(D);
|
|
2178
2217
|
if (C == "McDbLine") {
|
|
2179
2218
|
let B = this.imp.ObjectIdToMdDbLine(D);
|
|
2180
|
-
return new
|
|
2219
|
+
return new eD(B);
|
|
2181
2220
|
} else if (C == "McDbText") {
|
|
2182
2221
|
let B = this.imp.ObjectIdToMdDbText(D);
|
|
2183
|
-
return new
|
|
2222
|
+
return new dD(B);
|
|
2184
2223
|
} else if (C == "McDbPolyline") {
|
|
2185
2224
|
let B = this.imp.ObjectIdToMdDbPolyline(D);
|
|
2186
|
-
return new
|
|
2225
|
+
return new rD(B);
|
|
2187
2226
|
} else if (C == "McDbCircle") {
|
|
2188
2227
|
let B = this.imp.ObjectIdToMdDbCircle(D);
|
|
2189
|
-
return new
|
|
2228
|
+
return new N(B);
|
|
2190
2229
|
} else if (C == "McDbArc") {
|
|
2191
2230
|
let B = this.imp.ObjectIdToMdDbArc(D);
|
|
2192
|
-
return new
|
|
2231
|
+
return new sD(B);
|
|
2193
2232
|
} else if (C == "McDbBlockReference") {
|
|
2194
2233
|
let B = this.imp.ObjectIdToMdDbBlockReference(D);
|
|
2195
|
-
return new
|
|
2234
|
+
return new hD(B);
|
|
2196
2235
|
} else if (C == "McDbAlignedDimension") {
|
|
2197
2236
|
let B = this.imp.ObjectIdToMdDbAlignedDimension(D);
|
|
2198
|
-
return new
|
|
2237
|
+
return new yD(B);
|
|
2199
2238
|
} else if (C == "McDbRotatedDimension") {
|
|
2200
2239
|
let B = this.imp.ObjectIdToMdDbRotatedDimension(D);
|
|
2201
|
-
return new
|
|
2240
|
+
return new gD(B);
|
|
2202
2241
|
} else if (C == "McDbMText") {
|
|
2203
2242
|
let B = this.imp.ObjectIdToMdDbMText(D);
|
|
2204
|
-
return new
|
|
2243
|
+
return new iD(B);
|
|
2205
2244
|
} else if (C == "McDbEllipse") {
|
|
2206
2245
|
let B = this.imp.ObjectIdToMdDbEllipse(D);
|
|
2207
|
-
return new
|
|
2246
|
+
return new oD(B);
|
|
2208
2247
|
} else if (C == "McDbPoint") {
|
|
2209
2248
|
let B = this.imp.ObjectIdToMdDbPoint(D);
|
|
2210
2249
|
return new bD(B);
|
|
2211
2250
|
} else if (this.imp.ObjectIdIsKindOf(D, "McDbCurve")) {
|
|
2212
2251
|
let B = this.imp.ObjectIdToMdDbCurve(D);
|
|
2213
|
-
return new
|
|
2252
|
+
return new H(B);
|
|
2214
2253
|
} else if (this.imp.ObjectIdIsKindOf(D, "McDbEntity")) {
|
|
2215
2254
|
let B = this.imp.ObjectIdToMdDbEntity(D);
|
|
2216
|
-
return new
|
|
2255
|
+
return new U(B);
|
|
2217
2256
|
} else {
|
|
2218
2257
|
let B = this.imp.ObjectIdToMdObject(D);
|
|
2219
|
-
return new
|
|
2258
|
+
return new W(B);
|
|
2220
2259
|
}
|
|
2221
2260
|
}
|
|
2222
2261
|
CreateCloneObject(D) {
|
|
2223
2262
|
if (!D)
|
|
2224
2263
|
return null;
|
|
2225
2264
|
let C = D.getObjectName(), B = null;
|
|
2226
|
-
return C == "McDbLine" ? B = new
|
|
2265
|
+
return C == "McDbLine" ? B = new eD() : C == "McDbText" ? B = new dD() : C == "McDbPolyline" ? B = new rD() : C == "McDbCircle" ? B = new N() : C == "McDbArc" ? B = new sD() : C == "McDbBlockReference" ? B = new hD() : C == "McDbAlignedDimension" ? B = new yD() : C == "McDbRotatedDimension" ? B = new gD() : C == "McDbMText" ? B = new iD() : D.isKindOf("McDbCurve") ? (B = new H(), B.initTempObject(new s.mxcadassemblyimp.MdDbCurve())) : D.isKindOf("McDbEntity") && (B = new U(), B.initTempObject(new s.mxcadassemblyimp.MdDbEntity())), B ? (B.getImp().ConnectionTempObject(D), s.App.DestroyObject(D), B) : new W(D);
|
|
2227
2266
|
}
|
|
2228
2267
|
setFontFilePath(D) {
|
|
2229
2268
|
this.imp.setFontFilePath(D);
|
|
@@ -2251,24 +2290,24 @@ class ZD {
|
|
|
2251
2290
|
return this.App.GetCurrentMxCAD().GetDatabase();
|
|
2252
2291
|
}
|
|
2253
2292
|
}
|
|
2254
|
-
const MD = "1.0.
|
|
2293
|
+
const MD = "1.0.85", MC = "SharedArrayBuffer" in window, uD = document.currentScript && /unpkg\.com\/mxcad/.test(document.currentScript.src), PC = (E, D = self.location.href) => uD ? `https://unpkg.com/mxcad@${MD}/dist/wasm/2d-st/${E}` : D + E, TC = (E, D = self.location.href) => uD ? `https://unpkg.com/mxcad@${MD}/dist/wasm/2d/${E}` : D + E, kC = (E, D = self.location.href) => uD ? `https://unpkg.com/mxcad@${MD}/dist/wasm/3d/${E}` : D + E, YD = (E) => new Promise((D, C) => {
|
|
2255
2294
|
const B = document.createElement("script");
|
|
2256
2295
|
B.src = E, B.type = "text/javascript", B.crossOrigin = "anonymous", document.body.appendChild(B), B.onload = () => {
|
|
2257
2296
|
D();
|
|
2258
2297
|
}, B.onerror = (F) => {
|
|
2259
2298
|
C(F);
|
|
2260
2299
|
};
|
|
2261
|
-
}),
|
|
2300
|
+
}), LC = async (E, D, C) => {
|
|
2262
2301
|
const { locateFile: B } = C, F = B(E + ".js");
|
|
2263
|
-
return await
|
|
2302
|
+
return await YD(F), await globalThis[D](C);
|
|
2264
2303
|
};
|
|
2265
2304
|
let s;
|
|
2266
|
-
async function JD(E, D =
|
|
2305
|
+
async function JD(E, D = MC || !uD ? PC : TC, C, B, F) {
|
|
2267
2306
|
return new Promise(async (A, t) => {
|
|
2268
2307
|
try {
|
|
2269
2308
|
if (s || (s = new ZD()), s.mxcadassemblyimp)
|
|
2270
2309
|
return E && E(s), A(s);
|
|
2271
|
-
const i = await
|
|
2310
|
+
const i = await LC("mxdrawassembly_min", "mxdrawassembly", {
|
|
2272
2311
|
locateFile: D,
|
|
2273
2312
|
wasmBinary: C
|
|
2274
2313
|
});
|
|
@@ -2280,14 +2319,14 @@ async function JD(E, D = bC || !oD ? MC : PC, C, B, F) {
|
|
|
2280
2319
|
}
|
|
2281
2320
|
});
|
|
2282
2321
|
}
|
|
2283
|
-
const
|
|
2322
|
+
const RC = (E) => {
|
|
2284
2323
|
let D = null;
|
|
2285
2324
|
if (typeof E == "string" ? D = document.querySelector(E) : E instanceof HTMLCanvasElement && (D = E), !!D)
|
|
2286
2325
|
return D.id || (D.id = Math.random().toString(16).slice(2)), D.id;
|
|
2287
|
-
},
|
|
2326
|
+
}, OC = (E, D) => new Promise((C, B) => {
|
|
2288
2327
|
try {
|
|
2289
2328
|
h.createMxObject({
|
|
2290
|
-
canvasId:
|
|
2329
|
+
canvasId: RC(E),
|
|
2291
2330
|
isCPPMxCAD: !0,
|
|
2292
2331
|
userIdentitySign: D,
|
|
2293
2332
|
callback(F) {
|
|
@@ -2299,7 +2338,7 @@ const LC = (E) => {
|
|
|
2299
2338
|
} catch (F) {
|
|
2300
2339
|
B(F);
|
|
2301
2340
|
}
|
|
2302
|
-
}),
|
|
2341
|
+
}), IC = async (E) => {
|
|
2303
2342
|
LD.state.MxFun || await nC();
|
|
2304
2343
|
const { multipleSelect: D, openParameter: C, networkFonts: B, fontspath: F, locateFile: A, wasmBinary: t, canvas: e, userIdentitySign: i, onOpenFileComplete: r, fileUrl: n, onInit: u = () => {
|
|
2305
2344
|
h.setIniset({
|
|
@@ -2310,7 +2349,7 @@ const LC = (E) => {
|
|
|
2310
2349
|
} } = E || {};
|
|
2311
2350
|
await JD(() => {
|
|
2312
2351
|
}, A, t, F, B), h.initMxCpp(s), u();
|
|
2313
|
-
let l = await
|
|
2352
|
+
let l = await OC(e, i);
|
|
2314
2353
|
const c = h.getMxFunTHREE();
|
|
2315
2354
|
let a = new c.Vector2();
|
|
2316
2355
|
l.getRenderer().getSize(a);
|
|
@@ -2319,8 +2358,8 @@ const LC = (E) => {
|
|
|
2319
2358
|
r && r();
|
|
2320
2359
|
}), n && m.openWebFile(n, void 0, !0, C), m;
|
|
2321
2360
|
};
|
|
2322
|
-
async function
|
|
2323
|
-
const E = new
|
|
2361
|
+
async function vC() {
|
|
2362
|
+
const E = new I();
|
|
2324
2363
|
E.setMessage(`
|
|
2325
2364
|
\u6307\u5B9A\u63D2\u5165\u4F4D\u7F6E:`);
|
|
2326
2365
|
let D = await E.go();
|
|
@@ -2330,7 +2369,7 @@ async function SC() {
|
|
|
2330
2369
|
if (C.length <= 0)
|
|
2331
2370
|
return;
|
|
2332
2371
|
let B = h.screenCoordLong2Doc(50);
|
|
2333
|
-
C =
|
|
2372
|
+
C = CD.b64Encode(C);
|
|
2334
2373
|
const F = {
|
|
2335
2374
|
postx: D.x,
|
|
2336
2375
|
posty: D.y,
|
|
@@ -2339,7 +2378,7 @@ async function SC() {
|
|
|
2339
2378
|
};
|
|
2340
2379
|
h.call("Mx_Text", F);
|
|
2341
2380
|
}
|
|
2342
|
-
class
|
|
2381
|
+
class SC extends RD {
|
|
2343
2382
|
getGripPoints() {
|
|
2344
2383
|
const { x: D, y: C, z: B } = this.center;
|
|
2345
2384
|
let F = new THREE.Vector3(D, C + this.radius, B), A = new THREE.Vector3(D, C - this.radius, B), t = new THREE.Vector3(D - this.radius, C, B), e = new THREE.Vector3(D + this.radius, C, B);
|
|
@@ -2351,13 +2390,13 @@ class vC extends RD {
|
|
|
2351
2390
|
}
|
|
2352
2391
|
}
|
|
2353
2392
|
const TD = (E) => {
|
|
2354
|
-
const [D, C, B] = E, { x: F, y: A, z: t } = D, { x: e, y: i, z: r } = C, { x: n, y: u, z: l } = B, c = A * r - i * t - A * l + u * t + i * l - u * r, a = -(F * r - e * t - F * l + n * t + e * l - n * r), m = F * i - e * A - F * u + n * A + e * u - n * i, g = -(F * i * l - F * u * r - e * A * l + e * u * t + n * A * r - n * i * t), f = 2 * (e - F), p = 2 * (i - A), d = 2 * (r - t), b = F * F + A * A + t * t - e * e - i * i - r * r, x = 2 * (n - F), w = 2 * (u - A), M = 2 * (l - t),
|
|
2355
|
-
return new THREE.Vector3(
|
|
2393
|
+
const [D, C, B] = E, { x: F, y: A, z: t } = D, { x: e, y: i, z: r } = C, { x: n, y: u, z: l } = B, c = A * r - i * t - A * l + u * t + i * l - u * r, a = -(F * r - e * t - F * l + n * t + e * l - n * r), m = F * i - e * A - F * u + n * A + e * u - n * i, g = -(F * i * l - F * u * r - e * A * l + e * u * t + n * A * r - n * i * t), f = 2 * (e - F), p = 2 * (i - A), d = 2 * (r - t), b = F * F + A * A + t * t - e * e - i * i - r * r, x = 2 * (n - F), w = 2 * (u - A), M = 2 * (l - t), G = F * F + A * A + t * t - n * n - u * u - l * l, DD = -(a * d * G - a * M * b - p * m * G + p * M * g + w * m * b - w * d * g) / (c * p * M - c * w * d - f * a * M + f * w * m + x * a * d - x * p * m), FC = (c * d * G - c * M * b - f * m * G + f * M * g + x * m * b - x * d * g) / (c * p * M - c * w * d - f * a * M + f * w * m + x * a * d - x * p * m), AC = -(c * p * G - c * w * b - f * a * G + f * w * g + x * a * b - x * p * g) / (c * p * M - c * w * d - f * a * M + f * w * m + x * a * d - x * p * m);
|
|
2394
|
+
return new THREE.Vector3(DD, FC, AC);
|
|
2356
2395
|
};
|
|
2357
|
-
function
|
|
2358
|
-
const E = new
|
|
2359
|
-
let D = new
|
|
2360
|
-
|
|
2396
|
+
function $D() {
|
|
2397
|
+
const E = new I();
|
|
2398
|
+
let D = new SC(), C = s.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2399
|
+
V.use(D), D.closed = !1, D.setColor(C);
|
|
2361
2400
|
let B = 0, F = "default", A = !0;
|
|
2362
2401
|
const t = () => {
|
|
2363
2402
|
E.setUserDraw(
|
|
@@ -2367,22 +2406,22 @@ function YD() {
|
|
|
2367
2406
|
);
|
|
2368
2407
|
}, e = (a) => {
|
|
2369
2408
|
if (F === "default") {
|
|
2370
|
-
if (a ===
|
|
2409
|
+
if (a === k.kOk) {
|
|
2371
2410
|
if (B === 0)
|
|
2372
2411
|
E.setMessage(`
|
|
2373
2412
|
\u6307\u5B9A\u5706\u7684\u534A\u5F84:`), E.setKeyWords("[\u76F4\u5F84(D)]"), D.center = E.value(), t();
|
|
2374
2413
|
else if (B === 1)
|
|
2375
|
-
return s.GetCurrentMxCAD().DrawEntity(new
|
|
2414
|
+
return s.GetCurrentMxCAD().DrawEntity(new N(D.center.x, D.center.y, 0, D.radius)), !0;
|
|
2376
2415
|
B++;
|
|
2377
2416
|
}
|
|
2378
|
-
a ===
|
|
2417
|
+
a === k.kKeyWord && E.isKeyWordPicked("D") && (A = !1, t(), E.setMessage(`
|
|
2379
2418
|
\u6307\u5B9A\u5706\u7684\u76F4\u5F84:`), E.setKeyWords(""));
|
|
2380
2419
|
}
|
|
2381
2420
|
};
|
|
2382
2421
|
let i = [];
|
|
2383
2422
|
const r = (a) => {
|
|
2384
2423
|
if (F === "3P" && (E.setMessage(`
|
|
2385
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9:`), a ===
|
|
2424
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9:`), a === k.kOk)) {
|
|
2386
2425
|
if (B === 0 && (i.push(E.value()), E.setUserDraw((m, g) => {
|
|
2387
2426
|
g.drawLine(i[0], m);
|
|
2388
2427
|
}), E.setMessage(`
|
|
@@ -2395,7 +2434,7 @@ function YD() {
|
|
|
2395
2434
|
]), D.radius = D.center.distanceTo(f), g.drawCustomEntity(D);
|
|
2396
2435
|
}), E.setMessage(`
|
|
2397
2436
|
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E09\u4E2A\u70B9:`)), B === 2)
|
|
2398
|
-
return i.push(E.value()), D.center = TD(i), D.radius = D.center.distanceTo(i[0]), s.GetCurrentMxCAD().DrawEntity(new
|
|
2437
|
+
return i.push(E.value()), D.center = TD(i), D.radius = D.center.distanceTo(i[0]), s.GetCurrentMxCAD().DrawEntity(new N(D.center.x, D.center.y, 0, D.radius)), !0;
|
|
2399
2438
|
B++;
|
|
2400
2439
|
}
|
|
2401
2440
|
};
|
|
@@ -2404,18 +2443,18 @@ function YD() {
|
|
|
2404
2443
|
new THREE.Line3(a, m).getCenter(D.center), D.radius = m.distanceTo(a) / 2;
|
|
2405
2444
|
}, l = (a) => {
|
|
2406
2445
|
if (F === "2P" && (E.setMessage(`
|
|
2407
|
-
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`), a ===
|
|
2446
|
+
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`), a === k.kOk)) {
|
|
2408
2447
|
if (B === 0 && (n = E.value(), E.setUserDraw((m, g) => {
|
|
2409
2448
|
u(n, m), g.drawCustomEntity(D), g.drawLine(n, m);
|
|
2410
2449
|
}), E.setMessage(`
|
|
2411
2450
|
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9:`)), B === 1)
|
|
2412
|
-
return u(n, E.value()), s.GetCurrentMxCAD().DrawEntity(new
|
|
2451
|
+
return u(n, E.value()), s.GetCurrentMxCAD().DrawEntity(new N(D.center.x, D.center.y, 0, D.radius)), !0;
|
|
2413
2452
|
B++;
|
|
2414
2453
|
}
|
|
2415
2454
|
}, c = (a) => {
|
|
2416
2455
|
if (F === "T") {
|
|
2417
2456
|
if (E.setMessage(`
|
|
2418
|
-
\u6307\u5B9A\u5BF9\u8C61\u4E0E\u5706\u7684\u7B2C\u4E00\u4E2A\u5207\u70B9:`), a ===
|
|
2457
|
+
\u6307\u5B9A\u5BF9\u8C61\u4E0E\u5706\u7684\u7B2C\u4E00\u4E2A\u5207\u70B9:`), a === k.kOk) {
|
|
2419
2458
|
if (B === 0) {
|
|
2420
2459
|
const m = E.value();
|
|
2421
2460
|
console.log(m), h.getCurrentDraw();
|
|
@@ -2430,7 +2469,7 @@ function YD() {
|
|
|
2430
2469
|
\u6307\u5B9A\u5706\u7684\u5706\u5FC3\u6216[\u4E09\u70B9(3P)/\u4E24\u70B9(2P)/\u5207\u70B9\u3001\u5207\u70B9\u3001\u534A\u5F84(T)]:`
|
|
2431
2470
|
), E.setKeyWords("3P 2P T"), E.goWhile(
|
|
2432
2471
|
(a) => {
|
|
2433
|
-
if (a ===
|
|
2472
|
+
if (a === k.kKeyWord && (E.isKeyWordPicked("3P") ? F = "3P" : E.isKeyWordPicked("2P") ? F = "2P" : E.isKeyWordPicked("T") && (F = "T")), e(a))
|
|
2434
2473
|
return { exit: !0 };
|
|
2435
2474
|
if (r(a))
|
|
2436
2475
|
return { exit: !0 };
|
|
@@ -2440,31 +2479,31 @@ function YD() {
|
|
|
2440
2479
|
return { exit: !0 };
|
|
2441
2480
|
},
|
|
2442
2481
|
(a) => {
|
|
2443
|
-
a ===
|
|
2482
|
+
a === k.kCancel && s.GetCurrentMxCAD().DrawEntity(new N(D.center.x, D.center.y, 0, D.radius));
|
|
2444
2483
|
}
|
|
2445
2484
|
);
|
|
2446
2485
|
}
|
|
2447
2486
|
h.on("init", () => {
|
|
2448
|
-
h.addCommand("Mx_Circle",
|
|
2487
|
+
h.addCommand("Mx_Circle", $D);
|
|
2449
2488
|
});
|
|
2450
2489
|
const kD = () => LD.state.MxFun.stopRunCommand();
|
|
2451
|
-
function
|
|
2490
|
+
function lD(E, D, C, B) {
|
|
2452
2491
|
const F = E - C, A = D - B;
|
|
2453
2492
|
let t = 0;
|
|
2454
2493
|
return F == 0 ? t = Math.PI / 2 : t = Math.atan(Math.abs(A / F)), F < 0 && A >= 0 ? t = Math.PI - t : F < 0 && A < 0 ? t = Math.PI + t : F >= 0 && A < 0 && (t = Math.PI * 2 - t), t;
|
|
2455
2494
|
}
|
|
2456
|
-
const
|
|
2495
|
+
const v = (E, D, C) => {
|
|
2457
2496
|
const B = () => {
|
|
2458
2497
|
E.go((F) => {
|
|
2459
|
-
if (F ===
|
|
2498
|
+
if (F === k.kKeyWord && C() && B(), F === k.kOk && D() && B(), F === k.kNone && B(), F === k.kCancel)
|
|
2460
2499
|
return { exit: !0 };
|
|
2461
2500
|
});
|
|
2462
2501
|
};
|
|
2463
2502
|
return B;
|
|
2464
2503
|
};
|
|
2465
2504
|
async function XD() {
|
|
2466
|
-
const E = new
|
|
2467
|
-
let D = new
|
|
2505
|
+
const E = new I();
|
|
2506
|
+
let D = new AD(), C = s.GetCurrentDatabase().GetCurrentlyDrawColor(), B = [];
|
|
2468
2507
|
E.setMessage(`
|
|
2469
2508
|
\u6307\u5B9A\u7B2C\u4E00\u70B9:`);
|
|
2470
2509
|
let F = await E.go();
|
|
@@ -2481,25 +2520,25 @@ async function XD() {
|
|
|
2481
2520
|
};
|
|
2482
2521
|
A(), E.goWhile(
|
|
2483
2522
|
(t) => {
|
|
2484
|
-
if (t ===
|
|
2523
|
+
if (t === k.kOk && (D = new AD(), V.use(D), D.pt1 = F, D.pt2 = E.value(), F = D.pt2.clone(), B.push(D), A()), t === k.kKeyWord) {
|
|
2485
2524
|
if (E.isKeyWordPicked("E"))
|
|
2486
2525
|
kD();
|
|
2487
2526
|
else if (E.isKeyWordPicked("C")) {
|
|
2488
|
-
const e = new
|
|
2489
|
-
return e.pt1 = F.clone(), e.pt2 = B[0].pt1.clone(),
|
|
2527
|
+
const e = new AD();
|
|
2528
|
+
return e.pt1 = F.clone(), e.pt2 = B[0].pt1.clone(), V.use(e), B.push(e), F = e.pt2.clone(), kD(), { exit: !0 };
|
|
2490
2529
|
} else if (E.isKeyWordPicked("U")) {
|
|
2491
2530
|
const e = B.pop();
|
|
2492
2531
|
e && (F = e.pt1);
|
|
2493
2532
|
}
|
|
2494
2533
|
}
|
|
2495
2534
|
},
|
|
2496
|
-
(t) => (t !=
|
|
2497
|
-
s.GetCurrentMxCAD().DrawEntity(new
|
|
2535
|
+
(t) => (t != k.kCancel && B.forEach((e) => {
|
|
2536
|
+
s.GetCurrentMxCAD().DrawEntity(new eD(e.pt1.x, e.pt1.y, 0, e.pt2.x, e.pt2.y, 0));
|
|
2498
2537
|
}), { exit: !0 })
|
|
2499
2538
|
);
|
|
2500
2539
|
}
|
|
2501
|
-
async function
|
|
2502
|
-
let E = new
|
|
2540
|
+
async function jC() {
|
|
2541
|
+
let E = new j();
|
|
2503
2542
|
for (E.setMessage("\u6307\u5B9A\u70B9"); ; ) {
|
|
2504
2543
|
let D = await E.go();
|
|
2505
2544
|
if (D == null)
|
|
@@ -2508,10 +2547,10 @@ async function IC() {
|
|
|
2508
2547
|
}
|
|
2509
2548
|
}
|
|
2510
2549
|
h.on("init", () => {
|
|
2511
|
-
h.addCommand("Mx_Line", XD), h.addCommand("Mx_Point",
|
|
2550
|
+
h.addCommand("Mx_Line", XD), h.addCommand("Mx_Point", jC);
|
|
2512
2551
|
});
|
|
2513
|
-
async function
|
|
2514
|
-
const E = new
|
|
2552
|
+
async function GC() {
|
|
2553
|
+
const E = new I();
|
|
2515
2554
|
E.setMessage(`
|
|
2516
2555
|
\u6307\u5B9A\u63D2\u5165\u4F4D\u7F6E:`);
|
|
2517
2556
|
let D = await E.go();
|
|
@@ -2522,7 +2561,7 @@ async function jC() {
|
|
|
2522
2561
|
if (C.length <= 0)
|
|
2523
2562
|
return;
|
|
2524
2563
|
let B = h.screenCoordLong2Doc(50);
|
|
2525
|
-
C =
|
|
2564
|
+
C = CD.b64Encode(C);
|
|
2526
2565
|
const F = {
|
|
2527
2566
|
postx: D.x,
|
|
2528
2567
|
posty: D.y,
|
|
@@ -2532,26 +2571,26 @@ async function jC() {
|
|
|
2532
2571
|
h.call("Mx_MText", F);
|
|
2533
2572
|
}
|
|
2534
2573
|
async function QD() {
|
|
2535
|
-
const E = new
|
|
2574
|
+
const E = new I();
|
|
2536
2575
|
let D = s.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2537
2576
|
const C = new oC();
|
|
2538
|
-
|
|
2577
|
+
V.use(C), C.color = D, E.setMessage(`
|
|
2539
2578
|
\u6307\u5B9A\u8D77\u70B9:`);
|
|
2540
2579
|
let B;
|
|
2541
2580
|
E.setUserDraw((F, A) => {
|
|
2542
2581
|
A.setColor(D), A.drawCustomEntity(C), B && A.drawLine(B, F);
|
|
2543
2582
|
}), E.goWhile(
|
|
2544
2583
|
(F) => {
|
|
2545
|
-
if (F ===
|
|
2584
|
+
if (F === k.kOk) {
|
|
2546
2585
|
const A = E.value();
|
|
2547
2586
|
C.points.push(E.value()), B = A, E.setMessage(`
|
|
2548
2587
|
\u6307\u5B9A\u4E0B\u4E00\u4E2A\u70B9:`), E.setKeyWords("[\u5706\u5F27(A)/\u5BBD\u5EA6(W)]");
|
|
2549
2588
|
} else
|
|
2550
|
-
F ===
|
|
2589
|
+
F === k.kKeyWord && (E.isKeyWordPicked("A"), E.isKeyWordPicked("W"));
|
|
2551
2590
|
},
|
|
2552
2591
|
(F) => {
|
|
2553
|
-
if (F !=
|
|
2554
|
-
let A = s.GetCurrentMxCAD(), t = new
|
|
2592
|
+
if (F != k.kCancel) {
|
|
2593
|
+
let A = s.GetCurrentMxCAD(), t = new rD();
|
|
2555
2594
|
for (let e = 0; e < C.points.length; e++)
|
|
2556
2595
|
t.addVertexAt(C.points[e]);
|
|
2557
2596
|
A.DrawEntity(t);
|
|
@@ -2563,10 +2602,10 @@ h.on("init", () => {
|
|
|
2563
2602
|
h.addCommand("Mx_Pline", QD);
|
|
2564
2603
|
});
|
|
2565
2604
|
async function DC() {
|
|
2566
|
-
const E = new
|
|
2605
|
+
const E = new I();
|
|
2567
2606
|
E.setMessage(`
|
|
2568
2607
|
\u6307\u5B9A\u4E00\u70B9:`);
|
|
2569
|
-
let D = await E.go(), C = new
|
|
2608
|
+
let D = await E.go(), C = new N();
|
|
2570
2609
|
C.setCenter(D.x, D.y, D.z);
|
|
2571
2610
|
let B = 5, F = s.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2572
2611
|
E.setUserDraw((A, t) => {
|
|
@@ -2580,21 +2619,21 @@ async function DC() {
|
|
|
2580
2619
|
\u6307\u5B9A\u4E8C\u70B9:`), await E.go(), E.drawReserve();
|
|
2581
2620
|
}
|
|
2582
2621
|
h.addCommand("Mx_Polygon", DC);
|
|
2583
|
-
function
|
|
2622
|
+
function VC(E, D, C) {
|
|
2584
2623
|
const B = E.x, F = D.x, A = C.x, t = E.y, e = D.y, i = C.y, r = B - F, n = t - e, u = B - A, l = t - i, c = (B * B - F * F + (t * t - e * e)) / 2, a = (B * B - A * A + (t * t - i * i)) / 2, m = n * u - r * l, g = -(l * c - n * a) / m, f = -(r * a - u * c) / m;
|
|
2585
2624
|
return new THREE.Vector3(g, f, 0);
|
|
2586
2625
|
}
|
|
2587
|
-
function
|
|
2626
|
+
function WC(E, D) {
|
|
2588
2627
|
const C = E.x, B = E.y, F = D.x, A = D.y;
|
|
2589
2628
|
return Math.sqrt((C - F) * (C - F) + (B - A) * (B - A));
|
|
2590
2629
|
}
|
|
2591
|
-
function
|
|
2630
|
+
function UC(E, D, C) {
|
|
2592
2631
|
let B;
|
|
2593
2632
|
E < C ? B = C - E : B = C - E + 360;
|
|
2594
2633
|
let F;
|
|
2595
2634
|
return E < D ? F = D - E : F = D - E + 360, F > B;
|
|
2596
2635
|
}
|
|
2597
|
-
function
|
|
2636
|
+
function cD(E, D, C) {
|
|
2598
2637
|
const B = E.x, F = D.x, A = E.y, t = D.y;
|
|
2599
2638
|
let e, i, r;
|
|
2600
2639
|
return e = (A - t) / 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, e < -0.05 && (r = 360 - r), {
|
|
@@ -2648,9 +2687,9 @@ class PD extends RD {
|
|
|
2648
2687
|
upDatePoints(D, C, B) {
|
|
2649
2688
|
D[C].add(B);
|
|
2650
2689
|
const [F, A, t] = D;
|
|
2651
|
-
this.center =
|
|
2652
|
-
const e =
|
|
2653
|
-
this.clockwise =
|
|
2690
|
+
this.center = VC(F, t, A), this.radius = WC(A, this.center);
|
|
2691
|
+
const e = cD(F, this.center, this.radius), i = cD(t, this.center, this.radius), r = cD(A, this.center, this.radius);
|
|
2692
|
+
this.clockwise = UC(
|
|
2654
2693
|
i.angle,
|
|
2655
2694
|
e.angle,
|
|
2656
2695
|
r.angle
|
|
@@ -2659,13 +2698,13 @@ class PD extends RD {
|
|
|
2659
2698
|
}
|
|
2660
2699
|
async function CC() {
|
|
2661
2700
|
let E = s.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2662
|
-
const D = new
|
|
2701
|
+
const D = new I();
|
|
2663
2702
|
D.setMessage(`
|
|
2664
2703
|
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), D.setKeyWords("[\u5706\u5FC3(C)]");
|
|
2665
2704
|
let C = new PD();
|
|
2666
|
-
C.closed = !1,
|
|
2705
|
+
C.closed = !1, V.use(C);
|
|
2667
2706
|
let B, F, A;
|
|
2668
|
-
const t =
|
|
2707
|
+
const t = v(
|
|
2669
2708
|
D,
|
|
2670
2709
|
() => {
|
|
2671
2710
|
B = D.value(), D.setMessage(`
|
|
@@ -2675,7 +2714,7 @@ async function CC() {
|
|
|
2675
2714
|
},
|
|
2676
2715
|
() => {
|
|
2677
2716
|
if (D.isKeyWordPicked("C")) {
|
|
2678
|
-
const p = new
|
|
2717
|
+
const p = new FD();
|
|
2679
2718
|
p.color = E, C.center = D.value(), p.center = D.value(), D.setMessage(`
|
|
2680
2719
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3:`), D.setKeyWords(""), i();
|
|
2681
2720
|
} else
|
|
@@ -2683,10 +2722,10 @@ async function CC() {
|
|
|
2683
2722
|
}
|
|
2684
2723
|
);
|
|
2685
2724
|
let e;
|
|
2686
|
-
const i =
|
|
2725
|
+
const i = v(
|
|
2687
2726
|
D,
|
|
2688
2727
|
() => {
|
|
2689
|
-
e = D.value(), A = new
|
|
2728
|
+
e = D.value(), A = new FD(), A.closed = !1, V.use(A), A.color = E, A.center = e, C.center = e, D.setMessage(`
|
|
2690
2729
|
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), D.setUserDraw((p, d) => {
|
|
2691
2730
|
d.drawCustomEntity(A), d.setColor(E), d.drawLine(e, p);
|
|
2692
2731
|
}), u();
|
|
@@ -2695,13 +2734,13 @@ async function CC() {
|
|
|
2695
2734
|
}
|
|
2696
2735
|
);
|
|
2697
2736
|
let r, n;
|
|
2698
|
-
const u =
|
|
2737
|
+
const u = v(
|
|
2699
2738
|
D,
|
|
2700
2739
|
() => {
|
|
2701
2740
|
r = D.value(), A.endPoint = r, D.setMessage(
|
|
2702
2741
|
`
|
|
2703
2742
|
\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)]:`
|
|
2704
|
-
), D.setKeyWords("A L R"), n = new
|
|
2743
|
+
), D.setKeyWords("A L R"), n = new AD(), n.setDashLineDisplay(!0), n.setDashArray(0.05), n.setLineWidth(2), n.setColor("#ffd30d"), n.pt1 = A.center, D.setUserDraw((p, d) => {
|
|
2705
2744
|
A.startPoint = p, n.pt2 = p, d.drawCustomEntity(A), d.drawCustomEntity(n);
|
|
2706
2745
|
}), c();
|
|
2707
2746
|
},
|
|
@@ -2709,7 +2748,7 @@ async function CC() {
|
|
|
2709
2748
|
}
|
|
2710
2749
|
);
|
|
2711
2750
|
let l;
|
|
2712
|
-
const c =
|
|
2751
|
+
const c = v(
|
|
2713
2752
|
D,
|
|
2714
2753
|
() => {
|
|
2715
2754
|
l = D.value(), A.startPoint = l, A.endPoint = r, g.DrawArc(A.center.x, A.center.y, A.radius, A.startAngle, A.endAngle);
|
|
@@ -2741,22 +2780,22 @@ async function CC() {
|
|
|
2741
2780
|
}
|
|
2742
2781
|
);
|
|
2743
2782
|
let a;
|
|
2744
|
-
const m =
|
|
2783
|
+
const m = v(
|
|
2745
2784
|
D,
|
|
2746
2785
|
() => {
|
|
2747
2786
|
a = D.value(), D.setMessage(`
|
|
2748
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), F = new aC(), F.color = E, F.autoClockwise = !0, F.closed = !1,
|
|
2787
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), F = new aC(), F.color = E, F.autoClockwise = !0, F.closed = !1, V.use(F), D.setUserDraw((p, d) => {
|
|
2749
2788
|
F.point1 = B, F.point3 = a, F.point2 = p, d.drawCustomEntity(F);
|
|
2750
2789
|
}), f();
|
|
2751
2790
|
},
|
|
2752
2791
|
() => {
|
|
2753
2792
|
if (D.isKeyWordPicked("C"))
|
|
2754
|
-
A = new
|
|
2793
|
+
A = new FD(), A.closed = !1, V.use(A), A.color = E, D.setMessage(`
|
|
2755
2794
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), D.setKeyWords(""), D.setUserDraw((p, d) => {
|
|
2756
2795
|
A.startPoint = B, d.drawLine(p, A.startPoint);
|
|
2757
2796
|
}), i();
|
|
2758
2797
|
else if (D.isKeyWordPicked("E"))
|
|
2759
|
-
A = new
|
|
2798
|
+
A = new FD(), A.closed = !1, V.use(A), A.color = E, D.setMessage(`
|
|
2760
2799
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), D.setKeyWords(""), D.setUserDraw((p, d) => {
|
|
2761
2800
|
A.startPoint = B, d.drawLine(p, A.startPoint);
|
|
2762
2801
|
}), i();
|
|
@@ -2765,11 +2804,11 @@ async function CC() {
|
|
|
2765
2804
|
}
|
|
2766
2805
|
);
|
|
2767
2806
|
let g = s.GetCurrentMxCAD();
|
|
2768
|
-
const f =
|
|
2807
|
+
const f = v(
|
|
2769
2808
|
D,
|
|
2770
2809
|
() => {
|
|
2771
2810
|
F.point1 = B, F.point2 = D.value(), F.point3 = a;
|
|
2772
|
-
let p = new
|
|
2811
|
+
let p = new sD();
|
|
2773
2812
|
p.computeArc(F.point1.x, F.point1.y, F.point3.x, F.point3.y, F.point2.x, F.point2.y), g.DrawEntity(p);
|
|
2774
2813
|
},
|
|
2775
2814
|
() => {
|
|
@@ -2787,23 +2826,23 @@ h.on("init", () => {
|
|
|
2787
2826
|
h.addCommand("Mx_Arc", CC);
|
|
2788
2827
|
});
|
|
2789
2828
|
function BC() {
|
|
2790
|
-
const E = new
|
|
2791
|
-
D.closed = !1,
|
|
2829
|
+
const E = new I(), D = new uC();
|
|
2830
|
+
D.closed = !1, V.use(D), E.setMessage(`
|
|
2792
2831
|
\u6307\u5B9A\u692D\u5706\u7684\u8F74\u7AEF\u70B9`), E.setKeyWords("[\u4E2D\u5FC3\u70B9(C)]");
|
|
2793
2832
|
let C, B = new THREE.Vector3();
|
|
2794
|
-
|
|
2833
|
+
v(
|
|
2795
2834
|
E,
|
|
2796
2835
|
() => {
|
|
2797
2836
|
C = E.value(), E.setUserDraw((r, n) => {
|
|
2798
2837
|
const u = new THREE.Line3(C, r);
|
|
2799
|
-
u.getCenter(B), D.center = B, D.xRadius = u.distance() / 2, D.yRadius = D.xRadius, D.rotation =
|
|
2838
|
+
u.getCenter(B), D.center = B, D.xRadius = u.distance() / 2, D.yRadius = D.xRadius, D.rotation = lD(r.x, r.y, B.x, B.y), n.drawLine(r, C);
|
|
2800
2839
|
}), E.setMessage(`
|
|
2801
2840
|
\u6307\u5B9A\u692D\u5706\u5F27\u8F74\u7684\u53E6\u4E00\u4E2A\u7AEF\u70B9:`), E.setKeyWords(""), A();
|
|
2802
2841
|
},
|
|
2803
2842
|
() => {
|
|
2804
2843
|
}
|
|
2805
2844
|
)();
|
|
2806
|
-
const A =
|
|
2845
|
+
const A = v(
|
|
2807
2846
|
E,
|
|
2808
2847
|
() => {
|
|
2809
2848
|
E.setUserDraw((r, n) => {
|
|
@@ -2813,38 +2852,38 @@ function BC() {
|
|
|
2813
2852
|
},
|
|
2814
2853
|
() => {
|
|
2815
2854
|
}
|
|
2816
|
-
), t =
|
|
2855
|
+
), t = v(
|
|
2817
2856
|
E,
|
|
2818
2857
|
() => {
|
|
2819
2858
|
E.setMessage(`
|
|
2820
2859
|
\u6307\u5B9A\u8D77\u59CB\u89D2\u5EA6`), E.setKeyWords(""), E.setUserDraw((r, n) => {
|
|
2821
|
-
D.startAngle =
|
|
2860
|
+
D.startAngle = lD(r.x, r.y, B.x, B.y) - D.rotation, n.drawLine(B, r), n.drawCustomEntity(D);
|
|
2822
2861
|
}), e();
|
|
2823
2862
|
},
|
|
2824
2863
|
() => {
|
|
2825
2864
|
}
|
|
2826
|
-
), e =
|
|
2865
|
+
), e = v(
|
|
2827
2866
|
E,
|
|
2828
2867
|
() => {
|
|
2829
2868
|
E.setUserDraw((r, n) => {
|
|
2830
|
-
D.endAngle =
|
|
2869
|
+
D.endAngle = lD(r.x, r.y, B.x, B.y) - D.rotation, n.drawLine(B, r), n.drawCustomEntity(D);
|
|
2831
2870
|
}), E.setMessage(`
|
|
2832
2871
|
\u6307\u5B9A\u7EC8\u6B62\u89D2\u5EA6`), E.setKeyWords(""), i();
|
|
2833
2872
|
},
|
|
2834
2873
|
() => {
|
|
2835
2874
|
}
|
|
2836
|
-
), i =
|
|
2875
|
+
), i = v(
|
|
2837
2876
|
E,
|
|
2838
2877
|
() => {
|
|
2839
2878
|
let r = new y(D.xRadius, 0, 0);
|
|
2840
|
-
r.rotateBy(D.rotation, y.kZAxis), s.GetCurrentMxCAD().DrawEntity(new
|
|
2879
|
+
r.rotateBy(D.rotation, y.kZAxis), s.GetCurrentMxCAD().DrawEntity(new oD(D.center.x, D.center.y, 0, r.x, r.y, 0, D.yRadius / D.xRadius, D.startAngle, D.endAngle));
|
|
2841
2880
|
},
|
|
2842
2881
|
() => {
|
|
2843
2882
|
}
|
|
2844
2883
|
);
|
|
2845
2884
|
}
|
|
2846
|
-
function
|
|
2847
|
-
const E = new
|
|
2885
|
+
function zC() {
|
|
2886
|
+
const E = new I(), D = new lC(), C = new cC();
|
|
2848
2887
|
let B = s.GetCurrentDatabase().GetCurrentlyDrawColor();
|
|
2849
2888
|
C.setColor(B), E.setMessage(`
|
|
2850
2889
|
\u70B9\u51FB\u5F00\u59CB\u7ED8\u5236\u692D\u5706:`), E.go(() => {
|
|
@@ -2852,28 +2891,28 @@ function UC() {
|
|
|
2852
2891
|
C.point2 = F, D.drawCustomEntity(C);
|
|
2853
2892
|
}), E.setUserDraw(D), E.setMessage(`
|
|
2854
2893
|
\u518D\u6B21\u70B9\u51FB\u7ED3\u675F\u7ED8\u5236\u692D\u5706:`), E.go(() => {
|
|
2855
|
-
s.GetCurrentMxCAD().DrawEntity(new
|
|
2894
|
+
s.GetCurrentMxCAD().DrawEntity(new oD(C.center.x, C.center.y, 0, C.xRadius, 0, 0, C.yRadius / C.xRadius));
|
|
2856
2895
|
});
|
|
2857
2896
|
});
|
|
2858
2897
|
}
|
|
2859
2898
|
h.on("init", () => {
|
|
2860
|
-
h.addCommand("Mx_EllipseArc", BC), h.addCommand("Mx_Ellipse",
|
|
2899
|
+
h.addCommand("Mx_EllipseArc", BC), h.addCommand("Mx_Ellipse", zC);
|
|
2861
2900
|
});
|
|
2862
2901
|
async function EC() {
|
|
2863
|
-
let E =
|
|
2902
|
+
let E = P.getCurrentSelect();
|
|
2864
2903
|
if (E.length > 0) {
|
|
2865
2904
|
E.forEach((C) => {
|
|
2866
2905
|
C.erase();
|
|
2867
2906
|
});
|
|
2868
2907
|
return;
|
|
2869
2908
|
}
|
|
2870
|
-
let D = new
|
|
2909
|
+
let D = new z();
|
|
2871
2910
|
!await D.userSelect(`
|
|
2872
2911
|
\u9009\u62E9\u5220\u9664\u5BF9\u8C61`) || D.forEach((C) => {
|
|
2873
2912
|
C.erase();
|
|
2874
2913
|
});
|
|
2875
2914
|
}
|
|
2876
|
-
function
|
|
2915
|
+
function ED(E) {
|
|
2877
2916
|
let D, C;
|
|
2878
2917
|
if (E.forEach((B) => {
|
|
2879
2918
|
let F = B.getMcDbEntity();
|
|
@@ -2884,10 +2923,10 @@ function BD(E) {
|
|
|
2884
2923
|
}), D && C)
|
|
2885
2924
|
return { minPt: D, maxPt: C };
|
|
2886
2925
|
}
|
|
2887
|
-
async function
|
|
2926
|
+
async function NC() {
|
|
2888
2927
|
let E;
|
|
2889
|
-
for (; E =
|
|
2890
|
-
let t = new
|
|
2928
|
+
for (; E = P.getCurrentSelect(), !(E.length > 0); ) {
|
|
2929
|
+
let t = new z();
|
|
2891
2930
|
if (!await t.userSelect(`
|
|
2892
2931
|
\u9009\u62E9\u590D\u5236\u5BF9\u8C61`) || (E = t.getIds(), E.length == 0))
|
|
2893
2932
|
return;
|
|
@@ -2895,10 +2934,10 @@ async function zC() {
|
|
|
2895
2934
|
}
|
|
2896
2935
|
let D, C;
|
|
2897
2936
|
if (E.length >= 10) {
|
|
2898
|
-
let t =
|
|
2937
|
+
let t = ED(E);
|
|
2899
2938
|
t && (D = t.minPt, C = t.maxPt);
|
|
2900
2939
|
}
|
|
2901
|
-
let B = new
|
|
2940
|
+
let B = new j();
|
|
2902
2941
|
B.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
2903
2942
|
let F = await B.go();
|
|
2904
2943
|
if (!F)
|
|
@@ -2922,8 +2961,8 @@ async function zC() {
|
|
|
2922
2961
|
}
|
|
2923
2962
|
async function HC() {
|
|
2924
2963
|
let E;
|
|
2925
|
-
for (; E =
|
|
2926
|
-
let t = new
|
|
2964
|
+
for (; E = P.getCurrentSelect(), !(E.length > 0); ) {
|
|
2965
|
+
let t = new z();
|
|
2927
2966
|
if (!await t.userSelect(`
|
|
2928
2967
|
\u9009\u62E9\u79FB\u52A8\u5BF9\u8C61`) || (E = t.getIds(), E.length == 0))
|
|
2929
2968
|
return;
|
|
@@ -2931,10 +2970,10 @@ async function HC() {
|
|
|
2931
2970
|
}
|
|
2932
2971
|
let D, C;
|
|
2933
2972
|
if (E.length >= 10) {
|
|
2934
|
-
let t =
|
|
2973
|
+
let t = ED(E);
|
|
2935
2974
|
t && (D = t.minPt, C = t.maxPt);
|
|
2936
2975
|
}
|
|
2937
|
-
let B = new
|
|
2976
|
+
let B = new j();
|
|
2938
2977
|
B.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
2939
2978
|
let F = await B.go();
|
|
2940
2979
|
if (!F)
|
|
@@ -2958,22 +2997,22 @@ async function HC() {
|
|
|
2958
2997
|
}
|
|
2959
2998
|
async function KC() {
|
|
2960
2999
|
let E;
|
|
2961
|
-
for (; E =
|
|
2962
|
-
let l = new
|
|
3000
|
+
for (; E = P.getCurrentSelect(), !(E.length > 0); ) {
|
|
3001
|
+
let l = new z();
|
|
2963
3002
|
if (!await l.userSelect(`
|
|
2964
3003
|
\u9009\u62E9\u65CB\u8F6C\u5BF9\u8C61`) || (E = l.getIds(), E.length == 0))
|
|
2965
3004
|
return;
|
|
2966
3005
|
break;
|
|
2967
3006
|
}
|
|
2968
|
-
let D, C, B =
|
|
3007
|
+
let D, C, B = ED(E);
|
|
2969
3008
|
B && (D = B.minPt, C = B.maxPt);
|
|
2970
|
-
let F = new
|
|
3009
|
+
let F = new j();
|
|
2971
3010
|
F.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
2972
3011
|
let A = await F.go();
|
|
2973
3012
|
if (A == null)
|
|
2974
3013
|
return;
|
|
2975
3014
|
F.setMessage("\u6307\u5B9A\u65CB\u8F6C\u89D2\u5EA6"), F.setBasePt(A), F.setUseBasePt(!0), F.setUserDraw((l, c) => {
|
|
2976
|
-
let a = l, m = A, f = a.sub(m).angleTo2(y.kXAxis, y.kNegateZAxis), p = new
|
|
3015
|
+
let a = l, m = A, f = a.sub(m).angleTo2(y.kXAxis, y.kNegateZAxis), p = new S();
|
|
2977
3016
|
if (p.setToRotation(f, y.kZAxis, m), D && C) {
|
|
2978
3017
|
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), w = new o(b.x, d.y, 0);
|
|
2979
3018
|
d.transformBy(p), b.transformBy(p), x.transformBy(p), w.transformBy(p), c.drawLine(w.toVector3(), d.toVector3()), c.drawLine(d.toVector3(), x.toVector3()), c.drawLine(x.toVector3(), b.toVector3()), c.drawLine(b.toVector3(), w.toVector3());
|
|
@@ -2987,29 +3026,29 @@ async function KC() {
|
|
|
2987
3026
|
let t = await F.go();
|
|
2988
3027
|
if (!t)
|
|
2989
3028
|
return;
|
|
2990
|
-
let e = t, i = A, n = e.sub(i).angleTo2(y.kXAxis, y.kNegateZAxis), u = new
|
|
3029
|
+
let e = t, i = A, n = e.sub(i).angleTo2(y.kXAxis, y.kNegateZAxis), u = new S();
|
|
2991
3030
|
i = s.GetCurrentMxCAD().DocCoord2Cad(i), u.setToRotation(n, y.kZAxis, i);
|
|
2992
3031
|
for (let l = 0; l < E.length; l++) {
|
|
2993
3032
|
let c = E[l].getMcDbObject();
|
|
2994
3033
|
!c || c.TransformBy(u);
|
|
2995
3034
|
}
|
|
2996
3035
|
}
|
|
2997
|
-
async function
|
|
3036
|
+
async function _C() {
|
|
2998
3037
|
let E;
|
|
2999
|
-
for (; E =
|
|
3000
|
-
let m = new
|
|
3038
|
+
for (; E = P.getCurrentSelect(), !(E.length > 0); ) {
|
|
3039
|
+
let m = new z();
|
|
3001
3040
|
if (!await m.userSelect(`
|
|
3002
3041
|
\u9009\u62E9\u7F29\u653E\u5BF9\u8C61`) || (E = m.getIds(), E.length == 0))
|
|
3003
3042
|
return;
|
|
3004
3043
|
break;
|
|
3005
3044
|
}
|
|
3006
|
-
let D, C, B =
|
|
3045
|
+
let D, C, B = ED(E);
|
|
3007
3046
|
if (!B)
|
|
3008
3047
|
return;
|
|
3009
3048
|
D = B.minPt, C = B.maxPt;
|
|
3010
3049
|
let F = C.x - D.x, A = C.y - D.y, t = (F + A) / 3;
|
|
3011
3050
|
t < 1e-5 && (t = 1);
|
|
3012
|
-
let e = new
|
|
3051
|
+
let e = new j();
|
|
3013
3052
|
e.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
3014
3053
|
let i = await e.go();
|
|
3015
3054
|
if (i == null)
|
|
@@ -3020,10 +3059,10 @@ async function NC() {
|
|
|
3020
3059
|
return;
|
|
3021
3060
|
let b = d / t;
|
|
3022
3061
|
b > 1e5 && (b = 1e5);
|
|
3023
|
-
let x = new
|
|
3062
|
+
let x = new S();
|
|
3024
3063
|
if (x.setToScaling(b, p), D && C) {
|
|
3025
|
-
let w = new o(D.x, C.y, 0), M = new o(C.x, D.y, 0),
|
|
3026
|
-
w.transformBy(x), M.transformBy(x),
|
|
3064
|
+
let w = new o(D.x, C.y, 0), M = new o(C.x, D.y, 0), G = new o(w.x, M.y, 0), DD = new o(M.x, w.y, 0);
|
|
3065
|
+
w.transformBy(x), M.transformBy(x), G.transformBy(x), DD.transformBy(x), g.drawLine(DD.toVector3(), w.toVector3()), g.drawLine(w.toVector3(), G.toVector3()), g.drawLine(G.toVector3(), M.toVector3()), g.drawLine(M.toVector3(), DD.toVector3());
|
|
3027
3066
|
}
|
|
3028
3067
|
p = s.GetCurrentMxCAD().DocCoord2Cad(p), x.setToScaling(b, p);
|
|
3029
3068
|
for (let w = 0; w < E.length && w < 10; w++) {
|
|
@@ -3039,16 +3078,16 @@ async function NC() {
|
|
|
3039
3078
|
return;
|
|
3040
3079
|
let c = l / t;
|
|
3041
3080
|
c > 1e5 && (c = 1e5);
|
|
3042
|
-
let a = new
|
|
3081
|
+
let a = new S();
|
|
3043
3082
|
u = s.GetCurrentMxCAD().DocCoord2Cad(u), a.setToScaling(c, u);
|
|
3044
3083
|
for (let m = 0; m < E.length; m++) {
|
|
3045
3084
|
let g = E[m].getMcDbObject();
|
|
3046
3085
|
!g || g.TransformBy(a);
|
|
3047
3086
|
}
|
|
3048
3087
|
}
|
|
3049
|
-
async function
|
|
3050
|
-
let E = new
|
|
3051
|
-
E.setDisableOsnap(!0), E.setMessage("\u70B9\u53D6\u7F29\u653E\u533A\u57DF"), E.setDynamicInputType(
|
|
3088
|
+
async function qC() {
|
|
3089
|
+
let E = new j();
|
|
3090
|
+
E.setDisableOsnap(!0), E.setMessage("\u70B9\u53D6\u7F29\u653E\u533A\u57DF"), E.setDynamicInputType(BD.kDynTip);
|
|
3052
3091
|
let D = await E.go();
|
|
3053
3092
|
if (D == null)
|
|
3054
3093
|
return;
|
|
@@ -3058,24 +3097,24 @@ async function _C() {
|
|
|
3058
3097
|
let C = await E.go();
|
|
3059
3098
|
C != null && h.getCurrentDraw().zoomW(D.toVector3(), C.toVector3());
|
|
3060
3099
|
}
|
|
3061
|
-
async function
|
|
3100
|
+
async function ZC() {
|
|
3062
3101
|
let E = s.GetCurrentDatabase().CurrentSpace().getBoundingBox();
|
|
3063
3102
|
!E.ret || h.getCurrentDraw().zoomW(E.minPt.toVector3(), E.maxPt.toVector3());
|
|
3064
3103
|
}
|
|
3065
|
-
async function
|
|
3066
|
-
const E = new
|
|
3104
|
+
async function YC() {
|
|
3105
|
+
const E = new aD();
|
|
3067
3106
|
E.setMessage(`
|
|
3068
3107
|
\u6307\u5B9A\u504F\u79FB\u8DDD\u79BB\u6216:`);
|
|
3069
3108
|
let D = await E.go();
|
|
3070
3109
|
if (D == null)
|
|
3071
3110
|
return;
|
|
3072
|
-
let C = new
|
|
3111
|
+
let C = new O();
|
|
3073
3112
|
C.AddMcDbEntityTypes("LINE,CIRCLE,LWPOLYLINE,ARC");
|
|
3074
|
-
let B = await
|
|
3113
|
+
let B = await P.selectEnt(`
|
|
3075
3114
|
\u9009\u62E9\u504F\u79FB\u5BF9\u8C61`, C, !1);
|
|
3076
3115
|
if (B.length == 0)
|
|
3077
3116
|
return;
|
|
3078
|
-
const F = new
|
|
3117
|
+
const F = new j();
|
|
3079
3118
|
F.setMessage(`
|
|
3080
3119
|
\u6307\u5B9A\u8981\u504F\u79FB\u90A3\u4E00\u4FA7\u4E0A\u7684\u70B9:`), F.setDisableOsnap(!0);
|
|
3081
3120
|
let A = await F.go();
|
|
@@ -3089,26 +3128,26 @@ async function ZC() {
|
|
|
3089
3128
|
s.GetCurrentMxCAD().DrawEntity(i);
|
|
3090
3129
|
});
|
|
3091
3130
|
}
|
|
3092
|
-
function
|
|
3131
|
+
function JC() {
|
|
3093
3132
|
s.GetCurrentMxCAD().getImp().regen();
|
|
3094
3133
|
}
|
|
3095
|
-
async function
|
|
3096
|
-
let E = await
|
|
3134
|
+
async function $C() {
|
|
3135
|
+
let E = await P.userSelect("\u9009\u62E9\u955C\u50CF\u5BF9\u8C61");
|
|
3097
3136
|
if (E.length == 0) {
|
|
3098
3137
|
h.acutPrintf(`
|
|
3099
3138
|
\u6CA1\u6709\u80FD\u955C\u50CF\u7684\u5BF9\u8C61`);
|
|
3100
3139
|
return;
|
|
3101
3140
|
}
|
|
3102
|
-
let D, C, B =
|
|
3141
|
+
let D, C, B = ED(E);
|
|
3103
3142
|
B && (D = B.minPt, C = B.maxPt);
|
|
3104
|
-
let F = new
|
|
3143
|
+
let F = new j();
|
|
3105
3144
|
F.setMessage("\u6307\u5B9A\u57FA\u70B9");
|
|
3106
3145
|
let A = await F.go();
|
|
3107
3146
|
if (A == null)
|
|
3108
3147
|
return;
|
|
3109
3148
|
F.setMessage("\u6307\u5B9A\u955C\u5411\u70B9"), F.setBasePt(A), F.setUseBasePt(!0), F.setUserDraw((e, i) => {
|
|
3110
3149
|
if (D && C) {
|
|
3111
|
-
let r = new
|
|
3150
|
+
let r = new S();
|
|
3112
3151
|
r.setMirror(A, e);
|
|
3113
3152
|
let n = new o(D.x, C.y, 0), u = new o(C.x, D.y, 0), l = new o(n.x, u.y, 0), c = new o(u.x, n.y, 0);
|
|
3114
3153
|
n.transformBy(r), u.transformBy(r), l.transformBy(r), c.transformBy(r), i.drawLine(c.toVector3(), n.toVector3()), i.drawLine(n.toVector3(), l.toVector3()), i.drawLine(l.toVector3(), u.toVector3()), i.drawLine(u.toVector3(), c.toVector3());
|
|
@@ -3125,8 +3164,8 @@ async function JC() {
|
|
|
3125
3164
|
!i || (i.Mirror(A, t), s.GetCurrentMxCAD().DrawEntity(i));
|
|
3126
3165
|
}
|
|
3127
3166
|
}
|
|
3128
|
-
async function
|
|
3129
|
-
let E = new
|
|
3167
|
+
async function XC() {
|
|
3168
|
+
let E = new aD();
|
|
3130
3169
|
E.setMessage("\u6307\u5B9A\u7B2C\u4E00\u4E2A\u5012\u89D2\u8DDD\u79BB");
|
|
3131
3170
|
let D = await E.go();
|
|
3132
3171
|
if (!D)
|
|
@@ -3135,50 +3174,50 @@ async function YC() {
|
|
|
3135
3174
|
let C = await E.go();
|
|
3136
3175
|
if (!C)
|
|
3137
3176
|
return;
|
|
3138
|
-
let B = new
|
|
3177
|
+
let B = new O();
|
|
3139
3178
|
B.AddMcDbEntityTypes("LINE,LWPOLYLINE");
|
|
3140
|
-
let F = new
|
|
3179
|
+
let F = new J();
|
|
3141
3180
|
F.setFilter(B), F.setMessage("\u9009\u62E9\u7B2C\u4E00\u6761\u76F4\u7EBF");
|
|
3142
3181
|
let A = await F.go(), t = F.pickPoint();
|
|
3143
3182
|
if (!A.isValid())
|
|
3144
3183
|
return;
|
|
3145
3184
|
A.getMcDbEntity()?.highlight(!0);
|
|
3146
|
-
let e = new
|
|
3185
|
+
let e = new J();
|
|
3147
3186
|
e.setFilter(B), e.setMessage("\u9009\u62E9\u7B2C\u4E8C\u6761\u76F4\u7EBF");
|
|
3148
3187
|
let i = await e.go(), r = e.pickPoint();
|
|
3149
|
-
!i.isValid() || (A.getMcDbEntity()?.highlight(!1),
|
|
3188
|
+
!i.isValid() || (A.getMcDbEntity()?.highlight(!1), P.MxCADAssist.MxChamfer(A.id, i.id, t.x, t.y, r.x, r.y, D, C, !0));
|
|
3150
3189
|
}
|
|
3151
|
-
async function
|
|
3152
|
-
let E = new
|
|
3190
|
+
async function QC() {
|
|
3191
|
+
let E = new aD();
|
|
3153
3192
|
E.setMessage("\u6307\u5B9A\u5012\u5706\u89D2\u534A\u5F84");
|
|
3154
3193
|
let D = await E.go();
|
|
3155
3194
|
if (!D)
|
|
3156
3195
|
return;
|
|
3157
|
-
let C = new
|
|
3196
|
+
let C = new O();
|
|
3158
3197
|
C.AddMcDbEntityTypes("LINE,LWPOLYLINE");
|
|
3159
|
-
let B = new
|
|
3198
|
+
let B = new J();
|
|
3160
3199
|
B.setFilter(C), B.setMessage("\u9009\u62E9\u7B2C\u4E00\u6761\u76F4\u7EBF");
|
|
3161
3200
|
let F = await B.go(), A = B.pickPoint();
|
|
3162
3201
|
if (!F.isValid())
|
|
3163
3202
|
return;
|
|
3164
3203
|
F.getMcDbEntity()?.highlight(!0);
|
|
3165
|
-
let t = new
|
|
3204
|
+
let t = new J();
|
|
3166
3205
|
t.setFilter(C), t.setMessage("\u9009\u62E9\u7B2C\u4E8C\u6761\u76F4\u7EBF");
|
|
3167
3206
|
let e = await t.go(), i = t.pickPoint();
|
|
3168
|
-
!e.isValid() || (F.getMcDbEntity()?.highlight(!1),
|
|
3207
|
+
!e.isValid() || (F.getMcDbEntity()?.highlight(!1), P.MxCADAssist.MxFillet(F.id, e.id, A.x, A.y, i.x, i.y, D, !0));
|
|
3169
3208
|
}
|
|
3170
|
-
async function
|
|
3171
|
-
let E = new
|
|
3209
|
+
async function D9() {
|
|
3210
|
+
let E = new O();
|
|
3172
3211
|
E.AddMcDbEntityTypes("LINE,LWPOLYLINE,ELLIPSE,ARC,CIRCLE,SPLINE,XLINE");
|
|
3173
|
-
let D = await
|
|
3212
|
+
let D = await P.userSelect("\u9009\u62E9\u5BF9\u8C61", E);
|
|
3174
3213
|
if (D.length == 0)
|
|
3175
3214
|
return;
|
|
3176
|
-
let C = new
|
|
3215
|
+
let C = new Q();
|
|
3177
3216
|
C.copyFormAryId(D);
|
|
3178
3217
|
let B = new s.mxcadassemblyimp.MxDrawTrimAssist();
|
|
3179
3218
|
if (!!B.Init(C.imp)) {
|
|
3180
3219
|
for (; ; ) {
|
|
3181
|
-
let F = new
|
|
3220
|
+
let F = new z();
|
|
3182
3221
|
if (F.isWhileSelect = !1, F.isSelectHighlight = !1, !await F.userSelect("\u9009\u62E9\u526A\u5207\u5BF9\u8C61", E))
|
|
3183
3222
|
break;
|
|
3184
3223
|
let A = F.getIds();
|
|
@@ -3190,19 +3229,101 @@ async function QC() {
|
|
|
3190
3229
|
B.UnInit();
|
|
3191
3230
|
}
|
|
3192
3231
|
}
|
|
3232
|
+
async function C9() {
|
|
3233
|
+
let E = new O();
|
|
3234
|
+
E.AddMcDbEntityTypes("LINE,LWPOLYLINE,ARC");
|
|
3235
|
+
let D = await P.userSelect("\u9009\u62E9\u5BF9\u8C61", E);
|
|
3236
|
+
if (D.length == 0)
|
|
3237
|
+
return;
|
|
3238
|
+
let C = new Q();
|
|
3239
|
+
C.copyFormAryId(D);
|
|
3240
|
+
let B = new s.mxcadassemblyimp.MxDrawExtendAssist();
|
|
3241
|
+
if (!!B.Init(C.imp)) {
|
|
3242
|
+
for (; ; ) {
|
|
3243
|
+
let F = new z();
|
|
3244
|
+
if (F.isWhileSelect = !1, F.isSelectHighlight = !1, !await F.userSelect("\u9009\u62E9\u8981\u5EF6\u4F38\u7684\u5BF9\u8C61", E))
|
|
3245
|
+
break;
|
|
3246
|
+
let A = F.getIds();
|
|
3247
|
+
if (A.length == 0)
|
|
3248
|
+
continue;
|
|
3249
|
+
let t = F.getSelectPoint();
|
|
3250
|
+
C.copyFormAryId(A), B.DoExtend(C.imp, t.pt1.x, t.pt1.y, t.pt2.x, t.pt2.y);
|
|
3251
|
+
}
|
|
3252
|
+
B.UnInit();
|
|
3253
|
+
}
|
|
3254
|
+
}
|
|
3255
|
+
async function B9() {
|
|
3256
|
+
let E = new O();
|
|
3257
|
+
E.AddMcDbEntityTypes("INSERT,MTEXT,ROTATEDDIMENSION,ALIGNEDDIMENSION,DIMENSION,LWPOLYLINE");
|
|
3258
|
+
let D = await P.userSelect("\u9009\u62E9\u5206\u89E3\u5BF9\u8C61", E);
|
|
3259
|
+
if (D.length == 0)
|
|
3260
|
+
return;
|
|
3261
|
+
let C = new Q();
|
|
3262
|
+
C.copyFormAryId(D), P.MxCADAssist.MxExplode(C.imp);
|
|
3263
|
+
}
|
|
3264
|
+
async function E9() {
|
|
3265
|
+
let E = new O();
|
|
3266
|
+
E.AddMcDbEntityTypes("LWPOLYLINE,ARC,LINE");
|
|
3267
|
+
let D = await P.userSelect("\u9009\u62E9\u8981\u5408\u5E76\u7684\u5BF9\u8C61", E);
|
|
3268
|
+
if (D.length == 0)
|
|
3269
|
+
return;
|
|
3270
|
+
let C = new Q();
|
|
3271
|
+
C.copyFormAryId(D), P.MxCADAssist.MxJoin(C.imp);
|
|
3272
|
+
}
|
|
3273
|
+
async function F9() {
|
|
3274
|
+
let E = new O();
|
|
3275
|
+
E.AddMcDbEntityTypes("LWPOLYLINE,ARC,LINE");
|
|
3276
|
+
let D = new J();
|
|
3277
|
+
D.setFilter(E), D.setMessage("\u9009\u62E9\u8981\u6253\u65AD\u7684\u5BF9\u8C61");
|
|
3278
|
+
let C = await D.go();
|
|
3279
|
+
if (!C.isValid())
|
|
3280
|
+
return;
|
|
3281
|
+
let B = C.getMcDbCurve();
|
|
3282
|
+
if (!B)
|
|
3283
|
+
return;
|
|
3284
|
+
B.highlight(!0);
|
|
3285
|
+
let F = new j();
|
|
3286
|
+
F.setMessage("\u6307\u5B9A\u6253\u65AD\u70B9");
|
|
3287
|
+
let A = await F.go();
|
|
3288
|
+
if (!A) {
|
|
3289
|
+
B.highlight(!1);
|
|
3290
|
+
return;
|
|
3291
|
+
}
|
|
3292
|
+
let t = B.getClosestPointTo(A, !1);
|
|
3293
|
+
if (t.ret != 0)
|
|
3294
|
+
return;
|
|
3295
|
+
let e = B.getFirstDeriv(t.val);
|
|
3296
|
+
if (e.ret != 0)
|
|
3297
|
+
return;
|
|
3298
|
+
e.val.normalize().mult(h.viewCoordLong2Cad(5));
|
|
3299
|
+
let i = t.val.clone();
|
|
3300
|
+
i.addvec(e.val);
|
|
3301
|
+
let r = t.val.clone();
|
|
3302
|
+
r.subvec(e.val);
|
|
3303
|
+
let n = [];
|
|
3304
|
+
n.push(i), n.push(r);
|
|
3305
|
+
let u = B.splitCurves(n);
|
|
3306
|
+
if (u.empty()) {
|
|
3307
|
+
B.highlight(!1);
|
|
3308
|
+
return;
|
|
3309
|
+
}
|
|
3310
|
+
u.forEach((l, c) => {
|
|
3311
|
+
c % 2 == 0 && s.GetCurrentMxCAD().DrawEntity(l);
|
|
3312
|
+
}), B.Erase();
|
|
3313
|
+
}
|
|
3193
3314
|
h.on("init", () => {
|
|
3194
|
-
h.addCommand("Mx_Erase", EC), h.addCommand("Mx_Copy",
|
|
3315
|
+
h.addCommand("Mx_Erase", EC), h.addCommand("Mx_Copy", NC), h.addCommand("Mx_Move", HC), h.addCommand("Mx_Rotate", KC), h.addCommand("Mx_Scale", _C), h.addCommand("Mx_WindowZoom", qC), h.addCommand("Mx_ZoomE", ZC), h.addCommand("Mx_Offset", YC), h.addCommand("Mx_Regen", JC), h.addCommand("Mx_Mirror", $C), h.addCommand("Mx_Chamfer", XC), h.addCommand("Mx_Fillet", QC), h.addCommand("Mx_Trim", D9), h.addCommand("Mx_Extend", C9), h.addCommand("Mx_Explode", B9), h.addCommand("Mx_Join", E9), h.addCommand("Mx_Break", F9);
|
|
3195
3316
|
});
|
|
3196
|
-
const
|
|
3317
|
+
const A9 = async (E, D, C) => {
|
|
3197
3318
|
const { locateFile: B } = C, F = B(E + ".js");
|
|
3198
|
-
return await
|
|
3319
|
+
return await YD(F), await globalThis[D](C);
|
|
3199
3320
|
};
|
|
3200
|
-
function
|
|
3321
|
+
function t9(E) {
|
|
3201
3322
|
return typeof ResizeObserver == "function" ? new ResizeObserver(E) : null;
|
|
3202
3323
|
}
|
|
3203
|
-
function
|
|
3324
|
+
function e9(E, D) {
|
|
3204
3325
|
const C = () => requestAnimationFrame(D);
|
|
3205
|
-
let B =
|
|
3326
|
+
let B = t9(C);
|
|
3206
3327
|
if (B) {
|
|
3207
3328
|
B.observe(E);
|
|
3208
3329
|
return;
|
|
@@ -3212,7 +3333,7 @@ function B9(E, D) {
|
|
|
3212
3333
|
return;
|
|
3213
3334
|
}
|
|
3214
3335
|
}
|
|
3215
|
-
function
|
|
3336
|
+
function i9(E, D) {
|
|
3216
3337
|
let C = null;
|
|
3217
3338
|
return function(...B) {
|
|
3218
3339
|
C || (C = setTimeout(() => {
|
|
@@ -3220,7 +3341,7 @@ function E9(E, D) {
|
|
|
3220
3341
|
}, D));
|
|
3221
3342
|
};
|
|
3222
3343
|
}
|
|
3223
|
-
class
|
|
3344
|
+
class X {
|
|
3224
3345
|
static onloadWasmMxDraw3dModel;
|
|
3225
3346
|
canvas;
|
|
3226
3347
|
constructor(D) {
|
|
@@ -3230,7 +3351,7 @@ class Y {
|
|
|
3230
3351
|
c = Math.max(A, c), a = Math.max(t, a), this.canvas.style.width = c + 1 + "px", this.canvas.style.height = a + "px";
|
|
3231
3352
|
const m = window.devicePixelRatio || 1;
|
|
3232
3353
|
this.canvas.width = c * m, this.canvas.height = a * m;
|
|
3233
|
-
}, B =
|
|
3354
|
+
}, B = i9(C, 50), {
|
|
3234
3355
|
canvas: F,
|
|
3235
3356
|
minWidth: A = 300,
|
|
3236
3357
|
minHeight: t = 300,
|
|
@@ -3243,11 +3364,11 @@ class Y {
|
|
|
3243
3364
|
this[u] = i[u];
|
|
3244
3365
|
if (this.canvas instanceof HTMLCanvasElement) {
|
|
3245
3366
|
const u = this.canvas.parentElement || document.body;
|
|
3246
|
-
|
|
3367
|
+
e9(u, e);
|
|
3247
3368
|
} else
|
|
3248
3369
|
console.error("createMxDraw3d canvas \u53C2\u6570\u4E0D\u6B63\u786E \u65E0\u6CD5\u83B7\u53D6\u5230canvas\u5143\u7D20");
|
|
3249
|
-
window.onresize = C, C(),
|
|
3250
|
-
|
|
3370
|
+
window.onresize = C, C(), A9("mxdraw3d_min", "mxdraw3d", this).then(() => {
|
|
3371
|
+
X.onloadWasmMxDraw3dModel && X.onloadWasmMxDraw3dModel(this), this.updateCanvasSize = e, this.open3DFile = (u) => {
|
|
3251
3372
|
const l = new FileReader();
|
|
3252
3373
|
l.onload = () => {
|
|
3253
3374
|
if (!!l.result && l.result instanceof ArrayBuffer) {
|
|
@@ -3260,12 +3381,12 @@ class Y {
|
|
|
3260
3381
|
});
|
|
3261
3382
|
}
|
|
3262
3383
|
}
|
|
3263
|
-
function
|
|
3384
|
+
function r9(E, D) {
|
|
3264
3385
|
return new Promise(async (C, B) => {
|
|
3265
3386
|
try {
|
|
3266
|
-
E.locateFile || (E.locateFile =
|
|
3267
|
-
const F = new
|
|
3268
|
-
|
|
3387
|
+
E.locateFile || (E.locateFile = kC);
|
|
3388
|
+
const F = new X(E);
|
|
3389
|
+
X.onloadWasmMxDraw3dModel = () => {
|
|
3269
3390
|
C(F), D && D(F);
|
|
3270
3391
|
};
|
|
3271
3392
|
} catch (F) {
|
|
@@ -3273,159 +3394,161 @@ function F9(E, D) {
|
|
|
3273
3394
|
}
|
|
3274
3395
|
});
|
|
3275
3396
|
}
|
|
3276
|
-
const
|
|
3397
|
+
const n9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3277
3398
|
__proto__: null,
|
|
3278
3399
|
b64Encode: OD,
|
|
3279
|
-
b64Decode:
|
|
3400
|
+
b64Decode: ID,
|
|
3280
3401
|
saveAsFileDialog: vD,
|
|
3281
|
-
downloadFile:
|
|
3402
|
+
downloadFile: SD,
|
|
3282
3403
|
downloadFileFromUrl: jD,
|
|
3283
|
-
MxTools:
|
|
3404
|
+
MxTools: CD,
|
|
3284
3405
|
McGePoint3d: o,
|
|
3285
3406
|
McGeVector3d: y,
|
|
3286
|
-
McGeMatrix3d:
|
|
3287
|
-
McGeLongArray:
|
|
3407
|
+
McGeMatrix3d: S,
|
|
3408
|
+
McGeLongArray: Q,
|
|
3288
3409
|
McGeStringArray: GD,
|
|
3289
3410
|
McGePoint3dArray: pC,
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3411
|
+
MdGeDoubleArray: dC,
|
|
3412
|
+
getFilterImp: _,
|
|
3413
|
+
MxCADResbuf: O,
|
|
3414
|
+
MxCADUtilityClass: KD,
|
|
3415
|
+
MxCADUtility: P,
|
|
3294
3416
|
MxCADSelectionSetStatus: _D,
|
|
3295
|
-
MxCADSelectionSet:
|
|
3417
|
+
MxCADSelectionSet: z,
|
|
3296
3418
|
MxCADUiPrBase: K,
|
|
3297
|
-
MxCADUiPrPoint:
|
|
3298
|
-
MxCADUiPrDist:
|
|
3299
|
-
MxCADUiPrAngle:
|
|
3300
|
-
MxCADUiPrInt:
|
|
3301
|
-
MxCADUiPrKeyWord:
|
|
3302
|
-
MxCADUiPrString:
|
|
3303
|
-
MxCADUiPrEntity:
|
|
3304
|
-
McRxObject:
|
|
3305
|
-
McObjectIdType:
|
|
3306
|
-
McObjectId:
|
|
3307
|
-
McDbObject:
|
|
3308
|
-
McDbObjectArray:
|
|
3419
|
+
MxCADUiPrPoint: j,
|
|
3420
|
+
MxCADUiPrDist: aD,
|
|
3421
|
+
MxCADUiPrAngle: wC,
|
|
3422
|
+
MxCADUiPrInt: fC,
|
|
3423
|
+
MxCADUiPrKeyWord: xC,
|
|
3424
|
+
MxCADUiPrString: bC,
|
|
3425
|
+
MxCADUiPrEntity: J,
|
|
3426
|
+
McRxObject: q,
|
|
3427
|
+
McObjectIdType: R,
|
|
3428
|
+
McObjectId: L,
|
|
3429
|
+
McDbObject: W,
|
|
3430
|
+
McDbObjectArray: tD,
|
|
3309
3431
|
get McDb() {
|
|
3310
|
-
return
|
|
3432
|
+
return pD;
|
|
3311
3433
|
},
|
|
3312
|
-
McCmColor:
|
|
3313
|
-
McDbLayerTableRecord:
|
|
3434
|
+
McCmColor: Z,
|
|
3435
|
+
McDbLayerTableRecord: gC,
|
|
3314
3436
|
McDbLayerTable: VD,
|
|
3315
3437
|
McDbLinetypeTable: WD,
|
|
3316
3438
|
McDbTextStyleTable: UD,
|
|
3317
3439
|
McDbDatabase: fD,
|
|
3318
3440
|
McDbBlockTableRecordIterator: zD,
|
|
3319
|
-
McDbBlockTableRecord:
|
|
3320
|
-
McDbBlockTableIterator:
|
|
3321
|
-
McDbBlockTable:
|
|
3322
|
-
McDbEntity:
|
|
3323
|
-
McDbCurve:
|
|
3324
|
-
McDbLine:
|
|
3325
|
-
McDbText:
|
|
3326
|
-
McDbMText:
|
|
3327
|
-
McDbCircle:
|
|
3328
|
-
McDbPolyline:
|
|
3329
|
-
McDbBlockReference:
|
|
3441
|
+
McDbBlockTableRecord: nD,
|
|
3442
|
+
McDbBlockTableIterator: ND,
|
|
3443
|
+
McDbBlockTable: HD,
|
|
3444
|
+
McDbEntity: U,
|
|
3445
|
+
McDbCurve: H,
|
|
3446
|
+
McDbLine: eD,
|
|
3447
|
+
McDbText: dD,
|
|
3448
|
+
McDbMText: iD,
|
|
3449
|
+
McDbCircle: N,
|
|
3450
|
+
McDbPolyline: rD,
|
|
3451
|
+
McDbBlockReference: hD,
|
|
3330
3452
|
McDbDimension: xD,
|
|
3331
|
-
McDbAlignedDimension:
|
|
3332
|
-
McDbRotatedDimension:
|
|
3333
|
-
McDbArc:
|
|
3334
|
-
McDbEllipse:
|
|
3453
|
+
McDbAlignedDimension: yD,
|
|
3454
|
+
McDbRotatedDimension: gD,
|
|
3455
|
+
McDbArc: sD,
|
|
3456
|
+
McDbEllipse: oD,
|
|
3335
3457
|
McDbPoint: bD,
|
|
3336
|
-
McObject:
|
|
3458
|
+
McObject: $,
|
|
3337
3459
|
McAppType: qD,
|
|
3338
3460
|
MxCppType: ZD,
|
|
3339
3461
|
get MxCpp() {
|
|
3340
3462
|
return s;
|
|
3341
3463
|
},
|
|
3342
3464
|
loadMxCADassembly: JD,
|
|
3343
|
-
createMxCad:
|
|
3344
|
-
drawText:
|
|
3345
|
-
drawCircle:
|
|
3465
|
+
createMxCad: IC,
|
|
3466
|
+
drawText: vC,
|
|
3467
|
+
drawCircle: $D,
|
|
3346
3468
|
drawLine: XD,
|
|
3347
|
-
drawMText:
|
|
3469
|
+
drawMText: GC,
|
|
3348
3470
|
drawPolyLine: QD,
|
|
3349
3471
|
drawPolygon: DC,
|
|
3350
3472
|
drawArc: CC,
|
|
3351
3473
|
drawEllipticalArc: BC,
|
|
3352
3474
|
Mx_Erase: EC,
|
|
3353
|
-
MxDraw3d:
|
|
3354
|
-
loadMxCADassembly3d:
|
|
3475
|
+
MxDraw3d: X,
|
|
3476
|
+
loadMxCADassembly3d: r9
|
|
3355
3477
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
3356
3478
|
export {
|
|
3357
3479
|
qD as McAppType,
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3364
|
-
|
|
3365
|
-
|
|
3480
|
+
Z as McCmColor,
|
|
3481
|
+
pD as McDb,
|
|
3482
|
+
yD as McDbAlignedDimension,
|
|
3483
|
+
sD as McDbArc,
|
|
3484
|
+
hD as McDbBlockReference,
|
|
3485
|
+
HD as McDbBlockTable,
|
|
3486
|
+
ND as McDbBlockTableIterator,
|
|
3487
|
+
nD as McDbBlockTableRecord,
|
|
3366
3488
|
zD as McDbBlockTableRecordIterator,
|
|
3367
|
-
|
|
3368
|
-
|
|
3489
|
+
N as McDbCircle,
|
|
3490
|
+
H as McDbCurve,
|
|
3369
3491
|
fD as McDbDatabase,
|
|
3370
3492
|
xD as McDbDimension,
|
|
3371
|
-
|
|
3372
|
-
|
|
3493
|
+
oD as McDbEllipse,
|
|
3494
|
+
U as McDbEntity,
|
|
3373
3495
|
VD as McDbLayerTable,
|
|
3374
|
-
|
|
3375
|
-
|
|
3496
|
+
gC as McDbLayerTableRecord,
|
|
3497
|
+
eD as McDbLine,
|
|
3376
3498
|
WD as McDbLinetypeTable,
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3499
|
+
iD as McDbMText,
|
|
3500
|
+
W as McDbObject,
|
|
3501
|
+
tD as McDbObjectArray,
|
|
3380
3502
|
bD as McDbPoint,
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3503
|
+
rD as McDbPolyline,
|
|
3504
|
+
gD as McDbRotatedDimension,
|
|
3505
|
+
dD as McDbText,
|
|
3384
3506
|
UD as McDbTextStyleTable,
|
|
3385
|
-
|
|
3386
|
-
|
|
3507
|
+
Q as McGeLongArray,
|
|
3508
|
+
S as McGeMatrix3d,
|
|
3387
3509
|
o as McGePoint3d,
|
|
3388
3510
|
pC as McGePoint3dArray,
|
|
3389
3511
|
GD as McGeStringArray,
|
|
3390
3512
|
y as McGeVector3d,
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3513
|
+
$ as McObject,
|
|
3514
|
+
L as McObjectId,
|
|
3515
|
+
R as McObjectIdType,
|
|
3516
|
+
q as McRxObject,
|
|
3517
|
+
dC as MdGeDoubleArray,
|
|
3518
|
+
O as MxCADResbuf,
|
|
3519
|
+
z as MxCADSelectionSet,
|
|
3397
3520
|
_D as MxCADSelectionSetStatus,
|
|
3398
|
-
|
|
3521
|
+
wC as MxCADUiPrAngle,
|
|
3399
3522
|
K as MxCADUiPrBase,
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3523
|
+
aD as MxCADUiPrDist,
|
|
3524
|
+
J as MxCADUiPrEntity,
|
|
3525
|
+
fC as MxCADUiPrInt,
|
|
3526
|
+
xC as MxCADUiPrKeyWord,
|
|
3527
|
+
j as MxCADUiPrPoint,
|
|
3528
|
+
bC as MxCADUiPrString,
|
|
3529
|
+
P as MxCADUtility,
|
|
3530
|
+
KD as MxCADUtilityClass,
|
|
3408
3531
|
s as MxCpp,
|
|
3409
3532
|
ZD as MxCppType,
|
|
3410
|
-
|
|
3411
|
-
|
|
3533
|
+
X as MxDraw3d,
|
|
3534
|
+
CD as MxTools,
|
|
3412
3535
|
EC as Mx_Erase,
|
|
3413
|
-
|
|
3536
|
+
ID as b64Decode,
|
|
3414
3537
|
OD as b64Encode,
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3538
|
+
IC as createMxCad,
|
|
3539
|
+
n9 as default,
|
|
3540
|
+
SD as downloadFile,
|
|
3418
3541
|
jD as downloadFileFromUrl,
|
|
3419
3542
|
CC as drawArc,
|
|
3420
|
-
|
|
3543
|
+
$D as drawCircle,
|
|
3421
3544
|
BC as drawEllipticalArc,
|
|
3422
3545
|
XD as drawLine,
|
|
3423
|
-
|
|
3546
|
+
GC as drawMText,
|
|
3424
3547
|
QD as drawPolyLine,
|
|
3425
3548
|
DC as drawPolygon,
|
|
3426
|
-
|
|
3427
|
-
|
|
3549
|
+
vC as drawText,
|
|
3550
|
+
_ as getFilterImp,
|
|
3428
3551
|
JD as loadMxCADassembly,
|
|
3429
|
-
|
|
3552
|
+
r9 as loadMxCADassembly3d,
|
|
3430
3553
|
vD as saveAsFileDialog
|
|
3431
3554
|
};
|