mxcad 1.0.5 → 1.0.6
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 +820 -762
- 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
|
|
2
|
-
async function
|
|
1
|
+
import { MxFun as S, MrxDbgUiPrPoint as ue, store as Ve, MxPaintBrush as q, MrxDbgUiPrBaseReturn as R, MxDbCircleShape as vt, MxDbLine as ke, MxDbPolyline as Ht, MxDbRegularPolygon as Nt, MxDbCircleArc as De, Mx3PointArc as zt, MxDbEllipseShape as Gt } from "mxdraw";
|
|
2
|
+
async function Xt(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 Pt(i) {
|
|
7
7
|
return btoa(unescape(encodeURIComponent(i)));
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function xt(i) {
|
|
10
10
|
return decodeURIComponent(escape(atob(i)));
|
|
11
11
|
}
|
|
12
|
-
function
|
|
12
|
+
function Mt(i) {
|
|
13
13
|
let o = JSON.stringify(i);
|
|
14
|
-
|
|
14
|
+
S.callCommand("MxCAD_SetEntityData", o);
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
b64Encode:
|
|
18
|
-
b64Decode:
|
|
19
|
-
setMcDbEntity:
|
|
16
|
+
const He = {
|
|
17
|
+
b64Encode: Pt,
|
|
18
|
+
b64Decode: xt,
|
|
19
|
+
setMcDbEntity: Mt
|
|
20
20
|
};
|
|
21
|
-
async function
|
|
22
|
-
const i = new
|
|
21
|
+
async function $t() {
|
|
22
|
+
const i = new ue();
|
|
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
|
-
let f =
|
|
32
|
-
|
|
31
|
+
let f = S.screenCoordLong2Doc(50);
|
|
32
|
+
r = He.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
|
+
S.call("Mx_Text", l);
|
|
40
40
|
}
|
|
41
|
-
class
|
|
41
|
+
class Yt 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 _t = (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: T } = f, _ = A * E - w * p - A * T + D * p + w * T - D * E, M = -(l * E - h * p - l * T + x * p + h * T - x * E), W = l * w - h * A - l * D + x * A + h * D - x * w, v = -(l * w * T - l * D * E - h * A * T + h * D * p + x * A * E - x * w * p), P = 2 * (h - l), I = 2 * (w - A), O = 2 * (E - p), U = l * l + A * A + p * p - h * h - w * w - E * E, N = 2 * (x - l), z = 2 * (D - A), G = 2 * (T - p), V = l * l + A * A + p * p - x * x - D * D - T * T, pe = -(M * O * V - M * G * U - I * W * V + I * G * v + z * W * U - z * O * v) / (_ * I * G - _ * z * O - P * M * G + P * z * W + N * M * O - N * I * W), ye = (_ * O * V - _ * G * U - P * W * V + P * G * v + N * W * U - N * O * v) / (_ * I * G - _ * z * O - P * M * G + P * z * W + N * M * O - N * I * W), j = -(_ * I * V - _ * z * U - P * M * V + P * z * v + N * M * U - N * I * v) / (_ * I * G - _ * z * O - P * M * G + P * z * W + N * M * O - N * I * W);
|
|
54
|
+
return new THREE.Vector3(pe, ye, j);
|
|
55
55
|
};
|
|
56
|
-
function
|
|
57
|
-
const i = new
|
|
58
|
-
let o = new
|
|
56
|
+
function Ct() {
|
|
57
|
+
const i = new ue();
|
|
58
|
+
let o = new Yt();
|
|
59
59
|
q.use(o), o.closed = !1;
|
|
60
|
-
let
|
|
61
|
-
const
|
|
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 (_ === R.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 (
|
|
74
|
-
return
|
|
75
|
-
|
|
72
|
+
\u6307\u5B9A\u5706\u7684\u534A\u5F84:`), i.setKeyWords("[\u76F4\u5F84(D)]"), o.center = i.value(), A();
|
|
73
|
+
else if (r === 1)
|
|
74
|
+
return S.getCurrentDraw().addMxEntity(o), !0;
|
|
75
|
+
r++;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
_ === R.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:`), _ === R.kOk)) {
|
|
85
|
+
if (r === 0 && (h.push(i.value()), i.setUserDraw((M, W) => {
|
|
86
|
+
W.drawLine(h[0], M);
|
|
87
87
|
}), i.setMessage(`
|
|
88
|
-
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9:`)),
|
|
89
|
-
const [v, P] = h,
|
|
90
|
-
o.center =
|
|
88
|
+
\u6307\u5B9A\u5706\u4E0A\u7684\u7B2C\u4E8C\u4E2A\u70B9:`)), r === 1 && (h.push(i.value()), i.setUserDraw((M, W) => {
|
|
89
|
+
const [v, P] = h, I = M;
|
|
90
|
+
o.center = _t([
|
|
91
91
|
v,
|
|
92
92
|
P,
|
|
93
|
-
|
|
94
|
-
]), o.radius = o.center.distanceTo(v),
|
|
93
|
+
I
|
|
94
|
+
]), o.radius = o.center.distanceTo(v), W.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 = _t(h), o.radius = o.center.distanceTo(h[0]), S.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:`), _ === R.kOk)) {
|
|
107
|
+
if (r === 0 && (E = i.value(), i.setUserDraw((M, W) => {
|
|
108
|
+
x(E, M), W.drawCustomEntity(o), W.drawLine(E, M);
|
|
109
109
|
}), i.setMessage(`
|
|
110
|
-
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9:`)),
|
|
111
|
-
return x(E, i.value()),
|
|
112
|
-
|
|
110
|
+
\u6307\u5B9A\u5706\u76F4\u5F84\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9:`)), r === 1)
|
|
111
|
+
return x(E, i.value()), S.getCurrentDraw().addMxEntity(o), !0;
|
|
112
|
+
r++;
|
|
113
113
|
}
|
|
114
|
-
},
|
|
114
|
+
}, T = (_) => {
|
|
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:`), _ === R.kOk) {
|
|
118
|
+
if (r === 0) {
|
|
119
119
|
const M = i.value();
|
|
120
|
-
console.log(M),
|
|
120
|
+
console.log(M), S.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 (_ === R.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 (
|
|
138
|
+
if (T(_))
|
|
139
139
|
return { exit: !0 };
|
|
140
140
|
},
|
|
141
|
-
(
|
|
142
|
-
|
|
141
|
+
(_) => {
|
|
142
|
+
_ === R.kCancel && S.getCurrentDraw().addMxEntity(o);
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
Ve.events.on("MxDbEntityRegister", () => {
|
|
147
|
-
|
|
147
|
+
S.addCommand("Mx_Circle", Ct);
|
|
148
148
|
});
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
const l = i -
|
|
152
|
-
let
|
|
153
|
-
return l == 0 ?
|
|
149
|
+
const mt = () => Ve.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 Bt() {
|
|
156
|
+
const i = new ue();
|
|
157
|
+
let o = new ke(), 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 === R.kOk && (o = new ke(), q.use(o), o.pt1 = f, o.pt2 = i.value(), f = o.pt2.clone(), r.push(o), l()), A === R.kKeyWord) {
|
|
173
173
|
if (i.isKeyWordPicked("E"))
|
|
174
|
-
|
|
174
|
+
mt();
|
|
175
175
|
else if (i.isKeyWordPicked("C")) {
|
|
176
|
-
const
|
|
177
|
-
return
|
|
176
|
+
const p = new ke();
|
|
177
|
+
return p.pt1 = f.clone(), p.pt2 = r[0].pt1.clone(), q.use(p), r.push(p), f = p.pt2.clone(), mt(), { exit: !0 };
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
|
-
(
|
|
182
|
-
if (
|
|
183
|
-
return
|
|
184
|
-
|
|
181
|
+
(A) => {
|
|
182
|
+
if (A === R.kCancel)
|
|
183
|
+
return r.forEach((p) => {
|
|
184
|
+
S.getCurrentDraw().addMxEntity(p);
|
|
185
185
|
}), { exit: !0 };
|
|
186
186
|
}
|
|
187
187
|
);
|
|
188
188
|
}
|
|
189
189
|
Ve.events.on("MxDbEntityRegister", () => {
|
|
190
|
-
|
|
190
|
+
S.addCommand("Mx_Line", Bt);
|
|
191
191
|
});
|
|
192
|
-
async function
|
|
193
|
-
const i = new
|
|
192
|
+
async function Zt() {
|
|
193
|
+
const i = new ue();
|
|
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
|
-
let f =
|
|
204
|
-
|
|
203
|
+
let f = S.screenCoordLong2Doc(50);
|
|
204
|
+
r = He.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
|
+
S.call("Mx_MText", l);
|
|
212
212
|
}
|
|
213
|
-
async function
|
|
214
|
-
const i = new
|
|
213
|
+
async function Jt() {
|
|
214
|
+
const i = new ue(), o = new Ht();
|
|
215
215
|
q.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 === R.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 === R.kKeyWord && (i.isKeyWordPicked("A"), i.isKeyWordPicked("W"));
|
|
228
228
|
},
|
|
229
229
|
(f) => {
|
|
230
|
-
f ===
|
|
230
|
+
f === R.kCancel && S.getCurrentDraw().addMxEntity(o);
|
|
231
231
|
}
|
|
232
232
|
);
|
|
233
233
|
}
|
|
234
|
-
async function
|
|
235
|
-
const i = new
|
|
236
|
-
let o = new
|
|
234
|
+
async function Qt() {
|
|
235
|
+
const i = new ue();
|
|
236
|
+
let o = new Nt();
|
|
237
237
|
q.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 === R.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");
|
|
@@ -254,12 +254,12 @@ async function nn() {
|
|
|
254
254
|
return i.setMessage(`
|
|
255
255
|
\u6307\u5B9A\u8FB9\u7684\u7B2C\u4E8C\u4E2A\u7AEF\u70B9:`), { exit: !0 };
|
|
256
256
|
if (l === 4)
|
|
257
|
-
return o.otherPoint = i.value(),
|
|
257
|
+
return o.otherPoint = i.value(), S.getCurrentDraw().addMxEntity(o), { exit: !0 };
|
|
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 === R.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,
|
|
273
|
+
function qt(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, T = p - w, _ = (f * f - l * l + (p * p - h * h)) / 2, M = (f * f - A * A + (p * p - w * w)) / 2, W = x * D - E * T, v = -(T * _ - x * M) / W, P = -(E * M - D * _) / W;
|
|
275
275
|
return new THREE.Vector3(v, P, 0);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
const
|
|
279
|
-
return Math.sqrt((
|
|
277
|
+
function Ut(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 en(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 Ke(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 === R.kKeyWord && r() && f(), l === R.kOk && o() && f(), l === R.kNone && f(), l === R.kCancel)
|
|
300
300
|
return { exit: !0 };
|
|
301
301
|
});
|
|
302
302
|
};
|
|
303
303
|
return f;
|
|
304
304
|
};
|
|
305
|
-
class
|
|
305
|
+
class Ne 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 Ne();
|
|
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
|
-
(
|
|
329
|
-
const
|
|
330
|
-
return
|
|
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
|
+
const T = new THREE.Vector3();
|
|
330
|
+
return T.x = p.x + D * Math.cos((h + w) / 2), T.y = p.y + D * Math.sin((h + w) / 2), [E, T, x, this.center];
|
|
331
331
|
}
|
|
332
332
|
getGripPoints() {
|
|
333
333
|
return this.getArcMidPoint(
|
|
@@ -338,37 +338,37 @@ 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 = qt(l, p, A), this.radius = Ut(A, this.center);
|
|
351
|
+
const h = Ke(l, this.center, this.radius), w = Ke(p, this.center, this.radius), E = Ke(A, this.center, this.radius);
|
|
352
|
+
this.clockwise = en(
|
|
353
353
|
w.angle,
|
|
354
354
|
h.angle,
|
|
355
355
|
E.angle
|
|
356
356
|
), this.startAngle = THREE.MathUtils.degToRad(h.angle), this.endAngle = THREE.MathUtils.degToRad(w.angle);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
|
-
async function
|
|
360
|
-
const i = new
|
|
359
|
+
async function tn() {
|
|
360
|
+
const i = new ue();
|
|
361
361
|
i.setMessage(`
|
|
362
362
|
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), i.setKeyWords("[\u5706\u5FC3(C)]");
|
|
363
|
-
let o = new
|
|
363
|
+
let o = new Ne();
|
|
364
364
|
o.closed = !1, q.use(o);
|
|
365
|
-
let
|
|
366
|
-
const
|
|
365
|
+
let r, f, l;
|
|
366
|
+
const A = Q(
|
|
367
367
|
i,
|
|
368
368
|
() => {
|
|
369
|
-
|
|
369
|
+
r = i.value(), i.setMessage(`
|
|
370
370
|
\u6307\u5B9A\u5706\u5F27\u7684\u7B2C\u4E8C\u4E2A\u70B9:`), i.setKeyWords("[\u5706\u5FC3(C)/\u7AEF\u70B9(E)]"), i.setUserDraw((v, P) => {
|
|
371
|
-
P.drawLine(
|
|
371
|
+
P.drawLine(r, v);
|
|
372
372
|
}), M();
|
|
373
373
|
},
|
|
374
374
|
() => {
|
|
@@ -380,37 +380,37 @@ async function rn() {
|
|
|
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
|
-
|
|
387
|
+
p = i.value(), l = new De(), l.closed = !1, q.use(l), l.center = p, o.center = p, i.setMessage(`
|
|
388
388
|
\u6307\u5B9A\u5706\u5F27\u7684\u8D77\u70B9:`), i.setUserDraw((v, P) => {
|
|
389
|
-
P.drawCustomEntity(l), P.drawLine(
|
|
389
|
+
P.drawCustomEntity(l), P.drawLine(p, v);
|
|
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
|
|
402
|
+
), i.setKeyWords("A L R"), E = new ke(), E.setDashLineDisplay(!0), E.setDashArray(0.05), E.setLineWidth(2), E.setColor("#ffd30d"), E.pt1 = l.center, i.setUserDraw((v, P) => {
|
|
403
403
|
l.startPoint = v, E.pt2 = v, P.drawCustomEntity(l), P.drawCustomEntity(E);
|
|
404
|
-
}),
|
|
404
|
+
}), T();
|
|
405
405
|
},
|
|
406
406
|
() => {
|
|
407
407
|
}
|
|
408
408
|
);
|
|
409
409
|
let D;
|
|
410
|
-
const
|
|
410
|
+
const T = Q(
|
|
411
411
|
i,
|
|
412
412
|
() => {
|
|
413
|
-
D = i.value(), l.startPoint = D, l.endPoint = w,
|
|
413
|
+
D = i.value(), l.startPoint = D, l.endPoint = w, S.getCurrentDraw().addMxEntity(l);
|
|
414
414
|
},
|
|
415
415
|
() => {
|
|
416
416
|
if (i.isKeyWordPicked("A"))
|
|
@@ -438,33 +438,33 @@ async function rn() {
|
|
|
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
|
|
445
|
+
_ = i.value(), i.setMessage(`
|
|
446
|
+
\u6307\u5B9A\u5706\u5F27\u7684\u7AEF\u70B9:`), f = new zt(), f.autoClockwise = !0, f.closed = !1, q.use(f), f.point1 = r, f.point3 = _, o.center, i.setUserDraw((v, P) => {
|
|
447
447
|
f.point2 = v, P.drawCustomEntity(o);
|
|
448
|
-
}),
|
|
448
|
+
}), W();
|
|
449
449
|
},
|
|
450
450
|
() => {
|
|
451
451
|
if (i.isKeyWordPicked("C"))
|
|
452
452
|
l = new De(), l.closed = !1, q.use(l), i.setMessage(`
|
|
453
453
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), i.setKeyWords(""), i.setUserDraw((v, P) => {
|
|
454
|
-
l.startPoint =
|
|
454
|
+
l.startPoint = r, P.drawLine(v, l.startPoint);
|
|
455
455
|
}), h();
|
|
456
456
|
else if (i.isKeyWordPicked("E"))
|
|
457
457
|
l = new De(), l.closed = !1, q.use(l), i.setMessage(`
|
|
458
458
|
\u6307\u5B9A\u5706\u5F27\u7684\u5706\u5FC3`), i.setKeyWords(""), i.setUserDraw((v, P) => {
|
|
459
|
-
l.startPoint =
|
|
459
|
+
l.startPoint = r, P.drawLine(v, l.startPoint);
|
|
460
460
|
}), h();
|
|
461
461
|
else
|
|
462
462
|
return !0;
|
|
463
463
|
}
|
|
464
|
-
),
|
|
464
|
+
), W = Q(
|
|
465
465
|
i,
|
|
466
466
|
() => {
|
|
467
|
-
f.point1 =
|
|
467
|
+
f.point1 = r, f.point2 = i.value(), f.point3 = _, S.getCurrentDraw().addMxEntity(f);
|
|
468
468
|
},
|
|
469
469
|
() => {
|
|
470
470
|
if (i.isKeyWordPicked("C"))
|
|
@@ -475,59 +475,59 @@ async function rn() {
|
|
|
475
475
|
return !0;
|
|
476
476
|
}
|
|
477
477
|
);
|
|
478
|
-
|
|
478
|
+
A();
|
|
479
479
|
}
|
|
480
|
-
function
|
|
481
|
-
const i = new
|
|
480
|
+
function nn() {
|
|
481
|
+
const i = new ue(), o = new Gt();
|
|
482
482
|
o.closed = !1, q.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
|
+
S.getCurrentDraw().addMxEntity(o);
|
|
531
531
|
},
|
|
532
532
|
() => {
|
|
533
533
|
}
|
|
@@ -537,157 +537,157 @@ var Fe = (() => {
|
|
|
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, T, _, 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
|
+
_ || (T = 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
|
-
s ?
|
|
550
|
+
return M(), e = _.normalize(e), T.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), T.readFile(e, function(s, u) {
|
|
553
|
+
s ? n(s) : t(u.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,
|
|
567
|
+
}), x = (e, t, n) => {
|
|
568
568
|
var s = new XMLHttpRequest();
|
|
569
569
|
s.open("GET", e, !0), s.responseType = "arraybuffer", s.onload = () => {
|
|
570
|
-
s.status == 200 || s.status == 0 && s.response ? t(s.response) :
|
|
571
|
-
}, s.onerror =
|
|
570
|
+
s.status == 200 || s.status == 0 && s.response ? t(s.response) : n();
|
|
571
|
+
}, s.onerror = n, s.send(null);
|
|
572
572
|
});
|
|
573
|
-
var
|
|
574
|
-
Object.assign(
|
|
573
|
+
var W = r.print || console.log.bind(console), v = r.printErr || console.warn.bind(console);
|
|
574
|
+
Object.assign(r, A), A = null;
|
|
575
575
|
function P(e) {
|
|
576
|
-
|
|
576
|
+
I || (I = {}), I[e] || (I[e] = 1, v(e));
|
|
577
577
|
}
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
var U,
|
|
581
|
-
function
|
|
582
|
-
var s = t +
|
|
583
|
-
for (
|
|
584
|
-
++
|
|
585
|
-
if (16 <
|
|
586
|
-
return
|
|
587
|
-
for (s = ""; t <
|
|
588
|
-
var
|
|
589
|
-
if (
|
|
590
|
-
var
|
|
591
|
-
if ((
|
|
592
|
-
s += String.fromCharCode((
|
|
578
|
+
var I, O;
|
|
579
|
+
r.wasmBinary && (O = r.wasmBinary), r.noExitRuntime, typeof WebAssembly != "object" && ie("no native wasm support detected");
|
|
580
|
+
var U, N = !1, z = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0;
|
|
581
|
+
function G(e, t, n) {
|
|
582
|
+
var s = t + n;
|
|
583
|
+
for (n = t; e[n] && !(n >= s); )
|
|
584
|
+
++n;
|
|
585
|
+
if (16 < n - t && e.buffer && z)
|
|
586
|
+
return z.decode(e.subarray(t, n));
|
|
587
|
+
for (s = ""; t < n; ) {
|
|
588
|
+
var u = e[t++];
|
|
589
|
+
if (u & 128) {
|
|
590
|
+
var a = e[t++] & 63;
|
|
591
|
+
if ((u & 224) == 192)
|
|
592
|
+
s += String.fromCharCode((u & 31) << 6 | a);
|
|
593
593
|
else {
|
|
594
|
-
var
|
|
595
|
-
|
|
594
|
+
var c = e[t++] & 63;
|
|
595
|
+
u = (u & 240) == 224 ? (u & 15) << 12 | a << 6 | c : (u & 7) << 18 | a << 12 | c << 6 | e[t++] & 63, 65536 > u ? s += String.fromCharCode(u) : (u -= 65536, s += String.fromCharCode(55296 | u >> 10, 56320 | u & 1023));
|
|
596
596
|
}
|
|
597
597
|
} else
|
|
598
|
-
s += String.fromCharCode(
|
|
598
|
+
s += String.fromCharCode(u);
|
|
599
599
|
}
|
|
600
600
|
return s;
|
|
601
601
|
}
|
|
602
|
-
function
|
|
603
|
-
return e ?
|
|
602
|
+
function V(e, t) {
|
|
603
|
+
return e ? G(ee, e, t) : "";
|
|
604
604
|
}
|
|
605
|
-
function
|
|
605
|
+
function pe(e, t, n, s) {
|
|
606
606
|
if (!(0 < s))
|
|
607
607
|
return 0;
|
|
608
|
-
var
|
|
609
|
-
s =
|
|
610
|
-
for (var
|
|
611
|
-
var
|
|
612
|
-
if (55296 <=
|
|
613
|
-
var
|
|
614
|
-
|
|
608
|
+
var u = n;
|
|
609
|
+
s = n + s - 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 >= s)
|
|
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 >= s)
|
|
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 >= s)
|
|
628
628
|
break;
|
|
629
|
-
t[
|
|
629
|
+
t[n++] = 224 | c >> 12;
|
|
630
630
|
} else {
|
|
631
|
-
if (
|
|
631
|
+
if (n + 3 >= s)
|
|
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 - u;
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
function
|
|
642
|
+
var ye, j, ee, C, he, Ee;
|
|
643
|
+
function ze() {
|
|
644
644
|
var e = U.buffer;
|
|
645
|
-
|
|
645
|
+
ye = e, r.HEAP8 = j = 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 = he = new Float32Array(e), r.HEAPF64 = Ee = new Float64Array(e);
|
|
646
646
|
}
|
|
647
|
-
var
|
|
648
|
-
function
|
|
649
|
-
var e =
|
|
650
|
-
|
|
647
|
+
var Ge, Xe = [], $e = [], Ye = [];
|
|
648
|
+
function Dt() {
|
|
649
|
+
var e = r.preRun.shift();
|
|
650
|
+
Xe.unshift(e);
|
|
651
651
|
}
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
function
|
|
655
|
-
throw
|
|
652
|
+
var ae = 0, de = null;
|
|
653
|
+
r.preloadedImages = {}, r.preloadedAudios = {};
|
|
654
|
+
function ie(e) {
|
|
655
|
+
throw r.onAbort && r.onAbort(e), e = "Aborted(" + e + ")", v(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 Ze() {
|
|
658
|
+
return $.startsWith("data:application/octet-stream;base64,");
|
|
659
659
|
}
|
|
660
|
-
var
|
|
661
|
-
if (
|
|
662
|
-
var
|
|
663
|
-
|
|
660
|
+
var $;
|
|
661
|
+
if ($ = "mxdrawassembly_min.wasm", !Ze()) {
|
|
662
|
+
var Je = $;
|
|
663
|
+
$ = r.locateFile ? r.locateFile(Je, w) : w + Je;
|
|
664
664
|
}
|
|
665
665
|
function Qe() {
|
|
666
|
-
var e =
|
|
666
|
+
var e = $;
|
|
667
667
|
try {
|
|
668
|
-
if (e ==
|
|
668
|
+
if (e == $ && O)
|
|
669
669
|
return new Uint8Array(O);
|
|
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
|
+
ie(t);
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
function
|
|
678
|
-
if (!O && (
|
|
679
|
-
if (typeof fetch == "function" &&
|
|
680
|
-
return fetch(
|
|
677
|
+
function kt() {
|
|
678
|
+
if (!O && (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
685
|
return Qe();
|
|
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
|
}
|
|
@@ -699,41 +699,41 @@ var Fe = (() => {
|
|
|
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.Fa;
|
|
705
|
+
typeof n == "number" ? t.ha === void 0 ? qe(n)() : qe(n)(t.ha) : n(t.ha === void 0 ? null : t.ha);
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
var
|
|
710
|
-
function
|
|
711
|
-
var t =
|
|
712
|
-
return t || (e >=
|
|
709
|
+
var Ae = [];
|
|
710
|
+
function qe(e) {
|
|
711
|
+
var t = Ae[e];
|
|
712
|
+
return t || (e >= Ae.length && (Ae.length = e + 1), Ae[e] = t = Ge.get(e)), t;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function Ue(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 et(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 Ft(e, t) {
|
|
724
|
+
function n(Y) {
|
|
725
|
+
var je = s;
|
|
726
|
+
return (Y === "double" || Y === "i64") && je & 7 && (je += 4), s = je, Y === "double" ? (Y = Number(Ee[s >> 3]), s += 8) : Y == "i64" ? (Y = [C[s >> 2], C[s + 4 >> 2]], s += 8) : (Y = C[s >> 2], s += 4), Y;
|
|
727
727
|
}
|
|
728
|
-
for (var s = t,
|
|
729
|
-
var
|
|
730
|
-
if (
|
|
728
|
+
for (var s = t, u = [], a, c; ; ) {
|
|
729
|
+
var y = e;
|
|
730
|
+
if (a = j[e >> 0], a === 0)
|
|
731
731
|
break;
|
|
732
|
-
if (
|
|
733
|
-
var B = !1,
|
|
732
|
+
if (c = j[e + 1 >> 0], a == 37) {
|
|
733
|
+
var B = !1, m = t = !1, k = !1, re = !1;
|
|
734
734
|
e:
|
|
735
735
|
for (; ; ) {
|
|
736
|
-
switch (
|
|
736
|
+
switch (c) {
|
|
737
737
|
case 43:
|
|
738
738
|
B = !0;
|
|
739
739
|
break;
|
|
@@ -741,12 +741,12 @@ 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
|
re = !0;
|
|
@@ -754,33 +754,33 @@ var Fe = (() => {
|
|
|
754
754
|
default:
|
|
755
755
|
break e;
|
|
756
756
|
}
|
|
757
|
-
e++,
|
|
757
|
+
e++, c = j[e + 1 >> 0];
|
|
758
758
|
}
|
|
759
|
-
var
|
|
760
|
-
if (
|
|
761
|
-
|
|
759
|
+
var H = 0;
|
|
760
|
+
if (c == 42)
|
|
761
|
+
H = n("i32"), e++, c = j[e + 1 >> 0];
|
|
762
762
|
else
|
|
763
|
-
for (; 48 <=
|
|
764
|
-
|
|
765
|
-
var
|
|
766
|
-
if (
|
|
767
|
-
if (L = 0,
|
|
768
|
-
L =
|
|
763
|
+
for (; 48 <= c && 57 >= c; )
|
|
764
|
+
H = 10 * H + (c - 48), e++, c = j[e + 1 >> 0];
|
|
765
|
+
var K = !1, L = -1;
|
|
766
|
+
if (c == 46) {
|
|
767
|
+
if (L = 0, K = !0, e++, c = j[e + 1 >> 0], c == 42)
|
|
768
|
+
L = n("i32"), e++;
|
|
769
769
|
else
|
|
770
|
-
for (;
|
|
771
|
-
L = 10 * L + (
|
|
772
|
-
|
|
770
|
+
for (; c = j[e + 1 >> 0], !(48 > c || 57 < c); )
|
|
771
|
+
L = 10 * L + (c - 48), e++;
|
|
772
|
+
c = j[e + 1 >> 0];
|
|
773
773
|
}
|
|
774
|
-
switch (0 > L && (L = 6,
|
|
774
|
+
switch (0 > L && (L = 6, K = !1), String.fromCharCode(c)) {
|
|
775
775
|
case "h":
|
|
776
|
-
if (
|
|
776
|
+
if (c = j[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 = j[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 = j[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 ? Ue : et)(a & Math.pow(256, F) - 1, 8 * F));
|
|
807
|
+
var oe = Math.abs(a);
|
|
808
|
+
if (y = "", c == 100 || c == 105)
|
|
809
|
+
var g = Ue(a, 8 * F).toString(10);
|
|
810
|
+
else if (c == 117)
|
|
811
|
+
g = et(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 (K)
|
|
826
|
+
for (; g.length < L; )
|
|
827
|
+
g = "0" + g;
|
|
828
|
+
for (0 <= a && (B ? y = "+" + y : re && (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
|
+
u.push(Y.charCodeAt(0));
|
|
832
832
|
});
|
|
833
833
|
break;
|
|
834
834
|
case "f":
|
|
@@ -837,72 +837,72 @@ 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 (K = !1, F = Math.min(L, 20), (c == 103 || c == 71) && (K = !0, L = L || 1, F = parseInt(a.toExponential(F).split("e")[1], 10), L > F && -4 <= F ? (c = (c == 103 ? "f" : "F").charCodeAt(0), L -= F + 1) : (c = (c == 103 ? "e" : "E").charCodeAt(0), L--), F = Math.min(L, 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"), K && !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] += "."); L > 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 : re && (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
|
+
u.push(Y.charCodeAt(0));
|
|
856
856
|
});
|
|
857
857
|
break;
|
|
858
858
|
case "s":
|
|
859
|
-
if (
|
|
860
|
-
for (;
|
|
861
|
-
|
|
859
|
+
if (k = (B = n("i8*")) ? ht(B) : 6, K && (k = Math.min(k, L)), !t)
|
|
860
|
+
for (; k < H--; )
|
|
861
|
+
u.push(32);
|
|
862
862
|
if (B)
|
|
863
|
-
for (
|
|
864
|
-
|
|
863
|
+
for (m = 0; m < k; m++)
|
|
864
|
+
u.push(ee[B++ >> 0]);
|
|
865
865
|
else
|
|
866
|
-
|
|
867
|
-
"(null)".substr(0,
|
|
866
|
+
u = u.concat(ut(
|
|
867
|
+
"(null)".substr(0, k),
|
|
868
868
|
!0
|
|
869
869
|
));
|
|
870
870
|
if (t)
|
|
871
|
-
for (;
|
|
872
|
-
|
|
871
|
+
for (; k < H--; )
|
|
872
|
+
u.push(32);
|
|
873
873
|
break;
|
|
874
874
|
case "c":
|
|
875
|
-
for (t &&
|
|
876
|
-
|
|
877
|
-
t ||
|
|
875
|
+
for (t && u.push(n("i8")); 0 < --H; )
|
|
876
|
+
u.push(32);
|
|
877
|
+
t || u.push(n("i8"));
|
|
878
878
|
break;
|
|
879
879
|
case "n":
|
|
880
|
-
t =
|
|
880
|
+
t = n("i32*"), C[t >> 2] = u.length;
|
|
881
881
|
break;
|
|
882
882
|
case "%":
|
|
883
|
-
|
|
883
|
+
u.push(a);
|
|
884
884
|
break;
|
|
885
885
|
default:
|
|
886
|
-
for (
|
|
887
|
-
|
|
886
|
+
for (m = y; m < e + 2; m++)
|
|
887
|
+
u.push(j[m >> 0]);
|
|
888
888
|
}
|
|
889
889
|
e += 2;
|
|
890
890
|
} else
|
|
891
|
-
|
|
891
|
+
u.push(a), e += 1;
|
|
892
892
|
}
|
|
893
|
-
return
|
|
893
|
+
return u;
|
|
894
894
|
}
|
|
895
|
-
function
|
|
895
|
+
function Re(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
|
-
s || (
|
|
898
|
+
var t = e.callee.name, n = "(", s = !0, u;
|
|
899
|
+
for (u in e) {
|
|
900
|
+
var a = e[u];
|
|
901
|
+
s || (n += ", "), s = !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 : [], s && (n = ""), [e, t, n];
|
|
904
904
|
}
|
|
905
|
-
function
|
|
905
|
+
function Tt(e) {
|
|
906
906
|
e: {
|
|
907
907
|
var t = Error();
|
|
908
908
|
if (!t.stack) {
|
|
@@ -920,504 +920,562 @@ var Fe = (() => {
|
|
|
920
920
|
}
|
|
921
921
|
t = t.slice(t.indexOf(`
|
|
922
922
|
`, Math.max(t.lastIndexOf("_emscripten_log"), t.lastIndexOf("_emscripten_get_callstack"))) + 1), e & 32 && P("EM_LOG_DEMANGLE is deprecated; ignoring"), e & 8 && typeof emscripten_source_map > "u" && (P('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
|
|
923
|
+
var n = null;
|
|
924
924
|
if (e & 128)
|
|
925
|
-
for (
|
|
926
|
-
|
|
925
|
+
for (n = Re(arguments); n[1].includes("_emscripten_"); )
|
|
926
|
+
n = Re(n[0]);
|
|
927
927
|
var s = t.split(`
|
|
928
928
|
`);
|
|
929
929
|
t = "";
|
|
930
|
-
var
|
|
931
|
-
for (
|
|
932
|
-
var B = s[
|
|
933
|
-
if ((
|
|
934
|
-
B =
|
|
935
|
-
var
|
|
936
|
-
|
|
937
|
-
} else if ((
|
|
938
|
-
B =
|
|
930
|
+
var u = RegExp("\\s*(.*?)@(.*?):([0-9]+):([0-9]+)"), a = RegExp("\\s*(.*?)@(.*):(.*)(:(.*))?"), c = RegExp("\\s*at (.*?) \\((.*):(.*):(.*)\\)"), y;
|
|
931
|
+
for (y in s) {
|
|
932
|
+
var B = s[y], m;
|
|
933
|
+
if ((m = c.exec(B)) && m.length == 5) {
|
|
934
|
+
B = m[1];
|
|
935
|
+
var k = m[2], re = m[3];
|
|
936
|
+
m = m[4];
|
|
937
|
+
} else if ((m = u.exec(B)) || (m = a.exec(B)), m && 4 <= m.length)
|
|
938
|
+
B = m[1], k = m[2], re = 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
|
|
946
|
+
var K = emscripten_source_map.Ka({
|
|
947
947
|
line: re,
|
|
948
|
-
|
|
948
|
+
ya: m
|
|
949
949
|
});
|
|
950
|
-
(
|
|
950
|
+
(H = K && K.source) && (e & 64 && (K.source = K.source.substring(K.source.replace(/\\/g, "/").lastIndexOf("/") + 1)), t += " at " + B + " (" + K.source + ":" + K.line + ":" + K.ya + `)
|
|
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 + ":" + re + ":" + 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 = Re(n[0]));
|
|
956
956
|
}
|
|
957
957
|
return t = t.replace(/\s+$/, "");
|
|
958
958
|
}
|
|
959
|
-
function
|
|
959
|
+
function Wt(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, s) {
|
|
962
|
+
t.vertexAttribDivisorANGLE(n, s);
|
|
963
|
+
}, e.drawArraysInstanced = function(n, s, u, a) {
|
|
964
|
+
t.drawArraysInstancedANGLE(n, s, u, a);
|
|
965
|
+
}, e.drawElementsInstanced = function(n, s, u, a, c) {
|
|
966
|
+
t.drawElementsInstancedANGLE(n, s, u, a, c);
|
|
967
967
|
});
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function Rt(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 bt(e) {
|
|
982
982
|
var t = e.getExtension("WEBGL_draw_buffers");
|
|
983
|
-
t && (e.drawBuffers = function(
|
|
984
|
-
t.drawBuffersWEBGL(
|
|
983
|
+
t && (e.drawBuffers = function(n, s) {
|
|
984
|
+
t.drawBuffersWEBGL(n, s);
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
|
-
var
|
|
988
|
-
function
|
|
987
|
+
var tt = 1, ce = [], te = [], ne = [], nt = [], be = [], rt = [1, 1, 2, 2, 4, 4, 4, 2, 3, 4, 8];
|
|
988
|
+
function le(e) {
|
|
989
989
|
we || (we = e);
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
for (var t =
|
|
993
|
-
e[
|
|
991
|
+
function ge(e) {
|
|
992
|
+
for (var t = tt++, n = e.length; n < t; n++)
|
|
993
|
+
e[n] = null;
|
|
994
994
|
return t;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Le(e) {
|
|
997
997
|
return 32 - Math.clz32(e === 0 ? 0 : e - 1);
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
e.
|
|
1001
|
-
return (
|
|
999
|
+
function Lt(e, t) {
|
|
1000
|
+
e.ja || (e.ja = e.getContext, e.getContext = function(s, u) {
|
|
1001
|
+
return (u = e.ja(s, u)) || (u = e.ja(s)), s == "webgl" == u instanceof WebGLRenderingContext ? u : null;
|
|
1002
1002
|
});
|
|
1003
|
-
var
|
|
1004
|
-
return
|
|
1003
|
+
var n = 1 < t.ra ? e.getContext("webgl2", t) : e.getContext("webgl", t);
|
|
1004
|
+
return n ? St(n, t) : 0;
|
|
1005
1005
|
}
|
|
1006
|
-
function
|
|
1007
|
-
var
|
|
1008
|
-
for (e.canvas && (e.canvas.
|
|
1009
|
-
s.
|
|
1010
|
-
for (e =
|
|
1011
|
-
s.
|
|
1012
|
-
var
|
|
1013
|
-
|
|
1014
|
-
for (var
|
|
1015
|
-
c
|
|
1006
|
+
function St(e, t) {
|
|
1007
|
+
var n = ge(be), s = { Ga: n, attributes: t, version: t.ra, ga: e };
|
|
1008
|
+
for (e.canvas && (e.canvas.Ca = s), be[n] = s, (typeof t.qa > "u" || t.qa) && It(s), s.sa = s.ga.getParameter(34921), s.Z = [], e = 0; e < s.sa; e++)
|
|
1009
|
+
s.Z[e] = { enabled: !1, ia: !1, size: 0, type: 0, ta: 0, ka: 0, T: 0, xa: null };
|
|
1010
|
+
for (e = Le(2097152), s.W = [], s.ua = [], s.W.length = s.ua.length = e + 1, s.fa = [], s.la = [], s.fa.length = s.la.length = e + 1, s.U = [], s.U.length = e + 1, t = 0; t <= e; ++t) {
|
|
1011
|
+
s.U[t] = null, s.W[t] = s.ua[t] = 0, s.fa[t] = [], s.la[t] = [];
|
|
1012
|
+
var u = s.fa[t], a = s.la[t];
|
|
1013
|
+
u.length = a.length = 64;
|
|
1014
|
+
for (var c = 0; 64 > c; ++c)
|
|
1015
|
+
u[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 It(e) {
|
|
1020
|
+
if (e || (e = b), !e.Ba) {
|
|
1021
|
+
e.Ba = !0;
|
|
1022
|
+
var t = e.ga;
|
|
1023
|
+
Wt(t), Rt(t), bt(t), t.Ea = t.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"), t.Ha = t.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"), 2 <= e.version && (t.pa = t.getExtension("EXT_disjoint_timer_query_webgl2")), (2 > e.version || !t.pa) && (t.pa = t.getExtension("EXT_disjoint_timer_query")), t.Ja = 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 we,
|
|
1029
|
-
function
|
|
1028
|
+
var we, b, Se, jt = ["default", "low-power", "high-performance"], Ot = [0, typeof document < "u" ? document : 0, typeof window < "u" ? window : 0];
|
|
1029
|
+
function it(e) {
|
|
1030
1030
|
return e.slice(-1) == "]" && e.lastIndexOf("[");
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
var t =
|
|
1032
|
+
function st(e) {
|
|
1033
|
+
var t = d.za;
|
|
1034
1034
|
if (t) {
|
|
1035
|
-
var
|
|
1036
|
-
return typeof
|
|
1035
|
+
var n = t.X[e];
|
|
1036
|
+
return typeof n == "number" && (t.X[e] = n = d.getUniformLocation(t, t.va[e] + (0 < n ? "[" + n + "]" : ""))), n;
|
|
1037
1037
|
}
|
|
1038
|
-
|
|
1038
|
+
le(1282);
|
|
1039
1039
|
}
|
|
1040
|
-
for (var
|
|
1041
|
-
|
|
1042
|
-
function
|
|
1043
|
-
for (var
|
|
1044
|
-
var
|
|
1045
|
-
55296 <=
|
|
1040
|
+
for (var ot = [], d, Kt = new Float32Array(288), _e = 0; 288 > _e; ++_e)
|
|
1041
|
+
ot[_e] = Kt.subarray(0, _e + 1);
|
|
1042
|
+
function ut(e, t) {
|
|
1043
|
+
for (var n = 0, s = 0; s < e.length; ++s) {
|
|
1044
|
+
var u = e.charCodeAt(s);
|
|
1045
|
+
55296 <= u && 57343 >= u && (u = 65536 + ((u & 1023) << 10) | e.charCodeAt(++s) & 1023), 127 >= u ? ++n : n = 2047 >= u ? n + 2 : 65535 >= u ? n + 3 : n + 4;
|
|
1046
1046
|
}
|
|
1047
|
-
return
|
|
1047
|
+
return n = Array(n + 1), e = pe(e, n, 0, n.length), t && (n.length = e), n;
|
|
1048
1048
|
}
|
|
1049
|
-
var
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
e
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1049
|
+
var Vt = {
|
|
1050
|
+
a: function(e, t, n, s) {
|
|
1051
|
+
ie("Assertion failed: " + V(e) + ", at: " + [t ? V(t) : "unknown filename", n, s ? V(s) : "unknown function"]);
|
|
1052
|
+
},
|
|
1053
|
+
b: function() {
|
|
1054
|
+
ie("");
|
|
1055
|
+
},
|
|
1056
|
+
c: function(e, t, n) {
|
|
1057
|
+
t = Ft(t, n), t = G(t, 0), e & 24 && (t = t.replace(/\s+$/, ""), t += (0 < t.length ? `
|
|
1058
|
+
` : "") + Tt(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 ? v(t) : W(t);
|
|
1059
|
+
},
|
|
1060
|
+
q: function(e, t, n) {
|
|
1061
|
+
ee.copyWithin(e, t, t + n);
|
|
1062
|
+
},
|
|
1063
|
+
p: function(e) {
|
|
1064
|
+
var t = ee.length;
|
|
1065
|
+
if (e >>>= 0, 2147483648 < e)
|
|
1066
|
+
return !1;
|
|
1067
|
+
for (var n = 1; 4 >= n; n *= 2) {
|
|
1068
|
+
var s = t * (1 + 0.2 / n);
|
|
1069
|
+
s = Math.min(s, e + 100663296);
|
|
1070
|
+
var u = Math;
|
|
1071
|
+
s = Math.max(e, s), u = u.min.call(u, 2147483648, s + (65536 - s % 65536) % 65536);
|
|
1072
|
+
e: {
|
|
1073
|
+
try {
|
|
1074
|
+
U.grow(u - ye.byteLength + 65535 >>> 16), ze();
|
|
1075
|
+
var a = 1;
|
|
1076
|
+
break e;
|
|
1077
|
+
} catch {
|
|
1078
|
+
}
|
|
1079
|
+
a = void 0;
|
|
1071
1080
|
}
|
|
1072
|
-
|
|
1081
|
+
if (a)
|
|
1082
|
+
return !0;
|
|
1073
1083
|
}
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
var
|
|
1105
|
-
|
|
1106
|
-
}
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1084
|
+
return !1;
|
|
1085
|
+
},
|
|
1086
|
+
m: function(e, t) {
|
|
1087
|
+
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: jt[C[t + 6]], failIfMajorPerformanceCaveat: !!C[t + 7], ra: C[t + 8], Ia: C[t + 9], qa: C[t + 10], Aa: C[t + 11], La: C[t + 12], Ma: C[t + 13] }, e = 2 < e ? V(e) : e, e = Ot[e] || (typeof document < "u" ? document.querySelector(e) : void 0), !e || t.Aa ? 0 : Lt(e, t);
|
|
1088
|
+
},
|
|
1089
|
+
e: function(e) {
|
|
1090
|
+
return b = be[e], r.Da = d = b && b.ga, !e || d ? 0 : -5;
|
|
1091
|
+
},
|
|
1092
|
+
k: function(e, t) {
|
|
1093
|
+
d.attachShader(te[e], ne[t]);
|
|
1094
|
+
},
|
|
1095
|
+
E: function(e, t, n) {
|
|
1096
|
+
d.bindAttribLocation(te[e], t, V(n));
|
|
1097
|
+
},
|
|
1098
|
+
d: function(e, t) {
|
|
1099
|
+
e == 34962 ? d.$ = t : e == 34963 && (d.aa = t), e == 35051 ? d.na = t : e == 35052 && (d.oa = t), d.bindBuffer(e, ce[t]);
|
|
1100
|
+
},
|
|
1101
|
+
g: function(e, t, n, s) {
|
|
1102
|
+
2 <= b.version ? n ? d.bufferData(e, ee, s, n, t) : d.bufferData(e, t, s) : d.bufferData(e, n ? ee.subarray(n, n + t) : t, s);
|
|
1103
|
+
},
|
|
1104
|
+
z: function(e) {
|
|
1105
|
+
d.clear(e);
|
|
1106
|
+
},
|
|
1107
|
+
A: function(e, t, n, s) {
|
|
1108
|
+
d.clearColor(e, t, n, s);
|
|
1109
|
+
},
|
|
1110
|
+
r: function(e) {
|
|
1111
|
+
d.compileShader(ne[e]);
|
|
1112
|
+
},
|
|
1113
|
+
l: function() {
|
|
1114
|
+
var e = ge(te), t = d.createProgram();
|
|
1115
|
+
return t.name = e, t.ea = t.ba = t.da = 0, t.ma = 1, te[e] = t, e;
|
|
1116
|
+
},
|
|
1117
|
+
F: function(e) {
|
|
1118
|
+
var t = ge(ne);
|
|
1119
|
+
return ne[t] = d.createShader(e), t;
|
|
1120
|
+
},
|
|
1121
|
+
f: function(e, t) {
|
|
1122
|
+
for (var n = 0; n < e; n++) {
|
|
1123
|
+
var s = C[t + 4 * n >> 2], u = ce[s];
|
|
1124
|
+
u && (d.deleteBuffer(u), u.name = 0, ce[s] = null, s == d.$ && (d.$ = 0), s == d.aa && (d.aa = 0), s == d.na && (d.na = 0), s == d.oa && (d.oa = 0));
|
|
1114
1125
|
}
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
for (t = 0; t < y.getProgramParameter(e, 35718); ++t)
|
|
1135
|
-
e.$ = Math.max(e.$, y.getActiveUniform(e, t).name.length + 1);
|
|
1136
|
-
C[r >> 2] = e.$;
|
|
1137
|
-
} else if (t == 35722) {
|
|
1138
|
-
if (!e.Y)
|
|
1139
|
-
for (t = 0; t < y.getProgramParameter(e, 35721); ++t)
|
|
1140
|
-
e.Y = Math.max(e.Y, y.getActiveAttrib(
|
|
1141
|
-
e,
|
|
1142
|
-
t
|
|
1143
|
-
).name.length + 1);
|
|
1144
|
-
C[r >> 2] = e.Y;
|
|
1145
|
-
} else if (t == 35381) {
|
|
1146
|
-
if (!e.Z)
|
|
1147
|
-
for (t = 0; t < y.getProgramParameter(e, 35382); ++t)
|
|
1148
|
-
e.Z = Math.max(e.Z, y.getActiveUniformBlockName(e, t).length + 1);
|
|
1149
|
-
C[r >> 2] = e.Z;
|
|
1150
|
-
} else
|
|
1151
|
-
C[r >> 2] = y.getProgramParameter(e, t);
|
|
1152
|
-
else
|
|
1153
|
-
ce(1281);
|
|
1154
|
-
}, l: function(e, t, r, s) {
|
|
1155
|
-
e = y.getShaderInfoLog(ne[e]), e === null && (e = "(unknown error)"), t = 0 < t && s ? de(e, ee, s, t) : 0, r && (C[r >> 2] = t);
|
|
1156
|
-
}, m: function(e, t, r) {
|
|
1157
|
-
r ? t == 35716 ? (e = y.getShaderInfoLog(ne[e]), e === null && (e = "(unknown error)"), C[r >> 2] = e ? e.length + 1 : 0) : t == 35720 ? (e = y.getShaderSource(ne[e]), C[r >> 2] = e ? e.length + 1 : 0) : C[r >> 2] = y.getShaderParameter(ne[e], t) : ce(1281);
|
|
1158
|
-
}, i: function(e, t) {
|
|
1159
|
-
if (t = Y(t), e = te[e]) {
|
|
1160
|
-
var r = e, s = r.V, c = r.sa, u;
|
|
1161
|
-
if (!s)
|
|
1162
|
-
for (r.V = s = {}, r.ra = {}, u = 0; u < y.getProgramParameter(r, 35718); ++u) {
|
|
1163
|
-
var a = y.getActiveUniform(r, u), p = a.name;
|
|
1164
|
-
a = a.size;
|
|
1165
|
-
var B = nt(p);
|
|
1166
|
-
B = 0 < B ? p.slice(0, B) : p;
|
|
1167
|
-
var _ = r.ia;
|
|
1168
|
-
for (r.ia += a, c[B] = [a, _], p = 0; p < a; ++p)
|
|
1169
|
-
s[_] = p, r.ra[_++] = B;
|
|
1170
|
-
}
|
|
1171
|
-
if (r = e.V, s = 0, c = t, u = nt(t), 0 < u && (s = parseInt(t.slice(u + 1)) >>> 0, c = t.slice(0, u)), (c = e.sa[c]) && s < c[0] && (s += c[1], r[s] = r[s] || y.getUniformLocation(e, t)))
|
|
1172
|
-
return s;
|
|
1173
|
-
} else
|
|
1174
|
-
ce(1281);
|
|
1175
|
-
return -1;
|
|
1176
|
-
}, z: function(e) {
|
|
1177
|
-
e = te[e], y.linkProgram(e), e.V = 0, e.sa = {};
|
|
1178
|
-
}, B: function(e, t, r, s) {
|
|
1179
|
-
for (var c = "", u = 0; u < t; ++u) {
|
|
1180
|
-
var a = s ? C[s + 4 * u >> 2] : -1;
|
|
1181
|
-
c += Y(C[r + 4 * u >> 2], 0 > a ? void 0 : a);
|
|
1182
|
-
}
|
|
1183
|
-
y.shaderSource(ne[e], c);
|
|
1184
|
-
}, h: function(e, t, r, s) {
|
|
1185
|
-
if (2 <= S.version)
|
|
1186
|
-
y.uniformMatrix4fv(rt(e), !!r, ye, s >> 2, 16 * t);
|
|
1187
|
-
else {
|
|
1188
|
-
if (18 >= t) {
|
|
1189
|
-
var c = it[16 * t - 1], u = ye;
|
|
1190
|
-
s >>= 2;
|
|
1191
|
-
for (var a = 0; a < 16 * t; a += 16) {
|
|
1192
|
-
var p = s + a;
|
|
1193
|
-
c[a] = u[p], c[a + 1] = u[p + 1], c[a + 2] = u[p + 2], c[a + 3] = u[p + 3], c[a + 4] = u[p + 4], c[a + 5] = u[p + 5], c[a + 6] = u[p + 6], c[a + 7] = u[p + 7], c[a + 8] = u[p + 8], c[a + 9] = u[p + 9], c[a + 10] = u[p + 10], c[a + 11] = u[p + 11], c[a + 12] = u[p + 12], c[a + 13] = u[p + 13], c[a + 14] = u[p + 14], c[a + 15] = u[p + 15];
|
|
1126
|
+
},
|
|
1127
|
+
s: function(e, t) {
|
|
1128
|
+
for (var n = 0; n < e; n++) {
|
|
1129
|
+
var s = C[t + 4 * n >> 2];
|
|
1130
|
+
d.deleteVertexArray(nt[s]), nt[s] = null;
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
u: function(e, t, n, s) {
|
|
1134
|
+
if (!d.aa) {
|
|
1135
|
+
var u = 1 * rt[n - 5120] * t, a = Le(u), c = b.U[a];
|
|
1136
|
+
c ? a = c : (c = d.getParameter(34965), b.U[a] = d.createBuffer(), d.bindBuffer(34963, b.U[a]), d.bufferData(34963, 1 << a, 35048), d.bindBuffer(34963, c), a = b.U[a]), d.bindBuffer(34963, a), d.bufferSubData(34963, 0, ee.subarray(s, s + u)), s = 0;
|
|
1137
|
+
}
|
|
1138
|
+
for (Se = !1, u = 0; u < b.sa; ++u)
|
|
1139
|
+
if (a = b.Z[u], a.ia && a.enabled) {
|
|
1140
|
+
Se = !0, c = a.ka, c = 0 < c ? t * c : a.size * rt[a.type - 5120] * t;
|
|
1141
|
+
var y = Le(c), B = b.fa[y], m = b.W[y];
|
|
1142
|
+
b.W[y] = b.W[y] + 1 & 63;
|
|
1143
|
+
var k = B[m];
|
|
1144
|
+
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.T, a.T + c)), a.xa.call(d, u, a.size, a.type, a.ta, a.ka, 0);
|
|
1194
1145
|
}
|
|
1146
|
+
d.drawElements(e, t, n, s), Se && d.bindBuffer(34962, ce[d.$]), d.aa || d.bindBuffer(34963, null);
|
|
1147
|
+
},
|
|
1148
|
+
w: function(e) {
|
|
1149
|
+
b.Z[e].enabled = !0, d.enableVertexAttribArray(e);
|
|
1150
|
+
},
|
|
1151
|
+
h: function(e, t) {
|
|
1152
|
+
for (var n = 0; n < e; n++) {
|
|
1153
|
+
var s = d.createBuffer(), u = s && ge(ce);
|
|
1154
|
+
s ? (s.name = u, ce[u] = s) : le(1282), C[t + 4 * n >> 2] = u;
|
|
1155
|
+
}
|
|
1156
|
+
},
|
|
1157
|
+
t: function() {
|
|
1158
|
+
var e = d.getError() || we;
|
|
1159
|
+
return we = 0, e;
|
|
1160
|
+
},
|
|
1161
|
+
B: function(e, t, n) {
|
|
1162
|
+
if (n)
|
|
1163
|
+
if (e >= tt)
|
|
1164
|
+
le(1281);
|
|
1165
|
+
else if (e = te[e], t == 35716)
|
|
1166
|
+
e = d.getProgramInfoLog(e), e === null && (e = "(unknown error)"), C[n >> 2] = e.length + 1;
|
|
1167
|
+
else if (t == 35719) {
|
|
1168
|
+
if (!e.ea)
|
|
1169
|
+
for (t = 0; t < d.getProgramParameter(e, 35718); ++t)
|
|
1170
|
+
e.ea = Math.max(e.ea, d.getActiveUniform(e, t).name.length + 1);
|
|
1171
|
+
C[n >> 2] = e.ea;
|
|
1172
|
+
} else if (t == 35722) {
|
|
1173
|
+
if (!e.ba)
|
|
1174
|
+
for (t = 0; t < d.getProgramParameter(e, 35721); ++t)
|
|
1175
|
+
e.ba = Math.max(e.ba, d.getActiveAttrib(e, t).name.length + 1);
|
|
1176
|
+
C[n >> 2] = e.ba;
|
|
1177
|
+
} else if (t == 35381) {
|
|
1178
|
+
if (!e.da)
|
|
1179
|
+
for (t = 0; t < d.getProgramParameter(e, 35382); ++t)
|
|
1180
|
+
e.da = Math.max(e.da, d.getActiveUniformBlockName(e, t).length + 1);
|
|
1181
|
+
C[n >> 2] = e.da;
|
|
1182
|
+
} else
|
|
1183
|
+
C[n >> 2] = d.getProgramParameter(e, t);
|
|
1184
|
+
else
|
|
1185
|
+
le(1281);
|
|
1186
|
+
},
|
|
1187
|
+
n: function(e, t, n, s) {
|
|
1188
|
+
e = d.getShaderInfoLog(ne[e]), e === null && (e = "(unknown error)"), t = 0 < t && s ? pe(e, ee, s, t) : 0, n && (C[n >> 2] = t);
|
|
1189
|
+
},
|
|
1190
|
+
o: function(e, t, n) {
|
|
1191
|
+
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) : le(1281);
|
|
1192
|
+
},
|
|
1193
|
+
j: function(e, t) {
|
|
1194
|
+
if (t = V(t), e = te[e]) {
|
|
1195
|
+
var n = e, s = n.X, u = n.wa, a;
|
|
1196
|
+
if (!s)
|
|
1197
|
+
for (n.X = s = {}, n.va = {}, a = 0; a < d.getProgramParameter(n, 35718); ++a) {
|
|
1198
|
+
var c = d.getActiveUniform(n, a), y = c.name;
|
|
1199
|
+
c = c.size;
|
|
1200
|
+
var B = it(y);
|
|
1201
|
+
B = 0 < B ? y.slice(0, B) : y;
|
|
1202
|
+
var m = n.ma;
|
|
1203
|
+
for (n.ma += c, u[B] = [c, m], y = 0; y < c; ++y)
|
|
1204
|
+
s[m] = y, n.va[m++] = B;
|
|
1205
|
+
}
|
|
1206
|
+
if (n = e.X, s = 0, u = t, a = it(t), 0 < a && (s = parseInt(t.slice(a + 1)) >>> 0, u = t.slice(0, a)), (u = e.wa[u]) && s < u[0] && (s += u[1], n[s] = n[s] || d.getUniformLocation(e, t)))
|
|
1207
|
+
return s;
|
|
1195
1208
|
} else
|
|
1196
|
-
|
|
1197
|
-
|
|
1209
|
+
le(1281);
|
|
1210
|
+
return -1;
|
|
1211
|
+
},
|
|
1212
|
+
D: function(e) {
|
|
1213
|
+
e = te[e], d.linkProgram(e), e.X = 0, e.wa = {};
|
|
1214
|
+
},
|
|
1215
|
+
x: function(e, t, n, s) {
|
|
1216
|
+
for (var u = "", a = 0; a < t; ++a) {
|
|
1217
|
+
var c = s ? C[s + 4 * a >> 2] : -1;
|
|
1218
|
+
u += V(C[n + 4 * a >> 2], 0 > c ? void 0 : c);
|
|
1219
|
+
}
|
|
1220
|
+
d.shaderSource(ne[e], u);
|
|
1221
|
+
},
|
|
1222
|
+
i: function(e, t, n, s) {
|
|
1223
|
+
if (2 <= b.version)
|
|
1224
|
+
d.uniformMatrix4fv(st(e), !!n, he, s >> 2, 16 * t);
|
|
1225
|
+
else {
|
|
1226
|
+
if (18 >= t) {
|
|
1227
|
+
var u = ot[16 * t - 1], a = he;
|
|
1228
|
+
s >>= 2;
|
|
1229
|
+
for (var c = 0; c < 16 * t; c += 16) {
|
|
1230
|
+
var y = s + c;
|
|
1231
|
+
u[c] = a[y], u[c + 1] = a[y + 1], u[c + 2] = a[y + 2], u[c + 3] = a[y + 3], u[c + 4] = a[y + 4], u[c + 5] = a[y + 5], u[c + 6] = a[y + 6], u[c + 7] = a[y + 7], u[c + 8] = a[y + 8], u[c + 9] = a[y + 9], u[c + 10] = a[y + 10], u[c + 11] = a[y + 11], u[c + 12] = a[y + 12], u[c + 13] = a[y + 13], u[c + 14] = a[y + 14], u[c + 15] = a[y + 15];
|
|
1232
|
+
}
|
|
1233
|
+
} else
|
|
1234
|
+
u = he.subarray(s >> 2, s + 64 * t >> 2);
|
|
1235
|
+
d.uniformMatrix4fv(st(e), !!n, u);
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
y: function(e) {
|
|
1239
|
+
e = te[e], d.useProgram(e), d.za = e;
|
|
1240
|
+
},
|
|
1241
|
+
C: function(e) {
|
|
1242
|
+
d.validateProgram(te[e]);
|
|
1243
|
+
},
|
|
1244
|
+
v: function(e, t, n, s, u, a) {
|
|
1245
|
+
var c = b.Z[e];
|
|
1246
|
+
d.$ ? (c.ia = !1, d.vertexAttribPointer(e, t, n, !!s, u, a)) : (c.size = t, c.type = n, c.ta = s, c.ka = u, c.T = a, c.ia = !0, c.xa = function(y, B, m, k, re, H) {
|
|
1247
|
+
this.vertexAttribPointer(y, B, m, k, re, H);
|
|
1248
|
+
});
|
|
1198
1249
|
}
|
|
1199
|
-
}
|
|
1200
|
-
e = te[e], y.useProgram(e), y.va = e;
|
|
1201
|
-
}, y: function(e) {
|
|
1202
|
-
y.validateProgram(te[e]);
|
|
1203
|
-
}, r: function(e, t, r, s, c, u) {
|
|
1204
|
-
var a = S.X[e];
|
|
1205
|
-
y.ja ? (a.ea = !1, y.vertexAttribPointer(e, t, r, !!s, c, u)) : (a.size = t, a.type = r, a.pa = s, a.ga = c, a.R = u, a.ea = !0, a.ta = function(p, B, _, R, re, V) {
|
|
1206
|
-
this.vertexAttribPointer(p, B, _, R, re, V);
|
|
1207
|
-
});
|
|
1208
|
-
} };
|
|
1250
|
+
};
|
|
1209
1251
|
(function() {
|
|
1210
|
-
function e(
|
|
1211
|
-
|
|
1252
|
+
function e(u) {
|
|
1253
|
+
r.asm = u.exports, U = r.asm.G, ze(), Ge = r.asm.P, $e.unshift(r.asm.H), ae--, r.monitorRunDependencies && r.monitorRunDependencies(ae), ae == 0 && de && (u = de, de = null, u());
|
|
1212
1254
|
}
|
|
1213
|
-
function t(
|
|
1214
|
-
e(
|
|
1255
|
+
function t(u) {
|
|
1256
|
+
e(u.instance);
|
|
1215
1257
|
}
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1218
|
-
return WebAssembly.instantiate(
|
|
1219
|
-
}).then(function(
|
|
1220
|
-
return
|
|
1221
|
-
}).then(
|
|
1222
|
-
v("failed to asynchronously prepare wasm: " +
|
|
1258
|
+
function n(u) {
|
|
1259
|
+
return kt().then(function(a) {
|
|
1260
|
+
return WebAssembly.instantiate(a, s);
|
|
1261
|
+
}).then(function(a) {
|
|
1262
|
+
return a;
|
|
1263
|
+
}).then(u, function(a) {
|
|
1264
|
+
v("failed to asynchronously prepare wasm: " + a), ie(a);
|
|
1223
1265
|
});
|
|
1224
1266
|
}
|
|
1225
|
-
var s = { a:
|
|
1226
|
-
if (
|
|
1267
|
+
var s = { a: Vt };
|
|
1268
|
+
if (ae++, r.monitorRunDependencies && r.monitorRunDependencies(ae), r.instantiateWasm)
|
|
1227
1269
|
try {
|
|
1228
|
-
return
|
|
1270
|
+
return r.instantiateWasm(
|
|
1229
1271
|
s,
|
|
1230
1272
|
e
|
|
1231
1273
|
);
|
|
1232
|
-
} catch (
|
|
1233
|
-
return v("Module.instantiateWasm callback failed with error: " +
|
|
1274
|
+
} catch (u) {
|
|
1275
|
+
return v("Module.instantiateWasm callback failed with error: " + u), !1;
|
|
1234
1276
|
}
|
|
1235
1277
|
return function() {
|
|
1236
|
-
return O || typeof WebAssembly.instantiateStreaming != "function" ||
|
|
1237
|
-
return WebAssembly.instantiateStreaming(
|
|
1238
|
-
return v("wasm streaming compile failed: " +
|
|
1278
|
+
return O || typeof WebAssembly.instantiateStreaming != "function" || Ze() || $.startsWith("file://") || typeof fetch != "function" ? n(t) : fetch($, { credentials: "same-origin" }).then(function(u) {
|
|
1279
|
+
return WebAssembly.instantiateStreaming(u, s).then(t, function(a) {
|
|
1280
|
+
return v("wasm streaming compile failed: " + a), v("falling back to ArrayBuffer instantiation"), n(t);
|
|
1239
1281
|
});
|
|
1240
1282
|
});
|
|
1241
1283
|
}().catch(l), {};
|
|
1242
|
-
})(),
|
|
1243
|
-
return (
|
|
1284
|
+
})(), r.___wasm_call_ctors = function() {
|
|
1285
|
+
return (r.___wasm_call_ctors = r.asm.H).apply(null, arguments);
|
|
1244
1286
|
};
|
|
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 (
|
|
1287
|
+
var at = r._emscripten_bind_VoidPtr___destroy___0 = function() {
|
|
1288
|
+
return (at = r._emscripten_bind_VoidPtr___destroy___0 = r.asm.I).apply(null, arguments);
|
|
1289
|
+
}, ct = r._emscripten_bind_McObject_updateDisplay_2 = function() {
|
|
1290
|
+
return (ct = r._emscripten_bind_McObject_updateDisplay_2 = r.asm.J).apply(null, arguments);
|
|
1291
|
+
}, lt = r._emscripten_bind_McObject_test_0 = function() {
|
|
1292
|
+
return (lt = r._emscripten_bind_McObject_test_0 = r.asm.K).apply(null, arguments);
|
|
1293
|
+
}, ft = r._emscripten_bind_McApp_McApp_0 = function() {
|
|
1294
|
+
return (ft = r._emscripten_bind_McApp_McApp_0 = r.asm.L).apply(null, arguments);
|
|
1295
|
+
}, dt = r._emscripten_bind_McApp_Init_0 = function() {
|
|
1296
|
+
return (dt = r._emscripten_bind_McApp_Init_0 = r.asm.M).apply(null, arguments);
|
|
1297
|
+
}, pt = r._emscripten_bind_McApp_CreateMxDraw_3 = function() {
|
|
1298
|
+
return (pt = r._emscripten_bind_McApp_CreateMxDraw_3 = r.asm.N).apply(null, arguments);
|
|
1299
|
+
}, yt = r._emscripten_bind_McApp___destroy___0 = function() {
|
|
1300
|
+
return (yt = r._emscripten_bind_McApp___destroy___0 = r.asm.O).apply(null, arguments);
|
|
1301
|
+
}, ht = r._strlen = function() {
|
|
1302
|
+
return (ht = r._strlen = r.asm.Q).apply(null, arguments);
|
|
1261
1303
|
};
|
|
1262
|
-
|
|
1263
|
-
return (
|
|
1264
|
-
},
|
|
1265
|
-
return (
|
|
1304
|
+
r._free = function() {
|
|
1305
|
+
return (r._free = r.asm.R).apply(null, arguments);
|
|
1306
|
+
}, r._malloc = function() {
|
|
1307
|
+
return (r._malloc = r.asm.S).apply(null, arguments);
|
|
1266
1308
|
};
|
|
1267
|
-
var
|
|
1268
|
-
|
|
1269
|
-
|
|
1309
|
+
var me;
|
|
1310
|
+
de = function e() {
|
|
1311
|
+
me || Ie(), me || (de = e);
|
|
1270
1312
|
};
|
|
1271
1313
|
function Ie() {
|
|
1272
1314
|
function e() {
|
|
1273
|
-
if (!
|
|
1274
|
-
if (We(
|
|
1275
|
-
for (typeof
|
|
1276
|
-
var t =
|
|
1277
|
-
|
|
1315
|
+
if (!me && (me = !0, r.calledRun = !0, !N)) {
|
|
1316
|
+
if (We($e), f(r), r.onRuntimeInitialized && r.onRuntimeInitialized(), r.postRun)
|
|
1317
|
+
for (typeof r.postRun == "function" && (r.postRun = [r.postRun]); r.postRun.length; ) {
|
|
1318
|
+
var t = r.postRun.shift();
|
|
1319
|
+
Ye.unshift(t);
|
|
1278
1320
|
}
|
|
1279
|
-
We(
|
|
1321
|
+
We(Ye);
|
|
1280
1322
|
}
|
|
1281
1323
|
}
|
|
1282
|
-
if (!(0 <
|
|
1283
|
-
if (
|
|
1284
|
-
for (typeof
|
|
1285
|
-
|
|
1286
|
-
We(
|
|
1324
|
+
if (!(0 < ae)) {
|
|
1325
|
+
if (r.preRun)
|
|
1326
|
+
for (typeof r.preRun == "function" && (r.preRun = [r.preRun]); r.preRun.length; )
|
|
1327
|
+
Dt();
|
|
1328
|
+
We(Xe), 0 < ae || (r.setStatus ? (r.setStatus("Running..."), setTimeout(function() {
|
|
1287
1329
|
setTimeout(function() {
|
|
1288
|
-
|
|
1330
|
+
r.setStatus("");
|
|
1289
1331
|
}, 1), e();
|
|
1290
1332
|
}, 1)) : e());
|
|
1291
1333
|
}
|
|
1292
1334
|
}
|
|
1293
|
-
if (
|
|
1294
|
-
for (typeof
|
|
1295
|
-
|
|
1335
|
+
if (r.run = Ie, r.preInit)
|
|
1336
|
+
for (typeof r.preInit == "function" && (r.preInit = [r.preInit]); 0 < r.preInit.length; )
|
|
1337
|
+
r.preInit.pop()();
|
|
1296
1338
|
Ie();
|
|
1297
|
-
function
|
|
1339
|
+
function X() {
|
|
1298
1340
|
}
|
|
1299
|
-
|
|
1341
|
+
X.prototype = Object.create(X.prototype), X.prototype.constructor = X, X.prototype.V = X, X.Y = {}, r.WrapperObject = X;
|
|
1300
1342
|
function ve(e) {
|
|
1301
|
-
return (e ||
|
|
1343
|
+
return (e || X).Y;
|
|
1302
1344
|
}
|
|
1303
|
-
|
|
1345
|
+
r.getCache = ve;
|
|
1304
1346
|
function Pe(e, t) {
|
|
1305
|
-
var
|
|
1306
|
-
return s || (s = Object.create((t ||
|
|
1347
|
+
var n = ve(t), s = n[e];
|
|
1348
|
+
return s || (s = Object.create((t || X).prototype), s.T = e, n[e] = s);
|
|
1307
1349
|
}
|
|
1308
|
-
|
|
1309
|
-
return Pe(e.
|
|
1310
|
-
},
|
|
1350
|
+
r.wrapPointer = Pe, r.castObject = function(e, t) {
|
|
1351
|
+
return Pe(e.T, t);
|
|
1352
|
+
}, r.NULL = Pe(0), r.destroy = function(e) {
|
|
1311
1353
|
if (!e.__destroy__)
|
|
1312
1354
|
throw "Error: Cannot destroy object. (Did you create it yourself?)";
|
|
1313
|
-
e.__destroy__(), delete ve(e.
|
|
1314
|
-
},
|
|
1315
|
-
return e.
|
|
1316
|
-
},
|
|
1317
|
-
return e.R;
|
|
1318
|
-
}, n.getClass = function(e) {
|
|
1355
|
+
e.__destroy__(), delete ve(e.V)[e.T];
|
|
1356
|
+
}, r.compare = function(e, t) {
|
|
1357
|
+
return e.T === t.T;
|
|
1358
|
+
}, r.getPointer = function(e) {
|
|
1319
1359
|
return e.T;
|
|
1360
|
+
}, r.getClass = function(e) {
|
|
1361
|
+
return e.V;
|
|
1320
1362
|
};
|
|
1321
|
-
var
|
|
1322
|
-
function
|
|
1363
|
+
var fe = 0, xe = 0, Me = 0, Ce = [], Be = 0;
|
|
1364
|
+
function Et() {
|
|
1323
1365
|
if (Be) {
|
|
1324
1366
|
for (var e = 0; e < Ce.length; e++)
|
|
1325
|
-
|
|
1326
|
-
Ce.length = 0,
|
|
1367
|
+
r._free(Ce[e]);
|
|
1368
|
+
Ce.length = 0, r._free(fe), fe = 0, xe += Be, Be = 0;
|
|
1327
1369
|
}
|
|
1328
|
-
|
|
1370
|
+
fe || (xe += 128, (fe = r._malloc(xe)) || ie(void 0)), Me = 0;
|
|
1329
1371
|
}
|
|
1330
|
-
function
|
|
1331
|
-
return
|
|
1372
|
+
function At(e, t) {
|
|
1373
|
+
return fe || ie(void 0), e = e.length * t.BYTES_PER_ELEMENT, e = e + 7 & -8, Me + e >= xe ? (0 < e || ie(void 0), Be += e, t = r._malloc(e), Ce.push(t)) : (t = fe + Me, Me += e), t;
|
|
1332
1374
|
}
|
|
1333
|
-
function
|
|
1334
|
-
switch (
|
|
1375
|
+
function gt(e, t, n) {
|
|
1376
|
+
switch (n >>>= 0, t.BYTES_PER_ELEMENT) {
|
|
1335
1377
|
case 2:
|
|
1336
|
-
|
|
1378
|
+
n >>>= 1;
|
|
1337
1379
|
break;
|
|
1338
1380
|
case 4:
|
|
1339
|
-
|
|
1381
|
+
n >>>= 2;
|
|
1340
1382
|
break;
|
|
1341
1383
|
case 8:
|
|
1342
|
-
|
|
1384
|
+
n >>>= 3;
|
|
1343
1385
|
}
|
|
1344
1386
|
for (var s = 0; s < e.length; s++)
|
|
1345
|
-
t[
|
|
1387
|
+
t[n + s] = e[s];
|
|
1346
1388
|
}
|
|
1347
|
-
function
|
|
1389
|
+
function wt(e) {
|
|
1348
1390
|
if (typeof e == "object") {
|
|
1349
|
-
var t =
|
|
1350
|
-
return
|
|
1391
|
+
var t = At(e, Ee);
|
|
1392
|
+
return gt(e, Ee, t), t;
|
|
1351
1393
|
}
|
|
1352
1394
|
return e;
|
|
1353
1395
|
}
|
|
1354
|
-
function
|
|
1396
|
+
function se() {
|
|
1355
1397
|
throw "cannot construct a VoidPtr, no constructor in IDL";
|
|
1356
1398
|
}
|
|
1357
|
-
|
|
1358
|
-
|
|
1399
|
+
se.prototype = Object.create(X.prototype), se.prototype.constructor = se, se.prototype.V = se, se.Y = {}, r.VoidPtr = se, se.prototype.__destroy__ = function() {
|
|
1400
|
+
at(this.T);
|
|
1359
1401
|
};
|
|
1360
1402
|
function Z() {
|
|
1361
1403
|
throw "cannot construct a McObject, no constructor in IDL";
|
|
1362
1404
|
}
|
|
1363
|
-
Z.prototype = Object.create(
|
|
1364
|
-
var
|
|
1365
|
-
return
|
|
1405
|
+
Z.prototype = Object.create(X.prototype), Z.prototype.constructor = Z, Z.prototype.V = Z, Z.Y = {}, r.McObject = Z, Z.prototype.updateDisplay = function(e, t) {
|
|
1406
|
+
var n = this.T;
|
|
1407
|
+
return Et(), typeof e == "object" && (e = wt(e)), typeof t == "object" && (t = wt(t)), !!ct(n, e, t);
|
|
1366
1408
|
}, Z.prototype.test = Z.prototype.test = function() {
|
|
1367
|
-
|
|
1409
|
+
lt(this.T);
|
|
1368
1410
|
};
|
|
1369
|
-
function
|
|
1370
|
-
this.
|
|
1411
|
+
function J() {
|
|
1412
|
+
this.T = ft(), ve(J)[this.T] = this;
|
|
1371
1413
|
}
|
|
1372
|
-
return
|
|
1373
|
-
|
|
1374
|
-
},
|
|
1375
|
-
var s = this.
|
|
1376
|
-
if (
|
|
1377
|
-
|
|
1378
|
-
else if (typeof
|
|
1379
|
-
|
|
1380
|
-
var
|
|
1381
|
-
|
|
1414
|
+
return J.prototype = Object.create(X.prototype), J.prototype.constructor = J, J.prototype.V = J, J.Y = {}, r.McApp = J, J.prototype.Init = function() {
|
|
1415
|
+
dt(this.T);
|
|
1416
|
+
}, J.prototype.CreateMxDraw = function(e, t, n) {
|
|
1417
|
+
var s = this.T;
|
|
1418
|
+
if (Et(), e && typeof e == "object" && (e = e.T), t && typeof t == "object" && (t = t.T), n && typeof n == "object")
|
|
1419
|
+
n = n.T;
|
|
1420
|
+
else if (typeof n == "string") {
|
|
1421
|
+
n = ut(n);
|
|
1422
|
+
var u = At(n, j);
|
|
1423
|
+
gt(n, j, u), n = u;
|
|
1382
1424
|
}
|
|
1383
|
-
return Pe(
|
|
1384
|
-
},
|
|
1385
|
-
|
|
1425
|
+
return Pe(pt(s, e, t, n), Z);
|
|
1426
|
+
}, J.prototype.__destroy__ = function() {
|
|
1427
|
+
yt(this.T);
|
|
1386
1428
|
}, o.ready;
|
|
1387
1429
|
};
|
|
1388
1430
|
})();
|
|
1389
1431
|
typeof exports == "object" && typeof module == "object" ? module.exports = Fe : typeof define == "function" && define.amd ? define([], function() {
|
|
1390
1432
|
return Fe;
|
|
1391
1433
|
}) : typeof exports == "object" && (exports.mxdrawassembly = Fe);
|
|
1392
|
-
const
|
|
1393
|
-
let
|
|
1394
|
-
function
|
|
1434
|
+
const rn = (i, o) => new URL(i, o || self.location.href).toString();
|
|
1435
|
+
let Te;
|
|
1436
|
+
function sn(i, o = rn) {
|
|
1395
1437
|
Fe({
|
|
1396
1438
|
locateFile: o
|
|
1397
|
-
}).then((
|
|
1398
|
-
let f = new
|
|
1399
|
-
f.Init(),
|
|
1439
|
+
}).then((r) => {
|
|
1440
|
+
let f = new r.McApp();
|
|
1441
|
+
f.Init(), Te = r, Te.McApp = f, i(Te);
|
|
1400
1442
|
});
|
|
1401
1443
|
}
|
|
1402
|
-
const
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1444
|
+
const un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1445
|
+
__proto__: null,
|
|
1446
|
+
get MxCpp() {
|
|
1447
|
+
return Te;
|
|
1448
|
+
},
|
|
1449
|
+
loadMxdrawassembly: sn,
|
|
1450
|
+
fetchAndInstantiate: Xt,
|
|
1451
|
+
b64Encode: Pt,
|
|
1452
|
+
b64Decode: xt,
|
|
1453
|
+
setMcDbEntity: Mt,
|
|
1454
|
+
MxTools: He,
|
|
1455
|
+
drawText: $t,
|
|
1456
|
+
drawCircle: Ct,
|
|
1457
|
+
drawLine: Bt,
|
|
1458
|
+
drawMText: Zt,
|
|
1459
|
+
drawPolyLine: Jt,
|
|
1460
|
+
drawPolygon: Qt,
|
|
1461
|
+
drawArc: tn,
|
|
1462
|
+
drawEllipticalArc: nn
|
|
1463
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1406
1464
|
export {
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1465
|
+
Te as MxCpp,
|
|
1466
|
+
He as MxTools,
|
|
1467
|
+
xt as b64Decode,
|
|
1468
|
+
Pt as b64Encode,
|
|
1469
|
+
un as default,
|
|
1470
|
+
tn as drawArc,
|
|
1471
|
+
Ct as drawCircle,
|
|
1472
|
+
nn as drawEllipticalArc,
|
|
1473
|
+
Bt as drawLine,
|
|
1474
|
+
Zt as drawMText,
|
|
1475
|
+
Jt as drawPolyLine,
|
|
1476
|
+
Qt as drawPolygon,
|
|
1477
|
+
$t as drawText,
|
|
1478
|
+
Xt as fetchAndInstantiate,
|
|
1479
|
+
sn as loadMxdrawassembly,
|
|
1480
|
+
Mt as setMcDbEntity
|
|
1423
1481
|
};
|