mxcad 1.0.23 → 1.0.25
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 +39 -1
- package/dist/mxcad.es.js +842 -773
- package/dist/mxcad.umd.js +38 -38
- package/dist/mxdrawassembly_min.wasm +0 -0
- package/package.json +3 -3
package/dist/mxcad.es.js
CHANGED
|
@@ -41,17 +41,17 @@ async function drawText() {
|
|
|
41
41
|
class MxDbCircle$1 extends MxDbCircleShape {
|
|
42
42
|
getGripPoints() {
|
|
43
43
|
const { x: r, y: F, z: i } = this.center;
|
|
44
|
-
let o = new THREE.Vector3(r, F + this.radius, i), s = new THREE.Vector3(r, F - this.radius, i), _ = new THREE.Vector3(r - this.radius, F, i),
|
|
45
|
-
return [this.center, o, s, _,
|
|
44
|
+
let o = new THREE.Vector3(r, F + this.radius, i), s = new THREE.Vector3(r, F - this.radius, i), _ = new THREE.Vector3(r - this.radius, F, i), l = new THREE.Vector3(r + this.radius, F, i);
|
|
45
|
+
return [this.center, o, s, _, l];
|
|
46
46
|
}
|
|
47
47
|
moveGripPointsAt(r, F) {
|
|
48
|
-
const [i, o, s, _,
|
|
49
|
-
return r === 0 && (this.center = i.add(F)), r === 1 && (this.radius = o.add(F).distanceTo(this.center)), r === 2 && (this.radius = s.add(F).distanceTo(this.center)), r === 3 && (this.radius = _.add(F).distanceTo(this.center)), r === 4 && (this.radius =
|
|
48
|
+
const [i, o, s, _, l] = this.getGripPoints();
|
|
49
|
+
return r === 0 && (this.center = i.add(F)), r === 1 && (this.radius = o.add(F).distanceTo(this.center)), r === 2 && (this.radius = s.add(F).distanceTo(this.center)), r === 3 && (this.radius = _.add(F).distanceTo(this.center)), r === 4 && (this.radius = l.add(F).distanceTo(this.center)), !0;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
const threePointsToDetermineTheCenterOfTheCircle = (e) => {
|
|
53
|
-
const [r, F, i] = e, { x: o, y: s, z: _ } = r, { x:
|
|
54
|
-
return new THREE.Vector3(
|
|
53
|
+
const [r, F, i] = e, { x: o, y: s, z: _ } = r, { x: l, y: m, z: b } = F, { x: y, y: v, z: x } = i, d = s * b - m * _ - s * x + v * _ + m * x - v * b, g = -(o * b - l * _ - o * x + y * _ + l * x - y * b), h = o * m - l * s - o * v + y * s + l * v - y * m, w = -(o * m * x - o * v * b - l * s * x + l * v * _ + y * s * b - y * m * _), f = 2 * (l - o), L = 2 * (m - s), j = 2 * (b - _), k = o * o + s * s + _ * _ - l * l - m * m - b * b, I = 2 * (y - o), N = 2 * (v - s), S = 2 * (x - _), J = o * o + s * s + _ * _ - y * y - v * v - x * x, $ = -(g * j * J - g * S * k - L * h * J + L * S * w + N * h * k - N * j * w) / (d * L * S - d * N * j - f * g * S + f * N * h + I * g * j - I * L * h), q = (d * j * J - d * S * k - f * h * J + f * S * w + I * h * k - I * j * w) / (d * L * S - d * N * j - f * g * S + f * N * h + I * g * j - I * L * h), _e = -(d * L * J - d * N * k - f * g * J + f * N * w + I * g * k - I * L * w) / (d * L * S - d * N * j - f * g * S + f * N * h + I * g * j - I * L * h);
|
|
54
|
+
return new THREE.Vector3($, q, _e);
|
|
55
55
|
};
|
|
56
56
|
function drawCircle() {
|
|
57
57
|
const e = new MrxDbgUiPrPoint();
|
|
@@ -60,13 +60,13 @@ function drawCircle() {
|
|
|
60
60
|
let F = 0, i = "default", o = !0;
|
|
61
61
|
const s = () => {
|
|
62
62
|
e.setUserDraw(
|
|
63
|
-
(
|
|
64
|
-
r.radius = o ? r.center.distanceTo(
|
|
63
|
+
(d, g) => {
|
|
64
|
+
r.radius = o ? r.center.distanceTo(d) : r.center.distanceTo(d) / 2, g.drawCustomEntity(r), g.drawLine(r.center, d);
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
}, _ = (
|
|
67
|
+
}, _ = (d) => {
|
|
68
68
|
if (i === "default") {
|
|
69
|
-
if (
|
|
69
|
+
if (d === MrxDbgUiPrBaseReturn.kOk) {
|
|
70
70
|
if (F === 0)
|
|
71
71
|
e.setMessage(`
|
|
72
72
|
\u6307\u5B9A\u5706\u7684\u534A\u5F84:`), e.setKeyWords("[\u76F4\u5F84(D)]"), r.center = e.value(), s();
|
|
@@ -74,50 +74,50 @@ function drawCircle() {
|
|
|
74
74
|
return MxFun.getCurrentDraw().addMxEntity(r), !0;
|
|
75
75
|
F++;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
d === MrxDbgUiPrBaseReturn.kKeyWord && e.isKeyWordPicked("D") && (o = !1, s(), e.setMessage(`
|
|
78
78
|
\u6307\u5B9A\u5706\u7684\u76F4\u5F84:`), e.setKeyWords(""));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
let
|
|
82
|
-
const
|
|
81
|
+
let l = [];
|
|
82
|
+
const m = (d) => {
|
|
83
83
|
if (i === "3P" && (e.setMessage(`
|
|
84
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9:`),
|
|
85
|
-
if (F === 0 && (
|
|
86
|
-
|
|
84
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9:`), d === MrxDbgUiPrBaseReturn.kOk)) {
|
|
85
|
+
if (F === 0 && (l.push(e.value()), e.setUserDraw((g, h) => {
|
|
86
|
+
h.drawLine(l[0], g);
|
|
87
87
|
}), e.setMessage(`
|
|
88
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9:`)), F === 1 && (
|
|
89
|
-
const [
|
|
88
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9:`)), F === 1 && (l.push(e.value()), e.setUserDraw((g, h) => {
|
|
89
|
+
const [w, f] = l, L = g;
|
|
90
90
|
r.center = threePointsToDetermineTheCenterOfTheCircle([
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
]), r.radius = r.center.distanceTo(
|
|
91
|
+
w,
|
|
92
|
+
f,
|
|
93
|
+
L
|
|
94
|
+
]), r.radius = r.center.distanceTo(w), h.drawCustomEntity(r);
|
|
95
95
|
}), e.setMessage(`
|
|
96
96
|
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E09\u4E2A\u70B9:`)), F === 2)
|
|
97
|
-
return
|
|
97
|
+
return l.push(e.value()), r.center = threePointsToDetermineTheCenterOfTheCircle(l), r.radius = r.center.distanceTo(l[0]), MxFun.getCurrentDraw().addMxEntity(r), !0;
|
|
98
98
|
F++;
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
|
-
let
|
|
102
|
-
const
|
|
103
|
-
new THREE.Line3(
|
|
104
|
-
},
|
|
101
|
+
let b;
|
|
102
|
+
const y = (d, g) => {
|
|
103
|
+
new THREE.Line3(d, g).getCenter(r.center), r.radius = g.distanceTo(d) / 2;
|
|
104
|
+
}, v = (d) => {
|
|
105
105
|
if (i === "2P" && (e.setMessage(`
|
|
106
|
-
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`),
|
|
107
|
-
if (F === 0 && (
|
|
108
|
-
|
|
106
|
+
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`), d === MrxDbgUiPrBaseReturn.kOk)) {
|
|
107
|
+
if (F === 0 && (b = e.value(), e.setUserDraw((g, h) => {
|
|
108
|
+
y(b, g), h.drawCustomEntity(r), h.drawLine(b, g);
|
|
109
109
|
}), e.setMessage(`
|
|
110
110
|
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9:`)), F === 1)
|
|
111
|
-
return
|
|
111
|
+
return y(b, e.value()), MxFun.getCurrentDraw().addMxEntity(r), !0;
|
|
112
112
|
F++;
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, x = (d) => {
|
|
115
115
|
if (i === "T") {
|
|
116
116
|
if (e.setMessage(`
|
|
117
|
-
\u6307\u5B9A\u5BF9\u8C61\u4E0E\u5706\u7684\u7B2C\u4E00\u4E2A\u5207\u70B9:`),
|
|
117
|
+
\u6307\u5B9A\u5BF9\u8C61\u4E0E\u5706\u7684\u7B2C\u4E00\u4E2A\u5207\u70B9:`), d === MrxDbgUiPrBaseReturn.kOk) {
|
|
118
118
|
if (F === 0) {
|
|
119
|
-
const
|
|
120
|
-
console.log(
|
|
119
|
+
const g = e.value();
|
|
120
|
+
console.log(g), MxFun.getCurrentDraw();
|
|
121
121
|
}
|
|
122
122
|
F++;
|
|
123
123
|
}
|
|
@@ -128,18 +128,18 @@ function drawCircle() {
|
|
|
128
128
|
`
|
|
129
129
|
\u6307\u5B9A\u5706\u7684\u5706\u5FC3\u6216[\u4E09\u70B9(3P)/\u4E24\u70B9(2P)/\u5207\u70B9\u3001\u5207\u70B9\u3001\u534A\u5F84(T)]:`
|
|
130
130
|
), e.setKeyWords("3P 2P T"), e.goWhile(
|
|
131
|
-
(
|
|
132
|
-
if (
|
|
131
|
+
(d) => {
|
|
132
|
+
if (d === MrxDbgUiPrBaseReturn.kKeyWord && (e.isKeyWordPicked("3P") ? i = "3P" : e.isKeyWordPicked("2P") ? i = "2P" : e.isKeyWordPicked("T") && (i = "T")), _(d))
|
|
133
133
|
return { exit: !0 };
|
|
134
|
-
if (
|
|
134
|
+
if (m(d))
|
|
135
135
|
return { exit: !0 };
|
|
136
|
-
if (
|
|
136
|
+
if (v(d))
|
|
137
137
|
return { exit: !0 };
|
|
138
|
-
if (
|
|
138
|
+
if (x(d))
|
|
139
139
|
return { exit: !0 };
|
|
140
140
|
},
|
|
141
|
-
(
|
|
142
|
-
|
|
141
|
+
(d) => {
|
|
142
|
+
d === MrxDbgUiPrBaseReturn.kCancel && MxFun.getCurrentDraw().addMxEntity(r);
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -177,9 +177,9 @@ class MxG2312 {
|
|
|
177
177
|
try {
|
|
178
178
|
var _ = r.substr(i, 2) + r.substr(i + 3, 2);
|
|
179
179
|
i = i + 4;
|
|
180
|
-
for (var
|
|
181
|
-
if (
|
|
182
|
-
F += String.fromCharCode(
|
|
180
|
+
for (var l = -1; (l = this.z.indexOf(_, l + 1)) != -1; )
|
|
181
|
+
if (l % 4 == 0) {
|
|
182
|
+
F += String.fromCharCode(l / 4 + 19968);
|
|
183
183
|
break;
|
|
184
184
|
}
|
|
185
185
|
} catch {
|
|
@@ -440,20 +440,20 @@ class McObject {
|
|
|
440
440
|
DrawEllipse(r, F, i, o, s) {
|
|
441
441
|
return this.imp.DrawEllipse(r, F, i, o, s);
|
|
442
442
|
}
|
|
443
|
-
DrawEllipseArc(r, F, i, o, s, _,
|
|
444
|
-
return this.imp.DrawEllipseArc(r, F, i, o, s, _,
|
|
443
|
+
DrawEllipseArc(r, F, i, o, s, _, l) {
|
|
444
|
+
return this.imp.DrawEllipseArc(r, F, i, o, s, _, l);
|
|
445
445
|
}
|
|
446
446
|
DrawPoint(r, F) {
|
|
447
447
|
return this.imp.DrawPoint(r, F);
|
|
448
448
|
}
|
|
449
|
-
DrawSolid(r, F, i, o, s, _,
|
|
450
|
-
return this.imp.DrawSolid(r, F, i, o, s, _,
|
|
449
|
+
DrawSolid(r, F, i, o, s, _, l, m) {
|
|
450
|
+
return this.imp.DrawSolid(r, F, i, o, s, _, l, m);
|
|
451
451
|
}
|
|
452
|
-
DrawMText(r, F, i, o, s, _,
|
|
453
|
-
return this.imp.DrawMText(r, F, i, o, s, _,
|
|
452
|
+
DrawMText(r, F, i, o, s, _, l) {
|
|
453
|
+
return this.imp.DrawMText(r, F, i, o, s, _, l);
|
|
454
454
|
}
|
|
455
|
-
DrawText(r, F, i, o, s, _,
|
|
456
|
-
return this.imp.DrawTextDrawText(r, F, i, o, s, _,
|
|
455
|
+
DrawText(r, F, i, o, s, _, l) {
|
|
456
|
+
return this.imp.DrawTextDrawText(r, F, i, o, s, _, l);
|
|
457
457
|
}
|
|
458
458
|
DrawBlockReference(r, F, i, o, s) {
|
|
459
459
|
return this.imp.DrawBlockReference(r, F, i, o, s);
|
|
@@ -461,14 +461,14 @@ class McObject {
|
|
|
461
461
|
DrawDimAligned(r, F, i, o, s, _) {
|
|
462
462
|
return this.imp.DrawDimAligned(r, F, i, o, s, _);
|
|
463
463
|
}
|
|
464
|
-
DrawDimAngular(r, F, i, o, s, _,
|
|
465
|
-
return this.imp.DrawDimAngular(r, F, i, o, s, _,
|
|
464
|
+
DrawDimAngular(r, F, i, o, s, _, l, m) {
|
|
465
|
+
return this.imp.DrawDimAngular(r, F, i, o, s, _, l, m);
|
|
466
466
|
}
|
|
467
467
|
DrawDimDiametric(r, F, i, o, s) {
|
|
468
468
|
return this.imp.DrawDimDiametric(r, F, i, o, s);
|
|
469
469
|
}
|
|
470
|
-
DrawDimRotated(r, F, i, o, s, _,
|
|
471
|
-
return this.imp.DrawDimRotated(r, F, i, o, s, _,
|
|
470
|
+
DrawDimRotated(r, F, i, o, s, _, l) {
|
|
471
|
+
return this.imp.DrawDimRotated(r, F, i, o, s, _, l);
|
|
472
472
|
}
|
|
473
473
|
DrawDimOrdinate(r, F, i, o, s) {
|
|
474
474
|
return this.imp.DrawDimOrdinate(r, F, i, o, s);
|
|
@@ -500,6 +500,9 @@ class McObject {
|
|
|
500
500
|
DrawPathToHatch(r) {
|
|
501
501
|
return this.imp.DrawPathToHatch(r);
|
|
502
502
|
}
|
|
503
|
+
DrawEntity(r) {
|
|
504
|
+
return this.imp.DrawEntity(r.getImp());
|
|
505
|
+
}
|
|
503
506
|
ObjectIdToObject(r) {
|
|
504
507
|
return MxCpp.App.ObjectIdToObject(r);
|
|
505
508
|
}
|
|
@@ -566,9 +569,13 @@ class MxCppType {
|
|
|
566
569
|
NewMdCmColor() {
|
|
567
570
|
return new this.mxcadassemblyimp.MdCmColor();
|
|
568
571
|
}
|
|
569
|
-
NewMdGePoint3d(r) {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
+
NewMdGePoint3d(r, F) {
|
|
573
|
+
if (F && r && r.x && r.y) {
|
|
574
|
+
let o = r.z || 0;
|
|
575
|
+
r = MxFun.getCurrentDraw().docCoord2Cad(r.x, r.y, o);
|
|
576
|
+
}
|
|
577
|
+
let i = new this.mxcadassemblyimp.MdGePoint3d();
|
|
578
|
+
return r && r.x && r.y && (i.x = r.x, i.y = r.y, r.z && (i.y = r.z)), i;
|
|
572
579
|
}
|
|
573
580
|
}
|
|
574
581
|
class MdDbLine extends MdDbCurve {
|
|
@@ -588,10 +595,72 @@ class MdDbLine extends MdDbCurve {
|
|
|
588
595
|
this.imp.setEndPoint(r);
|
|
589
596
|
}
|
|
590
597
|
}
|
|
598
|
+
var McDb;
|
|
599
|
+
((e) => {
|
|
600
|
+
((r) => {
|
|
601
|
+
r[r.kTextLeft = 0] = "kTextLeft", r[r.kTextCenter = 1] = "kTextCenter", r[r.kTextRight = 2] = "kTextRight", r[r.kTextAlign = 3] = "kTextAlign", r[r.kTextMid = 4] = "kTextMid", r[r.kTextFit = 5] = "kTextFit";
|
|
602
|
+
})(e.TextHorzMode || (e.TextHorzMode = {})), ((r) => {
|
|
603
|
+
r[r.kTextBase = 0] = "kTextBase", r[r.kTextBottom = 1] = "kTextBottom", r[r.kTextVertMid = 2] = "kTextVertMid", r[r.kTextTop = 3] = "kTextTop";
|
|
604
|
+
})(e.TextVertMode || (e.TextVertMode = {}));
|
|
605
|
+
})(McDb || (McDb = {}));
|
|
591
606
|
class MdDbText extends MdDbEntity {
|
|
592
607
|
constructor(r) {
|
|
593
608
|
super(r), r || this.initTempObject(new MxCpp.mxcadassemblyimp.MdDbText());
|
|
594
609
|
}
|
|
610
|
+
get position() {
|
|
611
|
+
return this.imp.position();
|
|
612
|
+
}
|
|
613
|
+
set position(r) {
|
|
614
|
+
this.imp.setPosition(r);
|
|
615
|
+
}
|
|
616
|
+
get alignmentPoint() {
|
|
617
|
+
return this.imp.position();
|
|
618
|
+
}
|
|
619
|
+
set alignmentPoint(r) {
|
|
620
|
+
this.imp.setAlignmentPoint(r);
|
|
621
|
+
}
|
|
622
|
+
get oblique() {
|
|
623
|
+
return this.imp.oblique();
|
|
624
|
+
}
|
|
625
|
+
set oblique(r) {
|
|
626
|
+
this.imp.setOblique(r);
|
|
627
|
+
}
|
|
628
|
+
get rotation() {
|
|
629
|
+
return this.imp.rotation();
|
|
630
|
+
}
|
|
631
|
+
set rotation(r) {
|
|
632
|
+
this.imp.setRotation(r);
|
|
633
|
+
}
|
|
634
|
+
get height() {
|
|
635
|
+
return this.imp.height();
|
|
636
|
+
}
|
|
637
|
+
set height(r) {
|
|
638
|
+
this.imp.setHeight(r);
|
|
639
|
+
}
|
|
640
|
+
get widthFactor() {
|
|
641
|
+
return this.imp.widthFactor();
|
|
642
|
+
}
|
|
643
|
+
set widthFactor(r) {
|
|
644
|
+
this.imp.setWidthFactor(r);
|
|
645
|
+
}
|
|
646
|
+
get textString() {
|
|
647
|
+
return MxG2312Obj.decodeFromGb2312(this.imp.textString());
|
|
648
|
+
}
|
|
649
|
+
set textString(r) {
|
|
650
|
+
this.imp.setTextString(MxG2312Obj.encodeToGb2312(r));
|
|
651
|
+
}
|
|
652
|
+
get horizontalMode() {
|
|
653
|
+
return this.imp.horizontalMode();
|
|
654
|
+
}
|
|
655
|
+
set horizontalMode(r) {
|
|
656
|
+
this.imp.setHorizontalMode(r);
|
|
657
|
+
}
|
|
658
|
+
get verticalMode() {
|
|
659
|
+
return this.imp.verticalMode();
|
|
660
|
+
}
|
|
661
|
+
set verticalMode(r) {
|
|
662
|
+
this.imp.setVerticalMode(r);
|
|
663
|
+
}
|
|
595
664
|
}
|
|
596
665
|
const stopRunCommand = () => store.state.MxFun.stopRunCommand();
|
|
597
666
|
function angleTo(e, r, F, i) {
|
|
@@ -606,8 +675,8 @@ async function drawLine() {
|
|
|
606
675
|
\u6307\u5B9A\u7B2C\u4E00\u70B9:`);
|
|
607
676
|
let i = await e.go();
|
|
608
677
|
e.setUserDraw((s, _) => {
|
|
609
|
-
F.forEach((
|
|
610
|
-
_.drawCustomEntity(
|
|
678
|
+
F.forEach((l) => {
|
|
679
|
+
_.drawCustomEntity(l);
|
|
611
680
|
}), _.drawLine(i, s);
|
|
612
681
|
});
|
|
613
682
|
const o = () => {
|
|
@@ -634,20 +703,21 @@ async function Mx_TestDraw() {
|
|
|
634
703
|
const e = new MrxDbgUiPrPoint();
|
|
635
704
|
e.setMessage(`
|
|
636
705
|
\u6307\u5B9A\u4E00\u70B9:`);
|
|
637
|
-
let r = await e.go();
|
|
638
|
-
e.setUserDraw((
|
|
639
|
-
|
|
640
|
-
b.startPoint = MxCpp.NewMdGePoint3d(MxFun.getCurrentDraw().docCoord2Cad(r.x, r.y, r.z)), b.endPoint = MxCpp.NewMdGePoint3d(MxFun.getCurrentDraw().docCoord2Cad(_.x, _.y, _.z)), p.drawMcDbEntity(b);
|
|
706
|
+
let r = await e.go(), F = new MdDbLine(), i = new MdDbText();
|
|
707
|
+
i.textString = "\u6D4B\u8BD5Test", i.height = MxFun.viewCoordLong2Cad(100), F.startPoint = e.getCADValue(), e.setUserDraw((m, b) => {
|
|
708
|
+
F.endPoint = MxCpp.NewMdGePoint3d(m, !0), i.position = MxCpp.NewMdGePoint3d(m, !0), i.alignmentPoint = i.position, b.drawMcDbEntity(F), b.drawMcDbEntity(i);
|
|
641
709
|
}), e.setMessage(`
|
|
642
|
-
\u6307\u5B9A\u4E8C\u70B9:`), await e.go()
|
|
643
|
-
let
|
|
644
|
-
|
|
645
|
-
let
|
|
646
|
-
|
|
647
|
-
let
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
710
|
+
\u6307\u5B9A\u4E8C\u70B9:`), await e.go();
|
|
711
|
+
let o = MxCpp.App.GetCurrentMxCAD();
|
|
712
|
+
o.DrawEntity(i), r = MxFun.getCurrentDraw().docCoord2Cad(r.x, r.y, r.z);
|
|
713
|
+
let s = MxCpp.NewMdCmColor();
|
|
714
|
+
s.setRGB(255, 45, 66), o.DrawColor = s;
|
|
715
|
+
let _ = o.DrawLine(r.x, r.y, 0, r.x + 5e4, r.y, 0);
|
|
716
|
+
o.DrawCircle(r.x, r.y, 1e4);
|
|
717
|
+
let l = o.ObjectIdToObject(_);
|
|
718
|
+
if (l && l.ObjectName == "McDbLine") {
|
|
719
|
+
let m = l, b = m.startPoint, y = m.endPoint;
|
|
720
|
+
console.log(b.x), console.log(y.x);
|
|
651
721
|
}
|
|
652
722
|
}
|
|
653
723
|
store.events.on("MxDbEntityRegister", () => {
|
|
@@ -726,11 +796,11 @@ async function drawPolygon() {
|
|
|
726
796
|
\u5916\u5207\u4E8E\u5706(C)\u65E0\u6CD5\u7ED8\u5236:`);
|
|
727
797
|
}
|
|
728
798
|
if (s === MrxDbgUiPrBaseReturn.kKeyWord) {
|
|
729
|
-
const _ = e.keyWordPicked(),
|
|
730
|
-
!Number.isNaN(
|
|
799
|
+
const _ = e.keyWordPicked(), l = Number(_);
|
|
800
|
+
!Number.isNaN(l) && o === 0 && (r.sidesNumber = l, e.setMessage(`
|
|
731
801
|
\u6307\u5B9A\u6B63\u591A\u8FB9\u5F62\u7684\u4E2D\u5FC3\u70B9\u6216 [\u8FB9(E)]:`), e.setKeyWords("E"), o++), o === 1 && (e.isKeyWordPicked("E") && (e.setMessage(`
|
|
732
|
-
\u6307\u5B9A\u8FB9\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`), o++), e.isKeyWordPicked("I") ? (e.setUserDraw((
|
|
733
|
-
r.otherPoint =
|
|
802
|
+
\u6307\u5B9A\u8FB9\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`), o++), e.isKeyWordPicked("I") ? (e.setUserDraw((m, b) => {
|
|
803
|
+
r.otherPoint = m, b.drawCustomEntity(r);
|
|
734
804
|
}), e.setMessage(`
|
|
735
805
|
\u6307\u5B9A\u5706\u7684\u534A\u5F84:`), o++, o++, o++) : e.isKeyWordPicked("C") && (e.setMessage(`
|
|
736
806
|
\u5916\u5207\u4E8E\u5706(C)\u65E0\u6CD5\u7ED8\u5236:`), o++, o++, o++, o++));
|
|
@@ -741,8 +811,8 @@ store.events.on("MxDbEntityRegister", () => {
|
|
|
741
811
|
MxFun.addCommand("Mx_Polygon", drawPolygon);
|
|
742
812
|
});
|
|
743
813
|
function calculateArcOrigin(e, r, F) {
|
|
744
|
-
const i = e.x, o = r.x, s = F.x, _ = e.y,
|
|
745
|
-
return new THREE.Vector3(
|
|
814
|
+
const i = e.x, o = r.x, s = F.x, _ = e.y, l = r.y, m = F.y, b = i - o, y = _ - l, v = i - s, x = _ - m, d = (i * i - o * o + (_ * _ - l * l)) / 2, g = (i * i - s * s + (_ * _ - m * m)) / 2, h = y * v - b * x, w = -(x * d - y * g) / h, f = -(b * g - v * d) / h;
|
|
815
|
+
return new THREE.Vector3(w, f, 0);
|
|
746
816
|
}
|
|
747
817
|
function calculateRadiusArc(e, r) {
|
|
748
818
|
const F = e.x, i = e.y, o = r.x, s = r.y;
|
|
@@ -756,11 +826,11 @@ function judgementArcRenderDirection(e, r, F) {
|
|
|
756
826
|
}
|
|
757
827
|
function calculateArcAngle(e, r, F) {
|
|
758
828
|
const i = e.x, o = r.x, s = e.y, _ = r.y;
|
|
759
|
-
let
|
|
760
|
-
return
|
|
761
|
-
sin:
|
|
762
|
-
cos:
|
|
763
|
-
angle:
|
|
829
|
+
let l, m, b;
|
|
830
|
+
return l = (s - _) / F, m = (i - o) / F, m >= 0.99999 && (m = 0.99999), m <= -0.99999 && (m = -0.99999), b = Math.acos(m), b = b / Math.PI * 180, l < -0.05 && (b = 360 - b), {
|
|
831
|
+
sin: l,
|
|
832
|
+
cos: m,
|
|
833
|
+
angle: b
|
|
764
834
|
};
|
|
765
835
|
}
|
|
766
836
|
const createProcess = (e, r, F) => {
|
|
@@ -784,20 +854,20 @@ class MxDbCircle extends MxDbCircleShape {
|
|
|
784
854
|
}
|
|
785
855
|
getArcBulge(r, F, i) {
|
|
786
856
|
const o = r.distanceTo(F);
|
|
787
|
-
let
|
|
857
|
+
let l = 2 * new THREE.Line3(r, F).getCenter(
|
|
788
858
|
new THREE.Vector3()
|
|
789
859
|
).distanceTo(i) / o;
|
|
790
|
-
return
|
|
860
|
+
return l > 0.9999 && l < 1.0001 ? l = 1 : l < -0.9999 && l > -1.0001 ? l = -1 : Math.abs(l) < 1e-10 && (l = 0), l;
|
|
791
861
|
}
|
|
792
862
|
getArcMidPoint(r, F, i, o, s) {
|
|
793
|
-
const _ = r,
|
|
794
|
-
let
|
|
795
|
-
const
|
|
796
|
-
|
|
797
|
-
const
|
|
798
|
-
(s ? i < o : i > o) && (
|
|
799
|
-
const
|
|
800
|
-
return
|
|
863
|
+
const _ = r, l = i * Math.PI / 180;
|
|
864
|
+
let m = o * Math.PI / 180;
|
|
865
|
+
const b = new THREE.Vector3(), y = new THREE.Vector3();
|
|
866
|
+
b.x = _.x + F * Math.cos(l), b.y = _.y + F * Math.sin(l), y.x = _.x + F * Math.cos(m), y.y = _.y + F * Math.sin(m);
|
|
867
|
+
const v = F;
|
|
868
|
+
(s ? i < o : i > o) && (m += Math.PI * 2);
|
|
869
|
+
const x = new THREE.Vector3();
|
|
870
|
+
return x.x = _.x + v * Math.cos((l + m) / 2), x.y = _.y + v * Math.sin((l + m) / 2), [b, x, y, this.center];
|
|
801
871
|
}
|
|
802
872
|
getGripPoints() {
|
|
803
873
|
return this.getArcMidPoint(
|
|
@@ -818,12 +888,12 @@ class MxDbCircle extends MxDbCircleShape {
|
|
|
818
888
|
r[F].add(i);
|
|
819
889
|
const [o, s, _] = r;
|
|
820
890
|
this.center = calculateArcOrigin(o, _, s), this.radius = calculateRadiusArc(s, this.center);
|
|
821
|
-
const
|
|
891
|
+
const l = calculateArcAngle(o, this.center, this.radius), m = calculateArcAngle(_, this.center, this.radius), b = calculateArcAngle(s, this.center, this.radius);
|
|
822
892
|
this.clockwise = judgementArcRenderDirection(
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
), this.startAngle = THREE.MathUtils.degToRad(
|
|
893
|
+
m.angle,
|
|
894
|
+
l.angle,
|
|
895
|
+
b.angle
|
|
896
|
+
), this.startAngle = THREE.MathUtils.degToRad(l.angle), this.endAngle = THREE.MathUtils.degToRad(m.angle);
|
|
827
897
|
}
|
|
828
898
|
}
|
|
829
899
|
async function drawArc() {
|
|
@@ -837,104 +907,104 @@ async function drawArc() {
|
|
|
837
907
|
e,
|
|
838
908
|
() => {
|
|
839
909
|
F = e.value(), e.setMessage(`
|
|
840
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u7B2C\u4E8C\u4E2A\u70B9:`), e.setKeyWords("[\u5706\u5FC3(C)/\u7AEF\u70B9(E)]"), e.setUserDraw((
|
|
841
|
-
|
|
842
|
-
}),
|
|
910
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u7B2C\u4E8C\u4E2A\u70B9:`), e.setKeyWords("[\u5706\u5FC3(C)/\u7AEF\u70B9(E)]"), e.setUserDraw((w, f) => {
|
|
911
|
+
f.drawLine(F, w);
|
|
912
|
+
}), g();
|
|
843
913
|
},
|
|
844
914
|
() => {
|
|
845
915
|
if (e.isKeyWordPicked("C")) {
|
|
846
|
-
const
|
|
847
|
-
r.center = e.value(),
|
|
848
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3:`), e.setKeyWords(""),
|
|
916
|
+
const w = new MxDbCircleArc();
|
|
917
|
+
r.center = e.value(), w.center = e.value(), e.setMessage(`
|
|
918
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3:`), e.setKeyWords(""), l();
|
|
849
919
|
} else
|
|
850
920
|
return !0;
|
|
851
921
|
}
|
|
852
922
|
);
|
|
853
923
|
let _;
|
|
854
|
-
const
|
|
924
|
+
const l = createProcess(
|
|
855
925
|
e,
|
|
856
926
|
() => {
|
|
857
927
|
_ = e.value(), o = new MxDbCircleArc(), o.closed = !1, MxPaintBrush.use(o), o.center = _, r.center = _, e.setMessage(`
|
|
858
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), e.setUserDraw((
|
|
859
|
-
|
|
860
|
-
}),
|
|
928
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), e.setUserDraw((w, f) => {
|
|
929
|
+
f.drawCustomEntity(o), f.drawLine(_, w);
|
|
930
|
+
}), y();
|
|
861
931
|
},
|
|
862
932
|
() => {
|
|
863
933
|
}
|
|
864
934
|
);
|
|
865
|
-
let
|
|
866
|
-
const
|
|
935
|
+
let m, b;
|
|
936
|
+
const y = createProcess(
|
|
867
937
|
e,
|
|
868
938
|
() => {
|
|
869
|
-
|
|
939
|
+
m = e.value(), o.endPoint = m, e.setMessage(
|
|
870
940
|
`
|
|
871
941
|
\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)]:`
|
|
872
|
-
), e.setKeyWords("A L R"),
|
|
873
|
-
o.startPoint =
|
|
874
|
-
}),
|
|
942
|
+
), e.setKeyWords("A L R"), b = new MxDbLine(), b.setDashLineDisplay(!0), b.setDashArray(0.05), b.setLineWidth(2), b.setColor("#ffd30d"), b.pt1 = o.center, e.setUserDraw((w, f) => {
|
|
943
|
+
o.startPoint = w, b.pt2 = w, f.drawCustomEntity(o), f.drawCustomEntity(b);
|
|
944
|
+
}), x();
|
|
875
945
|
},
|
|
876
946
|
() => {
|
|
877
947
|
}
|
|
878
948
|
);
|
|
879
|
-
let
|
|
880
|
-
const
|
|
949
|
+
let v;
|
|
950
|
+
const x = createProcess(
|
|
881
951
|
e,
|
|
882
952
|
() => {
|
|
883
|
-
|
|
953
|
+
v = e.value(), o.startPoint = v, o.endPoint = m, MxFun.getCurrentDraw().addMxEntity(o);
|
|
884
954
|
},
|
|
885
955
|
() => {
|
|
886
956
|
if (e.isKeyWordPicked("A"))
|
|
887
957
|
return e.setMessage(
|
|
888
958
|
`
|
|
889
959
|
\u6307\u5B9A\u5706\u5F27\u7684\u5939\u89D2(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)\u6216 [\u4FEE\u6539\u534A\u5F84(R)]:`
|
|
890
|
-
), e.setKeyWords("R"), e.setUserDraw((
|
|
891
|
-
o.startPoint =
|
|
960
|
+
), e.setKeyWords("R"), e.setUserDraw((w, f) => {
|
|
961
|
+
o.startPoint = w, f.drawCustomEntity(o), f.drawCustomEntity(b);
|
|
892
962
|
}), !0;
|
|
893
963
|
if (e.isKeyWordPicked("L"))
|
|
894
964
|
return e.setMessage(
|
|
895
965
|
`
|
|
896
966
|
\u6307\u5B9A\u5706\u5F27\u7684\u5939\u89D2(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)\u6216 [\u4FEE\u6539\u534A\u5F84(R)]:`
|
|
897
|
-
), e.setKeyWords("R"), e.setUserDraw((
|
|
898
|
-
o.startPoint =
|
|
967
|
+
), e.setKeyWords("R"), e.setUserDraw((w, f) => {
|
|
968
|
+
o.startPoint = w, f.drawCustomEntity(o), f.drawCustomEntity(b);
|
|
899
969
|
}), !0;
|
|
900
970
|
if (e.isKeyWordPicked("R"))
|
|
901
971
|
e.setMessage(
|
|
902
972
|
`
|
|
903
973
|
\u6307\u5B9A\u5706\u5F27\u7684\u534A\u5F84${o.radius ? "<" + o.radius + ">" : ""}:`
|
|
904
|
-
), e.setKeyWords(""), e.setUserDraw((
|
|
905
|
-
|
|
906
|
-
}),
|
|
974
|
+
), e.setKeyWords(""), e.setUserDraw((w, f) => {
|
|
975
|
+
f.drawLine(w, o.center), o.startPoint = w, f.drawCustomEntity(o);
|
|
976
|
+
}), y();
|
|
907
977
|
else
|
|
908
978
|
return !0;
|
|
909
979
|
}
|
|
910
980
|
);
|
|
911
|
-
let
|
|
912
|
-
const
|
|
981
|
+
let d;
|
|
982
|
+
const g = createProcess(
|
|
913
983
|
e,
|
|
914
984
|
() => {
|
|
915
|
-
|
|
916
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), i = new Mx3PointArc(), i.autoClockwise = !0, i.closed = !1, MxPaintBrush.use(i), i.point1 = F, i.point3 =
|
|
917
|
-
i.point2 =
|
|
918
|
-
}),
|
|
985
|
+
d = e.value(), e.setMessage(`
|
|
986
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), i = new Mx3PointArc(), i.autoClockwise = !0, i.closed = !1, MxPaintBrush.use(i), i.point1 = F, i.point3 = d, r.center, e.setUserDraw((w, f) => {
|
|
987
|
+
i.point2 = w, f.drawCustomEntity(r);
|
|
988
|
+
}), h();
|
|
919
989
|
},
|
|
920
990
|
() => {
|
|
921
991
|
if (e.isKeyWordPicked("C"))
|
|
922
992
|
o = new MxDbCircleArc(), o.closed = !1, MxPaintBrush.use(o), e.setMessage(`
|
|
923
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), e.setKeyWords(""), e.setUserDraw((
|
|
924
|
-
o.startPoint = F,
|
|
925
|
-
}),
|
|
993
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), e.setKeyWords(""), e.setUserDraw((w, f) => {
|
|
994
|
+
o.startPoint = F, f.drawLine(w, o.startPoint);
|
|
995
|
+
}), l();
|
|
926
996
|
else if (e.isKeyWordPicked("E"))
|
|
927
997
|
o = new MxDbCircleArc(), o.closed = !1, MxPaintBrush.use(o), e.setMessage(`
|
|
928
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), e.setKeyWords(""), e.setUserDraw((
|
|
929
|
-
o.startPoint = F,
|
|
930
|
-
}),
|
|
998
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), e.setKeyWords(""), e.setUserDraw((w, f) => {
|
|
999
|
+
o.startPoint = F, f.drawLine(w, o.startPoint);
|
|
1000
|
+
}), l();
|
|
931
1001
|
else
|
|
932
1002
|
return !0;
|
|
933
1003
|
}
|
|
934
|
-
),
|
|
1004
|
+
), h = createProcess(
|
|
935
1005
|
e,
|
|
936
1006
|
() => {
|
|
937
|
-
i.point1 = F, i.point2 = e.value(), i.point3 =
|
|
1007
|
+
i.point1 = F, i.point2 = e.value(), i.point3 = d, MxFun.getCurrentDraw().addMxEntity(i);
|
|
938
1008
|
},
|
|
939
1009
|
() => {
|
|
940
1010
|
if (e.isKeyWordPicked("C"))
|
|
@@ -958,9 +1028,9 @@ function drawEllipticalArc() {
|
|
|
958
1028
|
createProcess(
|
|
959
1029
|
e,
|
|
960
1030
|
() => {
|
|
961
|
-
F = e.value(), e.setUserDraw((
|
|
962
|
-
const
|
|
963
|
-
|
|
1031
|
+
F = e.value(), e.setUserDraw((b, y) => {
|
|
1032
|
+
const v = new THREE.Line3(F, b);
|
|
1033
|
+
v.getCenter(i), r.center = i, r.xRadius = v.distance() / 2, r.yRadius = r.xRadius, r.rotation = angleTo(b.x, b.y, i.x, i.y), y.drawLine(b, F);
|
|
964
1034
|
}), e.setMessage(`
|
|
965
1035
|
\u6307\u5B9A\u692D\u5706\u5F27\u8F74\u7684\u53E6\u4E00\u4E2A\u7AEF\u70B9:`), e.setKeyWords(""), s();
|
|
966
1036
|
},
|
|
@@ -970,8 +1040,8 @@ function drawEllipticalArc() {
|
|
|
970
1040
|
const s = createProcess(
|
|
971
1041
|
e,
|
|
972
1042
|
() => {
|
|
973
|
-
e.setUserDraw((
|
|
974
|
-
r.yRadius = i.distanceTo(
|
|
1043
|
+
e.setUserDraw((b, y) => {
|
|
1044
|
+
r.yRadius = i.distanceTo(b), y.drawLine(i, b), y.drawCustomEntity(r);
|
|
975
1045
|
}), e.setMessage(`
|
|
976
1046
|
\u6307\u5B9A\u53E6\u4E00\u6761\u534A\u8F74\u957F\u5EA6`), e.setKeyWords(""), _();
|
|
977
1047
|
},
|
|
@@ -981,23 +1051,23 @@ function drawEllipticalArc() {
|
|
|
981
1051
|
e,
|
|
982
1052
|
() => {
|
|
983
1053
|
e.setMessage(`
|
|
984
|
-
\u6307\u5B9A\u8D77\u59CB\u89D2\u5EA6`), e.setKeyWords(""), e.setUserDraw((
|
|
985
|
-
r.startAngle = angleTo(
|
|
986
|
-
}),
|
|
1054
|
+
\u6307\u5B9A\u8D77\u59CB\u89D2\u5EA6`), e.setKeyWords(""), e.setUserDraw((b, y) => {
|
|
1055
|
+
r.startAngle = angleTo(b.x, b.y, i.x, i.y) - r.rotation, y.drawLine(i, b), y.drawCustomEntity(r);
|
|
1056
|
+
}), l();
|
|
987
1057
|
},
|
|
988
1058
|
() => {
|
|
989
1059
|
}
|
|
990
|
-
),
|
|
1060
|
+
), l = createProcess(
|
|
991
1061
|
e,
|
|
992
1062
|
() => {
|
|
993
|
-
e.setUserDraw((
|
|
994
|
-
r.endAngle = angleTo(
|
|
1063
|
+
e.setUserDraw((b, y) => {
|
|
1064
|
+
r.endAngle = angleTo(b.x, b.y, i.x, i.y) - r.rotation, y.drawLine(i, b), y.drawCustomEntity(r);
|
|
995
1065
|
}), e.setMessage(`
|
|
996
|
-
\u6307\u5B9A\u7EC8\u6B62\u89D2\u5EA6`), e.setKeyWords(""),
|
|
1066
|
+
\u6307\u5B9A\u7EC8\u6B62\u89D2\u5EA6`), e.setKeyWords(""), m();
|
|
997
1067
|
},
|
|
998
1068
|
() => {
|
|
999
1069
|
}
|
|
1000
|
-
),
|
|
1070
|
+
), m = createProcess(
|
|
1001
1071
|
e,
|
|
1002
1072
|
() => {
|
|
1003
1073
|
MxFun.getCurrentDraw().addMxEntity(r);
|
|
@@ -1079,7 +1149,7 @@ var mxdrawassembly = (() => {
|
|
|
1079
1149
|
return i;
|
|
1080
1150
|
}
|
|
1081
1151
|
function n(e, r) {
|
|
1082
|
-
return e ? za(
|
|
1152
|
+
return e ? za(p, e, r) : "";
|
|
1083
1153
|
}
|
|
1084
1154
|
function Aa(e, r, F, i) {
|
|
1085
1155
|
if (!(0 < i))
|
|
@@ -1089,8 +1159,8 @@ var mxdrawassembly = (() => {
|
|
|
1089
1159
|
for (var s = 0; s < e.length; ++s) {
|
|
1090
1160
|
var _ = e.charCodeAt(s);
|
|
1091
1161
|
if (55296 <= _ && 57343 >= _) {
|
|
1092
|
-
var
|
|
1093
|
-
_ = 65536 + ((_ & 1023) << 10) |
|
|
1162
|
+
var l = e.charCodeAt(++s);
|
|
1163
|
+
_ = 65536 + ((_ & 1023) << 10) | l & 1023;
|
|
1094
1164
|
}
|
|
1095
1165
|
if (127 >= _) {
|
|
1096
1166
|
if (F >= i)
|
|
@@ -1118,10 +1188,10 @@ var mxdrawassembly = (() => {
|
|
|
1118
1188
|
}
|
|
1119
1189
|
return r[F] = 0, F - o;
|
|
1120
1190
|
}
|
|
1121
|
-
var t,
|
|
1191
|
+
var t, p, Ba, u, z, A, Ca, Da;
|
|
1122
1192
|
function Ea() {
|
|
1123
1193
|
var e = va.buffer;
|
|
1124
|
-
c.HEAP8 = t = new Int8Array(e), c.HEAP16 = Ba = new Int16Array(e), c.HEAP32 = z = new Int32Array(e), c.HEAPU8 =
|
|
1194
|
+
c.HEAP8 = t = new Int8Array(e), c.HEAP16 = Ba = new Int16Array(e), c.HEAP32 = z = new Int32Array(e), c.HEAPU8 = p = new Uint8Array(e), c.HEAPU16 = u = new Uint16Array(e), c.HEAPU32 = A = new Uint32Array(e), c.HEAPF32 = Ca = new Float32Array(e), c.HEAPF64 = Da = new Float64Array(e);
|
|
1125
1195
|
}
|
|
1126
1196
|
var Fa, Ga = [], Ha = [], Ia = [];
|
|
1127
1197
|
function Ja() {
|
|
@@ -1684,28 +1754,28 @@ var mxdrawassembly = (() => {
|
|
|
1684
1754
|
s.seekable = !1;
|
|
1685
1755
|
}, close: () => {
|
|
1686
1756
|
F && F.buffer && F.buffer.length && F(10);
|
|
1687
|
-
}, read: (s, _,
|
|
1688
|
-
for (var
|
|
1757
|
+
}, read: (s, _, l, m) => {
|
|
1758
|
+
for (var b = 0, y = 0; y < m; y++) {
|
|
1689
1759
|
try {
|
|
1690
|
-
var
|
|
1760
|
+
var v = r();
|
|
1691
1761
|
} catch {
|
|
1692
1762
|
throw new B(29);
|
|
1693
1763
|
}
|
|
1694
|
-
if (
|
|
1764
|
+
if (v === void 0 && b === 0)
|
|
1695
1765
|
throw new B(6);
|
|
1696
|
-
if (
|
|
1766
|
+
if (v == null)
|
|
1697
1767
|
break;
|
|
1698
|
-
|
|
1768
|
+
b++, _[l + y] = v;
|
|
1699
1769
|
}
|
|
1700
|
-
return
|
|
1701
|
-
}, write: (s, _,
|
|
1702
|
-
for (var
|
|
1770
|
+
return b && (s.node.timestamp = Date.now()), b;
|
|
1771
|
+
}, write: (s, _, l, m) => {
|
|
1772
|
+
for (var b = 0; b < m; b++)
|
|
1703
1773
|
try {
|
|
1704
|
-
F(_[
|
|
1774
|
+
F(_[l + b]);
|
|
1705
1775
|
} catch {
|
|
1706
1776
|
throw new B(29);
|
|
1707
1777
|
}
|
|
1708
|
-
return
|
|
1778
|
+
return m && (s.node.timestamp = Date.now()), b;
|
|
1709
1779
|
} }), Nb(e, i, o);
|
|
1710
1780
|
}, Wb, Yb = {}, Jb, Qb;
|
|
1711
1781
|
function Zb(e, r) {
|
|
@@ -1734,86 +1804,86 @@ var mxdrawassembly = (() => {
|
|
|
1734
1804
|
return 0 <= e ? e : 32 >= r ? 2 * Math.abs(1 << r - 1) + e : Math.pow(2, r) + e;
|
|
1735
1805
|
}
|
|
1736
1806
|
function ec(e) {
|
|
1737
|
-
for (var r = e;
|
|
1807
|
+
for (var r = e; p[r]; )
|
|
1738
1808
|
++r;
|
|
1739
1809
|
return r - e;
|
|
1740
1810
|
}
|
|
1741
1811
|
function fc(e, r) {
|
|
1742
|
-
function F(
|
|
1743
|
-
var
|
|
1744
|
-
return (
|
|
1812
|
+
function F(L) {
|
|
1813
|
+
var j = i;
|
|
1814
|
+
return (L === "double" || L === "i64") && j & 7 && (j += 4), i = j, L === "double" ? (L = Da[i >> 3], i += 8) : L == "i64" ? (L = [z[i >> 2], z[i + 4 >> 2]], i += 8) : (L = z[i >> 2], i += 4), L;
|
|
1745
1815
|
}
|
|
1746
1816
|
for (var i = r, o = [], s, _; ; ) {
|
|
1747
|
-
var
|
|
1817
|
+
var l = e;
|
|
1748
1818
|
if (s = t[e >> 0], s === 0)
|
|
1749
1819
|
break;
|
|
1750
1820
|
if (_ = t[e + 1 >> 0], s == 37) {
|
|
1751
|
-
var
|
|
1821
|
+
var m = !1, b = r = !1, y = !1, v = !1;
|
|
1752
1822
|
e:
|
|
1753
1823
|
for (; ; ) {
|
|
1754
1824
|
switch (_) {
|
|
1755
1825
|
case 43:
|
|
1756
|
-
|
|
1826
|
+
m = !0;
|
|
1757
1827
|
break;
|
|
1758
1828
|
case 45:
|
|
1759
1829
|
r = !0;
|
|
1760
1830
|
break;
|
|
1761
1831
|
case 35:
|
|
1762
|
-
|
|
1832
|
+
b = !0;
|
|
1763
1833
|
break;
|
|
1764
1834
|
case 48:
|
|
1765
|
-
if (
|
|
1835
|
+
if (y)
|
|
1766
1836
|
break e;
|
|
1767
|
-
|
|
1837
|
+
y = !0;
|
|
1768
1838
|
break;
|
|
1769
1839
|
case 32:
|
|
1770
|
-
|
|
1840
|
+
v = !0;
|
|
1771
1841
|
break;
|
|
1772
1842
|
default:
|
|
1773
1843
|
break e;
|
|
1774
1844
|
}
|
|
1775
1845
|
e++, _ = t[e + 1 >> 0];
|
|
1776
1846
|
}
|
|
1777
|
-
var
|
|
1847
|
+
var x = 0;
|
|
1778
1848
|
if (_ == 42)
|
|
1779
|
-
|
|
1849
|
+
x = F("i32"), e++, _ = t[e + 1 >> 0];
|
|
1780
1850
|
else
|
|
1781
1851
|
for (; 48 <= _ && 57 >= _; )
|
|
1782
|
-
|
|
1783
|
-
var
|
|
1852
|
+
x = 10 * x + (_ - 48), e++, _ = t[e + 1 >> 0];
|
|
1853
|
+
var d = !1, g = -1;
|
|
1784
1854
|
if (_ == 46) {
|
|
1785
|
-
if (
|
|
1786
|
-
|
|
1855
|
+
if (g = 0, d = !0, e++, _ = t[e + 1 >> 0], _ == 42)
|
|
1856
|
+
g = F("i32"), e++;
|
|
1787
1857
|
else
|
|
1788
1858
|
for (; _ = t[e + 1 >> 0], !(48 > _ || 57 < _); )
|
|
1789
|
-
|
|
1859
|
+
g = 10 * g + (_ - 48), e++;
|
|
1790
1860
|
_ = t[e + 1 >> 0];
|
|
1791
1861
|
}
|
|
1792
|
-
switch (0 >
|
|
1862
|
+
switch (0 > g && (g = 6, d = !1), String.fromCharCode(_)) {
|
|
1793
1863
|
case "h":
|
|
1794
1864
|
if (_ = t[e + 2 >> 0], _ == 104) {
|
|
1795
1865
|
e++;
|
|
1796
|
-
var
|
|
1866
|
+
var h = 1;
|
|
1797
1867
|
} else
|
|
1798
|
-
|
|
1868
|
+
h = 2;
|
|
1799
1869
|
break;
|
|
1800
1870
|
case "l":
|
|
1801
|
-
_ = t[e + 2 >> 0], _ == 108 ? (e++,
|
|
1871
|
+
_ = t[e + 2 >> 0], _ == 108 ? (e++, h = 8) : h = 4;
|
|
1802
1872
|
break;
|
|
1803
1873
|
case "L":
|
|
1804
1874
|
case "q":
|
|
1805
1875
|
case "j":
|
|
1806
|
-
|
|
1876
|
+
h = 8;
|
|
1807
1877
|
break;
|
|
1808
1878
|
case "z":
|
|
1809
1879
|
case "t":
|
|
1810
1880
|
case "I":
|
|
1811
|
-
|
|
1881
|
+
h = 4;
|
|
1812
1882
|
break;
|
|
1813
1883
|
default:
|
|
1814
|
-
|
|
1884
|
+
h = null;
|
|
1815
1885
|
}
|
|
1816
|
-
switch (
|
|
1886
|
+
switch (h && e++, _ = t[e + 1 >> 0], String.fromCharCode(_)) {
|
|
1817
1887
|
case "d":
|
|
1818
1888
|
case "i":
|
|
1819
1889
|
case "u":
|
|
@@ -1821,32 +1891,32 @@ var mxdrawassembly = (() => {
|
|
|
1821
1891
|
case "x":
|
|
1822
1892
|
case "X":
|
|
1823
1893
|
case "p":
|
|
1824
|
-
|
|
1825
|
-
var
|
|
1826
|
-
if (
|
|
1827
|
-
var
|
|
1894
|
+
l = _ == 100 || _ == 105, h = h || 4, s = F("i" + 8 * h), h == 8 && (s = _ == 117 ? (s[0] >>> 0) + 4294967296 * (s[1] >>> 0) : (s[0] >>> 0) + 4294967296 * s[1]), 4 >= h && (s = (l ? cc : dc)(s & Math.pow(256, h) - 1, 8 * h));
|
|
1895
|
+
var w = Math.abs(s);
|
|
1896
|
+
if (l = "", _ == 100 || _ == 105)
|
|
1897
|
+
var f = cc(s, 8 * h).toString(10);
|
|
1828
1898
|
else if (_ == 117)
|
|
1829
|
-
|
|
1899
|
+
f = dc(s, 8 * h).toString(10), s = Math.abs(s);
|
|
1830
1900
|
else if (_ == 111)
|
|
1831
|
-
|
|
1901
|
+
f = (b ? "0" : "") + w.toString(8);
|
|
1832
1902
|
else if (_ == 120 || _ == 88) {
|
|
1833
|
-
if (
|
|
1834
|
-
for (s = -s,
|
|
1835
|
-
|
|
1836
|
-
for (
|
|
1837
|
-
|
|
1903
|
+
if (l = b && s != 0 ? "0x" : "", 0 > s) {
|
|
1904
|
+
for (s = -s, f = (w - 1).toString(16), w = [], b = 0; b < f.length; b++)
|
|
1905
|
+
w.push((15 - parseInt(f[b], 16)).toString(16));
|
|
1906
|
+
for (f = w.join(""); f.length < 2 * h; )
|
|
1907
|
+
f = "f" + f;
|
|
1838
1908
|
} else
|
|
1839
|
-
|
|
1840
|
-
_ == 88 && (
|
|
1909
|
+
f = w.toString(16);
|
|
1910
|
+
_ == 88 && (l = l.toUpperCase(), f = f.toUpperCase());
|
|
1841
1911
|
} else
|
|
1842
|
-
_ == 112 && (
|
|
1843
|
-
if (
|
|
1844
|
-
for (;
|
|
1845
|
-
|
|
1846
|
-
for (0 <= s && (
|
|
1847
|
-
r ?
|
|
1848
|
-
|
|
1849
|
-
o.push(
|
|
1912
|
+
_ == 112 && (w === 0 ? f = "(nil)" : (l = "0x", f = w.toString(16)));
|
|
1913
|
+
if (d)
|
|
1914
|
+
for (; f.length < g; )
|
|
1915
|
+
f = "0" + f;
|
|
1916
|
+
for (0 <= s && (m ? l = "+" + l : v && (l = " " + l)), f.charAt(0) == "-" && (l = "-" + l, f = f.substr(1)); l.length + f.length < x; )
|
|
1917
|
+
r ? f += " " : y ? f = "0" + f : l = " " + l;
|
|
1918
|
+
f = l + f, f.split("").forEach(function(L) {
|
|
1919
|
+
o.push(L.charCodeAt(0));
|
|
1850
1920
|
});
|
|
1851
1921
|
break;
|
|
1852
1922
|
case "f":
|
|
@@ -1856,41 +1926,41 @@ var mxdrawassembly = (() => {
|
|
|
1856
1926
|
case "g":
|
|
1857
1927
|
case "G":
|
|
1858
1928
|
if (s = F("double"), isNaN(s))
|
|
1859
|
-
|
|
1929
|
+
f = "nan", y = !1;
|
|
1860
1930
|
else if (isFinite(s)) {
|
|
1861
|
-
if (
|
|
1862
|
-
for (; 1 <
|
|
1863
|
-
|
|
1931
|
+
if (d = !1, h = Math.min(g, 20), (_ == 103 || _ == 71) && (d = !0, g = g || 1, h = parseInt(s.toExponential(h).split("e")[1], 10), g > h && -4 <= h ? (_ = (_ == 103 ? "f" : "F").charCodeAt(0), g -= h + 1) : (_ = (_ == 103 ? "e" : "E").charCodeAt(0), g--), h = Math.min(g, 20)), _ == 101 || _ == 69 ? (f = s.toExponential(h), /[eE][-+]\d$/.test(f) && (f = f.slice(0, -1) + "0" + f.slice(-1))) : (_ == 102 || _ == 70) && (f = s.toFixed(h), s === 0 && (0 > s || s === 0 && 1 / s === -1 / 0) && (f = "-" + f)), l = f.split("e"), d && !b)
|
|
1932
|
+
for (; 1 < l[0].length && l[0].includes(".") && (l[0].slice(-1) == "0" || l[0].slice(-1) == "."); )
|
|
1933
|
+
l[0] = l[0].slice(0, -1);
|
|
1864
1934
|
else
|
|
1865
|
-
for (
|
|
1866
|
-
|
|
1867
|
-
|
|
1935
|
+
for (b && f.indexOf(".") == -1 && (l[0] += "."); g > h++; )
|
|
1936
|
+
l[0] += "0";
|
|
1937
|
+
f = l[0] + (1 < l.length ? "e" + l[1] : ""), _ == 69 && (f = f.toUpperCase()), 0 <= s && (m ? f = "+" + f : v && (f = " " + f));
|
|
1868
1938
|
} else
|
|
1869
|
-
|
|
1870
|
-
for (;
|
|
1871
|
-
|
|
1872
|
-
97 > _ && (
|
|
1873
|
-
o.push(
|
|
1939
|
+
f = (0 > s ? "-" : "") + "inf", y = !1;
|
|
1940
|
+
for (; f.length < x; )
|
|
1941
|
+
f = r ? f + " " : !y || f[0] != "-" && f[0] != "+" ? (y ? "0" : " ") + f : f[0] + "0" + f.slice(1);
|
|
1942
|
+
97 > _ && (f = f.toUpperCase()), f.split("").forEach(function(L) {
|
|
1943
|
+
o.push(L.charCodeAt(0));
|
|
1874
1944
|
});
|
|
1875
1945
|
break;
|
|
1876
1946
|
case "s":
|
|
1877
|
-
if (
|
|
1878
|
-
for (;
|
|
1947
|
+
if (y = (m = F("i8*")) ? ec(m) : 6, d && (y = Math.min(y, g)), !r)
|
|
1948
|
+
for (; y < x--; )
|
|
1879
1949
|
o.push(32);
|
|
1880
|
-
if (
|
|
1881
|
-
for (
|
|
1882
|
-
o.push(
|
|
1950
|
+
if (m)
|
|
1951
|
+
for (b = 0; b < y; b++)
|
|
1952
|
+
o.push(p[m++ >> 0]);
|
|
1883
1953
|
else
|
|
1884
1954
|
o = o.concat(gb(
|
|
1885
|
-
"(null)".substr(0,
|
|
1955
|
+
"(null)".substr(0, y),
|
|
1886
1956
|
!0
|
|
1887
1957
|
));
|
|
1888
1958
|
if (r)
|
|
1889
|
-
for (;
|
|
1959
|
+
for (; y < x--; )
|
|
1890
1960
|
o.push(32);
|
|
1891
1961
|
break;
|
|
1892
1962
|
case "c":
|
|
1893
|
-
for (r && o.push(F("i8")); 0 < --
|
|
1963
|
+
for (r && o.push(F("i8")); 0 < --x; )
|
|
1894
1964
|
o.push(32);
|
|
1895
1965
|
r || o.push(F("i8"));
|
|
1896
1966
|
break;
|
|
@@ -1901,8 +1971,8 @@ var mxdrawassembly = (() => {
|
|
|
1901
1971
|
o.push(s);
|
|
1902
1972
|
break;
|
|
1903
1973
|
default:
|
|
1904
|
-
for (
|
|
1905
|
-
o.push(t[
|
|
1974
|
+
for (b = l; b < e + 2; b++)
|
|
1975
|
+
o.push(t[b >> 0]);
|
|
1906
1976
|
}
|
|
1907
1977
|
e += 2;
|
|
1908
1978
|
} else
|
|
@@ -1930,8 +2000,8 @@ var mxdrawassembly = (() => {
|
|
|
1930
2000
|
if (!r.stack) {
|
|
1931
2001
|
try {
|
|
1932
2002
|
throw Error();
|
|
1933
|
-
} catch (
|
|
1934
|
-
r =
|
|
2003
|
+
} catch (g) {
|
|
2004
|
+
r = g;
|
|
1935
2005
|
}
|
|
1936
2006
|
if (!r.stack) {
|
|
1937
2007
|
r = "(no stack trace available)";
|
|
@@ -1949,31 +2019,31 @@ var mxdrawassembly = (() => {
|
|
|
1949
2019
|
var i = r.split(`
|
|
1950
2020
|
`);
|
|
1951
2021
|
r = "";
|
|
1952
|
-
var o = RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"), s = RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"), _ = RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)"),
|
|
1953
|
-
for (
|
|
1954
|
-
var
|
|
1955
|
-
if ((
|
|
1956
|
-
|
|
1957
|
-
var
|
|
1958
|
-
|
|
1959
|
-
} else if ((
|
|
1960
|
-
|
|
2022
|
+
var o = RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"), s = RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"), _ = RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)"), l;
|
|
2023
|
+
for (l in i) {
|
|
2024
|
+
var m = i[l], b;
|
|
2025
|
+
if ((b = _.exec(m)) && b.length == 5) {
|
|
2026
|
+
m = b[1];
|
|
2027
|
+
var y = b[2], v = b[3];
|
|
2028
|
+
b = b[4];
|
|
2029
|
+
} else if ((b = o.exec(m)) || (b = s.exec(m)), b && 4 <= b.length)
|
|
2030
|
+
m = b[1], y = b[2], v = b[3], b = b[4] | 0;
|
|
1961
2031
|
else {
|
|
1962
|
-
r +=
|
|
2032
|
+
r += m + `
|
|
1963
2033
|
`;
|
|
1964
2034
|
continue;
|
|
1965
2035
|
}
|
|
1966
|
-
var
|
|
2036
|
+
var x = !1;
|
|
1967
2037
|
if (e & 8) {
|
|
1968
|
-
var
|
|
1969
|
-
line:
|
|
1970
|
-
Ga:
|
|
2038
|
+
var d = emscripten_source_map.wb({
|
|
2039
|
+
line: v,
|
|
2040
|
+
Ga: b
|
|
1971
2041
|
});
|
|
1972
|
-
(
|
|
2042
|
+
(x = d && d.source) && (e & 64 && (d.source = d.source.substring(d.source.replace(/\\/g, "/").lastIndexOf("/") + 1)), r += " at " + m + " (" + d.source + ":" + d.line + ":" + d.Ga + `)
|
|
1973
2043
|
`);
|
|
1974
2044
|
}
|
|
1975
|
-
(e & 16 || !
|
|
1976
|
-
`), e & 128 && F[0] && (F[1] ==
|
|
2045
|
+
(e & 16 || !x) && (e & 64 && (y = y.substring(y.replace(/\\/g, "/").lastIndexOf("/") + 1)), r += (x ? " = " + m : " at " + m) + " (" + y + ":" + v + ":" + b + `)
|
|
2046
|
+
`), e & 128 && F[0] && (F[1] == m && 0 < F[2].length && (r = r.replace(/\s+$/, ""), r += " with values: " + F[1] + F[2] + `
|
|
1977
2047
|
`), F = gc(F[0]));
|
|
1978
2048
|
}
|
|
1979
2049
|
return r = r.replace(/\s+$/, "");
|
|
@@ -1985,42 +2055,42 @@ var mxdrawassembly = (() => {
|
|
|
1985
2055
|
var mc;
|
|
1986
2056
|
function nc(e, r, F, i, o) {
|
|
1987
2057
|
function s() {
|
|
1988
|
-
var
|
|
1989
|
-
|
|
2058
|
+
var I = 0, N = 0;
|
|
2059
|
+
j.response && f && A[e + 12 >> 2] === 0 && (N = j.response.byteLength), 0 < N && (I = oc(N), p.set(new Uint8Array(j.response), I)), A[e + 12 >> 2] = I, lc(e + 16, N), lc(e + 24, 0), (I = j.response ? j.response.byteLength : 0) && lc(e + 32, I), u[e + 40 >> 1] = j.readyState, u[e + 42 >> 1] = j.status, j.statusText && Aa(j.statusText, p, e + 44, 64);
|
|
1990
2060
|
}
|
|
1991
2061
|
var _ = A[e + 8 >> 2];
|
|
1992
2062
|
if (_) {
|
|
1993
|
-
var
|
|
1994
|
-
|
|
1995
|
-
var
|
|
1996
|
-
_ = A[
|
|
1997
|
-
var
|
|
1998
|
-
|
|
1999
|
-
var
|
|
2000
|
-
|
|
2001
|
-
var
|
|
2002
|
-
if (
|
|
2003
|
-
for (;
|
|
2004
|
-
_ += 8,
|
|
2005
|
-
var
|
|
2006
|
-
kc[
|
|
2007
|
-
|
|
2008
|
-
},
|
|
2009
|
-
|
|
2010
|
-
},
|
|
2011
|
-
|
|
2012
|
-
},
|
|
2013
|
-
if (
|
|
2014
|
-
var
|
|
2015
|
-
0 <
|
|
2063
|
+
var l = n(_), m = e + 112, b = n(m);
|
|
2064
|
+
b || (b = "GET");
|
|
2065
|
+
var y = A[m + 52 >> 2], v = A[m + 56 >> 2], x = !!A[m + 60 >> 2], d = A[m + 68 >> 2], g = A[m + 72 >> 2];
|
|
2066
|
+
_ = A[m + 76 >> 2];
|
|
2067
|
+
var h = A[m + 80 >> 2], w = A[m + 84 >> 2];
|
|
2068
|
+
m = A[m + 88 >> 2];
|
|
2069
|
+
var f = !!(y & 1), L = !!(y & 2);
|
|
2070
|
+
y = !!(y & 64), d = d ? n(d) : void 0, g = g ? n(g) : void 0;
|
|
2071
|
+
var j = new XMLHttpRequest();
|
|
2072
|
+
if (j.withCredentials = x, j.open(b, l, !y, d, g), y || (j.timeout = v), j.Ab = l, j.responseType = "arraybuffer", h && (l = n(h), j.overrideMimeType(l)), _)
|
|
2073
|
+
for (; b = A[_ >> 2], !(!b || (l = A[_ + 4 >> 2], !l)); )
|
|
2074
|
+
_ += 8, b = n(b), l = n(l), j.setRequestHeader(b, l);
|
|
2075
|
+
var k = A[e + 0 >> 2];
|
|
2076
|
+
kc[k] = j, _ = w && m ? p.slice(w, w + m) : null, j.onload = (I) => {
|
|
2077
|
+
k in kc && (s(), 200 <= j.status && 300 > j.status ? r && r(e, j, I) : F && F(e, j, I));
|
|
2078
|
+
}, j.onerror = (I) => {
|
|
2079
|
+
k in kc && (s(), F && F(e, j, I));
|
|
2080
|
+
}, j.ontimeout = (I) => {
|
|
2081
|
+
k in kc && F && F(e, j, I);
|
|
2082
|
+
}, j.onprogress = (I) => {
|
|
2083
|
+
if (k in kc) {
|
|
2084
|
+
var N = f && L && j.response ? j.response.byteLength : 0, S = 0;
|
|
2085
|
+
0 < N && f && L && (S = oc(N), p.set(new Uint8Array(j.response), S)), A[e + 12 >> 2] = S, lc(e + 16, N), lc(e + 24, I.loaded - N), lc(e + 32, I.total), u[e + 40 >> 1] = j.readyState, 3 <= j.readyState && j.status === 0 && 0 < I.loaded && (j.status = 200), u[e + 42 >> 1] = j.status, j.statusText && Aa(j.statusText, p, e + 44, 64), i && i(e, j, I), S && pc(S);
|
|
2016
2086
|
}
|
|
2017
|
-
},
|
|
2018
|
-
|
|
2087
|
+
}, j.onreadystatechange = (I) => {
|
|
2088
|
+
k in kc && (u[e + 40 >> 1] = j.readyState, 2 <= j.readyState && (u[e + 42 >> 1] = j.status), o && o(e, j, I));
|
|
2019
2089
|
};
|
|
2020
2090
|
try {
|
|
2021
|
-
|
|
2022
|
-
} catch (
|
|
2023
|
-
F && F(e,
|
|
2091
|
+
j.send(_);
|
|
2092
|
+
} catch (I) {
|
|
2093
|
+
F && F(e, j, I);
|
|
2024
2094
|
}
|
|
2025
2095
|
} else
|
|
2026
2096
|
F(e, 0, "no url specified!");
|
|
@@ -2035,14 +2105,14 @@ var mxdrawassembly = (() => {
|
|
|
2035
2105
|
s || (s = A[e + 8 >> 2]);
|
|
2036
2106
|
var _ = n(s);
|
|
2037
2107
|
try {
|
|
2038
|
-
var
|
|
2039
|
-
|
|
2040
|
-
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 200, Aa("OK",
|
|
2041
|
-
},
|
|
2042
|
-
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 413, Aa("Payload Too Large",
|
|
2108
|
+
var l = o.transaction(["FILES"], "readwrite").objectStore("FILES").put(r, _);
|
|
2109
|
+
l.onsuccess = () => {
|
|
2110
|
+
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 200, Aa("OK", p, e + 44, 64), F(e, 0, _);
|
|
2111
|
+
}, l.onerror = (m) => {
|
|
2112
|
+
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 413, Aa("Payload Too Large", p, e + 44, 64), i(e, 0, m);
|
|
2043
2113
|
};
|
|
2044
|
-
} catch (
|
|
2045
|
-
i(e, 0,
|
|
2114
|
+
} catch (m) {
|
|
2115
|
+
i(e, 0, m);
|
|
2046
2116
|
}
|
|
2047
2117
|
} else
|
|
2048
2118
|
i(e, 0, "IndexedDB not available!");
|
|
@@ -2057,14 +2127,14 @@ var mxdrawassembly = (() => {
|
|
|
2057
2127
|
s.onsuccess = (_) => {
|
|
2058
2128
|
if (_.target.result) {
|
|
2059
2129
|
_ = _.target.result;
|
|
2060
|
-
var
|
|
2061
|
-
|
|
2130
|
+
var l = _.byteLength || _.length, m = oc(l);
|
|
2131
|
+
p.set(new Uint8Array(_), m), A[e + 12 >> 2] = m, lc(e + 16, l), lc(e + 24, 0), lc(e + 32, l), u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 200, Aa("OK", p, e + 44, 64), r(e, 0, _);
|
|
2062
2132
|
} else
|
|
2063
|
-
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 404, Aa("Not Found",
|
|
2133
|
+
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 404, Aa("Not Found", p, e + 44, 64), F(e, 0, "no data");
|
|
2064
2134
|
}, s.onerror = (_) => {
|
|
2065
2135
|
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 404, Aa(
|
|
2066
2136
|
"Not Found",
|
|
2067
|
-
|
|
2137
|
+
p,
|
|
2068
2138
|
e + 44,
|
|
2069
2139
|
64
|
|
2070
2140
|
), F(e, 0, _);
|
|
@@ -2083,9 +2153,9 @@ var mxdrawassembly = (() => {
|
|
|
2083
2153
|
try {
|
|
2084
2154
|
var s = i.transaction(["FILES"], "readwrite").objectStore("FILES").delete(o);
|
|
2085
2155
|
s.onsuccess = (_) => {
|
|
2086
|
-
_ = _.target.result, A[e + 12 >> 2] = 0, lc(e + 16, 0), lc(e + 24, 0), lc(e + 32, 0), u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 200, Aa("OK",
|
|
2156
|
+
_ = _.target.result, A[e + 12 >> 2] = 0, lc(e + 16, 0), lc(e + 24, 0), lc(e + 32, 0), u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 200, Aa("OK", p, e + 44, 64), r(e, 0, _);
|
|
2087
2157
|
}, s.onerror = (_) => {
|
|
2088
|
-
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 404, Aa("Not Found",
|
|
2158
|
+
u[e + 40 >> 1] = 4, u[e + 42 >> 1] = 404, Aa("Not Found", p, e + 44, 64), F(e, 0, _);
|
|
2089
2159
|
};
|
|
2090
2160
|
} catch (_) {
|
|
2091
2161
|
F(e, 0, _);
|
|
@@ -2193,8 +2263,8 @@ var mxdrawassembly = (() => {
|
|
|
2193
2263
|
s ? (s.name = _, i[_] = s) : Gc(1282), z[r + 4 * o >> 2] = _;
|
|
2194
2264
|
}
|
|
2195
2265
|
}
|
|
2196
|
-
function Xc(e, r, F, i, o, s, _,
|
|
2197
|
-
r = Bc[r], (e = E[e](r, F)) && (i =
|
|
2266
|
+
function Xc(e, r, F, i, o, s, _, l) {
|
|
2267
|
+
r = Bc[r], (e = E[e](r, F)) && (i = l && Aa(e.name, p, l, i), o && (z[o >> 2] = i), s && (z[s >> 2] = e.size), _ && (z[_ >> 2] = e.type));
|
|
2198
2268
|
}
|
|
2199
2269
|
function Yc(e, r) {
|
|
2200
2270
|
if (r) {
|
|
@@ -2307,62 +2377,62 @@ var mxdrawassembly = (() => {
|
|
|
2307
2377
|
}
|
|
2308
2378
|
var cd = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], dd = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
2309
2379
|
function ed(e, r, F, i) {
|
|
2310
|
-
function o(
|
|
2311
|
-
for (
|
|
2312
|
-
|
|
2313
|
-
return
|
|
2380
|
+
function o(d, g, h) {
|
|
2381
|
+
for (d = typeof d == "number" ? d.toString() : d || ""; d.length < g; )
|
|
2382
|
+
d = h[0] + d;
|
|
2383
|
+
return d;
|
|
2314
2384
|
}
|
|
2315
|
-
function s(
|
|
2316
|
-
return o(
|
|
2385
|
+
function s(d, g) {
|
|
2386
|
+
return o(d, g, "0");
|
|
2317
2387
|
}
|
|
2318
|
-
function _(
|
|
2319
|
-
function
|
|
2320
|
-
return 0 >
|
|
2388
|
+
function _(d, g) {
|
|
2389
|
+
function h(f) {
|
|
2390
|
+
return 0 > f ? -1 : 0 < f ? 1 : 0;
|
|
2321
2391
|
}
|
|
2322
|
-
var
|
|
2323
|
-
return (
|
|
2392
|
+
var w;
|
|
2393
|
+
return (w = h(d.getFullYear() - g.getFullYear())) === 0 && (w = h(d.getMonth() - g.getMonth())) === 0 && (w = h(d.getDate() - g.getDate())), w;
|
|
2324
2394
|
}
|
|
2325
|
-
function
|
|
2326
|
-
switch (
|
|
2395
|
+
function l(d) {
|
|
2396
|
+
switch (d.getDay()) {
|
|
2327
2397
|
case 0:
|
|
2328
|
-
return new Date(
|
|
2398
|
+
return new Date(d.getFullYear() - 1, 11, 29);
|
|
2329
2399
|
case 1:
|
|
2330
|
-
return
|
|
2400
|
+
return d;
|
|
2331
2401
|
case 2:
|
|
2332
|
-
return new Date(
|
|
2402
|
+
return new Date(d.getFullYear(), 0, 3);
|
|
2333
2403
|
case 3:
|
|
2334
2404
|
return new Date(
|
|
2335
|
-
|
|
2405
|
+
d.getFullYear(),
|
|
2336
2406
|
0,
|
|
2337
2407
|
2
|
|
2338
2408
|
);
|
|
2339
2409
|
case 4:
|
|
2340
|
-
return new Date(
|
|
2410
|
+
return new Date(d.getFullYear(), 0, 1);
|
|
2341
2411
|
case 5:
|
|
2342
|
-
return new Date(
|
|
2412
|
+
return new Date(d.getFullYear() - 1, 11, 31);
|
|
2343
2413
|
case 6:
|
|
2344
|
-
return new Date(
|
|
2414
|
+
return new Date(d.getFullYear() - 1, 11, 30);
|
|
2345
2415
|
}
|
|
2346
2416
|
}
|
|
2347
|
-
function
|
|
2348
|
-
var
|
|
2349
|
-
for (
|
|
2350
|
-
var
|
|
2351
|
-
if (
|
|
2352
|
-
|
|
2417
|
+
function m(d) {
|
|
2418
|
+
var g = d.F;
|
|
2419
|
+
for (d = new Date(new Date(d.G + 1900, 0, 1).getTime()); 0 < g; ) {
|
|
2420
|
+
var h = d.getMonth(), w = (bd(d.getFullYear()) ? cd : dd)[h];
|
|
2421
|
+
if (g > w - d.getDate())
|
|
2422
|
+
g -= w - d.getDate() + 1, d.setDate(1), 11 > h ? d.setMonth(h + 1) : (d.setMonth(0), d.setFullYear(d.getFullYear() + 1));
|
|
2353
2423
|
else {
|
|
2354
|
-
|
|
2424
|
+
d.setDate(d.getDate() + g);
|
|
2355
2425
|
break;
|
|
2356
2426
|
}
|
|
2357
2427
|
}
|
|
2358
|
-
return
|
|
2359
|
-
|
|
2428
|
+
return h = new Date(d.getFullYear() + 1, 0, 4), g = l(new Date(
|
|
2429
|
+
d.getFullYear(),
|
|
2360
2430
|
0,
|
|
2361
2431
|
4
|
|
2362
|
-
)),
|
|
2432
|
+
)), h = l(h), 0 >= _(g, d) ? 0 >= _(h, d) ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1;
|
|
2363
2433
|
}
|
|
2364
|
-
var
|
|
2365
|
-
i = { ib: z[i >> 2], hb: z[i + 4 >> 2], Y: z[i + 8 >> 2], ga: z[i + 12 >> 2], Z: z[i + 16 >> 2], G: z[i + 20 >> 2], A: z[i + 24 >> 2], F: z[i + 28 >> 2], zb: z[i + 32 >> 2], gb: z[i + 36 >> 2], jb:
|
|
2434
|
+
var b = z[i + 40 >> 2];
|
|
2435
|
+
i = { ib: z[i >> 2], hb: z[i + 4 >> 2], Y: z[i + 8 >> 2], ga: z[i + 12 >> 2], Z: z[i + 16 >> 2], G: z[i + 20 >> 2], A: z[i + 24 >> 2], F: z[i + 28 >> 2], zb: z[i + 32 >> 2], gb: z[i + 36 >> 2], jb: b ? n(b) : "" }, F = n(F), b = {
|
|
2366
2436
|
"%c": "%a %b %d %H:%M:%S %Y",
|
|
2367
2437
|
"%D": "%m/%d/%y",
|
|
2368
2438
|
"%F": "%Y-%m-%d",
|
|
@@ -2392,111 +2462,111 @@ var mxdrawassembly = (() => {
|
|
|
2392
2462
|
"%OW": "%W",
|
|
2393
2463
|
"%Oy": "%y"
|
|
2394
2464
|
};
|
|
2395
|
-
for (var
|
|
2396
|
-
F = F.replace(new RegExp(
|
|
2397
|
-
var
|
|
2398
|
-
|
|
2399
|
-
"%a": function(
|
|
2400
|
-
return
|
|
2465
|
+
for (var y in b)
|
|
2466
|
+
F = F.replace(new RegExp(y, "g"), b[y]);
|
|
2467
|
+
var v = "Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), x = "January February March April May June July August September October November December".split(" ");
|
|
2468
|
+
b = {
|
|
2469
|
+
"%a": function(d) {
|
|
2470
|
+
return v[d.A].substring(0, 3);
|
|
2401
2471
|
},
|
|
2402
|
-
"%A": function(
|
|
2403
|
-
return
|
|
2472
|
+
"%A": function(d) {
|
|
2473
|
+
return v[d.A];
|
|
2404
2474
|
},
|
|
2405
|
-
"%b": function(
|
|
2406
|
-
return
|
|
2475
|
+
"%b": function(d) {
|
|
2476
|
+
return x[d.Z].substring(0, 3);
|
|
2407
2477
|
},
|
|
2408
|
-
"%B": function(
|
|
2409
|
-
return
|
|
2478
|
+
"%B": function(d) {
|
|
2479
|
+
return x[d.Z];
|
|
2410
2480
|
},
|
|
2411
|
-
"%C": function(
|
|
2412
|
-
return s((
|
|
2481
|
+
"%C": function(d) {
|
|
2482
|
+
return s((d.G + 1900) / 100 | 0, 2);
|
|
2413
2483
|
},
|
|
2414
|
-
"%d": function(
|
|
2415
|
-
return s(
|
|
2484
|
+
"%d": function(d) {
|
|
2485
|
+
return s(d.ga, 2);
|
|
2416
2486
|
},
|
|
2417
|
-
"%e": function(
|
|
2418
|
-
return o(
|
|
2487
|
+
"%e": function(d) {
|
|
2488
|
+
return o(d.ga, 2, " ");
|
|
2419
2489
|
},
|
|
2420
|
-
"%g": function(
|
|
2421
|
-
return
|
|
2490
|
+
"%g": function(d) {
|
|
2491
|
+
return m(d).toString().substring(2);
|
|
2422
2492
|
},
|
|
2423
|
-
"%G": function(
|
|
2424
|
-
return
|
|
2493
|
+
"%G": function(d) {
|
|
2494
|
+
return m(d);
|
|
2425
2495
|
},
|
|
2426
|
-
"%H": function(
|
|
2427
|
-
return s(
|
|
2496
|
+
"%H": function(d) {
|
|
2497
|
+
return s(d.Y, 2);
|
|
2428
2498
|
},
|
|
2429
|
-
"%I": function(
|
|
2430
|
-
return
|
|
2499
|
+
"%I": function(d) {
|
|
2500
|
+
return d = d.Y, d == 0 ? d = 12 : 12 < d && (d -= 12), s(d, 2);
|
|
2431
2501
|
},
|
|
2432
|
-
"%j": function(
|
|
2433
|
-
for (var
|
|
2502
|
+
"%j": function(d) {
|
|
2503
|
+
for (var g = 0, h = 0; h <= d.Z - 1; g += (bd(d.G + 1900) ? cd : dd)[h++])
|
|
2434
2504
|
;
|
|
2435
|
-
return s(
|
|
2505
|
+
return s(d.ga + g, 3);
|
|
2436
2506
|
},
|
|
2437
|
-
"%m": function(
|
|
2438
|
-
return s(
|
|
2507
|
+
"%m": function(d) {
|
|
2508
|
+
return s(d.Z + 1, 2);
|
|
2439
2509
|
},
|
|
2440
|
-
"%M": function(
|
|
2441
|
-
return s(
|
|
2510
|
+
"%M": function(d) {
|
|
2511
|
+
return s(d.hb, 2);
|
|
2442
2512
|
},
|
|
2443
2513
|
"%n": function() {
|
|
2444
2514
|
return `
|
|
2445
2515
|
`;
|
|
2446
2516
|
},
|
|
2447
|
-
"%p": function(
|
|
2448
|
-
return 0 <=
|
|
2517
|
+
"%p": function(d) {
|
|
2518
|
+
return 0 <= d.Y && 12 > d.Y ? "AM" : "PM";
|
|
2449
2519
|
},
|
|
2450
|
-
"%S": function(
|
|
2451
|
-
return s(
|
|
2520
|
+
"%S": function(d) {
|
|
2521
|
+
return s(d.ib, 2);
|
|
2452
2522
|
},
|
|
2453
2523
|
"%t": function() {
|
|
2454
2524
|
return " ";
|
|
2455
2525
|
},
|
|
2456
|
-
"%u": function(
|
|
2457
|
-
return
|
|
2526
|
+
"%u": function(d) {
|
|
2527
|
+
return d.A || 7;
|
|
2458
2528
|
},
|
|
2459
|
-
"%U": function(
|
|
2460
|
-
return s(Math.floor((
|
|
2529
|
+
"%U": function(d) {
|
|
2530
|
+
return s(Math.floor((d.F + 7 - d.A) / 7), 2);
|
|
2461
2531
|
},
|
|
2462
|
-
"%V": function(
|
|
2463
|
-
var
|
|
2464
|
-
if (2 >= (
|
|
2465
|
-
|
|
2532
|
+
"%V": function(d) {
|
|
2533
|
+
var g = Math.floor((d.F + 7 - (d.A + 6) % 7) / 7);
|
|
2534
|
+
if (2 >= (d.A + 371 - d.F - 2) % 7 && g++, g)
|
|
2535
|
+
g == 53 && (h = (d.A + 371 - d.F) % 7, h == 4 || h == 3 && bd(d.G) || (g = 1));
|
|
2466
2536
|
else {
|
|
2467
|
-
|
|
2468
|
-
var
|
|
2469
|
-
(
|
|
2537
|
+
g = 52;
|
|
2538
|
+
var h = (d.A + 7 - d.F - 1) % 7;
|
|
2539
|
+
(h == 4 || h == 5 && bd(d.G % 400 - 1)) && g++;
|
|
2470
2540
|
}
|
|
2471
|
-
return s(
|
|
2541
|
+
return s(g, 2);
|
|
2472
2542
|
},
|
|
2473
|
-
"%w": function(
|
|
2474
|
-
return
|
|
2543
|
+
"%w": function(d) {
|
|
2544
|
+
return d.A;
|
|
2475
2545
|
},
|
|
2476
|
-
"%W": function(
|
|
2477
|
-
return s(Math.floor((
|
|
2546
|
+
"%W": function(d) {
|
|
2547
|
+
return s(Math.floor((d.F + 7 - (d.A + 6) % 7) / 7), 2);
|
|
2478
2548
|
},
|
|
2479
|
-
"%y": function(
|
|
2480
|
-
return (
|
|
2549
|
+
"%y": function(d) {
|
|
2550
|
+
return (d.G + 1900).toString().substring(2);
|
|
2481
2551
|
},
|
|
2482
|
-
"%Y": function(
|
|
2483
|
-
return
|
|
2552
|
+
"%Y": function(d) {
|
|
2553
|
+
return d.G + 1900;
|
|
2484
2554
|
},
|
|
2485
|
-
"%z": function(
|
|
2486
|
-
|
|
2487
|
-
var
|
|
2488
|
-
return
|
|
2555
|
+
"%z": function(d) {
|
|
2556
|
+
d = d.gb;
|
|
2557
|
+
var g = 0 <= d;
|
|
2558
|
+
return d = Math.abs(d) / 60, (g ? "+" : "-") + String("0000" + (d / 60 * 100 + d % 60)).slice(-4);
|
|
2489
2559
|
},
|
|
2490
|
-
"%Z": function(
|
|
2491
|
-
return
|
|
2560
|
+
"%Z": function(d) {
|
|
2561
|
+
return d.jb;
|
|
2492
2562
|
},
|
|
2493
2563
|
"%%": function() {
|
|
2494
2564
|
return "%";
|
|
2495
2565
|
}
|
|
2496
2566
|
}, F = F.replace(/%%/g, "\0\0");
|
|
2497
|
-
for (
|
|
2498
|
-
F.includes(
|
|
2499
|
-
return F = F.replace(/\0\0/g, "%"),
|
|
2567
|
+
for (y in b)
|
|
2568
|
+
F.includes(y) && (F = F.replace(new RegExp(y, "g"), b[y](i)));
|
|
2569
|
+
return F = F.replace(/\0\0/g, "%"), y = gb(F, !1), y.length > r ? 0 : (t.set(y, e), y.length - 1);
|
|
2500
2570
|
}
|
|
2501
2571
|
function Db(e, r, F, i) {
|
|
2502
2572
|
e || (e = this), this.parent = e, this.B = e.B, this.I = null, this.id = ub++, this.name = r, this.mode = F, this.h = {}, this.j = {}, this.rdev = i;
|
|
@@ -2658,10 +2728,10 @@ var mxdrawassembly = (() => {
|
|
|
2658
2728
|
} else
|
|
2659
2729
|
F === 512 ? Pb(r) : ua("Invalid flags passed to unlinkat");
|
|
2660
2730
|
return 0;
|
|
2661
|
-
} catch (
|
|
2662
|
-
if (typeof Yb > "u" ||
|
|
2663
|
-
throw
|
|
2664
|
-
return -
|
|
2731
|
+
} catch (l) {
|
|
2732
|
+
if (typeof Yb > "u" || l.name !== "ErrnoError")
|
|
2733
|
+
throw l;
|
|
2734
|
+
return -l.s;
|
|
2665
2735
|
}
|
|
2666
2736
|
},
|
|
2667
2737
|
_emscripten_fetch_free: function(e) {
|
|
@@ -2685,10 +2755,10 @@ var mxdrawassembly = (() => {
|
|
|
2685
2755
|
` : "") + jc(e)), e & 1 ? e & 4 ? console.error(r) : e & 2 ? console.warn(r) : e & 512 ? console.info(r) : e & 256 ? console.debug(r) : console.log(r) : e & 6 ? sa(r) : ra(r);
|
|
2686
2756
|
},
|
|
2687
2757
|
emscripten_memcpy_big: function(e, r, F) {
|
|
2688
|
-
|
|
2758
|
+
p.copyWithin(e, r, r + F);
|
|
2689
2759
|
},
|
|
2690
2760
|
emscripten_resize_heap: function(e) {
|
|
2691
|
-
var r =
|
|
2761
|
+
var r = p.length;
|
|
2692
2762
|
if (e >>>= 0, 2147483648 < e)
|
|
2693
2763
|
return !1;
|
|
2694
2764
|
for (var F = 1; 4 >= F; F *= 2) {
|
|
@@ -2704,13 +2774,13 @@ var mxdrawassembly = (() => {
|
|
|
2704
2774
|
2147483648,
|
|
2705
2775
|
i
|
|
2706
2776
|
) - _.byteLength + 65535 >>> 16), Ea();
|
|
2707
|
-
var
|
|
2777
|
+
var l = 1;
|
|
2708
2778
|
break e;
|
|
2709
2779
|
} catch {
|
|
2710
2780
|
}
|
|
2711
|
-
|
|
2781
|
+
l = void 0;
|
|
2712
2782
|
}
|
|
2713
|
-
if (
|
|
2783
|
+
if (l)
|
|
2714
2784
|
return !0;
|
|
2715
2785
|
}
|
|
2716
2786
|
return !1;
|
|
@@ -2719,64 +2789,64 @@ var mxdrawassembly = (() => {
|
|
|
2719
2789
|
eval(n(a));
|
|
2720
2790
|
},
|
|
2721
2791
|
emscripten_start_fetch: function(e, r, F, i, o) {
|
|
2722
|
-
function s(
|
|
2723
|
-
if (
|
|
2724
|
-
|
|
2792
|
+
function s(S) {
|
|
2793
|
+
if (w)
|
|
2794
|
+
S();
|
|
2725
2795
|
else if (!wa)
|
|
2726
2796
|
try {
|
|
2727
|
-
if (
|
|
2797
|
+
if (S(), !noExitRuntime)
|
|
2728
2798
|
try {
|
|
2729
|
-
xa = xa =
|
|
2730
|
-
} catch (
|
|
2731
|
-
qc(
|
|
2799
|
+
xa = xa = S = xa, noExitRuntime || (c.onExit && c.onExit(S), wa = !0), ea(S, new qa(S));
|
|
2800
|
+
} catch (J) {
|
|
2801
|
+
qc(J);
|
|
2732
2802
|
}
|
|
2733
|
-
} catch (
|
|
2734
|
-
qc(
|
|
2803
|
+
} catch (J) {
|
|
2804
|
+
qc(J);
|
|
2735
2805
|
}
|
|
2736
2806
|
}
|
|
2737
|
-
var _ = e + 112,
|
|
2807
|
+
var _ = e + 112, l = n(_), m = A[_ + 36 >> 2], b = A[_ + 40 >> 2], y = A[_ + 44 >> 2], v = A[_ + 48 >> 2], x = A[_ + 52 >> 2], d = !!(x & 4), g = !!(x & 32), h = !!(x & 16), w = !!(x & 64), f = (S) => {
|
|
2738
2808
|
s(() => {
|
|
2739
|
-
|
|
2809
|
+
m ? vc(m)(S) : r && r(S);
|
|
2740
2810
|
});
|
|
2741
|
-
},
|
|
2811
|
+
}, L = (S) => {
|
|
2742
2812
|
s(() => {
|
|
2743
|
-
|
|
2813
|
+
y ? vc(y)(S) : i && i(S);
|
|
2744
2814
|
});
|
|
2745
|
-
},
|
|
2815
|
+
}, j = (S) => {
|
|
2746
2816
|
s(() => {
|
|
2747
|
-
|
|
2817
|
+
b ? vc(b)(S) : F && F(S);
|
|
2748
2818
|
});
|
|
2749
|
-
},
|
|
2819
|
+
}, k = (S) => {
|
|
2750
2820
|
s(() => {
|
|
2751
|
-
|
|
2821
|
+
v ? vc(v)(S) : o && o(S);
|
|
2752
2822
|
});
|
|
2753
2823
|
};
|
|
2754
|
-
|
|
2755
|
-
nc(
|
|
2824
|
+
x = (S) => {
|
|
2825
|
+
nc(S, f, j, L, k);
|
|
2756
2826
|
};
|
|
2757
|
-
var
|
|
2758
|
-
rc(
|
|
2827
|
+
var I = (S, J) => {
|
|
2828
|
+
rc(S, J.response, ($) => {
|
|
2759
2829
|
s(() => {
|
|
2760
|
-
|
|
2830
|
+
m ? vc(m)($) : r && r($);
|
|
2761
2831
|
});
|
|
2762
|
-
}, (
|
|
2832
|
+
}, ($) => {
|
|
2763
2833
|
s(() => {
|
|
2764
|
-
|
|
2834
|
+
m ? vc(m)($) : r && r($);
|
|
2765
2835
|
});
|
|
2766
2836
|
});
|
|
2767
|
-
},
|
|
2768
|
-
nc(
|
|
2837
|
+
}, N = (S) => {
|
|
2838
|
+
nc(S, I, j, L, k);
|
|
2769
2839
|
};
|
|
2770
|
-
if (
|
|
2771
|
-
|
|
2772
|
-
else if (
|
|
2773
|
-
tc(e,
|
|
2774
|
-
else if (
|
|
2775
|
-
if (
|
|
2840
|
+
if (l === "EM_IDB_STORE")
|
|
2841
|
+
l = A[_ + 84 >> 2], rc(e, p.slice(l, l + A[_ + 88 >> 2]), f, j);
|
|
2842
|
+
else if (l === "EM_IDB_DELETE")
|
|
2843
|
+
tc(e, f, j);
|
|
2844
|
+
else if (h) {
|
|
2845
|
+
if (g)
|
|
2776
2846
|
return 0;
|
|
2777
|
-
nc(e,
|
|
2847
|
+
nc(e, d ? I : f, j, L, k);
|
|
2778
2848
|
} else
|
|
2779
|
-
sc(e,
|
|
2849
|
+
sc(e, f, g ? j : d ? N : x);
|
|
2780
2850
|
return e;
|
|
2781
2851
|
},
|
|
2782
2852
|
emscripten_webgl_create_context: function(e, r) {
|
|
@@ -2838,42 +2908,42 @@ var mxdrawassembly = (() => {
|
|
|
2838
2908
|
var o = $b(e);
|
|
2839
2909
|
e = r;
|
|
2840
2910
|
for (var s, _ = r = 0; _ < F; _++) {
|
|
2841
|
-
var
|
|
2911
|
+
var l = A[e >> 2], m = A[e + 4 >> 2];
|
|
2842
2912
|
e += 8;
|
|
2843
|
-
var
|
|
2844
|
-
if (0 >
|
|
2913
|
+
var b = o, y = l, v = m, x = s, d = t;
|
|
2914
|
+
if (0 > v || 0 > x)
|
|
2845
2915
|
throw new B(28);
|
|
2846
|
-
if (
|
|
2916
|
+
if (b.fd === null)
|
|
2847
2917
|
throw new B(8);
|
|
2848
|
-
if ((
|
|
2918
|
+
if ((b.flags & 2097155) === 1)
|
|
2849
2919
|
throw new B(8);
|
|
2850
|
-
if ((
|
|
2920
|
+
if ((b.node.mode & 61440) === 16384)
|
|
2851
2921
|
throw new B(31);
|
|
2852
|
-
if (!
|
|
2922
|
+
if (!b.j.read)
|
|
2853
2923
|
throw new B(28);
|
|
2854
|
-
var
|
|
2855
|
-
if (!
|
|
2856
|
-
|
|
2857
|
-
else if (!
|
|
2924
|
+
var g = typeof x < "u";
|
|
2925
|
+
if (!g)
|
|
2926
|
+
x = b.position;
|
|
2927
|
+
else if (!b.seekable)
|
|
2858
2928
|
throw new B(70);
|
|
2859
|
-
var
|
|
2860
|
-
|
|
2861
|
-
var
|
|
2862
|
-
if (0 >
|
|
2863
|
-
var
|
|
2929
|
+
var h = b.j.read(b, d, y, v, x);
|
|
2930
|
+
g || (b.position += h);
|
|
2931
|
+
var w = h;
|
|
2932
|
+
if (0 > w) {
|
|
2933
|
+
var f = -1;
|
|
2864
2934
|
break e;
|
|
2865
2935
|
}
|
|
2866
|
-
if (r +=
|
|
2936
|
+
if (r += w, w < m)
|
|
2867
2937
|
break;
|
|
2868
|
-
typeof s < "u" && (s +=
|
|
2938
|
+
typeof s < "u" && (s += w);
|
|
2869
2939
|
}
|
|
2870
|
-
|
|
2940
|
+
f = r;
|
|
2871
2941
|
}
|
|
2872
|
-
return A[i >> 2] =
|
|
2873
|
-
} catch (
|
|
2874
|
-
if (typeof Yb > "u" ||
|
|
2875
|
-
throw
|
|
2876
|
-
return
|
|
2942
|
+
return A[i >> 2] = f, 0;
|
|
2943
|
+
} catch (L) {
|
|
2944
|
+
if (typeof Yb > "u" || L.name !== "ErrnoError")
|
|
2945
|
+
throw L;
|
|
2946
|
+
return L.s;
|
|
2877
2947
|
}
|
|
2878
2948
|
},
|
|
2879
2949
|
fd_seek: function(e, r, F, i, o) {
|
|
@@ -2894,41 +2964,41 @@ var mxdrawassembly = (() => {
|
|
|
2894
2964
|
var o = $b(e);
|
|
2895
2965
|
e = r;
|
|
2896
2966
|
for (var s, _ = r = 0; _ < F; _++) {
|
|
2897
|
-
var
|
|
2967
|
+
var l = A[e >> 2], m = A[e + 4 >> 2];
|
|
2898
2968
|
e += 8;
|
|
2899
|
-
var
|
|
2900
|
-
if (0 >
|
|
2969
|
+
var b = o, y = l, v = m, x = s, d = t;
|
|
2970
|
+
if (0 > v || 0 > x)
|
|
2901
2971
|
throw new B(28);
|
|
2902
|
-
if (
|
|
2972
|
+
if (b.fd === null)
|
|
2903
2973
|
throw new B(8);
|
|
2904
|
-
if ((
|
|
2974
|
+
if ((b.flags & 2097155) === 0)
|
|
2905
2975
|
throw new B(8);
|
|
2906
|
-
if ((
|
|
2976
|
+
if ((b.node.mode & 61440) === 16384)
|
|
2907
2977
|
throw new B(31);
|
|
2908
|
-
if (!
|
|
2978
|
+
if (!b.j.write)
|
|
2909
2979
|
throw new B(28);
|
|
2910
|
-
|
|
2911
|
-
var
|
|
2912
|
-
if (!
|
|
2913
|
-
|
|
2914
|
-
else if (!
|
|
2980
|
+
b.seekable && b.flags & 1024 && Sb(b, 0, 2);
|
|
2981
|
+
var g = typeof x < "u";
|
|
2982
|
+
if (!g)
|
|
2983
|
+
x = b.position;
|
|
2984
|
+
else if (!b.seekable)
|
|
2915
2985
|
throw new B(70);
|
|
2916
|
-
var
|
|
2917
|
-
|
|
2918
|
-
var
|
|
2919
|
-
if (0 >
|
|
2920
|
-
var
|
|
2986
|
+
var h = b.j.write(b, d, y, v, x, void 0);
|
|
2987
|
+
g || (b.position += h);
|
|
2988
|
+
var w = h;
|
|
2989
|
+
if (0 > w) {
|
|
2990
|
+
var f = -1;
|
|
2921
2991
|
break e;
|
|
2922
2992
|
}
|
|
2923
|
-
r +=
|
|
2993
|
+
r += w, typeof s < "u" && (s += w);
|
|
2924
2994
|
}
|
|
2925
|
-
|
|
2995
|
+
f = r;
|
|
2926
2996
|
}
|
|
2927
|
-
return A[i >> 2] =
|
|
2928
|
-
} catch (
|
|
2929
|
-
if (typeof Yb > "u" ||
|
|
2930
|
-
throw
|
|
2931
|
-
return
|
|
2997
|
+
return A[i >> 2] = f, 0;
|
|
2998
|
+
} catch (L) {
|
|
2999
|
+
if (typeof Yb > "u" || L.name !== "ErrnoError")
|
|
3000
|
+
throw L;
|
|
3001
|
+
return L.s;
|
|
2932
3002
|
}
|
|
2933
3003
|
},
|
|
2934
3004
|
getentropy: Vc,
|
|
@@ -2945,7 +3015,7 @@ var mxdrawassembly = (() => {
|
|
|
2945
3015
|
E.bindVertexArray(Dc[e]), e = E.getParameter(34965), E.M = e ? e.name | 0 : 0;
|
|
2946
3016
|
},
|
|
2947
3017
|
glBufferData: function(e, r, F, i) {
|
|
2948
|
-
2 <= D.version ? F && r ? E.bufferData(e,
|
|
3018
|
+
2 <= D.version ? F && r ? E.bufferData(e, p, i, F, r) : E.bufferData(e, r, i) : E.bufferData(e, F ? p.subarray(F, F + r) : r, i);
|
|
2949
3019
|
},
|
|
2950
3020
|
glClear: function(e) {
|
|
2951
3021
|
E.clear(e);
|
|
@@ -2997,15 +3067,15 @@ var mxdrawassembly = (() => {
|
|
|
2997
3067
|
_ ? s = _ : (_ = E.getParameter(34965), D.L[s] = E.createBuffer(), E.bindBuffer(34963, D.L[s]), E.bufferData(34963, 1 << s, 35048), E.bindBuffer(
|
|
2998
3068
|
34963,
|
|
2999
3069
|
_
|
|
3000
|
-
), s = D.L[s]), E.bindBuffer(34963, s), E.bufferSubData(34963, 0,
|
|
3070
|
+
), s = D.L[s]), E.bindBuffer(34963, s), E.bufferSubData(34963, 0, p.subarray(i, i + o)), i = 0;
|
|
3001
3071
|
}
|
|
3002
3072
|
for (Nc = !1, o = 0; o < D.ua; ++o)
|
|
3003
3073
|
if (s = D.P[o], s.$ && s.enabled) {
|
|
3004
3074
|
Nc = !0, _ = s.ea, _ = 0 < _ ? r * _ : s.size * Fc[s.type - 5120] * r;
|
|
3005
|
-
var
|
|
3006
|
-
D.N[
|
|
3007
|
-
var
|
|
3008
|
-
|
|
3075
|
+
var l = Jc(_), m = D.X[l], b = D.N[l];
|
|
3076
|
+
D.N[l] = D.N[l] + 1 & 63;
|
|
3077
|
+
var y = m[b];
|
|
3078
|
+
y ? l = y : (y = E.getParameter(34964), m[b] = E.createBuffer(), E.bindBuffer(34962, m[b]), E.bufferData(34962, 1 << l, 35048), E.bindBuffer(34962, y), l = m[b]), E.bindBuffer(34962, l), E.bufferSubData(34962, 0, p.subarray(s.g, s.g + _)), s.Da.call(E, o, s.size, s.type, s.ya, s.ea, 0);
|
|
3009
3079
|
}
|
|
3010
3080
|
E.drawElements(
|
|
3011
3081
|
e,
|
|
@@ -3046,7 +3116,7 @@ var mxdrawassembly = (() => {
|
|
|
3046
3116
|
return Hc = 0, e;
|
|
3047
3117
|
},
|
|
3048
3118
|
glGetProgramInfoLog: function(e, r, F, i) {
|
|
3049
|
-
e = E.getProgramInfoLog(Bc[e]), e === null && (e = "(unknown error)"), r = 0 < r && i ? Aa(e,
|
|
3119
|
+
e = E.getProgramInfoLog(Bc[e]), e === null && (e = "(unknown error)"), r = 0 < r && i ? Aa(e, p, i, r) : 0, F && (z[F >> 2] = r);
|
|
3050
3120
|
},
|
|
3051
3121
|
glGetProgramiv: function(e, r, F) {
|
|
3052
3122
|
if (F)
|
|
@@ -3075,7 +3145,7 @@ var mxdrawassembly = (() => {
|
|
|
3075
3145
|
Gc(1281);
|
|
3076
3146
|
},
|
|
3077
3147
|
glGetShaderInfoLog: function(e, r, F, i) {
|
|
3078
|
-
e = E.getShaderInfoLog(Cc[e]), e === null && (e = "(unknown error)"), r = 0 < r && i ? Aa(e,
|
|
3148
|
+
e = E.getShaderInfoLog(Cc[e]), e === null && (e = "(unknown error)"), r = 0 < r && i ? Aa(e, p, i, r) : 0, F && (z[F >> 2] = r);
|
|
3079
3149
|
},
|
|
3080
3150
|
glGetShaderiv: function(e, r, F) {
|
|
3081
3151
|
F ? r == 35716 ? (e = E.getShaderInfoLog(Cc[e]), e === null && (e = "(unknown error)"), z[F >> 2] = e ? e.length + 1 : 0) : r == 35720 ? (e = E.getShaderSource(Cc[e]), z[F >> 2] = e ? e.length + 1 : 0) : z[F >> 2] = E.getShaderParameter(Cc[e], r) : Gc(1281);
|
|
@@ -3088,13 +3158,13 @@ var mxdrawassembly = (() => {
|
|
|
3088
3158
|
var _ = E.getActiveUniform(
|
|
3089
3159
|
F,
|
|
3090
3160
|
s
|
|
3091
|
-
),
|
|
3161
|
+
), l = _.name;
|
|
3092
3162
|
_ = _.size;
|
|
3093
|
-
var
|
|
3094
|
-
|
|
3095
|
-
var
|
|
3096
|
-
for (F.ha += _, o[
|
|
3097
|
-
i[
|
|
3163
|
+
var m = Zc(l);
|
|
3164
|
+
m = 0 < m ? l.slice(0, m) : l;
|
|
3165
|
+
var b = F.ha;
|
|
3166
|
+
for (F.ha += _, o[m] = [_, b], l = 0; l < _; ++l)
|
|
3167
|
+
i[b] = l, F.Ba[b++] = m;
|
|
3098
3168
|
}
|
|
3099
3169
|
if (F = e.O, i = 0, o = r, s = Zc(r), 0 < s && (i = parseInt(r.slice(s + 1)) >>> 0, o = r.slice(0, s)), (o = e.Ca[o]) && i < o[0] && (i += o[1], F[i] = F[i] || E.getUniformLocation(e, r)))
|
|
3100
3170
|
return i;
|
|
@@ -3151,8 +3221,8 @@ var mxdrawassembly = (() => {
|
|
|
3151
3221
|
var o = ad[16 * r - 1], s = Ca;
|
|
3152
3222
|
i >>= 2;
|
|
3153
3223
|
for (var _ = 0; _ < 16 * r; _ += 16) {
|
|
3154
|
-
var
|
|
3155
|
-
o[_] = s[
|
|
3224
|
+
var l = i + _;
|
|
3225
|
+
o[_] = s[l], o[_ + 1] = s[l + 1], o[_ + 2] = s[l + 2], o[_ + 3] = s[l + 3], o[_ + 4] = s[l + 4], o[_ + 5] = s[l + 5], o[_ + 6] = s[l + 6], o[_ + 7] = s[l + 7], o[_ + 8] = s[l + 8], o[_ + 9] = s[l + 9], o[_ + 10] = s[l + 10], o[_ + 11] = s[l + 11], o[_ + 12] = s[l + 12], o[_ + 13] = s[l + 13], o[_ + 14] = s[l + 14], o[_ + 15] = s[l + 15];
|
|
3156
3226
|
}
|
|
3157
3227
|
} else
|
|
3158
3228
|
o = Ca.subarray(i >> 2, i + 64 * r >> 2);
|
|
@@ -3170,8 +3240,8 @@ var mxdrawassembly = (() => {
|
|
|
3170
3240
|
},
|
|
3171
3241
|
glVertexAttribPointer: function(e, r, F, i, o, s) {
|
|
3172
3242
|
var _ = D.P[e];
|
|
3173
|
-
E.R ? (_.$ = !1, E.vertexAttribPointer(e, r, F, !!i, o, s)) : (_.size = r, _.type = F, _.ya = i, _.ea = o, _.g = s, _.$ = !0, _.Da = function(
|
|
3174
|
-
this.vertexAttribPointer(
|
|
3243
|
+
E.R ? (_.$ = !1, E.vertexAttribPointer(e, r, F, !!i, o, s)) : (_.size = r, _.type = F, _.ya = i, _.ea = o, _.g = s, _.$ = !0, _.Da = function(l, m, b, y, v, x) {
|
|
3244
|
+
this.vertexAttribPointer(l, m, b, y, v, x);
|
|
3175
3245
|
});
|
|
3176
3246
|
},
|
|
3177
3247
|
invoke_ii: jd,
|
|
@@ -3597,137 +3667,127 @@ var mxdrawassembly = (() => {
|
|
|
3597
3667
|
return (yg = c._emscripten_bind_McObject_PathMakeClosed_0 = c.asm.emscripten_bind_McObject_PathMakeClosed_0).apply(null, arguments);
|
|
3598
3668
|
}, zg = c._emscripten_bind_McObject_DrawPathToHatch_1 = function() {
|
|
3599
3669
|
return (zg = c._emscripten_bind_McObject_DrawPathToHatch_1 = c.asm.emscripten_bind_McObject_DrawPathToHatch_1).apply(null, arguments);
|
|
3600
|
-
}, Ag = c.
|
|
3601
|
-
return (Ag = c.
|
|
3602
|
-
}, Bg = c.
|
|
3603
|
-
return (Bg = c.
|
|
3604
|
-
}, Cg = c.
|
|
3605
|
-
return (Cg = c.
|
|
3606
|
-
}, Dg = c.
|
|
3607
|
-
return (Dg = c.
|
|
3608
|
-
}, Eg = c.
|
|
3609
|
-
return (Eg = c.
|
|
3610
|
-
}, Fg = c.
|
|
3611
|
-
return (Fg = c.
|
|
3612
|
-
}, Gg = c.
|
|
3613
|
-
return (Gg = c.
|
|
3614
|
-
}, Hg = c.
|
|
3615
|
-
return (Hg = c.
|
|
3616
|
-
}, Ig = c.
|
|
3617
|
-
return (Ig = c.
|
|
3618
|
-
}, Jg = c.
|
|
3619
|
-
return (Jg = c.
|
|
3620
|
-
}, Kg = c.
|
|
3621
|
-
return (Kg = c.
|
|
3622
|
-
}, Lg = c.
|
|
3623
|
-
return (Lg = c.
|
|
3624
|
-
}, Mg = c.
|
|
3625
|
-
return (Mg = c.
|
|
3626
|
-
}, Ng = c.
|
|
3627
|
-
return (Ng = c.
|
|
3628
|
-
}, Og = c.
|
|
3629
|
-
return (Og = c.
|
|
3630
|
-
}, Pg = c.
|
|
3631
|
-
return (Pg = c.
|
|
3632
|
-
}, Qg = c.
|
|
3633
|
-
return (Qg = c.
|
|
3634
|
-
}, Rg = c.
|
|
3635
|
-
return (Rg = c.
|
|
3636
|
-
}, Sg = c.
|
|
3637
|
-
return (Sg = c.
|
|
3638
|
-
}, Tg = c.
|
|
3639
|
-
return (Tg = c.
|
|
3640
|
-
}, Ug = c.
|
|
3641
|
-
return (Ug = c.
|
|
3642
|
-
}, Vg = c.
|
|
3643
|
-
return (Vg = c.
|
|
3644
|
-
}, Wg = c.
|
|
3645
|
-
return (Wg = c.
|
|
3646
|
-
}, Xg = c.
|
|
3647
|
-
return (Xg = c.
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
);
|
|
3660
|
-
},
|
|
3661
|
-
return (
|
|
3662
|
-
},
|
|
3663
|
-
return (
|
|
3664
|
-
},
|
|
3665
|
-
return (
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
return (eh = c._emscripten_bind_MdDbText_oblique_0 = c.asm.emscripten_bind_MdDbText_oblique_0).apply(null, arguments);
|
|
3673
|
-
}, fh = c._emscripten_bind_MdDbText_setOblique_1 = function() {
|
|
3674
|
-
return (fh = c._emscripten_bind_MdDbText_setOblique_1 = c.asm.emscripten_bind_MdDbText_setOblique_1).apply(
|
|
3675
|
-
null,
|
|
3676
|
-
arguments
|
|
3677
|
-
);
|
|
3678
|
-
}, gh = c._emscripten_bind_MdDbText_rotation_0 = function() {
|
|
3679
|
-
return (gh = c._emscripten_bind_MdDbText_rotation_0 = c.asm.emscripten_bind_MdDbText_rotation_0).apply(null, arguments);
|
|
3680
|
-
}, hh = c._emscripten_bind_MdDbText_setRotation_1 = function() {
|
|
3681
|
-
return (hh = c._emscripten_bind_MdDbText_setRotation_1 = c.asm.emscripten_bind_MdDbText_setRotation_1).apply(null, arguments);
|
|
3682
|
-
}, ih = c._emscripten_bind_MdDbText_height_0 = function() {
|
|
3683
|
-
return (ih = c._emscripten_bind_MdDbText_height_0 = c.asm.emscripten_bind_MdDbText_height_0).apply(
|
|
3670
|
+
}, Ag = c._emscripten_bind_McObject_DrawEntity_1 = function() {
|
|
3671
|
+
return (Ag = c._emscripten_bind_McObject_DrawEntity_1 = c.asm.emscripten_bind_McObject_DrawEntity_1).apply(null, arguments);
|
|
3672
|
+
}, Bg = c._emscripten_bind_McApp_McApp_0 = function() {
|
|
3673
|
+
return (Bg = c._emscripten_bind_McApp_McApp_0 = c.asm.emscripten_bind_McApp_McApp_0).apply(null, arguments);
|
|
3674
|
+
}, Cg = c._emscripten_bind_McApp_Init_0 = function() {
|
|
3675
|
+
return (Cg = c._emscripten_bind_McApp_Init_0 = c.asm.emscripten_bind_McApp_Init_0).apply(null, arguments);
|
|
3676
|
+
}, Dg = c._emscripten_bind_McApp_CreateMxDraw_5 = function() {
|
|
3677
|
+
return (Dg = c._emscripten_bind_McApp_CreateMxDraw_5 = c.asm.emscripten_bind_McApp_CreateMxDraw_5).apply(null, arguments);
|
|
3678
|
+
}, Eg = c._emscripten_bind_McApp_GetCurrentMxDraw_0 = function() {
|
|
3679
|
+
return (Eg = c._emscripten_bind_McApp_GetCurrentMxDraw_0 = c.asm.emscripten_bind_McApp_GetCurrentMxDraw_0).apply(null, arguments);
|
|
3680
|
+
}, Fg = c._emscripten_bind_McApp_DestroyObject_1 = function() {
|
|
3681
|
+
return (Fg = c._emscripten_bind_McApp_DestroyObject_1 = c.asm.emscripten_bind_McApp_DestroyObject_1).apply(null, arguments);
|
|
3682
|
+
}, Gg = c._emscripten_bind_McApp_mcedRGB2Index_4 = function() {
|
|
3683
|
+
return (Gg = c._emscripten_bind_McApp_mcedRGB2Index_4 = c.asm.emscripten_bind_McApp_mcedRGB2Index_4).apply(null, arguments);
|
|
3684
|
+
}, Hg = c._emscripten_bind_McApp_ObjectIdToObjectName_1 = function() {
|
|
3685
|
+
return (Hg = c._emscripten_bind_McApp_ObjectIdToObjectName_1 = c.asm.emscripten_bind_McApp_ObjectIdToObjectName_1).apply(null, arguments);
|
|
3686
|
+
}, Ig = c._emscripten_bind_McApp_ObjectIdToMdDbLine_1 = function() {
|
|
3687
|
+
return (Ig = c._emscripten_bind_McApp_ObjectIdToMdDbLine_1 = c.asm.emscripten_bind_McApp_ObjectIdToMdDbLine_1).apply(null, arguments);
|
|
3688
|
+
}, Jg = c._emscripten_bind_McApp_ObjectIdToMdDbText_1 = function() {
|
|
3689
|
+
return (Jg = c._emscripten_bind_McApp_ObjectIdToMdDbText_1 = c.asm.emscripten_bind_McApp_ObjectIdToMdDbText_1).apply(null, arguments);
|
|
3690
|
+
}, Kg = c._emscripten_bind_McApp_ObjectIdToMdObject_1 = function() {
|
|
3691
|
+
return (Kg = c._emscripten_bind_McApp_ObjectIdToMdObject_1 = c.asm.emscripten_bind_McApp_ObjectIdToMdObject_1).apply(null, arguments);
|
|
3692
|
+
}, Lg = c._emscripten_bind_McApp___destroy___0 = function() {
|
|
3693
|
+
return (Lg = c._emscripten_bind_McApp___destroy___0 = c.asm.emscripten_bind_McApp___destroy___0).apply(null, arguments);
|
|
3694
|
+
}, Mg = c._emscripten_bind_MdDbLine_MdDbLine_0 = function() {
|
|
3695
|
+
return (Mg = c._emscripten_bind_MdDbLine_MdDbLine_0 = c.asm.emscripten_bind_MdDbLine_MdDbLine_0).apply(null, arguments);
|
|
3696
|
+
}, Ng = c._emscripten_bind_MdDbLine_startPoint_0 = function() {
|
|
3697
|
+
return (Ng = c._emscripten_bind_MdDbLine_startPoint_0 = c.asm.emscripten_bind_MdDbLine_startPoint_0).apply(null, arguments);
|
|
3698
|
+
}, Og = c._emscripten_bind_MdDbLine_setStartPoint_1 = function() {
|
|
3699
|
+
return (Og = c._emscripten_bind_MdDbLine_setStartPoint_1 = c.asm.emscripten_bind_MdDbLine_setStartPoint_1).apply(null, arguments);
|
|
3700
|
+
}, Pg = c._emscripten_bind_MdDbLine_endPoint_0 = function() {
|
|
3701
|
+
return (Pg = c._emscripten_bind_MdDbLine_endPoint_0 = c.asm.emscripten_bind_MdDbLine_endPoint_0).apply(null, arguments);
|
|
3702
|
+
}, Qg = c._emscripten_bind_MdDbLine_setEndPoint_1 = function() {
|
|
3703
|
+
return (Qg = c._emscripten_bind_MdDbLine_setEndPoint_1 = c.asm.emscripten_bind_MdDbLine_setEndPoint_1).apply(null, arguments);
|
|
3704
|
+
}, Rg = c._emscripten_bind_MdDbLine_getObjectID_0 = function() {
|
|
3705
|
+
return (Rg = c._emscripten_bind_MdDbLine_getObjectID_0 = c.asm.emscripten_bind_MdDbLine_getObjectID_0).apply(null, arguments);
|
|
3706
|
+
}, Sg = c._emscripten_bind_MdDbLine_Erase_0 = function() {
|
|
3707
|
+
return (Sg = c._emscripten_bind_MdDbLine_Erase_0 = c.asm.emscripten_bind_MdDbLine_Erase_0).apply(null, arguments);
|
|
3708
|
+
}, Tg = c._emscripten_bind_MdDbLine_ConnectionTempObject_1 = function() {
|
|
3709
|
+
return (Tg = c._emscripten_bind_MdDbLine_ConnectionTempObject_1 = c.asm.emscripten_bind_MdDbLine_ConnectionTempObject_1).apply(null, arguments);
|
|
3710
|
+
}, Ug = c._emscripten_bind_MdDbLine_Clone_0 = function() {
|
|
3711
|
+
return (Ug = c._emscripten_bind_MdDbLine_Clone_0 = c.asm.emscripten_bind_MdDbLine_Clone_0).apply(null, arguments);
|
|
3712
|
+
}, Vg = c._emscripten_bind_MdDbLine_moveGripPointsAt_4 = function() {
|
|
3713
|
+
return (Vg = c._emscripten_bind_MdDbLine_moveGripPointsAt_4 = c.asm.emscripten_bind_MdDbLine_moveGripPointsAt_4).apply(null, arguments);
|
|
3714
|
+
}, Wg = c._emscripten_bind_MdDbLine_getObjectName_0 = function() {
|
|
3715
|
+
return (Wg = c._emscripten_bind_MdDbLine_getObjectName_0 = c.asm.emscripten_bind_MdDbLine_getObjectName_0).apply(null, arguments);
|
|
3716
|
+
}, Xg = c._emscripten_bind_MdDbLine_getDxf0_0 = function() {
|
|
3717
|
+
return (Xg = c._emscripten_bind_MdDbLine_getDxf0_0 = c.asm.emscripten_bind_MdDbLine_getDxf0_0).apply(null, arguments);
|
|
3718
|
+
}, Yg = c._emscripten_bind_MdDbLine_getJson_0 = function() {
|
|
3719
|
+
return (Yg = c._emscripten_bind_MdDbLine_getJson_0 = c.asm.emscripten_bind_MdDbLine_getJson_0).apply(null, arguments);
|
|
3720
|
+
}, Zg = c._emscripten_bind_MdDbLine_setJson_1 = function() {
|
|
3721
|
+
return (Zg = c._emscripten_bind_MdDbLine_setJson_1 = c.asm.emscripten_bind_MdDbLine_setJson_1).apply(null, arguments);
|
|
3722
|
+
}, $g = c._emscripten_bind_MdDbLine___destroy___0 = function() {
|
|
3723
|
+
return ($g = c._emscripten_bind_MdDbLine___destroy___0 = c.asm.emscripten_bind_MdDbLine___destroy___0).apply(null, arguments);
|
|
3724
|
+
}, ah = c._emscripten_bind_MdDbText_MdDbText_0 = function() {
|
|
3725
|
+
return (ah = c._emscripten_bind_MdDbText_MdDbText_0 = c.asm.emscripten_bind_MdDbText_MdDbText_0).apply(null, arguments);
|
|
3726
|
+
}, bh = c._emscripten_bind_MdDbText_position_0 = function() {
|
|
3727
|
+
return (bh = c._emscripten_bind_MdDbText_position_0 = c.asm.emscripten_bind_MdDbText_position_0).apply(null, arguments);
|
|
3728
|
+
}, ch = c._emscripten_bind_MdDbText_setPosition_1 = function() {
|
|
3729
|
+
return (ch = c._emscripten_bind_MdDbText_setPosition_1 = c.asm.emscripten_bind_MdDbText_setPosition_1).apply(null, arguments);
|
|
3730
|
+
}, dh = c._emscripten_bind_MdDbText_alignmentPoint_0 = function() {
|
|
3731
|
+
return (dh = c._emscripten_bind_MdDbText_alignmentPoint_0 = c.asm.emscripten_bind_MdDbText_alignmentPoint_0).apply(null, arguments);
|
|
3732
|
+
}, eh = c._emscripten_bind_MdDbText_setAlignmentPoint_1 = function() {
|
|
3733
|
+
return (eh = c._emscripten_bind_MdDbText_setAlignmentPoint_1 = c.asm.emscripten_bind_MdDbText_setAlignmentPoint_1).apply(null, arguments);
|
|
3734
|
+
}, fh = c._emscripten_bind_MdDbText_oblique_0 = function() {
|
|
3735
|
+
return (fh = c._emscripten_bind_MdDbText_oblique_0 = c.asm.emscripten_bind_MdDbText_oblique_0).apply(null, arguments);
|
|
3736
|
+
}, gh = c._emscripten_bind_MdDbText_setOblique_1 = function() {
|
|
3737
|
+
return (gh = c._emscripten_bind_MdDbText_setOblique_1 = c.asm.emscripten_bind_MdDbText_setOblique_1).apply(null, arguments);
|
|
3738
|
+
}, hh = c._emscripten_bind_MdDbText_rotation_0 = function() {
|
|
3739
|
+
return (hh = c._emscripten_bind_MdDbText_rotation_0 = c.asm.emscripten_bind_MdDbText_rotation_0).apply(null, arguments);
|
|
3740
|
+
}, ih = c._emscripten_bind_MdDbText_setRotation_1 = function() {
|
|
3741
|
+
return (ih = c._emscripten_bind_MdDbText_setRotation_1 = c.asm.emscripten_bind_MdDbText_setRotation_1).apply(
|
|
3684
3742
|
null,
|
|
3685
3743
|
arguments
|
|
3686
3744
|
);
|
|
3687
|
-
}, jh = c.
|
|
3688
|
-
return (jh = c.
|
|
3689
|
-
}, kh = c.
|
|
3690
|
-
return (kh = c.
|
|
3691
|
-
}, lh = c.
|
|
3692
|
-
return (lh = c.
|
|
3745
|
+
}, jh = c._emscripten_bind_MdDbText_height_0 = function() {
|
|
3746
|
+
return (jh = c._emscripten_bind_MdDbText_height_0 = c.asm.emscripten_bind_MdDbText_height_0).apply(null, arguments);
|
|
3747
|
+
}, kh = c._emscripten_bind_MdDbText_setHeight_1 = function() {
|
|
3748
|
+
return (kh = c._emscripten_bind_MdDbText_setHeight_1 = c.asm.emscripten_bind_MdDbText_setHeight_1).apply(null, arguments);
|
|
3749
|
+
}, lh = c._emscripten_bind_MdDbText_widthFactor_0 = function() {
|
|
3750
|
+
return (lh = c._emscripten_bind_MdDbText_widthFactor_0 = c.asm.emscripten_bind_MdDbText_widthFactor_0).apply(
|
|
3693
3751
|
null,
|
|
3694
3752
|
arguments
|
|
3695
3753
|
);
|
|
3696
|
-
}, mh = c.
|
|
3697
|
-
return (mh = c.
|
|
3698
|
-
}, nh = c.
|
|
3699
|
-
return (nh = c.
|
|
3700
|
-
}, oh = c.
|
|
3701
|
-
return (oh = c.
|
|
3754
|
+
}, mh = c._emscripten_bind_MdDbText_setWidthFactor_1 = function() {
|
|
3755
|
+
return (mh = c._emscripten_bind_MdDbText_setWidthFactor_1 = c.asm.emscripten_bind_MdDbText_setWidthFactor_1).apply(null, arguments);
|
|
3756
|
+
}, nh = c._emscripten_bind_MdDbText_textString_0 = function() {
|
|
3757
|
+
return (nh = c._emscripten_bind_MdDbText_textString_0 = c.asm.emscripten_bind_MdDbText_textString_0).apply(null, arguments);
|
|
3758
|
+
}, oh = c._emscripten_bind_MdDbText_setTextString_1 = function() {
|
|
3759
|
+
return (oh = c._emscripten_bind_MdDbText_setTextString_1 = c.asm.emscripten_bind_MdDbText_setTextString_1).apply(
|
|
3702
3760
|
null,
|
|
3703
3761
|
arguments
|
|
3704
3762
|
);
|
|
3705
|
-
}, ph = c.
|
|
3706
|
-
return (ph = c.
|
|
3707
|
-
}, qh = c.
|
|
3708
|
-
return (qh = c.
|
|
3709
|
-
}, rh = c.
|
|
3710
|
-
return (rh = c.
|
|
3711
|
-
}, sh = c.
|
|
3712
|
-
return (sh = c.
|
|
3713
|
-
}, th = c.
|
|
3714
|
-
return (th = c.
|
|
3715
|
-
}, uh = c.
|
|
3716
|
-
return (uh = c.
|
|
3717
|
-
}, vh = c.
|
|
3718
|
-
return (vh = c.
|
|
3719
|
-
}, wh = c.
|
|
3720
|
-
return (wh = c.
|
|
3721
|
-
}, xh = c.
|
|
3722
|
-
return (xh = c.
|
|
3723
|
-
}, yh = c.
|
|
3724
|
-
return (yh = c.
|
|
3725
|
-
}, zh = c.
|
|
3726
|
-
return (zh = c.
|
|
3727
|
-
}, Ah = c.
|
|
3728
|
-
return (Ah = c.
|
|
3729
|
-
}, Bh = c.
|
|
3730
|
-
return (Bh = c.
|
|
3763
|
+
}, ph = c._emscripten_bind_MdDbText_horizontalMode_0 = function() {
|
|
3764
|
+
return (ph = c._emscripten_bind_MdDbText_horizontalMode_0 = c.asm.emscripten_bind_MdDbText_horizontalMode_0).apply(null, arguments);
|
|
3765
|
+
}, qh = c._emscripten_bind_MdDbText_setHorizontalMode_1 = function() {
|
|
3766
|
+
return (qh = c._emscripten_bind_MdDbText_setHorizontalMode_1 = c.asm.emscripten_bind_MdDbText_setHorizontalMode_1).apply(null, arguments);
|
|
3767
|
+
}, rh = c._emscripten_bind_MdDbText_verticalMode_0 = function() {
|
|
3768
|
+
return (rh = c._emscripten_bind_MdDbText_verticalMode_0 = c.asm.emscripten_bind_MdDbText_verticalMode_0).apply(null, arguments);
|
|
3769
|
+
}, sh = c._emscripten_bind_MdDbText_setVerticalMode_1 = function() {
|
|
3770
|
+
return (sh = c._emscripten_bind_MdDbText_setVerticalMode_1 = c.asm.emscripten_bind_MdDbText_setVerticalMode_1).apply(null, arguments);
|
|
3771
|
+
}, th = c._emscripten_bind_MdDbText_getObjectID_0 = function() {
|
|
3772
|
+
return (th = c._emscripten_bind_MdDbText_getObjectID_0 = c.asm.emscripten_bind_MdDbText_getObjectID_0).apply(null, arguments);
|
|
3773
|
+
}, uh = c._emscripten_bind_MdDbText_Erase_0 = function() {
|
|
3774
|
+
return (uh = c._emscripten_bind_MdDbText_Erase_0 = c.asm.emscripten_bind_MdDbText_Erase_0).apply(null, arguments);
|
|
3775
|
+
}, vh = c._emscripten_bind_MdDbText_ConnectionTempObject_1 = function() {
|
|
3776
|
+
return (vh = c._emscripten_bind_MdDbText_ConnectionTempObject_1 = c.asm.emscripten_bind_MdDbText_ConnectionTempObject_1).apply(null, arguments);
|
|
3777
|
+
}, wh = c._emscripten_bind_MdDbText_Clone_0 = function() {
|
|
3778
|
+
return (wh = c._emscripten_bind_MdDbText_Clone_0 = c.asm.emscripten_bind_MdDbText_Clone_0).apply(null, arguments);
|
|
3779
|
+
}, xh = c._emscripten_bind_MdDbText_moveGripPointsAt_4 = function() {
|
|
3780
|
+
return (xh = c._emscripten_bind_MdDbText_moveGripPointsAt_4 = c.asm.emscripten_bind_MdDbText_moveGripPointsAt_4).apply(null, arguments);
|
|
3781
|
+
}, yh = c._emscripten_bind_MdDbText_getObjectName_0 = function() {
|
|
3782
|
+
return (yh = c._emscripten_bind_MdDbText_getObjectName_0 = c.asm.emscripten_bind_MdDbText_getObjectName_0).apply(null, arguments);
|
|
3783
|
+
}, zh = c._emscripten_bind_MdDbText_getDxf0_0 = function() {
|
|
3784
|
+
return (zh = c._emscripten_bind_MdDbText_getDxf0_0 = c.asm.emscripten_bind_MdDbText_getDxf0_0).apply(null, arguments);
|
|
3785
|
+
}, Ah = c._emscripten_bind_MdDbText_getJson_0 = function() {
|
|
3786
|
+
return (Ah = c._emscripten_bind_MdDbText_getJson_0 = c.asm.emscripten_bind_MdDbText_getJson_0).apply(null, arguments);
|
|
3787
|
+
}, Bh = c._emscripten_bind_MdDbText_setJson_1 = function() {
|
|
3788
|
+
return (Bh = c._emscripten_bind_MdDbText_setJson_1 = c.asm.emscripten_bind_MdDbText_setJson_1).apply(null, arguments);
|
|
3789
|
+
}, Ch = c._emscripten_bind_MdDbText___destroy___0 = function() {
|
|
3790
|
+
return (Ch = c._emscripten_bind_MdDbText___destroy___0 = c.asm.emscripten_bind_MdDbText___destroy___0).apply(null, arguments);
|
|
3731
3791
|
}, oc = c._malloc = function() {
|
|
3732
3792
|
return (oc = c._malloc = c.asm.malloc).apply(null, arguments);
|
|
3733
3793
|
}, pc = c._free = function() {
|
|
@@ -3736,14 +3796,14 @@ var mxdrawassembly = (() => {
|
|
|
3736
3796
|
function hd() {
|
|
3737
3797
|
return (hd = c.asm.__errno_location).apply(null, arguments);
|
|
3738
3798
|
}
|
|
3739
|
-
function Ch() {
|
|
3740
|
-
return (Ch = c.asm.setThrew).apply(null, arguments);
|
|
3741
|
-
}
|
|
3742
3799
|
function Dh() {
|
|
3743
|
-
return (Dh = c.asm.
|
|
3800
|
+
return (Dh = c.asm.setThrew).apply(null, arguments);
|
|
3744
3801
|
}
|
|
3745
3802
|
function Eh() {
|
|
3746
|
-
return (Eh = c.asm.
|
|
3803
|
+
return (Eh = c.asm.stackSave).apply(null, arguments);
|
|
3804
|
+
}
|
|
3805
|
+
function Fh() {
|
|
3806
|
+
return (Fh = c.asm.stackRestore).apply(null, arguments);
|
|
3747
3807
|
}
|
|
3748
3808
|
c.dynCall_iijj = function() {
|
|
3749
3809
|
return (c.dynCall_iijj = c.asm.dynCall_iijj).apply(null, arguments);
|
|
@@ -3779,52 +3839,52 @@ var mxdrawassembly = (() => {
|
|
|
3779
3839
|
return (c.dynCall_iiiiiijj = c.asm.dynCall_iiiiiijj).apply(null, arguments);
|
|
3780
3840
|
}, c.___start_em_js = 249904, c.___stop_em_js = 250002;
|
|
3781
3841
|
function md(e, r, F) {
|
|
3782
|
-
var i =
|
|
3842
|
+
var i = Eh();
|
|
3783
3843
|
try {
|
|
3784
3844
|
vc(e)(r, F);
|
|
3785
3845
|
} catch (o) {
|
|
3786
|
-
if (
|
|
3846
|
+
if (Fh(i), o !== o + 0)
|
|
3787
3847
|
throw o;
|
|
3788
|
-
|
|
3848
|
+
Dh(1, 0);
|
|
3789
3849
|
}
|
|
3790
3850
|
}
|
|
3791
3851
|
function ld(e, r) {
|
|
3792
|
-
var F =
|
|
3852
|
+
var F = Eh();
|
|
3793
3853
|
try {
|
|
3794
3854
|
vc(e)(r);
|
|
3795
3855
|
} catch (i) {
|
|
3796
|
-
if (
|
|
3856
|
+
if (Fh(F), i !== i + 0)
|
|
3797
3857
|
throw i;
|
|
3798
|
-
|
|
3858
|
+
Dh(1, 0);
|
|
3799
3859
|
}
|
|
3800
3860
|
}
|
|
3801
3861
|
function jd(e, r) {
|
|
3802
|
-
var F =
|
|
3862
|
+
var F = Eh();
|
|
3803
3863
|
try {
|
|
3804
3864
|
return vc(e)(r);
|
|
3805
3865
|
} catch (i) {
|
|
3806
|
-
if (
|
|
3866
|
+
if (Fh(F), i !== i + 0)
|
|
3807
3867
|
throw i;
|
|
3808
|
-
|
|
3868
|
+
Dh(1, 0);
|
|
3809
3869
|
}
|
|
3810
3870
|
}
|
|
3811
3871
|
function kd(e, r, F, i) {
|
|
3812
|
-
var o =
|
|
3872
|
+
var o = Eh();
|
|
3813
3873
|
try {
|
|
3814
3874
|
return vc(e)(r, F, i);
|
|
3815
3875
|
} catch (s) {
|
|
3816
|
-
if (
|
|
3876
|
+
if (Fh(o), s !== s + 0)
|
|
3817
3877
|
throw s;
|
|
3818
|
-
|
|
3878
|
+
Dh(1, 0);
|
|
3819
3879
|
}
|
|
3820
3880
|
}
|
|
3821
|
-
var
|
|
3881
|
+
var Gh;
|
|
3822
3882
|
Ma = function e() {
|
|
3823
|
-
|
|
3883
|
+
Gh || Ih(), Gh || (Ma = e);
|
|
3824
3884
|
};
|
|
3825
|
-
function
|
|
3885
|
+
function Ih() {
|
|
3826
3886
|
function e() {
|
|
3827
|
-
if (!
|
|
3887
|
+
if (!Gh && (Gh = !0, c.calledRun = !0, !wa)) {
|
|
3828
3888
|
if (c.noFSInit || Ub || (Ub = !0, Tb(), c.stdin = c.stdin, c.stdout = c.stdout, c.stderr = c.stderr, c.stdin ? Xb("stdin", c.stdin) : Ob("/dev/tty", "/dev/stdin"), c.stdout ? Xb("stdout", null, c.stdout) : Ob("/dev/tty", "/dev/stdout"), c.stderr ? Xb("stderr", null, c.stderr) : Ob("/dev/tty1", "/dev/stderr"), Rb("/dev/stdin", 0), Rb("/dev/stdout", 1), Rb("/dev/stderr", 1)), wb = !1, $a(Ha), aa(c), c.onRuntimeInitialized && c.onRuntimeInitialized(), c.postRun)
|
|
3829
3889
|
for (typeof c.postRun == "function" && (c.postRun = [c.postRun]); c.postRun.length; ) {
|
|
3830
3890
|
var r = c.postRun.shift();
|
|
@@ -3847,24 +3907,24 @@ var mxdrawassembly = (() => {
|
|
|
3847
3907
|
if (c.preInit)
|
|
3848
3908
|
for (typeof c.preInit == "function" && (c.preInit = [c.preInit]); 0 < c.preInit.length; )
|
|
3849
3909
|
c.preInit.pop()();
|
|
3850
|
-
|
|
3851
|
-
function
|
|
3910
|
+
Ih();
|
|
3911
|
+
function Jh() {
|
|
3852
3912
|
}
|
|
3853
|
-
|
|
3854
|
-
function
|
|
3855
|
-
return (e ||
|
|
3913
|
+
Jh.prototype = Object.create(Jh.prototype), Jh.prototype.constructor = Jh, Jh.prototype.m = Jh, Jh.o = {}, c.WrapperObject = Jh;
|
|
3914
|
+
function Kh(e) {
|
|
3915
|
+
return (e || Jh).o;
|
|
3856
3916
|
}
|
|
3857
|
-
c.getCache =
|
|
3917
|
+
c.getCache = Kh;
|
|
3858
3918
|
function G(e, r) {
|
|
3859
|
-
var F =
|
|
3860
|
-
return i || (i = Object.create((r ||
|
|
3919
|
+
var F = Kh(r), i = F[e];
|
|
3920
|
+
return i || (i = Object.create((r || Jh).prototype), i.g = e, F[e] = i);
|
|
3861
3921
|
}
|
|
3862
3922
|
c.wrapPointer = G, c.castObject = function(e, r) {
|
|
3863
3923
|
return G(e.g, r);
|
|
3864
3924
|
}, c.NULL = G(0), c.destroy = function(e) {
|
|
3865
3925
|
if (!e.__destroy__)
|
|
3866
3926
|
throw "Error: Cannot destroy object. (Did you create it yourself?)";
|
|
3867
|
-
e.__destroy__(), delete
|
|
3927
|
+
e.__destroy__(), delete Kh(e.m)[e.g];
|
|
3868
3928
|
}, c.compare = function(e, r) {
|
|
3869
3929
|
return e.g === r.g;
|
|
3870
3930
|
}, c.getPointer = function(e) {
|
|
@@ -3872,19 +3932,19 @@ var mxdrawassembly = (() => {
|
|
|
3872
3932
|
}, c.getClass = function(e) {
|
|
3873
3933
|
return e.m;
|
|
3874
3934
|
};
|
|
3875
|
-
var
|
|
3935
|
+
var Lh = 0, Mh = 0, Nh = 0, Oh = [], Ph = 0;
|
|
3876
3936
|
function H() {
|
|
3877
|
-
if (
|
|
3878
|
-
for (var e = 0; e <
|
|
3879
|
-
c._free(
|
|
3880
|
-
|
|
3937
|
+
if (Ph) {
|
|
3938
|
+
for (var e = 0; e < Oh.length; e++)
|
|
3939
|
+
c._free(Oh[e]);
|
|
3940
|
+
Oh.length = 0, c._free(Lh), Lh = 0, Mh += Ph, Ph = 0;
|
|
3881
3941
|
}
|
|
3882
|
-
|
|
3942
|
+
Lh || (Mh += 128, (Lh = c._malloc(Mh)) || ua()), Nh = 0;
|
|
3883
3943
|
}
|
|
3884
|
-
function
|
|
3885
|
-
return
|
|
3944
|
+
function Qh(e, r) {
|
|
3945
|
+
return Lh || ua(), e = e.length * r.BYTES_PER_ELEMENT, e = e + 7 & -8, Nh + e >= Mh ? (0 < e || ua(), Ph += e, r = c._malloc(e), Oh.push(r)) : (r = Lh + Nh, Nh += e), r;
|
|
3886
3946
|
}
|
|
3887
|
-
function
|
|
3947
|
+
function Rh(e, r, F) {
|
|
3888
3948
|
switch (F >>>= 0, r.BYTES_PER_ELEMENT) {
|
|
3889
3949
|
case 2:
|
|
3890
3950
|
F >>>= 1;
|
|
@@ -3901,35 +3961,35 @@ var mxdrawassembly = (() => {
|
|
|
3901
3961
|
function K(e) {
|
|
3902
3962
|
if (typeof e == "string") {
|
|
3903
3963
|
e = gb(e);
|
|
3904
|
-
var r =
|
|
3905
|
-
return
|
|
3964
|
+
var r = Qh(e, t);
|
|
3965
|
+
return Rh(e, t, r), r;
|
|
3906
3966
|
}
|
|
3907
3967
|
return e;
|
|
3908
3968
|
}
|
|
3909
|
-
function
|
|
3969
|
+
function Sh(e) {
|
|
3910
3970
|
if (typeof e == "object") {
|
|
3911
|
-
var r =
|
|
3912
|
-
return
|
|
3971
|
+
var r = Qh(e, Da);
|
|
3972
|
+
return Rh(e, Da, r), r;
|
|
3913
3973
|
}
|
|
3914
3974
|
return e;
|
|
3915
3975
|
}
|
|
3916
|
-
function
|
|
3976
|
+
function Th() {
|
|
3917
3977
|
throw "cannot construct a MdRxObject, no constructor in IDL";
|
|
3918
3978
|
}
|
|
3919
|
-
|
|
3979
|
+
Th.prototype = Object.create(Jh.prototype), Th.prototype.constructor = Th, Th.prototype.m = Th, Th.o = {}, c.MdRxObject = Th, Th.prototype.getObjectName = function() {
|
|
3920
3980
|
return n(od(this.g));
|
|
3921
|
-
},
|
|
3981
|
+
}, Th.prototype.getDxf0 = function() {
|
|
3922
3982
|
return n(pd(this.g));
|
|
3923
|
-
},
|
|
3983
|
+
}, Th.prototype.getJson = function() {
|
|
3924
3984
|
return n(qd(this.g));
|
|
3925
|
-
},
|
|
3985
|
+
}, Th.prototype.setJson = function(e) {
|
|
3926
3986
|
var r = this.g;
|
|
3927
3987
|
return H(), e = e && typeof e == "object" ? e.g : K(e), !!rd(r, e);
|
|
3928
3988
|
};
|
|
3929
3989
|
function M() {
|
|
3930
3990
|
throw "cannot construct a MdDbObject, no constructor in IDL";
|
|
3931
3991
|
}
|
|
3932
|
-
M.prototype = Object.create(
|
|
3992
|
+
M.prototype = Object.create(Th.prototype), M.prototype.constructor = M, M.prototype.m = M, M.o = {}, c.MdDbObject = M, M.prototype.getObjectID = function() {
|
|
3933
3993
|
return sd(this.g);
|
|
3934
3994
|
}, M.prototype.Erase = function() {
|
|
3935
3995
|
return !!td(this.g);
|
|
@@ -4001,16 +4061,16 @@ var mxdrawassembly = (() => {
|
|
|
4001
4061
|
var r = this.g;
|
|
4002
4062
|
return H(), e = e && typeof e == "object" ? e.g : K(e), !!Sd(r, e);
|
|
4003
4063
|
};
|
|
4004
|
-
function
|
|
4064
|
+
function Uh() {
|
|
4005
4065
|
throw "cannot construct a VoidPtr, no constructor in IDL";
|
|
4006
4066
|
}
|
|
4007
|
-
|
|
4067
|
+
Uh.prototype = Object.create(Jh.prototype), Uh.prototype.constructor = Uh, Uh.prototype.m = Uh, Uh.o = {}, c.VoidPtr = Uh, Uh.prototype.__destroy__ = function() {
|
|
4008
4068
|
Td(this.g);
|
|
4009
4069
|
};
|
|
4010
4070
|
function Q() {
|
|
4011
|
-
this.g = Ud(),
|
|
4071
|
+
this.g = Ud(), Kh(Q)[this.g] = this;
|
|
4012
4072
|
}
|
|
4013
|
-
Q.prototype = Object.create(
|
|
4073
|
+
Q.prototype = Object.create(Jh.prototype), Q.prototype.constructor = Q, Q.prototype.m = Q, Q.o = {}, c.MdCmColor = Q, Q.prototype.setColorIndex = function(e) {
|
|
4014
4074
|
var r = this.g;
|
|
4015
4075
|
e && typeof e == "object" && (e = e.g), Vd(r, e);
|
|
4016
4076
|
}, Q.prototype.setRGB = function(e, r, F) {
|
|
@@ -4050,9 +4110,9 @@ var mxdrawassembly = (() => {
|
|
|
4050
4110
|
ie(this.g);
|
|
4051
4111
|
};
|
|
4052
4112
|
function R(e, r, F) {
|
|
4053
|
-
e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), this.g = e === void 0 ? je() : r === void 0 ? _emscripten_bind_MdGePoint3d_MdGePoint3d_1(e) : F === void 0 ? _emscripten_bind_MdGePoint3d_MdGePoint3d_2(e, r) : ke(e, r, F),
|
|
4113
|
+
e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), this.g = e === void 0 ? je() : r === void 0 ? _emscripten_bind_MdGePoint3d_MdGePoint3d_1(e) : F === void 0 ? _emscripten_bind_MdGePoint3d_MdGePoint3d_2(e, r) : ke(e, r, F), Kh(R)[this.g] = this;
|
|
4054
4114
|
}
|
|
4055
|
-
R.prototype = Object.create(
|
|
4115
|
+
R.prototype = Object.create(Jh.prototype), R.prototype.constructor = R, R.prototype.m = R, R.o = {}, c.MdGePoint3d = R, R.prototype.get_x = R.prototype.Pa = function() {
|
|
4056
4116
|
return le(this.g);
|
|
4057
4117
|
}, R.prototype.set_x = R.prototype.cb = function(e) {
|
|
4058
4118
|
var r = this.g;
|
|
@@ -4120,40 +4180,40 @@ var mxdrawassembly = (() => {
|
|
|
4120
4180
|
var r = this.g;
|
|
4121
4181
|
return H(), e = e && typeof e == "object" ? e.g : K(e), !!Je(r, e);
|
|
4122
4182
|
};
|
|
4123
|
-
function
|
|
4183
|
+
function Vh() {
|
|
4124
4184
|
throw "cannot construct a MdDbTextStyleTable, no constructor in IDL";
|
|
4125
4185
|
}
|
|
4126
|
-
|
|
4186
|
+
Vh.prototype = Object.create(M.prototype), Vh.prototype.constructor = Vh, Vh.prototype.m = Vh, Vh.o = {}, c.MdDbTextStyleTable = Vh, Vh.prototype.getObjectID = function() {
|
|
4127
4187
|
return Ke(this.g);
|
|
4128
|
-
},
|
|
4188
|
+
}, Vh.prototype.Erase = function() {
|
|
4129
4189
|
return !!Le(this.g);
|
|
4130
|
-
},
|
|
4190
|
+
}, Vh.prototype.ConnectionTempObject = function(e) {
|
|
4131
4191
|
var r = this.g;
|
|
4132
4192
|
return e && typeof e == "object" && (e = e.g), !!Me(r, e);
|
|
4133
|
-
},
|
|
4193
|
+
}, Vh.prototype.Clone = function() {
|
|
4134
4194
|
return G(Ne(this.g), M);
|
|
4135
|
-
},
|
|
4195
|
+
}, Vh.prototype.moveGripPointsAt = function(e, r, F, i) {
|
|
4136
4196
|
var o = this.g;
|
|
4137
4197
|
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), !!Oe(o, e, r, F, i);
|
|
4138
|
-
},
|
|
4198
|
+
}, Vh.prototype.getObjectName = function() {
|
|
4139
4199
|
return n(Pe(this.g));
|
|
4140
|
-
},
|
|
4200
|
+
}, Vh.prototype.getDxf0 = function() {
|
|
4141
4201
|
return n(Qe(this.g));
|
|
4142
|
-
},
|
|
4202
|
+
}, Vh.prototype.getJson = function() {
|
|
4143
4203
|
return n(Re(this.g));
|
|
4144
|
-
},
|
|
4204
|
+
}, Vh.prototype.setJson = function(e) {
|
|
4145
4205
|
var r = this.g;
|
|
4146
4206
|
return H(), e = e && typeof e == "object" ? e.g : K(e), !!Se(r, e);
|
|
4147
4207
|
};
|
|
4148
4208
|
function V() {
|
|
4149
4209
|
throw "cannot construct a MdDbDatabase, no constructor in IDL";
|
|
4150
4210
|
}
|
|
4151
|
-
V.prototype = Object.create(
|
|
4211
|
+
V.prototype = Object.create(Th.prototype), V.prototype.constructor = V, V.prototype.m = V, V.o = {}, c.MdDbDatabase = V, V.prototype.GetLayerTable = function() {
|
|
4152
4212
|
return G(Te(this.g), T);
|
|
4153
4213
|
}, V.prototype.GetLinetypeTable = function() {
|
|
4154
4214
|
return G(Ue(this.g), U);
|
|
4155
4215
|
}, V.prototype.GetTextStyleTable = function() {
|
|
4156
|
-
return G(Ve(this.g),
|
|
4216
|
+
return G(Ve(this.g), Vh);
|
|
4157
4217
|
}, V.prototype.GetCurrentlyLineTypeScale = function() {
|
|
4158
4218
|
return We(this.g);
|
|
4159
4219
|
}, V.prototype.SetCurrentlyLineTypeScale = function(e) {
|
|
@@ -4197,9 +4257,9 @@ var mxdrawassembly = (() => {
|
|
|
4197
4257
|
function W() {
|
|
4198
4258
|
throw "cannot construct a McObject, no constructor in IDL";
|
|
4199
4259
|
}
|
|
4200
|
-
W.prototype = Object.create(
|
|
4260
|
+
W.prototype = Object.create(Jh.prototype), W.prototype.constructor = W, W.prototype.m = W, W.o = {}, c.McObject = W, W.prototype.updateDisplay = function(e, r) {
|
|
4201
4261
|
var F = this.g;
|
|
4202
|
-
return H(), typeof e == "object" && (e =
|
|
4262
|
+
return H(), typeof e == "object" && (e = Sh(e)), typeof r == "object" && (r = Sh(r)), !!mf(F, e, r);
|
|
4203
4263
|
}, W.prototype.test = W.prototype.test = function() {
|
|
4204
4264
|
nf(this.g);
|
|
4205
4265
|
}, W.prototype.openWebFile = function(e) {
|
|
@@ -4323,35 +4383,35 @@ var mxdrawassembly = (() => {
|
|
|
4323
4383
|
var s = this.g;
|
|
4324
4384
|
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), fg(s, e, r, F, i, o);
|
|
4325
4385
|
}, W.prototype.DrawEllipseArc = function(e, r, F, i, o, s, _) {
|
|
4326
|
-
var
|
|
4327
|
-
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), gg(
|
|
4386
|
+
var l = this.g;
|
|
4387
|
+
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), gg(l, e, r, F, i, o, s, _);
|
|
4328
4388
|
}, W.prototype.DrawPoint = function(e, r) {
|
|
4329
4389
|
var F = this.g;
|
|
4330
4390
|
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), hg(F, e, r);
|
|
4331
|
-
}, W.prototype.DrawSolid = function(e, r, F, i, o, s, _,
|
|
4332
|
-
var
|
|
4333
|
-
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g),
|
|
4391
|
+
}, W.prototype.DrawSolid = function(e, r, F, i, o, s, _, l) {
|
|
4392
|
+
var m = this.g;
|
|
4393
|
+
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), l && typeof l == "object" && (l = l.g), ig(m, e, r, F, i, o, s, _, l);
|
|
4334
4394
|
}, W.prototype.DrawMText = function(e, r, F, i, o, s, _) {
|
|
4335
|
-
var
|
|
4336
|
-
return H(), e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F = F && typeof F == "object" ? F.g : K(F), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), jg(
|
|
4395
|
+
var l = this.g;
|
|
4396
|
+
return H(), e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F = F && typeof F == "object" ? F.g : K(F), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), jg(l, e, r, F, i, o, s, _);
|
|
4337
4397
|
}, W.prototype.DrawText = function(e, r, F, i, o, s, _) {
|
|
4338
|
-
var
|
|
4339
|
-
return H(), e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F = F && typeof F == "object" ? F.g : K(F), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), kg(
|
|
4398
|
+
var l = this.g;
|
|
4399
|
+
return H(), e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F = F && typeof F == "object" ? F.g : K(F), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), kg(l, e, r, F, i, o, s, _);
|
|
4340
4400
|
}, W.prototype.DrawBlockReference = function(e, r, F, i, o) {
|
|
4341
4401
|
var s = this.g;
|
|
4342
4402
|
return H(), e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F = F && typeof F == "object" ? F.g : K(F), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), lg(s, e, r, F, i, o);
|
|
4343
4403
|
}, W.prototype.DrawDimAligned = function(e, r, F, i, o, s) {
|
|
4344
4404
|
var _ = this.g;
|
|
4345
4405
|
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), mg(_, e, r, F, i, o, s);
|
|
4346
|
-
}, W.prototype.DrawDimAngular = function(e, r, F, i, o, s, _,
|
|
4347
|
-
var
|
|
4348
|
-
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g),
|
|
4406
|
+
}, W.prototype.DrawDimAngular = function(e, r, F, i, o, s, _, l) {
|
|
4407
|
+
var m = this.g;
|
|
4408
|
+
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), l && typeof l == "object" && (l = l.g), ng(m, e, r, F, i, o, s, _, l);
|
|
4349
4409
|
}, W.prototype.DrawDimDiametric = function(e, r, F, i, o) {
|
|
4350
4410
|
var s = this.g;
|
|
4351
4411
|
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), og(s, e, r, F, i, o);
|
|
4352
4412
|
}, W.prototype.DrawDimRotated = function(e, r, F, i, o, s, _) {
|
|
4353
|
-
var
|
|
4354
|
-
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), pg(
|
|
4413
|
+
var l = this.g;
|
|
4414
|
+
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), s && typeof s == "object" && (s = s.g), _ && typeof _ == "object" && (_ = _.g), pg(l, e, r, F, i, o, s, _);
|
|
4355
4415
|
}, W.prototype.DrawDimOrdinate = function(e, r, F, i, o) {
|
|
4356
4416
|
var s = this.g;
|
|
4357
4417
|
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), qg(s, e, r, F, i, o);
|
|
@@ -4379,146 +4439,149 @@ var mxdrawassembly = (() => {
|
|
|
4379
4439
|
}, W.prototype.DrawPathToHatch = function(e) {
|
|
4380
4440
|
var r = this.g;
|
|
4381
4441
|
return e && typeof e == "object" && (e = e.g), zg(r, e);
|
|
4442
|
+
}, W.prototype.DrawEntity = function(e) {
|
|
4443
|
+
var r = this.g;
|
|
4444
|
+
return e && typeof e == "object" && (e = e.g), Ag(r, e);
|
|
4382
4445
|
};
|
|
4383
4446
|
function X() {
|
|
4384
|
-
this.g =
|
|
4447
|
+
this.g = Bg(), Kh(X)[this.g] = this;
|
|
4385
4448
|
}
|
|
4386
|
-
X.prototype = Object.create(
|
|
4387
|
-
|
|
4449
|
+
X.prototype = Object.create(Jh.prototype), X.prototype.constructor = X, X.prototype.m = X, X.o = {}, c.McApp = X, X.prototype.Init = function() {
|
|
4450
|
+
Cg(this.g);
|
|
4388
4451
|
}, X.prototype.CreateMxDraw = function(e, r, F, i, o) {
|
|
4389
4452
|
var s = this.g;
|
|
4390
|
-
return H(), e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F = F && typeof F == "object" ? F.g : K(F), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), G(
|
|
4453
|
+
return H(), e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F = F && typeof F == "object" ? F.g : K(F), i && typeof i == "object" && (i = i.g), o && typeof o == "object" && (o = o.g), G(Dg(s, e, r, F, i, o), W);
|
|
4391
4454
|
}, X.prototype.GetCurrentMxDraw = function() {
|
|
4392
|
-
return G(
|
|
4455
|
+
return G(Eg(this.g), W);
|
|
4393
4456
|
}, X.prototype.DestroyObject = function(e) {
|
|
4394
4457
|
var r = this.g;
|
|
4395
|
-
e && typeof e == "object" && (e = e.g),
|
|
4458
|
+
e && typeof e == "object" && (e = e.g), Fg(r, e);
|
|
4396
4459
|
}, X.prototype.mcedRGB2Index = function(e, r, F, i) {
|
|
4397
4460
|
var o = this.g;
|
|
4398
|
-
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g),
|
|
4461
|
+
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), Gg(o, e, r, F, i);
|
|
4399
4462
|
}, X.prototype.ObjectIdToObjectName = function(e) {
|
|
4400
4463
|
var r = this.g;
|
|
4401
|
-
return e && typeof e == "object" && (e = e.g), n(
|
|
4464
|
+
return e && typeof e == "object" && (e = e.g), n(Hg(r, e));
|
|
4402
4465
|
}, X.prototype.ObjectIdToMdDbLine = function(e) {
|
|
4403
4466
|
var r = this.g;
|
|
4404
|
-
return e && typeof e == "object" && (e = e.g), G(
|
|
4467
|
+
return e && typeof e == "object" && (e = e.g), G(Ig(r, e), Y);
|
|
4405
4468
|
}, X.prototype.ObjectIdToMdDbText = function(e) {
|
|
4406
4469
|
var r = this.g;
|
|
4407
|
-
return e && typeof e == "object" && (e = e.g), G(
|
|
4470
|
+
return e && typeof e == "object" && (e = e.g), G(Jg(r, e), Z);
|
|
4408
4471
|
}, X.prototype.ObjectIdToMdObject = function(e) {
|
|
4409
4472
|
var r = this.g;
|
|
4410
|
-
return e && typeof e == "object" && (e = e.g), G(
|
|
4473
|
+
return e && typeof e == "object" && (e = e.g), G(Kg(r, e), M);
|
|
4411
4474
|
}, X.prototype.__destroy__ = function() {
|
|
4412
|
-
|
|
4475
|
+
Lg(this.g);
|
|
4413
4476
|
};
|
|
4414
4477
|
function Y() {
|
|
4415
|
-
this.g =
|
|
4478
|
+
this.g = Mg(), Kh(Y)[this.g] = this;
|
|
4416
4479
|
}
|
|
4417
4480
|
Y.prototype = Object.create(P.prototype), Y.prototype.constructor = Y, Y.prototype.m = Y, Y.o = {}, c.MdDbLine = Y, Y.prototype.startPoint = function() {
|
|
4418
|
-
return G(
|
|
4481
|
+
return G(Ng(this.g), R);
|
|
4419
4482
|
}, Y.prototype.setStartPoint = function(e) {
|
|
4420
4483
|
var r = this.g;
|
|
4421
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4484
|
+
return e && typeof e == "object" && (e = e.g), !!Og(r, e);
|
|
4422
4485
|
}, Y.prototype.endPoint = function() {
|
|
4423
|
-
return G(
|
|
4486
|
+
return G(Pg(this.g), R);
|
|
4424
4487
|
}, Y.prototype.setEndPoint = Y.prototype.setEndPoint = function(e) {
|
|
4425
4488
|
var r = this.g;
|
|
4426
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4489
|
+
return e && typeof e == "object" && (e = e.g), !!Qg(r, e);
|
|
4427
4490
|
}, Y.prototype.getObjectID = function() {
|
|
4428
|
-
return
|
|
4491
|
+
return Rg(this.g);
|
|
4429
4492
|
}, Y.prototype.Erase = function() {
|
|
4430
|
-
return !!
|
|
4493
|
+
return !!Sg(this.g);
|
|
4431
4494
|
}, Y.prototype.ConnectionTempObject = function(e) {
|
|
4432
4495
|
var r = this.g;
|
|
4433
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4496
|
+
return e && typeof e == "object" && (e = e.g), !!Tg(r, e);
|
|
4434
4497
|
}, Y.prototype.Clone = function() {
|
|
4435
|
-
return G(
|
|
4498
|
+
return G(Ug(this.g), M);
|
|
4436
4499
|
}, Y.prototype.moveGripPointsAt = function(e, r, F, i) {
|
|
4437
4500
|
var o = this.g;
|
|
4438
|
-
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), !!
|
|
4501
|
+
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), !!Vg(o, e, r, F, i);
|
|
4439
4502
|
}, Y.prototype.getObjectName = function() {
|
|
4440
|
-
return n(Vg(this.g));
|
|
4441
|
-
}, Y.prototype.getDxf0 = function() {
|
|
4442
4503
|
return n(Wg(this.g));
|
|
4443
|
-
}, Y.prototype.
|
|
4504
|
+
}, Y.prototype.getDxf0 = function() {
|
|
4444
4505
|
return n(Xg(this.g));
|
|
4506
|
+
}, Y.prototype.getJson = function() {
|
|
4507
|
+
return n(Yg(this.g));
|
|
4445
4508
|
}, Y.prototype.setJson = function(e) {
|
|
4446
4509
|
var r = this.g;
|
|
4447
|
-
return H(), e = e && typeof e == "object" ? e.g : K(e), !!
|
|
4510
|
+
return H(), e = e && typeof e == "object" ? e.g : K(e), !!Zg(r, e);
|
|
4448
4511
|
}, Y.prototype.__destroy__ = function() {
|
|
4449
|
-
|
|
4512
|
+
$g(this.g);
|
|
4450
4513
|
};
|
|
4451
4514
|
function Z() {
|
|
4452
|
-
this.g =
|
|
4515
|
+
this.g = ah(), Kh(Z)[this.g] = this;
|
|
4453
4516
|
}
|
|
4454
4517
|
return Z.prototype = Object.create(O.prototype), Z.prototype.constructor = Z, Z.prototype.m = Z, Z.o = {}, c.MdDbText = Z, Z.prototype.position = Z.prototype.position = function() {
|
|
4455
|
-
return G(
|
|
4518
|
+
return G(bh(this.g), R);
|
|
4456
4519
|
}, Z.prototype.setPosition = Z.prototype.setPosition = function(e) {
|
|
4457
4520
|
var r = this.g;
|
|
4458
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4521
|
+
return e && typeof e == "object" && (e = e.g), !!ch(r, e);
|
|
4459
4522
|
}, Z.prototype.alignmentPoint = function() {
|
|
4460
|
-
return G(
|
|
4523
|
+
return G(dh(this.g), R);
|
|
4461
4524
|
}, Z.prototype.setAlignmentPoint = function(e) {
|
|
4462
4525
|
var r = this.g;
|
|
4463
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4526
|
+
return e && typeof e == "object" && (e = e.g), !!eh(r, e);
|
|
4464
4527
|
}, Z.prototype.oblique = function() {
|
|
4465
|
-
return
|
|
4528
|
+
return fh(this.g);
|
|
4466
4529
|
}, Z.prototype.setOblique = function(e) {
|
|
4467
4530
|
var r = this.g;
|
|
4468
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4531
|
+
return e && typeof e == "object" && (e = e.g), !!gh(r, e);
|
|
4469
4532
|
}, Z.prototype.rotation = Z.prototype.rotation = function() {
|
|
4470
|
-
return
|
|
4533
|
+
return hh(this.g);
|
|
4471
4534
|
}, Z.prototype.setRotation = function(e) {
|
|
4472
4535
|
var r = this.g;
|
|
4473
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4536
|
+
return e && typeof e == "object" && (e = e.g), !!ih(r, e);
|
|
4474
4537
|
}, Z.prototype.height = Z.prototype.height = function() {
|
|
4475
|
-
return
|
|
4538
|
+
return jh(this.g);
|
|
4476
4539
|
}, Z.prototype.setHeight = function(e) {
|
|
4477
4540
|
var r = this.g;
|
|
4478
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4541
|
+
return e && typeof e == "object" && (e = e.g), !!kh(r, e);
|
|
4479
4542
|
}, Z.prototype.widthFactor = function() {
|
|
4480
|
-
return
|
|
4543
|
+
return lh(this.g);
|
|
4481
4544
|
}, Z.prototype.setWidthFactor = function(e) {
|
|
4482
4545
|
var r = this.g;
|
|
4483
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4546
|
+
return e && typeof e == "object" && (e = e.g), !!mh(r, e);
|
|
4484
4547
|
}, Z.prototype.textString = function() {
|
|
4485
|
-
return n(
|
|
4548
|
+
return n(nh(this.g));
|
|
4486
4549
|
}, Z.prototype.setTextString = function(e) {
|
|
4487
4550
|
var r = this.g;
|
|
4488
|
-
return H(), e = e && typeof e == "object" ? e.g : K(e), !!
|
|
4551
|
+
return H(), e = e && typeof e == "object" ? e.g : K(e), !!oh(r, e);
|
|
4489
4552
|
}, Z.prototype.horizontalMode = function() {
|
|
4490
|
-
return
|
|
4553
|
+
return ph(this.g);
|
|
4491
4554
|
}, Z.prototype.setHorizontalMode = function(e) {
|
|
4492
4555
|
var r = this.g;
|
|
4493
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4556
|
+
return e && typeof e == "object" && (e = e.g), !!qh(r, e);
|
|
4494
4557
|
}, Z.prototype.verticalMode = function() {
|
|
4495
|
-
return
|
|
4558
|
+
return rh(this.g);
|
|
4496
4559
|
}, Z.prototype.setVerticalMode = function(e) {
|
|
4497
4560
|
var r = this.g;
|
|
4498
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4561
|
+
return e && typeof e == "object" && (e = e.g), !!sh(r, e);
|
|
4499
4562
|
}, Z.prototype.getObjectID = function() {
|
|
4500
|
-
return
|
|
4563
|
+
return th(this.g);
|
|
4501
4564
|
}, Z.prototype.Erase = function() {
|
|
4502
|
-
return !!
|
|
4565
|
+
return !!uh(this.g);
|
|
4503
4566
|
}, Z.prototype.ConnectionTempObject = function(e) {
|
|
4504
4567
|
var r = this.g;
|
|
4505
|
-
return e && typeof e == "object" && (e = e.g), !!
|
|
4568
|
+
return e && typeof e == "object" && (e = e.g), !!vh(r, e);
|
|
4506
4569
|
}, Z.prototype.Clone = function() {
|
|
4507
|
-
return G(
|
|
4570
|
+
return G(wh(this.g), M);
|
|
4508
4571
|
}, Z.prototype.moveGripPointsAt = function(e, r, F, i) {
|
|
4509
4572
|
var o = this.g;
|
|
4510
|
-
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), !!
|
|
4573
|
+
return e && typeof e == "object" && (e = e.g), r && typeof r == "object" && (r = r.g), F && typeof F == "object" && (F = F.g), i && typeof i == "object" && (i = i.g), !!xh(o, e, r, F, i);
|
|
4511
4574
|
}, Z.prototype.getObjectName = function() {
|
|
4512
|
-
return n(xh(this.g));
|
|
4513
|
-
}, Z.prototype.getDxf0 = function() {
|
|
4514
4575
|
return n(yh(this.g));
|
|
4515
|
-
}, Z.prototype.
|
|
4576
|
+
}, Z.prototype.getDxf0 = function() {
|
|
4516
4577
|
return n(zh(this.g));
|
|
4578
|
+
}, Z.prototype.getJson = function() {
|
|
4579
|
+
return n(Ah(this.g));
|
|
4517
4580
|
}, Z.prototype.setJson = function(e) {
|
|
4518
4581
|
var r = this.g;
|
|
4519
|
-
return H(), e = e && typeof e == "object" ? e.g : K(e), !!
|
|
4582
|
+
return H(), e = e && typeof e == "object" ? e.g : K(e), !!Bh(r, e);
|
|
4520
4583
|
}, Z.prototype.__destroy__ = function() {
|
|
4521
|
-
|
|
4584
|
+
Ch(this.g);
|
|
4522
4585
|
}, mxdrawassembly.ready;
|
|
4523
4586
|
};
|
|
4524
4587
|
})();
|
|
@@ -4563,15 +4626,21 @@ const _export = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
|
|
|
4563
4626
|
MdDbLayerTable,
|
|
4564
4627
|
MdDbEntity,
|
|
4565
4628
|
MdDbCurve,
|
|
4566
|
-
MdDbLine
|
|
4629
|
+
MdDbLine,
|
|
4630
|
+
MdDbText,
|
|
4631
|
+
get McDb() {
|
|
4632
|
+
return McDb;
|
|
4633
|
+
}
|
|
4567
4634
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4568
4635
|
export {
|
|
4636
|
+
McDb,
|
|
4569
4637
|
McObject,
|
|
4570
4638
|
MdDbCurve,
|
|
4571
4639
|
MdDbDatabase,
|
|
4572
4640
|
MdDbEntity,
|
|
4573
4641
|
MdDbLayerTable,
|
|
4574
4642
|
MdDbLine,
|
|
4643
|
+
MdDbText,
|
|
4575
4644
|
MdRxObject,
|
|
4576
4645
|
MxCpp,
|
|
4577
4646
|
MxTools,
|