@tomorrowevening/hermes 0.0.70 → 0.0.72
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/hermes.cjs.js +11 -11
- package/dist/hermes.es.js +247 -232
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/hermes.es.js
CHANGED
@@ -45,9 +45,18 @@ const rn = () => {
|
|
45
45
|
if (!e)
|
46
46
|
return;
|
47
47
|
let n = e.name.replaceAll(" ", "").replaceAll("/", ".");
|
48
|
-
n.length === 0 && (n = `obj_${Lt}`, Lt++), e.parent !== null && e.parent.uuid.length > 0 && (n = `${e.parent.uuid}.${n}`), e.uuid = n, e.
|
49
|
-
|
50
|
-
|
48
|
+
if (n.length === 0 && (n = `obj_${Lt}`, Lt++), e.parent !== null && e.parent.uuid.length > 0 && (n = `${e.parent.uuid}.${n}`), e.uuid = n, e.isMesh !== void 0) {
|
49
|
+
const a = e;
|
50
|
+
if (Array.isArray(a.material))
|
51
|
+
a.material.forEach((t, i) => {
|
52
|
+
t.uuid = `${n}.material.${i}`;
|
53
|
+
});
|
54
|
+
else {
|
55
|
+
const t = a.material;
|
56
|
+
t.uuid = `${n}.material`;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
e.children.forEach((a) => Bt(a));
|
51
60
|
}, Ai = (e) => {
|
52
61
|
e?.dispose();
|
53
62
|
}, Pa = (e) => {
|
@@ -267,8 +276,8 @@ class Gt extends Rt {
|
|
267
276
|
}
|
268
277
|
});
|
269
278
|
}
|
270
|
-
const
|
271
|
-
|
279
|
+
const v = this.sheetObjectCBs.get(h);
|
280
|
+
v !== void 0 && v(m);
|
272
281
|
});
|
273
282
|
return this.sheetObjectUnsubscribe.set(h, f), u;
|
274
283
|
}
|
@@ -597,6 +606,10 @@ function La(e, n) {
|
|
597
606
|
e[a] = n[a];
|
598
607
|
}
|
599
608
|
function ee(e, n, a) {
|
609
|
+
if (e === void 0) {
|
610
|
+
console.log(`Hermes - Can't set props: ${n}`, a);
|
611
|
+
return;
|
612
|
+
}
|
600
613
|
const t = n.split("."), i = t.length;
|
601
614
|
if (typeof a != "object")
|
602
615
|
switch (i) {
|
@@ -734,8 +747,8 @@ class Li extends Rt {
|
|
734
747
|
}
|
735
748
|
getScene(n) {
|
736
749
|
let a = null;
|
737
|
-
return this.scenes.forEach((t) => {
|
738
|
-
n.search(
|
750
|
+
return this.scenes.forEach((t, i) => {
|
751
|
+
n.search(i) > -1 && (a = t);
|
739
752
|
}), a;
|
740
753
|
}
|
741
754
|
setScene(n) {
|
@@ -971,14 +984,14 @@ function Ba() {
|
|
971
984
|
sn = 1;
|
972
985
|
var e = Nn, n = Symbol.for("react.element"), a = Symbol.for("react.fragment"), t = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
973
986
|
function d(r, h, u) {
|
974
|
-
var f, m = {},
|
975
|
-
u !== void 0 && (
|
987
|
+
var f, m = {}, v = null, S = null;
|
988
|
+
u !== void 0 && (v = "" + u), h.key !== void 0 && (v = "" + h.key), h.ref !== void 0 && (S = h.ref);
|
976
989
|
for (f in h)
|
977
990
|
t.call(h, f) && !o.hasOwnProperty(f) && (m[f] = h[f]);
|
978
991
|
if (r && r.defaultProps)
|
979
992
|
for (f in h = r.defaultProps, h)
|
980
993
|
m[f] === void 0 && (m[f] = h[f]);
|
981
|
-
return { $$typeof: n, type: r, key:
|
994
|
+
return { $$typeof: n, type: r, key: v, ref: S, props: m, _owner: i.current };
|
982
995
|
}
|
983
996
|
return lt.Fragment = a, lt.jsx = d, lt.jsxs = d, lt;
|
984
997
|
}
|
@@ -995,45 +1008,45 @@ var ut = {};
|
|
995
1008
|
var on;
|
996
1009
|
function Fa() {
|
997
1010
|
return on || (on = 1, process.env.NODE_ENV !== "production" && function() {
|
998
|
-
var e = Nn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), r = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"),
|
1011
|
+
var e = Nn, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), d = Symbol.for("react.provider"), r = Symbol.for("react.context"), h = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), v = Symbol.for("react.lazy"), S = Symbol.for("react.offscreen"), A = Symbol.iterator, F = "@@iterator";
|
999
1012
|
function V(s) {
|
1000
1013
|
if (s === null || typeof s != "object")
|
1001
1014
|
return null;
|
1002
|
-
var
|
1003
|
-
return typeof
|
1015
|
+
var p = A && s[A] || s[F];
|
1016
|
+
return typeof p == "function" ? p : null;
|
1004
1017
|
}
|
1005
1018
|
var R = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
1006
1019
|
function I(s) {
|
1007
1020
|
{
|
1008
|
-
for (var
|
1021
|
+
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), w = 1; w < p; w++)
|
1009
1022
|
y[w - 1] = arguments[w];
|
1010
1023
|
T("error", s, y);
|
1011
1024
|
}
|
1012
1025
|
}
|
1013
|
-
function T(s,
|
1026
|
+
function T(s, p, y) {
|
1014
1027
|
{
|
1015
1028
|
var w = R.ReactDebugCurrentFrame, $ = w.getStackAddendum();
|
1016
|
-
$ !== "" && (
|
1029
|
+
$ !== "" && (p += "%s", y = y.concat([$]));
|
1017
1030
|
var W = y.map(function(L) {
|
1018
1031
|
return String(L);
|
1019
1032
|
});
|
1020
|
-
W.unshift("Warning: " +
|
1033
|
+
W.unshift("Warning: " + p), Function.prototype.apply.call(console[s], console, W);
|
1021
1034
|
}
|
1022
1035
|
}
|
1023
1036
|
var Z = !1, te = !1, pe = !1, q = !1, ge = !1, ce;
|
1024
1037
|
ce = Symbol.for("react.module.reference");
|
1025
1038
|
function _e(s) {
|
1026
|
-
return !!(typeof s == "string" || typeof s == "function" || s === t || s === o || ge || s === i || s === u || s === f || q || s === S || Z || te || pe || typeof s == "object" && s !== null && (s.$$typeof ===
|
1039
|
+
return !!(typeof s == "string" || typeof s == "function" || s === t || s === o || ge || s === i || s === u || s === f || q || s === S || Z || te || pe || typeof s == "object" && s !== null && (s.$$typeof === v || s.$$typeof === m || s.$$typeof === d || s.$$typeof === r || s.$$typeof === h || // This needs to include all possible module reference object
|
1027
1040
|
// types supported by any Flight configuration anywhere since
|
1028
1041
|
// we don't know which Flight build this will end up being used
|
1029
1042
|
// with.
|
1030
1043
|
s.$$typeof === ce || s.getModuleId !== void 0));
|
1031
1044
|
}
|
1032
|
-
function ke(s,
|
1045
|
+
function ke(s, p, y) {
|
1033
1046
|
var w = s.displayName;
|
1034
1047
|
if (w)
|
1035
1048
|
return w;
|
1036
|
-
var $ =
|
1049
|
+
var $ = p.displayName || p.name || "";
|
1037
1050
|
return $ !== "" ? y + "(" + $ + ")" : y;
|
1038
1051
|
}
|
1039
1052
|
function be(s) {
|
@@ -1063,8 +1076,8 @@ function Fa() {
|
|
1063
1076
|
if (typeof s == "object")
|
1064
1077
|
switch (s.$$typeof) {
|
1065
1078
|
case r:
|
1066
|
-
var
|
1067
|
-
return be(
|
1079
|
+
var p = s;
|
1080
|
+
return be(p) + ".Consumer";
|
1068
1081
|
case d:
|
1069
1082
|
var y = s;
|
1070
1083
|
return be(y._context) + ".Provider";
|
@@ -1073,7 +1086,7 @@ function Fa() {
|
|
1073
1086
|
case m:
|
1074
1087
|
var w = s.displayName || null;
|
1075
1088
|
return w !== null ? w : U(s.type) || "Memo";
|
1076
|
-
case
|
1089
|
+
case v: {
|
1077
1090
|
var $ = s, W = $._payload, L = $._init;
|
1078
1091
|
try {
|
1079
1092
|
return U(L(W));
|
@@ -1147,7 +1160,7 @@ function Fa() {
|
|
1147
1160
|
}
|
1148
1161
|
}
|
1149
1162
|
var He = R.ReactCurrentDispatcher, Ye;
|
1150
|
-
function ue(s,
|
1163
|
+
function ue(s, p, y) {
|
1151
1164
|
{
|
1152
1165
|
if (Ye === void 0)
|
1153
1166
|
try {
|
@@ -1160,13 +1173,13 @@ function Fa() {
|
|
1160
1173
|
` + Ye + s;
|
1161
1174
|
}
|
1162
1175
|
}
|
1163
|
-
var
|
1176
|
+
var g = !1, b;
|
1164
1177
|
{
|
1165
1178
|
var M = typeof WeakMap == "function" ? WeakMap : Map;
|
1166
1179
|
b = new M();
|
1167
1180
|
}
|
1168
|
-
function N(s,
|
1169
|
-
if (!s ||
|
1181
|
+
function N(s, p) {
|
1182
|
+
if (!s || g)
|
1170
1183
|
return "";
|
1171
1184
|
{
|
1172
1185
|
var y = b.get(s);
|
@@ -1174,13 +1187,13 @@ function Fa() {
|
|
1174
1187
|
return y;
|
1175
1188
|
}
|
1176
1189
|
var w;
|
1177
|
-
|
1190
|
+
g = !0;
|
1178
1191
|
var $ = Error.prepareStackTrace;
|
1179
1192
|
Error.prepareStackTrace = void 0;
|
1180
1193
|
var W;
|
1181
1194
|
W = He.current, He.current = null, re();
|
1182
1195
|
try {
|
1183
|
-
if (
|
1196
|
+
if (p) {
|
1184
1197
|
var L = function() {
|
1185
1198
|
throw Error();
|
1186
1199
|
};
|
@@ -1231,19 +1244,19 @@ function Fa() {
|
|
1231
1244
|
}
|
1232
1245
|
}
|
1233
1246
|
} finally {
|
1234
|
-
|
1247
|
+
g = !1, He.current = W, Me(), Error.prepareStackTrace = $;
|
1235
1248
|
}
|
1236
1249
|
var tt = s ? s.displayName || s.name : "", Vt = tt ? ue(tt) : "";
|
1237
1250
|
return typeof s == "function" && b.set(s, Vt), Vt;
|
1238
1251
|
}
|
1239
|
-
function ve(s,
|
1252
|
+
function ve(s, p, y) {
|
1240
1253
|
return N(s, !1);
|
1241
1254
|
}
|
1242
1255
|
function le(s) {
|
1243
|
-
var
|
1244
|
-
return !!(
|
1256
|
+
var p = s.prototype;
|
1257
|
+
return !!(p && p.isReactComponent);
|
1245
1258
|
}
|
1246
|
-
function C(s,
|
1259
|
+
function C(s, p, y) {
|
1247
1260
|
if (s == null)
|
1248
1261
|
return "";
|
1249
1262
|
if (typeof s == "function")
|
@@ -1261,11 +1274,11 @@ function Fa() {
|
|
1261
1274
|
case h:
|
1262
1275
|
return ve(s.render);
|
1263
1276
|
case m:
|
1264
|
-
return C(s.type,
|
1265
|
-
case
|
1277
|
+
return C(s.type, p, y);
|
1278
|
+
case v: {
|
1266
1279
|
var w = s, $ = w._payload, W = w._init;
|
1267
1280
|
try {
|
1268
|
-
return C(W($),
|
1281
|
+
return C(W($), p, y);
|
1269
1282
|
} catch {
|
1270
1283
|
}
|
1271
1284
|
}
|
@@ -1275,12 +1288,12 @@ function Fa() {
|
|
1275
1288
|
var x = Object.prototype.hasOwnProperty, G = {}, ne = R.ReactDebugCurrentFrame;
|
1276
1289
|
function _(s) {
|
1277
1290
|
if (s) {
|
1278
|
-
var
|
1291
|
+
var p = s._owner, y = C(s.type, s._source, p ? p.type : null);
|
1279
1292
|
ne.setExtraStackFrame(y);
|
1280
1293
|
} else
|
1281
1294
|
ne.setExtraStackFrame(null);
|
1282
1295
|
}
|
1283
|
-
function z(s,
|
1296
|
+
function z(s, p, y, w, $) {
|
1284
1297
|
{
|
1285
1298
|
var W = Function.call.bind(x);
|
1286
1299
|
for (var L in s)
|
@@ -1291,7 +1304,7 @@ function Fa() {
|
|
1291
1304
|
var he = Error((w || "React class") + ": " + y + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof s[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
1292
1305
|
throw he.name = "Invariant Violation", he;
|
1293
1306
|
}
|
1294
|
-
j = s[L](
|
1307
|
+
j = s[L](p, L, w, y, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
1295
1308
|
} catch (Q) {
|
1296
1309
|
j = Q;
|
1297
1310
|
}
|
@@ -1305,7 +1318,7 @@ function Fa() {
|
|
1305
1318
|
}
|
1306
1319
|
function Je(s) {
|
1307
1320
|
{
|
1308
|
-
var
|
1321
|
+
var p = typeof Symbol == "function" && Symbol.toStringTag, y = p && s[Symbol.toStringTag] || s.constructor.name || "Object";
|
1309
1322
|
return y;
|
1310
1323
|
}
|
1311
1324
|
}
|
@@ -1332,30 +1345,30 @@ function Fa() {
|
|
1332
1345
|
Qe = {};
|
1333
1346
|
function kt(s) {
|
1334
1347
|
if (x.call(s, "ref")) {
|
1335
|
-
var
|
1336
|
-
if (
|
1348
|
+
var p = Object.getOwnPropertyDescriptor(s, "ref").get;
|
1349
|
+
if (p && p.isReactWarning)
|
1337
1350
|
return !1;
|
1338
1351
|
}
|
1339
1352
|
return s.ref !== void 0;
|
1340
1353
|
}
|
1341
1354
|
function Dt(s) {
|
1342
1355
|
if (x.call(s, "key")) {
|
1343
|
-
var
|
1344
|
-
if (
|
1356
|
+
var p = Object.getOwnPropertyDescriptor(s, "key").get;
|
1357
|
+
if (p && p.isReactWarning)
|
1345
1358
|
return !1;
|
1346
1359
|
}
|
1347
1360
|
return s.key !== void 0;
|
1348
1361
|
}
|
1349
|
-
function Pt(s,
|
1350
|
-
if (typeof s.ref == "string" && Ue.current &&
|
1362
|
+
function Pt(s, p) {
|
1363
|
+
if (typeof s.ref == "string" && Ue.current && p && Ue.current.stateNode !== p) {
|
1351
1364
|
var y = U(Ue.current.type);
|
1352
1365
|
Qe[y] || (I('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', U(Ue.current.type), s.ref), Qe[y] = !0);
|
1353
1366
|
}
|
1354
1367
|
}
|
1355
|
-
function gt(s,
|
1368
|
+
function gt(s, p) {
|
1356
1369
|
{
|
1357
1370
|
var y = function() {
|
1358
|
-
ct || (ct = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
1371
|
+
ct || (ct = !0, I("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
1359
1372
|
};
|
1360
1373
|
y.isReactWarning = !0, Object.defineProperty(s, "key", {
|
1361
1374
|
get: y,
|
@@ -1363,10 +1376,10 @@ function Fa() {
|
|
1363
1376
|
});
|
1364
1377
|
}
|
1365
1378
|
}
|
1366
|
-
function $e(s,
|
1379
|
+
function $e(s, p) {
|
1367
1380
|
{
|
1368
1381
|
var y = function() {
|
1369
|
-
pt || (pt = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",
|
1382
|
+
pt || (pt = !0, I("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", p));
|
1370
1383
|
};
|
1371
1384
|
y.isReactWarning = !0, Object.defineProperty(s, "ref", {
|
1372
1385
|
get: y,
|
@@ -1374,13 +1387,13 @@ function Fa() {
|
|
1374
1387
|
});
|
1375
1388
|
}
|
1376
1389
|
}
|
1377
|
-
var Ht = function(s,
|
1390
|
+
var Ht = function(s, p, y, w, $, W, L) {
|
1378
1391
|
var j = {
|
1379
1392
|
// This tag allows us to uniquely identify this as a React Element
|
1380
1393
|
$$typeof: n,
|
1381
1394
|
// Built-in properties that belong on the element
|
1382
1395
|
type: s,
|
1383
|
-
key:
|
1396
|
+
key: p,
|
1384
1397
|
ref: y,
|
1385
1398
|
props: L,
|
1386
1399
|
// Record the component responsible for creating this element.
|
@@ -1403,12 +1416,12 @@ function Fa() {
|
|
1403
1416
|
value: $
|
1404
1417
|
}), Object.freeze && (Object.freeze(j.props), Object.freeze(j)), j;
|
1405
1418
|
};
|
1406
|
-
function c(s,
|
1419
|
+
function c(s, p, y, w, $) {
|
1407
1420
|
{
|
1408
1421
|
var W, L = {}, j = null, he = null;
|
1409
|
-
y !== void 0 && (st(y), j = "" + y), Dt(
|
1410
|
-
for (W in
|
1411
|
-
x.call(
|
1422
|
+
y !== void 0 && (st(y), j = "" + y), Dt(p) && (st(p.key), j = "" + p.key), kt(p) && (he = p.ref, Pt(p, $));
|
1423
|
+
for (W in p)
|
1424
|
+
x.call(p, W) && !ot.hasOwnProperty(W) && (L[W] = p[W]);
|
1412
1425
|
if (s && s.defaultProps) {
|
1413
1426
|
var Q = s.defaultProps;
|
1414
1427
|
for (W in Q)
|
@@ -1424,7 +1437,7 @@ function Fa() {
|
|
1424
1437
|
var E = R.ReactCurrentOwner, k = R.ReactDebugCurrentFrame;
|
1425
1438
|
function B(s) {
|
1426
1439
|
if (s) {
|
1427
|
-
var
|
1440
|
+
var p = s._owner, y = C(s.type, s._source, p ? p.type : null);
|
1428
1441
|
k.setExtraStackFrame(y);
|
1429
1442
|
} else
|
1430
1443
|
k.setExtraStackFrame(null);
|
@@ -1449,10 +1462,10 @@ Check the render method of \`` + s + "`.";
|
|
1449
1462
|
function Yt(s) {
|
1450
1463
|
{
|
1451
1464
|
if (s !== void 0) {
|
1452
|
-
var
|
1465
|
+
var p = s.fileName.replace(/^.*[\\\/]/, ""), y = s.lineNumber;
|
1453
1466
|
return `
|
1454
1467
|
|
1455
|
-
Check your code at ` +
|
1468
|
+
Check your code at ` + p + ":" + y + ".";
|
1456
1469
|
}
|
1457
1470
|
return "";
|
1458
1471
|
}
|
@@ -1460,22 +1473,22 @@ Check your code at ` + g + ":" + y + ".";
|
|
1460
1473
|
var vt = {};
|
1461
1474
|
function bt(s) {
|
1462
1475
|
{
|
1463
|
-
var
|
1464
|
-
if (!
|
1476
|
+
var p = de();
|
1477
|
+
if (!p) {
|
1465
1478
|
var y = typeof s == "string" ? s : s.displayName || s.name;
|
1466
|
-
y && (
|
1479
|
+
y && (p = `
|
1467
1480
|
|
1468
1481
|
Check the top-level render call using <` + y + ">.");
|
1469
1482
|
}
|
1470
|
-
return
|
1483
|
+
return p;
|
1471
1484
|
}
|
1472
1485
|
}
|
1473
|
-
function xe(s,
|
1486
|
+
function xe(s, p) {
|
1474
1487
|
{
|
1475
1488
|
if (!s._store || s._store.validated || s.key != null)
|
1476
1489
|
return;
|
1477
1490
|
s._store.validated = !0;
|
1478
|
-
var y = bt(
|
1491
|
+
var y = bt(p);
|
1479
1492
|
if (vt[y])
|
1480
1493
|
return;
|
1481
1494
|
vt[y] = !0;
|
@@ -1483,14 +1496,14 @@ Check the top-level render call using <` + y + ">.");
|
|
1483
1496
|
s && s._owner && s._owner !== E.current && (w = " It was passed a child from " + U(s._owner.type) + "."), B(s), I('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', y, w), B(null);
|
1484
1497
|
}
|
1485
1498
|
}
|
1486
|
-
function Se(s,
|
1499
|
+
function Se(s, p) {
|
1487
1500
|
{
|
1488
1501
|
if (typeof s != "object")
|
1489
1502
|
return;
|
1490
1503
|
if (Ne(s))
|
1491
1504
|
for (var y = 0; y < s.length; y++) {
|
1492
1505
|
var w = s[y];
|
1493
|
-
Ee(w) && xe(w,
|
1506
|
+
Ee(w) && xe(w, p);
|
1494
1507
|
}
|
1495
1508
|
else if (Ee(s))
|
1496
1509
|
s._store && (s._store.validated = !0);
|
@@ -1498,39 +1511,39 @@ Check the top-level render call using <` + y + ">.");
|
|
1498
1511
|
var $ = V(s);
|
1499
1512
|
if (typeof $ == "function" && $ !== s.entries)
|
1500
1513
|
for (var W = $.call(s), L; !(L = W.next()).done; )
|
1501
|
-
Ee(L.value) && xe(L.value,
|
1514
|
+
Ee(L.value) && xe(L.value, p);
|
1502
1515
|
}
|
1503
1516
|
}
|
1504
1517
|
}
|
1505
1518
|
function Ve(s) {
|
1506
1519
|
{
|
1507
|
-
var
|
1508
|
-
if (
|
1520
|
+
var p = s.type;
|
1521
|
+
if (p == null || typeof p == "string")
|
1509
1522
|
return;
|
1510
1523
|
var y;
|
1511
|
-
if (typeof
|
1512
|
-
y =
|
1513
|
-
else if (typeof
|
1524
|
+
if (typeof p == "function")
|
1525
|
+
y = p.propTypes;
|
1526
|
+
else if (typeof p == "object" && (p.$$typeof === h || // Note: Memo only checks outer props here.
|
1514
1527
|
// Inner props are checked in the reconciler.
|
1515
|
-
|
1516
|
-
y =
|
1528
|
+
p.$$typeof === m))
|
1529
|
+
y = p.propTypes;
|
1517
1530
|
else
|
1518
1531
|
return;
|
1519
1532
|
if (y) {
|
1520
|
-
var w = U(
|
1533
|
+
var w = U(p);
|
1521
1534
|
z(y, s.props, "prop", w, s);
|
1522
|
-
} else if (
|
1535
|
+
} else if (p.PropTypes !== void 0 && !ie) {
|
1523
1536
|
ie = !0;
|
1524
|
-
var $ = U(
|
1537
|
+
var $ = U(p);
|
1525
1538
|
I("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", $ || "Unknown");
|
1526
1539
|
}
|
1527
|
-
typeof
|
1540
|
+
typeof p.getDefaultProps == "function" && !p.getDefaultProps.isReactClassApproved && I("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
1528
1541
|
}
|
1529
1542
|
}
|
1530
1543
|
function Oe(s) {
|
1531
1544
|
{
|
1532
|
-
for (var
|
1533
|
-
var w =
|
1545
|
+
for (var p = Object.keys(s.props), y = 0; y < p.length; y++) {
|
1546
|
+
var w = p[y];
|
1534
1547
|
if (w !== "children" && w !== "key") {
|
1535
1548
|
B(s), I("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), B(null);
|
1536
1549
|
break;
|
@@ -1539,7 +1552,7 @@ Check the top-level render call using <` + y + ">.");
|
|
1539
1552
|
s.ref !== null && (B(s), I("Invalid attribute `ref` supplied to `React.Fragment`."), B(null));
|
1540
1553
|
}
|
1541
1554
|
}
|
1542
|
-
function ze(s,
|
1555
|
+
function ze(s, p, y, w, $, W) {
|
1543
1556
|
{
|
1544
1557
|
var L = _e(s);
|
1545
1558
|
if (!L) {
|
@@ -1550,11 +1563,11 @@ Check the top-level render call using <` + y + ">.");
|
|
1550
1563
|
var Q;
|
1551
1564
|
s === null ? Q = "null" : Ne(s) ? Q = "array" : s !== void 0 && s.$$typeof === n ? (Q = "<" + (U(s.type) || "Unknown") + " />", j = " Did you accidentally export a JSX literal instead of a component?") : Q = typeof s, I("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Q, j);
|
1552
1565
|
}
|
1553
|
-
var ae = c(s,
|
1566
|
+
var ae = c(s, p, y, $, W);
|
1554
1567
|
if (ae == null)
|
1555
1568
|
return ae;
|
1556
1569
|
if (L) {
|
1557
|
-
var Ce =
|
1570
|
+
var Ce = p.children;
|
1558
1571
|
if (Ce !== void 0)
|
1559
1572
|
if (w)
|
1560
1573
|
if (Ne(Ce)) {
|
@@ -1569,11 +1582,11 @@ Check the top-level render call using <` + y + ">.");
|
|
1569
1582
|
return s === t ? Oe(ae) : Ve(ae), ae;
|
1570
1583
|
}
|
1571
1584
|
}
|
1572
|
-
function et(s,
|
1573
|
-
return ze(s,
|
1585
|
+
function et(s, p, y) {
|
1586
|
+
return ze(s, p, y, !0);
|
1574
1587
|
}
|
1575
|
-
function yt(s,
|
1576
|
-
return ze(s,
|
1588
|
+
function yt(s, p, y) {
|
1589
|
+
return ze(s, p, y, !1);
|
1577
1590
|
}
|
1578
1591
|
var Gn = yt, Wn = et;
|
1579
1592
|
ut.Fragment = t, ut.jsx = Gn, ut.jsxs = Wn;
|
@@ -1788,8 +1801,10 @@ function Un(e) {
|
|
1788
1801
|
if (r !== void 0) {
|
1789
1802
|
const h = "visible", u = !r.visible;
|
1790
1803
|
n.current.style.opacity = u ? "1" : "0.25", e.three.updateObject(e.child.uuid, h, u), ee(r, h, u);
|
1791
|
-
}
|
1792
|
-
|
1804
|
+
} else
|
1805
|
+
console.log(`Hermes - Couldn't find object: ${e.child.uuid}`, d);
|
1806
|
+
} else
|
1807
|
+
console.log(`Hermes - Couldn't find object in scene: ${e.child.uuid}, ${e.child.name}`);
|
1793
1808
|
}
|
1794
1809
|
}
|
1795
1810
|
}
|
@@ -1809,20 +1824,20 @@ function Va(e) {
|
|
1809
1824
|
const [n, a] = H(e.defaultValue);
|
1810
1825
|
return Re(() => {
|
1811
1826
|
let t = !1, i = -1, o = 0, d = e.defaultValue;
|
1812
|
-
const r = (
|
1813
|
-
t = !0, o = Number(e.input.current?.value), i =
|
1814
|
-
}, h = (
|
1827
|
+
const r = (v) => {
|
1828
|
+
t = !0, o = Number(e.input.current?.value), i = v.clientX, document.addEventListener("mouseup", u, !1), document.addEventListener("mousemove", h, !1), document.addEventListener("contextmenu", u, !1);
|
1829
|
+
}, h = (v) => {
|
1815
1830
|
if (!t)
|
1816
1831
|
return;
|
1817
|
-
const S = e.step !== void 0 ? e.step : 1, A = (
|
1832
|
+
const S = e.step !== void 0 ? e.step : 1, A = (v.clientX - i) * S;
|
1818
1833
|
d = Number((o + A).toFixed(4)), e.min !== void 0 && (d = Math.max(d, e.min)), e.max !== void 0 && (d = Math.min(d, e.max)), e.onChange !== void 0 && e.onChange(d), a(d);
|
1819
1834
|
}, u = () => {
|
1820
1835
|
t = !1, document.removeEventListener("mouseup", u), document.removeEventListener("mousemove", h), document.removeEventListener("contextmenu", u);
|
1821
|
-
}, f = (
|
1822
|
-
const S = Number(
|
1836
|
+
}, f = (v) => {
|
1837
|
+
const S = Number(v.target.value);
|
1823
1838
|
a(S);
|
1824
|
-
}, m = (
|
1825
|
-
const S = Number(
|
1839
|
+
}, m = (v) => {
|
1840
|
+
const S = Number(v.target.value);
|
1826
1841
|
e.onChange !== void 0 && e.onChange(S), a(S);
|
1827
1842
|
};
|
1828
1843
|
return e.input.current?.addEventListener("input", f), e.label.current?.addEventListener("mousedown", r, !1), e.sliderRef !== void 0 && e.sliderRef.current?.addEventListener("input", m), () => {
|
@@ -1897,12 +1912,12 @@ function qa(e) {
|
|
1897
1912
|
const n = Y(null), a = Y(null), t = Y(null), i = Y(null), o = Y(null), d = Y(null), [r, h] = H(e.value), [u, f] = H({
|
1898
1913
|
min: Math.min(e.min, Math.min(e.value.x, e.value.y)),
|
1899
1914
|
max: Math.max(e.max, Math.max(e.value.x, e.value.y))
|
1900
|
-
}), [m,
|
1915
|
+
}), [m, v] = H(!1);
|
1901
1916
|
function S() {
|
1902
|
-
m || (window.addEventListener("mousemove", F), window.addEventListener("mouseup", A), window.addEventListener("mouseup", A),
|
1917
|
+
m || (window.addEventListener("mousemove", F), window.addEventListener("mouseup", A), window.addEventListener("mouseup", A), v(!0));
|
1903
1918
|
}
|
1904
1919
|
function A() {
|
1905
|
-
window.removeEventListener("mousemove", F), window.removeEventListener("mouseup", A),
|
1920
|
+
window.removeEventListener("mousemove", F), window.removeEventListener("mouseup", A), v(!1);
|
1906
1921
|
}
|
1907
1922
|
function F(T) {
|
1908
1923
|
const Z = o.current.getBoundingClientRect(), te = Ke(0, 99, T.clientX - Z.left) / 99, pe = Ke(0, 99, T.clientY - Z.top) / 99, q = an(nn(u.min, u.max, te), 3), ge = an(nn(u.min, u.max, pe), 3);
|
@@ -2584,7 +2599,7 @@ function ri(e, n, a, t) {
|
|
2584
2599
|
const d = t.getScene(a.uuid);
|
2585
2600
|
if (d !== null) {
|
2586
2601
|
const r = d.getObjectByProperty("uuid", a.uuid);
|
2587
|
-
|
2602
|
+
ee(r, `material.${e}`, o);
|
2588
2603
|
}
|
2589
2604
|
}
|
2590
2605
|
};
|
@@ -2604,7 +2619,7 @@ function si(e, n, a, t) {
|
|
2604
2619
|
const r = t.getScene(a.uuid);
|
2605
2620
|
if (r !== null) {
|
2606
2621
|
const h = r.getObjectByProperty("uuid", a.uuid);
|
2607
|
-
|
2622
|
+
ee(h, `material.${e}`, d);
|
2608
2623
|
}
|
2609
2624
|
}
|
2610
2625
|
};
|
@@ -2639,7 +2654,7 @@ function oi(e, n, a, t) {
|
|
2639
2654
|
const h = t.getScene(a.uuid);
|
2640
2655
|
if (h !== null) {
|
2641
2656
|
const u = h.getObjectByProperty("uuid", a.uuid);
|
2642
|
-
|
2657
|
+
ee(u, `material.${e}`, r);
|
2643
2658
|
}
|
2644
2659
|
},
|
2645
2660
|
onKeyDown: (d) => {
|
@@ -2650,7 +2665,7 @@ function oi(e, n, a, t) {
|
|
2650
2665
|
const h = t.getScene(a.uuid);
|
2651
2666
|
if (h !== null) {
|
2652
2667
|
const u = h.getObjectByProperty("uuid", a.uuid);
|
2653
|
-
|
2668
|
+
ee(u, `material.${e}`, r);
|
2654
2669
|
}
|
2655
2670
|
}, i.onKeyDown = (d) => {
|
2656
2671
|
if (d.key === "Enter" && (d.altKey || d.metaKey)) {
|
@@ -2658,7 +2673,7 @@ function oi(e, n, a, t) {
|
|
2658
2673
|
const r = t.getScene(a.uuid);
|
2659
2674
|
if (r !== null) {
|
2660
2675
|
const h = r.getObjectByProperty("uuid", a.uuid);
|
2661
|
-
|
2676
|
+
ee(h, "material.needsUpdate", !0);
|
2662
2677
|
}
|
2663
2678
|
}
|
2664
2679
|
}), i;
|
@@ -2688,8 +2703,8 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2688
2703
|
t.updateObject(a.uuid, `material.${r}`, f);
|
2689
2704
|
const m = t.getScene(a.uuid);
|
2690
2705
|
if (m !== null) {
|
2691
|
-
const
|
2692
|
-
|
2706
|
+
const v = m.getObjectByProperty("uuid", a.uuid);
|
2707
|
+
ee(v, `material.${r}`, f);
|
2693
2708
|
}
|
2694
2709
|
}
|
2695
2710
|
};
|
@@ -2703,10 +2718,10 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2703
2718
|
disabled: o,
|
2704
2719
|
onChange: (f, m) => {
|
2705
2720
|
t.updateObject(a.uuid, `material.${r}`, m);
|
2706
|
-
const
|
2707
|
-
if (
|
2708
|
-
const S =
|
2709
|
-
|
2721
|
+
const v = t.getScene(a.uuid);
|
2722
|
+
if (v !== null) {
|
2723
|
+
const S = v.getObjectByProperty("uuid", a.uuid);
|
2724
|
+
ee(S, `material.${r}`, m);
|
2710
2725
|
}
|
2711
2726
|
}
|
2712
2727
|
};
|
@@ -2722,22 +2737,22 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2722
2737
|
onChange: (u, f) => {
|
2723
2738
|
const m = new $t(f);
|
2724
2739
|
t.updateObject(a.uuid, `material.${r}`, m);
|
2725
|
-
const
|
2726
|
-
if (
|
2727
|
-
const S =
|
2728
|
-
|
2740
|
+
const v = t.getScene(a.uuid);
|
2741
|
+
if (v !== null) {
|
2742
|
+
const S = v.getObjectByProperty("uuid", a.uuid);
|
2743
|
+
ee(S, `material.${r}`, m);
|
2729
2744
|
}
|
2730
2745
|
}
|
2731
2746
|
};
|
2732
2747
|
if (Array.isArray(n)) {
|
2733
2748
|
const u = [];
|
2734
2749
|
for (const f in n) {
|
2735
|
-
const m = n[f],
|
2750
|
+
const m = n[f], v = `[${f.toString()}]`;
|
2736
2751
|
if (m.value !== void 0) {
|
2737
|
-
const S = ht(`${
|
2752
|
+
const S = ht(`${v}.value`, m.value, a, t, r, o);
|
2738
2753
|
S !== void 0 && u.push(S);
|
2739
2754
|
} else {
|
2740
|
-
const S = ht(
|
2755
|
+
const S = ht(v, m, a, t, r, o);
|
2741
2756
|
S !== void 0 && u.push(S);
|
2742
2757
|
}
|
2743
2758
|
}
|
@@ -2758,8 +2773,8 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2758
2773
|
t.updateObject(a.uuid, `material.${r}`, f);
|
2759
2774
|
const m = t.getScene(a.uuid);
|
2760
2775
|
if (m !== null) {
|
2761
|
-
const
|
2762
|
-
|
2776
|
+
const v = m.getObjectByProperty("uuid", a.uuid);
|
2777
|
+
ee(v, `material.${r}`, f);
|
2763
2778
|
}
|
2764
2779
|
}
|
2765
2780
|
};
|
@@ -2774,8 +2789,8 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2774
2789
|
t.updateObject(a.uuid, `material.${r}`, f);
|
2775
2790
|
const m = t.getScene(a.uuid);
|
2776
2791
|
if (m !== null) {
|
2777
|
-
const
|
2778
|
-
|
2792
|
+
const v = m.getObjectByProperty("uuid", a.uuid);
|
2793
|
+
ee(v, `material.${r}`, f);
|
2779
2794
|
}
|
2780
2795
|
}
|
2781
2796
|
};
|
@@ -2790,8 +2805,8 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2790
2805
|
t.updateObject(a.uuid, `material.${r}`, f);
|
2791
2806
|
const m = t.getScene(a.uuid);
|
2792
2807
|
if (m !== null) {
|
2793
|
-
const
|
2794
|
-
|
2808
|
+
const v = m.getObjectByProperty("uuid", a.uuid);
|
2809
|
+
ee(v, `material.${r}`, f);
|
2795
2810
|
}
|
2796
2811
|
}
|
2797
2812
|
};
|
@@ -2806,8 +2821,8 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2806
2821
|
t.updateObject(a.uuid, `material.${r}`, f);
|
2807
2822
|
const m = t.getScene(a.uuid);
|
2808
2823
|
if (m !== null) {
|
2809
|
-
const
|
2810
|
-
|
2824
|
+
const v = m.getObjectByProperty("uuid", a.uuid);
|
2825
|
+
ee(v, `material.${r}`, f);
|
2811
2826
|
}
|
2812
2827
|
}
|
2813
2828
|
};
|
@@ -2818,14 +2833,14 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2818
2833
|
value: n,
|
2819
2834
|
disabled: o,
|
2820
2835
|
onChange: (u, f) => {
|
2821
|
-
const m = Ja(e),
|
2822
|
-
t.createTexture(a.uuid, `material.${
|
2836
|
+
const m = Ja(e), v = i.length > 0 ? `${i}.${m}` : m;
|
2837
|
+
t.createTexture(a.uuid, `material.${v}`, f);
|
2823
2838
|
const S = t.getScene(a.uuid);
|
2824
2839
|
if (S !== null) {
|
2825
2840
|
const A = S.getObjectByProperty("uuid", a.uuid);
|
2826
2841
|
A !== void 0 && Bn(f.src).then((F) => {
|
2827
2842
|
F.offset.set(f.offset[0], f.offset[1]), F.repeat.set(f.repeat[0], f.repeat[1]);
|
2828
|
-
const V = A.material, R =
|
2843
|
+
const V = A.material, R = v.split(".");
|
2829
2844
|
switch (R.length) {
|
2830
2845
|
case 1:
|
2831
2846
|
V[R[0]] = F;
|
@@ -2859,8 +2874,8 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2859
2874
|
t.updateObject(a.uuid, `material.${r}`, f);
|
2860
2875
|
const m = t.getScene(a.uuid);
|
2861
2876
|
if (m !== null) {
|
2862
|
-
const
|
2863
|
-
|
2877
|
+
const v = m.getObjectByProperty("uuid", a.uuid);
|
2878
|
+
ee(v, `material.${r}`, f);
|
2864
2879
|
}
|
2865
2880
|
}
|
2866
2881
|
};
|
@@ -2868,13 +2883,13 @@ function ht(e, n, a, t, i = "", o = !1) {
|
|
2868
2883
|
const u = [], f = e === "defines" || e === "extensions";
|
2869
2884
|
try {
|
2870
2885
|
for (const m in n) {
|
2871
|
-
const
|
2872
|
-
if (
|
2873
|
-
if (
|
2874
|
-
const S = ht(`${m}.value`,
|
2886
|
+
const v = n[m];
|
2887
|
+
if (v !== void 0)
|
2888
|
+
if (v.value !== void 0) {
|
2889
|
+
const S = ht(`${m}.value`, v.value, a, t, r, f);
|
2875
2890
|
S !== void 0 && u.push(S);
|
2876
2891
|
} else {
|
2877
|
-
const S = ht(m,
|
2892
|
+
const S = ht(m, v, a, t, r, f);
|
2878
2893
|
S !== void 0 && u.push(S);
|
2879
2894
|
}
|
2880
2895
|
}
|
@@ -2916,7 +2931,7 @@ function ln(e, n, a) {
|
|
2916
2931
|
const i = a.getScene(n.uuid);
|
2917
2932
|
if (i !== null) {
|
2918
2933
|
const o = i.getObjectByProperty("uuid", n.uuid);
|
2919
|
-
|
2934
|
+
ee(o, "material.needsUpdate", !0);
|
2920
2935
|
}
|
2921
2936
|
}
|
2922
2937
|
}), t;
|
@@ -2948,7 +2963,7 @@ function di(e, n) {
|
|
2948
2963
|
}
|
2949
2964
|
const hi = "data:image/gif;base64,R0lGODlhDgFkAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgOS4xLWMwMDIgNzkuZGJhM2RhM2I1LCAyMDIzLzEyLzE1LTEwOjQyOjM3ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgMjUuNiAoTWFjaW50b3NoKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDoyMDk3M0NEODAxQjQxMUVGODVGNENDMkUyMUExNDk1NSIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDoyMDk3M0NEOTAxQjQxMUVGODVGNENDMkUyMUExNDk1NSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkE4ODc3Qzg5MDFCMzExRUY4NUY0Q0MyRTIxQTE0OTU1IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkE4ODc3QzhBMDFCMzExRUY4NUY0Q0MyRTIxQTE0OTU1Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+Af/+/fz7+vn49/b19PPy8fDv7u3s6+rp6Ofm5eTj4uHg397d3Nva2djX1tXU09LR0M/OzczLysnIx8bFxMPCwcC/vr28u7q5uLe2tbSzsrGwr66trKuqqainpqWko6KhoJ+enZybmpmYl5aVlJOSkZCPjo2Mi4qJiIeGhYSDgoGAf359fHt6eXh3dnV0c3JxcG9ubWxramloZ2ZlZGNiYWBfXl1cW1pZWFdWVVRTUlFQT05NTEtKSUhHRkVEQ0JBQD8+PTw7Ojk4NzY1NDMyMTAvLi0sKyopKCcmJSQjIiEgHx4dHBsaGRgXFhUUExIREA8ODQwLCgkIBwYFBAMCAQAAIfkEAAAAAAAsAAAAAA4BZAAAAv+Mj6nL7Q+jnLTai7PevPsPhuJIluaJpurKtu4Lx/JM1/aN5/rO9/4PDAqHxKLxiEwql8ym8wmNSqfUqvWKzWq33K73Cw6Lx+Sy+YxOq9fstvsNj8vn9Lr9js/r9/y+/w8YKDhIWGh4iJiouMjY6PgIGSk5SVlpeYmZqTkJAGDQ+dnpuekmGgAKejpKuiZqmprKqoZKGyrbOlqrejub6xvLGyw8TFzcprurGuvqybxq7ETbrItsCz0l7Zpc+6p9/cS967w9/S2FTF0u/mzehK4Oqz3eTl9vf4+fr7/P3+//DzCgwIEECxo8iDChwoUMGzp8CDGixIkUK1q8iDGjxo0XHDt6/AgypMiRJEuaPIkypcqVLFt+KwAAOw==";
|
2950
2965
|
function fi(e) {
|
2951
|
-
const n = Y(null), a = Y(null), t = Y(null), i = Y(null), o = Y(null), [d] = H(e.value), [r, h] = H(e.value.offset[0]), [u, f] = H(e.value.offset[1]), [m,
|
2966
|
+
const n = Y(null), a = Y(null), t = Y(null), i = Y(null), o = Y(null), [d] = H(e.value), [r, h] = H(e.value.offset[0]), [u, f] = H(e.value.offset[1]), [m, v] = H(e.value.repeat[0]), [S, A] = H(e.value.repeat[1]);
|
2952
2967
|
function F(R, I, T, Z, te) {
|
2953
2968
|
if (e.onChange !== void 0) {
|
2954
2969
|
const pe = e.prop !== void 0 ? e.prop : e.title;
|
@@ -2969,7 +2984,7 @@ function fi(e) {
|
|
2969
2984
|
f(T), F(I, r, T, m, S);
|
2970
2985
|
break;
|
2971
2986
|
case i.current:
|
2972
|
-
|
2987
|
+
v(T), F(I, r, u, T, S);
|
2973
2988
|
break;
|
2974
2989
|
case o.current:
|
2975
2990
|
A(T), F(I, r, u, m, T);
|
@@ -3209,7 +3224,7 @@ function pi(e, n) {
|
|
3209
3224
|
const f = n.getScene(e.uuid);
|
3210
3225
|
if (f !== null) {
|
3211
3226
|
const m = f.getObjectByProperty("uuid", e.uuid);
|
3212
|
-
|
3227
|
+
ee(m, r, u);
|
3213
3228
|
}
|
3214
3229
|
};
|
3215
3230
|
return /* @__PURE__ */ l.jsx(
|
@@ -3281,7 +3296,7 @@ function gi(e, n) {
|
|
3281
3296
|
const h = n.getScene(e.uuid);
|
3282
3297
|
if (h !== null) {
|
3283
3298
|
const u = h.getObjectByProperty("uuid", e.uuid);
|
3284
|
-
|
3299
|
+
ee(u, o, r);
|
3285
3300
|
}
|
3286
3301
|
}
|
3287
3302
|
}) : a.push({
|
@@ -3295,7 +3310,7 @@ function gi(e, n) {
|
|
3295
3310
|
const r = n.getScene(e.uuid);
|
3296
3311
|
if (r !== null) {
|
3297
3312
|
const h = r.getObjectByProperty("uuid", e.uuid);
|
3298
|
-
|
3313
|
+
ee(h, o, d);
|
3299
3314
|
}
|
3300
3315
|
}
|
3301
3316
|
}));
|
@@ -3492,22 +3507,22 @@ function $i(e) {
|
|
3492
3507
|
const h = r.value, f = n(h.uuid)?.getObjectByProperty("uuid", h.uuid);
|
3493
3508
|
f !== void 0 && Bn(h.value.src).then((m) => {
|
3494
3509
|
m.offset.set(h.value.offset[0], h.value.offset[1]), m.repeat.set(h.value.repeat[0], h.value.repeat[1]);
|
3495
|
-
const
|
3496
|
-
switch (
|
3510
|
+
const v = h.key.split(".");
|
3511
|
+
switch (v.length) {
|
3497
3512
|
case 1:
|
3498
|
-
f[
|
3513
|
+
f[v[0]] = m;
|
3499
3514
|
break;
|
3500
3515
|
case 2:
|
3501
|
-
f[
|
3516
|
+
f[v[0]][v[1]] = m;
|
3502
3517
|
break;
|
3503
3518
|
case 3:
|
3504
|
-
f[
|
3519
|
+
f[v[0]][v[1]][v[2]] = m;
|
3505
3520
|
break;
|
3506
3521
|
case 4:
|
3507
|
-
f[
|
3522
|
+
f[v[0]][v[1]][v[2]][v[3]] = m;
|
3508
3523
|
break;
|
3509
3524
|
case 5:
|
3510
|
-
f[
|
3525
|
+
f[v[0]][v[1]][v[2]][v[3]][v[4]] = m;
|
3511
3526
|
break;
|
3512
3527
|
}
|
3513
3528
|
f.material.needsUpdate = !0;
|
@@ -3619,7 +3634,7 @@ class xi extends pn {
|
|
3619
3634
|
let o = i.NONE;
|
3620
3635
|
const d = 1e-6, r = new Jt(), h = new Jt();
|
3621
3636
|
let u = 1;
|
3622
|
-
const f = new J(), m = new me(),
|
3637
|
+
const f = new J(), m = new me(), v = new me(), S = new me(), A = new me(), F = new me(), V = new me(), R = new me(), I = new me(), T = new me(), Z = new J(), te = new me();
|
3623
3638
|
let pe = !1;
|
3624
3639
|
const q = [], ge = {};
|
3625
3640
|
let ce = !1;
|
@@ -3685,9 +3700,9 @@ class xi extends pn {
|
|
3685
3700
|
A.set(c.clientX, c.clientY);
|
3686
3701
|
}
|
3687
3702
|
function re(c) {
|
3688
|
-
|
3703
|
+
v.set(c.clientX, c.clientY), S.subVectors(v, m).multiplyScalar(t.rotateSpeed);
|
3689
3704
|
const E = t.domElement;
|
3690
|
-
be(2 * Math.PI * S.x / E.clientHeight), U(2 * Math.PI * S.y / E.clientHeight), m.copy(
|
3705
|
+
be(2 * Math.PI * S.x / E.clientHeight), U(2 * Math.PI * S.y / E.clientHeight), m.copy(v), t.update();
|
3691
3706
|
}
|
3692
3707
|
function Me(c) {
|
3693
3708
|
I.set(c.clientX, c.clientY), T.subVectors(I, R), T.y > 0 ? De(ke(T.y)) : T.y < 0 && je(ke(T.y)), R.copy(I), t.update();
|
@@ -3716,7 +3731,7 @@ class xi extends pn {
|
|
3716
3731
|
}
|
3717
3732
|
E && (c.preventDefault(), t.update());
|
3718
3733
|
}
|
3719
|
-
function
|
3734
|
+
function g(c) {
|
3720
3735
|
if (q.length === 1)
|
3721
3736
|
m.set(c.pageX, c.pageY);
|
3722
3737
|
else {
|
@@ -3740,18 +3755,18 @@ class xi extends pn {
|
|
3740
3755
|
t.enableZoom && M(c), t.enablePan && b(c);
|
3741
3756
|
}
|
3742
3757
|
function ve(c) {
|
3743
|
-
t.enableZoom && M(c), t.enableRotate &&
|
3758
|
+
t.enableZoom && M(c), t.enableRotate && g(c);
|
3744
3759
|
}
|
3745
3760
|
function le(c) {
|
3746
3761
|
if (q.length == 1)
|
3747
|
-
|
3762
|
+
v.set(c.pageX, c.pageY);
|
3748
3763
|
else {
|
3749
3764
|
const k = $e(c), B = 0.5 * (c.pageX + k.x), ie = 0.5 * (c.pageY + k.y);
|
3750
|
-
|
3765
|
+
v.set(B, ie);
|
3751
3766
|
}
|
3752
|
-
S.subVectors(
|
3767
|
+
S.subVectors(v, m).multiplyScalar(t.rotateSpeed);
|
3753
3768
|
const E = t.domElement;
|
3754
|
-
be(2 * Math.PI * S.x / E.clientHeight), U(2 * Math.PI * S.y / E.clientHeight), m.copy(
|
3769
|
+
be(2 * Math.PI * S.x / E.clientHeight), U(2 * Math.PI * S.y / E.clientHeight), m.copy(v);
|
3755
3770
|
}
|
3756
3771
|
function C(c) {
|
3757
3772
|
if (q.length === 1)
|
@@ -3893,7 +3908,7 @@ class xi extends pn {
|
|
3893
3908
|
case at.ROTATE:
|
3894
3909
|
if (t.enableRotate === !1)
|
3895
3910
|
return;
|
3896
|
-
|
3911
|
+
g(c), o = i.TOUCH_ROTATE;
|
3897
3912
|
break;
|
3898
3913
|
case at.PAN:
|
3899
3914
|
if (t.enablePan === !1)
|
@@ -4191,14 +4206,14 @@ class Oi extends In {
|
|
4191
4206
|
}
|
4192
4207
|
let xt = "Renderer", Te, St = !1, Nt = !1, X = null, oe = null, Ge = null, We = null;
|
4193
4208
|
function zi(e) {
|
4194
|
-
const n = e.three.app.appID, a = localStorage.getItem(`${n}_mode`), t = localStorage.getItem(`${n}_tlCam`) !== null ? localStorage.getItem(`${n}_tlCam`) : "Debug", i = localStorage.getItem(`${n}_trCam`) !== null ? localStorage.getItem(`${n}_trCam`) : "Orthographic", o = localStorage.getItem(`${n}_blCam`) !== null ? localStorage.getItem(`${n}_blCam`) : "Front", d = localStorage.getItem(`${n}_brCam`) !== null ? localStorage.getItem(`${n}_brCam`) : "Top", r = se(() => /* @__PURE__ */ new Map(), []), h = se(() => /* @__PURE__ */ new Map(), []), u = se(() => /* @__PURE__ */ new Map(), []), f = se(() => /* @__PURE__ */ new Map(), []), m = se(() => new pa(), []),
|
4209
|
+
const n = e.three.app.appID, a = localStorage.getItem(`${n}_mode`), t = localStorage.getItem(`${n}_tlCam`) !== null ? localStorage.getItem(`${n}_tlCam`) : "Debug", i = localStorage.getItem(`${n}_trCam`) !== null ? localStorage.getItem(`${n}_trCam`) : "Orthographic", o = localStorage.getItem(`${n}_blCam`) !== null ? localStorage.getItem(`${n}_blCam`) : "Front", d = localStorage.getItem(`${n}_brCam`) !== null ? localStorage.getItem(`${n}_brCam`) : "Top", r = se(() => /* @__PURE__ */ new Map(), []), h = se(() => /* @__PURE__ */ new Map(), []), u = se(() => /* @__PURE__ */ new Map(), []), f = se(() => /* @__PURE__ */ new Map(), []), m = se(() => new pa(), []), v = se(() => new ga(), []), S = se(() => new Ci(), []), A = se(() => new Qt(500), []), F = se(() => new Qt(100), []), V = se(() => new va(), []), R = se(() => new ba(), []), I = se(() => new Oi(), []), T = se(() => new jn({
|
4195
4210
|
opacity: 0.33,
|
4196
4211
|
transparent: !0,
|
4197
4212
|
wireframe: !0
|
4198
4213
|
}), []);
|
4199
|
-
function Z(
|
4214
|
+
function Z(g, b) {
|
4200
4215
|
const M = new en(-100, 100, 100, -100, 50, 5e3);
|
4201
|
-
return M.name =
|
4216
|
+
return M.name = g, M.position.copy(b), M.lookAt(0, 0, 0), r.set(g, M), M;
|
4202
4217
|
}
|
4203
4218
|
const te = [
|
4204
4219
|
"Renderer",
|
@@ -4213,12 +4228,12 @@ function zi(e) {
|
|
4213
4228
|
"Quad"
|
4214
4229
|
], q = Y(null), ge = Y(null), ce = Y(null), _e = Y(null), ke = Y(null), be = Y(null), [U, ye] = H(a !== null ? a : "Single"), [O, we] = H(null), [De, je] = H(!1), [Pe, Ae] = H(!1), [Ie, Be] = H(!1), [, Fe] = H(Date.now());
|
4215
4230
|
localStorage.setItem(`${n}_mode`, U), localStorage.setItem(`${n}_tlCam`, t), localStorage.setItem(`${n}_trCam`, i), localStorage.setItem(`${n}_blCam`, o), localStorage.setItem(`${n}_brCam`, d);
|
4216
|
-
const re = (
|
4217
|
-
const M = h.get(
|
4218
|
-
if (M !== void 0 && M.dispose(), h.delete(
|
4231
|
+
const re = (g, b) => {
|
4232
|
+
const M = h.get(g.name);
|
4233
|
+
if (M !== void 0 && M.dispose(), h.delete(g.name), g.name === "UI")
|
4219
4234
|
return;
|
4220
|
-
const N = new xi(
|
4221
|
-
switch (N.enableDamping = !0, N.dampingFactor = 0.05,
|
4235
|
+
const N = new xi(g, b);
|
4236
|
+
switch (N.enableDamping = !0, N.dampingFactor = 0.05, g.name) {
|
4222
4237
|
case "Top":
|
4223
4238
|
case "Bottom":
|
4224
4239
|
case "Left":
|
@@ -4228,15 +4243,15 @@ function zi(e) {
|
|
4228
4243
|
N.enableRotate = !1;
|
4229
4244
|
break;
|
4230
4245
|
}
|
4231
|
-
h.set(
|
4232
|
-
}, Me = (
|
4233
|
-
const b = u.get(
|
4234
|
-
b !== void 0 && (m.remove(b), b.dispose(), u.delete(
|
4235
|
-
const M = h.get(
|
4236
|
-
M !== void 0 && (M.dispose(), h.delete(
|
4246
|
+
h.set(g.name, N);
|
4247
|
+
}, Me = (g) => {
|
4248
|
+
const b = u.get(g.name);
|
4249
|
+
b !== void 0 && (m.remove(b), b.dispose(), u.delete(g.name));
|
4250
|
+
const M = h.get(g.name);
|
4251
|
+
M !== void 0 && (M.dispose(), h.delete(g.name));
|
4237
4252
|
}, He = () => {
|
4238
|
-
h.forEach((
|
4239
|
-
|
4253
|
+
h.forEach((g, b) => {
|
4254
|
+
g.dispose();
|
4240
4255
|
const M = u.get(b);
|
4241
4256
|
M !== void 0 && (m.remove(M), M.dispose()), u.delete(b), h.delete(b);
|
4242
4257
|
}), h.clear(), u.clear();
|
@@ -4255,19 +4270,19 @@ function zi(e) {
|
|
4255
4270
|
}
|
4256
4271
|
};
|
4257
4272
|
Re(() => {
|
4258
|
-
const
|
4273
|
+
const g = new ya({
|
4259
4274
|
canvas: q.current,
|
4260
4275
|
stencil: !1
|
4261
4276
|
});
|
4262
|
-
|
4277
|
+
g.autoClear = !1, g.shadowMap.enabled = !0, g.setPixelRatio(devicePixelRatio), g.setClearColor(0), e.three.renderer = g, we(g);
|
4263
4278
|
}, []), Re(() => {
|
4264
|
-
m.name = "Debug Scene", m.uuid = "",
|
4265
|
-
const
|
4266
|
-
|
4279
|
+
m.name = "Debug Scene", m.uuid = "", v.name = "helpers", m.add(v), v.add(S), A.name = "axisHelper", v.add(A), F.name = "interactionHelper", v.add(F), F.visible = !1, Z("Top", new J(0, 1e3, 0)), Z("Bottom", new J(0, -1e3, 0)), Z("Left", new J(-1e3, 0, 0)), Z("Right", new J(1e3, 0, 0)), Z("Front", new J(0, 0, 1e3)), Z("Back", new J(0, 0, -1e3)), Z("Orthographic", new J(1e3, 1e3, 1e3)), Z("UI", new J());
|
4280
|
+
const g = new At(60, 1, 50, 5e3);
|
4281
|
+
g.name = "Debug", g.position.set(500, 500, 500), g.lookAt(0, 0, 0), r.set("Debug", g), X = r.get(localStorage.getItem(`${n}_tlCam`)), oe = r.get(localStorage.getItem(`${n}_trCam`)), Ge = r.get(localStorage.getItem(`${n}_blCam`)), We = r.get(localStorage.getItem(`${n}_brCam`));
|
4267
4282
|
}, []), Re(() => {
|
4268
|
-
const
|
4283
|
+
const g = () => {
|
4269
4284
|
f.forEach((C) => {
|
4270
|
-
|
4285
|
+
v.remove(C), C.dispose();
|
4271
4286
|
}), f.clear();
|
4272
4287
|
}, b = () => {
|
4273
4288
|
Te.traverse((C) => {
|
@@ -4275,25 +4290,25 @@ function zi(e) {
|
|
4275
4290
|
let x;
|
4276
4291
|
switch (C.type) {
|
4277
4292
|
case "DirectionalLight":
|
4278
|
-
x = new Ma(C, 100), x.name = `${C.name}Helper`, f.set(C.name, x),
|
4293
|
+
x = new Ma(C, 100), x.name = `${C.name}Helper`, f.set(C.name, x), v.add(x);
|
4279
4294
|
break;
|
4280
4295
|
case "HemisphereLight":
|
4281
|
-
x = new wa(C, 250), x.name = `${C.name}Helper`, f.set(C.name, x),
|
4296
|
+
x = new wa(C, 250), x.name = `${C.name}Helper`, f.set(C.name, x), v.add(x);
|
4282
4297
|
break;
|
4283
4298
|
case "RectAreaLight":
|
4284
|
-
x = new yi(C), x.name = `${C.name}Helper`, f.set(C.name, x),
|
4299
|
+
x = new yi(C), x.name = `${C.name}Helper`, f.set(C.name, x), v.add(x);
|
4285
4300
|
break;
|
4286
4301
|
case "PointLight":
|
4287
|
-
x = new Ca(C, 100), x.name = `${C.name}Helper`, f.set(C.name, x),
|
4302
|
+
x = new Ca(C, 100), x.name = `${C.name}Helper`, f.set(C.name, x), v.add(x);
|
4288
4303
|
break;
|
4289
4304
|
case "SpotLight":
|
4290
|
-
x = new Sa(C), x.name = `${C.name}Helper`, f.set(C.name, x),
|
4305
|
+
x = new Sa(C), x.name = `${C.name}Helper`, f.set(C.name, x), v.add(x);
|
4291
4306
|
break;
|
4292
4307
|
}
|
4293
4308
|
}
|
4294
4309
|
});
|
4295
4310
|
}, M = (C) => {
|
4296
|
-
|
4311
|
+
v.add(A), g(), Tt(Te), m.remove(Te);
|
4297
4312
|
const x = e.scenes.get(C.value.name);
|
4298
4313
|
if (x !== void 0) {
|
4299
4314
|
const G = new x();
|
@@ -4319,32 +4334,32 @@ function zi(e) {
|
|
4319
4334
|
}, []), Re(() => {
|
4320
4335
|
if (O === null)
|
4321
4336
|
return;
|
4322
|
-
let
|
4337
|
+
let g = window.innerWidth, b = window.innerHeight, M = Math.floor(g / 2), N = Math.floor(b / 2), ve = -1;
|
4323
4338
|
const le = () => {
|
4324
|
-
|
4325
|
-
let _ =
|
4339
|
+
g = window.innerWidth - 300, b = window.innerHeight, M = Math.floor(g / 2), N = Math.floor(b / 2), e.three.resize(g, b), e.onSceneResize !== void 0 && Nt && e.onSceneResize(Te, g, b);
|
4340
|
+
let _ = g, z = b;
|
4326
4341
|
switch (U) {
|
4327
4342
|
case "Side by Side":
|
4328
4343
|
_ = M, z = b;
|
4329
4344
|
break;
|
4330
4345
|
case "Stacked":
|
4331
|
-
_ =
|
4346
|
+
_ = g, z = N;
|
4332
4347
|
break;
|
4333
4348
|
case "Quad":
|
4334
4349
|
_ = M, z = N;
|
4335
4350
|
break;
|
4336
4351
|
}
|
4337
4352
|
r.forEach((K) => {
|
4338
|
-
K instanceof en ? (K.left = _ / -2, K.right = _ / 2, K.top = z / 2, K.bottom = z / -2, K.name === "UI" && (K.position.x =
|
4353
|
+
K instanceof en ? (K.left = _ / -2, K.right = _ / 2, K.top = z / 2, K.bottom = z / -2, K.name === "UI" && (K.position.x = g / 2, K.position.y = b / -2, K.position.z = 100), K.updateProjectionMatrix()) : K instanceof At && (K.aspect = _ / z, K.updateProjectionMatrix(), u.get(K.name)?.update());
|
4339
4354
|
});
|
4340
4355
|
}, C = () => {
|
4341
|
-
O.setViewport(0, 0,
|
4356
|
+
O.setViewport(0, 0, g, b), O.setScissor(0, 0, g, b), O.render(m, X);
|
4342
4357
|
}, x = () => {
|
4343
4358
|
if (U === "Side by Side")
|
4344
4359
|
O.setViewport(0, 0, M, b), O.setScissor(0, 0, M, b), O.render(m, X), O.setViewport(M, 0, M, b), O.setScissor(M, 0, M, b), O.render(m, oe);
|
4345
4360
|
else {
|
4346
4361
|
const _ = b - N;
|
4347
|
-
O.setViewport(0, _,
|
4362
|
+
O.setViewport(0, _, g, N), O.setScissor(0, _, g, N), O.render(m, X), O.setViewport(0, 0, g, N), O.setScissor(0, 0, g, N), O.render(m, oe);
|
4348
4363
|
}
|
4349
4364
|
}, G = () => {
|
4350
4365
|
let _ = 0, z = 0;
|
@@ -4375,19 +4390,19 @@ function zi(e) {
|
|
4375
4390
|
};
|
4376
4391
|
}, [U, O]), Re(() => {
|
4377
4392
|
if (O !== null) {
|
4378
|
-
const
|
4393
|
+
const g = new Ea(), b = new me(), M = (C, x, G, ne) => {
|
4379
4394
|
switch (U) {
|
4380
4395
|
case "Quad":
|
4381
|
-
C < G ? x < ne ?
|
4396
|
+
C < G ? x < ne ? g.setFromCamera(b, X) : g.setFromCamera(b, Ge) : x < ne ? g.setFromCamera(b, oe) : g.setFromCamera(b, We);
|
4382
4397
|
break;
|
4383
4398
|
case "Side by Side":
|
4384
|
-
C < G ?
|
4399
|
+
C < G ? g.setFromCamera(b, X) : g.setFromCamera(b, oe);
|
4385
4400
|
break;
|
4386
4401
|
case "Single":
|
4387
|
-
|
4402
|
+
g.setFromCamera(b, X);
|
4388
4403
|
break;
|
4389
4404
|
case "Stacked":
|
4390
|
-
x < ne ?
|
4405
|
+
x < ne ? g.setFromCamera(b, X) : g.setFromCamera(b, oe);
|
4391
4406
|
break;
|
4392
4407
|
}
|
4393
4408
|
}, N = (C) => {
|
@@ -4414,7 +4429,7 @@ function zi(e) {
|
|
4414
4429
|
break;
|
4415
4430
|
}
|
4416
4431
|
M(G, ne, _, z);
|
4417
|
-
const Je =
|
4432
|
+
const Je = g.intersectObjects(Te.children);
|
4418
4433
|
Je.length > 0 && F.position.copy(Je[0].point);
|
4419
4434
|
}, ve = (C) => {
|
4420
4435
|
if (!St)
|
@@ -4423,7 +4438,7 @@ function zi(e) {
|
|
4423
4438
|
if (O.getSize(x), C.clientX >= x.x)
|
4424
4439
|
return;
|
4425
4440
|
N(C);
|
4426
|
-
const G =
|
4441
|
+
const G = g.intersectObjects(Te.children);
|
4427
4442
|
G.length > 0 && e.three.getObject(G[0].object.uuid);
|
4428
4443
|
}, le = ge.current;
|
4429
4444
|
return le.addEventListener("mousemove", N, !1), le.addEventListener("click", ve, !1), () => {
|
@@ -4432,48 +4447,48 @@ function zi(e) {
|
|
4432
4447
|
}
|
4433
4448
|
}, [U, O]);
|
4434
4449
|
const ue = [];
|
4435
|
-
return r.forEach((
|
4450
|
+
return r.forEach((g, b) => {
|
4436
4451
|
ue.push(b);
|
4437
4452
|
}), /* @__PURE__ */ l.jsxs("div", { className: "multiview", children: [
|
4438
4453
|
/* @__PURE__ */ l.jsx("canvas", { ref: q }),
|
4439
4454
|
O !== null && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
4440
4455
|
/* @__PURE__ */ l.jsxs("div", { className: `cameras ${U === "Single" || U === "Stacked" ? "single" : ""}`, ref: ge, children: [
|
4441
|
-
U === "Single" && /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(qe, { camera: X, options: ue, ref: ce, onSelect: (
|
4456
|
+
U === "Single" && /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(qe, { camera: X, options: ue, ref: ce, onSelect: (g) => {
|
4442
4457
|
h.get(X.name)?.dispose();
|
4443
|
-
const b = r.get(
|
4458
|
+
const b = r.get(g);
|
4444
4459
|
b !== void 0 && (Me(X), X = b, localStorage.setItem(`${n}_tlCam`, b.name), re(b, ce.current));
|
4445
4460
|
} }) }),
|
4446
4461
|
(U === "Side by Side" || U === "Stacked") && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
4447
|
-
/* @__PURE__ */ l.jsx(qe, { camera: X, options: ue, ref: ce, onSelect: (
|
4462
|
+
/* @__PURE__ */ l.jsx(qe, { camera: X, options: ue, ref: ce, onSelect: (g) => {
|
4448
4463
|
h.get(X.name)?.dispose();
|
4449
|
-
const b = r.get(
|
4464
|
+
const b = r.get(g);
|
4450
4465
|
b !== void 0 && (Me(X), X = b, localStorage.setItem(`${n}_tlCam`, b.name), re(b, ce.current));
|
4451
4466
|
} }),
|
4452
|
-
/* @__PURE__ */ l.jsx(qe, { camera: oe, options: ue, ref: _e, onSelect: (
|
4467
|
+
/* @__PURE__ */ l.jsx(qe, { camera: oe, options: ue, ref: _e, onSelect: (g) => {
|
4453
4468
|
h.get(oe.name)?.dispose();
|
4454
|
-
const b = r.get(
|
4469
|
+
const b = r.get(g);
|
4455
4470
|
b !== void 0 && (Me(oe), oe = b, localStorage.setItem(`${n}_trCam`, b.name), re(b, _e.current));
|
4456
4471
|
} })
|
4457
4472
|
] }),
|
4458
4473
|
U === "Quad" && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
4459
|
-
/* @__PURE__ */ l.jsx(qe, { camera: X, options: ue, ref: ce, onSelect: (
|
4474
|
+
/* @__PURE__ */ l.jsx(qe, { camera: X, options: ue, ref: ce, onSelect: (g) => {
|
4460
4475
|
h.get(X.name)?.dispose();
|
4461
|
-
const b = r.get(
|
4476
|
+
const b = r.get(g);
|
4462
4477
|
b !== void 0 && (Me(X), X = b, localStorage.setItem(`${n}_tlCam`, b.name), re(b, ce.current));
|
4463
4478
|
} }),
|
4464
|
-
/* @__PURE__ */ l.jsx(qe, { camera: oe, options: ue, ref: _e, onSelect: (
|
4479
|
+
/* @__PURE__ */ l.jsx(qe, { camera: oe, options: ue, ref: _e, onSelect: (g) => {
|
4465
4480
|
h.get(oe.name)?.dispose();
|
4466
|
-
const b = r.get(
|
4481
|
+
const b = r.get(g);
|
4467
4482
|
b !== void 0 && (Me(oe), oe = b, localStorage.setItem(`${n}_trCam`, b.name), re(b, _e.current));
|
4468
4483
|
} }),
|
4469
|
-
/* @__PURE__ */ l.jsx(qe, { camera: Ge, options: ue, ref: ke, onSelect: (
|
4484
|
+
/* @__PURE__ */ l.jsx(qe, { camera: Ge, options: ue, ref: ke, onSelect: (g) => {
|
4470
4485
|
h.get(Ge.name)?.dispose();
|
4471
|
-
const b = r.get(
|
4486
|
+
const b = r.get(g);
|
4472
4487
|
b !== void 0 && (Me(Ge), Ge = b, localStorage.setItem(`${n}_blCam`, b.name), re(b, ke.current));
|
4473
4488
|
} }),
|
4474
|
-
/* @__PURE__ */ l.jsx(qe, { camera: We, options: ue, ref: be, onSelect: (
|
4489
|
+
/* @__PURE__ */ l.jsx(qe, { camera: We, options: ue, ref: be, onSelect: (g) => {
|
4475
4490
|
h.get(We.name)?.dispose();
|
4476
|
-
const b = r.get(
|
4491
|
+
const b = r.get(g);
|
4477
4492
|
b !== void 0 && (Me(We), We = b, localStorage.setItem(`${n}_brCam`, b.name), re(b, be.current));
|
4478
4493
|
} })
|
4479
4494
|
] })
|
@@ -4484,12 +4499,12 @@ function zi(e) {
|
|
4484
4499
|
{
|
4485
4500
|
index: pe.indexOf(U),
|
4486
4501
|
options: pe,
|
4487
|
-
onSelect: (
|
4488
|
-
|
4502
|
+
onSelect: (g) => {
|
4503
|
+
g !== U && (He(), ye(g));
|
4489
4504
|
},
|
4490
4505
|
open: De,
|
4491
|
-
onToggle: (
|
4492
|
-
je(
|
4506
|
+
onToggle: (g) => {
|
4507
|
+
je(g), Pe && Ae(!1), Ie && Be(!1);
|
4493
4508
|
}
|
4494
4509
|
}
|
4495
4510
|
),
|
@@ -4498,9 +4513,9 @@ function zi(e) {
|
|
4498
4513
|
{
|
4499
4514
|
index: te.indexOf(xt),
|
4500
4515
|
options: te,
|
4501
|
-
onSelect: (
|
4502
|
-
if (
|
4503
|
-
switch (xt =
|
4516
|
+
onSelect: (g) => {
|
4517
|
+
if (g !== xt)
|
4518
|
+
switch (xt = g, xt) {
|
4504
4519
|
case "Depth":
|
4505
4520
|
m.overrideMaterial = V;
|
4506
4521
|
break;
|
@@ -4520,8 +4535,8 @@ function zi(e) {
|
|
4520
4535
|
}
|
4521
4536
|
},
|
4522
4537
|
open: Pe,
|
4523
|
-
onToggle: (
|
4524
|
-
De && je(!1), Ae(
|
4538
|
+
onToggle: (g) => {
|
4539
|
+
De && je(!1), Ae(g), Ie && Be(!1);
|
4525
4540
|
}
|
4526
4541
|
}
|
4527
4542
|
),
|
@@ -4533,12 +4548,12 @@ function zi(e) {
|
|
4533
4548
|
"Orbit Mode",
|
4534
4549
|
"Selection Mode"
|
4535
4550
|
],
|
4536
|
-
onSelect: (
|
4537
|
-
St =
|
4551
|
+
onSelect: (g) => {
|
4552
|
+
St = g === "Selection Mode", F.visible = St;
|
4538
4553
|
},
|
4539
4554
|
open: Ie,
|
4540
|
-
onToggle: (
|
4541
|
-
De && je(!1), Pe && Ae(!1), Be(
|
4555
|
+
onToggle: (g) => {
|
4556
|
+
De && je(!1), Pe && Ae(!1), Be(g);
|
4542
4557
|
}
|
4543
4558
|
}
|
4544
4559
|
)
|