exodeui 2.6.15 → 2.6.16
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 +1 -1
- package/dist/index.mjs +70 -64
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@ var kC = (i, A, I) => A in i ? NC(i, A, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var _ = (i, A, I) => kC(i, typeof A != "symbol" ? A + "" : A, I);
|
|
4
4
|
import { jsx as yC } from "react/jsx-runtime";
|
|
5
5
|
import { forwardRef as FC, useRef as DI, useImperativeHandle as MC, useEffect as jA, useState as JC, useCallback as uA } from "react";
|
|
6
|
-
var UC = /* @__PURE__ */ ((i) => (i.Equal = "Equal", i.NotEqual = "NotEqual", i.GreaterThan = "GreaterThan", i.LessThan = "LessThan", i.GreaterEqual = "GreaterEqual", i.LessEqual = "LessEqual", i.IsTrue = "IsTrue", i.IsFalse = "IsFalse", i))(UC || {}),
|
|
6
|
+
var UC = /* @__PURE__ */ ((i) => (i.Equal = "Equal", i.NotEqual = "NotEqual", i.GreaterThan = "GreaterThan", i.LessThan = "LessThan", i.GreaterEqual = "GreaterEqual", i.LessEqual = "LessEqual", i.IsTrue = "IsTrue", i.IsFalse = "IsFalse", i))(UC || {}), PA = /* @__PURE__ */ ((i) => (i.AND = "AND", i.OR = "OR", i.NOT = "NOT", i.XOR = "XOR", i))(PA || {});
|
|
7
7
|
let B;
|
|
8
8
|
const f = new Array(128).fill(void 0);
|
|
9
9
|
function H(i) {
|
|
@@ -27,9 +27,9 @@ const Tg = typeof TextDecoder < "u" ? new TextDecoder("utf-8", { ignoreBOM: !0,
|
|
|
27
27
|
throw Error("TextDecoder not available");
|
|
28
28
|
} };
|
|
29
29
|
typeof TextDecoder < "u" && Tg.decode();
|
|
30
|
-
let
|
|
30
|
+
let VA = null;
|
|
31
31
|
function fI(i, A) {
|
|
32
|
-
return i >>>= 0, Tg.decode((
|
|
32
|
+
return i >>>= 0, Tg.decode((VA !== null && VA.byteLength !== 0 || (VA = new Uint8Array(B.memory.buffer)), VA).subarray(i, i + A));
|
|
33
33
|
}
|
|
34
34
|
function Y(i) {
|
|
35
35
|
return i == null;
|
|
@@ -99,7 +99,7 @@ class dA {
|
|
|
99
99
|
}
|
|
100
100
|
castRay(A, I, g, C, Q, E, D, o, w, h, G, S) {
|
|
101
101
|
try {
|
|
102
|
-
s(A, DA), s(I,
|
|
102
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N), s(Q, N);
|
|
103
103
|
const K = B.rawbroadphase_castRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E, D, o, Y(w) ? 4294967297 : w >>> 0, !Y(h), Y(h) ? 0 : h, !Y(G), Y(G) ? 0 : G, $(S));
|
|
104
104
|
return K === 0 ? void 0 : _I.__wrap(K);
|
|
105
105
|
} finally {
|
|
@@ -108,7 +108,7 @@ class dA {
|
|
|
108
108
|
}
|
|
109
109
|
castRayAndGetNormal(A, I, g, C, Q, E, D, o, w, h, G, S) {
|
|
110
110
|
try {
|
|
111
|
-
s(A, DA), s(I,
|
|
111
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N), s(Q, N);
|
|
112
112
|
const K = B.rawbroadphase_castRayAndGetNormal(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E, D, o, Y(w) ? 4294967297 : w >>> 0, !Y(h), Y(h) ? 0 : h, !Y(G), Y(G) ? 0 : G, $(S));
|
|
113
113
|
return K === 0 ? void 0 : FI.__wrap(K);
|
|
114
114
|
} finally {
|
|
@@ -117,7 +117,7 @@ class dA {
|
|
|
117
117
|
}
|
|
118
118
|
intersectionsWithRay(A, I, g, C, Q, E, D, o, w, h, G, S, K) {
|
|
119
119
|
try {
|
|
120
|
-
s(A, DA), s(I,
|
|
120
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N), s(Q, N), B.rawbroadphase_intersectionsWithRay(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E, D, $(o), w, Y(h) ? 4294967297 : h >>> 0, !Y(G), Y(G) ? 0 : G, !Y(S), Y(S) ? 0 : S, $(K));
|
|
121
121
|
} finally {
|
|
122
122
|
f[X++] = void 0, f[X++] = void 0;
|
|
123
123
|
}
|
|
@@ -125,7 +125,7 @@ class dA {
|
|
|
125
125
|
intersectionWithShape(A, I, g, C, Q, E, D, o, w, h, G) {
|
|
126
126
|
try {
|
|
127
127
|
const M = B.__wbindgen_add_to_stack_pointer(-16);
|
|
128
|
-
s(A, DA), s(I,
|
|
128
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N), s(Q, b), s(E, e), B.rawbroadphase_intersectionWithShape(M, this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, D, Y(o) ? 4294967297 : o >>> 0, !Y(w), Y(w) ? 0 : w, !Y(h), Y(h) ? 0 : h, $(G));
|
|
129
129
|
var S = wA().getInt32(M + 0, !0), K = wA().getFloat64(M + 8, !0);
|
|
130
130
|
return S === 0 ? void 0 : K;
|
|
131
131
|
} finally {
|
|
@@ -134,7 +134,7 @@ class dA {
|
|
|
134
134
|
}
|
|
135
135
|
projectPoint(A, I, g, C, Q, E, D, o, w, h) {
|
|
136
136
|
try {
|
|
137
|
-
s(A, DA), s(I,
|
|
137
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N);
|
|
138
138
|
const G = B.rawbroadphase_projectPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, E, Y(D) ? 4294967297 : D >>> 0, !Y(o), Y(o) ? 0 : o, !Y(w), Y(w) ? 0 : w, $(h));
|
|
139
139
|
return G === 0 ? void 0 : GI.__wrap(G);
|
|
140
140
|
} finally {
|
|
@@ -143,7 +143,7 @@ class dA {
|
|
|
143
143
|
}
|
|
144
144
|
projectPointAndGetFeature(A, I, g, C, Q, E, D, o, w) {
|
|
145
145
|
try {
|
|
146
|
-
s(A, DA), s(I,
|
|
146
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N);
|
|
147
147
|
const h = B.rawbroadphase_projectPointAndGetFeature(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, Y(E) ? 4294967297 : E >>> 0, !Y(D), Y(D) ? 0 : D, !Y(o), Y(o) ? 0 : o, $(w));
|
|
148
148
|
return h === 0 ? void 0 : GI.__wrap(h);
|
|
149
149
|
} finally {
|
|
@@ -152,14 +152,14 @@ class dA {
|
|
|
152
152
|
}
|
|
153
153
|
intersectionsWithPoint(A, I, g, C, Q, E, D, o, w, h) {
|
|
154
154
|
try {
|
|
155
|
-
s(A, DA), s(I,
|
|
155
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N), B.rawbroadphase_intersectionsWithPoint(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, $(Q), E, Y(D) ? 4294967297 : D >>> 0, !Y(o), Y(o) ? 0 : o, !Y(w), Y(w) ? 0 : w, $(h));
|
|
156
156
|
} finally {
|
|
157
157
|
f[X++] = void 0, f[X++] = void 0;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
castShape(A, I, g, C, Q, E, D, o, w, h, G, S, K, M, F) {
|
|
161
161
|
try {
|
|
162
|
-
s(A, DA), s(I,
|
|
162
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N), s(Q, b), s(E, N), s(D, e);
|
|
163
163
|
const J = B.rawbroadphase_castShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o, w, h, G, Y(S) ? 4294967297 : S >>> 0, !Y(K), Y(K) ? 0 : K, !Y(M), Y(M) ? 0 : M, $(F));
|
|
164
164
|
return J === 0 ? void 0 : kI.__wrap(J);
|
|
165
165
|
} finally {
|
|
@@ -168,14 +168,14 @@ class dA {
|
|
|
168
168
|
}
|
|
169
169
|
intersectionsWithShape(A, I, g, C, Q, E, D, o, w, h, G, S) {
|
|
170
170
|
try {
|
|
171
|
-
s(A, DA), s(I,
|
|
171
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N), s(Q, b), s(E, e), B.rawbroadphase_intersectionsWithShape(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, $(D), o, Y(w) ? 4294967297 : w >>> 0, !Y(h), Y(h) ? 0 : h, !Y(G), Y(G) ? 0 : G, $(S));
|
|
172
172
|
} finally {
|
|
173
173
|
f[X++] = void 0, f[X++] = void 0;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
collidersWithAabbIntersectingAabb(A, I, g, C, Q, E) {
|
|
177
177
|
try {
|
|
178
|
-
s(A, DA), s(I,
|
|
178
|
+
s(A, DA), s(I, P), s(g, gA), s(C, N), s(Q, N), B.rawbroadphase_collidersWithAabbIntersectingAabb(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, $(E));
|
|
179
179
|
} finally {
|
|
180
180
|
f[X++] = void 0;
|
|
181
181
|
}
|
|
@@ -555,7 +555,7 @@ class gA {
|
|
|
555
555
|
createCollider(A, I, g, C, Q, E, D, o, w, h, G, S, K, M, F, J, k, y, U, R, c, L, r, p) {
|
|
556
556
|
try {
|
|
557
557
|
const GA = B.__wbindgen_add_to_stack_pointer(-16);
|
|
558
|
-
s(I, e), s(g, N), s(C, b), s(D, N), s(p,
|
|
558
|
+
s(I, e), s(g, N), s(C, b), s(D, N), s(p, P), B.rawcolliderset_createCollider(GA, this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q, E, D.__wbg_ptr, o, w, h, G, S, K, M, F, J, k, y, U, R, c, L, r, p.__wbg_ptr);
|
|
559
559
|
var q = wA().getInt32(GA + 0, !0), AA = wA().getFloat64(GA + 8, !0);
|
|
560
560
|
return q === 0 ? void 0 : AA;
|
|
561
561
|
} finally {
|
|
@@ -563,7 +563,7 @@ class gA {
|
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
remove(A, I, g, C) {
|
|
566
|
-
s(I, qA), s(g,
|
|
566
|
+
s(I, qA), s(g, P), B.rawcolliderset_remove(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C);
|
|
567
567
|
}
|
|
568
568
|
isHandleValid(A) {
|
|
569
569
|
return B.rawcolliderset_contains(this.__wbg_ptr, A) !== 0;
|
|
@@ -657,10 +657,10 @@ class uI {
|
|
|
657
657
|
const yg = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
658
658
|
}, unregister: () => {
|
|
659
659
|
} } : new FinalizationRegistry((i) => B.__wbg_rawcontactmanifold_free(i >>> 0, 1));
|
|
660
|
-
class
|
|
660
|
+
class PI {
|
|
661
661
|
static __wrap(A) {
|
|
662
662
|
A >>>= 0;
|
|
663
|
-
const I = Object.create(
|
|
663
|
+
const I = Object.create(PI.prototype);
|
|
664
664
|
return I.__wbg_ptr = A, yg.register(I, I.__wbg_ptr, I), I;
|
|
665
665
|
}
|
|
666
666
|
__destroy_into_raw() {
|
|
@@ -739,10 +739,10 @@ class VI {
|
|
|
739
739
|
const Fg = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
740
740
|
}, unregister: () => {
|
|
741
741
|
} } : new FinalizationRegistry((i) => B.__wbg_rawcontactpair_free(i >>> 0, 1));
|
|
742
|
-
class
|
|
742
|
+
class VI {
|
|
743
743
|
static __wrap(A) {
|
|
744
744
|
A >>>= 0;
|
|
745
|
-
const I = Object.create(
|
|
745
|
+
const I = Object.create(VI.prototype);
|
|
746
746
|
return I.__wbg_ptr = A, Fg.register(I, I.__wbg_ptr, I), I;
|
|
747
747
|
}
|
|
748
748
|
__destroy_into_raw() {
|
|
@@ -764,7 +764,7 @@ class PI {
|
|
|
764
764
|
}
|
|
765
765
|
contactManifold(A) {
|
|
766
766
|
const I = B.rawcontactpair_contactManifold(this.__wbg_ptr, A);
|
|
767
|
-
return I === 0 ? void 0 :
|
|
767
|
+
return I === 0 ? void 0 : PI.__wrap(I);
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
const Mg = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
@@ -791,7 +791,7 @@ class cC {
|
|
|
791
791
|
}
|
|
792
792
|
render(A, I, g, C, Q, E, D) {
|
|
793
793
|
try {
|
|
794
|
-
s(A,
|
|
794
|
+
s(A, P), s(I, gA), s(g, rA), s(C, lA), s(Q, DA), B.rawdebugrenderpipeline_render(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E, $(D));
|
|
795
795
|
} finally {
|
|
796
796
|
f[X++] = void 0;
|
|
797
797
|
}
|
|
@@ -836,7 +836,7 @@ class zI {
|
|
|
836
836
|
}
|
|
837
837
|
takeBodies() {
|
|
838
838
|
const A = B.rawdeserializedworld_takeBodies(this.__wbg_ptr);
|
|
839
|
-
return A === 0 ? void 0 :
|
|
839
|
+
return A === 0 ? void 0 : P.__wrap(A);
|
|
840
840
|
}
|
|
841
841
|
takeColliders() {
|
|
842
842
|
const A = B.rawdeserializedworld_takeColliders(this.__wbg_ptr);
|
|
@@ -1231,7 +1231,7 @@ class tC {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
computeColliderMovement(A, I, g, C, Q, E, D, o, w, h, G, S) {
|
|
1233
1233
|
try {
|
|
1234
|
-
s(I, dA), s(g, DA), s(C,
|
|
1234
|
+
s(I, dA), s(g, DA), s(C, P), s(Q, gA), s(D, N), B.rawkinematiccharactercontroller_computeColliderMovement(this.__wbg_ptr, A, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E, D.__wbg_ptr, o, Y(w) ? 4294967297 : Math.fround(w), h, Y(G) ? 4294967297 : G >>> 0, $(S));
|
|
1235
1235
|
} finally {
|
|
1236
1236
|
f[X++] = void 0;
|
|
1237
1237
|
}
|
|
@@ -1355,7 +1355,7 @@ class DA {
|
|
|
1355
1355
|
}
|
|
1356
1356
|
contact_pair(A, I) {
|
|
1357
1357
|
const g = B.rawnarrowphase_contact_pair(this.__wbg_ptr, A, I);
|
|
1358
|
-
return g === 0 ? void 0 :
|
|
1358
|
+
return g === 0 ? void 0 : VI.__wrap(g);
|
|
1359
1359
|
}
|
|
1360
1360
|
intersection_pairs_with(A, I) {
|
|
1361
1361
|
B.rawnarrowphase_intersection_pairs_with(this.__wbg_ptr, A, O(I));
|
|
@@ -1435,10 +1435,10 @@ class YC {
|
|
|
1435
1435
|
return B.rawphysicspipeline_timing_user_changes(this.__wbg_ptr);
|
|
1436
1436
|
}
|
|
1437
1437
|
step(A, I, g, C, Q, E, D, o, w, h) {
|
|
1438
|
-
s(A, N), s(I, ZA), s(g, qA), s(C, dA), s(Q, DA), s(E,
|
|
1438
|
+
s(A, N), s(I, ZA), s(g, qA), s(C, dA), s(Q, DA), s(E, P), s(D, gA), s(o, rA), s(w, lA), s(h, bI), B.rawphysicspipeline_step(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, h.__wbg_ptr);
|
|
1439
1439
|
}
|
|
1440
1440
|
stepWithEvents(A, I, g, C, Q, E, D, o, w, h, G, S, K, M) {
|
|
1441
|
-
s(A, N), s(I, ZA), s(g, qA), s(C, dA), s(Q, DA), s(E,
|
|
1441
|
+
s(A, N), s(I, ZA), s(g, qA), s(C, dA), s(Q, DA), s(E, P), s(D, gA), s(o, rA), s(w, lA), s(h, bI), s(G, jg), B.rawphysicspipeline_stepWithEvents(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr, h.__wbg_ptr, G.__wbg_ptr, O(S), O(K), O(M));
|
|
1442
1442
|
}
|
|
1443
1443
|
}
|
|
1444
1444
|
const Yg = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
@@ -1473,18 +1473,18 @@ class eC {
|
|
|
1473
1473
|
B.rawpidcontroller_reset_integrals(this.__wbg_ptr);
|
|
1474
1474
|
}
|
|
1475
1475
|
apply_linear_correction(A, I, g, C, Q) {
|
|
1476
|
-
s(I,
|
|
1476
|
+
s(I, P), s(C, N), s(Q, N), B.rawpidcontroller_apply_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, Q.__wbg_ptr);
|
|
1477
1477
|
}
|
|
1478
1478
|
apply_angular_correction(A, I, g, C, Q) {
|
|
1479
|
-
s(I,
|
|
1479
|
+
s(I, P), B.rawpidcontroller_apply_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C, Q);
|
|
1480
1480
|
}
|
|
1481
1481
|
linear_correction(A, I, g, C, Q) {
|
|
1482
|
-
s(I,
|
|
1482
|
+
s(I, P), s(C, N), s(Q, N);
|
|
1483
1483
|
const E = B.rawpidcontroller_linear_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C.__wbg_ptr, Q.__wbg_ptr);
|
|
1484
1484
|
return N.__wrap(E);
|
|
1485
1485
|
}
|
|
1486
1486
|
angular_correction(A, I, g, C, Q) {
|
|
1487
|
-
return s(I,
|
|
1487
|
+
return s(I, P), B.rawpidcontroller_angular_correction(this.__wbg_ptr, A, I.__wbg_ptr, g, C, Q);
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
1490
1490
|
const eg = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
@@ -1641,10 +1641,10 @@ class MI {
|
|
|
1641
1641
|
const HI = typeof FinalizationRegistry > "u" ? { register: () => {
|
|
1642
1642
|
}, unregister: () => {
|
|
1643
1643
|
} } : new FinalizationRegistry((i) => B.__wbg_rawrigidbodyset_free(i >>> 0, 1));
|
|
1644
|
-
class
|
|
1644
|
+
class P {
|
|
1645
1645
|
static __wrap(A) {
|
|
1646
1646
|
A >>>= 0;
|
|
1647
|
-
const I = Object.create(
|
|
1647
|
+
const I = Object.create(P.prototype);
|
|
1648
1648
|
return I.__wbg_ptr = A, HI.register(I, I.__wbg_ptr, I), I;
|
|
1649
1649
|
}
|
|
1650
1650
|
__destroy_into_raw() {
|
|
@@ -1946,7 +1946,7 @@ class LC {
|
|
|
1946
1946
|
return this.__wbg_ptr = A >>> 0, Hg.register(this, this.__wbg_ptr, this), this;
|
|
1947
1947
|
}
|
|
1948
1948
|
serializeAll(A, I, g, C, Q, E, D, o, w) {
|
|
1949
|
-
return s(A, N), s(I, ZA), s(g, qA), s(C, dA), s(Q, DA), s(E,
|
|
1949
|
+
return s(A, N), s(I, ZA), s(g, qA), s(C, dA), s(Q, DA), s(E, P), s(D, gA), s(o, rA), s(w, lA), wI(B.rawserializationpipeline_serializeAll(this.__wbg_ptr, A.__wbg_ptr, I.__wbg_ptr, g.__wbg_ptr, C.__wbg_ptr, Q.__wbg_ptr, E.__wbg_ptr, D.__wbg_ptr, o.__wbg_ptr, w.__wbg_ptr));
|
|
1950
1950
|
}
|
|
1951
1951
|
deserializeAll(A) {
|
|
1952
1952
|
const I = B.rawserializationpipeline_deserializeAll(this.__wbg_ptr, O(A));
|
|
@@ -2302,7 +2302,7 @@ async function xg(i) {
|
|
|
2302
2302
|
}
|
|
2303
2303
|
}(await i, A);
|
|
2304
2304
|
return function(C, Q) {
|
|
2305
|
-
return B = C.exports, xg.__wbindgen_wasm_module = Q, fA = null, _A = null, zA = null, $A = null,
|
|
2305
|
+
return B = C.exports, xg.__wbindgen_wasm_module = Q, fA = null, _A = null, zA = null, $A = null, VA = null, B;
|
|
2306
2306
|
}(I, g);
|
|
2307
2307
|
}
|
|
2308
2308
|
class mg {
|
|
@@ -2696,7 +2696,7 @@ class UI {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
class Xg {
|
|
2698
2698
|
constructor(A) {
|
|
2699
|
-
this.raw = A || new
|
|
2699
|
+
this.raw = A || new P(), this.map = new UI(), A && A.forEachRigidBodyHandle((I) => {
|
|
2700
2700
|
this.map.set(I, new mI(A, null, I));
|
|
2701
2701
|
});
|
|
2702
2702
|
}
|
|
@@ -2819,9 +2819,9 @@ class nA {
|
|
|
2819
2819
|
case pA.Fixed:
|
|
2820
2820
|
return new ug(A, I, g);
|
|
2821
2821
|
case pA.Spring:
|
|
2822
|
-
return new Pg(A, I, g);
|
|
2823
|
-
case pA.Rope:
|
|
2824
2822
|
return new Vg(A, I, g);
|
|
2823
|
+
case pA.Rope:
|
|
2824
|
+
return new Pg(A, I, g);
|
|
2825
2825
|
default:
|
|
2826
2826
|
return new nA(A, I, g);
|
|
2827
2827
|
}
|
|
@@ -2890,10 +2890,10 @@ class $I extends nA {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
class ug extends nA {
|
|
2892
2892
|
}
|
|
2893
|
-
class Vg extends nA {
|
|
2894
|
-
}
|
|
2895
2893
|
class Pg extends nA {
|
|
2896
2894
|
}
|
|
2895
|
+
class Vg extends nA {
|
|
2896
|
+
}
|
|
2897
2897
|
class zg extends $I {
|
|
2898
2898
|
rawAxis() {
|
|
2899
2899
|
return NI.LinX;
|
|
@@ -4470,7 +4470,7 @@ var FA = Object.freeze({ __proto__: null, version: bC, reserveMemory: TC, Vector
|
|
|
4470
4470
|
return TI;
|
|
4471
4471
|
}, get JointAxesMask() {
|
|
4472
4472
|
return ZI;
|
|
4473
|
-
}, ImpulseJoint: nA, UnitImpulseJoint: $I, FixedImpulseJoint: ug, RopeImpulseJoint:
|
|
4473
|
+
}, ImpulseJoint: nA, UnitImpulseJoint: $I, FixedImpulseJoint: ug, RopeImpulseJoint: Pg, SpringImpulseJoint: Vg, PrismaticImpulseJoint: zg, RevoluteImpulseJoint: _g, JointData: bA, ImpulseJointSet: $g, MultibodyJoint: WA, UnitMultibodyJoint: Ag, FixedMultibodyJoint: AC, PrismaticMultibodyJoint: IC, RevoluteMultibodyJoint: gC, MultibodyJointSet: CC, get CoefficientCombineRule() {
|
|
4474
4474
|
return gI;
|
|
4475
4475
|
}, CCDSolver: QC, IslandManager: BC, BroadPhase: EC, NarrowPhase: iC, TempContactManifold: DC, Shape: SA, get ShapeType() {
|
|
4476
4476
|
return sA;
|
|
@@ -4913,13 +4913,13 @@ class WC {
|
|
|
4913
4913
|
return S ? S.sourceId ? this.evaluateLogicTree(S.sourceId, S.sourceHandleId, g) : S.value !== void 0 ? S.value : G : G;
|
|
4914
4914
|
};
|
|
4915
4915
|
switch (C.op) {
|
|
4916
|
-
case
|
|
4916
|
+
case PA.AND:
|
|
4917
4917
|
return w("a", !1) && w("b", !1);
|
|
4918
|
-
case
|
|
4918
|
+
case PA.OR:
|
|
4919
4919
|
return w("a", !1) || w("b", !1);
|
|
4920
|
-
case
|
|
4920
|
+
case PA.NOT:
|
|
4921
4921
|
return !w("in", !1);
|
|
4922
|
-
case
|
|
4922
|
+
case PA.XOR:
|
|
4923
4923
|
return !!w("a", !1) != !!w("b", !1);
|
|
4924
4924
|
default:
|
|
4925
4925
|
return 0;
|
|
@@ -5409,9 +5409,9 @@ class WC {
|
|
|
5409
5409
|
hA.forEach((t, n) => {
|
|
5410
5410
|
const l = String(t || "").split(" ");
|
|
5411
5411
|
let Z = "";
|
|
5412
|
-
for (let
|
|
5413
|
-
const BA = Z + l[
|
|
5414
|
-
x(BA.trim()) > IA &&
|
|
5412
|
+
for (let V = 0; V < l.length; V++) {
|
|
5413
|
+
const BA = Z + l[V] + " ";
|
|
5414
|
+
x(BA.trim()) > IA && V > 0 ? (d.push({ text: Z.trim(), isParaEnd: !1 }), Z = l[V] + " ") : Z = BA;
|
|
5415
5415
|
}
|
|
5416
5416
|
d.push({ text: Z.trim(), isParaEnd: n < hA.length - 1 });
|
|
5417
5417
|
});
|
|
@@ -5421,7 +5421,7 @@ class WC {
|
|
|
5421
5421
|
u += t * W;
|
|
5422
5422
|
}
|
|
5423
5423
|
p === "middle" || p === "center" ? kA -= u / 2 - r / 2 : p === "bottom" && (kA -= u - r);
|
|
5424
|
-
const m = (t, n, l, Z,
|
|
5424
|
+
const m = (t, n, l, Z, V) => {
|
|
5425
5425
|
var BA, RA;
|
|
5426
5426
|
if (v === 0 && (Q.enableSegments !== !0 || !Q.segments || Q.segments.length === 0))
|
|
5427
5427
|
Z ? A.strokeText(t, n, l) : A.fillText(t, n, l);
|
|
@@ -5433,7 +5433,7 @@ class WC {
|
|
|
5433
5433
|
for (let iA = 0; iA < t.length; iA++) {
|
|
5434
5434
|
const yA = t[iA];
|
|
5435
5435
|
if (Q.enableSegments === !0 && Q.segments && Q.segments.length > 0) {
|
|
5436
|
-
const tA =
|
|
5436
|
+
const tA = V + iA;
|
|
5437
5437
|
let YA = 0;
|
|
5438
5438
|
const QA = Q.segments.find((KA) => {
|
|
5439
5439
|
if (!KA || typeof KA.text != "string") return !1;
|
|
@@ -5459,9 +5459,9 @@ class WC {
|
|
|
5459
5459
|
const t = A.globalAlpha, n = this.createCanvasFill(A, K.fill, E, D);
|
|
5460
5460
|
A.fillStyle = n || K.fill.color || "#000000", A.globalAlpha = t * (K.fill.opacity ?? 1);
|
|
5461
5461
|
let l = 0, Z = kA;
|
|
5462
|
-
d.forEach((
|
|
5463
|
-
const BA = y.indexOf(
|
|
5464
|
-
BA !== -1 && (m(
|
|
5462
|
+
d.forEach((V) => {
|
|
5463
|
+
const BA = y.indexOf(V.text, l);
|
|
5464
|
+
BA !== -1 && (m(V.text, GA, Z, !1, BA), l = BA + V.text.length, Z += T + (V.isParaEnd ? W : 0));
|
|
5465
5465
|
}), A.globalAlpha = t;
|
|
5466
5466
|
}
|
|
5467
5467
|
if (K.stroke && K.stroke.width > 0) {
|
|
@@ -5469,18 +5469,21 @@ class WC {
|
|
|
5469
5469
|
A.strokeStyle = K.stroke.color, A.lineWidth = K.stroke.width, A.globalAlpha = t * (K.stroke.opacity ?? 1);
|
|
5470
5470
|
let n = 0, l = kA;
|
|
5471
5471
|
d.forEach((Z) => {
|
|
5472
|
-
const
|
|
5473
|
-
|
|
5472
|
+
const V = y.indexOf(Z.text, n);
|
|
5473
|
+
V !== -1 && (m(Z.text, GA, l, !0, V), n = V + Z.text.length, l += T + (Z.isParaEnd ? W : 0));
|
|
5474
5474
|
}), A.globalAlpha = t;
|
|
5475
5475
|
}
|
|
5476
5476
|
} else if (Q.type === "Image") {
|
|
5477
5477
|
const k = Q.src;
|
|
5478
5478
|
if (k) {
|
|
5479
5479
|
let y = this.imageCache.get(k);
|
|
5480
|
-
y || (y = new Image(), y.onload = () => {
|
|
5480
|
+
if (y || (y = new Image(), y.onload = () => {
|
|
5481
5481
|
}, y.onerror = () => {
|
|
5482
5482
|
console.error(`[ExodeUI] Image load failed: ${k.substring(0, 100)}${k.length > 100 ? "..." : ""}`);
|
|
5483
|
-
}, y.src = k, this.imageCache.set(k, y)), y.complete && y.naturalWidth > 0
|
|
5483
|
+
}, y.src = k, this.imageCache.set(k, y)), y.complete && y.naturalWidth > 0) {
|
|
5484
|
+
const U = Q.corner_radius ?? Q.cornerRadius ?? 0;
|
|
5485
|
+
U !== 0 ? (A.save(), this.applyPath(A, { type: "Rectangle", corner_radius: U }, E, D), A.clip(), A.drawImage(y, -E / 2, -D / 2, E, D), A.restore()) : A.drawImage(y, -E / 2, -D / 2, E, D);
|
|
5486
|
+
}
|
|
5484
5487
|
}
|
|
5485
5488
|
} else if (Q.type === "SVG") {
|
|
5486
5489
|
const k = Q.svgContent;
|
|
@@ -5499,7 +5502,10 @@ class WC {
|
|
|
5499
5502
|
const L = new Blob([c], { type: "image/svg+xml" }), r = URL.createObjectURL(L);
|
|
5500
5503
|
R.src = r, this.imageCache.set(U, R);
|
|
5501
5504
|
}
|
|
5502
|
-
R.complete && R.naturalWidth > 0
|
|
5505
|
+
if (R.complete && R.naturalWidth > 0) {
|
|
5506
|
+
const c = Q.corner_radius ?? Q.cornerRadius ?? 0;
|
|
5507
|
+
c !== 0 ? (A.save(), this.applyPath(A, { type: "Rectangle", corner_radius: c }, E, D), A.clip(), A.drawImage(R, -E / 2, -D / 2, E, D), A.restore()) : A.drawImage(R, -E / 2, -D / 2, E, D);
|
|
5508
|
+
}
|
|
5503
5509
|
}
|
|
5504
5510
|
} else if (Q.type === "LineGraph")
|
|
5505
5511
|
this.renderLineGraph(A, Q, E, D);
|
|
@@ -5582,8 +5588,8 @@ class WC {
|
|
|
5582
5588
|
}), I.is_closed && A.closePath());
|
|
5583
5589
|
}
|
|
5584
5590
|
renderInputBox(A, I) {
|
|
5585
|
-
var Z,
|
|
5586
|
-
const g = ((
|
|
5591
|
+
var Z, V, BA, RA;
|
|
5592
|
+
const g = ((V = (Z = I.objectStates) == null ? void 0 : Z.get(I.id)) == null ? void 0 : V.options) || I.options || {}, C = ((BA = I.geometry) == null ? void 0 : BA.width) || 250, Q = ((RA = I.geometry) == null ? void 0 : RA.height) || 45, E = this.focusedId === I.id, D = this.lastHoveredObjectId === I.id, o = g.previewState || "default", w = o !== "default" ? o : E ? "focused" : D ? "hovered" : "default", h = g.label || { visible: !0, text: "Label" }, G = g.helperText || { visible: !1, text: "Helper text" }, S = g.leftIcon || { visible: !1 }, K = g.rightIcon || { visible: !1 }, M = g.multiline === !0, F = g.cornerRadius ?? 8, J = g.corners || { tl: F, tr: F, bl: F, br: F }, k = [J.tl, J.tr, J.br, J.bl];
|
|
5587
5593
|
let y = g.backgroundColor || "rgba(31, 41, 55, 1)", U = g.borderColor || "rgba(55, 65, 81, 1)", R = g.borderWidth ?? 1.5, c = g.color || "#ffffff", L = g.placeholderColor || "rgba(156, 163, 175, 1)", r = g.fontSize || 14;
|
|
5588
5594
|
const p = `${w}Style`, q = g[p];
|
|
5589
5595
|
q ? (q.backgroundColor !== void 0 && (y = q.backgroundColor), q.borderColor !== void 0 && (U = q.borderColor), q.borderWidth !== void 0 && (R = q.borderWidth), q.color !== void 0 && (c = q.color), q.placeholderColor !== void 0 && (L = q.placeholderColor), q.fontSize !== void 0 && (r = q.fontSize)) : w === "focused" ? (U = g.focusBorderColor || "rgba(59, 130, 246, 1)", R = Math.max(R, 2)) : w === "hovered" || w === "hover" ? (U = g.hoverBorderColor || U, y = g.hoverBackgroundColor || y) : w === "disabled" ? (y = g.disabledBackgroundColor || "rgba(31, 41, 55, 0.6)", U = g.disabledBorderColor || "rgba(55, 65, 81, 0.4)") : w === "error" && (U = "rgba(239, 68, 68, 1)", R = Math.max(R, 2)), A.beginPath(), A.roundRect(-C / 2, -Q / 2, C, Q, k), A.fillStyle = y, A.fill(), R > 0 && (A.strokeStyle = U, A.lineWidth = R, A.stroke(), (w === "focused" || w === "focus") && (A.save(), A.beginPath(), A.roundRect(-C / 2 - 2, -Q / 2 - 2, C + 4, Q + 4, k.map((CA) => CA + 2)), A.strokeStyle = "rgba(59, 130, 246, 0.3)", A.lineWidth = 2, A.stroke(), A.restore()));
|
|
@@ -5637,10 +5643,10 @@ class WC {
|
|
|
5637
5643
|
}
|
|
5638
5644
|
}
|
|
5639
5645
|
renderSlider(A, I) {
|
|
5640
|
-
const { geometry: g, options: C } = I, Q = g.width || 200, E = C || {}, D = E.value ?? 50, o = E.min ?? 0, h = (E.max ?? 100) - o, G = h === 0 ? 0 : (D - o) / h, S = E.trackHeight || 4, K = E.trackRoundedness ?? 2, M = E.trackShape ?? "Rectangle", F = E.trackPath || "", J = E.activeColor || "#3b82f6", k = E.inactiveColor || "#374151", y = E.thumbShape || "Ellipse", U = E.thumbWidth ?? 16, R = E.thumbHeight ?? 16, c = E.thumbRoundedness ?? 0, L = E.thumbColor || "#ffffff", r = E.thumbPath || "", p = E.thumbIcon || "", q = E.showValueTooltip ?? !1, AA = E.tooltipBgColor || "#333333", GA = E.tooltipColor || "#ffffff", v = E.tooltipOffsetX ?? 0, W = E.tooltipOffsetY ?? -25, T = (u, m, t, n, l, Z,
|
|
5641
|
-
if ((u === "Custom" || u === "Icon") &&
|
|
5646
|
+
const { geometry: g, options: C } = I, Q = g.width || 200, E = C || {}, D = E.value ?? 50, o = E.min ?? 0, h = (E.max ?? 100) - o, G = h === 0 ? 0 : (D - o) / h, S = E.trackHeight || 4, K = E.trackRoundedness ?? 2, M = E.trackShape ?? "Rectangle", F = E.trackPath || "", J = E.activeColor || "#3b82f6", k = E.inactiveColor || "#374151", y = E.thumbShape || "Ellipse", U = E.thumbWidth ?? 16, R = E.thumbHeight ?? 16, c = E.thumbRoundedness ?? 0, L = E.thumbColor || "#ffffff", r = E.thumbPath || "", p = E.thumbIcon || "", q = E.showValueTooltip ?? !1, AA = E.tooltipBgColor || "#333333", GA = E.tooltipColor || "#ffffff", v = E.tooltipOffsetX ?? 0, W = E.tooltipOffsetY ?? -25, T = (u, m, t, n, l, Z, V) => {
|
|
5647
|
+
if ((u === "Custom" || u === "Icon") && V)
|
|
5642
5648
|
try {
|
|
5643
|
-
const BA = new Path2D(
|
|
5649
|
+
const BA = new Path2D(V);
|
|
5644
5650
|
if (A.save(), A.translate(m, t), u === "Icon") {
|
|
5645
5651
|
const RA = Math.min(n, l) / 24;
|
|
5646
5652
|
A.scale(RA, RA), A.translate(-12, -12);
|
|
@@ -5736,7 +5742,7 @@ class WC {
|
|
|
5736
5742
|
else if (A.fillStyle = C.listTextColor || F || "#333333", this.activeDropdownId === I.id && this._lastPointerPos) {
|
|
5737
5743
|
const Z = this.objectStates.get(I.id);
|
|
5738
5744
|
if (Z) {
|
|
5739
|
-
const
|
|
5745
|
+
const V = this._lastPointerPos.y - (Z.y + E / 2 + 4 + IA), BA = Math.floor(V / T);
|
|
5740
5746
|
t === BA && (A.fillStyle = C.itemHoverBackgroundColor || C.listHoverColor || "#f9fafb", A.fillRect(D + hA, n, Q - hA * 2, T), A.fillStyle = C.itemHoverColor || F);
|
|
5741
5747
|
}
|
|
5742
5748
|
}
|
|
@@ -6015,6 +6021,6 @@ export {
|
|
|
6015
6021
|
UC as ConditionOp,
|
|
6016
6022
|
XC as ExodeUICanvas,
|
|
6017
6023
|
WC as ExodeUIEngine,
|
|
6018
|
-
|
|
6024
|
+
PA as LogicOp,
|
|
6019
6025
|
vC as useExodeUI
|
|
6020
6026
|
};
|