exodeui 2.5.0 → 2.5.1
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/index.js +4 -4
- package/dist/index.mjs +555 -547
- package/dist/useExodeUI.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var RQ = Object.defineProperty;
|
|
2
|
-
var cQ = (
|
|
3
|
-
var v = (
|
|
4
|
-
import aC, { forwardRef as YQ, useRef as
|
|
5
|
-
var xI = { exports: {} },
|
|
2
|
+
var cQ = (E, A, I) => A in E ? RQ(E, A, { enumerable: !0, configurable: !0, writable: !0, value: I }) : E[A] = I;
|
|
3
|
+
var v = (E, A, I) => cQ(E, typeof A != "symbol" ? A + "" : A, I);
|
|
4
|
+
import aC, { forwardRef as YQ, useRef as EI, useImperativeHandle as tQ, useEffect as TA, useState as LQ, useCallback as ZA } from "react";
|
|
5
|
+
var xI = { exports: {} }, OA = {};
|
|
6
6
|
/**
|
|
7
7
|
* @license React
|
|
8
8
|
* react-jsx-runtime.production.min.js
|
|
@@ -14,19 +14,19 @@ var xI = { exports: {} }, ZA = {};
|
|
|
14
14
|
*/
|
|
15
15
|
var Xg;
|
|
16
16
|
function rQ() {
|
|
17
|
-
if (Xg) return
|
|
17
|
+
if (Xg) return OA;
|
|
18
18
|
Xg = 1;
|
|
19
|
-
var
|
|
20
|
-
function
|
|
19
|
+
var E = aC, A = Symbol.for("react.element"), I = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, C = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, B = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
20
|
+
function i(D, o, w) {
|
|
21
21
|
var K, s = {}, k = null, a = null;
|
|
22
22
|
w !== void 0 && (k = "" + w), o.key !== void 0 && (k = "" + o.key), o.ref !== void 0 && (a = o.ref);
|
|
23
23
|
for (K in o) g.call(o, K) && !B.hasOwnProperty(K) && (s[K] = o[K]);
|
|
24
24
|
if (D && D.defaultProps) for (K in o = D.defaultProps, o) s[K] === void 0 && (s[K] = o[K]);
|
|
25
25
|
return { $$typeof: A, type: D, key: k, ref: a, props: s, _owner: C.current };
|
|
26
26
|
}
|
|
27
|
-
return
|
|
27
|
+
return OA.Fragment = I, OA.jsx = i, OA.jsxs = i, OA;
|
|
28
28
|
}
|
|
29
|
-
var
|
|
29
|
+
var jA = {};
|
|
30
30
|
/**
|
|
31
31
|
* @license React
|
|
32
32
|
* react-jsx-runtime.development.js
|
|
@@ -39,14 +39,14 @@ var OA = {};
|
|
|
39
39
|
var mg;
|
|
40
40
|
function qQ() {
|
|
41
41
|
return mg || (mg = 1, process.env.NODE_ENV !== "production" && function() {
|
|
42
|
-
var
|
|
43
|
-
function
|
|
42
|
+
var E = aC, A = Symbol.for("react.element"), I = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), B = Symbol.for("react.profiler"), i = Symbol.for("react.provider"), D = Symbol.for("react.context"), o = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), K = Symbol.for("react.suspense_list"), s = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), a = Symbol.for("react.offscreen"), R = Symbol.iterator, J = "@@iterator";
|
|
43
|
+
function F(G) {
|
|
44
44
|
if (G === null || typeof G != "object")
|
|
45
45
|
return null;
|
|
46
46
|
var y = R && G[R] || G[J];
|
|
47
47
|
return typeof y == "function" ? y : null;
|
|
48
48
|
}
|
|
49
|
-
var
|
|
49
|
+
var M = E.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
50
50
|
function c(G) {
|
|
51
51
|
{
|
|
52
52
|
for (var y = arguments.length, U = new Array(y > 1 ? y - 1 : 0), L = 1; L < y; L++)
|
|
@@ -56,7 +56,7 @@ function qQ() {
|
|
|
56
56
|
}
|
|
57
57
|
function p(G, y, U) {
|
|
58
58
|
{
|
|
59
|
-
var L =
|
|
59
|
+
var L = M.ReactDebugCurrentFrame, n = L.getStackAddendum();
|
|
60
60
|
n !== "" && (y += "%s", U = U.concat([n]));
|
|
61
61
|
var b = U.map(function(e) {
|
|
62
62
|
return String(e);
|
|
@@ -67,7 +67,7 @@ function qQ() {
|
|
|
67
67
|
var j = !1, _ = !1, X = !1, iA = !1, DA = !1, aA;
|
|
68
68
|
aA = Symbol.for("react.module.reference");
|
|
69
69
|
function RI(G) {
|
|
70
|
-
return !!(typeof G == "string" || typeof G == "function" || G === g || G === B || DA || G === C || G === w || G === K || iA || G === a || j || _ || X || typeof G == "object" && G !== null && (G.$$typeof === k || G.$$typeof === s || G.$$typeof ===
|
|
70
|
+
return !!(typeof G == "string" || typeof G == "function" || G === g || G === B || DA || G === C || G === w || G === K || iA || G === a || j || _ || X || typeof G == "object" && G !== null && (G.$$typeof === k || G.$$typeof === s || G.$$typeof === i || G.$$typeof === D || G.$$typeof === o || // This needs to include all possible module reference object
|
|
71
71
|
// types supported by any Flight configuration anywhere since
|
|
72
72
|
// we don't know which Flight build this will end up being used
|
|
73
73
|
// with.
|
|
@@ -109,7 +109,7 @@ function qQ() {
|
|
|
109
109
|
case D:
|
|
110
110
|
var y = G;
|
|
111
111
|
return Mg(y) + ".Consumer";
|
|
112
|
-
case
|
|
112
|
+
case i:
|
|
113
113
|
var U = G;
|
|
114
114
|
return Mg(U._context) + ".Provider";
|
|
115
115
|
case o:
|
|
@@ -190,8 +190,8 @@ function qQ() {
|
|
|
190
190
|
fA < 0 && c("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
var cI =
|
|
194
|
-
function
|
|
193
|
+
var cI = M.ReactCurrentDispatcher, YI;
|
|
194
|
+
function gI(G, y, U) {
|
|
195
195
|
{
|
|
196
196
|
if (YI === void 0)
|
|
197
197
|
try {
|
|
@@ -204,16 +204,16 @@ function qQ() {
|
|
|
204
204
|
` + YI + G;
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
-
var tI = !1,
|
|
207
|
+
var tI = !1, CI;
|
|
208
208
|
{
|
|
209
209
|
var $C = typeof WeakMap == "function" ? WeakMap : Map;
|
|
210
|
-
|
|
210
|
+
CI = new $C();
|
|
211
211
|
}
|
|
212
212
|
function qg(G, y) {
|
|
213
213
|
if (!G || tI)
|
|
214
214
|
return "";
|
|
215
215
|
{
|
|
216
|
-
var U =
|
|
216
|
+
var U = CI.get(G);
|
|
217
217
|
if (U !== void 0)
|
|
218
218
|
return U;
|
|
219
219
|
}
|
|
@@ -268,7 +268,7 @@ function qQ() {
|
|
|
268
268
|
if (x--, m--, m < 0 || r[x] !== AA[m]) {
|
|
269
269
|
var oA = `
|
|
270
270
|
` + r[x].replace(" at new ", " at ");
|
|
271
|
-
return G.displayName && oA.includes("<anonymous>") && (oA = oA.replace("<anonymous>", G.displayName)), typeof G == "function" &&
|
|
271
|
+
return G.displayName && oA.includes("<anonymous>") && (oA = oA.replace("<anonymous>", G.displayName)), typeof G == "function" && CI.set(G, oA), oA;
|
|
272
272
|
}
|
|
273
273
|
while (x >= 1 && m >= 0);
|
|
274
274
|
break;
|
|
@@ -277,8 +277,8 @@ function qQ() {
|
|
|
277
277
|
} finally {
|
|
278
278
|
tI = !1, cI.current = b, _C(), Error.prepareStackTrace = n;
|
|
279
279
|
}
|
|
280
|
-
var eA = G ? G.displayName || G.name : "", RA = eA ?
|
|
281
|
-
return typeof G == "function" &&
|
|
280
|
+
var eA = G ? G.displayName || G.name : "", RA = eA ? gI(eA) : "";
|
|
281
|
+
return typeof G == "function" && CI.set(G, RA), RA;
|
|
282
282
|
}
|
|
283
283
|
function AQ(G, y, U) {
|
|
284
284
|
return qg(G, !1);
|
|
@@ -287,39 +287,39 @@ function qQ() {
|
|
|
287
287
|
var y = G.prototype;
|
|
288
288
|
return !!(y && y.isReactComponent);
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function QI(G, y, U) {
|
|
291
291
|
if (G == null)
|
|
292
292
|
return "";
|
|
293
293
|
if (typeof G == "function")
|
|
294
294
|
return qg(G, IQ(G));
|
|
295
295
|
if (typeof G == "string")
|
|
296
|
-
return
|
|
296
|
+
return gI(G);
|
|
297
297
|
switch (G) {
|
|
298
298
|
case w:
|
|
299
|
-
return
|
|
299
|
+
return gI("Suspense");
|
|
300
300
|
case K:
|
|
301
|
-
return
|
|
301
|
+
return gI("SuspenseList");
|
|
302
302
|
}
|
|
303
303
|
if (typeof G == "object")
|
|
304
304
|
switch (G.$$typeof) {
|
|
305
305
|
case o:
|
|
306
306
|
return AQ(G.render);
|
|
307
307
|
case s:
|
|
308
|
-
return
|
|
308
|
+
return QI(G.type, y, U);
|
|
309
309
|
case k: {
|
|
310
310
|
var L = G, n = L._payload, b = L._init;
|
|
311
311
|
try {
|
|
312
|
-
return
|
|
312
|
+
return QI(b(n), y, U);
|
|
313
313
|
} catch {
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
return "";
|
|
318
318
|
}
|
|
319
|
-
var bA = Object.prototype.hasOwnProperty, eg = {}, Hg =
|
|
320
|
-
function
|
|
319
|
+
var bA = Object.prototype.hasOwnProperty, eg = {}, Hg = M.ReactDebugCurrentFrame;
|
|
320
|
+
function BI(G) {
|
|
321
321
|
if (G) {
|
|
322
|
-
var y = G._owner, U =
|
|
322
|
+
var y = G._owner, U = QI(G.type, G._source, y ? y.type : null);
|
|
323
323
|
Hg.setExtraStackFrame(U);
|
|
324
324
|
} else
|
|
325
325
|
Hg.setExtraStackFrame(null);
|
|
@@ -339,7 +339,7 @@ function qQ() {
|
|
|
339
339
|
} catch (x) {
|
|
340
340
|
r = x;
|
|
341
341
|
}
|
|
342
|
-
r && !(r instanceof Error) && (
|
|
342
|
+
r && !(r instanceof Error) && (BI(n), c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", L || "React class", U, e, typeof r), BI(null)), r instanceof Error && !(r.message in eg) && (eg[r.message] = !0, BI(n), c("Failed %s type: %s", U, r.message), BI(null));
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
345
|
}
|
|
@@ -367,7 +367,7 @@ function qQ() {
|
|
|
367
367
|
if (BQ(G))
|
|
368
368
|
return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", QQ(G)), lg(G);
|
|
369
369
|
}
|
|
370
|
-
var pg =
|
|
370
|
+
var pg = M.ReactCurrentOwner, EQ = {
|
|
371
371
|
key: !0,
|
|
372
372
|
ref: !0,
|
|
373
373
|
__self: !0,
|
|
@@ -461,10 +461,10 @@ function qQ() {
|
|
|
461
461
|
return hQ(G, r, AA, n, L, pg.current, e);
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
|
-
var rI =
|
|
464
|
+
var rI = M.ReactCurrentOwner, bg = M.ReactDebugCurrentFrame;
|
|
465
465
|
function qA(G) {
|
|
466
466
|
if (G) {
|
|
467
|
-
var y = G._owner, U =
|
|
467
|
+
var y = G._owner, U = QI(G.type, G._source, y ? y.type : null);
|
|
468
468
|
bg.setExtraStackFrame(U);
|
|
469
469
|
} else
|
|
470
470
|
bg.setExtraStackFrame(null);
|
|
@@ -527,7 +527,7 @@ Check the top-level render call using <` + U + ">.");
|
|
|
527
527
|
else if (eI(G))
|
|
528
528
|
G._store && (G._store.validated = !0);
|
|
529
529
|
else if (G) {
|
|
530
|
-
var n =
|
|
530
|
+
var n = F(G);
|
|
531
531
|
if (typeof n == "function" && n !== G.entries)
|
|
532
532
|
for (var b = n.call(G), e; !(e = b.next()).done; )
|
|
533
533
|
eI(e.value) && Og(e.value, y);
|
|
@@ -623,26 +623,26 @@ React keys must be passed directly to JSX without using spread:
|
|
|
623
623
|
return xg(G, y, U, !1);
|
|
624
624
|
}
|
|
625
625
|
var FQ = yQ, MQ = aQ;
|
|
626
|
-
|
|
627
|
-
}()),
|
|
626
|
+
jA.Fragment = g, jA.jsx = FQ, jA.jsxs = MQ;
|
|
627
|
+
}()), jA;
|
|
628
628
|
}
|
|
629
629
|
process.env.NODE_ENV === "production" ? xI.exports = rQ() : xI.exports = qQ();
|
|
630
|
-
var eQ = xI.exports, HQ = /* @__PURE__ */ ((
|
|
630
|
+
var eQ = xI.exports, HQ = /* @__PURE__ */ ((E) => (E.Equal = "Equal", E.NotEqual = "NotEqual", E.GreaterThan = "GreaterThan", E.LessThan = "LessThan", E.GreaterEqual = "GreaterEqual", E.LessEqual = "LessEqual", E.IsTrue = "IsTrue", E.IsFalse = "IsFalse", E))(HQ || {}), WA = /* @__PURE__ */ ((E) => (E.AND = "AND", E.OR = "OR", E.NOT = "NOT", E.XOR = "XOR", E))(WA || {});
|
|
631
631
|
let Q;
|
|
632
632
|
const H = new Array(128).fill(void 0);
|
|
633
|
-
function q(
|
|
634
|
-
return H[
|
|
633
|
+
function q(E) {
|
|
634
|
+
return H[E];
|
|
635
635
|
}
|
|
636
636
|
H.push(void 0, null, !0, !1);
|
|
637
|
-
let
|
|
638
|
-
function d(
|
|
639
|
-
|
|
640
|
-
const A =
|
|
641
|
-
return
|
|
637
|
+
let uA = H.length;
|
|
638
|
+
function d(E) {
|
|
639
|
+
uA === H.length && H.push(H.length + 1);
|
|
640
|
+
const A = uA;
|
|
641
|
+
return uA = H[A], H[A] = E, A;
|
|
642
642
|
}
|
|
643
|
-
function iI(
|
|
643
|
+
function iI(E, A) {
|
|
644
644
|
try {
|
|
645
|
-
return
|
|
645
|
+
return E.apply(this, A);
|
|
646
646
|
} catch (I) {
|
|
647
647
|
Q.__wbindgen_export_0(d(I));
|
|
648
648
|
}
|
|
@@ -651,58 +651,58 @@ const yC = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0,
|
|
|
651
651
|
throw Error("TextDecoder not available");
|
|
652
652
|
} };
|
|
653
653
|
typeof TextDecoder < "u" && yC.decode();
|
|
654
|
-
let
|
|
655
|
-
function XI(
|
|
656
|
-
return
|
|
654
|
+
let xA = null;
|
|
655
|
+
function XI(E, A) {
|
|
656
|
+
return E >>>= 0, yC.decode((xA !== null && xA.byteLength !== 0 || (xA = new Uint8Array(Q.memory.buffer)), xA).subarray(E, E + A));
|
|
657
657
|
}
|
|
658
|
-
function Y(
|
|
659
|
-
return
|
|
658
|
+
function Y(E) {
|
|
659
|
+
return E == null;
|
|
660
660
|
}
|
|
661
661
|
let cA = null;
|
|
662
662
|
function P() {
|
|
663
663
|
return (cA === null || cA.buffer.detached === !0 || cA.buffer.detached === void 0 && cA.buffer !== Q.memory.buffer) && (cA = new DataView(Q.memory.buffer)), cA;
|
|
664
664
|
}
|
|
665
|
-
function DI(
|
|
666
|
-
const A = q(
|
|
665
|
+
function DI(E) {
|
|
666
|
+
const A = q(E);
|
|
667
667
|
return function(I) {
|
|
668
|
-
I < 132 || (H[I] =
|
|
669
|
-
}(
|
|
668
|
+
I < 132 || (H[I] = uA, uA = I);
|
|
669
|
+
}(E), A;
|
|
670
670
|
}
|
|
671
|
-
function h(
|
|
672
|
-
if (!(
|
|
671
|
+
function h(E, A) {
|
|
672
|
+
if (!(E instanceof A)) throw new Error(`expected instance of ${A.name}`);
|
|
673
673
|
}
|
|
674
674
|
let T = 128;
|
|
675
|
-
function O(
|
|
675
|
+
function O(E) {
|
|
676
676
|
if (T == 1) throw new Error("out of js stack");
|
|
677
|
-
return H[--T] =
|
|
678
|
-
}
|
|
679
|
-
let xA = null;
|
|
680
|
-
function lQ(i, A) {
|
|
681
|
-
return i >>>= 0, (xA !== null && xA.byteLength !== 0 || (xA = new Int32Array(Q.memory.buffer)), xA).subarray(i / 4, i / 4 + A);
|
|
677
|
+
return H[--T] = E, T;
|
|
682
678
|
}
|
|
683
679
|
let XA = null;
|
|
680
|
+
function lQ(E, A) {
|
|
681
|
+
return E >>>= 0, (XA !== null && XA.byteLength !== 0 || (XA = new Int32Array(Q.memory.buffer)), XA).subarray(E / 4, E / 4 + A);
|
|
682
|
+
}
|
|
683
|
+
let mA = null;
|
|
684
684
|
function FC() {
|
|
685
|
-
return
|
|
685
|
+
return mA !== null && mA.byteLength !== 0 || (mA = new Float32Array(Q.memory.buffer)), mA;
|
|
686
686
|
}
|
|
687
|
-
function vg(
|
|
688
|
-
return
|
|
687
|
+
function vg(E, A) {
|
|
688
|
+
return E >>>= 0, FC().subarray(E / 4, E / 4 + A);
|
|
689
689
|
}
|
|
690
|
-
let
|
|
690
|
+
let vA = null;
|
|
691
691
|
function MC() {
|
|
692
|
-
return
|
|
692
|
+
return vA !== null && vA.byteLength !== 0 || (vA = new Uint32Array(Q.memory.buffer)), vA;
|
|
693
693
|
}
|
|
694
694
|
let BA = 0;
|
|
695
|
-
function lI(
|
|
696
|
-
const I = A(4 *
|
|
697
|
-
return MC().set(
|
|
695
|
+
function lI(E, A) {
|
|
696
|
+
const I = A(4 * E.length, 4) >>> 0;
|
|
697
|
+
return MC().set(E, I / 4), BA = E.length, I;
|
|
698
698
|
}
|
|
699
|
-
function FA(
|
|
700
|
-
const I = A(4 *
|
|
701
|
-
return FC().set(
|
|
699
|
+
function FA(E, A) {
|
|
700
|
+
const I = A(4 * E.length, 4) >>> 0;
|
|
701
|
+
return FC().set(E, I / 4), BA = E.length, I;
|
|
702
702
|
}
|
|
703
703
|
const SI = Object.freeze({ LinX: 0, 0: "LinX", LinY: 1, 1: "LinY", AngX: 2, 2: "AngX" }), MA = Object.freeze({ Revolute: 0, 0: "Revolute", Fixed: 1, 1: "Fixed", Prismatic: 2, 2: "Prismatic", Rope: 3, 3: "Rope", Spring: 4, 4: "Spring", Generic: 5, 5: "Generic" }), gA = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolygon: 9, 9: "ConvexPolygon", RoundCuboid: 10, 10: "RoundCuboid", RoundTriangle: 11, 11: "RoundTriangle", RoundConvexPolygon: 12, 12: "RoundConvexPolygon", HalfSpace: 13, 13: "HalfSpace", Voxels: 14, 14: "Voxels" }), nI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
704
704
|
}, unregister: () => {
|
|
705
|
-
} } : new FinalizationRegistry((
|
|
705
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawbroadphase_free(E >>> 0, 1));
|
|
706
706
|
class JA {
|
|
707
707
|
static __wrap(A) {
|
|
708
708
|
A >>>= 0;
|
|
@@ -721,85 +721,85 @@ class JA {
|
|
|
721
721
|
const A = Q.rawbroadphase_new();
|
|
722
722
|
return this.__wbg_ptr = A >>> 0, nI.register(this, this.__wbg_ptr, this), this;
|
|
723
723
|
}
|
|
724
|
-
castRay(A, I, g, C, B,
|
|
724
|
+
castRay(A, I, g, C, B, i, D, o, w, K, s, k) {
|
|
725
725
|
try {
|
|
726
726
|
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N);
|
|
727
|
-
const a = Q.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr,
|
|
727
|
+
const a = Q.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
|
|
728
728
|
return a === 0 ? void 0 : Eg.__wrap(a);
|
|
729
729
|
} finally {
|
|
730
730
|
H[T++] = void 0;
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
|
-
castRayAndGetNormal(A, I, g, C, B,
|
|
733
|
+
castRayAndGetNormal(A, I, g, C, B, i, D, o, w, K, s, k) {
|
|
734
734
|
try {
|
|
735
735
|
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N);
|
|
736
|
-
const a = Q.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr,
|
|
736
|
+
const a = Q.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
|
|
737
737
|
return a === 0 ? void 0 : aI.__wrap(a);
|
|
738
738
|
} finally {
|
|
739
739
|
H[T++] = void 0;
|
|
740
740
|
}
|
|
741
741
|
}
|
|
742
|
-
intersectionsWithRay(A, I, g, C, B,
|
|
742
|
+
intersectionsWithRay(A, I, g, C, B, i, D, o, w, K, s, k, a) {
|
|
743
743
|
try {
|
|
744
|
-
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N), Q.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr,
|
|
744
|
+
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N), Q.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D, O(o), w, Y(K) ? 4294967297 : K >>> 0, !Y(s), Y(s) ? 0 : s, !Y(k), Y(k) ? 0 : k, O(a));
|
|
745
745
|
} finally {
|
|
746
746
|
H[T++] = void 0, H[T++] = void 0;
|
|
747
747
|
}
|
|
748
748
|
}
|
|
749
|
-
intersectionWithShape(A, I, g, C, B,
|
|
749
|
+
intersectionWithShape(A, I, g, C, B, i, D, o, w, K, s) {
|
|
750
750
|
try {
|
|
751
751
|
const R = Q.__wbindgen_add_to_stack_pointer(-16);
|
|
752
|
-
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(
|
|
752
|
+
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(i, t), Q.rawbroadphase_intersectionWithShape(R, this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D, Y(o) ? 4294967297 : o >>> 0, !Y(w), Y(w) ? 0 : w, !Y(K), Y(K) ? 0 : K, O(s));
|
|
753
753
|
var k = P().getInt32(R + 0, !0), a = P().getFloat64(R + 8, !0);
|
|
754
754
|
return k === 0 ? void 0 : a;
|
|
755
755
|
} finally {
|
|
756
756
|
Q.__wbindgen_add_to_stack_pointer(16), H[T++] = void 0;
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
|
-
projectPoint(A, I, g, C, B,
|
|
759
|
+
projectPoint(A, I, g, C, B, i, D, o, w, K) {
|
|
760
760
|
try {
|
|
761
761
|
h(A, u), h(I, Z), h(g, W), h(C, N);
|
|
762
|
-
const s = Q.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B,
|
|
762
|
+
const s = Q.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i, Y(D) ? 4294967297 : D >>> 0, !Y(o), Y(o) ? 0 : o, !Y(w), Y(w) ? 0 : w, O(K));
|
|
763
763
|
return s === 0 ? void 0 : oI.__wrap(s);
|
|
764
764
|
} finally {
|
|
765
765
|
H[T++] = void 0;
|
|
766
766
|
}
|
|
767
767
|
}
|
|
768
|
-
projectPointAndGetFeature(A, I, g, C, B,
|
|
768
|
+
projectPointAndGetFeature(A, I, g, C, B, i, D, o, w) {
|
|
769
769
|
try {
|
|
770
770
|
h(A, u), h(I, Z), h(g, W), h(C, N);
|
|
771
|
-
const K = Q.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, Y(
|
|
771
|
+
const K = Q.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, Y(i) ? 4294967297 : i >>> 0, !Y(D), Y(D) ? 0 : D, !Y(o), Y(o) ? 0 : o, O(w));
|
|
772
772
|
return K === 0 ? void 0 : oI.__wrap(K);
|
|
773
773
|
} finally {
|
|
774
774
|
H[T++] = void 0;
|
|
775
775
|
}
|
|
776
776
|
}
|
|
777
|
-
intersectionsWithPoint(A, I, g, C, B,
|
|
777
|
+
intersectionsWithPoint(A, I, g, C, B, i, D, o, w, K) {
|
|
778
778
|
try {
|
|
779
|
-
h(A, u), h(I, Z), h(g, W), h(C, N), Q.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, O(B),
|
|
779
|
+
h(A, u), h(I, Z), h(g, W), h(C, N), Q.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, O(B), i, Y(D) ? 4294967297 : D >>> 0, !Y(o), Y(o) ? 0 : o, !Y(w), Y(w) ? 0 : w, O(K));
|
|
780
780
|
} finally {
|
|
781
781
|
H[T++] = void 0, H[T++] = void 0;
|
|
782
782
|
}
|
|
783
783
|
}
|
|
784
|
-
castShape(A, I, g, C, B,
|
|
784
|
+
castShape(A, I, g, C, B, i, D, o, w, K, s, k, a, R, J) {
|
|
785
785
|
try {
|
|
786
|
-
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(
|
|
787
|
-
const
|
|
788
|
-
return
|
|
786
|
+
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(i, N), h(D, t);
|
|
787
|
+
const F = Q.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o, w, K, s, Y(k) ? 4294967297 : k >>> 0, !Y(a), Y(a) ? 0 : a, !Y(R), Y(R) ? 0 : R, O(J));
|
|
788
|
+
return F === 0 ? void 0 : NI.__wrap(F);
|
|
789
789
|
} finally {
|
|
790
790
|
H[T++] = void 0;
|
|
791
791
|
}
|
|
792
792
|
}
|
|
793
|
-
intersectionsWithShape(A, I, g, C, B,
|
|
793
|
+
intersectionsWithShape(A, I, g, C, B, i, D, o, w, K, s, k) {
|
|
794
794
|
try {
|
|
795
|
-
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(
|
|
795
|
+
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, l), h(i, t), Q.rawbroadphase_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, O(D), o, Y(w) ? 4294967297 : w >>> 0, !Y(K), Y(K) ? 0 : K, !Y(s), Y(s) ? 0 : s, O(k));
|
|
796
796
|
} finally {
|
|
797
797
|
H[T++] = void 0, H[T++] = void 0;
|
|
798
798
|
}
|
|
799
799
|
}
|
|
800
|
-
collidersWithAabbIntersectingAabb(A, I, g, C, B,
|
|
800
|
+
collidersWithAabbIntersectingAabb(A, I, g, C, B, i) {
|
|
801
801
|
try {
|
|
802
|
-
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N), Q.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, O(
|
|
802
|
+
h(A, u), h(I, Z), h(g, W), h(C, N), h(B, N), Q.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, O(i));
|
|
803
803
|
} finally {
|
|
804
804
|
H[T++] = void 0;
|
|
805
805
|
}
|
|
@@ -807,7 +807,7 @@ class JA {
|
|
|
807
807
|
}
|
|
808
808
|
const ug = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
809
809
|
}, unregister: () => {
|
|
810
|
-
} } : new FinalizationRegistry((
|
|
810
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawccdsolver_free(E >>> 0, 1));
|
|
811
811
|
class mI {
|
|
812
812
|
__destroy_into_raw() {
|
|
813
813
|
const A = this.__wbg_ptr;
|
|
@@ -824,7 +824,7 @@ class mI {
|
|
|
824
824
|
}
|
|
825
825
|
const Vg = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
826
826
|
}, unregister: () => {
|
|
827
|
-
} } : new FinalizationRegistry((
|
|
827
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawcharactercollision_free(E >>> 0, 1));
|
|
828
828
|
class JC {
|
|
829
829
|
__destroy_into_raw() {
|
|
830
830
|
const A = this.__wbg_ptr;
|
|
@@ -871,7 +871,7 @@ class JC {
|
|
|
871
871
|
}
|
|
872
872
|
const pI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
873
873
|
}, unregister: () => {
|
|
874
|
-
} } : new FinalizationRegistry((
|
|
874
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawcolliderset_free(E >>> 0, 1));
|
|
875
875
|
class W {
|
|
876
876
|
static __wrap(A) {
|
|
877
877
|
A >>>= 0;
|
|
@@ -970,8 +970,8 @@ class W {
|
|
|
970
970
|
coSetVoxel(A, I, g, C) {
|
|
971
971
|
Q.rawcolliderset_coSetVoxel(this.__wbg_ptr, A, I, g, C);
|
|
972
972
|
}
|
|
973
|
-
coPropagateVoxelChange(A, I, g, C, B,
|
|
974
|
-
Q.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr, A, I, g, C, B,
|
|
973
|
+
coPropagateVoxelChange(A, I, g, C, B, i) {
|
|
974
|
+
Q.rawcolliderset_coPropagateVoxelChange(this.__wbg_ptr, A, I, g, C, B, i);
|
|
975
975
|
}
|
|
976
976
|
coCombineVoxelStates(A, I, g, C) {
|
|
977
977
|
Q.rawcolliderset_coCombineVoxelStates(this.__wbg_ptr, A, I, g, C);
|
|
@@ -993,8 +993,8 @@ class W {
|
|
|
993
993
|
Q.rawcolliderset_coIndices(C, this.__wbg_ptr, A);
|
|
994
994
|
var I = P().getInt32(C + 0, !0), g = P().getInt32(C + 4, !0);
|
|
995
995
|
let B;
|
|
996
|
-
return I !== 0 && (B = function(
|
|
997
|
-
return
|
|
996
|
+
return I !== 0 && (B = function(i, D) {
|
|
997
|
+
return i >>>= 0, MC().subarray(i / 4, i / 4 + D);
|
|
998
998
|
}(I, g).slice(), Q.__wbindgen_export_1(I, 4 * g, 4)), B;
|
|
999
999
|
} finally {
|
|
1000
1000
|
Q.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1077,14 +1077,14 @@ class W {
|
|
|
1077
1077
|
coContainsPoint(A, I) {
|
|
1078
1078
|
return h(I, N), Q.rawcolliderset_coContainsPoint(this.__wbg_ptr, A, I.__wbg_ptr) !== 0;
|
|
1079
1079
|
}
|
|
1080
|
-
coCastShape(A, I, g, C, B,
|
|
1081
|
-
h(I, N), h(g, t), h(C, N), h(B, l), h(
|
|
1082
|
-
const K = Q.rawcolliderset_coCastShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr,
|
|
1080
|
+
coCastShape(A, I, g, C, B, i, D, o, w) {
|
|
1081
|
+
h(I, N), h(g, t), h(C, N), h(B, l), h(i, N);
|
|
1082
|
+
const K = Q.rawcolliderset_coCastShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D, o, w);
|
|
1083
1083
|
return K === 0 ? void 0 : FI.__wrap(K);
|
|
1084
1084
|
}
|
|
1085
|
-
coCastCollider(A, I, g, C, B,
|
|
1085
|
+
coCastCollider(A, I, g, C, B, i, D) {
|
|
1086
1086
|
h(I, N), h(C, N);
|
|
1087
|
-
const o = Q.rawcolliderset_coCastCollider(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B,
|
|
1087
|
+
const o = Q.rawcolliderset_coCastCollider(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B, i, D);
|
|
1088
1088
|
return o === 0 ? void 0 : NI.__wrap(o);
|
|
1089
1089
|
}
|
|
1090
1090
|
coIntersectsShape(A, I, g, C) {
|
|
@@ -1092,12 +1092,12 @@ class W {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
coContactShape(A, I, g, C, B) {
|
|
1094
1094
|
h(I, t), h(g, N), h(C, l);
|
|
1095
|
-
const
|
|
1096
|
-
return
|
|
1095
|
+
const i = Q.rawcolliderset_coContactShape(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B);
|
|
1096
|
+
return i === 0 ? void 0 : VA.__wrap(i);
|
|
1097
1097
|
}
|
|
1098
1098
|
coContactCollider(A, I, g) {
|
|
1099
1099
|
const C = Q.rawcolliderset_coContactCollider(this.__wbg_ptr, A, I, g);
|
|
1100
|
-
return C === 0 ? void 0 :
|
|
1100
|
+
return C === 0 ? void 0 : VA.__wrap(C);
|
|
1101
1101
|
}
|
|
1102
1102
|
coProjectPoint(A, I, g) {
|
|
1103
1103
|
h(I, N);
|
|
@@ -1112,8 +1112,8 @@ class W {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
coCastRayAndGetNormal(A, I, g, C, B) {
|
|
1114
1114
|
h(I, N), h(g, N);
|
|
1115
|
-
const
|
|
1116
|
-
return
|
|
1115
|
+
const i = Q.rawcolliderset_coCastRayAndGetNormal(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B);
|
|
1116
|
+
return i === 0 ? void 0 : yI.__wrap(i);
|
|
1117
1117
|
}
|
|
1118
1118
|
coSetSensor(A, I) {
|
|
1119
1119
|
Q.rawcolliderset_coSetSensor(this.__wbg_ptr, A, I);
|
|
@@ -1176,10 +1176,10 @@ class W {
|
|
|
1176
1176
|
contains(A) {
|
|
1177
1177
|
return Q.rawcolliderset_contains(this.__wbg_ptr, A) !== 0;
|
|
1178
1178
|
}
|
|
1179
|
-
createCollider(A, I, g, C, B,
|
|
1179
|
+
createCollider(A, I, g, C, B, i, D, o, w, K, s, k, a, R, J, F, M, c, p, j, _, X, iA, DA) {
|
|
1180
1180
|
try {
|
|
1181
1181
|
const dA = Q.__wbindgen_add_to_stack_pointer(-16);
|
|
1182
|
-
h(I, t), h(g, N), h(C, l), h(D, N), h(DA, Z), Q.rawcolliderset_createCollider(dA, this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B,
|
|
1182
|
+
h(I, t), h(g, N), h(C, l), h(D, N), h(DA, Z), Q.rawcolliderset_createCollider(dA, this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i, D.__wbg_ptr, o, w, K, s, k, a, R, J, F, M, c, p, j, _, X, iA, DA.__wbg_ptr);
|
|
1183
1183
|
var aA = P().getInt32(dA + 0, !0), RI = P().getFloat64(dA + 8, !0);
|
|
1184
1184
|
return aA === 0 ? void 0 : RI;
|
|
1185
1185
|
} finally {
|
|
@@ -1202,7 +1202,7 @@ class W {
|
|
|
1202
1202
|
}
|
|
1203
1203
|
const Pg = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1204
1204
|
}, unregister: () => {
|
|
1205
|
-
} } : new FinalizationRegistry((
|
|
1205
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawcollidershapecasthit_free(E >>> 0, 1));
|
|
1206
1206
|
class NI {
|
|
1207
1207
|
static __wrap(A) {
|
|
1208
1208
|
A >>>= 0;
|
|
@@ -1242,7 +1242,7 @@ class NI {
|
|
|
1242
1242
|
}
|
|
1243
1243
|
const zg = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1244
1244
|
}, unregister: () => {
|
|
1245
|
-
} } : new FinalizationRegistry((
|
|
1245
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawcontactforceevent_free(E >>> 0, 1));
|
|
1246
1246
|
class gg {
|
|
1247
1247
|
static __wrap(A) {
|
|
1248
1248
|
A >>>= 0;
|
|
@@ -1280,7 +1280,7 @@ class gg {
|
|
|
1280
1280
|
}
|
|
1281
1281
|
const _g = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1282
1282
|
}, unregister: () => {
|
|
1283
|
-
} } : new FinalizationRegistry((
|
|
1283
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawcontactmanifold_free(E >>> 0, 1));
|
|
1284
1284
|
class Cg {
|
|
1285
1285
|
static __wrap(A) {
|
|
1286
1286
|
A >>>= 0;
|
|
@@ -1362,7 +1362,7 @@ class Cg {
|
|
|
1362
1362
|
}
|
|
1363
1363
|
const $g = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1364
1364
|
}, unregister: () => {
|
|
1365
|
-
} } : new FinalizationRegistry((
|
|
1365
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawcontactpair_free(E >>> 0, 1));
|
|
1366
1366
|
class Qg {
|
|
1367
1367
|
static __wrap(A) {
|
|
1368
1368
|
A >>>= 0;
|
|
@@ -1393,7 +1393,7 @@ class Qg {
|
|
|
1393
1393
|
}
|
|
1394
1394
|
const AC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1395
1395
|
}, unregister: () => {
|
|
1396
|
-
} } : new FinalizationRegistry((
|
|
1396
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawdebugrenderpipeline_free(E >>> 0, 1));
|
|
1397
1397
|
class nQ {
|
|
1398
1398
|
__destroy_into_raw() {
|
|
1399
1399
|
const A = this.__wbg_ptr;
|
|
@@ -1413,9 +1413,9 @@ class nQ {
|
|
|
1413
1413
|
colors() {
|
|
1414
1414
|
return DI(Q.rawdebugrenderpipeline_colors(this.__wbg_ptr));
|
|
1415
1415
|
}
|
|
1416
|
-
render(A, I, g, C, B,
|
|
1416
|
+
render(A, I, g, C, B, i, D) {
|
|
1417
1417
|
try {
|
|
1418
|
-
h(A, Z), h(I, W), h(g, sA), h(C, NA), h(B, u), Q.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr,
|
|
1418
|
+
h(A, Z), h(I, W), h(g, sA), h(C, NA), h(B, u), Q.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, O(D));
|
|
1419
1419
|
} finally {
|
|
1420
1420
|
H[T++] = void 0;
|
|
1421
1421
|
}
|
|
@@ -1423,7 +1423,7 @@ class nQ {
|
|
|
1423
1423
|
}
|
|
1424
1424
|
const IC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1425
1425
|
}, unregister: () => {
|
|
1426
|
-
} } : new FinalizationRegistry((
|
|
1426
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawdeserializedworld_free(E >>> 0, 1));
|
|
1427
1427
|
class Bg {
|
|
1428
1428
|
static __wrap(A) {
|
|
1429
1429
|
A >>>= 0;
|
|
@@ -1477,7 +1477,7 @@ class Bg {
|
|
|
1477
1477
|
}
|
|
1478
1478
|
const gC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1479
1479
|
}, unregister: () => {
|
|
1480
|
-
} } : new FinalizationRegistry((
|
|
1480
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_raweventqueue_free(E >>> 0, 1));
|
|
1481
1481
|
class UC {
|
|
1482
1482
|
__destroy_into_raw() {
|
|
1483
1483
|
const A = this.__wbg_ptr;
|
|
@@ -1511,7 +1511,7 @@ class UC {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
const CC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1513
1513
|
}, unregister: () => {
|
|
1514
|
-
} } : new FinalizationRegistry((
|
|
1514
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawgenericjoint_free(E >>> 0, 1));
|
|
1515
1515
|
class CA {
|
|
1516
1516
|
static __wrap(A) {
|
|
1517
1517
|
A >>>= 0;
|
|
@@ -1528,17 +1528,17 @@ class CA {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
static spring(A, I, g, C, B) {
|
|
1530
1530
|
h(C, N), h(B, N);
|
|
1531
|
-
const
|
|
1532
|
-
return CA.__wrap(
|
|
1531
|
+
const i = Q.rawgenericjoint_spring(A, I, g, C.__wbg_ptr, B.__wbg_ptr);
|
|
1532
|
+
return CA.__wrap(i);
|
|
1533
1533
|
}
|
|
1534
1534
|
static rope(A, I, g) {
|
|
1535
1535
|
h(I, N), h(g, N);
|
|
1536
1536
|
const C = Q.rawgenericjoint_rope(A, I.__wbg_ptr, g.__wbg_ptr);
|
|
1537
1537
|
return CA.__wrap(C);
|
|
1538
1538
|
}
|
|
1539
|
-
static prismatic(A, I, g, C, B,
|
|
1539
|
+
static prismatic(A, I, g, C, B, i) {
|
|
1540
1540
|
h(A, N), h(I, N), h(g, N);
|
|
1541
|
-
const D = Q.rawgenericjoint_prismatic(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C, B,
|
|
1541
|
+
const D = Q.rawgenericjoint_prismatic(A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C, B, i);
|
|
1542
1542
|
return D === 0 ? void 0 : CA.__wrap(D);
|
|
1543
1543
|
}
|
|
1544
1544
|
static fixed(A, I, g, C) {
|
|
@@ -1554,7 +1554,7 @@ class CA {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
const dI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1556
1556
|
}, unregister: () => {
|
|
1557
|
-
} } : new FinalizationRegistry((
|
|
1557
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawimpulsejointset_free(E >>> 0, 1));
|
|
1558
1558
|
class sA {
|
|
1559
1559
|
static __wrap(A) {
|
|
1560
1560
|
A >>>= 0;
|
|
@@ -1627,8 +1627,8 @@ class sA {
|
|
|
1627
1627
|
jointConfigureMotorPosition(A, I, g, C, B) {
|
|
1628
1628
|
Q.rawimpulsejointset_jointConfigureMotorPosition(this.__wbg_ptr, A, I, g, C, B);
|
|
1629
1629
|
}
|
|
1630
|
-
jointConfigureMotor(A, I, g, C, B,
|
|
1631
|
-
Q.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr, A, I, g, C, B,
|
|
1630
|
+
jointConfigureMotor(A, I, g, C, B, i) {
|
|
1631
|
+
Q.rawimpulsejointset_jointConfigureMotor(this.__wbg_ptr, A, I, g, C, B, i);
|
|
1632
1632
|
}
|
|
1633
1633
|
constructor() {
|
|
1634
1634
|
const A = Q.rawimpulsejointset_new();
|
|
@@ -1663,7 +1663,7 @@ class sA {
|
|
|
1663
1663
|
}
|
|
1664
1664
|
const fI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1665
1665
|
}, unregister: () => {
|
|
1666
|
-
} } : new FinalizationRegistry((
|
|
1666
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawintegrationparameters_free(E >>> 0, 1));
|
|
1667
1667
|
class LA {
|
|
1668
1668
|
static __wrap(A) {
|
|
1669
1669
|
A >>>= 0;
|
|
@@ -1739,7 +1739,7 @@ class LA {
|
|
|
1739
1739
|
}
|
|
1740
1740
|
const bI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1741
1741
|
}, unregister: () => {
|
|
1742
|
-
} } : new FinalizationRegistry((
|
|
1742
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawislandmanager_free(E >>> 0, 1));
|
|
1743
1743
|
class SA {
|
|
1744
1744
|
static __wrap(A) {
|
|
1745
1745
|
A >>>= 0;
|
|
@@ -1768,7 +1768,7 @@ class SA {
|
|
|
1768
1768
|
}
|
|
1769
1769
|
const QC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1770
1770
|
}, unregister: () => {
|
|
1771
|
-
} } : new FinalizationRegistry((
|
|
1771
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawkinematiccharactercontroller_free(E >>> 0, 1));
|
|
1772
1772
|
class pQ {
|
|
1773
1773
|
__destroy_into_raw() {
|
|
1774
1774
|
const A = this.__wbg_ptr;
|
|
@@ -1853,9 +1853,9 @@ class pQ {
|
|
|
1853
1853
|
snapToGroundEnabled() {
|
|
1854
1854
|
return Q.rawkinematiccharactercontroller_snapToGroundEnabled(this.__wbg_ptr) !== 0;
|
|
1855
1855
|
}
|
|
1856
|
-
computeColliderMovement(A, I, g, C, B,
|
|
1856
|
+
computeColliderMovement(A, I, g, C, B, i, D, o, w, K, s, k) {
|
|
1857
1857
|
try {
|
|
1858
|
-
h(I, JA), h(g, u), h(C, Z), h(B, W), h(D, N), Q.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr,
|
|
1858
|
+
h(I, JA), h(g, u), h(C, Z), h(B, W), h(D, N), Q.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i, D.__wbg_ptr, o, Y(w) ? 4294967297 : Math.fround(w), K, Y(s) ? 4294967297 : s >>> 0, O(k));
|
|
1859
1859
|
} finally {
|
|
1860
1860
|
H[T++] = void 0;
|
|
1861
1861
|
}
|
|
@@ -1876,7 +1876,7 @@ class pQ {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
const TI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1878
1878
|
}, unregister: () => {
|
|
1879
|
-
} } : new FinalizationRegistry((
|
|
1879
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawmultibodyjointset_free(E >>> 0, 1));
|
|
1880
1880
|
class NA {
|
|
1881
1881
|
static __wrap(A) {
|
|
1882
1882
|
A >>>= 0;
|
|
@@ -1955,7 +1955,7 @@ class NA {
|
|
|
1955
1955
|
}
|
|
1956
1956
|
const ZI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1957
1957
|
}, unregister: () => {
|
|
1958
|
-
} } : new FinalizationRegistry((
|
|
1958
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawnarrowphase_free(E >>> 0, 1));
|
|
1959
1959
|
class u {
|
|
1960
1960
|
static __wrap(A) {
|
|
1961
1961
|
A >>>= 0;
|
|
@@ -1990,7 +1990,7 @@ class u {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
const BC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1992
1992
|
}, unregister: () => {
|
|
1993
|
-
} } : new FinalizationRegistry((
|
|
1993
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawphysicspipeline_free(E >>> 0, 1));
|
|
1994
1994
|
class dQ {
|
|
1995
1995
|
__destroy_into_raw() {
|
|
1996
1996
|
const A = this.__wbg_ptr;
|
|
@@ -2058,16 +2058,16 @@ class dQ {
|
|
|
2058
2058
|
timing_user_changes() {
|
|
2059
2059
|
return Q.rawphysicspipeline_timing_user_changes(this.__wbg_ptr);
|
|
2060
2060
|
}
|
|
2061
|
-
step(A, I, g, C, B,
|
|
2062
|
-
h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(
|
|
2061
|
+
step(A, I, g, C, B, i, D, o, w, K) {
|
|
2062
|
+
h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(i, Z), h(D, W), h(o, sA), h(w, NA), h(K, mI), Q.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, K.__wbg_ptr);
|
|
2063
2063
|
}
|
|
2064
|
-
stepWithEvents(A, I, g, C, B,
|
|
2065
|
-
h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(
|
|
2064
|
+
stepWithEvents(A, I, g, C, B, i, D, o, w, K, s, k, a, R) {
|
|
2065
|
+
h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(i, Z), h(D, W), h(o, sA), h(w, NA), h(K, mI), h(s, UC), Q.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, K.__wbg_ptr, s.__wbg_ptr, d(k), d(a), d(R));
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
2068
|
const EC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2069
2069
|
}, unregister: () => {
|
|
2070
|
-
} } : new FinalizationRegistry((
|
|
2070
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawpidcontroller_free(E >>> 0, 1));
|
|
2071
2071
|
class fQ {
|
|
2072
2072
|
__destroy_into_raw() {
|
|
2073
2073
|
const A = this.__wbg_ptr;
|
|
@@ -2104,8 +2104,8 @@ class fQ {
|
|
|
2104
2104
|
}
|
|
2105
2105
|
linear_correction(A, I, g, C, B) {
|
|
2106
2106
|
h(I, Z), h(C, N), h(B, N);
|
|
2107
|
-
const
|
|
2108
|
-
return N.__wrap(
|
|
2107
|
+
const i = Q.rawpidcontroller_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, B.__wbg_ptr);
|
|
2108
|
+
return N.__wrap(i);
|
|
2109
2109
|
}
|
|
2110
2110
|
angular_correction(A, I, g, C, B) {
|
|
2111
2111
|
return h(I, Z), Q.rawpidcontroller_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C, B);
|
|
@@ -2113,7 +2113,7 @@ class fQ {
|
|
|
2113
2113
|
}
|
|
2114
2114
|
const iC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2115
2115
|
}, unregister: () => {
|
|
2116
|
-
} } : new FinalizationRegistry((
|
|
2116
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawpointcolliderprojection_free(E >>> 0, 1));
|
|
2117
2117
|
class oI {
|
|
2118
2118
|
static __wrap(A) {
|
|
2119
2119
|
A >>>= 0;
|
|
@@ -2148,7 +2148,7 @@ class oI {
|
|
|
2148
2148
|
}
|
|
2149
2149
|
const DC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2150
2150
|
}, unregister: () => {
|
|
2151
|
-
} } : new FinalizationRegistry((
|
|
2151
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawpointprojection_free(E >>> 0, 1));
|
|
2152
2152
|
class kI {
|
|
2153
2153
|
static __wrap(A) {
|
|
2154
2154
|
A >>>= 0;
|
|
@@ -2173,7 +2173,7 @@ class kI {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
const oC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2175
2175
|
}, unregister: () => {
|
|
2176
|
-
} } : new FinalizationRegistry((
|
|
2176
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawraycolliderhit_free(E >>> 0, 1));
|
|
2177
2177
|
class Eg {
|
|
2178
2178
|
static __wrap(A) {
|
|
2179
2179
|
A >>>= 0;
|
|
@@ -2197,7 +2197,7 @@ class Eg {
|
|
|
2197
2197
|
}
|
|
2198
2198
|
const wC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2199
2199
|
}, unregister: () => {
|
|
2200
|
-
} } : new FinalizationRegistry((
|
|
2200
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawraycolliderintersection_free(E >>> 0, 1));
|
|
2201
2201
|
class aI {
|
|
2202
2202
|
static __wrap(A) {
|
|
2203
2203
|
A >>>= 0;
|
|
@@ -2232,7 +2232,7 @@ class aI {
|
|
|
2232
2232
|
}
|
|
2233
2233
|
const GC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2234
2234
|
}, unregister: () => {
|
|
2235
|
-
} } : new FinalizationRegistry((
|
|
2235
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawrayintersection_free(E >>> 0, 1));
|
|
2236
2236
|
class yI {
|
|
2237
2237
|
static __wrap(A) {
|
|
2238
2238
|
A >>>= 0;
|
|
@@ -2264,7 +2264,7 @@ class yI {
|
|
|
2264
2264
|
}
|
|
2265
2265
|
const OI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2266
2266
|
}, unregister: () => {
|
|
2267
|
-
} } : new FinalizationRegistry((
|
|
2267
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawrigidbodyset_free(E >>> 0, 1));
|
|
2268
2268
|
class Z {
|
|
2269
2269
|
static __wrap(A) {
|
|
2270
2270
|
A >>>= 0;
|
|
@@ -2495,8 +2495,8 @@ class Z {
|
|
|
2495
2495
|
const A = Q.rawrigidbodyset_new();
|
|
2496
2496
|
return this.__wbg_ptr = A >>> 0, OI.register(this, this.__wbg_ptr, this), this;
|
|
2497
2497
|
}
|
|
2498
|
-
createRigidBody(A, I, g, C, B,
|
|
2499
|
-
return h(I, N), h(g, l), h(D, N), h(o, N), Q.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B,
|
|
2498
|
+
createRigidBody(A, I, g, C, B, i, D, o, w, K, s, k, a, R, J, F, M, c, p, j, _, X) {
|
|
2499
|
+
return h(I, N), h(g, l), h(D, N), h(o, N), Q.rawrigidbodyset_createRigidBody(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C, B, i, D.__wbg_ptr, o.__wbg_ptr, w, K, s, k, a, R, J, F, M, c, p, j, _, X);
|
|
2500
2500
|
}
|
|
2501
2501
|
remove(A, I, g, C, B) {
|
|
2502
2502
|
h(I, SA), h(g, W), h(C, sA), h(B, NA), Q.rawrigidbodyset_remove(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr);
|
|
@@ -2520,7 +2520,7 @@ class Z {
|
|
|
2520
2520
|
}
|
|
2521
2521
|
const hC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2522
2522
|
}, unregister: () => {
|
|
2523
|
-
} } : new FinalizationRegistry((
|
|
2523
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawrotation_free(E >>> 0, 1));
|
|
2524
2524
|
class l {
|
|
2525
2525
|
static __wrap(A) {
|
|
2526
2526
|
A >>>= 0;
|
|
@@ -2555,7 +2555,7 @@ class l {
|
|
|
2555
2555
|
}
|
|
2556
2556
|
const KC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2557
2557
|
}, unregister: () => {
|
|
2558
|
-
} } : new FinalizationRegistry((
|
|
2558
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawserializationpipeline_free(E >>> 0, 1));
|
|
2559
2559
|
class bQ {
|
|
2560
2560
|
__destroy_into_raw() {
|
|
2561
2561
|
const A = this.__wbg_ptr;
|
|
@@ -2569,8 +2569,8 @@ class bQ {
|
|
|
2569
2569
|
const A = Q.rawccdsolver_new();
|
|
2570
2570
|
return this.__wbg_ptr = A >>> 0, KC.register(this, this.__wbg_ptr, this), this;
|
|
2571
2571
|
}
|
|
2572
|
-
serializeAll(A, I, g, C, B,
|
|
2573
|
-
return h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(
|
|
2572
|
+
serializeAll(A, I, g, C, B, i, D, o, w) {
|
|
2573
|
+
return h(A, N), h(I, LA), h(g, SA), h(C, JA), h(B, u), h(i, Z), h(D, W), h(o, sA), h(w, NA), DI(Q.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr));
|
|
2574
2574
|
}
|
|
2575
2575
|
deserializeAll(A) {
|
|
2576
2576
|
const I = Q.rawserializationpipeline_deserializeAll(this.__wbg_ptr, d(A));
|
|
@@ -2579,7 +2579,7 @@ class bQ {
|
|
|
2579
2579
|
}
|
|
2580
2580
|
const sC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2581
2581
|
}, unregister: () => {
|
|
2582
|
-
} } : new FinalizationRegistry((
|
|
2582
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawshape_free(E >>> 0, 1));
|
|
2583
2583
|
class t {
|
|
2584
2584
|
static __wrap(A) {
|
|
2585
2585
|
A >>>= 0;
|
|
@@ -2626,11 +2626,11 @@ class t {
|
|
|
2626
2626
|
return t.__wrap(B);
|
|
2627
2627
|
}
|
|
2628
2628
|
static polyline(A, I) {
|
|
2629
|
-
const g = FA(A, Q.__wbindgen_export_2), C = BA, B = lI(I, Q.__wbindgen_export_2),
|
|
2629
|
+
const g = FA(A, Q.__wbindgen_export_2), C = BA, B = lI(I, Q.__wbindgen_export_2), i = BA, D = Q.rawshape_polyline(g, C, B, i);
|
|
2630
2630
|
return t.__wrap(D);
|
|
2631
2631
|
}
|
|
2632
2632
|
static trimesh(A, I, g) {
|
|
2633
|
-
const C = FA(A, Q.__wbindgen_export_2), B = BA,
|
|
2633
|
+
const C = FA(A, Q.__wbindgen_export_2), B = BA, i = lI(I, Q.__wbindgen_export_2), D = BA, o = Q.rawshape_trimesh(C, B, i, D, g);
|
|
2634
2634
|
return o === 0 ? void 0 : t.__wrap(o);
|
|
2635
2635
|
}
|
|
2636
2636
|
static heightfield(A, I) {
|
|
@@ -2670,18 +2670,18 @@ class t {
|
|
|
2670
2670
|
const g = FA(A, Q.__wbindgen_export_2), C = BA, B = Q.rawshape_roundConvexPolyline(g, C, I);
|
|
2671
2671
|
return B === 0 ? void 0 : t.__wrap(B);
|
|
2672
2672
|
}
|
|
2673
|
-
castShape(A, I, g, C, B,
|
|
2674
|
-
h(A, N), h(I, l), h(g, N), h(C, t), h(B, N), h(
|
|
2675
|
-
const s = Q.rawshape_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr,
|
|
2673
|
+
castShape(A, I, g, C, B, i, D, o, w, K) {
|
|
2674
|
+
h(A, N), h(I, l), h(g, N), h(C, t), h(B, N), h(i, l), h(D, N);
|
|
2675
|
+
const s = Q.rawshape_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i.__wbg_ptr, D.__wbg_ptr, o, w, K);
|
|
2676
2676
|
return s === 0 ? void 0 : FI.__wrap(s);
|
|
2677
2677
|
}
|
|
2678
2678
|
intersectsShape(A, I, g, C, B) {
|
|
2679
2679
|
return h(A, N), h(I, l), h(g, t), h(C, N), h(B, l), Q.rawshape_intersectsShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr) !== 0;
|
|
2680
2680
|
}
|
|
2681
|
-
contactShape(A, I, g, C, B,
|
|
2681
|
+
contactShape(A, I, g, C, B, i) {
|
|
2682
2682
|
h(A, N), h(I, l), h(g, t), h(C, N), h(B, l);
|
|
2683
|
-
const D = Q.rawshape_contactShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr,
|
|
2684
|
-
return D === 0 ? void 0 :
|
|
2683
|
+
const D = Q.rawshape_contactShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B.__wbg_ptr, i);
|
|
2684
|
+
return D === 0 ? void 0 : VA.__wrap(D);
|
|
2685
2685
|
}
|
|
2686
2686
|
containsPoint(A, I, g) {
|
|
2687
2687
|
return h(A, N), h(I, l), h(g, N), Q.rawshape_containsPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr) !== 0;
|
|
@@ -2694,18 +2694,18 @@ class t {
|
|
|
2694
2694
|
intersectsRay(A, I, g, C, B) {
|
|
2695
2695
|
return h(A, N), h(I, l), h(g, N), h(C, N), Q.rawshape_intersectsRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B) !== 0;
|
|
2696
2696
|
}
|
|
2697
|
-
castRay(A, I, g, C, B,
|
|
2698
|
-
return h(A, N), h(I, l), h(g, N), h(C, N), Q.rawshape_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B,
|
|
2697
|
+
castRay(A, I, g, C, B, i) {
|
|
2698
|
+
return h(A, N), h(I, l), h(g, N), h(C, N), Q.rawshape_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i);
|
|
2699
2699
|
}
|
|
2700
|
-
castRayAndGetNormal(A, I, g, C, B,
|
|
2700
|
+
castRayAndGetNormal(A, I, g, C, B, i) {
|
|
2701
2701
|
h(A, N), h(I, l), h(g, N), h(C, N);
|
|
2702
|
-
const D = Q.rawshape_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B,
|
|
2702
|
+
const D = Q.rawshape_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, B, i);
|
|
2703
2703
|
return D === 0 ? void 0 : yI.__wrap(D);
|
|
2704
2704
|
}
|
|
2705
2705
|
}
|
|
2706
2706
|
const SC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2707
2707
|
}, unregister: () => {
|
|
2708
|
-
} } : new FinalizationRegistry((
|
|
2708
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawshapecasthit_free(E >>> 0, 1));
|
|
2709
2709
|
class FI {
|
|
2710
2710
|
static __wrap(A) {
|
|
2711
2711
|
A >>>= 0;
|
|
@@ -2742,11 +2742,11 @@ class FI {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
const NC = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2744
2744
|
}, unregister: () => {
|
|
2745
|
-
} } : new FinalizationRegistry((
|
|
2746
|
-
class
|
|
2745
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawshapecontact_free(E >>> 0, 1));
|
|
2746
|
+
class VA {
|
|
2747
2747
|
static __wrap(A) {
|
|
2748
2748
|
A >>>= 0;
|
|
2749
|
-
const I = Object.create(
|
|
2749
|
+
const I = Object.create(VA.prototype);
|
|
2750
2750
|
return I.__wbg_ptr = A, NC.register(I, I.__wbg_ptr, I), I;
|
|
2751
2751
|
}
|
|
2752
2752
|
__destroy_into_raw() {
|
|
@@ -2779,7 +2779,7 @@ class uA {
|
|
|
2779
2779
|
}
|
|
2780
2780
|
const jI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
2781
2781
|
}, unregister: () => {
|
|
2782
|
-
} } : new FinalizationRegistry((
|
|
2782
|
+
} } : new FinalizationRegistry((E) => Q.__wbg_rawvector_free(E >>> 0, 1));
|
|
2783
2783
|
class N {
|
|
2784
2784
|
static __wrap(A) {
|
|
2785
2785
|
A >>>= 0;
|
|
@@ -2823,30 +2823,30 @@ class N {
|
|
|
2823
2823
|
return N.__wrap(A);
|
|
2824
2824
|
}
|
|
2825
2825
|
}
|
|
2826
|
-
async function RC(
|
|
2826
|
+
async function RC(E) {
|
|
2827
2827
|
if (Q !== void 0) return Q;
|
|
2828
|
-
|
|
2828
|
+
E !== void 0 && (Object.getPrototypeOf(E) === Object.prototype ? { module_or_path: E } = E : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), E === void 0 && (E = new URL("rapier_wasm2d_bg.wasm", "<deleted>"));
|
|
2829
2829
|
const A = function() {
|
|
2830
2830
|
const C = { wbg: {} };
|
|
2831
|
-
return C.wbg.__wbg_bind_c8359b1cba058168 = function(B,
|
|
2832
|
-
return d(q(B).bind(q(
|
|
2831
|
+
return C.wbg.__wbg_bind_c8359b1cba058168 = function(B, i, D, o) {
|
|
2832
|
+
return d(q(B).bind(q(i), q(D), q(o)));
|
|
2833
2833
|
}, C.wbg.__wbg_buffer_609cc3eee51ed158 = function(B) {
|
|
2834
2834
|
return d(q(B).buffer);
|
|
2835
2835
|
}, C.wbg.__wbg_call_672a4d21634d4a24 = function() {
|
|
2836
|
-
return iI(function(B,
|
|
2837
|
-
return d(q(B).call(q(
|
|
2836
|
+
return iI(function(B, i) {
|
|
2837
|
+
return d(q(B).call(q(i)));
|
|
2838
2838
|
}, arguments);
|
|
2839
2839
|
}, C.wbg.__wbg_call_7cccdd69e0791ae2 = function() {
|
|
2840
|
-
return iI(function(B,
|
|
2841
|
-
return d(q(B).call(q(
|
|
2840
|
+
return iI(function(B, i, D) {
|
|
2841
|
+
return d(q(B).call(q(i), q(D)));
|
|
2842
2842
|
}, arguments);
|
|
2843
2843
|
}, C.wbg.__wbg_call_833bed5770ea2041 = function() {
|
|
2844
|
-
return iI(function(B,
|
|
2845
|
-
return d(q(B).call(q(
|
|
2844
|
+
return iI(function(B, i, D, o) {
|
|
2845
|
+
return d(q(B).call(q(i), q(D), q(o)));
|
|
2846
2846
|
}, arguments);
|
|
2847
2847
|
}, C.wbg.__wbg_call_b8adc8b1d0a0d8eb = function() {
|
|
2848
|
-
return iI(function(B,
|
|
2849
|
-
return d(q(B).call(q(
|
|
2848
|
+
return iI(function(B, i, D, o, w) {
|
|
2849
|
+
return d(q(B).call(q(i), q(D), q(o), q(w)));
|
|
2850
2850
|
}, arguments);
|
|
2851
2851
|
}, C.wbg.__wbg_length_3b4f022188ae8db6 = function(B) {
|
|
2852
2852
|
return q(B).length;
|
|
@@ -2854,12 +2854,12 @@ async function RC(i) {
|
|
|
2854
2854
|
return q(B).length;
|
|
2855
2855
|
}, C.wbg.__wbg_new_a12002a7f91c75be = function(B) {
|
|
2856
2856
|
return d(new Uint8Array(q(B)));
|
|
2857
|
-
}, C.wbg.__wbg_newnoargs_105ed471475aaf50 = function(B,
|
|
2858
|
-
return d(new Function(XI(B,
|
|
2859
|
-
}, C.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(B,
|
|
2860
|
-
return d(new Uint8Array(q(B),
|
|
2861
|
-
}, C.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(B,
|
|
2862
|
-
return d(new Float32Array(q(B),
|
|
2857
|
+
}, C.wbg.__wbg_newnoargs_105ed471475aaf50 = function(B, i) {
|
|
2858
|
+
return d(new Function(XI(B, i)));
|
|
2859
|
+
}, C.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(B, i, D) {
|
|
2860
|
+
return d(new Uint8Array(q(B), i >>> 0, D >>> 0));
|
|
2861
|
+
}, C.wbg.__wbg_newwithbyteoffsetandlength_e6b7e69acd4c7354 = function(B, i, D) {
|
|
2862
|
+
return d(new Float32Array(q(B), i >>> 0, D >>> 0));
|
|
2863
2863
|
}, C.wbg.__wbg_newwithlength_5a5efe313cfd59f1 = function(B) {
|
|
2864
2864
|
return d(new Float32Array(B >>> 0));
|
|
2865
2865
|
}, C.wbg.__wbg_now_2c95c9de01293173 = function(B) {
|
|
@@ -2870,10 +2870,10 @@ async function RC(i) {
|
|
|
2870
2870
|
return d(gg.__wrap(B));
|
|
2871
2871
|
}, C.wbg.__wbg_rawraycolliderintersection_new = function(B) {
|
|
2872
2872
|
return d(aI.__wrap(B));
|
|
2873
|
-
}, C.wbg.__wbg_set_10bad9bee0e9c58b = function(B,
|
|
2874
|
-
q(B).set(q(
|
|
2875
|
-
}, C.wbg.__wbg_set_65595bdd868b3009 = function(B,
|
|
2876
|
-
q(B).set(q(
|
|
2873
|
+
}, C.wbg.__wbg_set_10bad9bee0e9c58b = function(B, i, D) {
|
|
2874
|
+
q(B).set(q(i), D >>> 0);
|
|
2875
|
+
}, C.wbg.__wbg_set_65595bdd868b3009 = function(B, i, D) {
|
|
2876
|
+
q(B).set(q(i), D >>> 0);
|
|
2877
2877
|
}, C.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
|
|
2878
2878
|
const B = typeof global > "u" ? null : global;
|
|
2879
2879
|
return Y(B) ? 0 : d(B);
|
|
@@ -2887,16 +2887,16 @@ async function RC(i) {
|
|
|
2887
2887
|
const B = typeof window > "u" ? null : window;
|
|
2888
2888
|
return Y(B) ? 0 : d(B);
|
|
2889
2889
|
}, C.wbg.__wbindgen_boolean_get = function(B) {
|
|
2890
|
-
const
|
|
2891
|
-
return typeof
|
|
2890
|
+
const i = q(B);
|
|
2891
|
+
return typeof i == "boolean" ? i ? 1 : 0 : 2;
|
|
2892
2892
|
}, C.wbg.__wbindgen_is_function = function(B) {
|
|
2893
2893
|
return typeof q(B) == "function";
|
|
2894
2894
|
}, C.wbg.__wbindgen_is_undefined = function(B) {
|
|
2895
2895
|
return q(B) === void 0;
|
|
2896
2896
|
}, C.wbg.__wbindgen_memory = function() {
|
|
2897
2897
|
return d(Q.memory);
|
|
2898
|
-
}, C.wbg.__wbindgen_number_get = function(B,
|
|
2899
|
-
const D = q(
|
|
2898
|
+
}, C.wbg.__wbindgen_number_get = function(B, i) {
|
|
2899
|
+
const D = q(i), o = typeof D == "number" ? D : void 0;
|
|
2900
2900
|
P().setFloat64(B + 8, Y(o) ? 0 : o, !0), P().setInt32(B + 0, !Y(o), !0);
|
|
2901
2901
|
}, C.wbg.__wbindgen_number_new = function(B) {
|
|
2902
2902
|
return d(B);
|
|
@@ -2904,11 +2904,11 @@ async function RC(i) {
|
|
|
2904
2904
|
return d(q(B));
|
|
2905
2905
|
}, C.wbg.__wbindgen_object_drop_ref = function(B) {
|
|
2906
2906
|
DI(B);
|
|
2907
|
-
}, C.wbg.__wbindgen_throw = function(B,
|
|
2908
|
-
throw new Error(XI(B,
|
|
2907
|
+
}, C.wbg.__wbindgen_throw = function(B, i) {
|
|
2908
|
+
throw new Error(XI(B, i));
|
|
2909
2909
|
}, C;
|
|
2910
2910
|
}();
|
|
2911
|
-
(typeof
|
|
2911
|
+
(typeof E == "string" || typeof Request == "function" && E instanceof Request || typeof URL == "function" && E instanceof URL) && (E = fetch(E));
|
|
2912
2912
|
const { instance: I, module: g } = await async function(C, B) {
|
|
2913
2913
|
if (typeof Response == "function" && C instanceof Response) {
|
|
2914
2914
|
if (typeof WebAssembly.instantiateStreaming == "function") try {
|
|
@@ -2917,16 +2917,16 @@ async function RC(i) {
|
|
|
2917
2917
|
if (C.headers.get("Content-Type") == "application/wasm") throw D;
|
|
2918
2918
|
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", D);
|
|
2919
2919
|
}
|
|
2920
|
-
const
|
|
2921
|
-
return await WebAssembly.instantiate(
|
|
2920
|
+
const i = await C.arrayBuffer();
|
|
2921
|
+
return await WebAssembly.instantiate(i, B);
|
|
2922
2922
|
}
|
|
2923
2923
|
{
|
|
2924
|
-
const
|
|
2925
|
-
return
|
|
2924
|
+
const i = await WebAssembly.instantiate(C, B);
|
|
2925
|
+
return i instanceof WebAssembly.Instance ? { instance: i, module: C } : i;
|
|
2926
2926
|
}
|
|
2927
|
-
}(await
|
|
2927
|
+
}(await E, A);
|
|
2928
2928
|
return function(C, B) {
|
|
2929
|
-
return Q = C.exports, RC.__wbindgen_wasm_module = B, cA = null,
|
|
2929
|
+
return Q = C.exports, RC.__wbindgen_wasm_module = B, cA = null, mA = null, XA = null, vA = null, xA = null, Q;
|
|
2930
2930
|
}(I, g);
|
|
2931
2931
|
}
|
|
2932
2932
|
class cC {
|
|
@@ -2966,9 +2966,9 @@ class f {
|
|
|
2966
2966
|
return l.fromAngle(A);
|
|
2967
2967
|
}
|
|
2968
2968
|
}
|
|
2969
|
-
var GA, EA, vI, uI,
|
|
2970
|
-
(function(
|
|
2971
|
-
|
|
2969
|
+
var GA, EA, vI, uI, PA, lA, z, VI, PI, wI, GI, zI, _I, hI, tA;
|
|
2970
|
+
(function(E) {
|
|
2971
|
+
E[E.Dynamic = 0] = "Dynamic", E[E.Fixed = 1] = "Fixed", E[E.KinematicPositionBased = 2] = "KinematicPositionBased", E[E.KinematicVelocityBased = 3] = "KinematicVelocityBased";
|
|
2972
2972
|
})(GA || (GA = {}));
|
|
2973
2973
|
class $I {
|
|
2974
2974
|
constructor(A, I, g) {
|
|
@@ -3331,14 +3331,14 @@ class YC {
|
|
|
3331
3331
|
this.map.forEach((I) => I.finalizeDeserialization(A));
|
|
3332
3332
|
}
|
|
3333
3333
|
createRigidBody(A, I) {
|
|
3334
|
-
let g = S.intoRaw(I.translation), C = f.intoRaw(I.rotation), B = S.intoRaw(I.linvel),
|
|
3335
|
-
g.free(), C.free(), B.free(),
|
|
3334
|
+
let g = S.intoRaw(I.translation), C = f.intoRaw(I.rotation), B = S.intoRaw(I.linvel), i = S.intoRaw(I.centerOfMass), D = this.raw.createRigidBody(I.enabled, g, C, I.gravityScale, I.mass, I.massOnly, i, B, I.angvel, I.principalAngularInertia, I.translationsEnabledX, I.translationsEnabledY, I.rotationsEnabled, I.linearDamping, I.angularDamping, I.status, I.canSleep, I.sleeping, I.softCcdPrediction, I.ccdEnabled, I.dominanceGroup, I.additionalSolverIterations);
|
|
3335
|
+
g.free(), C.free(), B.free(), i.free();
|
|
3336
3336
|
const o = new $I(this.raw, A, D);
|
|
3337
3337
|
return o.userData = I.userData, this.map.set(D, o), o;
|
|
3338
3338
|
}
|
|
3339
3339
|
remove(A, I, g, C, B) {
|
|
3340
|
-
for (let
|
|
3341
|
-
C.forEachJointHandleAttachedToRigidBody(A, (
|
|
3340
|
+
for (let i = 0; i < this.raw.rbNumColliders(A); i += 1) g.unmap(this.raw.rbCollider(A, i));
|
|
3341
|
+
C.forEachJointHandleAttachedToRigidBody(A, (i) => C.unmap(i)), B.forEachJointHandleAttachedToRigidBody(A, (i) => B.unmap(i)), this.raw.remove(A, I.raw, g.raw, C.raw, B.raw), this.map.delete(A);
|
|
3342
3342
|
}
|
|
3343
3343
|
len() {
|
|
3344
3344
|
return this.map.len();
|
|
@@ -3423,12 +3423,12 @@ class tC {
|
|
|
3423
3423
|
this.raw.maxCcdSubsteps = A;
|
|
3424
3424
|
}
|
|
3425
3425
|
}
|
|
3426
|
-
(function(
|
|
3427
|
-
|
|
3428
|
-
})(EA || (EA = {})), function(
|
|
3429
|
-
|
|
3430
|
-
}(vI || (vI = {})), function(
|
|
3431
|
-
|
|
3426
|
+
(function(E) {
|
|
3427
|
+
E[E.Revolute = 0] = "Revolute", E[E.Fixed = 1] = "Fixed", E[E.Prismatic = 2] = "Prismatic", E[E.Rope = 3] = "Rope", E[E.Spring = 4] = "Spring";
|
|
3428
|
+
})(EA || (EA = {})), function(E) {
|
|
3429
|
+
E[E.AccelerationBased = 0] = "AccelerationBased", E[E.ForceBased = 1] = "ForceBased";
|
|
3430
|
+
}(vI || (vI = {})), function(E) {
|
|
3431
|
+
E[E.LinX = 1] = "LinX", E[E.LinY = 2] = "LinY", E[E.LinZ = 4] = "LinZ", E[E.AngX = 8] = "AngX", E[E.AngY = 16] = "AngY", E[E.AngZ = 32] = "AngZ";
|
|
3432
3432
|
}(uI || (uI = {}));
|
|
3433
3433
|
class kA {
|
|
3434
3434
|
constructor(A, I, g) {
|
|
@@ -3536,8 +3536,8 @@ class YA {
|
|
|
3536
3536
|
return B.anchor1 = A, B.anchor2 = g, B.frame1 = I, B.frame2 = C, B.jointType = EA.Fixed, B;
|
|
3537
3537
|
}
|
|
3538
3538
|
static spring(A, I, g, C, B) {
|
|
3539
|
-
let
|
|
3540
|
-
return
|
|
3539
|
+
let i = new YA();
|
|
3540
|
+
return i.anchor1 = C, i.anchor2 = B, i.length = A, i.stiffness = I, i.damping = g, i.jointType = EA.Spring, i;
|
|
3541
3541
|
}
|
|
3542
3542
|
static rope(A, I, g) {
|
|
3543
3543
|
let C = new YA();
|
|
@@ -3552,7 +3552,7 @@ class YA {
|
|
|
3552
3552
|
return C.anchor1 = A, C.anchor2 = I, C.axis = g, C.jointType = EA.Prismatic, C;
|
|
3553
3553
|
}
|
|
3554
3554
|
intoRaw() {
|
|
3555
|
-
let A, I, g = S.intoRaw(this.anchor1), C = S.intoRaw(this.anchor2), B = !1,
|
|
3555
|
+
let A, I, g = S.intoRaw(this.anchor1), C = S.intoRaw(this.anchor2), B = !1, i = 0, D = 0;
|
|
3556
3556
|
switch (this.jointType) {
|
|
3557
3557
|
case EA.Fixed:
|
|
3558
3558
|
let o = f.intoRaw(this.frame1), w = f.intoRaw(this.frame2);
|
|
@@ -3565,7 +3565,7 @@ class YA {
|
|
|
3565
3565
|
I = CA.rope(this.length, g, C);
|
|
3566
3566
|
break;
|
|
3567
3567
|
case EA.Prismatic:
|
|
3568
|
-
A = S.intoRaw(this.axis), this.limitsEnabled && (B = !0,
|
|
3568
|
+
A = S.intoRaw(this.axis), this.limitsEnabled && (B = !0, i = this.limits[0], D = this.limits[1]), I = CA.prismatic(g, C, A, B, i, D), A.free();
|
|
3569
3569
|
break;
|
|
3570
3570
|
case EA.Revolute:
|
|
3571
3571
|
I = CA.revolute(g, C);
|
|
@@ -3586,8 +3586,8 @@ class lC {
|
|
|
3586
3586
|
this.map.forEach((I) => I.finalizeDeserialization(A));
|
|
3587
3587
|
}
|
|
3588
3588
|
createJoint(A, I, g, C, B) {
|
|
3589
|
-
const
|
|
3590
|
-
|
|
3589
|
+
const i = I.intoRaw(), D = this.raw.createJoint(i, g, C, B);
|
|
3590
|
+
i.free();
|
|
3591
3591
|
let o = kA.newTyped(this.raw, A, D);
|
|
3592
3592
|
return this.map.set(D, o), o;
|
|
3593
3593
|
}
|
|
@@ -3666,10 +3666,10 @@ class fC {
|
|
|
3666
3666
|
this.raw && this.raw.free(), this.raw = void 0, this.map && this.map.clear(), this.map = void 0;
|
|
3667
3667
|
}
|
|
3668
3668
|
createJoint(A, I, g, C) {
|
|
3669
|
-
const B = A.intoRaw(),
|
|
3669
|
+
const B = A.intoRaw(), i = this.raw.createJoint(B, I, g, C);
|
|
3670
3670
|
B.free();
|
|
3671
|
-
let D = rA.newTyped(this.raw,
|
|
3672
|
-
return this.map.set(
|
|
3671
|
+
let D = rA.newTyped(this.raw, i);
|
|
3672
|
+
return this.map.set(i, D), D;
|
|
3673
3673
|
}
|
|
3674
3674
|
remove(A, I) {
|
|
3675
3675
|
this.raw.remove(A, I), this.map.delete(A);
|
|
@@ -3696,9 +3696,9 @@ class fC {
|
|
|
3696
3696
|
return this.map.getAll();
|
|
3697
3697
|
}
|
|
3698
3698
|
}
|
|
3699
|
-
(function(
|
|
3700
|
-
|
|
3701
|
-
})(
|
|
3699
|
+
(function(E) {
|
|
3700
|
+
E[E.Average = 0] = "Average", E[E.Min = 1] = "Min", E[E.Multiply = 2] = "Multiply", E[E.Max = 3] = "Max";
|
|
3701
|
+
})(PA || (PA = {}));
|
|
3702
3702
|
class bC {
|
|
3703
3703
|
constructor(A) {
|
|
3704
3704
|
this.raw = A || new mI();
|
|
@@ -3718,8 +3718,8 @@ class TC {
|
|
|
3718
3718
|
this.raw.forEachActiveRigidBodyHandle(A);
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
3721
|
-
(function(
|
|
3722
|
-
|
|
3721
|
+
(function(E) {
|
|
3722
|
+
E[E.Vertex = 0] = "Vertex", E[E.Face = 1] = "Face", E[E.Unknown = 2] = "Unknown";
|
|
3723
3723
|
})(lA || (lA = {}));
|
|
3724
3724
|
class TQ {
|
|
3725
3725
|
constructor(A, I) {
|
|
@@ -3729,23 +3729,23 @@ class TQ {
|
|
|
3729
3729
|
return { x: this.origin.x + this.dir.x * A, y: this.origin.y + this.dir.y * A };
|
|
3730
3730
|
}
|
|
3731
3731
|
}
|
|
3732
|
-
class
|
|
3732
|
+
class $A {
|
|
3733
3733
|
constructor(A, I, g, C) {
|
|
3734
3734
|
this.featureType = lA.Unknown, this.featureId = void 0, this.timeOfImpact = A, this.normal = I, C !== void 0 && (this.featureId = C), g !== void 0 && (this.featureType = g);
|
|
3735
3735
|
}
|
|
3736
3736
|
static fromRaw(A) {
|
|
3737
3737
|
if (!A) return null;
|
|
3738
|
-
const I = new
|
|
3738
|
+
const I = new $A(A.time_of_impact(), S.fromRaw(A.normal()), A.featureType(), A.featureId());
|
|
3739
3739
|
return A.free(), I;
|
|
3740
3740
|
}
|
|
3741
3741
|
}
|
|
3742
|
-
class
|
|
3742
|
+
class zA {
|
|
3743
3743
|
constructor(A, I, g, C, B) {
|
|
3744
3744
|
this.featureType = lA.Unknown, this.featureId = void 0, this.collider = A, this.timeOfImpact = I, this.normal = g, B !== void 0 && (this.featureId = B), C !== void 0 && (this.featureType = C);
|
|
3745
3745
|
}
|
|
3746
3746
|
static fromRaw(A, I) {
|
|
3747
3747
|
if (!I) return null;
|
|
3748
|
-
const g = new
|
|
3748
|
+
const g = new zA(A.get(I.colliderHandle()), I.time_of_impact(), S.fromRaw(I.normal()), I.featureType(), I.featureId());
|
|
3749
3749
|
return I.free(), g;
|
|
3750
3750
|
}
|
|
3751
3751
|
}
|
|
@@ -3759,23 +3759,23 @@ class JI {
|
|
|
3759
3759
|
return I.free(), g;
|
|
3760
3760
|
}
|
|
3761
3761
|
}
|
|
3762
|
-
class
|
|
3762
|
+
class AI {
|
|
3763
3763
|
constructor(A, I) {
|
|
3764
3764
|
this.point = A, this.isInside = I;
|
|
3765
3765
|
}
|
|
3766
3766
|
static fromRaw(A) {
|
|
3767
3767
|
if (!A) return null;
|
|
3768
|
-
const I = new
|
|
3768
|
+
const I = new AI(S.fromRaw(A.point()), A.isInside());
|
|
3769
3769
|
return A.free(), I;
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
|
-
class
|
|
3772
|
+
class _A {
|
|
3773
3773
|
constructor(A, I, g, C, B) {
|
|
3774
3774
|
this.featureType = lA.Unknown, this.featureId = void 0, this.collider = A, this.point = I, this.isInside = g, B !== void 0 && (this.featureId = B), C !== void 0 && (this.featureType = C);
|
|
3775
3775
|
}
|
|
3776
3776
|
static fromRaw(A, I) {
|
|
3777
3777
|
if (!I) return null;
|
|
3778
|
-
const g = new
|
|
3778
|
+
const g = new _A(A.get(I.colliderHandle()), S.fromRaw(I.point()), I.isInside(), I.featureType(), I.featureId());
|
|
3779
3779
|
return I.free(), g;
|
|
3780
3780
|
}
|
|
3781
3781
|
}
|
|
@@ -3789,13 +3789,13 @@ class pA {
|
|
|
3789
3789
|
return I.free(), g;
|
|
3790
3790
|
}
|
|
3791
3791
|
}
|
|
3792
|
-
class
|
|
3793
|
-
constructor(A, I, g, C, B,
|
|
3794
|
-
super(I, g, C, B,
|
|
3792
|
+
class II extends pA {
|
|
3793
|
+
constructor(A, I, g, C, B, i) {
|
|
3794
|
+
super(I, g, C, B, i), this.collider = A;
|
|
3795
3795
|
}
|
|
3796
3796
|
static fromRaw(A, I) {
|
|
3797
3797
|
if (!I) return null;
|
|
3798
|
-
const g = new
|
|
3798
|
+
const g = new II(A.get(I.colliderHandle()), I.time_of_impact(), S.fromRaw(I.witness1()), S.fromRaw(I.witness2()), S.fromRaw(I.normal1()), S.fromRaw(I.normal2()));
|
|
3799
3799
|
return I.free(), g;
|
|
3800
3800
|
}
|
|
3801
3801
|
}
|
|
@@ -3806,45 +3806,45 @@ class ZC {
|
|
|
3806
3806
|
free() {
|
|
3807
3807
|
this.raw && this.raw.free(), this.raw = void 0;
|
|
3808
3808
|
}
|
|
3809
|
-
castRay(A, I, g, C, B,
|
|
3810
|
-
let k = S.intoRaw(C.origin), a = S.intoRaw(C.dir), R = JI.fromRaw(g, this.raw.castRay(A.raw, I.raw, g.raw, k, a, B,
|
|
3809
|
+
castRay(A, I, g, C, B, i, D, o, w, K, s) {
|
|
3810
|
+
let k = S.intoRaw(C.origin), a = S.intoRaw(C.dir), R = JI.fromRaw(g, this.raw.castRay(A.raw, I.raw, g.raw, k, a, B, i, D, o, w, K, s));
|
|
3811
3811
|
return k.free(), a.free(), R;
|
|
3812
3812
|
}
|
|
3813
|
-
castRayAndGetNormal(A, I, g, C, B,
|
|
3814
|
-
let k = S.intoRaw(C.origin), a = S.intoRaw(C.dir), R =
|
|
3813
|
+
castRayAndGetNormal(A, I, g, C, B, i, D, o, w, K, s) {
|
|
3814
|
+
let k = S.intoRaw(C.origin), a = S.intoRaw(C.dir), R = zA.fromRaw(g, this.raw.castRayAndGetNormal(A.raw, I.raw, g.raw, k, a, B, i, D, o, w, K, s));
|
|
3815
3815
|
return k.free(), a.free(), R;
|
|
3816
3816
|
}
|
|
3817
|
-
intersectionsWithRay(A, I, g, C, B,
|
|
3817
|
+
intersectionsWithRay(A, I, g, C, B, i, D, o, w, K, s, k) {
|
|
3818
3818
|
let a = S.intoRaw(C.origin), R = S.intoRaw(C.dir);
|
|
3819
|
-
this.raw.intersectionsWithRay(A.raw, I.raw, g.raw, a, R, B,
|
|
3819
|
+
this.raw.intersectionsWithRay(A.raw, I.raw, g.raw, a, R, B, i, (J) => D(zA.fromRaw(g, J)), o, w, K, s, k), a.free(), R.free();
|
|
3820
3820
|
}
|
|
3821
|
-
intersectionWithShape(A, I, g, C, B,
|
|
3822
|
-
let k = S.intoRaw(C), a = f.intoRaw(B), R =
|
|
3821
|
+
intersectionWithShape(A, I, g, C, B, i, D, o, w, K, s) {
|
|
3822
|
+
let k = S.intoRaw(C), a = f.intoRaw(B), R = i.intoRaw(), J = this.raw.intersectionWithShape(A.raw, I.raw, g.raw, k, a, R, D, o, w, K, s);
|
|
3823
3823
|
return k.free(), a.free(), R.free(), J;
|
|
3824
3824
|
}
|
|
3825
|
-
projectPoint(A, I, g, C, B,
|
|
3826
|
-
let s = S.intoRaw(C), k =
|
|
3825
|
+
projectPoint(A, I, g, C, B, i, D, o, w, K) {
|
|
3826
|
+
let s = S.intoRaw(C), k = _A.fromRaw(g, this.raw.projectPoint(A.raw, I.raw, g.raw, s, B, i, D, o, w, K));
|
|
3827
3827
|
return s.free(), k;
|
|
3828
3828
|
}
|
|
3829
|
-
projectPointAndGetFeature(A, I, g, C, B,
|
|
3830
|
-
let K = S.intoRaw(C), s =
|
|
3829
|
+
projectPointAndGetFeature(A, I, g, C, B, i, D, o, w) {
|
|
3830
|
+
let K = S.intoRaw(C), s = _A.fromRaw(g, this.raw.projectPointAndGetFeature(A.raw, I.raw, g.raw, K, B, i, D, o, w));
|
|
3831
3831
|
return K.free(), s;
|
|
3832
3832
|
}
|
|
3833
|
-
intersectionsWithPoint(A, I, g, C, B,
|
|
3833
|
+
intersectionsWithPoint(A, I, g, C, B, i, D, o, w, K) {
|
|
3834
3834
|
let s = S.intoRaw(C);
|
|
3835
|
-
this.raw.intersectionsWithPoint(A.raw, I.raw, g.raw, s, B,
|
|
3835
|
+
this.raw.intersectionsWithPoint(A.raw, I.raw, g.raw, s, B, i, D, o, w, K), s.free();
|
|
3836
3836
|
}
|
|
3837
|
-
castShape(A, I, g, C, B,
|
|
3838
|
-
let
|
|
3839
|
-
return
|
|
3837
|
+
castShape(A, I, g, C, B, i, D, o, w, K, s, k, a, R, J) {
|
|
3838
|
+
let F = S.intoRaw(C), M = f.intoRaw(B), c = S.intoRaw(i), p = D.intoRaw(), j = II.fromRaw(g, this.raw.castShape(A.raw, I.raw, g.raw, F, M, c, p, o, w, K, s, k, a, R, J));
|
|
3839
|
+
return F.free(), M.free(), c.free(), p.free(), j;
|
|
3840
3840
|
}
|
|
3841
|
-
intersectionsWithShape(A, I, g, C, B,
|
|
3842
|
-
let a = S.intoRaw(C), R = f.intoRaw(B), J =
|
|
3841
|
+
intersectionsWithShape(A, I, g, C, B, i, D, o, w, K, s, k) {
|
|
3842
|
+
let a = S.intoRaw(C), R = f.intoRaw(B), J = i.intoRaw();
|
|
3843
3843
|
this.raw.intersectionsWithShape(A.raw, I.raw, g.raw, a, R, J, D, o, w, K, s, k), a.free(), R.free(), J.free();
|
|
3844
3844
|
}
|
|
3845
|
-
collidersWithAabbIntersectingAabb(A, I, g, C, B,
|
|
3845
|
+
collidersWithAabbIntersectingAabb(A, I, g, C, B, i) {
|
|
3846
3846
|
let D = S.intoRaw(C), o = S.intoRaw(B);
|
|
3847
|
-
this.raw.collidersWithAabbIntersectingAabb(A.raw, I.raw, g.raw, D, o,
|
|
3847
|
+
this.raw.collidersWithAabbIntersectingAabb(A.raw, I.raw, g.raw, D, o, i), D.free(), o.free();
|
|
3848
3848
|
}
|
|
3849
3849
|
}
|
|
3850
3850
|
class OC {
|
|
@@ -3864,8 +3864,8 @@ class OC {
|
|
|
3864
3864
|
const C = this.raw.contact_pair(A, I);
|
|
3865
3865
|
if (C) {
|
|
3866
3866
|
const B = C.collider1() != A;
|
|
3867
|
-
let
|
|
3868
|
-
for (
|
|
3867
|
+
let i;
|
|
3868
|
+
for (i = 0; i < C.numContactManifolds(); ++i) this.tempManifold.raw = C.contactManifold(i), this.tempManifold.raw && g(this.tempManifold, B), this.tempManifold.free();
|
|
3869
3869
|
C.free();
|
|
3870
3870
|
}
|
|
3871
3871
|
}
|
|
@@ -3951,7 +3951,7 @@ class nA {
|
|
|
3951
3951
|
class $ {
|
|
3952
3952
|
static fromRaw(A, I) {
|
|
3953
3953
|
const g = A.coShapeType(I);
|
|
3954
|
-
let C, B,
|
|
3954
|
+
let C, B, i, D, o, w, K;
|
|
3955
3955
|
switch (g) {
|
|
3956
3956
|
case gA.Ball:
|
|
3957
3957
|
return new og(A.coRadius(I));
|
|
@@ -3962,70 +3962,70 @@ class $ {
|
|
|
3962
3962
|
case gA.Capsule:
|
|
3963
3963
|
return o = A.coHalfHeight(I), w = A.coRadius(I), new Kg(o, w);
|
|
3964
3964
|
case gA.Segment:
|
|
3965
|
-
return
|
|
3965
|
+
return i = A.coVertices(I), new sg(S.new(i[0], i[1]), S.new(i[2], i[3]));
|
|
3966
3966
|
case gA.Polyline:
|
|
3967
|
-
return
|
|
3967
|
+
return i = A.coVertices(I), D = A.coIndices(I), new kg(i, D);
|
|
3968
3968
|
case gA.Triangle:
|
|
3969
|
-
return
|
|
3969
|
+
return i = A.coVertices(I), new Sg(S.new(i[0], i[1]), S.new(i[2], i[3]), S.new(i[4], i[5]));
|
|
3970
3970
|
case gA.RoundTriangle:
|
|
3971
|
-
return
|
|
3971
|
+
return i = A.coVertices(I), B = A.coRoundRadius(I), new Ng(S.new(i[0], i[1]), S.new(i[2], i[3]), S.new(i[4], i[5]), B);
|
|
3972
3972
|
case gA.HalfSpace:
|
|
3973
3973
|
return K = S.fromRaw(A.coHalfspaceNormal(I)), new wg(K);
|
|
3974
3974
|
case gA.Voxels:
|
|
3975
3975
|
const s = A.coVoxelData(I), k = A.coVoxelSize(I);
|
|
3976
3976
|
return new ag(s, k);
|
|
3977
3977
|
case gA.TriMesh:
|
|
3978
|
-
|
|
3978
|
+
i = A.coVertices(I), D = A.coIndices(I);
|
|
3979
3979
|
const a = A.coTriMeshFlags(I);
|
|
3980
|
-
return new yg(
|
|
3980
|
+
return new yg(i, D, a);
|
|
3981
3981
|
case gA.HeightField:
|
|
3982
3982
|
const R = A.coHeightfieldScale(I), J = A.coHeightfieldHeights(I);
|
|
3983
3983
|
return new Fg(J, R);
|
|
3984
3984
|
case gA.ConvexPolygon:
|
|
3985
|
-
return
|
|
3985
|
+
return i = A.coVertices(I), new KI(i, !1);
|
|
3986
3986
|
case gA.RoundConvexPolygon:
|
|
3987
|
-
return
|
|
3987
|
+
return i = A.coVertices(I), B = A.coRoundRadius(I), new sI(i, B, !1);
|
|
3988
3988
|
default:
|
|
3989
3989
|
throw new Error("unknown shape type: " + g);
|
|
3990
3990
|
}
|
|
3991
3991
|
}
|
|
3992
|
-
castShape(A, I, g, C, B,
|
|
3993
|
-
let s = S.intoRaw(A), k = f.intoRaw(I), a = S.intoRaw(g), R = S.intoRaw(B), J = f.intoRaw(
|
|
3994
|
-
return s.free(), k.free(), a.free(), R.free(), J.free(),
|
|
3992
|
+
castShape(A, I, g, C, B, i, D, o, w, K) {
|
|
3993
|
+
let s = S.intoRaw(A), k = f.intoRaw(I), a = S.intoRaw(g), R = S.intoRaw(B), J = f.intoRaw(i), F = S.intoRaw(D), M = this.intoRaw(), c = C.intoRaw(), p = pA.fromRaw(null, M.castShape(s, k, a, c, R, J, F, o, w, K));
|
|
3994
|
+
return s.free(), k.free(), a.free(), R.free(), J.free(), F.free(), M.free(), c.free(), p;
|
|
3995
3995
|
}
|
|
3996
3996
|
intersectsShape(A, I, g, C, B) {
|
|
3997
|
-
let
|
|
3998
|
-
return
|
|
3997
|
+
let i = S.intoRaw(A), D = f.intoRaw(I), o = S.intoRaw(C), w = f.intoRaw(B), K = this.intoRaw(), s = g.intoRaw(), k = K.intersectsShape(i, D, s, o, w);
|
|
3998
|
+
return i.free(), D.free(), o.free(), w.free(), K.free(), s.free(), k;
|
|
3999
3999
|
}
|
|
4000
|
-
contactShape(A, I, g, C, B,
|
|
4001
|
-
let D = S.intoRaw(A), o = f.intoRaw(I), w = S.intoRaw(C), K = f.intoRaw(B), s = this.intoRaw(), k = g.intoRaw(), a = nA.fromRaw(s.contactShape(D, o, k, w, K,
|
|
4000
|
+
contactShape(A, I, g, C, B, i) {
|
|
4001
|
+
let D = S.intoRaw(A), o = f.intoRaw(I), w = S.intoRaw(C), K = f.intoRaw(B), s = this.intoRaw(), k = g.intoRaw(), a = nA.fromRaw(s.contactShape(D, o, k, w, K, i));
|
|
4002
4002
|
return D.free(), o.free(), w.free(), K.free(), s.free(), k.free(), a;
|
|
4003
4003
|
}
|
|
4004
4004
|
containsPoint(A, I, g) {
|
|
4005
|
-
let C = S.intoRaw(A), B = f.intoRaw(I),
|
|
4006
|
-
return C.free(), B.free(),
|
|
4005
|
+
let C = S.intoRaw(A), B = f.intoRaw(I), i = S.intoRaw(g), D = this.intoRaw(), o = D.containsPoint(C, B, i);
|
|
4006
|
+
return C.free(), B.free(), i.free(), D.free(), o;
|
|
4007
4007
|
}
|
|
4008
4008
|
projectPoint(A, I, g, C) {
|
|
4009
|
-
let B = S.intoRaw(A),
|
|
4010
|
-
return B.free(),
|
|
4009
|
+
let B = S.intoRaw(A), i = f.intoRaw(I), D = S.intoRaw(g), o = this.intoRaw(), w = AI.fromRaw(o.projectPoint(B, i, D, C));
|
|
4010
|
+
return B.free(), i.free(), D.free(), o.free(), w;
|
|
4011
4011
|
}
|
|
4012
4012
|
intersectsRay(A, I, g, C) {
|
|
4013
|
-
let B = S.intoRaw(I),
|
|
4014
|
-
return B.free(),
|
|
4013
|
+
let B = S.intoRaw(I), i = f.intoRaw(g), D = S.intoRaw(A.origin), o = S.intoRaw(A.dir), w = this.intoRaw(), K = w.intersectsRay(B, i, D, o, C);
|
|
4014
|
+
return B.free(), i.free(), D.free(), o.free(), w.free(), K;
|
|
4015
4015
|
}
|
|
4016
4016
|
castRay(A, I, g, C, B) {
|
|
4017
|
-
let
|
|
4018
|
-
return
|
|
4017
|
+
let i = S.intoRaw(I), D = f.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), K = this.intoRaw(), s = K.castRay(i, D, o, w, C, B);
|
|
4018
|
+
return i.free(), D.free(), o.free(), w.free(), K.free(), s;
|
|
4019
4019
|
}
|
|
4020
4020
|
castRayAndGetNormal(A, I, g, C, B) {
|
|
4021
|
-
let
|
|
4022
|
-
return
|
|
4021
|
+
let i = S.intoRaw(I), D = f.intoRaw(g), o = S.intoRaw(A.origin), w = S.intoRaw(A.dir), K = this.intoRaw(), s = $A.fromRaw(K.castRayAndGetNormal(i, D, o, w, C, B));
|
|
4022
|
+
return i.free(), D.free(), o.free(), w.free(), K.free(), s;
|
|
4023
4023
|
}
|
|
4024
4024
|
}
|
|
4025
|
-
(function(
|
|
4026
|
-
|
|
4027
|
-
})(z || (z = {})), function(
|
|
4028
|
-
|
|
4025
|
+
(function(E) {
|
|
4026
|
+
E[E.Ball = 0] = "Ball", E[E.Cuboid = 1] = "Cuboid", E[E.Capsule = 2] = "Capsule", E[E.Segment = 3] = "Segment", E[E.Polyline = 4] = "Polyline", E[E.Triangle = 5] = "Triangle", E[E.TriMesh = 6] = "TriMesh", E[E.HeightField = 7] = "HeightField", E[E.ConvexPolygon = 9] = "ConvexPolygon", E[E.RoundCuboid = 10] = "RoundCuboid", E[E.RoundTriangle = 11] = "RoundTriangle", E[E.RoundConvexPolygon = 12] = "RoundConvexPolygon", E[E.HalfSpace = 13] = "HalfSpace", E[E.Voxels = 14] = "Voxels";
|
|
4027
|
+
})(z || (z = {})), function(E) {
|
|
4028
|
+
E[E.DELETE_BAD_TOPOLOGY_TRIANGLES = 4] = "DELETE_BAD_TOPOLOGY_TRIANGLES", E[E.ORIENTED = 8] = "ORIENTED", E[E.MERGE_DUPLICATE_VERTICES = 16] = "MERGE_DUPLICATE_VERTICES", E[E.DELETE_DEGENERATE_TRIANGLES = 32] = "DELETE_DEGENERATE_TRIANGLES", E[E.DELETE_DUPLICATE_TRIANGLES = 64] = "DELETE_DUPLICATE_TRIANGLES", E[E.FIX_INTERNAL_EDGES = 144] = "FIX_INTERNAL_EDGES";
|
|
4029
4029
|
}(VI || (VI = {}));
|
|
4030
4030
|
class og extends $ {
|
|
4031
4031
|
constructor(A) {
|
|
@@ -4152,9 +4152,9 @@ class WC {
|
|
|
4152
4152
|
free() {
|
|
4153
4153
|
this.raw && this.raw.free(), this.raw = void 0;
|
|
4154
4154
|
}
|
|
4155
|
-
step(A, I, g, C, B,
|
|
4155
|
+
step(A, I, g, C, B, i, D, o, w, K, s, k) {
|
|
4156
4156
|
let a = S.intoRaw(A);
|
|
4157
|
-
s ? this.raw.stepWithEvents(a, I.raw, g.raw, C.raw, B.raw,
|
|
4157
|
+
s ? this.raw.stepWithEvents(a, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw, K.raw, s.raw, k, k ? k.filterContactPair : null, k ? k.filterIntersectionPair : null) : this.raw.step(a, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw, K.raw), a.free();
|
|
4158
4158
|
}
|
|
4159
4159
|
}
|
|
4160
4160
|
class Ag {
|
|
@@ -4164,9 +4164,9 @@ class Ag {
|
|
|
4164
4164
|
free() {
|
|
4165
4165
|
this.raw && this.raw.free(), this.raw = void 0;
|
|
4166
4166
|
}
|
|
4167
|
-
serializeAll(A, I, g, C, B,
|
|
4167
|
+
serializeAll(A, I, g, C, B, i, D, o, w) {
|
|
4168
4168
|
let K = S.intoRaw(A);
|
|
4169
|
-
const s = this.raw.serializeAll(K, I.raw, g.raw, C.raw, B.raw,
|
|
4169
|
+
const s = this.raw.serializeAll(K, I.raw, g.raw, C.raw, B.raw, i.raw, D.raw, o.raw, w.raw);
|
|
4170
4170
|
return K.free(), s;
|
|
4171
4171
|
}
|
|
4172
4172
|
deserializeAll(A) {
|
|
@@ -4185,15 +4185,15 @@ class XC {
|
|
|
4185
4185
|
free() {
|
|
4186
4186
|
this.raw && this.raw.free(), this.raw = void 0, this.vertices = void 0, this.colors = void 0;
|
|
4187
4187
|
}
|
|
4188
|
-
render(A, I, g, C, B,
|
|
4189
|
-
this.raw.render(A.raw, I.raw, g.raw, C.raw, B.raw,
|
|
4188
|
+
render(A, I, g, C, B, i, D) {
|
|
4189
|
+
this.raw.render(A.raw, I.raw, g.raw, C.raw, B.raw, i, I.castClosure(D)), this.vertices = this.raw.vertices(), this.colors = this.raw.colors();
|
|
4190
4190
|
}
|
|
4191
4191
|
}
|
|
4192
4192
|
class mC {
|
|
4193
4193
|
}
|
|
4194
4194
|
class vC {
|
|
4195
|
-
constructor(A, I, g, C, B,
|
|
4196
|
-
this.params = I, this.bodies = B, this.colliders =
|
|
4195
|
+
constructor(A, I, g, C, B, i) {
|
|
4196
|
+
this.params = I, this.bodies = B, this.colliders = i, this.broadPhase = g, this.narrowPhase = C, this.raw = new pQ(A), this.rawCharacterCollision = new JC(), this._applyImpulsesToDynamicBodies = !1, this._characterMass = null;
|
|
4197
4197
|
}
|
|
4198
4198
|
free() {
|
|
4199
4199
|
this.raw && (this.raw.free(), this.rawCharacterCollision.free()), this.raw = void 0, this.rawCharacterCollision = void 0;
|
|
@@ -4278,8 +4278,8 @@ class vC {
|
|
|
4278
4278
|
return this.raw.snapToGroundEnabled();
|
|
4279
4279
|
}
|
|
4280
4280
|
computeColliderMovement(A, I, g, C, B) {
|
|
4281
|
-
let
|
|
4282
|
-
this.raw.computeColliderMovement(this.params.dt, this.broadPhase.raw, this.narrowPhase.raw, this.bodies.raw, this.colliders.raw, A.handle,
|
|
4281
|
+
let i = S.intoRaw(I);
|
|
4282
|
+
this.raw.computeColliderMovement(this.params.dt, this.broadPhase.raw, this.narrowPhase.raw, this.bodies.raw, this.colliders.raw, A.handle, i, this._applyImpulsesToDynamicBodies, this._characterMass, g, C, this.colliders.castClosure(B)), i.free();
|
|
4283
4283
|
}
|
|
4284
4284
|
computedMovement() {
|
|
4285
4285
|
return S.fromRaw(this.raw.computedMovement());
|
|
@@ -4298,12 +4298,12 @@ class vC {
|
|
|
4298
4298
|
return null;
|
|
4299
4299
|
}
|
|
4300
4300
|
}
|
|
4301
|
-
(function(
|
|
4302
|
-
|
|
4301
|
+
(function(E) {
|
|
4302
|
+
E[E.None = 0] = "None", E[E.LinX = 1] = "LinX", E[E.LinY = 2] = "LinY", E[E.LinZ = 4] = "LinZ", E[E.AngZ = 32] = "AngZ", E[E.AllLin = 3] = "AllLin", E[E.AllAng = 32] = "AllAng", E[E.All = 35] = "All";
|
|
4303
4303
|
})(PI || (PI = {}));
|
|
4304
4304
|
class uC {
|
|
4305
|
-
constructor(A, I, g, C, B,
|
|
4306
|
-
this.params = A, this.bodies = I, this.raw = new fQ(g, C, B,
|
|
4305
|
+
constructor(A, I, g, C, B, i) {
|
|
4306
|
+
this.params = A, this.bodies = I, this.raw = new fQ(g, C, B, i);
|
|
4307
4307
|
}
|
|
4308
4308
|
free() {
|
|
4309
4309
|
this.raw && this.raw.free(), this.raw = void 0;
|
|
@@ -4331,16 +4331,16 @@ class uC {
|
|
|
4331
4331
|
this.raw.apply_angular_correction(this.params.dt, this.bodies.raw, A.handle, I, g);
|
|
4332
4332
|
}
|
|
4333
4333
|
linearCorrection(A, I, g) {
|
|
4334
|
-
let C = S.intoRaw(I), B = S.intoRaw(g),
|
|
4335
|
-
return C.free(), B.free(), S.fromRaw(
|
|
4334
|
+
let C = S.intoRaw(I), B = S.intoRaw(g), i = this.raw.linear_correction(this.params.dt, this.bodies.raw, A.handle, C, B);
|
|
4335
|
+
return C.free(), B.free(), S.fromRaw(i);
|
|
4336
4336
|
}
|
|
4337
4337
|
angularCorrection(A, I, g) {
|
|
4338
4338
|
return this.raw.angular_correction(this.params.dt, this.bodies.raw, A.handle, I, g);
|
|
4339
4339
|
}
|
|
4340
4340
|
}
|
|
4341
4341
|
class UI {
|
|
4342
|
-
constructor(A, I, g, C, B,
|
|
4343
|
-
this.gravity = A, this.integrationParameters = new tC(I), this.islands = new TC(g), this.broadPhase = new ZC(C), this.narrowPhase = new OC(B), this.bodies = new YC(
|
|
4342
|
+
constructor(A, I, g, C, B, i, D, o, w, K, s, k, a) {
|
|
4343
|
+
this.gravity = A, this.integrationParameters = new tC(I), this.islands = new TC(g), this.broadPhase = new ZC(C), this.narrowPhase = new OC(B), this.bodies = new YC(i), this.colliders = new PC(D), this.impulseJoints = new lC(o), this.multibodyJoints = new fC(w), this.ccdSolver = new bC(K), this.physicsPipeline = new WC(s), this.serializationPipeline = new Ag(k), this.debugRenderPipeline = new XC(a), this.characterControllers = /* @__PURE__ */ new Set(), this.pidControllers = /* @__PURE__ */ new Set(), this.impulseJoints.finalizeDeserialization(this.bodies), this.bodies.finalizeDeserialization(this.colliders), this.colliders.finalizeDeserialization(this.bodies);
|
|
4344
4344
|
}
|
|
4345
4345
|
free() {
|
|
4346
4346
|
this.integrationParameters.free(), this.islands.free(), this.broadPhase.free(), this.narrowPhase.free(), this.bodies.free(), this.colliders.free(), this.impulseJoints.free(), this.multibodyJoints.free(), this.ccdSolver.free(), this.physicsPipeline.free(), this.serializationPipeline.free(), this.debugRenderPipeline.free(), this.characterControllers.forEach((A) => A.free()), this.pidControllers.forEach((A) => A.free()), this.integrationParameters = void 0, this.islands = void 0, this.broadPhase = void 0, this.narrowPhase = void 0, this.bodies = void 0, this.colliders = void 0, this.ccdSolver = void 0, this.impulseJoints = void 0, this.multibodyJoints = void 0, this.physicsPipeline = void 0, this.serializationPipeline = void 0, this.debugRenderPipeline = void 0, this.characterControllers = void 0, this.pidControllers = void 0;
|
|
@@ -4453,33 +4453,33 @@ class UI {
|
|
|
4453
4453
|
forEachActiveRigidBody(A) {
|
|
4454
4454
|
this.bodies.forEachActiveRigidBody(this.islands, A);
|
|
4455
4455
|
}
|
|
4456
|
-
castRay(A, I, g, C, B,
|
|
4457
|
-
return this.broadPhase.castRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B,
|
|
4456
|
+
castRay(A, I, g, C, B, i, D, o) {
|
|
4457
|
+
return this.broadPhase.castRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
|
|
4458
4458
|
}
|
|
4459
|
-
castRayAndGetNormal(A, I, g, C, B,
|
|
4460
|
-
return this.broadPhase.castRayAndGetNormal(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B,
|
|
4459
|
+
castRayAndGetNormal(A, I, g, C, B, i, D, o) {
|
|
4460
|
+
return this.broadPhase.castRayAndGetNormal(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
|
|
4461
4461
|
}
|
|
4462
|
-
intersectionsWithRay(A, I, g, C, B,
|
|
4463
|
-
this.broadPhase.intersectionsWithRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B,
|
|
4462
|
+
intersectionsWithRay(A, I, g, C, B, i, D, o, w) {
|
|
4463
|
+
this.broadPhase.intersectionsWithRay(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
|
|
4464
4464
|
}
|
|
4465
|
-
intersectionWithShape(A, I, g, C, B,
|
|
4466
|
-
let w = this.broadPhase.intersectionWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B,
|
|
4465
|
+
intersectionWithShape(A, I, g, C, B, i, D, o) {
|
|
4466
|
+
let w = this.broadPhase.intersectionWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i ? i.handle : null, D ? D.handle : null, this.colliders.castClosure(o));
|
|
4467
4467
|
return w != null ? this.colliders.get(w) : null;
|
|
4468
4468
|
}
|
|
4469
|
-
projectPoint(A, I, g, C, B,
|
|
4470
|
-
return this.broadPhase.projectPoint(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B ? B.handle : null,
|
|
4469
|
+
projectPoint(A, I, g, C, B, i, D) {
|
|
4470
|
+
return this.broadPhase.projectPoint(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B ? B.handle : null, i ? i.handle : null, this.colliders.castClosure(D));
|
|
4471
4471
|
}
|
|
4472
|
-
projectPointAndGetFeature(A, I, g, C, B,
|
|
4473
|
-
return this.broadPhase.projectPointAndGetFeature(this.narrowPhase, this.bodies, this.colliders, A, I, g, C ? C.handle : null, B ? B.handle : null, this.colliders.castClosure(
|
|
4472
|
+
projectPointAndGetFeature(A, I, g, C, B, i) {
|
|
4473
|
+
return this.broadPhase.projectPointAndGetFeature(this.narrowPhase, this.bodies, this.colliders, A, I, g, C ? C.handle : null, B ? B.handle : null, this.colliders.castClosure(i));
|
|
4474
4474
|
}
|
|
4475
|
-
intersectionsWithPoint(A, I, g, C, B,
|
|
4476
|
-
this.broadPhase.intersectionsWithPoint(this.narrowPhase, this.bodies, this.colliders, A, this.colliders.castClosure(I), g, C, B ? B.handle : null,
|
|
4475
|
+
intersectionsWithPoint(A, I, g, C, B, i, D) {
|
|
4476
|
+
this.broadPhase.intersectionsWithPoint(this.narrowPhase, this.bodies, this.colliders, A, this.colliders.castClosure(I), g, C, B ? B.handle : null, i ? i.handle : null, this.colliders.castClosure(D));
|
|
4477
4477
|
}
|
|
4478
|
-
castShape(A, I, g, C, B,
|
|
4479
|
-
return this.broadPhase.castShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B,
|
|
4478
|
+
castShape(A, I, g, C, B, i, D, o, w, K, s, k) {
|
|
4479
|
+
return this.broadPhase.castShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, C, B, i, D, o, w, K ? K.handle : null, s ? s.handle : null, this.colliders.castClosure(k));
|
|
4480
4480
|
}
|
|
4481
|
-
intersectionsWithShape(A, I, g, C, B,
|
|
4482
|
-
this.broadPhase.intersectionsWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, this.colliders.castClosure(C), B,
|
|
4481
|
+
intersectionsWithShape(A, I, g, C, B, i, D, o, w) {
|
|
4482
|
+
this.broadPhase.intersectionsWithShape(this.narrowPhase, this.bodies, this.colliders, A, I, g, this.colliders.castClosure(C), B, i, D ? D.handle : null, o ? o.handle : null, this.colliders.castClosure(w));
|
|
4483
4483
|
}
|
|
4484
4484
|
collidersWithAabbIntersectingAabb(A, I, g) {
|
|
4485
4485
|
this.broadPhase.collidersWithAabbIntersectingAabb(this.narrowPhase, this.bodies, this.colliders, A, I, this.colliders.castClosure(g));
|
|
@@ -4551,8 +4551,8 @@ class UI {
|
|
|
4551
4551
|
return this.physicsPipeline.raw.timing_user_changes();
|
|
4552
4552
|
}
|
|
4553
4553
|
}
|
|
4554
|
-
(function(
|
|
4555
|
-
|
|
4554
|
+
(function(E) {
|
|
4555
|
+
E[E.NONE = 0] = "NONE", E[E.COLLISION_EVENTS = 1] = "COLLISION_EVENTS", E[E.CONTACT_FORCE_EVENTS = 2] = "CONTACT_FORCE_EVENTS";
|
|
4556
4556
|
})(wI || (wI = {}));
|
|
4557
4557
|
class VC {
|
|
4558
4558
|
free() {
|
|
@@ -4597,14 +4597,14 @@ class ZQ {
|
|
|
4597
4597
|
this.raw.clear();
|
|
4598
4598
|
}
|
|
4599
4599
|
}
|
|
4600
|
-
(function(
|
|
4601
|
-
|
|
4602
|
-
})(GI || (GI = {})), function(
|
|
4603
|
-
|
|
4604
|
-
}(zI || (zI = {})), function(
|
|
4605
|
-
|
|
4606
|
-
}(_I || (_I = {})), function(
|
|
4607
|
-
|
|
4600
|
+
(function(E) {
|
|
4601
|
+
E[E.NONE = 0] = "NONE", E[E.FILTER_CONTACT_PAIRS = 1] = "FILTER_CONTACT_PAIRS", E[E.FILTER_INTERSECTION_PAIRS = 2] = "FILTER_INTERSECTION_PAIRS";
|
|
4602
|
+
})(GI || (GI = {})), function(E) {
|
|
4603
|
+
E[E.EMPTY = 0] = "EMPTY", E[E.COMPUTE_IMPULSE = 1] = "COMPUTE_IMPULSE";
|
|
4604
|
+
}(zI || (zI = {})), function(E) {
|
|
4605
|
+
E[E.EXCLUDE_FIXED = 1] = "EXCLUDE_FIXED", E[E.EXCLUDE_KINEMATIC = 2] = "EXCLUDE_KINEMATIC", E[E.EXCLUDE_DYNAMIC = 4] = "EXCLUDE_DYNAMIC", E[E.EXCLUDE_SENSORS = 8] = "EXCLUDE_SENSORS", E[E.EXCLUDE_SOLIDS = 16] = "EXCLUDE_SOLIDS", E[E.ONLY_DYNAMIC = 3] = "ONLY_DYNAMIC", E[E.ONLY_KINEMATIC = 5] = "ONLY_KINEMATIC", E[E.ONLY_FIXED = 6] = "ONLY_FIXED";
|
|
4606
|
+
}(_I || (_I = {})), function(E) {
|
|
4607
|
+
E[E.DYNAMIC_DYNAMIC = 1] = "DYNAMIC_DYNAMIC", E[E.DYNAMIC_KINEMATIC = 12] = "DYNAMIC_KINEMATIC", E[E.DYNAMIC_FIXED = 2] = "DYNAMIC_FIXED", E[E.KINEMATIC_KINEMATIC = 52224] = "KINEMATIC_KINEMATIC", E[E.KINEMATIC_FIXED = 8704] = "KINEMATIC_FIXED", E[E.FIXED_FIXED = 32] = "FIXED_FIXED", E[E.DEFAULT = 15] = "DEFAULT", E[E.ALL = 60943] = "ALL";
|
|
4608
4608
|
}(hI || (hI = {}));
|
|
4609
4609
|
class Ig {
|
|
4610
4610
|
constructor(A, I, g, C) {
|
|
@@ -4808,47 +4808,47 @@ class Ig {
|
|
|
4808
4808
|
return I.free(), g;
|
|
4809
4809
|
}
|
|
4810
4810
|
projectPoint(A, I) {
|
|
4811
|
-
let g = S.intoRaw(A), C =
|
|
4811
|
+
let g = S.intoRaw(A), C = AI.fromRaw(this.colliderSet.raw.coProjectPoint(this.handle, g, I));
|
|
4812
4812
|
return g.free(), C;
|
|
4813
4813
|
}
|
|
4814
4814
|
intersectsRay(A, I) {
|
|
4815
4815
|
let g = S.intoRaw(A.origin), C = S.intoRaw(A.dir), B = this.colliderSet.raw.coIntersectsRay(this.handle, g, C, I);
|
|
4816
4816
|
return g.free(), C.free(), B;
|
|
4817
4817
|
}
|
|
4818
|
-
castShape(A, I, g, C, B,
|
|
4819
|
-
let w = S.intoRaw(A), K = S.intoRaw(g), s = f.intoRaw(C), k = S.intoRaw(B), a = I.intoRaw(), R = pA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, w, a, K, s, k,
|
|
4818
|
+
castShape(A, I, g, C, B, i, D, o) {
|
|
4819
|
+
let w = S.intoRaw(A), K = S.intoRaw(g), s = f.intoRaw(C), k = S.intoRaw(B), a = I.intoRaw(), R = pA.fromRaw(this.colliderSet, this.colliderSet.raw.coCastShape(this.handle, w, a, K, s, k, i, D, o));
|
|
4820
4820
|
return w.free(), K.free(), s.free(), k.free(), a.free(), R;
|
|
4821
4821
|
}
|
|
4822
|
-
castCollider(A, I, g, C, B,
|
|
4823
|
-
let D = S.intoRaw(A), o = S.intoRaw(g), w =
|
|
4822
|
+
castCollider(A, I, g, C, B, i) {
|
|
4823
|
+
let D = S.intoRaw(A), o = S.intoRaw(g), w = II.fromRaw(this.colliderSet, this.colliderSet.raw.coCastCollider(this.handle, D, I.handle, o, C, B, i));
|
|
4824
4824
|
return D.free(), o.free(), w;
|
|
4825
4825
|
}
|
|
4826
4826
|
intersectsShape(A, I, g) {
|
|
4827
|
-
let C = S.intoRaw(I), B = f.intoRaw(g),
|
|
4828
|
-
return C.free(), B.free(),
|
|
4827
|
+
let C = S.intoRaw(I), B = f.intoRaw(g), i = A.intoRaw(), D = this.colliderSet.raw.coIntersectsShape(this.handle, i, C, B);
|
|
4828
|
+
return C.free(), B.free(), i.free(), D;
|
|
4829
4829
|
}
|
|
4830
4830
|
contactShape(A, I, g, C) {
|
|
4831
|
-
let B = S.intoRaw(I),
|
|
4832
|
-
return B.free(),
|
|
4831
|
+
let B = S.intoRaw(I), i = f.intoRaw(g), D = A.intoRaw(), o = nA.fromRaw(this.colliderSet.raw.coContactShape(this.handle, D, B, i, C));
|
|
4832
|
+
return B.free(), i.free(), D.free(), o;
|
|
4833
4833
|
}
|
|
4834
4834
|
contactCollider(A, I) {
|
|
4835
4835
|
return nA.fromRaw(this.colliderSet.raw.coContactCollider(this.handle, A.handle, I));
|
|
4836
4836
|
}
|
|
4837
4837
|
castRay(A, I, g) {
|
|
4838
|
-
let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir),
|
|
4839
|
-
return C.free(), B.free(),
|
|
4838
|
+
let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir), i = this.colliderSet.raw.coCastRay(this.handle, C, B, I, g);
|
|
4839
|
+
return C.free(), B.free(), i;
|
|
4840
4840
|
}
|
|
4841
4841
|
castRayAndGetNormal(A, I, g) {
|
|
4842
|
-
let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir),
|
|
4843
|
-
return C.free(), B.free(),
|
|
4842
|
+
let C = S.intoRaw(A.origin), B = S.intoRaw(A.dir), i = $A.fromRaw(this.colliderSet.raw.coCastRayAndGetNormal(this.handle, C, B, I, g));
|
|
4843
|
+
return C.free(), B.free(), i;
|
|
4844
4844
|
}
|
|
4845
4845
|
}
|
|
4846
|
-
(function(
|
|
4847
|
-
|
|
4846
|
+
(function(E) {
|
|
4847
|
+
E[E.Density = 0] = "Density", E[E.Mass = 1] = "Mass", E[E.MassProps = 2] = "MassProps";
|
|
4848
4848
|
})(tA || (tA = {}));
|
|
4849
4849
|
class V {
|
|
4850
4850
|
constructor(A) {
|
|
4851
|
-
this.enabled = !0, this.shape = A, this.massPropsMode = tA.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = f.identity(), this.translation = S.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule =
|
|
4851
|
+
this.enabled = !0, this.shape = A, this.massPropsMode = tA.Density, this.density = 1, this.friction = 0.5, this.restitution = 0, this.rotation = f.identity(), this.translation = S.zeros(), this.isSensor = !1, this.collisionGroups = 4294967295, this.solverGroups = 4294967295, this.frictionCombineRule = PA.Average, this.restitutionCombineRule = PA.Average, this.activeCollisionTypes = hI.DEFAULT, this.activeEvents = wI.NONE, this.activeHooks = GI.NONE, this.mass = 0, this.centerOfMass = S.zeros(), this.contactForceEventThreshold = 0, this.contactSkin = 0, this.principalAngularInertia = 0, this.rotationsEnabled = !0;
|
|
4852
4852
|
}
|
|
4853
4853
|
static ball(A) {
|
|
4854
4854
|
const I = new og(A);
|
|
@@ -4988,8 +4988,8 @@ class PC {
|
|
|
4988
4988
|
createCollider(A, I, g) {
|
|
4989
4989
|
let C = g != null && g != null;
|
|
4990
4990
|
if (C && isNaN(g)) throw Error("Cannot create a collider with a parent rigid-body handle that is not a number.");
|
|
4991
|
-
let B = I.shape.intoRaw(),
|
|
4992
|
-
B.free(),
|
|
4991
|
+
let B = I.shape.intoRaw(), i = S.intoRaw(I.translation), D = f.intoRaw(I.rotation), o = S.intoRaw(I.centerOfMass), w = this.raw.createCollider(I.enabled, B, i, D, I.massPropsMode, I.mass, o, I.principalAngularInertia, I.density, I.friction, I.restitution, I.frictionCombineRule, I.restitutionCombineRule, I.isSensor, I.collisionGroups, I.solverGroups, I.activeCollisionTypes, I.activeHooks, I.activeEvents, I.contactForceEventThreshold, I.contactSkin, C, C ? g : 0, A.raw);
|
|
4992
|
+
B.free(), i.free(), D.free(), o.free();
|
|
4993
4993
|
let K = C ? A.get(g) : null, s = new Ig(this, w, K, I.shape);
|
|
4994
4994
|
return this.map.set(w, s), s;
|
|
4995
4995
|
}
|
|
@@ -5015,9 +5015,9 @@ class PC {
|
|
|
5015
5015
|
return this.map.getAll();
|
|
5016
5016
|
}
|
|
5017
5017
|
}
|
|
5018
|
-
function OQ(
|
|
5018
|
+
function OQ(E, A, I, g) {
|
|
5019
5019
|
return new (I || (I = Promise))(function(C, B) {
|
|
5020
|
-
function
|
|
5020
|
+
function i(w) {
|
|
5021
5021
|
try {
|
|
5022
5022
|
o(g.next(w));
|
|
5023
5023
|
} catch (K) {
|
|
@@ -5035,32 +5035,32 @@ function OQ(i, A, I, g) {
|
|
|
5035
5035
|
var K;
|
|
5036
5036
|
w.done ? C(w.value) : (K = w.value, K instanceof I ? K : new I(function(s) {
|
|
5037
5037
|
s(K);
|
|
5038
|
-
})).then(
|
|
5038
|
+
})).then(i, D);
|
|
5039
5039
|
}
|
|
5040
|
-
o((g = g.apply(
|
|
5040
|
+
o((g = g.apply(E, [])).next());
|
|
5041
5041
|
});
|
|
5042
5042
|
}
|
|
5043
|
-
for (var jQ = { byteLength: function(
|
|
5044
|
-
var A = kC(
|
|
5043
|
+
for (var jQ = { byteLength: function(E) {
|
|
5044
|
+
var A = kC(E), I = A[0], g = A[1];
|
|
5045
5045
|
return 3 * (I + g) / 4 - g;
|
|
5046
|
-
}, toByteArray: function(
|
|
5047
|
-
var A, I, g = kC(
|
|
5046
|
+
}, toByteArray: function(E) {
|
|
5047
|
+
var A, I, g = kC(E), C = g[0], B = g[1], i = new WQ(function(w, K, s) {
|
|
5048
5048
|
return 3 * (K + s) / 4 - s;
|
|
5049
5049
|
}(0, C, B)), D = 0, o = B > 0 ? C - 4 : C;
|
|
5050
|
-
for (I = 0; I < o; I += 4) A = wA[
|
|
5051
|
-
return B === 2 && (A = wA[
|
|
5052
|
-
}, fromByteArray: function(
|
|
5053
|
-
for (var A, I =
|
|
5054
|
-
return g === 1 ? (A =
|
|
5050
|
+
for (I = 0; I < o; I += 4) A = wA[E.charCodeAt(I)] << 18 | wA[E.charCodeAt(I + 1)] << 12 | wA[E.charCodeAt(I + 2)] << 6 | wA[E.charCodeAt(I + 3)], i[D++] = A >> 16 & 255, i[D++] = A >> 8 & 255, i[D++] = 255 & A;
|
|
5051
|
+
return B === 2 && (A = wA[E.charCodeAt(I)] << 2 | wA[E.charCodeAt(I + 1)] >> 4, i[D++] = 255 & A), B === 1 && (A = wA[E.charCodeAt(I)] << 10 | wA[E.charCodeAt(I + 1)] << 4 | wA[E.charCodeAt(I + 2)] >> 2, i[D++] = A >> 8 & 255, i[D++] = 255 & A), i;
|
|
5052
|
+
}, fromByteArray: function(E) {
|
|
5053
|
+
for (var A, I = E.length, g = I % 3, C = [], B = 16383, i = 0, D = I - g; i < D; i += B) C.push(XQ(E, i, i + B > D ? D : i + B));
|
|
5054
|
+
return g === 1 ? (A = E[I - 1], C.push(KA[A >> 2] + KA[A << 4 & 63] + "==")) : g === 2 && (A = (E[I - 2] << 8) + E[I - 1], C.push(KA[A >> 10] + KA[A >> 4 & 63] + KA[A << 2 & 63] + "=")), C.join("");
|
|
5055
5055
|
} }, KA = [], wA = [], WQ = typeof Uint8Array < "u" ? Uint8Array : Array, WI = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", HA = 0, xQ = WI.length; HA < xQ; ++HA) KA[HA] = WI[HA], wA[WI.charCodeAt(HA)] = HA;
|
|
5056
|
-
function kC(
|
|
5057
|
-
var A =
|
|
5056
|
+
function kC(E) {
|
|
5057
|
+
var A = E.length;
|
|
5058
5058
|
if (A % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
|
|
5059
|
-
var I =
|
|
5059
|
+
var I = E.indexOf("=");
|
|
5060
5060
|
return I === -1 && (I = A), [I, I === A ? 0 : 4 - I % 4];
|
|
5061
5061
|
}
|
|
5062
|
-
function XQ(
|
|
5063
|
-
for (var g, C, B = [],
|
|
5062
|
+
function XQ(E, A, I) {
|
|
5063
|
+
for (var g, C, B = [], i = A; i < I; i += 3) g = (E[i] << 16 & 16711680) + (E[i + 1] << 8 & 65280) + (255 & E[i + 2]), B.push(KA[(C = g) >> 18 & 63] + KA[C >> 12 & 63] + KA[C >> 6 & 63] + KA[63 & C]);
|
|
5064
5064
|
return B.join("");
|
|
5065
5065
|
}
|
|
5066
5066
|
function mQ() {
|
|
@@ -5070,20 +5070,20 @@ function mQ() {
|
|
|
5070
5070
|
}
|
|
5071
5071
|
function vQ() {
|
|
5072
5072
|
return function() {
|
|
5073
|
-
let
|
|
5073
|
+
let E, A;
|
|
5074
5074
|
try {
|
|
5075
5075
|
const C = Q.__wbindgen_add_to_stack_pointer(-16);
|
|
5076
5076
|
Q.version(C);
|
|
5077
5077
|
var I = P().getInt32(C + 0, !0), g = P().getInt32(C + 4, !0);
|
|
5078
|
-
return
|
|
5078
|
+
return E = I, A = g, XI(I, g);
|
|
5079
5079
|
} finally {
|
|
5080
|
-
Q.__wbindgen_add_to_stack_pointer(16), Q.__wbindgen_export_1(
|
|
5080
|
+
Q.__wbindgen_add_to_stack_pointer(16), Q.__wbindgen_export_1(E, A, 1);
|
|
5081
5081
|
}
|
|
5082
5082
|
}();
|
|
5083
5083
|
}
|
|
5084
|
-
function uQ(
|
|
5084
|
+
function uQ(E) {
|
|
5085
5085
|
var A;
|
|
5086
|
-
A =
|
|
5086
|
+
A = E, Q.reserve_memory(A);
|
|
5087
5087
|
}
|
|
5088
5088
|
wA[45] = 62, wA[95] = 63;
|
|
5089
5089
|
var QA = Object.freeze({ __proto__: null, version: vQ, reserveMemory: uQ, Vector2: cC, VectorOps: S, RotationOps: f, get RigidBodyType() {
|
|
@@ -5095,7 +5095,7 @@ var QA = Object.freeze({ __proto__: null, version: vQ, reserveMemory: uQ, Vector
|
|
|
5095
5095
|
}, get JointAxesMask() {
|
|
5096
5096
|
return uI;
|
|
5097
5097
|
}, ImpulseJoint: kA, UnitImpulseJoint: ig, FixedImpulseJoint: LC, RopeImpulseJoint: rC, SpringImpulseJoint: qC, PrismaticImpulseJoint: eC, RevoluteImpulseJoint: HC, JointData: YA, ImpulseJointSet: lC, MultibodyJoint: rA, UnitMultibodyJoint: Dg, FixedMultibodyJoint: nC, PrismaticMultibodyJoint: pC, RevoluteMultibodyJoint: dC, MultibodyJointSet: fC, get CoefficientCombineRule() {
|
|
5098
|
-
return
|
|
5098
|
+
return PA;
|
|
5099
5099
|
}, CCDSolver: bC, IslandManager: TC, BroadPhase: ZC, NarrowPhase: OC, TempContactManifold: jC, Shape: $, get ShapeType() {
|
|
5100
5100
|
return z;
|
|
5101
5101
|
}, get TriMeshFlags() {
|
|
@@ -5106,7 +5106,7 @@ var QA = Object.freeze({ __proto__: null, version: vQ, reserveMemory: uQ, Vector
|
|
|
5106
5106
|
return tA;
|
|
5107
5107
|
}, ColliderDesc: V, ColliderSet: PC, get FeatureType() {
|
|
5108
5108
|
return lA;
|
|
5109
|
-
}, Ray: TQ, RayIntersection:
|
|
5109
|
+
}, Ray: TQ, RayIntersection: $A, RayColliderIntersection: zA, RayColliderHit: JI, PointProjection: AI, PointColliderProjection: _A, ShapeCastHit: pA, ColliderShapeCastHit: II, ShapeContact: nA, World: UI, PhysicsPipeline: WC, SerializationPipeline: Ag, get ActiveEvents() {
|
|
5110
5110
|
return wI;
|
|
5111
5111
|
}, TempContactForceEvent: VC, EventQueue: ZQ, get ActiveHooks() {
|
|
5112
5112
|
return GI;
|
|
@@ -5169,8 +5169,8 @@ class VQ {
|
|
|
5169
5169
|
if (A.friction !== void 0 && C.setFriction(A.friction), A.restitution !== void 0 && C.setRestitution(A.restitution), A.density !== void 0)
|
|
5170
5170
|
C.setDensity(A.density);
|
|
5171
5171
|
else if (A.mass !== void 0 && !A.isStatic) {
|
|
5172
|
-
const
|
|
5173
|
-
C.setDensity(A.mass /
|
|
5172
|
+
const i = A.width * A.height;
|
|
5173
|
+
C.setDensity(A.mass / i);
|
|
5174
5174
|
}
|
|
5175
5175
|
A.isSensor && C.setSensor(!0);
|
|
5176
5176
|
const B = this.world.createCollider(C, g);
|
|
@@ -5289,17 +5289,17 @@ class PQ {
|
|
|
5289
5289
|
this.physicsEngine && ((g = this.artboard) == null || g.objects.forEach((C) => {
|
|
5290
5290
|
var B;
|
|
5291
5291
|
if ((B = C.physics) != null && B.enabled && C.type === "Shape") {
|
|
5292
|
-
const
|
|
5293
|
-
if (!
|
|
5292
|
+
const i = this.objectStates.get(C.id);
|
|
5293
|
+
if (!i) return;
|
|
5294
5294
|
const D = C.geometry.width || 100, o = C.geometry.height || 100;
|
|
5295
5295
|
this.physicsEngine.createBody({
|
|
5296
5296
|
id: C.id,
|
|
5297
5297
|
type: C.geometry.type,
|
|
5298
|
-
x:
|
|
5299
|
-
y:
|
|
5298
|
+
x: i.x,
|
|
5299
|
+
y: i.y,
|
|
5300
5300
|
width: D,
|
|
5301
5301
|
height: o,
|
|
5302
|
-
rotation:
|
|
5302
|
+
rotation: i.rotation * (Math.PI / 180),
|
|
5303
5303
|
// Convert deg to rad
|
|
5304
5304
|
isStatic: C.physics.bodyType === "Static",
|
|
5305
5305
|
mass: C.physics.mass,
|
|
@@ -5324,7 +5324,7 @@ class PQ {
|
|
|
5324
5324
|
const I = this.artboard.animations.find((g) => g.name === "onLoad");
|
|
5325
5325
|
I && this.layerStates.set("intro", {
|
|
5326
5326
|
currentStateIds: ["onLoad"],
|
|
5327
|
-
animations: [{ animation: I, state:
|
|
5327
|
+
animations: [{ animation: I, state: { loop: !0 } }],
|
|
5328
5328
|
time: 0,
|
|
5329
5329
|
duration: I.duration
|
|
5330
5330
|
});
|
|
@@ -5338,10 +5338,10 @@ class PQ {
|
|
|
5338
5338
|
const C = [];
|
|
5339
5339
|
let B = 0;
|
|
5340
5340
|
if (this.artboard && this.activeStateMachine) {
|
|
5341
|
-
const
|
|
5342
|
-
if (
|
|
5341
|
+
const i = this.activeStateMachine.layers.find((D) => D.name === A);
|
|
5342
|
+
if (i)
|
|
5343
5343
|
for (const D of I) {
|
|
5344
|
-
const o =
|
|
5344
|
+
const o = i.states.find((w) => w.id === D);
|
|
5345
5345
|
if (o) {
|
|
5346
5346
|
let w = null;
|
|
5347
5347
|
o.animationId && (w = this.artboard.animations.find((K) => K.id === o.animationId) || null), w || (w = this.artboard.animations.find((K) => K.name === o.name || K.id === o.name || o.name === "Entry" && K.name === "Rotate") || null), w && (C.push({ animation: w, state: o }), B = Math.max(B, w.duration));
|
|
@@ -5372,10 +5372,10 @@ class PQ {
|
|
|
5372
5372
|
this.updateInput(A, I);
|
|
5373
5373
|
}
|
|
5374
5374
|
updateInput(A, I) {
|
|
5375
|
-
var
|
|
5375
|
+
var i, D;
|
|
5376
5376
|
let g;
|
|
5377
5377
|
if (this.inputs.has(A)) {
|
|
5378
|
-
const o = (
|
|
5378
|
+
const o = (i = this.activeStateMachine) == null ? void 0 : i.inputs.find((w) => w.id === A);
|
|
5379
5379
|
o && typeof o.value == "object" && (g = o.value.type);
|
|
5380
5380
|
} else {
|
|
5381
5381
|
const o = this.inputNameMap.get(A);
|
|
@@ -5396,10 +5396,10 @@ class PQ {
|
|
|
5396
5396
|
const g = [];
|
|
5397
5397
|
let C = !1;
|
|
5398
5398
|
for (const B of I.currentStateIds) {
|
|
5399
|
-
const
|
|
5400
|
-
if (!
|
|
5399
|
+
const i = A.states.find((o) => o.id === B);
|
|
5400
|
+
if (!i) continue;
|
|
5401
5401
|
let D = !1;
|
|
5402
|
-
for (const o of
|
|
5402
|
+
for (const o of i.transitions)
|
|
5403
5403
|
this.checkConditions(o.conditions) && (g.push(o.targetStateId), D = !0, C = !0, o.conditions && o.conditions.forEach((w) => {
|
|
5404
5404
|
var s;
|
|
5405
5405
|
const K = (s = this.activeStateMachine) == null ? void 0 : s.inputs.find((k) => k.id === w.inputId);
|
|
@@ -5412,10 +5412,10 @@ class PQ {
|
|
|
5412
5412
|
}
|
|
5413
5413
|
if (!C) {
|
|
5414
5414
|
const B = this.findGlobalTransition(A, I.currentStateIds);
|
|
5415
|
-
B && (g.length = 0, g.push(B.targetStateId), C = !0, B.conditions && B.conditions.forEach((
|
|
5415
|
+
B && (g.length = 0, g.push(B.targetStateId), C = !0, B.conditions && B.conditions.forEach((i) => {
|
|
5416
5416
|
var o;
|
|
5417
|
-
const D = (o = this.activeStateMachine) == null ? void 0 : o.inputs.find((w) => w.id ===
|
|
5418
|
-
if (D && typeof D.value == "object" && D.value.type === "Number" && (this.setInternalInput(
|
|
5417
|
+
const D = (o = this.activeStateMachine) == null ? void 0 : o.inputs.find((w) => w.id === i.inputId);
|
|
5418
|
+
if (D && typeof D.value == "object" && D.value.type === "Number" && (this.setInternalInput(i.inputId, 0), this.inputNameMap.has(D.name))) {
|
|
5419
5419
|
const w = this.inputNameMap.get(D.name);
|
|
5420
5420
|
w == null || w.forEach((K) => this.setInternalInput(K, 0));
|
|
5421
5421
|
}
|
|
@@ -5452,34 +5452,34 @@ class PQ {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
checkConditions(A) {
|
|
5454
5454
|
return !A || A.length === 0 ? !0 : A.every((I) => {
|
|
5455
|
-
const g = I.inputId, C = I.op, B = I.value,
|
|
5456
|
-
if (
|
|
5455
|
+
const g = I.inputId, C = I.op, B = I.value, i = this.evaluateLogicTree(g);
|
|
5456
|
+
if (i === void 0)
|
|
5457
5457
|
return console.log(`[Engine] Condition Check Failed: Input ${g} is undefined`), !1;
|
|
5458
5458
|
let D = !1;
|
|
5459
5459
|
switch (C) {
|
|
5460
5460
|
case "Equal":
|
|
5461
|
-
D =
|
|
5461
|
+
D = i == B;
|
|
5462
5462
|
break;
|
|
5463
5463
|
case "NotEqual":
|
|
5464
|
-
D =
|
|
5464
|
+
D = i != B;
|
|
5465
5465
|
break;
|
|
5466
5466
|
case "GreaterThan":
|
|
5467
|
-
D =
|
|
5467
|
+
D = i > B;
|
|
5468
5468
|
break;
|
|
5469
5469
|
case "LessThan":
|
|
5470
|
-
D =
|
|
5470
|
+
D = i < B;
|
|
5471
5471
|
break;
|
|
5472
5472
|
case "GreaterEqual":
|
|
5473
|
-
D =
|
|
5473
|
+
D = i >= B;
|
|
5474
5474
|
break;
|
|
5475
5475
|
case "LessEqual":
|
|
5476
|
-
D =
|
|
5476
|
+
D = i <= B;
|
|
5477
5477
|
break;
|
|
5478
5478
|
case "IsTrue":
|
|
5479
|
-
D =
|
|
5479
|
+
D = i === !0;
|
|
5480
5480
|
break;
|
|
5481
5481
|
case "IsFalse":
|
|
5482
|
-
D =
|
|
5482
|
+
D = i === !1;
|
|
5483
5483
|
break;
|
|
5484
5484
|
default:
|
|
5485
5485
|
D = !1;
|
|
@@ -5488,23 +5488,23 @@ class PQ {
|
|
|
5488
5488
|
});
|
|
5489
5489
|
}
|
|
5490
5490
|
evaluateLogicTree(A, I, g = /* @__PURE__ */ new Set()) {
|
|
5491
|
-
var
|
|
5491
|
+
var i, D, o;
|
|
5492
5492
|
if (g.has(A)) return !1;
|
|
5493
5493
|
g.add(A);
|
|
5494
|
-
const C = (D = (
|
|
5494
|
+
const C = (D = (i = this.activeStateMachine) == null ? void 0 : i.logicNodes) == null ? void 0 : D.find((w) => w.id === A);
|
|
5495
5495
|
if (C) {
|
|
5496
5496
|
const w = (K, s) => {
|
|
5497
5497
|
const k = C.inputs.find((a) => a.id === K);
|
|
5498
5498
|
return k ? k.sourceId ? this.evaluateLogicTree(k.sourceId, k.sourceHandleId, g) : k.value !== void 0 ? k.value : s : s;
|
|
5499
5499
|
};
|
|
5500
5500
|
switch (C.op) {
|
|
5501
|
-
case
|
|
5501
|
+
case WA.AND:
|
|
5502
5502
|
return w("a", !1) && w("b", !1);
|
|
5503
|
-
case
|
|
5503
|
+
case WA.OR:
|
|
5504
5504
|
return w("a", !1) || w("b", !1);
|
|
5505
|
-
case
|
|
5505
|
+
case WA.NOT:
|
|
5506
5506
|
return !w("in", !1);
|
|
5507
|
-
case
|
|
5507
|
+
case WA.XOR:
|
|
5508
5508
|
return !!w("a", !1) != !!w("b", !1);
|
|
5509
5509
|
default:
|
|
5510
5510
|
return 0;
|
|
@@ -5530,8 +5530,8 @@ class PQ {
|
|
|
5530
5530
|
this.artboard && (this.physicsEngine && (this.physicsEngine.step(A), this.artboard.objects.forEach((I) => {
|
|
5531
5531
|
var g;
|
|
5532
5532
|
if ((g = I.physics) != null && g.enabled) {
|
|
5533
|
-
const C = this.physicsEngine.getPosition(I.id), B = this.physicsEngine.getRotation(I.id),
|
|
5534
|
-
|
|
5533
|
+
const C = this.physicsEngine.getPosition(I.id), B = this.physicsEngine.getRotation(I.id), i = this.objectStates.get(I.id);
|
|
5534
|
+
i && C !== null && (i.x = C.x, i.y = C.y), i && B !== null && (i.rotation = B * (180 / Math.PI));
|
|
5535
5535
|
}
|
|
5536
5536
|
})), this.activeStateMachine && (this.evaluateTransitions(), this.layerStates.forEach((I) => {
|
|
5537
5537
|
I.animations.length > 0 && (I.time += A, I.time > I.duration && (I.animations.some((C) => {
|
|
@@ -5541,9 +5541,9 @@ class PQ {
|
|
|
5541
5541
|
this.applyAnimation(g.animation, I.time);
|
|
5542
5542
|
}));
|
|
5543
5543
|
})), this.activeTriggers.forEach((I, g) => {
|
|
5544
|
-
var C, B,
|
|
5544
|
+
var C, B, i, D, o, w, K;
|
|
5545
5545
|
if (I.phase === "entry")
|
|
5546
|
-
I.time += A, I.time >= I.animation.duration && ((
|
|
5546
|
+
I.time += A, I.time >= I.animation.duration && ((i = (B = (C = this.artboard) == null ? void 0 : C.objects.find((s) => s.id === g)) == null ? void 0 : B.triggers) == null || i.find((s) => s.id === I.triggerId), I.phase = "hold", I.elapsedHold = 0, I.time = I.animation.duration), this.applyAnimation(I.animation, I.time);
|
|
5547
5547
|
else if (I.phase === "hold") {
|
|
5548
5548
|
const s = (w = (o = (D = this.artboard) == null ? void 0 : D.objects.find((a) => a.id === g)) == null ? void 0 : o.triggers) == null ? void 0 : w.find((a) => a.id === I.triggerId), k = (s == null ? void 0 : s.duration) || 0;
|
|
5549
5549
|
if (I.elapsedHold += A * 1e3, I.elapsedHold >= k)
|
|
@@ -5557,21 +5557,21 @@ class PQ {
|
|
|
5557
5557
|
}
|
|
5558
5558
|
handlePointerInput(A, I, g, C, B) {
|
|
5559
5559
|
if (!this.artboard) return;
|
|
5560
|
-
const
|
|
5560
|
+
const i = this.calculateTransform(
|
|
5561
5561
|
C,
|
|
5562
5562
|
B,
|
|
5563
5563
|
this.artboard.width,
|
|
5564
5564
|
this.artboard.height,
|
|
5565
5565
|
this.layout.fit,
|
|
5566
5566
|
this.layout.alignment
|
|
5567
|
-
), D = (I -
|
|
5567
|
+
), D = (I - i.tx) / i.scaleX - this.artboard.width / 2, o = (g - i.ty) / i.scaleY - this.artboard.height / 2;
|
|
5568
5568
|
this.handlePointerEvent(A, D, o);
|
|
5569
5569
|
}
|
|
5570
5570
|
handlePointerEvent(A, I, g) {
|
|
5571
5571
|
if (!this.artboard) return;
|
|
5572
5572
|
let C = null;
|
|
5573
|
-
for (let
|
|
5574
|
-
const D = this.artboard.objects[
|
|
5573
|
+
for (let i = this.artboard.objects.length - 1; i >= 0; i--) {
|
|
5574
|
+
const D = this.artboard.objects[i];
|
|
5575
5575
|
if (this.hitTest(D, I, g)) {
|
|
5576
5576
|
C = D;
|
|
5577
5577
|
break;
|
|
@@ -5583,8 +5583,8 @@ class PQ {
|
|
|
5583
5583
|
return;
|
|
5584
5584
|
}
|
|
5585
5585
|
if (C) {
|
|
5586
|
-
let
|
|
5587
|
-
A === "click" ?
|
|
5586
|
+
let i = A;
|
|
5587
|
+
A === "click" ? i = "onClick" : A === "down" ? i = "onPointerDown" : A === "up" ? i = "onPointerUp" : A === "blur" && (i = "onPointerLeave"), this.fireEventForObject(C.id, i);
|
|
5588
5588
|
}
|
|
5589
5589
|
}
|
|
5590
5590
|
fireEventForObject(A, I) {
|
|
@@ -5594,8 +5594,8 @@ class PQ {
|
|
|
5594
5594
|
console.log(`[Engine] Firing event ${I} on ${g.name}`);
|
|
5595
5595
|
const C = /* @__PURE__ */ new Set([I]);
|
|
5596
5596
|
I === "onPointerEnter" && C.add("hover"), I === "onPointerLeave" && C.add("blur"), I === "onPointerDown" && C.add("pointerDown"), I === "onPointerUp" && C.add("pointerUp");
|
|
5597
|
-
const
|
|
5598
|
-
|
|
5597
|
+
const i = (g.interactions || []).find((w) => C.has(w.event));
|
|
5598
|
+
i && (console.log(`[Engine] Interaction matched: ${I} (as ${i.event}) -> ${i.targetInputId}`), i.action === "setInput" ? this.updateInput(i.targetInputId, i.value) : i.action === "fireTrigger" && this.updateInput(i.targetInputId, !0));
|
|
5599
5599
|
const o = (g.triggers || []).find((w) => C.has(w.eventType));
|
|
5600
5600
|
if (o && o.entryAnimationId) {
|
|
5601
5601
|
console.log(`[Engine] Trigger matched: ${I} (as ${o.eventType}) -> Animation ${o.entryAnimationId}`);
|
|
@@ -5612,8 +5612,8 @@ class PQ {
|
|
|
5612
5612
|
hitTest(A, I, g) {
|
|
5613
5613
|
const C = this.objectStates.get(A.id);
|
|
5614
5614
|
if (!C) return !1;
|
|
5615
|
-
const B = A.geometry.width || 100,
|
|
5616
|
-
return Math.abs(D) <= B / 2 && Math.abs(o) <=
|
|
5615
|
+
const B = A.geometry.width || 100, i = A.geometry.height || 100, D = I - C.x, o = g - C.y;
|
|
5616
|
+
return Math.abs(D) <= B / 2 && Math.abs(o) <= i / 2;
|
|
5617
5617
|
}
|
|
5618
5618
|
applyAnimation(A, I) {
|
|
5619
5619
|
A.tracks.forEach((g) => {
|
|
@@ -5621,17 +5621,17 @@ class PQ {
|
|
|
5621
5621
|
const C = (o = this.artboard) == null ? void 0 : o.objects.find((s) => s.id === g.object_id);
|
|
5622
5622
|
if (((w = C == null ? void 0 : C.physics) == null ? void 0 : w.enabled) && C.physics.bodyType !== "Static" && (["x", "y", "rotation"].includes(g.property) || g.property.startsWith("transform.")))
|
|
5623
5623
|
return;
|
|
5624
|
-
const
|
|
5625
|
-
if (!
|
|
5624
|
+
const i = this.objectStates.get(g.object_id);
|
|
5625
|
+
if (!i) return;
|
|
5626
5626
|
const D = this.interpolate(g.keyframes, I);
|
|
5627
5627
|
if (g.property.includes(".")) {
|
|
5628
5628
|
const s = g.property.split(".");
|
|
5629
|
-
let k =
|
|
5629
|
+
let k = i;
|
|
5630
5630
|
for (let a = 0; a < s.length - 1; a++)
|
|
5631
5631
|
k[s[a]] || (k[s[a]] = {}), k = k[s[a]];
|
|
5632
5632
|
s.includes("shadow") && s.includes("color"), k[s[s.length - 1]] = D;
|
|
5633
5633
|
} else
|
|
5634
|
-
|
|
5634
|
+
i[g.property] = D;
|
|
5635
5635
|
if (this.physicsEngine && ((K = C == null ? void 0 : C.physics) != null && K.enabled) && C.physics.bodyType === "Static")
|
|
5636
5636
|
if (g.property === "x" || g.property === "transform.x") {
|
|
5637
5637
|
const s = this.physicsEngine.getPosition(g.object_id);
|
|
@@ -5652,8 +5652,8 @@ class PQ {
|
|
|
5652
5652
|
g = A[D], C = A[D + 1];
|
|
5653
5653
|
break;
|
|
5654
5654
|
}
|
|
5655
|
-
const B = C.time - g.time,
|
|
5656
|
-
return typeof g.value == "string" && g.value.startsWith("#") ? this.interpolateColor(g.value, C.value,
|
|
5655
|
+
const B = C.time - g.time, i = (I - g.time) / B;
|
|
5656
|
+
return typeof g.value == "string" && g.value.startsWith("#") ? this.interpolateColor(g.value, C.value, i) : g.value + (C.value - g.value) * i;
|
|
5657
5657
|
}
|
|
5658
5658
|
interpolateColor(A, I, g) {
|
|
5659
5659
|
const C = (s) => {
|
|
@@ -5663,7 +5663,7 @@ class PQ {
|
|
|
5663
5663
|
g: parseInt(k.substring(2, 4), 16),
|
|
5664
5664
|
b: parseInt(k.substring(4, 6), 16)
|
|
5665
5665
|
};
|
|
5666
|
-
}, B = C(A),
|
|
5666
|
+
}, B = C(A), i = C(I), D = Math.round(B.r + (i.r - B.r) * g), o = Math.round(B.g + (i.g - B.g) * g), w = Math.round(B.b + (i.b - B.b) * g), K = (s) => {
|
|
5667
5667
|
const k = Math.max(0, Math.min(255, s)).toString(16);
|
|
5668
5668
|
return k.length === 1 ? "0" + k : k;
|
|
5669
5669
|
};
|
|
@@ -5673,7 +5673,7 @@ class PQ {
|
|
|
5673
5673
|
if (!this.artboard)
|
|
5674
5674
|
return;
|
|
5675
5675
|
A.clearRect(0, 0, I, g);
|
|
5676
|
-
const C = this.artboard.width, B = this.artboard.height,
|
|
5676
|
+
const C = this.artboard.width, B = this.artboard.height, i = this.calculateTransform(
|
|
5677
5677
|
I,
|
|
5678
5678
|
g,
|
|
5679
5679
|
C,
|
|
@@ -5681,11 +5681,11 @@ class PQ {
|
|
|
5681
5681
|
this.layout.fit,
|
|
5682
5682
|
this.layout.alignment
|
|
5683
5683
|
);
|
|
5684
|
-
A.save(), A.translate(
|
|
5684
|
+
A.save(), A.translate(i.tx, i.ty), A.scale(i.scaleX, i.scaleY), A.translate(C / 2, B / 2), A.fillStyle = this.artboard.backgroundColor || "#000000", A.fillRect(-C / 2, -B / 2, C, B), A.beginPath(), A.rect(-C / 2, -B / 2, C, B), A.clip(), this.artboard.objects.forEach((D) => {
|
|
5685
5685
|
this.renderObject(A, D);
|
|
5686
5686
|
}), A.restore();
|
|
5687
5687
|
}
|
|
5688
|
-
calculateTransform(A, I, g, C, B,
|
|
5688
|
+
calculateTransform(A, I, g, C, B, i) {
|
|
5689
5689
|
let D = 1, o = 1, w = 1;
|
|
5690
5690
|
const K = g / C, s = A / I;
|
|
5691
5691
|
switch (B) {
|
|
@@ -5716,7 +5716,7 @@ class PQ {
|
|
|
5716
5716
|
}
|
|
5717
5717
|
const k = g * D, a = C * o;
|
|
5718
5718
|
let R = 0, J = 0;
|
|
5719
|
-
return
|
|
5719
|
+
return i.includes("Left") ? R = 0 : i.includes("Right") ? R = A - k : R = (A - k) / 2, i.includes("Top") ? J = 0 : i.includes("Bottom") ? J = I - a : J = (I - a) / 2, { scaleX: D, scaleY: o, tx: R, ty: J };
|
|
5720
5720
|
}
|
|
5721
5721
|
renderObject(A, I) {
|
|
5722
5722
|
const g = this.objectStates.get(I.id);
|
|
@@ -5724,21 +5724,26 @@ class PQ {
|
|
|
5724
5724
|
console.warn("No state for object:", I.id);
|
|
5725
5725
|
return;
|
|
5726
5726
|
}
|
|
5727
|
-
const C = g.geometry || I.geometry, B = C.width || 0,
|
|
5727
|
+
const C = g.geometry || I.geometry, B = C.width || 0, i = C.height || 0, D = g.x, o = g.y;
|
|
5728
5728
|
A.save(), A.translate(D, o), A.rotate(g.rotation * Math.PI / 180), A.scale(g.scale_x, g.scale_y);
|
|
5729
5729
|
const w = g.style || I.style;
|
|
5730
5730
|
if (C.type === "Text") {
|
|
5731
5731
|
let K = C.text;
|
|
5732
5732
|
if (C.textInputId) {
|
|
5733
|
-
const
|
|
5734
|
-
|
|
5733
|
+
const F = this.inputs.get(C.textInputId);
|
|
5734
|
+
F !== void 0 && (K = String(F), g.geometry && (g.geometry.text = K));
|
|
5735
5735
|
}
|
|
5736
|
-
|
|
5736
|
+
const s = C.align || "center", k = C.width || 0;
|
|
5737
|
+
A.textAlign = s, A.textBaseline = "middle";
|
|
5738
|
+
let a = 0;
|
|
5739
|
+
s === "left" && (a = -k / 2), s === "right" && (a = k / 2);
|
|
5740
|
+
const R = C.fontWeight || "normal", J = C.fontStyle || "normal";
|
|
5741
|
+
A.font = `${J} ${R} ${C.fontSize}px ${C.fontFamily}`, w.fill && (A.fillStyle = w.fill.color, A.globalAlpha = (g.opacity ?? 1) * (w.fill.opacity ?? 1), A.fillText(K, a, 0)), w.stroke && w.stroke.width > 0 && (A.strokeStyle = w.stroke.color, A.lineWidth = w.stroke.width, A.globalAlpha = (g.opacity ?? 1) * (w.stroke.opacity ?? 1), A.strokeText(K, a, 0));
|
|
5737
5742
|
} else if (C.type === "Image") {
|
|
5738
5743
|
const K = C.src;
|
|
5739
5744
|
if (K) {
|
|
5740
5745
|
let s = this.imageCache.get(K);
|
|
5741
|
-
s || (s = new Image(), s.src = K, this.imageCache.set(K, s)), s.complete && s.naturalWidth > 0 && (A.globalAlpha = g.opacity ?? 1, A.drawImage(s, -B / 2, -
|
|
5746
|
+
s || (s = new Image(), s.src = K, this.imageCache.set(K, s)), s.complete && s.naturalWidth > 0 && (A.globalAlpha = g.opacity ?? 1, A.drawImage(s, -B / 2, -i / 2, B, i));
|
|
5742
5747
|
}
|
|
5743
5748
|
} else if (C.type === "SVG") {
|
|
5744
5749
|
const K = C.svgContent;
|
|
@@ -5748,31 +5753,31 @@ class PQ {
|
|
|
5748
5753
|
if (!a) {
|
|
5749
5754
|
a = new Image();
|
|
5750
5755
|
let R = K;
|
|
5751
|
-
C.colors && C.colors.length > 0 && s.length > 0 && C.colors.forEach((
|
|
5756
|
+
C.colors && C.colors.length > 0 && s.length > 0 && C.colors.forEach((M, c) => {
|
|
5752
5757
|
if (s[c]) {
|
|
5753
|
-
const p =
|
|
5758
|
+
const p = M.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&"), j = new RegExp(p, "gi");
|
|
5754
5759
|
R = R.replace(j, s[c]);
|
|
5755
5760
|
}
|
|
5756
5761
|
});
|
|
5757
|
-
const J = new Blob([R], { type: "image/svg+xml" }),
|
|
5758
|
-
a.src =
|
|
5762
|
+
const J = new Blob([R], { type: "image/svg+xml" }), F = URL.createObjectURL(J);
|
|
5763
|
+
a.src = F, this.imageCache.set(k, a);
|
|
5759
5764
|
}
|
|
5760
|
-
a.complete && a.naturalWidth > 0 && (A.globalAlpha = g.opacity ?? 1, A.drawImage(a, -B / 2, -
|
|
5765
|
+
a.complete && a.naturalWidth > 0 && (A.globalAlpha = g.opacity ?? 1, A.drawImage(a, -B / 2, -i / 2, B, i));
|
|
5761
5766
|
}
|
|
5762
5767
|
} else if (C.type === "LineGraph")
|
|
5763
|
-
this.renderLineGraph(A, C, B,
|
|
5768
|
+
this.renderLineGraph(A, C, B, i);
|
|
5764
5769
|
else {
|
|
5765
5770
|
if (A.beginPath(), C.type === "Rectangle")
|
|
5766
|
-
C.corner_radius && A.roundRect ? A.roundRect(-B / 2, -
|
|
5771
|
+
C.corner_radius && A.roundRect ? A.roundRect(-B / 2, -i / 2, B, i, C.corner_radius) : A.rect(-B / 2, -i / 2, B, i);
|
|
5767
5772
|
else if (C.type === "Ellipse")
|
|
5768
|
-
A.ellipse(0, 0, B / 2,
|
|
5773
|
+
A.ellipse(0, 0, B / 2, i / 2, 0, 0, 2 * Math.PI);
|
|
5769
5774
|
else if (C.type === "Triangle")
|
|
5770
|
-
A.moveTo(0, -
|
|
5775
|
+
A.moveTo(0, -i / 2), A.lineTo(B / 2, i / 2), A.lineTo(-B / 2, i / 2), A.closePath();
|
|
5771
5776
|
else if (C.type === "Star") {
|
|
5772
5777
|
const K = C.inner_radius, s = C.outer_radius, k = C.points || 5;
|
|
5773
5778
|
for (let a = 0; a < k * 2; a++) {
|
|
5774
|
-
const R = a * Math.PI / k - Math.PI / 2, J = a % 2 === 0 ? s : K,
|
|
5775
|
-
a === 0 ? A.moveTo(
|
|
5779
|
+
const R = a * Math.PI / k - Math.PI / 2, J = a % 2 === 0 ? s : K, F = J * Math.cos(R), M = J * Math.sin(R);
|
|
5780
|
+
a === 0 ? A.moveTo(F, M) : A.lineTo(F, M);
|
|
5776
5781
|
}
|
|
5777
5782
|
A.closePath();
|
|
5778
5783
|
}
|
|
@@ -5807,101 +5812,101 @@ class PQ {
|
|
|
5807
5812
|
A.save(), A.fillStyle = "#6366f1", A.font = "12px Inter, system-ui, sans-serif", A.textAlign = "center", A.textBaseline = "middle", A.fillText("NO DATA", 0, 0), A.restore();
|
|
5808
5813
|
return;
|
|
5809
5814
|
}
|
|
5810
|
-
let
|
|
5815
|
+
let i = 1 / 0, D = -1 / 0, o = 0;
|
|
5811
5816
|
if (B.forEach((J) => {
|
|
5812
|
-
let
|
|
5817
|
+
let F = J.data;
|
|
5813
5818
|
if (J.isVarEnabled && J.inputId) {
|
|
5814
|
-
let
|
|
5815
|
-
if (
|
|
5819
|
+
let M = this.inputs.get(J.inputId);
|
|
5820
|
+
if (M === void 0) {
|
|
5816
5821
|
const c = this.inputNameMap.get(J.inputId);
|
|
5817
|
-
c && c.length > 0 && (
|
|
5822
|
+
c && c.length > 0 && (M = this.inputs.get(c[0]));
|
|
5818
5823
|
}
|
|
5819
|
-
|
|
5824
|
+
M && Array.isArray(M) && (F = M);
|
|
5820
5825
|
}
|
|
5821
|
-
if (
|
|
5822
|
-
const
|
|
5823
|
-
|
|
5826
|
+
if (F && F.length > 0) {
|
|
5827
|
+
const M = F.filter((c) => typeof c == "number" && !isNaN(c));
|
|
5828
|
+
M.length > 0 && (i = Math.min(i, ...M), D = Math.max(D, ...M), o = Math.max(o, F.length));
|
|
5824
5829
|
}
|
|
5825
|
-
J._resolvedData =
|
|
5830
|
+
J._resolvedData = F;
|
|
5826
5831
|
}), o < 2) return;
|
|
5827
|
-
const w = D -
|
|
5828
|
-
const
|
|
5829
|
-
return C / 2 -
|
|
5832
|
+
const w = D - i, K = g / (o - 1), s = (J) => {
|
|
5833
|
+
const F = w === 0 ? 0.5 : (J - i) / w;
|
|
5834
|
+
return C / 2 - F * C;
|
|
5830
5835
|
}, k = (J) => J * K - g / 2, a = I.axisColor || "#333333";
|
|
5831
5836
|
if (I.showXAxis && (A.beginPath(), A.strokeStyle = I.xAxisColor || a, A.lineWidth = 1, A.moveTo(-g / 2, C / 2), A.lineTo(g / 2, C / 2), A.stroke()), I.showYAxis && (A.beginPath(), A.strokeStyle = I.yAxisColor || a, A.lineWidth = 1, A.moveTo(-g / 2, -C / 2), A.lineTo(-g / 2, C / 2), A.stroke()), A.fillStyle = I.axisLabelColor || "#333333", A.font = `${I.axisLabelFontSize || 10}px Inter, sans-serif`, I.showXLabels) {
|
|
5832
5837
|
A.textAlign = "center", A.textBaseline = "top";
|
|
5833
5838
|
for (let J = 0; J < o; J++) {
|
|
5834
|
-
const
|
|
5835
|
-
A.fillText(`${J + 1}`,
|
|
5839
|
+
const F = k(J);
|
|
5840
|
+
A.fillText(`${J + 1}`, F, C / 2 + 5);
|
|
5836
5841
|
}
|
|
5837
5842
|
}
|
|
5838
5843
|
if (I.showYLabels) {
|
|
5839
5844
|
A.textAlign = "right", A.textBaseline = "middle";
|
|
5840
|
-
const J = -g / 2 - 5,
|
|
5841
|
-
A.fillText(D.toFixed(1), J, s(D)), A.fillText(
|
|
5845
|
+
const J = -g / 2 - 5, F = (D + i) / 2;
|
|
5846
|
+
A.fillText(D.toFixed(1), J, s(D)), A.fillText(F.toFixed(1), J, s(F)), A.fillText(i.toFixed(1), J, s(i));
|
|
5842
5847
|
}
|
|
5843
5848
|
const R = 10;
|
|
5844
5849
|
if (B.forEach((J) => {
|
|
5845
|
-
const
|
|
5846
|
-
if (!(!
|
|
5850
|
+
const F = J._resolvedData;
|
|
5851
|
+
if (!(!F || F.length < 2)) {
|
|
5847
5852
|
if (J.showArea) {
|
|
5848
|
-
if (A.beginPath(), A.moveTo(k(0), C / 2), A.lineTo(k(0), s(
|
|
5849
|
-
for (let
|
|
5850
|
-
const c = M
|
|
5853
|
+
if (A.beginPath(), A.moveTo(k(0), C / 2), A.lineTo(k(0), s(F[0])), J.smoothing && F.length > 2)
|
|
5854
|
+
for (let M = 0; M < F.length - 1; M++) {
|
|
5855
|
+
const c = F[M === 0 ? M : M - 1], p = F[M], j = F[M + 1], _ = F[M + 1 === F.length - 1 ? M + 1 : M + 2];
|
|
5851
5856
|
for (let X = 1; X <= R; X++) {
|
|
5852
5857
|
const iA = X / R, DA = this._catmullRom(c, p, j, _, iA);
|
|
5853
|
-
A.lineTo(k(
|
|
5858
|
+
A.lineTo(k(M + iA), s(DA));
|
|
5854
5859
|
}
|
|
5855
5860
|
}
|
|
5856
5861
|
else
|
|
5857
|
-
for (let
|
|
5858
|
-
A.lineTo(k(
|
|
5859
|
-
A.lineTo(k(
|
|
5862
|
+
for (let M = 1; M < F.length; M++)
|
|
5863
|
+
A.lineTo(k(M), s(F[M]));
|
|
5864
|
+
A.lineTo(k(F.length - 1), C / 2), A.closePath(), A.globalAlpha = I.areaOpacity ?? 0.3, A.fillStyle = J.areaColor || "rgba(139, 92, 246, 0.2)", A.fill(), A.globalAlpha = 1;
|
|
5860
5865
|
}
|
|
5861
|
-
if (A.beginPath(), A.strokeStyle = J.lineColor || "#3b82f6", A.lineWidth = J.lineWidth || 2, A.lineJoin = "round", A.lineCap = "round", A.moveTo(k(0), s(
|
|
5862
|
-
for (let
|
|
5863
|
-
const c = M
|
|
5866
|
+
if (A.beginPath(), A.strokeStyle = J.lineColor || "#3b82f6", A.lineWidth = J.lineWidth || 2, A.lineJoin = "round", A.lineCap = "round", A.moveTo(k(0), s(F[0])), J.smoothing && F.length > 2)
|
|
5867
|
+
for (let M = 0; M < F.length - 1; M++) {
|
|
5868
|
+
const c = F[M === 0 ? M : M - 1], p = F[M], j = F[M + 1], _ = F[M + 1 === F.length - 1 ? M + 1 : M + 2];
|
|
5864
5869
|
for (let X = 1; X <= R; X++) {
|
|
5865
5870
|
const iA = X / R, DA = this._catmullRom(c, p, j, _, iA);
|
|
5866
|
-
A.lineTo(k(
|
|
5871
|
+
A.lineTo(k(M + iA), s(DA));
|
|
5867
5872
|
}
|
|
5868
5873
|
}
|
|
5869
5874
|
else
|
|
5870
|
-
for (let
|
|
5871
|
-
A.lineTo(k(
|
|
5872
|
-
A.stroke(), J.showPoints &&
|
|
5873
|
-
const p = k(c), j = s(
|
|
5875
|
+
for (let M = 1; M < F.length; M++)
|
|
5876
|
+
A.lineTo(k(M), s(F[M]));
|
|
5877
|
+
A.stroke(), J.showPoints && F.forEach((M, c) => {
|
|
5878
|
+
const p = k(c), j = s(M);
|
|
5874
5879
|
A.beginPath(), A.arc(p, j, (J.pointSize || 6) / 2, 0, Math.PI * 2), A.fillStyle = J.pointFill || "#ffffff", A.fill(), A.strokeStyle = J.pointStrokeColor || J.lineColor || "#3b82f6", A.lineWidth = J.pointStrokeWidth || 1, A.stroke();
|
|
5875
5880
|
});
|
|
5876
5881
|
}
|
|
5877
5882
|
}), I.showLegend && B.length > 0) {
|
|
5878
5883
|
const J = g / 2 - 10;
|
|
5879
|
-
let
|
|
5880
|
-
const
|
|
5881
|
-
A.font = `${
|
|
5884
|
+
let F = -C / 2 + 15;
|
|
5885
|
+
const M = I.legendFontSize || 10, c = M + 5;
|
|
5886
|
+
A.font = `${M}px Inter, sans-serif`, A.textAlign = "right", A.textBaseline = "alphabetic", B.forEach((p) => {
|
|
5882
5887
|
const _ = p.label || "Series", X = A.measureText(_).width;
|
|
5883
|
-
A.beginPath(), A.rect(J - X - 8 - 5,
|
|
5888
|
+
A.beginPath(), A.rect(J - X - 8 - 5, F - (8 / 2 + 2), 8, 8), A.fillStyle = p.lineColor || "#3b82f6", A.fill(), A.fillStyle = I.legendColor || "#333333", A.fillText(_, J, F), F += c;
|
|
5884
5889
|
});
|
|
5885
5890
|
}
|
|
5886
5891
|
}
|
|
5887
5892
|
_catmullRom(A, I, g, C, B) {
|
|
5888
|
-
const
|
|
5889
|
-
return (2 * I - 2 * g +
|
|
5893
|
+
const i = (g - A) * 0.5, D = (C - I) * 0.5, o = B * B, w = B * o;
|
|
5894
|
+
return (2 * I - 2 * g + i + D) * w + (-3 * I + 3 * g - 2 * i - D) * o + i * B + I;
|
|
5890
5895
|
}
|
|
5891
5896
|
}
|
|
5892
5897
|
const $Q = YQ(
|
|
5893
|
-
({ artboard:
|
|
5894
|
-
const s =
|
|
5898
|
+
({ artboard: E, src: A, className: I, style: g, autoPlay: C = !0, fit: B = "Contain", alignment: i = "Center", onReady: D, onTrigger: o, onInputUpdate: w }, K) => {
|
|
5899
|
+
const s = EI(null), k = EI(new PQ()), a = EI(), R = EI(0);
|
|
5895
5900
|
tQ(K, () => s.current), TA(() => {
|
|
5896
|
-
console.log("[ExodeUI] Layout Effect - Component Updated/Mounted"), k.current.setLayout(B,
|
|
5897
|
-
}, [B,
|
|
5901
|
+
console.log("[ExodeUI] Layout Effect - Component Updated/Mounted"), k.current.setLayout(B, i);
|
|
5902
|
+
}, [B, i]), TA(() => {
|
|
5898
5903
|
o && k.current.setTriggerCallback(o);
|
|
5899
5904
|
}, [o]), TA(() => {
|
|
5900
5905
|
w && k.current.setInputUpdateCallback(w);
|
|
5901
5906
|
}, [w]), TA(() => {
|
|
5902
5907
|
(async () => {
|
|
5903
|
-
const
|
|
5904
|
-
let c =
|
|
5908
|
+
const M = k.current;
|
|
5909
|
+
let c = E;
|
|
5905
5910
|
if (!c && A)
|
|
5906
5911
|
try {
|
|
5907
5912
|
c = await (await fetch(A)).json();
|
|
@@ -5909,27 +5914,27 @@ const $Q = YQ(
|
|
|
5909
5914
|
console.error("Failed to load ExodeUI animation:", p);
|
|
5910
5915
|
return;
|
|
5911
5916
|
}
|
|
5912
|
-
c && (
|
|
5917
|
+
c && (M.load(c), D && D(M));
|
|
5913
5918
|
})();
|
|
5914
|
-
}, [
|
|
5915
|
-
const
|
|
5916
|
-
if (!
|
|
5917
|
-
const c =
|
|
5919
|
+
}, [E, A]), TA(() => {
|
|
5920
|
+
const F = k.current, M = s.current;
|
|
5921
|
+
if (!M) return;
|
|
5922
|
+
const c = M.getContext("2d");
|
|
5918
5923
|
if (!c) return;
|
|
5919
5924
|
const p = (j) => {
|
|
5920
5925
|
R.current || (R.current = j);
|
|
5921
5926
|
const _ = (j - R.current) / 1e3;
|
|
5922
|
-
R.current = j, C &&
|
|
5923
|
-
const X = window.devicePixelRatio || 1, iA =
|
|
5924
|
-
(
|
|
5927
|
+
R.current = j, C && F.advance(_);
|
|
5928
|
+
const X = window.devicePixelRatio || 1, iA = M.getBoundingClientRect(), DA = Math.floor(iA.width * X), aA = Math.floor(iA.height * X);
|
|
5929
|
+
(M.width !== DA || M.height !== aA) && (M.width = DA, M.height = aA), F.render(c, DA, aA), a.current = requestAnimationFrame(p);
|
|
5925
5930
|
};
|
|
5926
5931
|
return a.current = requestAnimationFrame(p), () => {
|
|
5927
5932
|
a.current && cancelAnimationFrame(a.current);
|
|
5928
5933
|
};
|
|
5929
5934
|
}, [C]);
|
|
5930
|
-
const J = (
|
|
5931
|
-
const c =
|
|
5932
|
-
k.current.handlePointerInput(
|
|
5935
|
+
const J = (F, M) => {
|
|
5936
|
+
const c = F.currentTarget.getBoundingClientRect(), p = F.clientX - c.left, j = F.clientY - c.top, _ = c.width, X = c.height;
|
|
5937
|
+
k.current.handlePointerInput(M, p, j, _, X);
|
|
5933
5938
|
};
|
|
5934
5939
|
return /* @__PURE__ */ eQ.jsx(
|
|
5935
5940
|
"canvas",
|
|
@@ -5937,39 +5942,42 @@ const $Q = YQ(
|
|
|
5937
5942
|
ref: s,
|
|
5938
5943
|
style: { width: "100%", height: "100%", ...g },
|
|
5939
5944
|
className: I,
|
|
5940
|
-
onPointerDown: (
|
|
5941
|
-
onPointerUp: (
|
|
5942
|
-
onPointerMove: (
|
|
5943
|
-
onPointerLeave: (
|
|
5944
|
-
onClick: (
|
|
5945
|
+
onPointerDown: (F) => J(F, "down"),
|
|
5946
|
+
onPointerUp: (F) => J(F, "up"),
|
|
5947
|
+
onPointerMove: (F) => J(F, "move"),
|
|
5948
|
+
onPointerLeave: (F) => J(F, "blur"),
|
|
5949
|
+
onClick: (F) => J(F, "click")
|
|
5945
5950
|
}
|
|
5946
5951
|
);
|
|
5947
5952
|
}
|
|
5948
5953
|
);
|
|
5949
5954
|
function AB() {
|
|
5950
|
-
const [
|
|
5951
|
-
|
|
5952
|
-
}, [
|
|
5953
|
-
|
|
5954
|
-
}, [
|
|
5955
|
-
|
|
5956
|
-
}, [
|
|
5957
|
-
|
|
5958
|
-
}, [
|
|
5955
|
+
const [E, A] = LQ(null), I = ZA((D, o) => {
|
|
5956
|
+
E == null || E.setInputBool(D, o);
|
|
5957
|
+
}, [E]), g = ZA((D, o) => {
|
|
5958
|
+
E == null || E.setInputNumber(D, o);
|
|
5959
|
+
}, [E]), C = ZA((D) => {
|
|
5960
|
+
E == null || E.fireTrigger(D);
|
|
5961
|
+
}, [E]), B = ZA((D, o) => {
|
|
5962
|
+
E == null || E.setInputText(D, o);
|
|
5963
|
+
}, [E]), i = ZA((D, o) => {
|
|
5964
|
+
E == null || E.setInputNumberArray(D, o);
|
|
5965
|
+
}, [E]);
|
|
5959
5966
|
return {
|
|
5960
5967
|
setEngine: A,
|
|
5961
5968
|
// Pass this to onReady
|
|
5962
|
-
engine:
|
|
5969
|
+
engine: E,
|
|
5963
5970
|
setInputBool: I,
|
|
5964
5971
|
setInputNumber: g,
|
|
5965
5972
|
fireTrigger: C,
|
|
5966
|
-
setInputText: B
|
|
5973
|
+
setInputText: B,
|
|
5974
|
+
setInputNumberArray: i
|
|
5967
5975
|
};
|
|
5968
5976
|
}
|
|
5969
5977
|
export {
|
|
5970
5978
|
HQ as ConditionOp,
|
|
5971
5979
|
$Q as ExodeUICanvas,
|
|
5972
5980
|
PQ as ExodeUIEngine,
|
|
5973
|
-
|
|
5981
|
+
WA as LogicOp,
|
|
5974
5982
|
AB as useExodeUI
|
|
5975
5983
|
};
|