mxcad 1.0.5 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mxcad.d.ts +0 -8
- package/dist/mxcad.es.js +819 -775
- package/dist/mxcad.umd.js +44 -44
- package/dist/mxdrawassembly_min.wasm +0 -0
- package/package.json +1 -1
- package/dist/mxdrawassembly_min.wasm.wasm +0 -0
package/dist/mxcad.es.js
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
import { MxFun as I, MrxDbgUiPrPoint as
|
|
2
|
-
async function
|
|
1
|
+
import { MxFun as I, MrxDbgUiPrPoint as ae, store as He, MxPaintBrush as U, MrxDbgUiPrBaseReturn as T, MxDbCircleShape as vt, MxDbLine as We, MxDbPolyline as zt, MxDbRegularPolygon as Gt, MxDbCircleArc as Fe, Mx3PointArc as Xt, MxDbEllipseShape as $t } from "mxdraw";
|
|
2
|
+
async function Yt(i, o) {
|
|
3
3
|
const f = await (await fetch(i)).arrayBuffer();
|
|
4
4
|
return await WebAssembly.instantiate(f, o);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function xt(i) {
|
|
7
7
|
return btoa(unescape(encodeURIComponent(i)));
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function Mt(i) {
|
|
10
10
|
return decodeURIComponent(escape(atob(i)));
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Ct(i) {
|
|
13
13
|
let o = JSON.stringify(i);
|
|
14
14
|
I.callCommand("MxCAD_SetEntityData", o);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
b64Encode:
|
|
18
|
-
b64Decode:
|
|
19
|
-
setMcDbEntity:
|
|
16
|
+
const Ne = {
|
|
17
|
+
b64Encode: xt,
|
|
18
|
+
b64Decode: Mt,
|
|
19
|
+
setMcDbEntity: Ct
|
|
20
20
|
};
|
|
21
|
-
async function
|
|
22
|
-
const i = new
|
|
21
|
+
async function Zt() {
|
|
22
|
+
const i = new ae();
|
|
23
23
|
i.setMessage(`
|
|
24
24
|
\u6307\u5B9A\u63D2\u5165\u4F4D\u7F6E:`);
|
|
25
25
|
let o = await i.go();
|
|
26
26
|
if (o == null)
|
|
27
27
|
return;
|
|
28
|
-
let
|
|
29
|
-
if (
|
|
28
|
+
let r = "\u6D4B\u8BD5";
|
|
29
|
+
if (r.length <= 0)
|
|
30
30
|
return;
|
|
31
31
|
let f = I.screenCoordLong2Doc(50);
|
|
32
|
-
|
|
32
|
+
r = Ne.b64Encode(r);
|
|
33
33
|
const l = {
|
|
34
34
|
postx: o.x,
|
|
35
35
|
posty: o.y,
|
|
36
|
-
text:
|
|
36
|
+
text: r,
|
|
37
37
|
height: f
|
|
38
38
|
};
|
|
39
39
|
I.call("Mx_Text", l);
|
|
40
40
|
}
|
|
41
|
-
class
|
|
41
|
+
class Jt extends vt {
|
|
42
42
|
getGripPoints() {
|
|
43
|
-
const { x: o, y:
|
|
44
|
-
let l = new THREE.Vector3(o,
|
|
45
|
-
return [this.center, l,
|
|
43
|
+
const { x: o, y: r, z: f } = this.center;
|
|
44
|
+
let l = new THREE.Vector3(o, r + this.radius, f), A = new THREE.Vector3(o, r - this.radius, f), p = new THREE.Vector3(o - this.radius, r, f), h = new THREE.Vector3(o + this.radius, r, f);
|
|
45
|
+
return [this.center, l, A, p, h];
|
|
46
46
|
}
|
|
47
|
-
moveGripPointsAt(o,
|
|
48
|
-
const [f, l,
|
|
49
|
-
return o === 0 && (this.center = f.add(
|
|
47
|
+
moveGripPointsAt(o, r) {
|
|
48
|
+
const [f, l, A, p, h] = this.getGripPoints();
|
|
49
|
+
return o === 0 && (this.center = f.add(r)), o === 1 && (this.radius = l.add(r).distanceTo(this.center)), o === 2 && (this.radius = A.add(r).distanceTo(this.center)), o === 3 && (this.radius = p.add(r).distanceTo(this.center)), o === 4 && (this.radius = h.add(r).distanceTo(this.center)), !0;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
const
|
|
53
|
-
const [o,
|
|
54
|
-
return new THREE.Vector3(
|
|
52
|
+
const mt = (i) => {
|
|
53
|
+
const [o, r, f] = i, { x: l, y: A, z: p } = o, { x: h, y: w, z: E } = r, { x, y: D, z: W } = f, _ = A * E - w * p - A * W + D * p + w * W - D * E, M = -(l * E - h * p - l * W + x * p + h * W - x * E), R = l * w - h * A - l * D + x * A + h * D - x * w, P = -(l * w * W - l * D * E - h * A * W + h * D * p + x * A * E - x * w * p), v = 2 * (h - l), L = 2 * (w - A), j = 2 * (E - p), q = l * l + A * A + p * p - h * h - w * w - E * E, N = 2 * (x - l), z = 2 * (D - A), G = 2 * (W - p), V = l * l + A * A + p * p - x * x - D * D - W * W, ye = -(M * j * V - M * G * q - L * R * V + L * G * P + z * R * q - z * j * P) / (_ * L * G - _ * z * j - v * M * G + v * z * R + N * M * j - N * L * R), he = (_ * j * V - _ * G * q - v * R * V + v * G * P + N * R * q - N * j * P) / (_ * L * G - _ * z * j - v * M * G + v * z * R + N * M * j - N * L * R), K = -(_ * L * V - _ * z * q - v * M * V + v * z * P + N * M * q - N * L * P) / (_ * L * G - _ * z * j - v * M * G + v * z * R + N * M * j - N * L * R);
|
|
54
|
+
return new THREE.Vector3(ye, he, K);
|
|
55
55
|
};
|
|
56
|
-
function
|
|
57
|
-
const i = new
|
|
58
|
-
let o = new
|
|
59
|
-
|
|
60
|
-
let
|
|
61
|
-
const
|
|
56
|
+
function Bt() {
|
|
57
|
+
const i = new ae();
|
|
58
|
+
let o = new Jt();
|
|
59
|
+
U.use(o), o.closed = !1;
|
|
60
|
+
let r = 0, f = "default", l = !0;
|
|
61
|
+
const A = () => {
|
|
62
62
|
i.setUserDraw(
|
|
63
|
-
(
|
|
64
|
-
o.radius = l ? o.center.distanceTo(
|
|
63
|
+
(_, M) => {
|
|
64
|
+
o.radius = l ? o.center.distanceTo(_) : o.center.distanceTo(_) / 2, M.drawCustomEntity(o), M.drawLine(o.center, _);
|
|
65
65
|
}
|
|
66
66
|
);
|
|
67
|
-
},
|
|
67
|
+
}, p = (_) => {
|
|
68
68
|
if (f === "default") {
|
|
69
|
-
if (
|
|
70
|
-
if (
|
|
69
|
+
if (_ === T.kOk) {
|
|
70
|
+
if (r === 0)
|
|
71
71
|
i.setMessage(`
|
|
72
|
-
\u6307\u5B9A\u5706\u7684\u534A\u5F84:`), i.setKeyWords("[\u76F4\u5F84(D)]"), o.center = i.value(),
|
|
73
|
-
else if (
|
|
72
|
+
\u6307\u5B9A\u5706\u7684\u534A\u5F84:`), i.setKeyWords("[\u76F4\u5F84(D)]"), o.center = i.value(), A();
|
|
73
|
+
else if (r === 1)
|
|
74
74
|
return I.getCurrentDraw().addMxEntity(o), !0;
|
|
75
|
-
|
|
75
|
+
r++;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
_ === T.kKeyWord && i.isKeyWordPicked("D") && (l = !1, A(), i.setMessage(`
|
|
78
78
|
\u6307\u5B9A\u5706\u7684\u76F4\u5F84:`), i.setKeyWords(""));
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
81
|
let h = [];
|
|
82
|
-
const w = (
|
|
82
|
+
const w = (_) => {
|
|
83
83
|
if (f === "3P" && (i.setMessage(`
|
|
84
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9:`),
|
|
85
|
-
if (
|
|
86
|
-
|
|
84
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E00\u4E2A\u70B9:`), _ === T.kOk)) {
|
|
85
|
+
if (r === 0 && (h.push(i.value()), i.setUserDraw((M, R) => {
|
|
86
|
+
R.drawLine(h[0], M);
|
|
87
87
|
}), i.setMessage(`
|
|
88
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9:`)),
|
|
89
|
-
const [
|
|
90
|
-
o.center =
|
|
91
|
-
v,
|
|
88
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9:`)), r === 1 && (h.push(i.value()), i.setUserDraw((M, R) => {
|
|
89
|
+
const [P, v] = h, L = M;
|
|
90
|
+
o.center = mt([
|
|
92
91
|
P,
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
v,
|
|
93
|
+
L
|
|
94
|
+
]), o.radius = o.center.distanceTo(P), R.drawCustomEntity(o);
|
|
95
95
|
}), i.setMessage(`
|
|
96
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E09\u4E2A\u70B9:`)),
|
|
97
|
-
return h.push(i.value()), o.center =
|
|
98
|
-
|
|
96
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E09\u4E2A\u70B9:`)), r === 2)
|
|
97
|
+
return h.push(i.value()), o.center = mt(h), o.radius = o.center.distanceTo(h[0]), I.getCurrentDraw().addMxEntity(o), !0;
|
|
98
|
+
r++;
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
let E;
|
|
102
|
-
const x = (
|
|
103
|
-
new THREE.Line3(
|
|
104
|
-
}, D = (
|
|
102
|
+
const x = (_, M) => {
|
|
103
|
+
new THREE.Line3(_, M).getCenter(o.center), o.radius = M.distanceTo(_) / 2;
|
|
104
|
+
}, D = (_) => {
|
|
105
105
|
if (f === "2P" && (i.setMessage(`
|
|
106
|
-
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`),
|
|
107
|
-
if (
|
|
108
|
-
x(E, M),
|
|
106
|
+
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`), _ === T.kOk)) {
|
|
107
|
+
if (r === 0 && (E = i.value(), i.setUserDraw((M, R) => {
|
|
108
|
+
x(E, M), R.drawCustomEntity(o), R.drawLine(E, M);
|
|
109
109
|
}), i.setMessage(`
|
|
110
|
-
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9:`)),
|
|
110
|
+
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9:`)), r === 1)
|
|
111
111
|
return x(E, i.value()), I.getCurrentDraw().addMxEntity(o), !0;
|
|
112
|
-
|
|
112
|
+
r++;
|
|
113
113
|
}
|
|
114
|
-
}, W = (
|
|
114
|
+
}, W = (_) => {
|
|
115
115
|
if (f === "T") {
|
|
116
116
|
if (i.setMessage(`
|
|
117
|
-
\u6307\u5B9A\u5BF9\u8C61\u4E0E\u5706\u7684\u7B2C\u4E00\u4E2A\u5207\u70B9:`),
|
|
118
|
-
if (
|
|
117
|
+
\u6307\u5B9A\u5BF9\u8C61\u4E0E\u5706\u7684\u7B2C\u4E00\u4E2A\u5207\u70B9:`), _ === T.kOk) {
|
|
118
|
+
if (r === 0) {
|
|
119
119
|
const M = i.value();
|
|
120
120
|
console.log(M), I.getCurrentDraw();
|
|
121
121
|
}
|
|
122
|
-
|
|
122
|
+
r++;
|
|
123
123
|
}
|
|
124
124
|
return !0;
|
|
125
125
|
}
|
|
@@ -128,121 +128,121 @@ function Gt() {
|
|
|
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
|
), i.setKeyWords("3P 2P T"), i.goWhile(
|
|
131
|
-
(
|
|
132
|
-
if (
|
|
131
|
+
(_) => {
|
|
132
|
+
if (_ === T.kKeyWord && (i.isKeyWordPicked("3P") ? f = "3P" : i.isKeyWordPicked("2P") ? f = "2P" : i.isKeyWordPicked("T") && (f = "T")), p(_))
|
|
133
133
|
return { exit: !0 };
|
|
134
|
-
if (w(
|
|
134
|
+
if (w(_))
|
|
135
135
|
return { exit: !0 };
|
|
136
|
-
if (D(
|
|
136
|
+
if (D(_))
|
|
137
137
|
return { exit: !0 };
|
|
138
|
-
if (W(
|
|
138
|
+
if (W(_))
|
|
139
139
|
return { exit: !0 };
|
|
140
140
|
},
|
|
141
|
-
(
|
|
142
|
-
|
|
141
|
+
(_) => {
|
|
142
|
+
_ === T.kCancel && I.getCurrentDraw().addMxEntity(o);
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
|
-
|
|
147
|
-
I.addCommand("Mx_Circle",
|
|
146
|
+
He.events.on("MxDbEntityRegister", () => {
|
|
147
|
+
I.addCommand("Mx_Circle", Bt);
|
|
148
148
|
});
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
const l = i -
|
|
152
|
-
let
|
|
153
|
-
return l == 0 ?
|
|
149
|
+
const Pt = () => He.state.MxFun.stopRunCommand();
|
|
150
|
+
function Oe(i, o, r, f) {
|
|
151
|
+
const l = i - r, A = o - f;
|
|
152
|
+
let p = 0;
|
|
153
|
+
return l == 0 ? p = Math.PI / 2 : p = Math.atan(Math.abs(A / l)), l < 0 && A >= 0 ? p = Math.PI - p : l < 0 && A < 0 ? p = Math.PI + p : l >= 0 && A < 0 && (p = Math.PI * 2 - p), p;
|
|
154
154
|
}
|
|
155
|
-
async function
|
|
156
|
-
const i = new
|
|
157
|
-
let o = new
|
|
155
|
+
async function Dt() {
|
|
156
|
+
const i = new ae();
|
|
157
|
+
let o = new We(), r = [];
|
|
158
158
|
i.setMessage(`
|
|
159
159
|
\u6307\u5B9A\u7B2C\u4E00\u70B9:`);
|
|
160
160
|
let f = await i.go();
|
|
161
|
-
i.setUserDraw((
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}),
|
|
161
|
+
i.setUserDraw((A, p) => {
|
|
162
|
+
r.forEach((h) => {
|
|
163
|
+
p.drawCustomEntity(h);
|
|
164
|
+
}), p.drawLine(f, A);
|
|
165
165
|
});
|
|
166
166
|
const l = () => {
|
|
167
167
|
i.setMessage(`
|
|
168
|
-
\u6307\u5B9A\u4E0B\u4E00\u4E2A\u70B9:`),
|
|
168
|
+
\u6307\u5B9A\u4E0B\u4E00\u4E2A\u70B9:`), r.length > 1 ? i.setKeyWords("[\u9000\u51FA(E)/\u95ED\u5408(C)/\u653E\u5F03(U)]") : i.setKeyWords("[\u9000\u51FA(E)/\u653E\u5F03(U)]");
|
|
169
169
|
};
|
|
170
170
|
l(), i.goWhile(
|
|
171
|
-
(
|
|
172
|
-
if (
|
|
171
|
+
(A) => {
|
|
172
|
+
if (A === T.kOk && (o = new We(), U.use(o), o.pt1 = f, o.pt2 = i.value(), f = o.pt2.clone(), r.push(o), l()), A === T.kKeyWord) {
|
|
173
173
|
if (i.isKeyWordPicked("E"))
|
|
174
|
-
|
|
174
|
+
Pt();
|
|
175
175
|
else if (i.isKeyWordPicked("C")) {
|
|
176
|
-
const
|
|
177
|
-
return
|
|
176
|
+
const p = new We();
|
|
177
|
+
return p.pt1 = f.clone(), p.pt2 = r[0].pt1.clone(), U.use(p), r.push(p), f = p.pt2.clone(), Pt(), { exit: !0 };
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
|
-
(
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
184
|
-
I.getCurrentDraw().addMxEntity(
|
|
181
|
+
(A) => {
|
|
182
|
+
if (A === T.kCancel)
|
|
183
|
+
return r.forEach((p) => {
|
|
184
|
+
I.getCurrentDraw().addMxEntity(p);
|
|
185
185
|
}), { exit: !0 };
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
|
-
|
|
190
|
-
I.addCommand("Mx_Line",
|
|
189
|
+
He.events.on("MxDbEntityRegister", () => {
|
|
190
|
+
I.addCommand("Mx_Line", Dt);
|
|
191
191
|
});
|
|
192
|
-
async function
|
|
193
|
-
const i = new
|
|
192
|
+
async function Qt() {
|
|
193
|
+
const i = new ae();
|
|
194
194
|
i.setMessage(`
|
|
195
195
|
\u6307\u5B9A\u63D2\u5165\u4F4D\u7F6E:`);
|
|
196
196
|
let o = await i.go();
|
|
197
197
|
if (o == null)
|
|
198
198
|
return;
|
|
199
|
-
let
|
|
199
|
+
let r = `\u6D4B\u8BD5
|
|
200
200
|
\u6D4B\u8BD5`;
|
|
201
|
-
if (
|
|
201
|
+
if (r.length <= 0)
|
|
202
202
|
return;
|
|
203
203
|
let f = I.screenCoordLong2Doc(50);
|
|
204
|
-
|
|
204
|
+
r = Ne.b64Encode(r);
|
|
205
205
|
const l = {
|
|
206
206
|
postx: o.x,
|
|
207
207
|
posty: o.y,
|
|
208
|
-
text:
|
|
208
|
+
text: r,
|
|
209
209
|
height: f
|
|
210
210
|
};
|
|
211
211
|
I.call("Mx_MText", l);
|
|
212
212
|
}
|
|
213
|
-
async function
|
|
214
|
-
const i = new
|
|
215
|
-
|
|
213
|
+
async function Ut() {
|
|
214
|
+
const i = new ae(), o = new zt();
|
|
215
|
+
U.use(o), i.setMessage(`
|
|
216
216
|
\u6307\u5B9A\u8D77\u70B9:`);
|
|
217
|
-
let
|
|
217
|
+
let r;
|
|
218
218
|
i.setUserDraw((f, l) => {
|
|
219
|
-
l.drawCustomEntity(o),
|
|
219
|
+
l.drawCustomEntity(o), r && l.drawLine(r, f);
|
|
220
220
|
}), i.goWhile(
|
|
221
221
|
(f) => {
|
|
222
|
-
if (f ===
|
|
222
|
+
if (f === T.kOk) {
|
|
223
223
|
const l = i.value();
|
|
224
|
-
o.points.push(i.value()),
|
|
224
|
+
o.points.push(i.value()), r = l, i.setMessage(`
|
|
225
225
|
\u6307\u5B9A\u4E0B\u4E00\u4E2A\u70B9:`), i.setKeyWords("[\u5706\u5F27(A)/\u5BBD\u5EA6(W)]");
|
|
226
226
|
} else
|
|
227
|
-
f ===
|
|
227
|
+
f === T.kKeyWord && (i.isKeyWordPicked("A"), i.isKeyWordPicked("W"));
|
|
228
228
|
},
|
|
229
229
|
(f) => {
|
|
230
|
-
f ===
|
|
230
|
+
f === T.kCancel && I.getCurrentDraw().addMxEntity(o);
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
|
-
async function
|
|
235
|
-
const i = new
|
|
236
|
-
let o = new
|
|
237
|
-
|
|
234
|
+
async function qt() {
|
|
235
|
+
const i = new ae();
|
|
236
|
+
let o = new Gt();
|
|
237
|
+
U.use(o), i.setMessage(`
|
|
238
238
|
\u8F93\u5165\u8FB9\u7684\u6570\u76EE<5>:`);
|
|
239
|
-
let
|
|
240
|
-
for (;
|
|
241
|
-
f.push(
|
|
239
|
+
let r = 3, f = [r];
|
|
240
|
+
for (; r < 25; )
|
|
241
|
+
f.push(r++);
|
|
242
242
|
i.setKeyWords(f.join(" "));
|
|
243
243
|
let l = 0;
|
|
244
|
-
i.goWhile((
|
|
245
|
-
if (
|
|
244
|
+
i.goWhile((A) => {
|
|
245
|
+
if (A === T.kOk)
|
|
246
246
|
if (l === 1)
|
|
247
247
|
o.centerPoint = i.value(), i.setMessage(`
|
|
248
248
|
[\u5185\u63A5\u4E8E\u5706(I)/\u5916\u5207\u4E8E\u5706(C)]<\u5916\u5207>:`), i.setKeyWords("I C");
|
|
@@ -258,8 +258,8 @@ async function nn() {
|
|
|
258
258
|
l === 5 && i.setMessage(`
|
|
259
259
|
\u5916\u5207\u4E8E\u5706(C)\u65E0\u6CD5\u7ED8\u5236:`);
|
|
260
260
|
}
|
|
261
|
-
if (
|
|
262
|
-
const
|
|
261
|
+
if (A === T.kKeyWord) {
|
|
262
|
+
const p = i.keyWordPicked(), h = Number(p);
|
|
263
263
|
!Number.isNaN(h) && l === 0 && (o.sidesNumber = h, i.setMessage(`
|
|
264
264
|
\u6307\u5B9A\u6B63\u591A\u8FB9\u5F62\u7684\u4E2D\u5FC3\u70B9\u6216 [\u8FB9(E)]:`), i.setKeyWords("E"), l++), l === 1 && (i.isKeyWordPicked("E") && (i.setMessage(`
|
|
265
265
|
\u6307\u5B9A\u8FB9\u7684\u7B2C\u4E00\u4E2A\u7AEF\u70B9:`), l++), i.isKeyWordPicked("I") ? (i.setUserDraw((w, E) => {
|
|
@@ -270,39 +270,39 @@ async function nn() {
|
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
const f = i.x, l = o.x,
|
|
275
|
-
return new THREE.Vector3(
|
|
273
|
+
function en(i, o, r) {
|
|
274
|
+
const f = i.x, l = o.x, A = r.x, p = i.y, h = o.y, w = r.y, E = f - l, x = p - h, D = f - A, W = p - w, _ = (f * f - l * l + (p * p - h * h)) / 2, M = (f * f - A * A + (p * p - w * w)) / 2, R = x * D - E * W, P = -(W * _ - x * M) / R, v = -(E * M - D * _) / R;
|
|
275
|
+
return new THREE.Vector3(P, v, 0);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
const
|
|
279
|
-
return Math.sqrt((
|
|
277
|
+
function tn(i, o) {
|
|
278
|
+
const r = i.x, f = i.y, l = o.x, A = o.y;
|
|
279
|
+
return Math.sqrt((r - l) * (r - l) + (f - A) * (f - A));
|
|
280
280
|
}
|
|
281
|
-
function
|
|
281
|
+
function nn(i, o, r) {
|
|
282
282
|
let f;
|
|
283
|
-
i <
|
|
283
|
+
i < r ? f = r - i : f = r - i + 360;
|
|
284
284
|
let l;
|
|
285
285
|
return i < o ? l = o - i : l = o - i + 360, l > f;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
288
|
-
const f = i.x, l = o.x,
|
|
287
|
+
function Ve(i, o, r) {
|
|
288
|
+
const f = i.x, l = o.x, A = i.y, p = o.y;
|
|
289
289
|
let h, w, E;
|
|
290
|
-
return h = (
|
|
290
|
+
return h = (A - p) / r, w = (f - l) / r, w >= 0.99999 && (w = 0.99999), w <= -0.99999 && (w = -0.99999), E = Math.acos(w), E = E / Math.PI * 180, h < -0.05 && (E = 360 - E), {
|
|
291
291
|
sin: h,
|
|
292
292
|
cos: w,
|
|
293
293
|
angle: E
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
const
|
|
296
|
+
const Q = (i, o, r) => {
|
|
297
297
|
const f = () => {
|
|
298
298
|
i.go((l) => {
|
|
299
|
-
if (l ===
|
|
299
|
+
if (l === T.kKeyWord && r() && f(), l === T.kOk && o() && f(), l === T.kNone && f(), l === T.kCancel)
|
|
300
300
|
return { exit: !0 };
|
|
301
301
|
});
|
|
302
302
|
};
|
|
303
303
|
return f;
|
|
304
304
|
};
|
|
305
|
-
class
|
|
305
|
+
class ze extends vt {
|
|
306
306
|
constructor() {
|
|
307
307
|
super(), this._propertyDbKeys = [...this._propertyDbKeys, "bulge"];
|
|
308
308
|
}
|
|
@@ -310,24 +310,24 @@ class He extends mt {
|
|
|
310
310
|
return "MxDbCircle";
|
|
311
311
|
}
|
|
312
312
|
create() {
|
|
313
|
-
return new
|
|
313
|
+
return new ze();
|
|
314
314
|
}
|
|
315
|
-
getArcBulge(o,
|
|
316
|
-
const l = o.distanceTo(
|
|
317
|
-
let h = 2 * new THREE.Line3(o,
|
|
315
|
+
getArcBulge(o, r, f) {
|
|
316
|
+
const l = o.distanceTo(r);
|
|
317
|
+
let h = 2 * new THREE.Line3(o, r).getCenter(
|
|
318
318
|
new THREE.Vector3()
|
|
319
319
|
).distanceTo(f) / l;
|
|
320
320
|
return h > 0.9999 && h < 1.0001 ? h = 1 : h < -0.9999 && h > -1.0001 ? h = -1 : Math.abs(h) < 1e-10 && (h = 0), h;
|
|
321
321
|
}
|
|
322
|
-
getArcMidPoint(o,
|
|
323
|
-
const
|
|
322
|
+
getArcMidPoint(o, r, f, l, A) {
|
|
323
|
+
const p = o, h = f * Math.PI / 180;
|
|
324
324
|
let w = l * Math.PI / 180;
|
|
325
325
|
const E = new THREE.Vector3(), x = new THREE.Vector3();
|
|
326
|
-
E.x =
|
|
327
|
-
const D =
|
|
328
|
-
(
|
|
326
|
+
E.x = p.x + r * Math.cos(h), E.y = p.y + r * Math.sin(h), x.x = p.x + r * Math.cos(w), x.y = p.y + r * Math.sin(w);
|
|
327
|
+
const D = r;
|
|
328
|
+
(A ? f < l : f > l) && (w += Math.PI * 2);
|
|
329
329
|
const W = new THREE.Vector3();
|
|
330
|
-
return W.x =
|
|
330
|
+
return W.x = p.x + D * Math.cos((h + w) / 2), W.y = p.y + D * Math.sin((h + w) / 2), [E, W, x, this.center];
|
|
331
331
|
}
|
|
332
332
|
getGripPoints() {
|
|
333
333
|
return this.getArcMidPoint(
|
|
@@ -338,18 +338,18 @@ class He extends mt {
|
|
|
338
338
|
this.clockwise
|
|
339
339
|
);
|
|
340
340
|
}
|
|
341
|
-
moveGripPointsAt(o,
|
|
341
|
+
moveGripPointsAt(o, r) {
|
|
342
342
|
if (o === 3)
|
|
343
|
-
return this.center.add(
|
|
343
|
+
return this.center.add(r), !0;
|
|
344
344
|
const f = this.getGripPoints();
|
|
345
|
-
return this.upDatePoints(f, o,
|
|
345
|
+
return this.upDatePoints(f, o, r), !0;
|
|
346
346
|
}
|
|
347
|
-
upDatePoints(o,
|
|
348
|
-
o[
|
|
349
|
-
const [l,
|
|
350
|
-
this.center =
|
|
351
|
-
const h =
|
|
352
|
-
this.clockwise =
|
|
347
|
+
upDatePoints(o, r, f) {
|
|
348
|
+
o[r].add(f);
|
|
349
|
+
const [l, A, p] = o;
|
|
350
|
+
this.center = en(l, p, A), this.radius = tn(A, this.center);
|
|
351
|
+
const h = Ve(l, this.center, this.radius), w = Ve(p, this.center, this.radius), E = Ve(A, this.center, this.radius);
|
|
352
|
+
this.clockwise = nn(
|
|
353
353
|
w.angle,
|
|
354
354
|
h.angle,
|
|
355
355
|
E.angle
|
|
@@ -357,57 +357,57 @@ class He extends mt {
|
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
async function rn() {
|
|
360
|
-
const i = new
|
|
360
|
+
const i = new ae();
|
|
361
361
|
i.setMessage(`
|
|
362
362
|
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), i.setKeyWords("[\u5706\u5FC3(C)]");
|
|
363
|
-
let o = new
|
|
364
|
-
o.closed = !1,
|
|
365
|
-
let
|
|
366
|
-
const
|
|
363
|
+
let o = new ze();
|
|
364
|
+
o.closed = !1, U.use(o);
|
|
365
|
+
let r, f, l;
|
|
366
|
+
const A = Q(
|
|
367
367
|
i,
|
|
368
368
|
() => {
|
|
369
|
-
|
|
370
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u7B2C\u4E8C\u4E2A\u70B9:`), i.setKeyWords("[\u5706\u5FC3(C)/\u7AEF\u70B9(E)]"), i.setUserDraw((
|
|
371
|
-
|
|
369
|
+
r = i.value(), i.setMessage(`
|
|
370
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u7B2C\u4E8C\u4E2A\u70B9:`), i.setKeyWords("[\u5706\u5FC3(C)/\u7AEF\u70B9(E)]"), i.setUserDraw((P, v) => {
|
|
371
|
+
v.drawLine(r, P);
|
|
372
372
|
}), M();
|
|
373
373
|
},
|
|
374
374
|
() => {
|
|
375
375
|
if (i.isKeyWordPicked("C")) {
|
|
376
|
-
const
|
|
377
|
-
o.center = i.value(),
|
|
376
|
+
const P = new Fe();
|
|
377
|
+
o.center = i.value(), P.center = i.value(), i.setMessage(`
|
|
378
378
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3:`), i.setKeyWords(""), h();
|
|
379
379
|
} else
|
|
380
380
|
return !0;
|
|
381
381
|
}
|
|
382
382
|
);
|
|
383
|
-
let
|
|
384
|
-
const h =
|
|
383
|
+
let p;
|
|
384
|
+
const h = Q(
|
|
385
385
|
i,
|
|
386
386
|
() => {
|
|
387
|
-
|
|
388
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), i.setUserDraw((
|
|
389
|
-
|
|
387
|
+
p = i.value(), l = new Fe(), l.closed = !1, U.use(l), l.center = p, o.center = p, i.setMessage(`
|
|
388
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), i.setUserDraw((P, v) => {
|
|
389
|
+
v.drawCustomEntity(l), v.drawLine(p, P);
|
|
390
390
|
}), x();
|
|
391
391
|
},
|
|
392
392
|
() => {
|
|
393
393
|
}
|
|
394
394
|
);
|
|
395
395
|
let w, E;
|
|
396
|
-
const x =
|
|
396
|
+
const x = Q(
|
|
397
397
|
i,
|
|
398
398
|
() => {
|
|
399
399
|
w = i.value(), l.endPoint = w, i.setMessage(
|
|
400
400
|
`
|
|
401
401
|
\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)]:`
|
|
402
|
-
), i.setKeyWords("A L R"), E = new
|
|
403
|
-
l.startPoint =
|
|
402
|
+
), i.setKeyWords("A L R"), E = new We(), E.setDashLineDisplay(!0), E.setDashArray(0.05), E.setLineWidth(2), E.setColor("#ffd30d"), E.pt1 = l.center, i.setUserDraw((P, v) => {
|
|
403
|
+
l.startPoint = P, E.pt2 = P, v.drawCustomEntity(l), v.drawCustomEntity(E);
|
|
404
404
|
}), W();
|
|
405
405
|
},
|
|
406
406
|
() => {
|
|
407
407
|
}
|
|
408
408
|
);
|
|
409
409
|
let D;
|
|
410
|
-
const W =
|
|
410
|
+
const W = Q(
|
|
411
411
|
i,
|
|
412
412
|
() => {
|
|
413
413
|
D = i.value(), l.startPoint = D, l.endPoint = w, I.getCurrentDraw().addMxEntity(l);
|
|
@@ -417,54 +417,54 @@ async function rn() {
|
|
|
417
417
|
return i.setMessage(
|
|
418
418
|
`
|
|
419
419
|
\u6307\u5B9A\u5706\u5F27\u7684\u5939\u89D2(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)\u6216 [\u4FEE\u6539\u534A\u5F84(R)]:`
|
|
420
|
-
), i.setKeyWords("R"), i.setUserDraw((
|
|
421
|
-
l.startPoint =
|
|
420
|
+
), i.setKeyWords("R"), i.setUserDraw((P, v) => {
|
|
421
|
+
l.startPoint = P, v.drawCustomEntity(l), v.drawCustomEntity(E);
|
|
422
422
|
}), !0;
|
|
423
423
|
if (i.isKeyWordPicked("L"))
|
|
424
424
|
return i.setMessage(
|
|
425
425
|
`
|
|
426
426
|
\u6307\u5B9A\u5706\u5F27\u7684\u5939\u89D2(\u6309\u4F4F ctrl \u952E\u53D6\u76F8\u53CD\u65B9\u5411)\u6216 [\u4FEE\u6539\u534A\u5F84(R)]:`
|
|
427
|
-
), i.setKeyWords("R"), i.setUserDraw((
|
|
428
|
-
l.startPoint =
|
|
427
|
+
), i.setKeyWords("R"), i.setUserDraw((P, v) => {
|
|
428
|
+
l.startPoint = P, v.drawCustomEntity(l), v.drawCustomEntity(E);
|
|
429
429
|
}), !0;
|
|
430
430
|
if (i.isKeyWordPicked("R"))
|
|
431
431
|
i.setMessage(
|
|
432
432
|
`
|
|
433
433
|
\u6307\u5B9A\u5706\u5F27\u7684\u534A\u5F84${l.radius ? "<" + l.radius + ">" : ""}:`
|
|
434
|
-
), i.setKeyWords(""), i.setUserDraw((
|
|
435
|
-
|
|
434
|
+
), i.setKeyWords(""), i.setUserDraw((P, v) => {
|
|
435
|
+
v.drawLine(P, l.center), l.startPoint = P, v.drawCustomEntity(l);
|
|
436
436
|
}), x();
|
|
437
437
|
else
|
|
438
438
|
return !0;
|
|
439
439
|
}
|
|
440
440
|
);
|
|
441
|
-
let
|
|
442
|
-
const M =
|
|
441
|
+
let _;
|
|
442
|
+
const M = Q(
|
|
443
443
|
i,
|
|
444
444
|
() => {
|
|
445
|
-
|
|
446
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), f = new
|
|
447
|
-
f.point2 =
|
|
448
|
-
}),
|
|
445
|
+
_ = i.value(), i.setMessage(`
|
|
446
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), f = new Xt(), f.autoClockwise = !0, f.closed = !1, U.use(f), f.point1 = r, f.point3 = _, o.center, i.setUserDraw((P, v) => {
|
|
447
|
+
f.point2 = P, v.drawCustomEntity(o);
|
|
448
|
+
}), R();
|
|
449
449
|
},
|
|
450
450
|
() => {
|
|
451
451
|
if (i.isKeyWordPicked("C"))
|
|
452
|
-
l = new
|
|
453
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), i.setKeyWords(""), i.setUserDraw((
|
|
454
|
-
l.startPoint =
|
|
452
|
+
l = new Fe(), l.closed = !1, U.use(l), i.setMessage(`
|
|
453
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), i.setKeyWords(""), i.setUserDraw((P, v) => {
|
|
454
|
+
l.startPoint = r, v.drawLine(P, l.startPoint);
|
|
455
455
|
}), h();
|
|
456
456
|
else if (i.isKeyWordPicked("E"))
|
|
457
|
-
l = new
|
|
458
|
-
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), i.setKeyWords(""), i.setUserDraw((
|
|
459
|
-
l.startPoint =
|
|
457
|
+
l = new Fe(), l.closed = !1, U.use(l), i.setMessage(`
|
|
458
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), i.setKeyWords(""), i.setUserDraw((P, v) => {
|
|
459
|
+
l.startPoint = r, v.drawLine(P, l.startPoint);
|
|
460
460
|
}), h();
|
|
461
461
|
else
|
|
462
462
|
return !0;
|
|
463
463
|
}
|
|
464
|
-
),
|
|
464
|
+
), R = Q(
|
|
465
465
|
i,
|
|
466
466
|
() => {
|
|
467
|
-
f.point1 =
|
|
467
|
+
f.point1 = r, f.point2 = i.value(), f.point3 = _, I.getCurrentDraw().addMxEntity(f);
|
|
468
468
|
},
|
|
469
469
|
() => {
|
|
470
470
|
if (i.isKeyWordPicked("C"))
|
|
@@ -475,56 +475,56 @@ async function rn() {
|
|
|
475
475
|
return !0;
|
|
476
476
|
}
|
|
477
477
|
);
|
|
478
|
-
|
|
478
|
+
A();
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
const i = new
|
|
482
|
-
o.closed = !1,
|
|
480
|
+
function un() {
|
|
481
|
+
const i = new ae(), o = new $t();
|
|
482
|
+
o.closed = !1, U.use(o), i.setMessage(`
|
|
483
483
|
\u6307\u5B9A\u692D\u5706\u7684\u8F74\u7AEF\u70B9`), i.setKeyWords("[\u4E2D\u5FC3\u70B9(C)]");
|
|
484
|
-
let
|
|
485
|
-
|
|
484
|
+
let r, f = new THREE.Vector3();
|
|
485
|
+
Q(
|
|
486
486
|
i,
|
|
487
487
|
() => {
|
|
488
|
-
|
|
489
|
-
const D = new THREE.Line3(
|
|
490
|
-
D.getCenter(f), o.center = f, o.xRadius = D.distance() / 2, o.yRadius = o.xRadius, o.rotation =
|
|
488
|
+
r = i.value(), i.setUserDraw((E, x) => {
|
|
489
|
+
const D = new THREE.Line3(r, E);
|
|
490
|
+
D.getCenter(f), o.center = f, o.xRadius = D.distance() / 2, o.yRadius = o.xRadius, o.rotation = Oe(E.x, E.y, f.x, f.y), x.drawLine(E, r);
|
|
491
491
|
}), i.setMessage(`
|
|
492
|
-
\u6307\u5B9A\u692D\u5706\u5F27\u8F74\u7684\u53E6\u4E00\u4E2A\u7AEF\u70B9:`), i.setKeyWords(""),
|
|
492
|
+
\u6307\u5B9A\u692D\u5706\u5F27\u8F74\u7684\u53E6\u4E00\u4E2A\u7AEF\u70B9:`), i.setKeyWords(""), A();
|
|
493
493
|
},
|
|
494
494
|
() => {
|
|
495
495
|
}
|
|
496
496
|
)();
|
|
497
|
-
const
|
|
497
|
+
const A = Q(
|
|
498
498
|
i,
|
|
499
499
|
() => {
|
|
500
500
|
i.setUserDraw((E, x) => {
|
|
501
501
|
o.yRadius = f.distanceTo(E), x.drawLine(f, E), x.drawCustomEntity(o);
|
|
502
502
|
}), i.setMessage(`
|
|
503
|
-
\u6307\u5B9A\u53E6\u4E00\u6761\u534A\u8F74\u957F\u5EA6`), i.setKeyWords(""),
|
|
503
|
+
\u6307\u5B9A\u53E6\u4E00\u6761\u534A\u8F74\u957F\u5EA6`), i.setKeyWords(""), p();
|
|
504
504
|
},
|
|
505
505
|
() => {
|
|
506
506
|
}
|
|
507
|
-
),
|
|
507
|
+
), p = Q(
|
|
508
508
|
i,
|
|
509
509
|
() => {
|
|
510
510
|
i.setMessage(`
|
|
511
511
|
\u6307\u5B9A\u8D77\u59CB\u89D2\u5EA6`), i.setKeyWords(""), i.setUserDraw((E, x) => {
|
|
512
|
-
o.startAngle =
|
|
512
|
+
o.startAngle = Oe(E.x, E.y, f.x, f.y) - o.rotation, x.drawLine(f, E), x.drawCustomEntity(o);
|
|
513
513
|
}), h();
|
|
514
514
|
},
|
|
515
515
|
() => {
|
|
516
516
|
}
|
|
517
|
-
), h =
|
|
517
|
+
), h = Q(
|
|
518
518
|
i,
|
|
519
519
|
() => {
|
|
520
520
|
i.setUserDraw((E, x) => {
|
|
521
|
-
o.endAngle =
|
|
521
|
+
o.endAngle = Oe(E.x, E.y, f.x, f.y) - o.rotation, x.drawLine(f, E), x.drawCustomEntity(o);
|
|
522
522
|
}), i.setMessage(`
|
|
523
523
|
\u6307\u5B9A\u7EC8\u6B62\u89D2\u5EA6`), i.setKeyWords(""), w();
|
|
524
524
|
},
|
|
525
525
|
() => {
|
|
526
526
|
}
|
|
527
|
-
), w =
|
|
527
|
+
), w = Q(
|
|
528
528
|
i,
|
|
529
529
|
() => {
|
|
530
530
|
I.getCurrentDraw().addMxEntity(o);
|
|
@@ -533,207 +533,207 @@ function sn() {
|
|
|
533
533
|
}
|
|
534
534
|
);
|
|
535
535
|
}
|
|
536
|
-
var
|
|
536
|
+
var Re = (() => {
|
|
537
537
|
var i = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
|
|
538
538
|
return typeof __filename < "u" && (i = i || __filename), function(o) {
|
|
539
539
|
o = o || {};
|
|
540
|
-
var
|
|
541
|
-
|
|
540
|
+
var r;
|
|
541
|
+
r || (r = typeof o < "u" ? o : {});
|
|
542
542
|
var f, l;
|
|
543
|
-
|
|
543
|
+
r.ready = new Promise(function(e, t) {
|
|
544
544
|
f = e, l = t;
|
|
545
545
|
});
|
|
546
|
-
var
|
|
546
|
+
var A = Object.assign({}, r), p = typeof window == "object", h = typeof importScripts == "function", w = "", E, x, D, W, _, M;
|
|
547
547
|
typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" ? (w = h ? require("path").dirname(w) + "/" : __dirname + "/", M = () => {
|
|
548
|
-
|
|
548
|
+
_ || (W = require("fs"), _ = require("path"));
|
|
549
549
|
}, E = function(e, t) {
|
|
550
|
-
return M(), e =
|
|
551
|
-
}, D = (e) => (e = E(e, !0), e.buffer || (e = new Uint8Array(e)), e), x = (e, t,
|
|
552
|
-
M(), e =
|
|
553
|
-
|
|
550
|
+
return M(), e = _.normalize(e), W.readFileSync(e, t ? void 0 : "utf8");
|
|
551
|
+
}, D = (e) => (e = E(e, !0), e.buffer || (e = new Uint8Array(e)), e), x = (e, t, n) => {
|
|
552
|
+
M(), e = _.normalize(e), W.readFile(e, function(u, s) {
|
|
553
|
+
u ? n(u) : t(s.buffer);
|
|
554
554
|
});
|
|
555
555
|
}, 1 < process.argv.length && process.argv[1].replace(/\\/g, "/"), process.argv.slice(2), process.on("uncaughtException", function(e) {
|
|
556
556
|
throw e;
|
|
557
557
|
}), process.on("unhandledRejection", function(e) {
|
|
558
558
|
throw e;
|
|
559
|
-
}),
|
|
559
|
+
}), r.inspect = function() {
|
|
560
560
|
return "[Emscripten Module object]";
|
|
561
|
-
}) : (
|
|
561
|
+
}) : (p || h) && (h ? w = self.location.href : typeof document < "u" && document.currentScript && (w = document.currentScript.src), i && (w = i), w = w.indexOf("blob:") !== 0 ? w.substr(0, w.replace(/[?#].*/, "").lastIndexOf("/") + 1) : "", E = (e) => {
|
|
562
562
|
var t = new XMLHttpRequest();
|
|
563
563
|
return t.open("GET", e, !1), t.send(null), t.responseText;
|
|
564
564
|
}, h && (D = (e) => {
|
|
565
565
|
var t = new XMLHttpRequest();
|
|
566
566
|
return t.open("GET", e, !1), t.responseType = "arraybuffer", t.send(null), new Uint8Array(t.response);
|
|
567
|
-
}), x = (e, t,
|
|
568
|
-
var
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
},
|
|
567
|
+
}), x = (e, t, n) => {
|
|
568
|
+
var u = new XMLHttpRequest();
|
|
569
|
+
u.open("GET", e, !0), u.responseType = "arraybuffer", u.onload = () => {
|
|
570
|
+
u.status == 200 || u.status == 0 && u.response ? t(u.response) : n();
|
|
571
|
+
}, u.onerror = n, u.send(null);
|
|
572
572
|
});
|
|
573
|
-
var
|
|
574
|
-
Object.assign(
|
|
575
|
-
function
|
|
576
|
-
|
|
573
|
+
var R = r.print || console.log.bind(console), P = r.printErr || console.warn.bind(console);
|
|
574
|
+
Object.assign(r, A), A = null;
|
|
575
|
+
function v(e) {
|
|
576
|
+
L || (L = {}), L[e] || (L[e] = 1, P(e));
|
|
577
577
|
}
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
function
|
|
582
|
-
var
|
|
583
|
-
for (
|
|
584
|
-
++
|
|
585
|
-
if (16 <
|
|
586
|
-
return
|
|
587
|
-
for (
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
var
|
|
591
|
-
if ((
|
|
592
|
-
|
|
578
|
+
var L, j;
|
|
579
|
+
r.wasmBinary && (j = r.wasmBinary), r.noExitRuntime, typeof WebAssembly != "object" && ue("no native wasm support detected");
|
|
580
|
+
var q, N = !1, z = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
|
|
581
|
+
function G(e, t, n) {
|
|
582
|
+
var u = t + n;
|
|
583
|
+
for (n = t; e[n] && !(n >= u); )
|
|
584
|
+
++n;
|
|
585
|
+
if (16 < n - t && e.buffer && z)
|
|
586
|
+
return z.decode(e.subarray(t, n));
|
|
587
|
+
for (u = ""; t < n; ) {
|
|
588
|
+
var s = e[t++];
|
|
589
|
+
if (s & 128) {
|
|
590
|
+
var a = e[t++] & 63;
|
|
591
|
+
if ((s & 224) == 192)
|
|
592
|
+
u += String.fromCharCode((s & 31) << 6 | a);
|
|
593
593
|
else {
|
|
594
|
-
var
|
|
595
|
-
|
|
594
|
+
var c = e[t++] & 63;
|
|
595
|
+
s = (s & 240) == 224 ? (s & 15) << 12 | a << 6 | c : (s & 7) << 18 | a << 12 | c << 6 | e[t++] & 63, 65536 > s ? u += String.fromCharCode(s) : (s -= 65536, u += String.fromCharCode(55296 | s >> 10, 56320 | s & 1023));
|
|
596
596
|
}
|
|
597
597
|
} else
|
|
598
|
-
|
|
598
|
+
u += String.fromCharCode(s);
|
|
599
599
|
}
|
|
600
|
-
return
|
|
600
|
+
return u;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return e ?
|
|
602
|
+
function V(e, t) {
|
|
603
|
+
return e ? G(ee, e, t) : "";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
if (!(0 <
|
|
605
|
+
function ye(e, t, n, u) {
|
|
606
|
+
if (!(0 < u))
|
|
607
607
|
return 0;
|
|
608
|
-
var
|
|
609
|
-
|
|
610
|
-
for (var
|
|
611
|
-
var
|
|
612
|
-
if (55296 <=
|
|
613
|
-
var
|
|
614
|
-
|
|
608
|
+
var s = n;
|
|
609
|
+
u = n + u - 1;
|
|
610
|
+
for (var a = 0; a < e.length; ++a) {
|
|
611
|
+
var c = e.charCodeAt(a);
|
|
612
|
+
if (55296 <= c && 57343 >= c) {
|
|
613
|
+
var y = e.charCodeAt(++a);
|
|
614
|
+
c = 65536 + ((c & 1023) << 10) | y & 1023;
|
|
615
615
|
}
|
|
616
|
-
if (127 >=
|
|
617
|
-
if (
|
|
616
|
+
if (127 >= c) {
|
|
617
|
+
if (n >= u)
|
|
618
618
|
break;
|
|
619
|
-
t[
|
|
619
|
+
t[n++] = c;
|
|
620
620
|
} else {
|
|
621
|
-
if (2047 >=
|
|
622
|
-
if (
|
|
621
|
+
if (2047 >= c) {
|
|
622
|
+
if (n + 1 >= u)
|
|
623
623
|
break;
|
|
624
|
-
t[
|
|
624
|
+
t[n++] = 192 | c >> 6;
|
|
625
625
|
} else {
|
|
626
|
-
if (65535 >=
|
|
627
|
-
if (
|
|
626
|
+
if (65535 >= c) {
|
|
627
|
+
if (n + 2 >= u)
|
|
628
628
|
break;
|
|
629
|
-
t[
|
|
629
|
+
t[n++] = 224 | c >> 12;
|
|
630
630
|
} else {
|
|
631
|
-
if (
|
|
631
|
+
if (n + 3 >= u)
|
|
632
632
|
break;
|
|
633
|
-
t[
|
|
633
|
+
t[n++] = 240 | c >> 18, t[n++] = 128 | c >> 12 & 63;
|
|
634
634
|
}
|
|
635
|
-
t[
|
|
635
|
+
t[n++] = 128 | c >> 6 & 63;
|
|
636
636
|
}
|
|
637
|
-
t[
|
|
637
|
+
t[n++] = 128 | c & 63;
|
|
638
638
|
}
|
|
639
639
|
}
|
|
640
|
-
return t[
|
|
640
|
+
return t[n] = 0, n - s;
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
function
|
|
644
|
-
var e =
|
|
645
|
-
|
|
642
|
+
var he, K, ee, C, Ee, Ae;
|
|
643
|
+
function Ge() {
|
|
644
|
+
var e = q.buffer;
|
|
645
|
+
he = e, r.HEAP8 = K = new Int8Array(e), r.HEAP16 = new Int16Array(e), r.HEAP32 = C = new Int32Array(e), r.HEAPU8 = ee = new Uint8Array(e), r.HEAPU16 = new Uint16Array(e), r.HEAPU32 = new Uint32Array(e), r.HEAPF32 = Ee = new Float32Array(e), r.HEAPF64 = Ae = new Float64Array(e);
|
|
646
646
|
}
|
|
647
|
-
var
|
|
648
|
-
function
|
|
649
|
-
var e =
|
|
650
|
-
|
|
647
|
+
var Xe, $e = [], Ye = [], Ze = [];
|
|
648
|
+
function kt() {
|
|
649
|
+
var e = r.preRun.shift();
|
|
650
|
+
$e.unshift(e);
|
|
651
651
|
}
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
function
|
|
655
|
-
throw
|
|
652
|
+
var ce = 0, pe = null;
|
|
653
|
+
r.preloadedImages = {}, r.preloadedAudios = {};
|
|
654
|
+
function ue(e) {
|
|
655
|
+
throw r.onAbort && r.onAbort(e), e = "Aborted(" + e + ")", P(e), N = !0, e = new WebAssembly.RuntimeError(e + ". Build with -s ASSERTIONS=1 for more info."), l(e), e;
|
|
656
656
|
}
|
|
657
|
-
function
|
|
658
|
-
return
|
|
657
|
+
function Je() {
|
|
658
|
+
return $.startsWith("data:application/octet-stream;base64,");
|
|
659
659
|
}
|
|
660
|
-
var
|
|
661
|
-
if (
|
|
662
|
-
var
|
|
663
|
-
|
|
660
|
+
var $;
|
|
661
|
+
if ($ = "mxdrawassembly_min.wasm", !Je()) {
|
|
662
|
+
var Qe = $;
|
|
663
|
+
$ = r.locateFile ? r.locateFile(Qe, w) : w + Qe;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
666
|
-
var e =
|
|
665
|
+
function Ue() {
|
|
666
|
+
var e = $;
|
|
667
667
|
try {
|
|
668
|
-
if (e ==
|
|
669
|
-
return new Uint8Array(
|
|
668
|
+
if (e == $ && j)
|
|
669
|
+
return new Uint8Array(j);
|
|
670
670
|
if (D)
|
|
671
671
|
return D(e);
|
|
672
672
|
throw "both async and sync fetching of the wasm failed";
|
|
673
673
|
} catch (t) {
|
|
674
|
-
|
|
674
|
+
ue(t);
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
if (!
|
|
679
|
-
if (typeof fetch == "function" &&
|
|
680
|
-
return fetch(
|
|
677
|
+
function Ft() {
|
|
678
|
+
if (!j && (p || h)) {
|
|
679
|
+
if (typeof fetch == "function" && !$.startsWith("file://"))
|
|
680
|
+
return fetch($, { credentials: "same-origin" }).then(function(e) {
|
|
681
681
|
if (!e.ok)
|
|
682
|
-
throw "failed to load wasm binary file at '" +
|
|
682
|
+
throw "failed to load wasm binary file at '" + $ + "'";
|
|
683
683
|
return e.arrayBuffer();
|
|
684
684
|
}).catch(function() {
|
|
685
|
-
return
|
|
685
|
+
return Ue();
|
|
686
686
|
});
|
|
687
687
|
if (x)
|
|
688
688
|
return new Promise(function(e, t) {
|
|
689
|
-
x(
|
|
690
|
-
e(new Uint8Array(
|
|
689
|
+
x($, function(n) {
|
|
690
|
+
e(new Uint8Array(n));
|
|
691
691
|
}, t);
|
|
692
692
|
});
|
|
693
693
|
}
|
|
694
694
|
return Promise.resolve().then(function() {
|
|
695
|
-
return
|
|
695
|
+
return Ue();
|
|
696
696
|
});
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function Te(e) {
|
|
699
699
|
for (; 0 < e.length; ) {
|
|
700
700
|
var t = e.shift();
|
|
701
701
|
if (typeof t == "function")
|
|
702
|
-
t(
|
|
702
|
+
t(r);
|
|
703
703
|
else {
|
|
704
|
-
var
|
|
705
|
-
typeof
|
|
704
|
+
var n = t.Ia;
|
|
705
|
+
typeof n == "number" ? t.ia === void 0 ? qe(n)() : qe(n)(t.ia) : n(t.ia === void 0 ? null : t.ia);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
var
|
|
710
|
-
function
|
|
711
|
-
var t =
|
|
712
|
-
return t || (e >=
|
|
709
|
+
var ge = [];
|
|
710
|
+
function qe(e) {
|
|
711
|
+
var t = ge[e];
|
|
712
|
+
return t || (e >= ge.length && (ge.length = e + 1), ge[e] = t = Xe.get(e)), t;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function et(e, t) {
|
|
715
715
|
if (0 >= e)
|
|
716
716
|
return e;
|
|
717
|
-
var
|
|
718
|
-
return e >=
|
|
717
|
+
var n = 32 >= t ? Math.abs(1 << t - 1) : Math.pow(2, t - 1);
|
|
718
|
+
return e >= n && (32 >= t || e > n) && (e = -2 * n + e), e;
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function tt(e, t) {
|
|
721
721
|
return 0 <= e ? e : 32 >= t ? 2 * Math.abs(1 << t - 1) + e : Math.pow(2, t) + e;
|
|
722
722
|
}
|
|
723
|
-
function
|
|
724
|
-
function
|
|
725
|
-
var
|
|
726
|
-
return (
|
|
723
|
+
function Wt(e, t) {
|
|
724
|
+
function n(Y) {
|
|
725
|
+
var je = u;
|
|
726
|
+
return (Y === "double" || Y === "i64") && je & 7 && (je += 4), u = je, Y === "double" ? (Y = Number(Ae[u >> 3]), u += 8) : Y == "i64" ? (Y = [C[u >> 2], C[u + 4 >> 2]], u += 8) : (Y = C[u >> 2], u += 4), Y;
|
|
727
727
|
}
|
|
728
|
-
for (var
|
|
729
|
-
var
|
|
730
|
-
if (
|
|
728
|
+
for (var u = t, s = [], a, c; ; ) {
|
|
729
|
+
var y = e;
|
|
730
|
+
if (a = K[e >> 0], a === 0)
|
|
731
731
|
break;
|
|
732
|
-
if (
|
|
733
|
-
var B = !1,
|
|
732
|
+
if (c = K[e + 1 >> 0], a == 37) {
|
|
733
|
+
var B = !1, m = t = !1, k = !1, ie = !1;
|
|
734
734
|
e:
|
|
735
735
|
for (; ; ) {
|
|
736
|
-
switch (
|
|
736
|
+
switch (c) {
|
|
737
737
|
case 43:
|
|
738
738
|
B = !0;
|
|
739
739
|
break;
|
|
@@ -741,46 +741,46 @@ var Fe = (() => {
|
|
|
741
741
|
t = !0;
|
|
742
742
|
break;
|
|
743
743
|
case 35:
|
|
744
|
-
|
|
744
|
+
m = !0;
|
|
745
745
|
break;
|
|
746
746
|
case 48:
|
|
747
|
-
if (
|
|
747
|
+
if (k)
|
|
748
748
|
break e;
|
|
749
|
-
|
|
749
|
+
k = !0;
|
|
750
750
|
break;
|
|
751
751
|
case 32:
|
|
752
|
-
|
|
752
|
+
ie = !0;
|
|
753
753
|
break;
|
|
754
754
|
default:
|
|
755
755
|
break e;
|
|
756
756
|
}
|
|
757
|
-
e++,
|
|
757
|
+
e++, c = K[e + 1 >> 0];
|
|
758
758
|
}
|
|
759
|
-
var
|
|
760
|
-
if (
|
|
761
|
-
|
|
759
|
+
var H = 0;
|
|
760
|
+
if (c == 42)
|
|
761
|
+
H = n("i32"), e++, c = K[e + 1 >> 0];
|
|
762
762
|
else
|
|
763
|
-
for (; 48 <=
|
|
764
|
-
|
|
765
|
-
var
|
|
766
|
-
if (
|
|
767
|
-
if (
|
|
768
|
-
|
|
763
|
+
for (; 48 <= c && 57 >= c; )
|
|
764
|
+
H = 10 * H + (c - 48), e++, c = K[e + 1 >> 0];
|
|
765
|
+
var O = !1, S = -1;
|
|
766
|
+
if (c == 46) {
|
|
767
|
+
if (S = 0, O = !0, e++, c = K[e + 1 >> 0], c == 42)
|
|
768
|
+
S = n("i32"), e++;
|
|
769
769
|
else
|
|
770
|
-
for (;
|
|
771
|
-
|
|
772
|
-
|
|
770
|
+
for (; c = K[e + 1 >> 0], !(48 > c || 57 < c); )
|
|
771
|
+
S = 10 * S + (c - 48), e++;
|
|
772
|
+
c = K[e + 1 >> 0];
|
|
773
773
|
}
|
|
774
|
-
switch (0 >
|
|
774
|
+
switch (0 > S && (S = 6, O = !1), String.fromCharCode(c)) {
|
|
775
775
|
case "h":
|
|
776
|
-
if (
|
|
776
|
+
if (c = K[e + 2 >> 0], c == 104) {
|
|
777
777
|
e++;
|
|
778
778
|
var F = 1;
|
|
779
779
|
} else
|
|
780
780
|
F = 2;
|
|
781
781
|
break;
|
|
782
782
|
case "l":
|
|
783
|
-
|
|
783
|
+
c = K[e + 2 >> 0], c == 108 ? (e++, F = 8) : F = 4;
|
|
784
784
|
break;
|
|
785
785
|
case "L":
|
|
786
786
|
case "q":
|
|
@@ -795,7 +795,7 @@ var Fe = (() => {
|
|
|
795
795
|
default:
|
|
796
796
|
F = null;
|
|
797
797
|
}
|
|
798
|
-
switch (F && e++,
|
|
798
|
+
switch (F && e++, c = K[e + 1 >> 0], String.fromCharCode(c)) {
|
|
799
799
|
case "d":
|
|
800
800
|
case "i":
|
|
801
801
|
case "u":
|
|
@@ -803,32 +803,32 @@ var Fe = (() => {
|
|
|
803
803
|
case "x":
|
|
804
804
|
case "X":
|
|
805
805
|
case "p":
|
|
806
|
-
|
|
807
|
-
var
|
|
808
|
-
if (
|
|
809
|
-
var
|
|
810
|
-
else if (
|
|
811
|
-
|
|
812
|
-
else if (
|
|
813
|
-
|
|
814
|
-
else if (
|
|
815
|
-
if (
|
|
816
|
-
for (
|
|
817
|
-
|
|
818
|
-
for (
|
|
819
|
-
|
|
806
|
+
y = c == 100 || c == 105, F = F || 4, a = n("i" + 8 * F), F == 8 && (a = c == 117 ? (a[0] >>> 0) + 4294967296 * (a[1] >>> 0) : (a[0] >>> 0) + 4294967296 * a[1]), 4 >= F && (a = (y ? et : tt)(a & Math.pow(256, F) - 1, 8 * F));
|
|
807
|
+
var oe = Math.abs(a);
|
|
808
|
+
if (y = "", c == 100 || c == 105)
|
|
809
|
+
var g = et(a, 8 * F).toString(10);
|
|
810
|
+
else if (c == 117)
|
|
811
|
+
g = tt(a, 8 * F).toString(10), a = Math.abs(a);
|
|
812
|
+
else if (c == 111)
|
|
813
|
+
g = (m ? "0" : "") + oe.toString(8);
|
|
814
|
+
else if (c == 120 || c == 88) {
|
|
815
|
+
if (y = m && a != 0 ? "0x" : "", 0 > a) {
|
|
816
|
+
for (a = -a, g = (oe - 1).toString(16), oe = [], m = 0; m < g.length; m++)
|
|
817
|
+
oe.push((15 - parseInt(g[m], 16)).toString(16));
|
|
818
|
+
for (g = oe.join(""); g.length < 2 * F; )
|
|
819
|
+
g = "f" + g;
|
|
820
820
|
} else
|
|
821
|
-
|
|
822
|
-
|
|
821
|
+
g = oe.toString(16);
|
|
822
|
+
c == 88 && (y = y.toUpperCase(), g = g.toUpperCase());
|
|
823
823
|
} else
|
|
824
|
-
|
|
825
|
-
if (
|
|
826
|
-
for (;
|
|
827
|
-
|
|
828
|
-
for (0 <=
|
|
829
|
-
t ?
|
|
830
|
-
|
|
831
|
-
|
|
824
|
+
c == 112 && (oe === 0 ? g = "(nil)" : (y = "0x", g = oe.toString(16)));
|
|
825
|
+
if (O)
|
|
826
|
+
for (; g.length < S; )
|
|
827
|
+
g = "0" + g;
|
|
828
|
+
for (0 <= a && (B ? y = "+" + y : ie && (y = " " + y)), g.charAt(0) == "-" && (y = "-" + y, g = g.substr(1)); y.length + g.length < H; )
|
|
829
|
+
t ? g += " " : k ? g = "0" + g : y = " " + y;
|
|
830
|
+
g = y + g, g.split("").forEach(function(Y) {
|
|
831
|
+
s.push(Y.charCodeAt(0));
|
|
832
832
|
});
|
|
833
833
|
break;
|
|
834
834
|
case "f":
|
|
@@ -837,79 +837,79 @@ var Fe = (() => {
|
|
|
837
837
|
case "E":
|
|
838
838
|
case "g":
|
|
839
839
|
case "G":
|
|
840
|
-
if (
|
|
841
|
-
|
|
842
|
-
else if (isFinite(
|
|
843
|
-
if (
|
|
844
|
-
for (; 1 <
|
|
845
|
-
|
|
840
|
+
if (a = n("double"), isNaN(a))
|
|
841
|
+
g = "nan", k = !1;
|
|
842
|
+
else if (isFinite(a)) {
|
|
843
|
+
if (O = !1, F = Math.min(S, 20), (c == 103 || c == 71) && (O = !0, S = S || 1, F = parseInt(a.toExponential(F).split("e")[1], 10), S > F && -4 <= F ? (c = (c == 103 ? "f" : "F").charCodeAt(0), S -= F + 1) : (c = (c == 103 ? "e" : "E").charCodeAt(0), S--), F = Math.min(S, 20)), c == 101 || c == 69 ? (g = a.toExponential(F), /[eE][-+]\d$/.test(g) && (g = g.slice(0, -1) + "0" + g.slice(-1))) : (c == 102 || c == 70) && (g = a.toFixed(F), a === 0 && (0 > a || a === 0 && 1 / a === -1 / 0) && (g = "-" + g)), y = g.split("e"), O && !m)
|
|
844
|
+
for (; 1 < y[0].length && y[0].includes(".") && (y[0].slice(-1) == "0" || y[0].slice(-1) == "."); )
|
|
845
|
+
y[0] = y[0].slice(0, -1);
|
|
846
846
|
else
|
|
847
|
-
for (
|
|
848
|
-
|
|
849
|
-
|
|
847
|
+
for (m && g.indexOf(".") == -1 && (y[0] += "."); S > F++; )
|
|
848
|
+
y[0] += "0";
|
|
849
|
+
g = y[0] + (1 < y.length ? "e" + y[1] : ""), c == 69 && (g = g.toUpperCase()), 0 <= a && (B ? g = "+" + g : ie && (g = " " + g));
|
|
850
850
|
} else
|
|
851
|
-
|
|
852
|
-
for (;
|
|
853
|
-
|
|
854
|
-
97 >
|
|
855
|
-
|
|
851
|
+
g = (0 > a ? "-" : "") + "inf", k = !1;
|
|
852
|
+
for (; g.length < H; )
|
|
853
|
+
g = t ? g + " " : !k || g[0] != "-" && g[0] != "+" ? (k ? "0" : " ") + g : g[0] + "0" + g.slice(1);
|
|
854
|
+
97 > c && (g = g.toUpperCase()), g.split("").forEach(function(Y) {
|
|
855
|
+
s.push(Y.charCodeAt(0));
|
|
856
856
|
});
|
|
857
857
|
break;
|
|
858
858
|
case "s":
|
|
859
|
-
if (
|
|
860
|
-
for (;
|
|
861
|
-
|
|
859
|
+
if (k = (B = n("i8*")) ? Et(B) : 6, O && (k = Math.min(k, S)), !t)
|
|
860
|
+
for (; k < H--; )
|
|
861
|
+
s.push(32);
|
|
862
862
|
if (B)
|
|
863
|
-
for (
|
|
864
|
-
|
|
863
|
+
for (m = 0; m < k; m++)
|
|
864
|
+
s.push(ee[B++ >> 0]);
|
|
865
865
|
else
|
|
866
|
-
|
|
867
|
-
"(null)".substr(0,
|
|
866
|
+
s = s.concat(at(
|
|
867
|
+
"(null)".substr(0, k),
|
|
868
868
|
!0
|
|
869
869
|
));
|
|
870
870
|
if (t)
|
|
871
|
-
for (;
|
|
872
|
-
|
|
871
|
+
for (; k < H--; )
|
|
872
|
+
s.push(32);
|
|
873
873
|
break;
|
|
874
874
|
case "c":
|
|
875
|
-
for (t &&
|
|
876
|
-
|
|
877
|
-
t ||
|
|
875
|
+
for (t && s.push(n("i8")); 0 < --H; )
|
|
876
|
+
s.push(32);
|
|
877
|
+
t || s.push(n("i8"));
|
|
878
878
|
break;
|
|
879
879
|
case "n":
|
|
880
|
-
t =
|
|
880
|
+
t = n("i32*"), C[t >> 2] = s.length;
|
|
881
881
|
break;
|
|
882
882
|
case "%":
|
|
883
|
-
|
|
883
|
+
s.push(a);
|
|
884
884
|
break;
|
|
885
885
|
default:
|
|
886
|
-
for (
|
|
887
|
-
|
|
886
|
+
for (m = y; m < e + 2; m++)
|
|
887
|
+
s.push(K[m >> 0]);
|
|
888
888
|
}
|
|
889
889
|
e += 2;
|
|
890
890
|
} else
|
|
891
|
-
|
|
891
|
+
s.push(a), e += 1;
|
|
892
892
|
}
|
|
893
|
-
return
|
|
893
|
+
return s;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Se(e) {
|
|
896
896
|
if (!e || !e.callee || !e.callee.name)
|
|
897
897
|
return [null, "", ""];
|
|
898
|
-
var t = e.callee.name,
|
|
899
|
-
for (
|
|
900
|
-
var
|
|
901
|
-
|
|
898
|
+
var t = e.callee.name, n = "(", u = !0, s;
|
|
899
|
+
for (s in e) {
|
|
900
|
+
var a = e[s];
|
|
901
|
+
u || (n += ", "), u = !1, n = typeof a == "number" || typeof a == "string" ? n + a : n + ("(" + typeof a + ")");
|
|
902
902
|
}
|
|
903
|
-
return
|
|
903
|
+
return n += ")", e = (e = e.callee.caller) ? e.arguments : [], u && (n = ""), [e, t, n];
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Rt(e) {
|
|
906
906
|
e: {
|
|
907
907
|
var t = Error();
|
|
908
908
|
if (!t.stack) {
|
|
909
909
|
try {
|
|
910
910
|
throw Error();
|
|
911
|
-
} catch (
|
|
912
|
-
t =
|
|
911
|
+
} catch (S) {
|
|
912
|
+
t = S;
|
|
913
913
|
}
|
|
914
914
|
if (!t.stack) {
|
|
915
915
|
t = "(no stack trace available)";
|
|
@@ -919,505 +919,549 @@ var Fe = (() => {
|
|
|
919
919
|
t = t.stack.toString();
|
|
920
920
|
}
|
|
921
921
|
t = t.slice(t.indexOf(`
|
|
922
|
-
`, Math.max(t.lastIndexOf("_emscripten_log"), t.lastIndexOf("_emscripten_get_callstack"))) + 1), e & 32 &&
|
|
923
|
-
var
|
|
922
|
+
`, Math.max(t.lastIndexOf("_emscripten_log"), t.lastIndexOf("_emscripten_get_callstack"))) + 1), e & 32 && v("EM_LOG_DEMANGLE is deprecated; ignoring"), e & 8 && typeof emscripten_source_map > "u" && (v('Source map information is not available, emscripten_log with EM_LOG_C_STACK will be ignored. Build with "--pre-js $EMSCRIPTEN/src/emscripten-source-map.min.js" linker flag to add source map loading to code.'), e = e ^ 8 | 16);
|
|
923
|
+
var n = null;
|
|
924
924
|
if (e & 128)
|
|
925
|
-
for (
|
|
926
|
-
|
|
927
|
-
var
|
|
925
|
+
for (n = Se(arguments); n[1].includes("_emscripten_"); )
|
|
926
|
+
n = Se(n[0]);
|
|
927
|
+
var u = t.split(`
|
|
928
928
|
`);
|
|
929
929
|
t = "";
|
|
930
|
-
var
|
|
931
|
-
for (
|
|
932
|
-
var B =
|
|
933
|
-
if ((
|
|
934
|
-
B =
|
|
935
|
-
var
|
|
936
|
-
|
|
937
|
-
} else if ((
|
|
938
|
-
B =
|
|
930
|
+
var s = RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"), a = RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"), c = RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)"), y;
|
|
931
|
+
for (y in u) {
|
|
932
|
+
var B = u[y], m;
|
|
933
|
+
if ((m = c.exec(B)) && m.length == 5) {
|
|
934
|
+
B = m[1];
|
|
935
|
+
var k = m[2], ie = m[3];
|
|
936
|
+
m = m[4];
|
|
937
|
+
} else if ((m = s.exec(B)) || (m = a.exec(B)), m && 4 <= m.length)
|
|
938
|
+
B = m[1], k = m[2], ie = m[3], m = m[4] | 0;
|
|
939
939
|
else {
|
|
940
940
|
t += B + `
|
|
941
941
|
`;
|
|
942
942
|
continue;
|
|
943
943
|
}
|
|
944
|
-
var
|
|
944
|
+
var H = !1;
|
|
945
945
|
if (e & 8) {
|
|
946
|
-
var
|
|
947
|
-
line:
|
|
948
|
-
|
|
946
|
+
var O = emscripten_source_map.Na({
|
|
947
|
+
line: ie,
|
|
948
|
+
Aa: m
|
|
949
949
|
});
|
|
950
|
-
(
|
|
950
|
+
(H = O && O.source) && (e & 64 && (O.source = O.source.substring(O.source.replace(/\\/g, "/").lastIndexOf("/") + 1)), t += " at " + B + " (" + O.source + ":" + O.line + ":" + O.Aa + `)
|
|
951
951
|
`);
|
|
952
952
|
}
|
|
953
|
-
(e & 16 || !
|
|
954
|
-
`), e & 128 &&
|
|
955
|
-
`),
|
|
953
|
+
(e & 16 || !H) && (e & 64 && (k = k.substring(k.replace(/\\/g, "/").lastIndexOf("/") + 1)), t += (H ? " = " + B : " at " + B) + " (" + k + ":" + ie + ":" + m + `)
|
|
954
|
+
`), e & 128 && n[0] && (n[1] == B && 0 < n[2].length && (t = t.replace(/\s+$/, ""), t += " with values: " + n[1] + n[2] + `
|
|
955
|
+
`), n = Se(n[0]));
|
|
956
956
|
}
|
|
957
957
|
return t = t.replace(/\s+$/, "");
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function bt(e) {
|
|
960
960
|
var t = e.getExtension("ANGLE_instanced_arrays");
|
|
961
|
-
t && (e.vertexAttribDivisor = function(
|
|
962
|
-
t.vertexAttribDivisorANGLE(
|
|
963
|
-
}, e.drawArraysInstanced = function(
|
|
964
|
-
t.drawArraysInstancedANGLE(
|
|
965
|
-
}, e.drawElementsInstanced = function(
|
|
966
|
-
t.drawElementsInstancedANGLE(
|
|
961
|
+
t && (e.vertexAttribDivisor = function(n, u) {
|
|
962
|
+
t.vertexAttribDivisorANGLE(n, u);
|
|
963
|
+
}, e.drawArraysInstanced = function(n, u, s, a) {
|
|
964
|
+
t.drawArraysInstancedANGLE(n, u, s, a);
|
|
965
|
+
}, e.drawElementsInstanced = function(n, u, s, a, c) {
|
|
966
|
+
t.drawElementsInstancedANGLE(n, u, s, a, c);
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function Tt(e) {
|
|
970
970
|
var t = e.getExtension("OES_vertex_array_object");
|
|
971
971
|
t && (e.createVertexArray = function() {
|
|
972
972
|
return t.createVertexArrayOES();
|
|
973
|
-
}, e.deleteVertexArray = function(
|
|
974
|
-
t.deleteVertexArrayOES(
|
|
975
|
-
}, e.bindVertexArray = function(
|
|
976
|
-
t.bindVertexArrayOES(
|
|
977
|
-
}, e.isVertexArray = function(
|
|
978
|
-
return t.isVertexArrayOES(
|
|
973
|
+
}, e.deleteVertexArray = function(n) {
|
|
974
|
+
t.deleteVertexArrayOES(n);
|
|
975
|
+
}, e.bindVertexArray = function(n) {
|
|
976
|
+
t.bindVertexArrayOES(n);
|
|
977
|
+
}, e.isVertexArray = function(n) {
|
|
978
|
+
return t.isVertexArrayOES(n);
|
|
979
979
|
});
|
|
980
980
|
}
|
|
981
|
-
function
|
|
981
|
+
function St(e) {
|
|
982
982
|
var t = e.getExtension("WEBGL_draw_buffers");
|
|
983
|
-
t && (e.drawBuffers = function(
|
|
984
|
-
t.drawBuffersWEBGL(
|
|
983
|
+
t && (e.drawBuffers = function(n, u) {
|
|
984
|
+
t.drawBuffersWEBGL(n, u);
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
|
-
var
|
|
988
|
-
function
|
|
989
|
-
|
|
987
|
+
var nt = 1, le = [], te = [], ne = [], rt = [], re = [], it = [1, 1, 2, 2, 4, 4, 4, 2, 3, 4, 8];
|
|
988
|
+
function fe(e) {
|
|
989
|
+
_e || (_e = e);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
for (var t =
|
|
993
|
-
e[
|
|
991
|
+
function we(e) {
|
|
992
|
+
for (var t = nt++, n = e.length; n < t; n++)
|
|
993
|
+
e[n] = null;
|
|
994
994
|
return t;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Ie(e) {
|
|
997
997
|
return 32 - Math.clz32(e === 0 ? 0 : e - 1);
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
e.
|
|
1001
|
-
return (
|
|
999
|
+
function It(e, t) {
|
|
1000
|
+
e.ka || (e.ka = e.getContext, e.getContext = function(u, s) {
|
|
1001
|
+
return (s = e.ka(u, s)) || (s = e.ka(u)), u == "webgl" == s instanceof WebGLRenderingContext ? s : null;
|
|
1002
1002
|
});
|
|
1003
|
-
var
|
|
1004
|
-
return
|
|
1003
|
+
var n = 1 < t.sa ? e.getContext("webgl2", t) : e.getContext("webgl", t);
|
|
1004
|
+
return n ? Lt(n, t) : 0;
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1007
|
-
var
|
|
1008
|
-
for (e.canvas && (e.canvas.
|
|
1009
|
-
|
|
1010
|
-
for (e =
|
|
1011
|
-
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1014
|
-
for (var
|
|
1015
|
-
c
|
|
1006
|
+
function Lt(e, t) {
|
|
1007
|
+
var n = we(re), u = { Ja: n, attributes: t, version: t.sa, V: e };
|
|
1008
|
+
for (e.canvas && (e.canvas.za = u), re[n] = u, (typeof t.ra > "u" || t.ra) && Kt(u), u.ta = u.V.getParameter(34921), u.aa = [], e = 0; e < u.ta; e++)
|
|
1009
|
+
u.aa[e] = { enabled: !1, ja: !1, size: 0, type: 0, ua: 0, la: 0, U: 0, ya: null };
|
|
1010
|
+
for (e = Ie(2097152), u.Y = [], u.va = [], u.Y.length = u.va.length = e + 1, u.ha = [], u.ma = [], u.ha.length = u.ma.length = e + 1, u.W = [], u.W.length = e + 1, t = 0; t <= e; ++t) {
|
|
1011
|
+
u.W[t] = null, u.Y[t] = u.va[t] = 0, u.ha[t] = [], u.ma[t] = [];
|
|
1012
|
+
var s = u.ha[t], a = u.ma[t];
|
|
1013
|
+
s.length = a.length = 64;
|
|
1014
|
+
for (var c = 0; 64 > c; ++c)
|
|
1015
|
+
s[c] = a[c] = null;
|
|
1016
1016
|
}
|
|
1017
|
-
return
|
|
1017
|
+
return n;
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
if (e || (e =
|
|
1021
|
-
e.
|
|
1022
|
-
var t = e.
|
|
1023
|
-
|
|
1024
|
-
|
|
1019
|
+
function Kt(e) {
|
|
1020
|
+
if (e || (e = b), !e.Da) {
|
|
1021
|
+
e.Da = !0;
|
|
1022
|
+
var t = e.V;
|
|
1023
|
+
bt(t), Tt(t), St(t), t.Fa = t.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"), t.Ka = t.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"), 2 <= e.version && (t.qa = t.getExtension("EXT_disjoint_timer_query_webgl2")), (2 > e.version || !t.qa) && (t.qa = t.getExtension("EXT_disjoint_timer_query")), t.Ma = t.getExtension("WEBGL_multi_draw"), (t.getSupportedExtensions() || []).forEach(function(n) {
|
|
1024
|
+
n.includes("lose_context") || n.includes("debug") || t.getExtension(n);
|
|
1025
1025
|
});
|
|
1026
1026
|
}
|
|
1027
1027
|
}
|
|
1028
|
-
var
|
|
1029
|
-
function
|
|
1028
|
+
var _e, b, Le, me = [], jt = {}, Ot = ["default", "low-power", "high-performance"], Vt = [0, typeof document < "u" ? document : 0, typeof window < "u" ? window : 0];
|
|
1029
|
+
function ut(e) {
|
|
1030
1030
|
return e.slice(-1) == "]" && e.lastIndexOf("[");
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
var t =
|
|
1032
|
+
function st(e) {
|
|
1033
|
+
var t = d.Ba;
|
|
1034
1034
|
if (t) {
|
|
1035
|
-
var
|
|
1036
|
-
return typeof
|
|
1035
|
+
var n = t.Z[e];
|
|
1036
|
+
return typeof n == "number" && (t.Z[e] = n = d.getUniformLocation(t, t.wa[e] + (0 < n ? "[" + n + "]" : ""))), n;
|
|
1037
1037
|
}
|
|
1038
|
-
|
|
1038
|
+
fe(1282);
|
|
1039
1039
|
}
|
|
1040
|
-
for (var
|
|
1041
|
-
|
|
1042
|
-
function
|
|
1043
|
-
for (var
|
|
1044
|
-
var
|
|
1045
|
-
55296 <=
|
|
1040
|
+
for (var ot = [], d, Ht = new Float32Array(288), Pe = 0; 288 > Pe; ++Pe)
|
|
1041
|
+
ot[Pe] = Ht.subarray(0, Pe + 1);
|
|
1042
|
+
function at(e, t) {
|
|
1043
|
+
for (var n = 0, u = 0; u < e.length; ++u) {
|
|
1044
|
+
var s = e.charCodeAt(u);
|
|
1045
|
+
55296 <= s && 57343 >= s && (s = 65536 + ((s & 1023) << 10) | e.charCodeAt(++u) & 1023), 127 >= s ? ++n : n = 2047 >= s ? n + 2 : 65535 >= s ? n + 3 : n + 4;
|
|
1046
1046
|
}
|
|
1047
|
-
return
|
|
1047
|
+
return n = Array(n + 1), e = ye(e, n, 0, n.length), t && (n.length = e), n;
|
|
1048
1048
|
}
|
|
1049
|
-
var
|
|
1050
|
-
|
|
1051
|
-
},
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
},
|
|
1049
|
+
var Nt = { a: function(e, t, n, u) {
|
|
1050
|
+
ue("Assertion failed: " + V(e) + ", at: " + [t ? V(t) : "unknown filename", n, u ? V(u) : "unknown function"]);
|
|
1051
|
+
}, b: function() {
|
|
1052
|
+
ue("");
|
|
1053
|
+
}, c: function(e, t, n) {
|
|
1054
|
+
t = Wt(t, n), t = G(t, 0), e & 24 && (t = t.replace(/\s+$/, ""), t += (0 < t.length ? `
|
|
1055
|
+
` : "") + Rt(e)), e & 1 ? e & 4 ? console.error(t) : e & 2 ? console.warn(t) : e & 512 ? console.info(t) : e & 256 ? console.debug(t) : console.log(t) : e & 6 ? P(t) : R(t);
|
|
1056
|
+
}, q: function(e, t, n) {
|
|
1057
|
+
ee.copyWithin(e, t, t + n);
|
|
1058
|
+
}, p: function(e) {
|
|
1057
1059
|
var t = ee.length;
|
|
1058
1060
|
if (e >>>= 0, 2147483648 < e)
|
|
1059
1061
|
return !1;
|
|
1060
|
-
for (var
|
|
1061
|
-
var
|
|
1062
|
-
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1062
|
+
for (var n = 1; 4 >= n; n *= 2) {
|
|
1063
|
+
var u = t * (1 + 0.2 / n);
|
|
1064
|
+
u = Math.min(u, e + 100663296);
|
|
1065
|
+
var s = Math;
|
|
1066
|
+
u = Math.max(e, u), s = s.min.call(s, 2147483648, u + (65536 - u % 65536) % 65536);
|
|
1065
1067
|
e: {
|
|
1066
1068
|
try {
|
|
1067
|
-
|
|
1068
|
-
var
|
|
1069
|
+
q.grow(s - he.byteLength + 65535 >>> 16), Ge();
|
|
1070
|
+
var a = 1;
|
|
1069
1071
|
break e;
|
|
1070
1072
|
} catch {
|
|
1071
1073
|
}
|
|
1072
|
-
|
|
1074
|
+
a = void 0;
|
|
1073
1075
|
}
|
|
1074
|
-
if (
|
|
1076
|
+
if (a)
|
|
1075
1077
|
return !0;
|
|
1076
1078
|
}
|
|
1077
1079
|
return !1;
|
|
1078
|
-
},
|
|
1079
|
-
return t >>= 2, t = { alpha: !!C[t + 0], depth: !!C[t + 1], stencil: !!C[t + 2], antialias: !!C[t + 3], premultipliedAlpha: !!C[t + 4], preserveDrawingBuffer: !!C[t + 5], powerPreference:
|
|
1080
|
+
}, l: function(e, t) {
|
|
1081
|
+
return t >>= 2, t = { alpha: !!C[t + 0], depth: !!C[t + 1], stencil: !!C[t + 2], antialias: !!C[t + 3], premultipliedAlpha: !!C[t + 4], preserveDrawingBuffer: !!C[t + 5], powerPreference: Ot[C[t + 6]], failIfMajorPerformanceCaveat: !!C[t + 7], sa: C[t + 8], La: C[t + 9], ra: C[t + 10], Ca: C[t + 11], Oa: C[t + 12], Pa: C[t + 13] }, e = 2 < e ? V(e) : e, e = Vt[e] || (typeof document < "u" ? document.querySelector(e) : void 0), !e || t.Ca ? 0 : It(e, t);
|
|
1082
|
+
}, m: function(e) {
|
|
1083
|
+
if (b == e && (b = 0), b === re[e] && (b = null), typeof jt == "object") {
|
|
1084
|
+
for (var t = re[e].V.canvas, n = 0; n < me.length; ++n)
|
|
1085
|
+
if (me[n].target == t) {
|
|
1086
|
+
var u = n--, s = me[u];
|
|
1087
|
+
s.target.removeEventListener(s.Ha, s.Ga, s.Qa), me.splice(u, 1);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1090
|
+
re[e] && re[e].V.canvas && (re[e].V.canvas.za = void 0), re[e] = null;
|
|
1080
1091
|
}, e: function(e) {
|
|
1081
|
-
return
|
|
1092
|
+
return b = re[e], r.Ea = d = b && b.V, !e || d ? 0 : -5;
|
|
1093
|
+
}, k: function(e, t) {
|
|
1094
|
+
d.attachShader(te[e], ne[t]);
|
|
1095
|
+
}, E: function(e, t, n) {
|
|
1096
|
+
d.bindAttribLocation(
|
|
1097
|
+
te[e],
|
|
1098
|
+
t,
|
|
1099
|
+
V(n)
|
|
1100
|
+
);
|
|
1082
1101
|
}, d: function(e, t) {
|
|
1083
|
-
|
|
1084
|
-
},
|
|
1085
|
-
|
|
1086
|
-
},
|
|
1087
|
-
|
|
1088
|
-
},
|
|
1089
|
-
|
|
1090
|
-
},
|
|
1091
|
-
|
|
1092
|
-
},
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
}, q: function(e, t, r, s) {
|
|
1103
|
-
if (!y.ka) {
|
|
1104
|
-
var c = 1 * tt[r - 5120] * t, u = Se(c), a = S.S[u];
|
|
1105
|
-
a ? u = a : (a = y.getParameter(34965), S.S[u] = y.createBuffer(), y.bindBuffer(34963, S.S[u]), y.bufferData(34963, 1 << u, 35048), y.bindBuffer(34963, a), u = S.S[u]), y.bindBuffer(34963, u), y.bufferSubData(34963, 0, ee.subarray(s, s + c)), s = 0;
|
|
1102
|
+
e == 34962 ? d.ba = t : e == 34963 && (d.da = t), e == 35051 ? d.oa = t : e == 35052 && (d.pa = t), d.bindBuffer(e, le[t]);
|
|
1103
|
+
}, g: function(e, t, n, u) {
|
|
1104
|
+
2 <= b.version ? n ? d.bufferData(e, ee, u, n, t) : d.bufferData(e, t, u) : d.bufferData(e, n ? ee.subarray(n, n + t) : t, u);
|
|
1105
|
+
}, z: function(e) {
|
|
1106
|
+
d.clear(e);
|
|
1107
|
+
}, A: function(e, t, n, u) {
|
|
1108
|
+
d.clearColor(e, t, n, u);
|
|
1109
|
+
}, r: function(e) {
|
|
1110
|
+
d.compileShader(ne[e]);
|
|
1111
|
+
}, F: function() {
|
|
1112
|
+
var e = we(te), t = d.createProgram();
|
|
1113
|
+
return t.name = e, t.ga = t.ea = t.fa = 0, t.na = 1, te[e] = t, e;
|
|
1114
|
+
}, G: function(e) {
|
|
1115
|
+
var t = we(ne);
|
|
1116
|
+
return ne[t] = d.createShader(e), t;
|
|
1117
|
+
}, f: function(e, t) {
|
|
1118
|
+
for (var n = 0; n < e; n++) {
|
|
1119
|
+
var u = C[t + 4 * n >> 2], s = le[u];
|
|
1120
|
+
s && (d.deleteBuffer(s), s.name = 0, le[u] = null, u == d.ba && (d.ba = 0), u == d.da && (d.da = 0), u == d.oa && (d.oa = 0), u == d.pa && (d.pa = 0));
|
|
1106
1121
|
}
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1122
|
+
}, s: function(e, t) {
|
|
1123
|
+
for (var n = 0; n < e; n++) {
|
|
1124
|
+
var u = C[t + 4 * n >> 2];
|
|
1125
|
+
d.deleteVertexArray(rt[u]), rt[u] = null;
|
|
1126
|
+
}
|
|
1127
|
+
}, u: function(e, t, n, u) {
|
|
1128
|
+
if (!d.da) {
|
|
1129
|
+
var s = 1 * it[n - 5120] * t, a = Ie(s), c = b.W[a];
|
|
1130
|
+
c ? a = c : (c = d.getParameter(34965), b.W[a] = d.createBuffer(), d.bindBuffer(34963, b.W[a]), d.bufferData(34963, 1 << a, 35048), d.bindBuffer(34963, c), a = b.W[a]), d.bindBuffer(34963, a), d.bufferSubData(34963, 0, ee.subarray(u, u + s)), u = 0;
|
|
1131
|
+
}
|
|
1132
|
+
for (Le = !1, s = 0; s < b.ta; ++s)
|
|
1133
|
+
if (a = b.aa[s], a.ja && a.enabled) {
|
|
1134
|
+
Le = !0, c = a.la, c = 0 < c ? t * c : a.size * it[a.type - 5120] * t;
|
|
1135
|
+
var y = Ie(c), B = b.ha[y], m = b.Y[y];
|
|
1136
|
+
b.Y[y] = b.Y[y] + 1 & 63;
|
|
1137
|
+
var k = B[m];
|
|
1138
|
+
k ? y = k : (k = d.getParameter(34964), B[m] = d.createBuffer(), d.bindBuffer(34962, B[m]), d.bufferData(34962, 1 << y, 35048), d.bindBuffer(34962, k), y = B[m]), d.bindBuffer(34962, y), d.bufferSubData(34962, 0, ee.subarray(a.U, a.U + c)), a.ya.call(d, s, a.size, a.type, a.ua, a.la, 0);
|
|
1114
1139
|
}
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1140
|
+
d.drawElements(e, t, n, u), Le && d.bindBuffer(
|
|
1141
|
+
34962,
|
|
1142
|
+
le[d.ba]
|
|
1143
|
+
), d.da || d.bindBuffer(34963, null);
|
|
1144
|
+
}, w: function(e) {
|
|
1145
|
+
b.aa[e].enabled = !0, d.enableVertexAttribArray(e);
|
|
1146
|
+
}, h: function(e, t) {
|
|
1147
|
+
for (var n = 0; n < e; n++) {
|
|
1148
|
+
var u = d.createBuffer(), s = u && we(le);
|
|
1149
|
+
u ? (u.name = s, le[s] = u) : fe(1282), C[t + 4 * n >> 2] = s;
|
|
1122
1150
|
}
|
|
1123
|
-
},
|
|
1124
|
-
var e =
|
|
1125
|
-
return
|
|
1126
|
-
},
|
|
1127
|
-
if (
|
|
1128
|
-
if (e >=
|
|
1129
|
-
|
|
1151
|
+
}, t: function() {
|
|
1152
|
+
var e = d.getError() || _e;
|
|
1153
|
+
return _e = 0, e;
|
|
1154
|
+
}, B: function(e, t, n) {
|
|
1155
|
+
if (n)
|
|
1156
|
+
if (e >= nt)
|
|
1157
|
+
fe(1281);
|
|
1130
1158
|
else if (e = te[e], t == 35716)
|
|
1131
|
-
e =
|
|
1159
|
+
e = d.getProgramInfoLog(e), e === null && (e = "(unknown error)"), C[n >> 2] = e.length + 1;
|
|
1132
1160
|
else if (t == 35719) {
|
|
1133
|
-
if (!e
|
|
1134
|
-
for (t = 0; t <
|
|
1135
|
-
e
|
|
1136
|
-
|
|
1161
|
+
if (!e.ga)
|
|
1162
|
+
for (t = 0; t < d.getProgramParameter(e, 35718); ++t)
|
|
1163
|
+
e.ga = Math.max(
|
|
1164
|
+
e.ga,
|
|
1165
|
+
d.getActiveUniform(e, t).name.length + 1
|
|
1166
|
+
);
|
|
1167
|
+
C[n >> 2] = e.ga;
|
|
1137
1168
|
} else if (t == 35722) {
|
|
1138
|
-
if (!e.
|
|
1139
|
-
for (t = 0; t <
|
|
1140
|
-
e.
|
|
1141
|
-
|
|
1142
|
-
t
|
|
1143
|
-
).name.length + 1);
|
|
1144
|
-
C[r >> 2] = e.Y;
|
|
1169
|
+
if (!e.ea)
|
|
1170
|
+
for (t = 0; t < d.getProgramParameter(e, 35721); ++t)
|
|
1171
|
+
e.ea = Math.max(e.ea, d.getActiveAttrib(e, t).name.length + 1);
|
|
1172
|
+
C[n >> 2] = e.ea;
|
|
1145
1173
|
} else if (t == 35381) {
|
|
1146
|
-
if (!e.
|
|
1147
|
-
for (t = 0; t <
|
|
1148
|
-
e.
|
|
1149
|
-
C[
|
|
1174
|
+
if (!e.fa)
|
|
1175
|
+
for (t = 0; t < d.getProgramParameter(e, 35382); ++t)
|
|
1176
|
+
e.fa = Math.max(e.fa, d.getActiveUniformBlockName(e, t).length + 1);
|
|
1177
|
+
C[n >> 2] = e.fa;
|
|
1150
1178
|
} else
|
|
1151
|
-
C[
|
|
1179
|
+
C[n >> 2] = d.getProgramParameter(e, t);
|
|
1152
1180
|
else
|
|
1153
|
-
|
|
1154
|
-
},
|
|
1155
|
-
e =
|
|
1156
|
-
},
|
|
1157
|
-
|
|
1158
|
-
},
|
|
1159
|
-
if (t =
|
|
1160
|
-
var
|
|
1161
|
-
if (!
|
|
1162
|
-
for (
|
|
1163
|
-
var
|
|
1164
|
-
|
|
1165
|
-
var B =
|
|
1166
|
-
B = 0 < B ?
|
|
1167
|
-
var
|
|
1168
|
-
for (
|
|
1169
|
-
|
|
1181
|
+
fe(1281);
|
|
1182
|
+
}, n: function(e, t, n, u) {
|
|
1183
|
+
e = d.getShaderInfoLog(ne[e]), e === null && (e = "(unknown error)"), t = 0 < t && u ? ye(e, ee, u, t) : 0, n && (C[n >> 2] = t);
|
|
1184
|
+
}, o: function(e, t, n) {
|
|
1185
|
+
n ? t == 35716 ? (e = d.getShaderInfoLog(ne[e]), e === null && (e = "(unknown error)"), C[n >> 2] = e ? e.length + 1 : 0) : t == 35720 ? (e = d.getShaderSource(ne[e]), C[n >> 2] = e ? e.length + 1 : 0) : C[n >> 2] = d.getShaderParameter(ne[e], t) : fe(1281);
|
|
1186
|
+
}, j: function(e, t) {
|
|
1187
|
+
if (t = V(t), e = te[e]) {
|
|
1188
|
+
var n = e, u = n.Z, s = n.xa, a;
|
|
1189
|
+
if (!u)
|
|
1190
|
+
for (n.Z = u = {}, n.wa = {}, a = 0; a < d.getProgramParameter(n, 35718); ++a) {
|
|
1191
|
+
var c = d.getActiveUniform(n, a), y = c.name;
|
|
1192
|
+
c = c.size;
|
|
1193
|
+
var B = ut(y);
|
|
1194
|
+
B = 0 < B ? y.slice(0, B) : y;
|
|
1195
|
+
var m = n.na;
|
|
1196
|
+
for (n.na += c, s[B] = [c, m], y = 0; y < c; ++y)
|
|
1197
|
+
u[m] = y, n.wa[m++] = B;
|
|
1170
1198
|
}
|
|
1171
|
-
if (
|
|
1172
|
-
return
|
|
1199
|
+
if (n = e.Z, u = 0, s = t, a = ut(t), 0 < a && (u = parseInt(t.slice(a + 1)) >>> 0, s = t.slice(0, a)), (s = e.xa[s]) && u < s[0] && (u += s[1], n[u] = n[u] || d.getUniformLocation(e, t)))
|
|
1200
|
+
return u;
|
|
1173
1201
|
} else
|
|
1174
|
-
|
|
1202
|
+
fe(1281);
|
|
1175
1203
|
return -1;
|
|
1176
|
-
},
|
|
1177
|
-
e = te[e],
|
|
1178
|
-
},
|
|
1179
|
-
for (var
|
|
1180
|
-
var
|
|
1181
|
-
|
|
1204
|
+
}, D: function(e) {
|
|
1205
|
+
e = te[e], d.linkProgram(e), e.Z = 0, e.xa = {};
|
|
1206
|
+
}, x: function(e, t, n, u) {
|
|
1207
|
+
for (var s = "", a = 0; a < t; ++a) {
|
|
1208
|
+
var c = u ? C[u + 4 * a >> 2] : -1;
|
|
1209
|
+
s += V(C[n + 4 * a >> 2], 0 > c ? void 0 : c);
|
|
1182
1210
|
}
|
|
1183
|
-
|
|
1184
|
-
},
|
|
1185
|
-
if (2 <=
|
|
1186
|
-
|
|
1211
|
+
d.shaderSource(ne[e], s);
|
|
1212
|
+
}, i: function(e, t, n, u) {
|
|
1213
|
+
if (2 <= b.version)
|
|
1214
|
+
d.uniformMatrix4fv(st(e), !!n, Ee, u >> 2, 16 * t);
|
|
1187
1215
|
else {
|
|
1188
1216
|
if (18 >= t) {
|
|
1189
|
-
var
|
|
1190
|
-
|
|
1191
|
-
for (var
|
|
1192
|
-
var
|
|
1193
|
-
c
|
|
1217
|
+
var s = ot[16 * t - 1], a = Ee;
|
|
1218
|
+
u >>= 2;
|
|
1219
|
+
for (var c = 0; c < 16 * t; c += 16) {
|
|
1220
|
+
var y = u + c;
|
|
1221
|
+
s[c] = a[y], s[c + 1] = a[y + 1], s[c + 2] = a[y + 2], s[c + 3] = a[y + 3], s[c + 4] = a[y + 4], s[c + 5] = a[y + 5], s[c + 6] = a[y + 6], s[c + 7] = a[y + 7], s[c + 8] = a[y + 8], s[c + 9] = a[y + 9], s[c + 10] = a[y + 10], s[c + 11] = a[y + 11], s[c + 12] = a[y + 12], s[c + 13] = a[y + 13], s[c + 14] = a[y + 14], s[c + 15] = a[y + 15];
|
|
1194
1222
|
}
|
|
1195
1223
|
} else
|
|
1196
|
-
|
|
1197
|
-
|
|
1224
|
+
s = Ee.subarray(u >> 2, u + 64 * t >> 2);
|
|
1225
|
+
d.uniformMatrix4fv(st(e), !!n, s);
|
|
1198
1226
|
}
|
|
1199
|
-
}, u: function(e) {
|
|
1200
|
-
e = te[e], y.useProgram(e), y.va = e;
|
|
1201
1227
|
}, y: function(e) {
|
|
1202
|
-
|
|
1203
|
-
},
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1228
|
+
e = te[e], d.useProgram(e), d.Ba = e;
|
|
1229
|
+
}, C: function(e) {
|
|
1230
|
+
d.validateProgram(te[e]);
|
|
1231
|
+
}, v: function(e, t, n, u, s, a) {
|
|
1232
|
+
var c = b.aa[e];
|
|
1233
|
+
d.ba ? (c.ja = !1, d.vertexAttribPointer(e, t, n, !!u, s, a)) : (c.size = t, c.type = n, c.ua = u, c.la = s, c.U = a, c.ja = !0, c.ya = function(y, B, m, k, ie, H) {
|
|
1234
|
+
this.vertexAttribPointer(y, B, m, k, ie, H);
|
|
1207
1235
|
});
|
|
1208
1236
|
} };
|
|
1209
1237
|
(function() {
|
|
1210
|
-
function e(
|
|
1211
|
-
|
|
1238
|
+
function e(s) {
|
|
1239
|
+
r.asm = s.exports, q = r.asm.H, Ge(), Xe = r.asm.Q, Ye.unshift(r.asm.I), ce--, r.monitorRunDependencies && r.monitorRunDependencies(ce), ce == 0 && pe && (s = pe, pe = null, s());
|
|
1212
1240
|
}
|
|
1213
|
-
function t(
|
|
1214
|
-
e(
|
|
1241
|
+
function t(s) {
|
|
1242
|
+
e(s.instance);
|
|
1215
1243
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1218
|
-
return WebAssembly.instantiate(
|
|
1219
|
-
}).then(function(
|
|
1220
|
-
return
|
|
1221
|
-
}).then(
|
|
1222
|
-
|
|
1244
|
+
function n(s) {
|
|
1245
|
+
return Ft().then(function(a) {
|
|
1246
|
+
return WebAssembly.instantiate(a, u);
|
|
1247
|
+
}).then(function(a) {
|
|
1248
|
+
return a;
|
|
1249
|
+
}).then(s, function(a) {
|
|
1250
|
+
P("failed to asynchronously prepare wasm: " + a), ue(a);
|
|
1223
1251
|
});
|
|
1224
1252
|
}
|
|
1225
|
-
var
|
|
1226
|
-
if (
|
|
1253
|
+
var u = { a: Nt };
|
|
1254
|
+
if (ce++, r.monitorRunDependencies && r.monitorRunDependencies(ce), r.instantiateWasm)
|
|
1227
1255
|
try {
|
|
1228
|
-
return
|
|
1229
|
-
|
|
1256
|
+
return r.instantiateWasm(
|
|
1257
|
+
u,
|
|
1230
1258
|
e
|
|
1231
1259
|
);
|
|
1232
|
-
} catch (
|
|
1233
|
-
return
|
|
1260
|
+
} catch (s) {
|
|
1261
|
+
return P("Module.instantiateWasm callback failed with error: " + s), !1;
|
|
1234
1262
|
}
|
|
1235
1263
|
return function() {
|
|
1236
|
-
return
|
|
1237
|
-
return WebAssembly.instantiateStreaming(
|
|
1238
|
-
return
|
|
1264
|
+
return j || typeof WebAssembly.instantiateStreaming != "function" || Je() || $.startsWith("file://") || typeof fetch != "function" ? n(t) : fetch($, { credentials: "same-origin" }).then(function(s) {
|
|
1265
|
+
return WebAssembly.instantiateStreaming(s, u).then(t, function(a) {
|
|
1266
|
+
return P("wasm streaming compile failed: " + a), P("falling back to ArrayBuffer instantiation"), n(t);
|
|
1239
1267
|
});
|
|
1240
1268
|
});
|
|
1241
1269
|
}().catch(l), {};
|
|
1242
|
-
})(),
|
|
1243
|
-
return (
|
|
1270
|
+
})(), r.___wasm_call_ctors = function() {
|
|
1271
|
+
return (r.___wasm_call_ctors = r.asm.I).apply(null, arguments);
|
|
1244
1272
|
};
|
|
1245
|
-
var
|
|
1246
|
-
return (
|
|
1247
|
-
},
|
|
1248
|
-
return (
|
|
1249
|
-
},
|
|
1250
|
-
return (
|
|
1251
|
-
},
|
|
1252
|
-
return (
|
|
1253
|
-
},
|
|
1254
|
-
return (
|
|
1255
|
-
},
|
|
1256
|
-
return (
|
|
1257
|
-
},
|
|
1258
|
-
return (
|
|
1259
|
-
},
|
|
1260
|
-
return (
|
|
1273
|
+
var ct = r._emscripten_bind_VoidPtr___destroy___0 = function() {
|
|
1274
|
+
return (ct = r._emscripten_bind_VoidPtr___destroy___0 = r.asm.J).apply(null, arguments);
|
|
1275
|
+
}, lt = r._emscripten_bind_McObject_updateDisplay_2 = function() {
|
|
1276
|
+
return (lt = r._emscripten_bind_McObject_updateDisplay_2 = r.asm.K).apply(null, arguments);
|
|
1277
|
+
}, ft = r._emscripten_bind_McObject_test_0 = function() {
|
|
1278
|
+
return (ft = r._emscripten_bind_McObject_test_0 = r.asm.L).apply(null, arguments);
|
|
1279
|
+
}, dt = r._emscripten_bind_McApp_McApp_0 = function() {
|
|
1280
|
+
return (dt = r._emscripten_bind_McApp_McApp_0 = r.asm.M).apply(null, arguments);
|
|
1281
|
+
}, pt = r._emscripten_bind_McApp_Init_0 = function() {
|
|
1282
|
+
return (pt = r._emscripten_bind_McApp_Init_0 = r.asm.N).apply(null, arguments);
|
|
1283
|
+
}, yt = r._emscripten_bind_McApp_CreateMxDraw_3 = function() {
|
|
1284
|
+
return (yt = r._emscripten_bind_McApp_CreateMxDraw_3 = r.asm.O).apply(null, arguments);
|
|
1285
|
+
}, ht = r._emscripten_bind_McApp___destroy___0 = function() {
|
|
1286
|
+
return (ht = r._emscripten_bind_McApp___destroy___0 = r.asm.P).apply(null, arguments);
|
|
1287
|
+
}, Et = r._strlen = function() {
|
|
1288
|
+
return (Et = r._strlen = r.asm.R).apply(null, arguments);
|
|
1261
1289
|
};
|
|
1262
|
-
|
|
1263
|
-
return (
|
|
1264
|
-
},
|
|
1265
|
-
return (
|
|
1290
|
+
r._free = function() {
|
|
1291
|
+
return (r._free = r.asm.S).apply(null, arguments);
|
|
1292
|
+
}, r._malloc = function() {
|
|
1293
|
+
return (r._malloc = r.asm.T).apply(null, arguments);
|
|
1266
1294
|
};
|
|
1267
|
-
var
|
|
1268
|
-
|
|
1269
|
-
|
|
1295
|
+
var ve;
|
|
1296
|
+
pe = function e() {
|
|
1297
|
+
ve || Ke(), ve || (pe = e);
|
|
1270
1298
|
};
|
|
1271
|
-
function
|
|
1299
|
+
function Ke() {
|
|
1272
1300
|
function e() {
|
|
1273
|
-
if (!
|
|
1274
|
-
if (
|
|
1275
|
-
for (typeof
|
|
1276
|
-
var t =
|
|
1277
|
-
|
|
1301
|
+
if (!ve && (ve = !0, r.calledRun = !0, !N)) {
|
|
1302
|
+
if (Te(Ye), f(r), r.onRuntimeInitialized && r.onRuntimeInitialized(), r.postRun)
|
|
1303
|
+
for (typeof r.postRun == "function" && (r.postRun = [r.postRun]); r.postRun.length; ) {
|
|
1304
|
+
var t = r.postRun.shift();
|
|
1305
|
+
Ze.unshift(t);
|
|
1278
1306
|
}
|
|
1279
|
-
|
|
1307
|
+
Te(Ze);
|
|
1280
1308
|
}
|
|
1281
1309
|
}
|
|
1282
|
-
if (!(0 <
|
|
1283
|
-
if (
|
|
1284
|
-
for (typeof
|
|
1285
|
-
|
|
1286
|
-
|
|
1310
|
+
if (!(0 < ce)) {
|
|
1311
|
+
if (r.preRun)
|
|
1312
|
+
for (typeof r.preRun == "function" && (r.preRun = [r.preRun]); r.preRun.length; )
|
|
1313
|
+
kt();
|
|
1314
|
+
Te($e), 0 < ce || (r.setStatus ? (r.setStatus("Running..."), setTimeout(function() {
|
|
1287
1315
|
setTimeout(function() {
|
|
1288
|
-
|
|
1316
|
+
r.setStatus("");
|
|
1289
1317
|
}, 1), e();
|
|
1290
1318
|
}, 1)) : e());
|
|
1291
1319
|
}
|
|
1292
1320
|
}
|
|
1293
|
-
if (
|
|
1294
|
-
for (typeof
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
function
|
|
1321
|
+
if (r.run = Ke, r.preInit)
|
|
1322
|
+
for (typeof r.preInit == "function" && (r.preInit = [r.preInit]); 0 < r.preInit.length; )
|
|
1323
|
+
r.preInit.pop()();
|
|
1324
|
+
Ke();
|
|
1325
|
+
function X() {
|
|
1298
1326
|
}
|
|
1299
|
-
|
|
1300
|
-
function
|
|
1301
|
-
return (e ||
|
|
1327
|
+
X.prototype = Object.create(X.prototype), X.prototype.constructor = X, X.prototype.X = X, X.$ = {}, r.WrapperObject = X;
|
|
1328
|
+
function xe(e) {
|
|
1329
|
+
return (e || X).$;
|
|
1302
1330
|
}
|
|
1303
|
-
|
|
1304
|
-
function
|
|
1305
|
-
var
|
|
1306
|
-
return
|
|
1331
|
+
r.getCache = xe;
|
|
1332
|
+
function Me(e, t) {
|
|
1333
|
+
var n = xe(t), u = n[e];
|
|
1334
|
+
return u || (u = Object.create((t || X).prototype), u.U = e, n[e] = u);
|
|
1307
1335
|
}
|
|
1308
|
-
|
|
1309
|
-
return
|
|
1310
|
-
},
|
|
1336
|
+
r.wrapPointer = Me, r.castObject = function(e, t) {
|
|
1337
|
+
return Me(e.U, t);
|
|
1338
|
+
}, r.NULL = Me(0), r.destroy = function(e) {
|
|
1311
1339
|
if (!e.__destroy__)
|
|
1312
1340
|
throw "Error: Cannot destroy object. (Did you create it yourself?)";
|
|
1313
|
-
e.__destroy__(), delete
|
|
1314
|
-
},
|
|
1315
|
-
return e.
|
|
1316
|
-
},
|
|
1317
|
-
return e.
|
|
1318
|
-
},
|
|
1319
|
-
return e.
|
|
1341
|
+
e.__destroy__(), delete xe(e.X)[e.U];
|
|
1342
|
+
}, r.compare = function(e, t) {
|
|
1343
|
+
return e.U === t.U;
|
|
1344
|
+
}, r.getPointer = function(e) {
|
|
1345
|
+
return e.U;
|
|
1346
|
+
}, r.getClass = function(e) {
|
|
1347
|
+
return e.X;
|
|
1320
1348
|
};
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1323
|
-
if (
|
|
1324
|
-
for (var e = 0; e <
|
|
1325
|
-
|
|
1326
|
-
|
|
1349
|
+
var de = 0, Ce = 0, Be = 0, De = [], ke = 0;
|
|
1350
|
+
function At() {
|
|
1351
|
+
if (ke) {
|
|
1352
|
+
for (var e = 0; e < De.length; e++)
|
|
1353
|
+
r._free(De[e]);
|
|
1354
|
+
De.length = 0, r._free(de), de = 0, Ce += ke, ke = 0;
|
|
1327
1355
|
}
|
|
1328
|
-
|
|
1356
|
+
de || (Ce += 128, (de = r._malloc(Ce)) || ue(void 0)), Be = 0;
|
|
1329
1357
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1358
|
+
function gt(e, t) {
|
|
1359
|
+
return de || ue(void 0), e = e.length * t.BYTES_PER_ELEMENT, e = e + 7 & -8, Be + e >= Ce ? (0 < e || ue(void 0), ke += e, t = r._malloc(e), De.push(t)) : (t = de + Be, Be += e), t;
|
|
1332
1360
|
}
|
|
1333
|
-
function
|
|
1334
|
-
switch (
|
|
1361
|
+
function wt(e, t, n) {
|
|
1362
|
+
switch (n >>>= 0, t.BYTES_PER_ELEMENT) {
|
|
1335
1363
|
case 2:
|
|
1336
|
-
|
|
1364
|
+
n >>>= 1;
|
|
1337
1365
|
break;
|
|
1338
1366
|
case 4:
|
|
1339
|
-
|
|
1367
|
+
n >>>= 2;
|
|
1340
1368
|
break;
|
|
1341
1369
|
case 8:
|
|
1342
|
-
|
|
1370
|
+
n >>>= 3;
|
|
1343
1371
|
}
|
|
1344
|
-
for (var
|
|
1345
|
-
t[
|
|
1372
|
+
for (var u = 0; u < e.length; u++)
|
|
1373
|
+
t[n + u] = e[u];
|
|
1346
1374
|
}
|
|
1347
|
-
function
|
|
1375
|
+
function _t(e) {
|
|
1348
1376
|
if (typeof e == "object") {
|
|
1349
|
-
var t =
|
|
1350
|
-
return
|
|
1377
|
+
var t = gt(e, Ae);
|
|
1378
|
+
return wt(e, Ae, t), t;
|
|
1351
1379
|
}
|
|
1352
1380
|
return e;
|
|
1353
1381
|
}
|
|
1354
|
-
function
|
|
1382
|
+
function se() {
|
|
1355
1383
|
throw "cannot construct a VoidPtr, no constructor in IDL";
|
|
1356
1384
|
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1385
|
+
se.prototype = Object.create(X.prototype), se.prototype.constructor = se, se.prototype.X = se, se.$ = {}, r.VoidPtr = se, se.prototype.__destroy__ = function() {
|
|
1386
|
+
ct(this.U);
|
|
1359
1387
|
};
|
|
1360
1388
|
function Z() {
|
|
1361
1389
|
throw "cannot construct a McObject, no constructor in IDL";
|
|
1362
1390
|
}
|
|
1363
|
-
Z.prototype = Object.create(
|
|
1364
|
-
var
|
|
1365
|
-
return
|
|
1391
|
+
Z.prototype = Object.create(X.prototype), Z.prototype.constructor = Z, Z.prototype.X = Z, Z.$ = {}, r.McObject = Z, Z.prototype.updateDisplay = function(e, t) {
|
|
1392
|
+
var n = this.U;
|
|
1393
|
+
return At(), typeof e == "object" && (e = _t(e)), typeof t == "object" && (t = _t(t)), !!lt(n, e, t);
|
|
1366
1394
|
}, Z.prototype.test = Z.prototype.test = function() {
|
|
1367
|
-
|
|
1395
|
+
ft(this.U);
|
|
1368
1396
|
};
|
|
1369
|
-
function
|
|
1370
|
-
this.
|
|
1397
|
+
function J() {
|
|
1398
|
+
this.U = dt(), xe(J)[this.U] = this;
|
|
1371
1399
|
}
|
|
1372
|
-
return
|
|
1373
|
-
|
|
1374
|
-
},
|
|
1375
|
-
var
|
|
1376
|
-
if (
|
|
1377
|
-
|
|
1378
|
-
else if (typeof
|
|
1379
|
-
|
|
1380
|
-
var
|
|
1381
|
-
|
|
1400
|
+
return J.prototype = Object.create(X.prototype), J.prototype.constructor = J, J.prototype.X = J, J.$ = {}, r.McApp = J, J.prototype.Init = function() {
|
|
1401
|
+
pt(this.U);
|
|
1402
|
+
}, J.prototype.CreateMxDraw = function(e, t, n) {
|
|
1403
|
+
var u = this.U;
|
|
1404
|
+
if (At(), e && typeof e == "object" && (e = e.U), t && typeof t == "object" && (t = t.U), n && typeof n == "object")
|
|
1405
|
+
n = n.U;
|
|
1406
|
+
else if (typeof n == "string") {
|
|
1407
|
+
n = at(n);
|
|
1408
|
+
var s = gt(n, K);
|
|
1409
|
+
wt(n, K, s), n = s;
|
|
1382
1410
|
}
|
|
1383
|
-
return
|
|
1384
|
-
},
|
|
1385
|
-
|
|
1411
|
+
return Me(yt(u, e, t, n), Z);
|
|
1412
|
+
}, J.prototype.__destroy__ = function() {
|
|
1413
|
+
ht(this.U);
|
|
1386
1414
|
}, o.ready;
|
|
1387
1415
|
};
|
|
1388
1416
|
})();
|
|
1389
|
-
typeof exports == "object" && typeof module == "object" ? module.exports =
|
|
1390
|
-
return
|
|
1391
|
-
}) : typeof exports == "object" && (exports.mxdrawassembly =
|
|
1392
|
-
const
|
|
1393
|
-
let
|
|
1394
|
-
function
|
|
1395
|
-
|
|
1417
|
+
typeof exports == "object" && typeof module == "object" ? module.exports = Re : typeof define == "function" && define.amd ? define([], function() {
|
|
1418
|
+
return Re;
|
|
1419
|
+
}) : typeof exports == "object" && (exports.mxdrawassembly = Re);
|
|
1420
|
+
const sn = (i, o) => new URL(i, o || self.location.href).toString();
|
|
1421
|
+
let be;
|
|
1422
|
+
function on(i, o = sn) {
|
|
1423
|
+
Re({
|
|
1396
1424
|
locateFile: o
|
|
1397
|
-
}).then((
|
|
1398
|
-
let f = new
|
|
1399
|
-
f.Init(),
|
|
1425
|
+
}).then((r) => {
|
|
1426
|
+
let f = new r.McApp();
|
|
1427
|
+
f.Init(), be = r, be.McApp = f, i(be);
|
|
1400
1428
|
});
|
|
1401
1429
|
}
|
|
1402
|
-
const
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1430
|
+
const cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1431
|
+
__proto__: null,
|
|
1432
|
+
get MxCpp() {
|
|
1433
|
+
return be;
|
|
1434
|
+
},
|
|
1435
|
+
loadMxdrawassembly: on,
|
|
1436
|
+
fetchAndInstantiate: Yt,
|
|
1437
|
+
b64Encode: xt,
|
|
1438
|
+
b64Decode: Mt,
|
|
1439
|
+
setMcDbEntity: Ct,
|
|
1440
|
+
MxTools: Ne,
|
|
1441
|
+
drawText: Zt,
|
|
1442
|
+
drawCircle: Bt,
|
|
1443
|
+
drawLine: Dt,
|
|
1444
|
+
drawMText: Qt,
|
|
1445
|
+
drawPolyLine: Ut,
|
|
1446
|
+
drawPolygon: qt,
|
|
1447
|
+
drawArc: rn,
|
|
1448
|
+
drawEllipticalArc: un
|
|
1449
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1406
1450
|
export {
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1451
|
+
be as MxCpp,
|
|
1452
|
+
Ne as MxTools,
|
|
1453
|
+
Mt as b64Decode,
|
|
1454
|
+
xt as b64Encode,
|
|
1455
|
+
cn as default,
|
|
1412
1456
|
rn as drawArc,
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1457
|
+
Bt as drawCircle,
|
|
1458
|
+
un as drawEllipticalArc,
|
|
1459
|
+
Dt as drawLine,
|
|
1460
|
+
Qt as drawMText,
|
|
1461
|
+
Ut as drawPolyLine,
|
|
1462
|
+
qt as drawPolygon,
|
|
1463
|
+
Zt as drawText,
|
|
1464
|
+
Yt as fetchAndInstantiate,
|
|
1465
|
+
on as loadMxdrawassembly,
|
|
1466
|
+
Ct as setMcDbEntity
|
|
1423
1467
|
};
|