@tomorrowevening/hermes 0.0.61 → 0.0.63
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 +10 -10
- package/dist/hermes.es.js +167 -167
- package/package.json +1 -1
- package/types/core/remote/RemoteTheatre.d.ts +1 -1
- package/types/editor/multiView/MultiView.d.ts +1 -0
package/dist/hermes.es.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { EventDispatcher as hn, Texture as fn, CubeTexture as Wn, RepeatWrapping as
|
1
|
+
import { EventDispatcher as hn, Texture as fn, CubeTexture as Wn, RepeatWrapping as Yt, WebGLRenderTarget as Hn, Color as Bt, FrontSide as Yn, BackSide as mn, DoubleSide as pn, NoBlending as Vn, NormalBlending as qn, AdditiveBlending as Kn, SubtractiveBlending as Zn, MultiplyBlending as Xn, CustomBlending as Jn, AddEquation as Qn, SubtractEquation as ea, ReverseSubtractEquation as ta, MinEquation as na, MaxEquation as aa, ZeroFactor as gn, OneFactor as vn, SrcColorFactor as bn, OneMinusSrcColorFactor as yn, SrcAlphaFactor as xn, OneMinusSrcAlphaFactor as En, DstAlphaFactor as Cn, OneMinusDstAlphaFactor as Sn, DstColorFactor as wn, OneMinusDstColorFactor as Mn, SrcAlphaSaturateFactor as ia, ConstantColorFactor as On, OneMinusConstantColorFactor as Tn, ConstantAlphaFactor as _n, OneMinusConstantAlphaFactor as Rn, Matrix4 as ra, Vector3 as Y, Euler as sa, Line as oa, BufferGeometry as Vt, Float32BufferAttribute as qt, LineBasicMaterial as ca, Mesh as Pn, MeshBasicMaterial as kn, Ray as la, Plane as ua, MathUtils as da, MOUSE as nt, TOUCH as at, Quaternion as Kt, Spherical as Zt, Vector2 as fe, ShaderMaterial as jn, GLSL3 as ha, PlaneGeometry as fa, Scene as ma, Group as pa, AxesHelper as Xt, MeshDepthMaterial as ga, MeshNormalMaterial as va, WebGLRenderer as ba, PerspectiveCamera as kt, Raycaster as ya, OrthographicCamera as Jt, CameraHelper as xa, SpotLightHelper as Ea, PointLightHelper as Ca, HemisphereLightHelper as Sa, DirectionalLightHelper as wa } from "three";
|
2
2
|
import { Pane as Ma } from "tweakpane";
|
3
3
|
import * as Oa from "@tweakpane/plugin-essentials";
|
4
4
|
import An, { useState as Z, useEffect as Ae, useRef as X, useMemo as ie, forwardRef as Ta } from "react";
|
5
5
|
import { Reorder as Dn } from "framer-motion";
|
6
|
-
const
|
6
|
+
const Ft = () => {
|
7
7
|
}, Pi = () => {
|
8
8
|
};
|
9
9
|
function Mt(e) {
|
@@ -12,10 +12,10 @@ function Mt(e) {
|
|
12
12
|
function Ke(e, n, a) {
|
13
13
|
return Math.min(n, Math.max(e, a));
|
14
14
|
}
|
15
|
-
function
|
15
|
+
function Qt(e, n, a) {
|
16
16
|
return (a - e) / (n - e);
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function en(e, n, a) {
|
19
19
|
return e * (1 - a) + n * a;
|
20
20
|
}
|
21
21
|
function ki(e, n) {
|
@@ -35,28 +35,28 @@ function Pa(e) {
|
|
35
35
|
}, c = i(n), u = i(a), o = i(t);
|
36
36
|
return "#" + c + u + o;
|
37
37
|
}
|
38
|
-
function
|
38
|
+
function tn(e, n = 1) {
|
39
39
|
return Number(e.toFixed(n));
|
40
40
|
}
|
41
|
-
let
|
41
|
+
let It = 0;
|
42
42
|
const ka = () => {
|
43
|
-
|
43
|
+
It = 0;
|
44
44
|
}, In = (e) => {
|
45
45
|
if (!e)
|
46
46
|
return;
|
47
47
|
let n = e.name.replace(" ", "");
|
48
|
-
n.length === 0 && (n = `obj_${
|
48
|
+
n.length === 0 && (n = `obj_${It}`, It++), e.parent !== null && e.parent.uuid.length > 0 && (n = `${e.parent.uuid}.${n}`), e.uuid = n, e.children.forEach((a) => {
|
49
49
|
In(a);
|
50
50
|
});
|
51
51
|
}, ji = (e) => {
|
52
52
|
e?.dispose();
|
53
53
|
}, ja = (e) => {
|
54
54
|
e && (Array.isArray(e) ? e.forEach((n) => n.dispose()) : e.dispose());
|
55
|
-
},
|
55
|
+
}, Ut = (e) => {
|
56
56
|
if (e) {
|
57
57
|
for (; e.children.length > 0; ) {
|
58
58
|
const n = e.children[0];
|
59
|
-
n.type === "Audio" ? (n.pause(), n.parent && n.parent.remove(n)) :
|
59
|
+
n.type === "Audio" ? (n.pause(), n.parent && n.parent.remove(n)) : Ut(n);
|
60
60
|
}
|
61
61
|
if (e.parent && e.parent.remove(e), e.isMesh) {
|
62
62
|
const n = e;
|
@@ -183,7 +183,7 @@ class Di extends Ot {
|
|
183
183
|
}
|
184
184
|
}
|
185
185
|
}
|
186
|
-
class
|
186
|
+
class $t extends Ot {
|
187
187
|
project;
|
188
188
|
sheets = /* @__PURE__ */ new Map();
|
189
189
|
sheetObjects = /* @__PURE__ */ new Map();
|
@@ -195,13 +195,13 @@ class Ut extends Ot {
|
|
195
195
|
dispose() {
|
196
196
|
this.project = void 0, this.sheets = /* @__PURE__ */ new Map(), this.sheetObjects = /* @__PURE__ */ new Map(), this.sheetObjectCBs = /* @__PURE__ */ new Map(), this.sheetObjectUnsubscribe = /* @__PURE__ */ new Map();
|
197
197
|
}
|
198
|
-
sheet(n) {
|
198
|
+
sheet(n, a) {
|
199
199
|
if (this.project === void 0) {
|
200
200
|
console.error("Theatre Project hasn't been created yet.");
|
201
201
|
return;
|
202
202
|
}
|
203
|
-
let
|
204
|
-
return
|
203
|
+
let t = this.sheets.get(n);
|
204
|
+
return t !== void 0 || (t = this.project?.sheet(n, a), this.sheets.set(n, t)), t;
|
205
205
|
}
|
206
206
|
playSheet(n, a) {
|
207
207
|
this.sheet(n)?.sequence.play(a), this.app.send({
|
@@ -237,7 +237,7 @@ class Ut extends Ot {
|
|
237
237
|
return;
|
238
238
|
const u = `${n}_${a}`;
|
239
239
|
let o = this.sheetObjects.get(u);
|
240
|
-
o !== void 0 ? o = c.object(a, { ...t, ...o.value }, { reconfigure: !0 }) : o = c.object(a, t), this.sheetObjects.set(u, o), this.sheetObjectCBs.set(u, i !== void 0 ? i :
|
240
|
+
o !== void 0 ? o = c.object(a, { ...t, ...o.value }, { reconfigure: !0 }) : o = c.object(a, t), this.sheetObjects.set(u, o), this.sheetObjectCBs.set(u, i !== void 0 ? i : Ft);
|
241
241
|
const d = o.onValuesChange((h) => {
|
242
242
|
if (this.app.editor) {
|
243
243
|
for (const m in h) {
|
@@ -329,7 +329,7 @@ class Ut extends Ot {
|
|
329
329
|
});
|
330
330
|
let t = -1;
|
331
331
|
const i = () => {
|
332
|
-
if (
|
332
|
+
if ($t.rafDriver?.tick(performance.now()), a.activeSheet !== void 0 && t !== a.activeSheet.sequence.position) {
|
333
333
|
t = a.activeSheet.sequence.position;
|
334
334
|
const u = a.activeSheet;
|
335
335
|
n.send({
|
@@ -373,7 +373,7 @@ function Ii(e, n, a) {
|
|
373
373
|
});
|
374
374
|
let t = -1;
|
375
375
|
const i = () => {
|
376
|
-
if (
|
376
|
+
if ($t.rafDriver?.tick(performance.now()), n.activeSheet !== void 0 && t !== n.activeSheet.sequence.position) {
|
377
377
|
t = n.activeSheet.sequence.position;
|
378
378
|
const u = n.activeSheet;
|
379
379
|
e.send({
|
@@ -614,7 +614,7 @@ function Ln(e) {
|
|
614
614
|
const t = new Image();
|
615
615
|
t.onload = () => {
|
616
616
|
const i = new fn(t);
|
617
|
-
i.wrapS =
|
617
|
+
i.wrapS = Yt, i.wrapT = Yt, i.needsUpdate = !0, n(i);
|
618
618
|
}, t.onerror = a, t.src = e;
|
619
619
|
});
|
620
620
|
}
|
@@ -625,7 +625,7 @@ class Ni extends Ot {
|
|
625
625
|
dispose() {
|
626
626
|
this.renderTargets.forEach((n) => {
|
627
627
|
n.dispose();
|
628
|
-
}), this.renderTargets.clear(), this.scene &&
|
628
|
+
}), this.renderTargets.clear(), this.scene && Ut(this.scene), this.renderer?.dispose();
|
629
629
|
}
|
630
630
|
getObject(n) {
|
631
631
|
this.app.debugEnabled && this.app.send({
|
@@ -805,7 +805,7 @@ class Li extends Ot {
|
|
805
805
|
}
|
806
806
|
// Binding
|
807
807
|
bind(n, a, t, i = void 0) {
|
808
|
-
const c = this.bindID, u = t.onChange !== void 0 ? t.onChange :
|
808
|
+
const c = this.bindID, u = t.onChange !== void 0 ? t.onChange : Ft;
|
809
809
|
this.bindCBs.set(c, u), this.app.editor ? (this.pane === void 0 && this.createGUI(), (i !== void 0 ? i : this.pane).addBinding(n, a, t).on("change", (d) => {
|
810
810
|
this.app.send({
|
811
811
|
event: "updateBind",
|
@@ -886,7 +886,7 @@ class Li extends Ot {
|
|
886
886
|
}
|
887
887
|
}
|
888
888
|
}
|
889
|
-
var
|
889
|
+
var Nt = { exports: {} }, lt = {};
|
890
890
|
/**
|
891
891
|
* @license React
|
892
892
|
* react-jsx-runtime.production.min.js
|
@@ -896,11 +896,11 @@ var It = { exports: {} }, lt = {};
|
|
896
896
|
* This source code is licensed under the MIT license found in the
|
897
897
|
* LICENSE file in the root directory of this source tree.
|
898
898
|
*/
|
899
|
-
var
|
899
|
+
var nn;
|
900
900
|
function Ba() {
|
901
|
-
if (
|
901
|
+
if (nn)
|
902
902
|
return lt;
|
903
|
-
|
903
|
+
nn = 1;
|
904
904
|
var e = An, 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, c = { key: !0, ref: !0, __self: !0, __source: !0 };
|
905
905
|
function u(o, d, h) {
|
906
906
|
var f, m = {}, x = null, T = null;
|
@@ -924,9 +924,9 @@ var ut = {};
|
|
924
924
|
* This source code is licensed under the MIT license found in the
|
925
925
|
* LICENSE file in the root directory of this source tree.
|
926
926
|
*/
|
927
|
-
var
|
927
|
+
var an;
|
928
928
|
function Fa() {
|
929
|
-
return
|
929
|
+
return an || (an = 1, process.env.NODE_ENV !== "production" && function() {
|
930
930
|
var e = An, n = Symbol.for("react.element"), a = Symbol.for("react.portal"), t = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), c = Symbol.for("react.profiler"), u = Symbol.for("react.provider"), o = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), h = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), x = Symbol.for("react.lazy"), T = Symbol.for("react.offscreen"), W = Symbol.iterator, te = "@@iterator";
|
931
931
|
function me(r) {
|
932
932
|
if (r === null || typeof r != "object")
|
@@ -954,14 +954,14 @@ function Fa() {
|
|
954
954
|
}
|
955
955
|
var q = !1, ne = !1, Se = !1, z = !1, pe = !1, ce;
|
956
956
|
ce = Symbol.for("react.module.reference");
|
957
|
-
function
|
957
|
+
function _e(r) {
|
958
958
|
return !!(typeof r == "string" || typeof r == "function" || r === t || r === c || pe || r === i || r === h || r === f || z || r === T || q || ne || Se || typeof r == "object" && r !== null && (r.$$typeof === x || r.$$typeof === m || r.$$typeof === u || r.$$typeof === o || r.$$typeof === d || // This needs to include all possible module reference object
|
959
959
|
// types supported by any Flight configuration anywhere since
|
960
960
|
// we don't know which Flight build this will end up being used
|
961
961
|
// with.
|
962
962
|
r.$$typeof === ce || r.getModuleId !== void 0));
|
963
963
|
}
|
964
|
-
function
|
964
|
+
function Re(r, p, b) {
|
965
965
|
var S = r.displayName;
|
966
966
|
if (S)
|
967
967
|
return S;
|
@@ -1001,7 +1001,7 @@ function Fa() {
|
|
1001
1001
|
var b = r;
|
1002
1002
|
return ve(b._context) + ".Provider";
|
1003
1003
|
case d:
|
1004
|
-
return
|
1004
|
+
return Re(r, r.render, "ForwardRef");
|
1005
1005
|
case m:
|
1006
1006
|
var S = r.displayName || null;
|
1007
1007
|
return S !== null ? S : N(r.type) || "Memo";
|
@@ -1016,14 +1016,14 @@ function Fa() {
|
|
1016
1016
|
}
|
1017
1017
|
return null;
|
1018
1018
|
}
|
1019
|
-
var be = Object.assign,
|
1019
|
+
var be = Object.assign, M = 0, we, Pe, De, ke, je, Ie, Be;
|
1020
1020
|
function Fe() {
|
1021
1021
|
}
|
1022
1022
|
Fe.__reactDisabledLog = !0;
|
1023
1023
|
function ae() {
|
1024
1024
|
{
|
1025
|
-
if (
|
1026
|
-
we = console.log,
|
1025
|
+
if (M === 0) {
|
1026
|
+
we = console.log, Pe = console.info, De = console.warn, ke = console.error, je = console.group, Ie = console.groupCollapsed, Be = console.groupEnd;
|
1027
1027
|
var r = {
|
1028
1028
|
configurable: !0,
|
1029
1029
|
enumerable: !0,
|
@@ -1040,12 +1040,12 @@ function Fa() {
|
|
1040
1040
|
groupEnd: r
|
1041
1041
|
});
|
1042
1042
|
}
|
1043
|
-
|
1043
|
+
M++;
|
1044
1044
|
}
|
1045
1045
|
}
|
1046
1046
|
function Me() {
|
1047
1047
|
{
|
1048
|
-
if (
|
1048
|
+
if (M--, M === 0) {
|
1049
1049
|
var r = {
|
1050
1050
|
configurable: !0,
|
1051
1051
|
enumerable: !0,
|
@@ -1056,16 +1056,16 @@ function Fa() {
|
|
1056
1056
|
value: we
|
1057
1057
|
}),
|
1058
1058
|
info: be({}, r, {
|
1059
|
-
value:
|
1059
|
+
value: Pe
|
1060
1060
|
}),
|
1061
1061
|
warn: be({}, r, {
|
1062
1062
|
value: De
|
1063
1063
|
}),
|
1064
1064
|
error: be({}, r, {
|
1065
|
-
value:
|
1065
|
+
value: ke
|
1066
1066
|
}),
|
1067
1067
|
group: be({}, r, {
|
1068
|
-
value:
|
1068
|
+
value: je
|
1069
1069
|
}),
|
1070
1070
|
groupCollapsed: be({}, r, {
|
1071
1071
|
value: Ie
|
@@ -1075,7 +1075,7 @@ function Fa() {
|
|
1075
1075
|
})
|
1076
1076
|
});
|
1077
1077
|
}
|
1078
|
-
|
1078
|
+
M < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
1079
1079
|
}
|
1080
1080
|
}
|
1081
1081
|
var He = re.ReactCurrentDispatcher, Ye;
|
@@ -1094,8 +1094,8 @@ function Fa() {
|
|
1094
1094
|
}
|
1095
1095
|
var g = !1, v;
|
1096
1096
|
{
|
1097
|
-
var
|
1098
|
-
v = new
|
1097
|
+
var w = typeof WeakMap == "function" ? WeakMap : Map;
|
1098
|
+
v = new w();
|
1099
1099
|
}
|
1100
1100
|
function P(r, p) {
|
1101
1101
|
if (!r || g)
|
@@ -1165,8 +1165,8 @@ function Fa() {
|
|
1165
1165
|
} finally {
|
1166
1166
|
g = !1, He.current = U, Me(), Error.prepareStackTrace = L;
|
1167
1167
|
}
|
1168
|
-
var tt = r ? r.displayName || r.name : "",
|
1169
|
-
return typeof r == "function" && v.set(r,
|
1168
|
+
var tt = r ? r.displayName || r.name : "", Ht = tt ? ue(tt) : "";
|
1169
|
+
return typeof r == "function" && v.set(r, Ht), Ht;
|
1170
1170
|
}
|
1171
1171
|
function ge(r, p, b) {
|
1172
1172
|
return P(r, !1);
|
@@ -1306,7 +1306,7 @@ function Fa() {
|
|
1306
1306
|
});
|
1307
1307
|
}
|
1308
1308
|
}
|
1309
|
-
var
|
1309
|
+
var Gt = function(r, p, b, S, L, U, k) {
|
1310
1310
|
var R = {
|
1311
1311
|
// This tag allows us to uniquely identify this as a React Element
|
1312
1312
|
$$typeof: n,
|
@@ -1350,7 +1350,7 @@ function Fa() {
|
|
1350
1350
|
var Q = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
1351
1351
|
R && vt(k, Q), he && $e(k, Q);
|
1352
1352
|
}
|
1353
|
-
return
|
1353
|
+
return Gt(r, R, he, L, S, Ue.current, k);
|
1354
1354
|
}
|
1355
1355
|
}
|
1356
1356
|
var y = re.ReactCurrentOwner, _ = re.ReactDebugCurrentFrame;
|
@@ -1378,7 +1378,7 @@ Check the render method of \`` + r + "`.";
|
|
1378
1378
|
return "";
|
1379
1379
|
}
|
1380
1380
|
}
|
1381
|
-
function
|
1381
|
+
function Wt(r) {
|
1382
1382
|
{
|
1383
1383
|
if (r !== void 0) {
|
1384
1384
|
var p = r.fileName.replace(/^.*[\\\/]/, ""), b = r.lineNumber;
|
@@ -1473,11 +1473,11 @@ Check the top-level render call using <` + b + ">.");
|
|
1473
1473
|
}
|
1474
1474
|
function ze(r, p, b, S, L, U) {
|
1475
1475
|
{
|
1476
|
-
var k =
|
1476
|
+
var k = _e(r);
|
1477
1477
|
if (!k) {
|
1478
1478
|
var R = "";
|
1479
1479
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (R += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
1480
|
-
var he =
|
1480
|
+
var he = Wt(L);
|
1481
1481
|
he ? R += he : R += de();
|
1482
1482
|
var K;
|
1483
1483
|
r === null ? K = "null" : Ne(r) ? K = "array" : r !== void 0 && r.$$typeof === n ? (K = "<" + (N(r.type) || "Unknown") + " />", R = " Did you accidentally export a JSX literal instead of a component?") : K = typeof r, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", K, R);
|
@@ -1511,8 +1511,8 @@ Check the top-level render call using <` + b + ">.");
|
|
1511
1511
|
ut.Fragment = t, ut.jsx = zn, ut.jsxs = Gn;
|
1512
1512
|
}()), ut;
|
1513
1513
|
}
|
1514
|
-
process.env.NODE_ENV === "production" ?
|
1515
|
-
var l =
|
1514
|
+
process.env.NODE_ENV === "production" ? Nt.exports = Ba() : Nt.exports = Fa();
|
1515
|
+
var l = Nt.exports;
|
1516
1516
|
function Bn(e) {
|
1517
1517
|
return e.title.search("<") > -1 ? /* @__PURE__ */ l.jsx("button", { className: "svg", dangerouslySetInnerHTML: { __html: e.title } }) : /* @__PURE__ */ l.jsx("button", { children: e.title });
|
1518
1518
|
}
|
@@ -1643,7 +1643,7 @@ function Bi(e, n, a) {
|
|
1643
1643
|
c.target === "editor" ? i(c) : t(c);
|
1644
1644
|
};
|
1645
1645
|
}
|
1646
|
-
function
|
1646
|
+
function zt(e) {
|
1647
1647
|
const [n, a] = Z(e.open !== void 0 ? e.open : !0), t = !n || e.children === void 0;
|
1648
1648
|
return /* @__PURE__ */ l.jsxs("div", { className: `accordion ${t ? "hide" : ""}`, children: [
|
1649
1649
|
/* @__PURE__ */ l.jsxs(
|
@@ -1744,7 +1744,7 @@ function Xe(e) {
|
|
1744
1744
|
Math.random()
|
1745
1745
|
)
|
1746
1746
|
);
|
1747
|
-
}), /* @__PURE__ */ l.jsx(
|
1747
|
+
}), /* @__PURE__ */ l.jsx(zt, { label: e.title, open: e.expanded === !0, children: n });
|
1748
1748
|
}
|
1749
1749
|
function Ka(e) {
|
1750
1750
|
return !(e === "alphaHash" || e === "alphaToCoverage" || e === "attenuationDistance" || e === "blendAlpha" || e === "blendColor" || e === "blendDstAlpha" || e === "colorWrite" || e === "combine" || e === "defaultAttributeValues" || e === "depthFunc" || e === "forceSinglePass" || e === "glslVersion" || e === "linecap" || e === "linejoin" || e === "linewidth" || e === "normalMapType" || e === "precision" || e === "premultipliedAlpha" || e === "shadowSide" || e === "toneMapped" || e === "uniformsGroups" || e === "uniformsNeedUpdate" || e === "userData" || e === "vertexColors" || e === "version" || e === "wireframeLinecap" || e === "wireframeLinejoin" || e === "wireframeLinewidth" || e.slice(0, 4) === "clip" || e.slice(0, 7) === "polygon" || e.slice(0, 7) === "stencil" || e.slice(0, 2) === "is");
|
@@ -2254,7 +2254,7 @@ function oi(e) {
|
|
2254
2254
|
function ci(e) {
|
2255
2255
|
return e.x !== void 0 && e.y !== void 0 && e.z !== void 0 && e.w !== void 0;
|
2256
2256
|
}
|
2257
|
-
function
|
2257
|
+
function Lt(e) {
|
2258
2258
|
e.sort((n, a) => n.title < a.title ? -1 : n.title > a.title ? 1 : 0);
|
2259
2259
|
}
|
2260
2260
|
function ht(e, n, a, t, i = "", c = !1) {
|
@@ -2296,7 +2296,7 @@ function ht(e, n, a, t, i = "", c = !1) {
|
|
2296
2296
|
value: n,
|
2297
2297
|
disabled: c,
|
2298
2298
|
onChange: (h, f) => {
|
2299
|
-
const m = new
|
2299
|
+
const m = new Bt(f);
|
2300
2300
|
t.updateObject(a.uuid, `material.${o}`, m);
|
2301
2301
|
const x = t.scene?.getObjectByProperty("uuid", a.uuid);
|
2302
2302
|
x !== void 0 && V(x, `material.${o}`, m);
|
@@ -2315,7 +2315,7 @@ function ht(e, n, a, t, i = "", c = !1) {
|
|
2315
2315
|
}
|
2316
2316
|
}
|
2317
2317
|
if (h.length > 0)
|
2318
|
-
return
|
2318
|
+
return Lt(h), {
|
2319
2319
|
title: u,
|
2320
2320
|
items: h
|
2321
2321
|
};
|
@@ -2418,7 +2418,7 @@ function ht(e, n, a, t, i = "", c = !1) {
|
|
2418
2418
|
console.log("Issue cycling through material object:", e, n);
|
2419
2419
|
}
|
2420
2420
|
if (h.length > 0)
|
2421
|
-
return
|
2421
|
+
return Lt(h), {
|
2422
2422
|
title: u,
|
2423
2423
|
items: h
|
2424
2424
|
};
|
@@ -2426,7 +2426,7 @@ function ht(e, n, a, t, i = "", c = !1) {
|
|
2426
2426
|
}
|
2427
2427
|
}
|
2428
2428
|
}
|
2429
|
-
function
|
2429
|
+
function rn(e, n, a) {
|
2430
2430
|
const t = [];
|
2431
2431
|
for (const i in e) {
|
2432
2432
|
if (!Ka(i))
|
@@ -2444,7 +2444,7 @@ function an(e, n, a) {
|
|
2444
2444
|
} else
|
2445
2445
|
u !== void 0 && console.log("other:", i, c, u);
|
2446
2446
|
}
|
2447
|
-
return
|
2447
|
+
return Lt(t), t.push({
|
2448
2448
|
title: "Update Material",
|
2449
2449
|
type: "button",
|
2450
2450
|
onChange: () => {
|
@@ -2464,7 +2464,7 @@ function li(e, n) {
|
|
2464
2464
|
Xe,
|
2465
2465
|
{
|
2466
2466
|
title: `Material ${c}`,
|
2467
|
-
items:
|
2467
|
+
items: rn(a[c], e, n)
|
2468
2468
|
},
|
2469
2469
|
`Material ${c}`
|
2470
2470
|
)
|
@@ -2475,7 +2475,7 @@ function li(e, n) {
|
|
2475
2475
|
Xe,
|
2476
2476
|
{
|
2477
2477
|
title: "Material",
|
2478
|
-
items:
|
2478
|
+
items: rn(a, e, n)
|
2479
2479
|
}
|
2480
2480
|
);
|
2481
2481
|
}
|
@@ -2561,7 +2561,7 @@ function Ze(e) {
|
|
2561
2561
|
max: e.max,
|
2562
2562
|
step: e.step,
|
2563
2563
|
ref: a,
|
2564
|
-
onChange:
|
2564
|
+
onChange: Ft
|
2565
2565
|
}
|
2566
2566
|
)
|
2567
2567
|
] })
|
@@ -2579,7 +2579,7 @@ function di(e) {
|
|
2579
2579
|
window.removeEventListener("mousemove", te), window.removeEventListener("mouseup", W), x(!1);
|
2580
2580
|
}
|
2581
2581
|
function te(I) {
|
2582
|
-
const q = c.current.getBoundingClientRect(), ne = Ke(0, 99, I.clientX - q.left) / 99, Se = Ke(0, 99, I.clientY - q.top) / 99, z = en(
|
2582
|
+
const q = c.current.getBoundingClientRect(), ne = Ke(0, 99, I.clientX - q.left) / 99, Se = Ke(0, 99, I.clientY - q.top) / 99, z = tn(en(h.min, h.max, ne), 3), pe = tn(en(h.min, h.max, Se), 3);
|
2583
2583
|
e.onChange({ target: { value: { x: z, y: pe } } }), d({ x: z, y: pe });
|
2584
2584
|
}
|
2585
2585
|
function me(I) {
|
@@ -2595,7 +2595,7 @@ function di(e) {
|
|
2595
2595
|
f({ min: h.min, max: I }), (o.x > I || o.y > I) && d({ x: Ke(h.min, I, o.x), y: Ke(h.min, I, o.y) });
|
2596
2596
|
}
|
2597
2597
|
return Ae(() => {
|
2598
|
-
const I =
|
2598
|
+
const I = Qt(h.min, h.max, o.x), q = Qt(h.min, h.max, o.y);
|
2599
2599
|
u.current.style.left = `${I * 100}%`, u.current.style.top = `${q * 100}%`;
|
2600
2600
|
}, [h, o]), /* @__PURE__ */ l.jsxs("div", { className: "vector2", children: [
|
2601
2601
|
/* @__PURE__ */ l.jsxs("div", { className: "fields", children: [
|
@@ -2663,7 +2663,7 @@ function di(e) {
|
|
2663
2663
|
] })
|
2664
2664
|
] });
|
2665
2665
|
}
|
2666
|
-
function
|
2666
|
+
function sn(e) {
|
2667
2667
|
const n = e.value.isVector3 !== void 0, a = e.value.isEuler !== void 0, t = e.value.elements !== void 0, i = [];
|
2668
2668
|
if (n) {
|
2669
2669
|
const c = ie(() => e.value, []), u = (d, h) => {
|
@@ -2882,12 +2882,12 @@ function ft(e) {
|
|
2882
2882
|
}, src: a.src.length > 0 ? a.src : Va }),
|
2883
2883
|
e.type === "option" && /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx("select", { onChange: u, disabled: e.disabled, defaultValue: e.value, children: e.options?.map((f, m) => /* @__PURE__ */ l.jsx("option", { value: f.value, children: Mt(f.title) }, m)) }) }),
|
2884
2884
|
e.type === "vector2" && /* @__PURE__ */ l.jsx(di, { value: a, min: 0, max: 1, onChange: u }),
|
2885
|
-
e.type === "grid3" && /* @__PURE__ */ l.jsx(
|
2885
|
+
e.type === "grid3" && /* @__PURE__ */ l.jsx(sn, { value: a, onChange: u }),
|
2886
2886
|
e.type === "grid4" && /* @__PURE__ */ l.jsx(hi, { value: a, onChange: u }),
|
2887
|
-
e.type === "euler" && /* @__PURE__ */ l.jsx(
|
2887
|
+
e.type === "euler" && /* @__PURE__ */ l.jsx(sn, { value: a, onChange: u })
|
2888
2888
|
] });
|
2889
2889
|
}
|
2890
|
-
function
|
2890
|
+
function on(e) {
|
2891
2891
|
switch (e) {
|
2892
2892
|
case "fov":
|
2893
2893
|
return "FOV";
|
@@ -2921,7 +2921,7 @@ function fi(e, n) {
|
|
2921
2921
|
if (e.perspectiveCameraInfo !== void 0)
|
2922
2922
|
for (const t in e.perspectiveCameraInfo)
|
2923
2923
|
a.push({
|
2924
|
-
title:
|
2924
|
+
title: on(t),
|
2925
2925
|
prop: t,
|
2926
2926
|
type: "number",
|
2927
2927
|
step: 0.01,
|
@@ -2935,7 +2935,7 @@ function fi(e, n) {
|
|
2935
2935
|
else if (e.orthographicCameraInfo !== void 0)
|
2936
2936
|
for (const t in e.orthographicCameraInfo)
|
2937
2937
|
a.push({
|
2938
|
-
title:
|
2938
|
+
title: on(t),
|
2939
2939
|
prop: t,
|
2940
2940
|
type: "number",
|
2941
2941
|
step: 0.01,
|
@@ -2995,7 +2995,7 @@ function mi(e, n) {
|
|
2995
2995
|
}
|
2996
2996
|
);
|
2997
2997
|
}
|
2998
|
-
function
|
2998
|
+
function cn(e) {
|
2999
2999
|
switch (e) {
|
3000
3000
|
case "color":
|
3001
3001
|
return "Color";
|
@@ -3024,18 +3024,18 @@ function pi(e, n) {
|
|
3024
3024
|
for (const t in e.lightInfo) {
|
3025
3025
|
const i = e.lightInfo[t];
|
3026
3026
|
i !== void 0 && (i.isColor !== void 0 ? a.push({
|
3027
|
-
title:
|
3027
|
+
title: cn(t),
|
3028
3028
|
prop: t,
|
3029
3029
|
type: "color",
|
3030
3030
|
value: i,
|
3031
3031
|
onChange: (c, u) => {
|
3032
|
-
const o = new
|
3032
|
+
const o = new Bt(u);
|
3033
3033
|
n.updateObject(e.uuid, c, o);
|
3034
3034
|
const d = n.scene?.getObjectByProperty("uuid", e.uuid);
|
3035
3035
|
d !== void 0 && V(d, c, o);
|
3036
3036
|
}
|
3037
3037
|
}) : a.push({
|
3038
|
-
title:
|
3038
|
+
title: cn(t),
|
3039
3039
|
prop: t,
|
3040
3040
|
type: typeof i,
|
3041
3041
|
value: i,
|
@@ -3148,7 +3148,7 @@ function vi(e) {
|
|
3148
3148
|
};
|
3149
3149
|
}, []);
|
3150
3150
|
const t = se.type.toLowerCase(), i = se.animations.length > 0 || se.mixer !== void 0, c = t.search("mesh") > -1 || t.search("line") > -1 || t.search("points") > -1;
|
3151
|
-
return /* @__PURE__ */ l.jsx(
|
3151
|
+
return /* @__PURE__ */ l.jsx(zt, { label: "Inspector", children: /* @__PURE__ */ l.jsx("div", { id: "Inspector", className: e.class, children: se.uuid.length > 0 && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
3152
3152
|
/* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
3153
3153
|
/* @__PURE__ */ l.jsx(
|
3154
3154
|
ft,
|
@@ -3216,7 +3216,7 @@ function Fi(e) {
|
|
3216
3216
|
}, []);
|
3217
3217
|
const t = n !== null, i = "Hierarchy - " + (t ? `${n?.name}` : "No Scene");
|
3218
3218
|
return /* @__PURE__ */ l.jsxs("div", { id: "SidePanel", children: [
|
3219
|
-
/* @__PURE__ */ l.jsx(
|
3219
|
+
/* @__PURE__ */ l.jsx(zt, { label: i, open: !0, children: /* @__PURE__ */ l.jsx(l.Fragment, { children: t && /* @__PURE__ */ l.jsx(Ya, { child: n, three: e.three }) }) }),
|
3220
3220
|
/* @__PURE__ */ l.jsx(vi, { three: e.three })
|
3221
3221
|
] }, "SidePanel");
|
3222
3222
|
}
|
@@ -3263,12 +3263,12 @@ function Ui(e) {
|
|
3263
3263
|
}
|
3264
3264
|
class bi extends oa {
|
3265
3265
|
constructor(n, a) {
|
3266
|
-
const t = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], i = new
|
3267
|
-
i.setAttribute("position", new
|
3266
|
+
const t = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], i = new Vt();
|
3267
|
+
i.setAttribute("position", new qt(t, 3)), i.computeBoundingSphere();
|
3268
3268
|
const c = new ca({ fog: !1 });
|
3269
3269
|
super(i, c), this.light = n, this.color = a, this.type = "RectAreaLightHelper";
|
3270
|
-
const u = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], o = new
|
3271
|
-
o.setAttribute("position", new
|
3270
|
+
const u = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], o = new Vt();
|
3271
|
+
o.setAttribute("position", new qt(u, 3)), o.computeBoundingSphere(), this.add(new Pn(o, new kn({ side: mn, fog: !1 })));
|
3272
3272
|
}
|
3273
3273
|
updateMatrixWorld() {
|
3274
3274
|
if (this.scale.set(0.5 * this.light.width, 0.5 * this.light.height, 1), this.color !== void 0)
|
@@ -3284,7 +3284,7 @@ class bi extends oa {
|
|
3284
3284
|
this.geometry.dispose(), this.material.dispose(), this.children[0].geometry.dispose(), this.children[0].material.dispose();
|
3285
3285
|
}
|
3286
3286
|
}
|
3287
|
-
const
|
3287
|
+
const ln = { type: "change" }, At = { type: "start" }, un = { type: "end" }, Et = new la(), dn = new ua(), yi = Math.cos(70 * da.DEG2RAD);
|
3288
3288
|
class xi extends hn {
|
3289
3289
|
constructor(n, a) {
|
3290
3290
|
super(), this.object = n, this.domElement = a, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new Y(), this.cursor = new Y(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: nt.ROTATE, MIDDLE: nt.DOLLY, RIGHT: nt.PAN }, this.touches = { ONE: at.ROTATE, TWO: at.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
|
@@ -3300,26 +3300,26 @@ class xi extends hn {
|
|
3300
3300
|
}, this.saveState = function() {
|
3301
3301
|
t.target0.copy(t.target), t.position0.copy(t.object.position), t.zoom0 = t.object.zoom;
|
3302
3302
|
}, this.reset = function() {
|
3303
|
-
t.target.copy(t.target0), t.object.position.copy(t.position0), t.object.zoom = t.zoom0, t.object.updateProjectionMatrix(), t.dispatchEvent(
|
3303
|
+
t.target.copy(t.target0), t.object.position.copy(t.position0), t.object.zoom = t.zoom0, t.object.updateProjectionMatrix(), t.dispatchEvent(ln), t.update(), c = i.NONE;
|
3304
3304
|
}, this.update = function() {
|
3305
|
-
const s = new Y(), y = new
|
3305
|
+
const s = new Y(), y = new Kt().setFromUnitVectors(n.up, new Y(0, 1, 0)), _ = y.clone().invert(), D = new Y(), ee = new Kt(), ye = new Y(), de = 2 * Math.PI;
|
3306
3306
|
return function(bt = null) {
|
3307
3307
|
const yt = t.object.position;
|
3308
|
-
s.copy(yt).sub(t.target), s.applyQuaternion(y), o.setFromVector3(s), t.autoRotate && c === i.NONE && ve(
|
3308
|
+
s.copy(yt).sub(t.target), s.applyQuaternion(y), o.setFromVector3(s), t.autoRotate && c === i.NONE && ve(_e(bt)), t.enableDamping ? (o.theta += d.theta * t.dampingFactor, o.phi += d.phi * t.dampingFactor) : (o.theta += d.theta, o.phi += d.phi);
|
3309
3309
|
let xe = t.minAzimuthAngle, Ee = t.maxAzimuthAngle;
|
3310
3310
|
isFinite(xe) && isFinite(Ee) && (xe < -Math.PI ? xe += de : xe > Math.PI && (xe -= de), Ee < -Math.PI ? Ee += de : Ee > Math.PI && (Ee -= de), xe <= Ee ? o.theta = Math.max(xe, Math.min(Ee, o.theta)) : o.theta = o.theta > (xe + Ee) / 2 ? Math.max(xe, o.theta) : Math.min(Ee, o.theta)), o.phi = Math.max(t.minPolarAngle, Math.min(t.maxPolarAngle, o.phi)), o.makeSafe(), t.enableDamping === !0 ? t.target.addScaledVector(f, t.dampingFactor) : t.target.add(f), t.target.sub(t.cursor), t.target.clampLength(t.minTargetRadius, t.maxTargetRadius), t.target.add(t.cursor);
|
3311
3311
|
let Ve = !1;
|
3312
3312
|
if (t.zoomToCursor && Se || t.object.isOrthographicCamera)
|
3313
|
-
o.radius =
|
3313
|
+
o.radius = je(o.radius);
|
3314
3314
|
else {
|
3315
3315
|
const Oe = o.radius;
|
3316
|
-
o.radius =
|
3316
|
+
o.radius = je(o.radius * h), Ve = Oe != o.radius;
|
3317
3317
|
}
|
3318
3318
|
if (s.setFromSpherical(o), s.applyQuaternion(_), yt.copy(t.target).add(s), t.object.lookAt(t.target), t.enableDamping === !0 ? (d.theta *= 1 - t.dampingFactor, d.phi *= 1 - t.dampingFactor, f.multiplyScalar(1 - t.dampingFactor)) : (d.set(0, 0, 0), f.set(0, 0, 0)), t.zoomToCursor && Se) {
|
3319
3319
|
let Oe = null;
|
3320
3320
|
if (t.object.isPerspectiveCamera) {
|
3321
3321
|
const ze = s.length();
|
3322
|
-
Oe =
|
3322
|
+
Oe = je(ze * h);
|
3323
3323
|
const et = ze - Oe;
|
3324
3324
|
t.object.position.addScaledVector(q, et), t.object.updateMatrixWorld(), Ve = !!et;
|
3325
3325
|
} else if (t.object.isOrthographicCamera) {
|
@@ -3331,12 +3331,12 @@ class xi extends hn {
|
|
3331
3331
|
xt.unproject(t.object), t.object.position.sub(xt).add(ze), t.object.updateMatrixWorld(), Oe = s.length();
|
3332
3332
|
} else
|
3333
3333
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), t.zoomToCursor = !1;
|
3334
|
-
Oe !== null && (this.screenSpacePanning ? t.target.set(0, 0, -1).transformDirection(t.object.matrix).multiplyScalar(Oe).add(t.object.position) : (Et.origin.copy(t.object.position), Et.direction.set(0, 0, -1).transformDirection(t.object.matrix), Math.abs(t.object.up.dot(Et.direction)) < yi ? n.lookAt(t.target) : (
|
3334
|
+
Oe !== null && (this.screenSpacePanning ? t.target.set(0, 0, -1).transformDirection(t.object.matrix).multiplyScalar(Oe).add(t.object.position) : (Et.origin.copy(t.object.position), Et.direction.set(0, 0, -1).transformDirection(t.object.matrix), Math.abs(t.object.up.dot(Et.direction)) < yi ? n.lookAt(t.target) : (dn.setFromNormalAndCoplanarPoint(t.object.up, t.target), Et.intersectPlane(dn, t.target))));
|
3335
3335
|
} else if (t.object.isOrthographicCamera) {
|
3336
3336
|
const Oe = t.object.zoom;
|
3337
3337
|
t.object.zoom = Math.max(t.minZoom, Math.min(t.maxZoom, t.object.zoom / h)), Oe !== t.object.zoom && (t.object.updateProjectionMatrix(), Ve = !0);
|
3338
3338
|
}
|
3339
|
-
return h = 1, Se = !1, Ve || D.distanceToSquared(t.object.position) > u || 8 * (1 - ee.dot(t.object.quaternion)) > u || ye.distanceToSquared(t.target) > u ? (t.dispatchEvent(
|
3339
|
+
return h = 1, Se = !1, Ve || D.distanceToSquared(t.object.position) > u || 8 * (1 - ee.dot(t.object.quaternion)) > u || ye.distanceToSquared(t.target) > u ? (t.dispatchEvent(ln), D.copy(t.object.position), ee.copy(t.object.quaternion), ye.copy(t.target), !0) : !1;
|
3340
3340
|
};
|
3341
3341
|
}(), this.dispose = function() {
|
3342
3342
|
t.domElement.removeEventListener("contextmenu", Qe), t.domElement.removeEventListener("pointerdown", O), t.domElement.removeEventListener("pointercancel", G), t.domElement.removeEventListener("wheel", mt), t.domElement.removeEventListener("pointermove", B), t.domElement.removeEventListener("pointerup", G), t.domElement.getRootNode().removeEventListener("keydown", st, { capture: !0 }), t._domElementKeyEvents !== null && (t._domElementKeyEvents.removeEventListener("keydown", ot), t._domElementKeyEvents = null);
|
@@ -3352,16 +3352,16 @@ class xi extends hn {
|
|
3352
3352
|
TOUCH_DOLLY_ROTATE: 6
|
3353
3353
|
};
|
3354
3354
|
let c = i.NONE;
|
3355
|
-
const u = 1e-6, o = new
|
3355
|
+
const u = 1e-6, o = new Zt(), d = new Zt();
|
3356
3356
|
let h = 1;
|
3357
3357
|
const f = new Y(), m = new fe(), x = new fe(), T = new fe(), W = new fe(), te = new fe(), me = new fe(), re = new fe(), $ = new fe(), I = new fe(), q = new Y(), ne = new fe();
|
3358
3358
|
let Se = !1;
|
3359
3359
|
const z = [], pe = {};
|
3360
3360
|
let ce = !1;
|
3361
|
-
function
|
3361
|
+
function _e(s) {
|
3362
3362
|
return s !== null ? 2 * Math.PI / 60 * t.autoRotateSpeed * s : 2 * Math.PI / 60 / 60 * t.autoRotateSpeed;
|
3363
3363
|
}
|
3364
|
-
function
|
3364
|
+
function Re(s) {
|
3365
3365
|
const y = Math.abs(s * 0.01);
|
3366
3366
|
return Math.pow(0.95, t.zoomSpeed * y);
|
3367
3367
|
}
|
@@ -3376,7 +3376,7 @@ class xi extends hn {
|
|
3376
3376
|
return function(_, D) {
|
3377
3377
|
s.setFromMatrixColumn(D, 0), s.multiplyScalar(-_), f.add(s);
|
3378
3378
|
};
|
3379
|
-
}(),
|
3379
|
+
}(), M = function() {
|
3380
3380
|
const s = new Y();
|
3381
3381
|
return function(_, D) {
|
3382
3382
|
t.screenSpacePanning === !0 ? s.setFromMatrixColumn(D, 1) : (s.setFromMatrixColumn(D, 0), s.crossVectors(t.object.up, s)), s.multiplyScalar(_), f.add(s);
|
@@ -3389,32 +3389,32 @@ class xi extends hn {
|
|
3389
3389
|
const ye = t.object.position;
|
3390
3390
|
s.copy(ye).sub(t.target);
|
3391
3391
|
let de = s.length();
|
3392
|
-
de *= Math.tan(t.object.fov / 2 * Math.PI / 180), be(2 * _ * de / ee.clientHeight, t.object.matrix),
|
3392
|
+
de *= Math.tan(t.object.fov / 2 * Math.PI / 180), be(2 * _ * de / ee.clientHeight, t.object.matrix), M(2 * D * de / ee.clientHeight, t.object.matrix);
|
3393
3393
|
} else
|
3394
|
-
t.object.isOrthographicCamera ? (be(_ * (t.object.right - t.object.left) / t.object.zoom / ee.clientWidth, t.object.matrix),
|
3394
|
+
t.object.isOrthographicCamera ? (be(_ * (t.object.right - t.object.left) / t.object.zoom / ee.clientWidth, t.object.matrix), M(D * (t.object.top - t.object.bottom) / t.object.zoom / ee.clientHeight, t.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), t.enablePan = !1);
|
3395
3395
|
};
|
3396
3396
|
}();
|
3397
|
-
function
|
3397
|
+
function Pe(s) {
|
3398
3398
|
t.object.isPerspectiveCamera || t.object.isOrthographicCamera ? h /= s : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), t.enableZoom = !1);
|
3399
3399
|
}
|
3400
3400
|
function De(s) {
|
3401
3401
|
t.object.isPerspectiveCamera || t.object.isOrthographicCamera ? h *= s : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), t.enableZoom = !1);
|
3402
3402
|
}
|
3403
|
-
function
|
3403
|
+
function ke(s, y) {
|
3404
3404
|
if (!t.zoomToCursor)
|
3405
3405
|
return;
|
3406
3406
|
Se = !0;
|
3407
3407
|
const _ = t.domElement.getBoundingClientRect(), D = s - _.left, ee = y - _.top, ye = _.width, de = _.height;
|
3408
3408
|
ne.x = D / ye * 2 - 1, ne.y = -(ee / de) * 2 + 1, q.set(ne.x, ne.y, 1).unproject(t.object).sub(t.object.position).normalize();
|
3409
3409
|
}
|
3410
|
-
function
|
3410
|
+
function je(s) {
|
3411
3411
|
return Math.max(t.minDistance, Math.min(t.maxDistance, s));
|
3412
3412
|
}
|
3413
3413
|
function Ie(s) {
|
3414
3414
|
m.set(s.clientX, s.clientY);
|
3415
3415
|
}
|
3416
3416
|
function Be(s) {
|
3417
|
-
|
3417
|
+
ke(s.clientX, s.clientX), re.set(s.clientX, s.clientY);
|
3418
3418
|
}
|
3419
3419
|
function Fe(s) {
|
3420
3420
|
W.set(s.clientX, s.clientY);
|
@@ -3425,13 +3425,13 @@ class xi extends hn {
|
|
3425
3425
|
ve(2 * Math.PI * T.x / y.clientHeight), N(2 * Math.PI * T.y / y.clientHeight), m.copy(x), t.update();
|
3426
3426
|
}
|
3427
3427
|
function Me(s) {
|
3428
|
-
$.set(s.clientX, s.clientY), I.subVectors($, re), I.y > 0 ? Re(
|
3428
|
+
$.set(s.clientX, s.clientY), I.subVectors($, re), I.y > 0 ? Pe(Re(I.y)) : I.y < 0 && De(Re(I.y)), re.copy($), t.update();
|
3429
3429
|
}
|
3430
3430
|
function He(s) {
|
3431
3431
|
te.set(s.clientX, s.clientY), me.subVectors(te, W).multiplyScalar(t.panSpeed), we(me.x, me.y), W.copy(te), t.update();
|
3432
3432
|
}
|
3433
3433
|
function Ye(s) {
|
3434
|
-
|
3434
|
+
ke(s.clientX, s.clientY), s.deltaY < 0 ? De(Re(s.deltaY)) : s.deltaY > 0 && Pe(Re(s.deltaY)), t.update();
|
3435
3435
|
}
|
3436
3436
|
function ue(s) {
|
3437
3437
|
let y = !1;
|
@@ -3467,15 +3467,15 @@ class xi extends hn {
|
|
3467
3467
|
W.set(_, D);
|
3468
3468
|
}
|
3469
3469
|
}
|
3470
|
-
function
|
3470
|
+
function w(s) {
|
3471
3471
|
const y = $e(s), _ = s.pageX - y.x, D = s.pageY - y.y, ee = Math.sqrt(_ * _ + D * D);
|
3472
3472
|
re.set(0, ee);
|
3473
3473
|
}
|
3474
3474
|
function P(s) {
|
3475
|
-
t.enableZoom &&
|
3475
|
+
t.enableZoom && w(s), t.enablePan && v(s);
|
3476
3476
|
}
|
3477
3477
|
function ge(s) {
|
3478
|
-
t.enableZoom &&
|
3478
|
+
t.enableZoom && w(s), t.enableRotate && g(s);
|
3479
3479
|
}
|
3480
3480
|
function le(s) {
|
3481
3481
|
if (z.length == 1)
|
@@ -3499,9 +3499,9 @@ class xi extends hn {
|
|
3499
3499
|
}
|
3500
3500
|
function E(s) {
|
3501
3501
|
const y = $e(s), _ = s.pageX - y.x, D = s.pageY - y.y, ee = Math.sqrt(_ * _ + D * D);
|
3502
|
-
$.set(0, ee), I.set(0, Math.pow($.y / re.y, t.zoomSpeed)),
|
3502
|
+
$.set(0, ee), I.set(0, Math.pow($.y / re.y, t.zoomSpeed)), Pe(I.y), re.copy($);
|
3503
3503
|
const ye = (s.pageX + y.x) * 0.5, de = (s.pageY + y.y) * 0.5;
|
3504
|
-
|
3504
|
+
ke(ye, de);
|
3505
3505
|
}
|
3506
3506
|
function F(s) {
|
3507
3507
|
t.enableZoom && E(s), t.enablePan && C(s);
|
@@ -3518,7 +3518,7 @@ class xi extends hn {
|
|
3518
3518
|
function G(s) {
|
3519
3519
|
switch (Rt(s), z.length) {
|
3520
3520
|
case 0:
|
3521
|
-
t.domElement.releasePointerCapture(s.pointerId), t.domElement.removeEventListener("pointermove", B), t.domElement.removeEventListener("pointerup", G), t.dispatchEvent(
|
3521
|
+
t.domElement.releasePointerCapture(s.pointerId), t.domElement.removeEventListener("pointermove", B), t.domElement.removeEventListener("pointerup", G), t.dispatchEvent(un), c = i.NONE;
|
3522
3522
|
break;
|
3523
3523
|
case 1:
|
3524
3524
|
const y = z[0], _ = pe[y];
|
@@ -3594,7 +3594,7 @@ class xi extends hn {
|
|
3594
3594
|
}
|
3595
3595
|
}
|
3596
3596
|
function mt(s) {
|
3597
|
-
t.enabled === !1 || t.enableZoom === !1 || c !== i.NONE || (s.preventDefault(), t.dispatchEvent(At), Ye(pt(s)), t.dispatchEvent(
|
3597
|
+
t.enabled === !1 || t.enableZoom === !1 || c !== i.NONE || (s.preventDefault(), t.dispatchEvent(At), Ye(pt(s)), t.dispatchEvent(un));
|
3598
3598
|
}
|
3599
3599
|
function pt(s) {
|
3600
3600
|
const y = s.deltaMode, _ = {
|
@@ -3769,7 +3769,7 @@ class Ei extends jn {
|
|
3769
3769
|
value: n?.divisions !== void 0 ? n?.divisions : 10
|
3770
3770
|
},
|
3771
3771
|
uColor: {
|
3772
|
-
value: n?.color !== void 0 ? n?.color : new
|
3772
|
+
value: n?.color !== void 0 ? n?.color : new Bt(16777215)
|
3773
3773
|
},
|
3774
3774
|
uDistance: {
|
3775
3775
|
value: n?.distance !== void 0 ? n?.distance : 1e4
|
@@ -3924,16 +3924,16 @@ class Mi extends jn {
|
|
3924
3924
|
});
|
3925
3925
|
}
|
3926
3926
|
}
|
3927
|
-
let Ct = "Renderer",
|
3927
|
+
let Ct = "Renderer", Te, St = !1, Dt = !1, H = null, oe = null, Ge = null, We = null;
|
3928
3928
|
function $i(e) {
|
3929
|
-
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", c = localStorage.getItem(`${n}_blCam`) !== null ? localStorage.getItem(`${n}_blCam`) : "Front", u = localStorage.getItem(`${n}_brCam`) !== null ? localStorage.getItem(`${n}_brCam`) : "Top", o = ie(() => /* @__PURE__ */ new Map(), []), d = ie(() => /* @__PURE__ */ new Map(), []), h = ie(() => /* @__PURE__ */ new Map(), []), f = ie(() => /* @__PURE__ */ new Map(), []), m = ie(() => new ma(), []), x = ie(() => new pa(), []), T = ie(() => new Ci(), []), W = ie(() => new
|
3929
|
+
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", c = localStorage.getItem(`${n}_blCam`) !== null ? localStorage.getItem(`${n}_blCam`) : "Front", u = localStorage.getItem(`${n}_brCam`) !== null ? localStorage.getItem(`${n}_brCam`) : "Top", o = ie(() => /* @__PURE__ */ new Map(), []), d = ie(() => /* @__PURE__ */ new Map(), []), h = ie(() => /* @__PURE__ */ new Map(), []), f = ie(() => /* @__PURE__ */ new Map(), []), m = ie(() => new ma(), []), x = ie(() => new pa(), []), T = ie(() => new Ci(), []), W = ie(() => new Xt(500), []), te = ie(() => new Xt(100), []), me = ie(() => new ga(), []), re = ie(() => new va(), []), $ = ie(() => new Mi(), []), I = ie(() => new kn({
|
3930
3930
|
opacity: 0.33,
|
3931
3931
|
transparent: !0,
|
3932
3932
|
wireframe: !0
|
3933
3933
|
}), []);
|
3934
3934
|
function q(g, v) {
|
3935
|
-
const
|
3936
|
-
return
|
3935
|
+
const w = new Jt(-100, 100, 100, -100, 50, 5e3);
|
3936
|
+
return w.name = g, w.position.copy(v), w.lookAt(0, 0, 0), o.set(g, w), w;
|
3937
3937
|
}
|
3938
3938
|
const ne = [
|
3939
3939
|
"Renderer",
|
@@ -3946,11 +3946,11 @@ function $i(e) {
|
|
3946
3946
|
"Side by Side",
|
3947
3947
|
"Stacked",
|
3948
3948
|
"Quad"
|
3949
|
-
], z = X(null), pe = X(null), ce = X(null),
|
3949
|
+
], z = X(null), pe = X(null), ce = X(null), _e = X(null), Re = X(null), ve = X(null), [N, be] = Z(a !== null ? a : "Single"), [M, we] = Z(null), [Pe, De] = Z(!1), [ke, je] = Z(!1), [Ie, Be] = Z(!1), [, Fe] = Z(Date.now());
|
3950
3950
|
localStorage.setItem(`${n}_mode`, N), localStorage.setItem(`${n}_tlCam`, t), localStorage.setItem(`${n}_trCam`, i), localStorage.setItem(`${n}_blCam`, c), localStorage.setItem(`${n}_brCam`, u);
|
3951
3951
|
const ae = (g, v) => {
|
3952
|
-
const
|
3953
|
-
if (
|
3952
|
+
const w = d.get(g.name);
|
3953
|
+
if (w !== void 0 && w.dispose(), d.delete(g.name), g.name === "UI")
|
3954
3954
|
return;
|
3955
3955
|
const P = new xi(g, v);
|
3956
3956
|
switch (P.enableDamping = !0, P.dampingFactor = 0.05, g.name) {
|
@@ -3967,13 +3967,13 @@ function $i(e) {
|
|
3967
3967
|
}, Me = (g) => {
|
3968
3968
|
const v = h.get(g.name);
|
3969
3969
|
v !== void 0 && (m.remove(v), v.dispose(), h.delete(g.name));
|
3970
|
-
const
|
3971
|
-
|
3970
|
+
const w = d.get(g.name);
|
3971
|
+
w !== void 0 && (w.dispose(), d.delete(g.name));
|
3972
3972
|
}, He = () => {
|
3973
3973
|
d.forEach((g, v) => {
|
3974
3974
|
g.dispose();
|
3975
|
-
const
|
3976
|
-
|
3975
|
+
const w = h.get(v);
|
3976
|
+
w !== void 0 && (m.remove(w), w.dispose()), h.delete(v), d.delete(v);
|
3977
3977
|
}), d.clear(), h.clear();
|
3978
3978
|
}, Ye = () => {
|
3979
3979
|
switch (N) {
|
@@ -3982,10 +3982,10 @@ function $i(e) {
|
|
3982
3982
|
break;
|
3983
3983
|
case "Side by Side":
|
3984
3984
|
case "Stacked":
|
3985
|
-
ae(H, ce.current), ae(oe,
|
3985
|
+
ae(H, ce.current), ae(oe, _e.current);
|
3986
3986
|
break;
|
3987
3987
|
case "Quad":
|
3988
|
-
ae(H, ce.current), ae(oe,
|
3988
|
+
ae(H, ce.current), ae(oe, _e.current), ae(Ge, Re.current), ae(We, ve.current);
|
3989
3989
|
break;
|
3990
3990
|
}
|
3991
3991
|
};
|
@@ -4005,7 +4005,7 @@ function $i(e) {
|
|
4005
4005
|
x.remove(C), C.dispose();
|
4006
4006
|
}), f.clear();
|
4007
4007
|
}, v = () => {
|
4008
|
-
|
4008
|
+
Te.traverse((C) => {
|
4009
4009
|
if (C.type.search("Light") > -1) {
|
4010
4010
|
let E;
|
4011
4011
|
switch (C.type) {
|
@@ -4027,12 +4027,12 @@ function $i(e) {
|
|
4027
4027
|
}
|
4028
4028
|
}
|
4029
4029
|
});
|
4030
|
-
},
|
4031
|
-
x.add(W), g(),
|
4030
|
+
}, w = (C) => {
|
4031
|
+
x.add(W), g(), Ut(Te), m.remove(Te);
|
4032
4032
|
const E = e.scenes.get(C.value.name);
|
4033
4033
|
if (E !== void 0) {
|
4034
4034
|
const F = new E();
|
4035
|
-
e.onSceneSet !== void 0 && e.onSceneSet(F),
|
4035
|
+
e.onSceneSet !== void 0 && e.onSceneSet(F), Te = F, e.three.scene = Te, m.add(Te), Dt = !0, v();
|
4036
4036
|
}
|
4037
4037
|
}, P = (C) => {
|
4038
4038
|
const E = C.value, F = e.three.scene?.getObjectByProperty("uuid", E.uuid);
|
@@ -4045,45 +4045,45 @@ function $i(e) {
|
|
4045
4045
|
const E = h.get(C.value.name);
|
4046
4046
|
E !== void 0 && (m.remove(E), E.dispose()), o.delete(C.value.name), Fe(Date.now());
|
4047
4047
|
}, le = (C) => {
|
4048
|
-
const E =
|
4048
|
+
const E = Te.getObjectByProperty("uuid", C.value.uuid);
|
4049
4049
|
E && E.add(W);
|
4050
4050
|
};
|
4051
|
-
return j.addEventListener(A.SET_SCENE,
|
4052
|
-
j.removeEventListener(A.SET_SCENE,
|
4051
|
+
return j.addEventListener(A.SET_SCENE, w), j.addEventListener(A.ADD_CAMERA, P), j.addEventListener(A.REMOVE_CAMERA, ge), j.addEventListener(A.SET_OBJECT, le), () => {
|
4052
|
+
j.removeEventListener(A.SET_SCENE, w), j.removeEventListener(A.ADD_CAMERA, P), j.removeEventListener(A.REMOVE_CAMERA, ge), j.removeEventListener(A.SET_OBJECT, le);
|
4053
4053
|
};
|
4054
4054
|
}, []), Ae(() => {
|
4055
|
-
if (
|
4055
|
+
if (M === null)
|
4056
4056
|
return;
|
4057
|
-
let g = window.innerWidth, v = window.innerHeight,
|
4057
|
+
let g = window.innerWidth, v = window.innerHeight, w = Math.floor(g / 2), P = Math.floor(v / 2), ge = -1;
|
4058
4058
|
const le = () => {
|
4059
|
-
g = window.innerWidth - 300, v = window.innerHeight,
|
4059
|
+
g = window.innerWidth - 300, v = window.innerHeight, w = Math.floor(g / 2), P = Math.floor(v / 2), e.three.resize(g, v), e.onSceneResize !== void 0 && Dt && e.onSceneResize(Te, g, v);
|
4060
4060
|
let O = g, B = v;
|
4061
4061
|
switch (N) {
|
4062
4062
|
case "Side by Side":
|
4063
|
-
O =
|
4063
|
+
O = w, B = v;
|
4064
4064
|
break;
|
4065
4065
|
case "Stacked":
|
4066
4066
|
O = g, B = P;
|
4067
4067
|
break;
|
4068
4068
|
case "Quad":
|
4069
|
-
O =
|
4069
|
+
O = w, B = P;
|
4070
4070
|
break;
|
4071
4071
|
}
|
4072
4072
|
o.forEach((G) => {
|
4073
|
-
G instanceof
|
4073
|
+
G instanceof Jt ? (G.left = O / -2, G.right = O / 2, G.top = B / 2, G.bottom = B / -2, G.name === "UI" && (G.position.x = g / 2, G.position.y = v / -2, G.position.z = 100), G.updateProjectionMatrix()) : G instanceof kt && (G.aspect = O / B, G.updateProjectionMatrix(), h.get(G.name)?.update());
|
4074
4074
|
});
|
4075
4075
|
}, C = () => {
|
4076
|
-
|
4076
|
+
M.setViewport(0, 0, g, v), M.setScissor(0, 0, g, v), M.render(m, H);
|
4077
4077
|
}, E = () => {
|
4078
4078
|
if (N === "Side by Side")
|
4079
|
-
|
4079
|
+
M.setViewport(0, 0, w, v), M.setScissor(0, 0, w, v), M.render(m, H), M.setViewport(w, 0, w, v), M.setScissor(w, 0, w, v), M.render(m, oe);
|
4080
4080
|
else {
|
4081
4081
|
const O = v - P;
|
4082
|
-
|
4082
|
+
M.setViewport(0, O, g, P), M.setScissor(0, O, g, P), M.render(m, H), M.setViewport(0, 0, g, P), M.setScissor(0, 0, g, P), M.render(m, oe);
|
4083
4083
|
}
|
4084
4084
|
}, F = () => {
|
4085
4085
|
let O = 0, B = 0;
|
4086
|
-
B = v - P, O = 0,
|
4086
|
+
B = v - P, O = 0, M.setViewport(O, B, w, P), M.setScissor(O, B, w, P), M.render(m, H), O = w, M.setViewport(O, B, w, P), M.setScissor(O, B, w, P), M.render(m, oe), B = 0, O = 0, M.setViewport(O, B, w, P), M.setScissor(O, B, w, P), M.render(m, Ge), O = w, M.setViewport(O, B, w, P), M.setScissor(O, B, w, P), M.render(m, We);
|
4087
4087
|
}, J = () => {
|
4088
4088
|
switch (d.forEach((O) => {
|
4089
4089
|
O.update();
|
@@ -4091,7 +4091,7 @@ function $i(e) {
|
|
4091
4091
|
O.update();
|
4092
4092
|
}), f.forEach((O) => {
|
4093
4093
|
O.update !== void 0 && O.update();
|
4094
|
-
}), e.onSceneUpdate !== void 0 &&
|
4094
|
+
}), e.onSceneUpdate !== void 0 && Dt && e.onSceneUpdate(Te), M.clear(), N) {
|
4095
4095
|
case "Single":
|
4096
4096
|
C();
|
4097
4097
|
break;
|
@@ -4108,9 +4108,9 @@ function $i(e) {
|
|
4108
4108
|
return Ye(), window.addEventListener("resize", le), le(), J(), () => {
|
4109
4109
|
window.removeEventListener("resize", le), cancelAnimationFrame(ge), ge = -1;
|
4110
4110
|
};
|
4111
|
-
}, [N,
|
4112
|
-
if (
|
4113
|
-
const g = new ya(), v = new fe(),
|
4111
|
+
}, [N, M]), Ae(() => {
|
4112
|
+
if (M !== null) {
|
4113
|
+
const g = new ya(), v = new fe(), w = (C, E, F, J) => {
|
4114
4114
|
switch (N) {
|
4115
4115
|
case "Quad":
|
4116
4116
|
C < F ? E < J ? g.setFromCamera(v, H) : g.setFromCamera(v, Ge) : E < J ? g.setFromCamera(v, oe) : g.setFromCamera(v, We);
|
@@ -4129,7 +4129,7 @@ function $i(e) {
|
|
4129
4129
|
if (!St)
|
4130
4130
|
return;
|
4131
4131
|
const E = new fe();
|
4132
|
-
|
4132
|
+
M.getSize(E);
|
4133
4133
|
const F = Math.min(C.clientX, E.x), J = Math.min(C.clientY, E.y);
|
4134
4134
|
v.x = rt(F, 0, E.x, -1, 1), v.y = rt(J, 0, E.y, 1, -1);
|
4135
4135
|
const O = E.x / 2, B = E.y / 2, G = () => {
|
@@ -4148,30 +4148,30 @@ function $i(e) {
|
|
4148
4148
|
Ne(), Ne();
|
4149
4149
|
break;
|
4150
4150
|
}
|
4151
|
-
|
4152
|
-
const Je = g.intersectObjects(
|
4151
|
+
w(F, J, O, B);
|
4152
|
+
const Je = g.intersectObjects(Te.children);
|
4153
4153
|
Je.length > 0 && te.position.copy(Je[0].point);
|
4154
4154
|
}, ge = (C) => {
|
4155
4155
|
if (!St)
|
4156
4156
|
return;
|
4157
4157
|
const E = new fe();
|
4158
|
-
if (
|
4158
|
+
if (M.getSize(E), C.clientX >= E.x)
|
4159
4159
|
return;
|
4160
4160
|
P(C);
|
4161
|
-
const F = g.intersectObjects(
|
4161
|
+
const F = g.intersectObjects(Te.children);
|
4162
4162
|
F.length > 0 && e.three.getObject(F[0].object.uuid);
|
4163
4163
|
}, le = pe.current;
|
4164
4164
|
return le.addEventListener("mousemove", P, !1), le.addEventListener("click", ge, !1), () => {
|
4165
4165
|
le.removeEventListener("mousemove", P), le.removeEventListener("click", ge);
|
4166
4166
|
};
|
4167
4167
|
}
|
4168
|
-
}, [N,
|
4168
|
+
}, [N, M]);
|
4169
4169
|
const ue = [];
|
4170
4170
|
return o.forEach((g, v) => {
|
4171
4171
|
ue.push(v);
|
4172
4172
|
}), /* @__PURE__ */ l.jsxs("div", { className: "multiview", children: [
|
4173
4173
|
/* @__PURE__ */ l.jsx("canvas", { ref: z }),
|
4174
|
-
|
4174
|
+
M !== null && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
4175
4175
|
/* @__PURE__ */ l.jsxs("div", { className: `cameras ${N === "Single" || N === "Stacked" ? "single" : ""}`, ref: pe, children: [
|
4176
4176
|
N === "Single" && /* @__PURE__ */ l.jsx(l.Fragment, { children: /* @__PURE__ */ l.jsx(qe, { camera: H, options: ue, ref: ce, onSelect: (g) => {
|
4177
4177
|
d.get(H.name)?.dispose();
|
@@ -4184,10 +4184,10 @@ function $i(e) {
|
|
4184
4184
|
const v = o.get(g);
|
4185
4185
|
v !== void 0 && (Me(H), H = v, localStorage.setItem(`${n}_tlCam`, v.name), ae(v, ce.current));
|
4186
4186
|
} }),
|
4187
|
-
/* @__PURE__ */ l.jsx(qe, { camera: oe, options: ue, ref:
|
4187
|
+
/* @__PURE__ */ l.jsx(qe, { camera: oe, options: ue, ref: _e, onSelect: (g) => {
|
4188
4188
|
d.get(oe.name)?.dispose();
|
4189
4189
|
const v = o.get(g);
|
4190
|
-
v !== void 0 && (Me(oe), oe = v, localStorage.setItem(`${n}_trCam`, v.name), ae(v,
|
4190
|
+
v !== void 0 && (Me(oe), oe = v, localStorage.setItem(`${n}_trCam`, v.name), ae(v, _e.current));
|
4191
4191
|
} })
|
4192
4192
|
] }),
|
4193
4193
|
N === "Quad" && /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
@@ -4196,15 +4196,15 @@ function $i(e) {
|
|
4196
4196
|
const v = o.get(g);
|
4197
4197
|
v !== void 0 && (Me(H), H = v, localStorage.setItem(`${n}_tlCam`, v.name), ae(v, ce.current));
|
4198
4198
|
} }),
|
4199
|
-
/* @__PURE__ */ l.jsx(qe, { camera: oe, options: ue, ref:
|
4199
|
+
/* @__PURE__ */ l.jsx(qe, { camera: oe, options: ue, ref: _e, onSelect: (g) => {
|
4200
4200
|
d.get(oe.name)?.dispose();
|
4201
4201
|
const v = o.get(g);
|
4202
|
-
v !== void 0 && (Me(oe), oe = v, localStorage.setItem(`${n}_trCam`, v.name), ae(v,
|
4202
|
+
v !== void 0 && (Me(oe), oe = v, localStorage.setItem(`${n}_trCam`, v.name), ae(v, _e.current));
|
4203
4203
|
} }),
|
4204
|
-
/* @__PURE__ */ l.jsx(qe, { camera: Ge, options: ue, ref:
|
4204
|
+
/* @__PURE__ */ l.jsx(qe, { camera: Ge, options: ue, ref: Re, onSelect: (g) => {
|
4205
4205
|
d.get(Ge.name)?.dispose();
|
4206
4206
|
const v = o.get(g);
|
4207
|
-
v !== void 0 && (Me(Ge), Ge = v, localStorage.setItem(`${n}_blCam`, v.name), ae(v,
|
4207
|
+
v !== void 0 && (Me(Ge), Ge = v, localStorage.setItem(`${n}_blCam`, v.name), ae(v, Re.current));
|
4208
4208
|
} }),
|
4209
4209
|
/* @__PURE__ */ l.jsx(qe, { camera: We, options: ue, ref: ve, onSelect: (g) => {
|
4210
4210
|
d.get(We.name)?.dispose();
|
@@ -4222,9 +4222,9 @@ function $i(e) {
|
|
4222
4222
|
onSelect: (g) => {
|
4223
4223
|
g !== N && (He(), be(g));
|
4224
4224
|
},
|
4225
|
-
open:
|
4225
|
+
open: Pe,
|
4226
4226
|
onToggle: (g) => {
|
4227
|
-
De(g),
|
4227
|
+
De(g), ke && je(!1), Ie && Be(!1);
|
4228
4228
|
}
|
4229
4229
|
}
|
4230
4230
|
),
|
@@ -4254,9 +4254,9 @@ function $i(e) {
|
|
4254
4254
|
break;
|
4255
4255
|
}
|
4256
4256
|
},
|
4257
|
-
open:
|
4257
|
+
open: ke,
|
4258
4258
|
onToggle: (g) => {
|
4259
|
-
|
4259
|
+
Pe && De(!1), je(g), Ie && Be(!1);
|
4260
4260
|
}
|
4261
4261
|
}
|
4262
4262
|
),
|
@@ -4273,7 +4273,7 @@ function $i(e) {
|
|
4273
4273
|
},
|
4274
4274
|
open: Ie,
|
4275
4275
|
onToggle: (g) => {
|
4276
|
-
|
4276
|
+
Pe && De(!1), ke && je(!1), Be(g);
|
4277
4277
|
}
|
4278
4278
|
}
|
4279
4279
|
)
|
@@ -4289,7 +4289,7 @@ function zi(e) {
|
|
4289
4289
|
] });
|
4290
4290
|
}
|
4291
4291
|
export {
|
4292
|
-
|
4292
|
+
zt as Accordion,
|
4293
4293
|
Ai as Application,
|
4294
4294
|
Ot as BaseRemote,
|
4295
4295
|
Fn as ChildObject,
|
@@ -4304,7 +4304,7 @@ export {
|
|
4304
4304
|
Bn as NavButton,
|
4305
4305
|
Di as RemoteComponents,
|
4306
4306
|
Bi as RemoteController,
|
4307
|
-
|
4307
|
+
$t as RemoteTheatre,
|
4308
4308
|
Ni as RemoteThree,
|
4309
4309
|
Li as RemoteTweakpane,
|
4310
4310
|
Ui as SceneInspector,
|
@@ -4315,18 +4315,18 @@ export {
|
|
4315
4315
|
Pa as colorToHex,
|
4316
4316
|
j as debugDispatcher,
|
4317
4317
|
Pi as defaultTheatreCallback,
|
4318
|
-
|
4318
|
+
Ut as dispose,
|
4319
4319
|
ja as disposeMaterial,
|
4320
4320
|
ji as disposeTexture,
|
4321
4321
|
ki as distance,
|
4322
4322
|
In as hierarchyUUID,
|
4323
4323
|
Ra as isColor,
|
4324
|
-
|
4325
|
-
|
4326
|
-
|
4324
|
+
en as mix,
|
4325
|
+
Ft as noop,
|
4326
|
+
Qt as normalize,
|
4327
4327
|
_a as randomID,
|
4328
4328
|
ka as resetThreeObjects,
|
4329
|
-
|
4329
|
+
tn as round,
|
4330
4330
|
Ii as theatreEditorApp,
|
4331
|
-
|
4331
|
+
It as totalThreeObjects
|
4332
4332
|
};
|