@tomorrowevening/hermes 0.0.108 → 0.0.109
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hermes.cjs.js +11 -11
- package/dist/hermes.es.js +238 -240
- package/package.json +1 -1
- package/types/editor/tools/Transform.d.ts +23 -23
package/dist/hermes.es.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
import { OrthographicCamera as wi, Scene as Ds, MeshBasicMaterial as We, BufferGeometry as
|
2
|
-
import Js, { useState as Z, useRef as ee, useEffect as
|
1
|
+
import { OrthographicCamera as wi, Scene as Ds, MeshBasicMaterial as We, BufferGeometry as ot, Float32BufferAttribute as Ze, Mesh as w, LinearSRGBColorSpace as $i, EventDispatcher as Rs, Texture as In, RepeatWrapping as qi, WebGLRenderTarget as Ln, Color as Tt, FrontSide as kn, BackSide as Is, DoubleSide as Ri, NoBlending as Un, NormalBlending as jn, AdditiveBlending as Nn, SubtractiveBlending as Fn, MultiplyBlending as zn, CustomBlending as Hn, AddEquation as Yn, SubtractEquation as Bn, ReverseSubtractEquation as Vn, MinEquation as Zn, MaxEquation as Gn, ZeroFactor as Ls, OneFactor as ks, SrcColorFactor as Us, OneMinusSrcColorFactor as js, SrcAlphaFactor as Ns, OneMinusSrcAlphaFactor as Fs, DstAlphaFactor as zs, OneMinusDstAlphaFactor as Hs, DstColorFactor as Ys, OneMinusDstColorFactor as Bs, SrcAlphaSaturateFactor as Wn, ConstantColorFactor as Vs, OneMinusConstantColorFactor as Zs, ConstantAlphaFactor as Gs, OneMinusConstantAlphaFactor as Ws, Line as xe, LineBasicMaterial as Ii, Ray as Xn, Plane as Qn, MathUtils as $n, Vector3 as O, Controls as Xs, MOUSE as rt, TOUCH as at, Quaternion as fe, Spherical as Si, Vector2 as oe, ShaderMaterial as Qs, GLSL3 as qn, PlaneGeometry as $s, Raycaster as Xt, Euler as qs, Matrix4 as Kt, Object3D as lt, CylinderGeometry as de, BoxGeometry as ae, OctahedronGeometry as kt, SphereGeometry as Ks, TorusGeometry as ut, CatmullRomCurve3 as Ki, Group as Kn, AxesHelper as Ji, MeshDepthMaterial as Jn, MeshNormalMaterial as ea, WebGLRenderer as ta, PerspectiveCamera as hi, CameraHelper as ia, SkinnedMesh as sa, SpotLightHelper as na, PointLightHelper as aa, HemisphereLightHelper as ra, DirectionalLightHelper as oa, Clock as la, Vector4 as ca, Box3 as ha, Sphere as da } from "three";
|
2
|
+
import Js, { useState as Z, useRef as ee, useEffect as ct, useMemo as Ot, Component as Jt, createRef as Ie, forwardRef as ua } from "react";
|
3
3
|
import { Reorder as en } from "framer-motion";
|
4
4
|
const tn = () => {
|
5
|
-
},
|
5
|
+
}, Vr = () => {
|
6
6
|
};
|
7
7
|
function Qt(i) {
|
8
8
|
return i.substring(0, 1).toUpperCase() + i.substring(1);
|
@@ -20,7 +20,7 @@ function es(i, e, t) {
|
|
20
20
|
function xi(i, e, t) {
|
21
21
|
return i * (1 - t) + e * t;
|
22
22
|
}
|
23
|
-
function
|
23
|
+
function Zr(i, e) {
|
24
24
|
const t = i - e;
|
25
25
|
return Math.sqrt(t * t);
|
26
26
|
}
|
@@ -59,7 +59,7 @@ const is = () => {
|
|
59
59
|
}
|
60
60
|
}
|
61
61
|
i.children.forEach((t) => Ti(t));
|
62
|
-
},
|
62
|
+
}, Gr = (i) => {
|
63
63
|
i?.dispose();
|
64
64
|
}, ga = (i) => {
|
65
65
|
i && (Array.isArray(i) ? i.forEach((e) => e.dispose()) : i.dispose());
|
@@ -106,7 +106,7 @@ class Zt {
|
|
106
106
|
static renderToCanvas(e) {
|
107
107
|
if (this.material === null) {
|
108
108
|
this.camera = new wi(-0.5, 0.5, 0.5, -0.5, 0, 100), this.scene = new Ds(), this.material = new We();
|
109
|
-
const t = new
|
109
|
+
const t = new ot();
|
110
110
|
t.setAttribute("position", new Ze([-0.5, -0.5, 0, 1.5, -0.5, 0, -0.5, 1.5, 0], 3)), t.setAttribute("normal", new Ze([0, 0, 1, 0, 0, 1], 3)), t.setAttribute("uv", new Ze([0, 0, 2, 0, 0, 2], 2));
|
111
111
|
const s = new w(t, this.material);
|
112
112
|
this.scene.add(s);
|
@@ -120,7 +120,7 @@ class Zt {
|
|
120
120
|
return this.renderer.domElement;
|
121
121
|
}
|
122
122
|
}
|
123
|
-
class
|
123
|
+
class Wr {
|
124
124
|
components = /* @__PURE__ */ new Map();
|
125
125
|
listen;
|
126
126
|
// Protected
|
@@ -192,7 +192,7 @@ class Li {
|
|
192
192
|
handleEditor(e, t, s) {
|
193
193
|
}
|
194
194
|
}
|
195
|
-
class
|
195
|
+
class Xr extends Li {
|
196
196
|
selectDropdown(e, t) {
|
197
197
|
this.app.send({
|
198
198
|
event: "selectComponent",
|
@@ -224,7 +224,7 @@ class Qr extends Li {
|
|
224
224
|
}
|
225
225
|
}
|
226
226
|
}
|
227
|
-
function
|
227
|
+
function Qr(i, e, t) {
|
228
228
|
if (i.editor) {
|
229
229
|
t.ui.restore(), t.onSelectionChange((a) => {
|
230
230
|
a.length < 1 || a.forEach((o) => {
|
@@ -267,7 +267,7 @@ function $r(i, e, t) {
|
|
267
267
|
} else
|
268
268
|
t.ui.hide();
|
269
269
|
}
|
270
|
-
function
|
270
|
+
function $r() {
|
271
271
|
const i = document.getElementById("theatrejs-studio-root")?.shadowRoot?.getElementById("pointer-root")?.children[0], e = i?.children[1];
|
272
272
|
e.style.justifyContent = "left";
|
273
273
|
const t = e.children[1];
|
@@ -450,7 +450,7 @@ class qr extends Li {
|
|
450
450
|
this.studio?.ui.hide();
|
451
451
|
}
|
452
452
|
}
|
453
|
-
function
|
453
|
+
function _a(i) {
|
454
454
|
if (i.name === "cameras")
|
455
455
|
return "camera";
|
456
456
|
if (i.name === "interactive")
|
@@ -464,7 +464,7 @@ function va(i) {
|
|
464
464
|
const e = i.type;
|
465
465
|
return e.search("Helper") > -1 ? "icon_utils" : e.search("Camera") > -1 ? "camera" : e.search("Light") > -1 ? "light" : "obj3D";
|
466
466
|
}
|
467
|
-
function
|
467
|
+
function nt(i) {
|
468
468
|
const e = {
|
469
469
|
name: i.name,
|
470
470
|
type: i.type,
|
@@ -472,10 +472,10 @@ function at(i) {
|
|
472
472
|
children: []
|
473
473
|
};
|
474
474
|
return i.children.forEach((t) => {
|
475
|
-
e.children.push(
|
475
|
+
e.children.push(nt(t));
|
476
476
|
}), e;
|
477
477
|
}
|
478
|
-
function
|
478
|
+
function va(i) {
|
479
479
|
const e = {};
|
480
480
|
for (const t in i) {
|
481
481
|
const s = i[t].value;
|
@@ -491,7 +491,7 @@ function ya(i) {
|
|
491
491
|
}
|
492
492
|
return e;
|
493
493
|
}
|
494
|
-
function
|
494
|
+
function ya(i) {
|
495
495
|
switch (i) {
|
496
496
|
case "blendSrcAlpha":
|
497
497
|
case "blendDstAlpha":
|
@@ -503,10 +503,10 @@ function ba(i) {
|
|
503
503
|
}
|
504
504
|
return !1;
|
505
505
|
}
|
506
|
-
function
|
506
|
+
function qe(i) {
|
507
507
|
const e = {};
|
508
508
|
for (const t in i) {
|
509
|
-
if (t.substring(0, 1) === "_" || t.substring(0, 2) === "is" ||
|
509
|
+
if (t.substring(0, 1) === "_" || t.substring(0, 2) === "is" || ya(t))
|
510
510
|
continue;
|
511
511
|
const s = typeof i[t], n = i[t];
|
512
512
|
switch (s) {
|
@@ -520,7 +520,7 @@ function Ke(i) {
|
|
520
520
|
src: Zt.renderToBlob(n),
|
521
521
|
offset: [n.offset.x, n.offset.y],
|
522
522
|
repeat: [n.repeat.x, n.repeat.y]
|
523
|
-
} : t === "uniforms" && (e[t] =
|
523
|
+
} : t === "uniforms" && (e[t] = va(e[t]))) : t === "glslVersion" ? e[t] = "" : e[t] = {
|
524
524
|
src: "",
|
525
525
|
offset: [0, 0],
|
526
526
|
repeat: [1, 1]
|
@@ -558,28 +558,28 @@ function di(i) {
|
|
558
558
|
if (Array.isArray(s.material)) {
|
559
559
|
const n = [];
|
560
560
|
s.material.forEach((r) => {
|
561
|
-
n.push(
|
561
|
+
n.push(qe(r));
|
562
562
|
}), e.material = n;
|
563
563
|
} else
|
564
|
-
e.material =
|
564
|
+
e.material = qe(s.material);
|
565
565
|
} else if (t.search("points") > -1) {
|
566
566
|
const s = i;
|
567
567
|
if (Array.isArray(s.material)) {
|
568
568
|
const n = [];
|
569
569
|
s.material.forEach((r) => {
|
570
|
-
n.push(
|
570
|
+
n.push(qe(r));
|
571
571
|
}), e.material = n;
|
572
572
|
} else
|
573
|
-
e.material =
|
573
|
+
e.material = qe(s.material);
|
574
574
|
} else if (t.search("line") > -1) {
|
575
575
|
const s = i;
|
576
576
|
if (Array.isArray(s.material)) {
|
577
577
|
const n = [];
|
578
578
|
s.material.forEach((r) => {
|
579
|
-
n.push(
|
579
|
+
n.push(qe(r));
|
580
580
|
}), e.material = n;
|
581
581
|
} else
|
582
|
-
e.material =
|
582
|
+
e.material = qe(s.material);
|
583
583
|
} else
|
584
584
|
t.search("camera") > -1 ? i.type === "PerspectiveCamera" ? e.perspectiveCameraInfo = {
|
585
585
|
fov: i.fov,
|
@@ -611,7 +611,7 @@ function di(i) {
|
|
611
611
|
});
|
612
612
|
return e;
|
613
613
|
}
|
614
|
-
function
|
614
|
+
function ba(i, e) {
|
615
615
|
const t = e.split(".");
|
616
616
|
switch (t.length) {
|
617
617
|
case 1:
|
@@ -628,7 +628,7 @@ function Ea(i, e) {
|
|
628
628
|
return i[t[0]][t[1]][t[2]][t[3]][t[4]][t[5]];
|
629
629
|
}
|
630
630
|
}
|
631
|
-
function
|
631
|
+
function Ea(i, e) {
|
632
632
|
for (const t in e)
|
633
633
|
i[t] = e[t];
|
634
634
|
}
|
@@ -673,7 +673,7 @@ function K(i, e, t) {
|
|
673
673
|
a = i[s[0]][s[1]][s[2]][s[3]][s[4]];
|
674
674
|
break;
|
675
675
|
}
|
676
|
-
a != null &&
|
676
|
+
a != null && Ea(a, t);
|
677
677
|
}
|
678
678
|
}
|
679
679
|
function sn(i) {
|
@@ -797,7 +797,7 @@ class Kr extends Li {
|
|
797
797
|
if (e === void 0 || (this.scenes.set(e.name, e), !this.app.debugEnabled))
|
798
798
|
return;
|
799
799
|
is(), Ti(e);
|
800
|
-
const t =
|
800
|
+
const t = nt(e);
|
801
801
|
this.app.send({
|
802
802
|
event: "addScene",
|
803
803
|
target: "editor",
|
@@ -809,7 +809,7 @@ class Kr extends Li {
|
|
809
809
|
return;
|
810
810
|
const t = this.scenes.get(e);
|
811
811
|
if (t !== void 0) {
|
812
|
-
const s =
|
812
|
+
const s = nt(t);
|
813
813
|
this.app.send({
|
814
814
|
event: "refreshScene",
|
815
815
|
target: "app",
|
@@ -820,7 +820,7 @@ class Kr extends Li {
|
|
820
820
|
removeScene(e) {
|
821
821
|
if (e === void 0 || (this.scenes.delete(e.name), !this.app.debugEnabled))
|
822
822
|
return;
|
823
|
-
const t =
|
823
|
+
const t = nt(e);
|
824
824
|
this.app.send({
|
825
825
|
event: "removeScene",
|
826
826
|
target: "editor",
|
@@ -840,7 +840,7 @@ class Kr extends Li {
|
|
840
840
|
if (e === void 0 || (this.scene = e, !this.app.debugEnabled))
|
841
841
|
return;
|
842
842
|
this.renderer !== void 0 && (Zt.renderer = this.renderer), is(), Ti(e);
|
843
|
-
const t =
|
843
|
+
const t = nt(e);
|
844
844
|
this.app.send({
|
845
845
|
event: "setScene",
|
846
846
|
target: "editor",
|
@@ -887,7 +887,7 @@ class Kr extends Li {
|
|
887
887
|
e.send({
|
888
888
|
event: "refreshScene",
|
889
889
|
target: "editor",
|
890
|
-
data:
|
890
|
+
data: nt(n.scenes.get(s.data.name))
|
891
891
|
});
|
892
892
|
break;
|
893
893
|
}
|
@@ -968,7 +968,7 @@ var Mi = { exports: {} }, pt = {};
|
|
968
968
|
* LICENSE file in the root directory of this source tree.
|
969
969
|
*/
|
970
970
|
var ss;
|
971
|
-
function
|
971
|
+
function Ca() {
|
972
972
|
if (ss)
|
973
973
|
return pt;
|
974
974
|
ss = 1;
|
@@ -996,7 +996,7 @@ var mt = {};
|
|
996
996
|
* LICENSE file in the root directory of this source tree.
|
997
997
|
*/
|
998
998
|
var ns;
|
999
|
-
function
|
999
|
+
function wa() {
|
1000
1000
|
return ns || (ns = 1, process.env.NODE_ENV !== "production" && function() {
|
1001
1001
|
var i = Js, e = Symbol.for("react.element"), t = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), r = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), o = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), l = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), _ = Symbol.for("react.offscreen"), S = Symbol.iterator, T = "@@iterator";
|
1002
1002
|
function M(h) {
|
@@ -1039,7 +1039,7 @@ function Sa() {
|
|
1039
1039
|
var F = y.displayName || y.name || "";
|
1040
1040
|
return F !== "" ? C + "(" + F + ")" : C;
|
1041
1041
|
}
|
1042
|
-
function
|
1042
|
+
function Xe(h) {
|
1043
1043
|
return h.displayName || "Context";
|
1044
1044
|
}
|
1045
1045
|
function me(h) {
|
@@ -1067,10 +1067,10 @@ function Sa() {
|
|
1067
1067
|
switch (h.$$typeof) {
|
1068
1068
|
case o:
|
1069
1069
|
var y = h;
|
1070
|
-
return
|
1070
|
+
return Xe(y) + ".Consumer";
|
1071
1071
|
case a:
|
1072
1072
|
var C = h;
|
1073
|
-
return
|
1073
|
+
return Xe(C._context) + ".Provider";
|
1074
1074
|
case c:
|
1075
1075
|
return ht(h, h.render, "ForwardRef");
|
1076
1076
|
case p:
|
@@ -1236,7 +1236,7 @@ function Sa() {
|
|
1236
1236
|
} finally {
|
1237
1237
|
ni = !1, ii.current = Y, cn(), Error.prepareStackTrace = F;
|
1238
1238
|
}
|
1239
|
-
var
|
1239
|
+
var $e = h ? h.displayName || h.name : "", Qi = $e ? At($e) : "";
|
1240
1240
|
return typeof h == "function" && Dt.set(h, Qi), Qi;
|
1241
1241
|
}
|
1242
1242
|
function dn(h, y, C) {
|
@@ -1425,7 +1425,7 @@ function Sa() {
|
|
1425
1425
|
}
|
1426
1426
|
}
|
1427
1427
|
var oi = g.ReactCurrentOwner, Bi = g.ReactDebugCurrentFrame;
|
1428
|
-
function
|
1428
|
+
function Qe(h) {
|
1429
1429
|
if (h) {
|
1430
1430
|
var y = h._owner, C = Rt(h.type, h._source, y ? y.type : null);
|
1431
1431
|
Bi.setExtraStackFrame(C);
|
@@ -1483,7 +1483,7 @@ Check the top-level render call using <` + C + ">.");
|
|
1483
1483
|
return;
|
1484
1484
|
Zi[C] = !0;
|
1485
1485
|
var I = "";
|
1486
|
-
h && h._owner && h._owner !== oi.current && (I = " It was passed a child from " + me(h._owner.type) + "."),
|
1486
|
+
h && h._owner && h._owner !== oi.current && (I = " It was passed a child from " + me(h._owner.type) + "."), Qe(h), v('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, I), Qe(null);
|
1487
1487
|
}
|
1488
1488
|
}
|
1489
1489
|
function Wi(h, y) {
|
@@ -1535,11 +1535,11 @@ Check the top-level render call using <` + C + ">.");
|
|
1535
1535
|
for (var y = Object.keys(h.props), C = 0; C < y.length; C++) {
|
1536
1536
|
var I = y[C];
|
1537
1537
|
if (I !== "children" && I !== "key") {
|
1538
|
-
|
1538
|
+
Qe(h), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", I), Qe(null);
|
1539
1539
|
break;
|
1540
1540
|
}
|
1541
1541
|
}
|
1542
|
-
h.ref !== null && (
|
1542
|
+
h.ref !== null && (Qe(h), v("Invalid attribute `ref` supplied to `React.Fragment`."), Qe(null));
|
1543
1543
|
}
|
1544
1544
|
}
|
1545
1545
|
function Xi(h, y, C, I, F, Y) {
|
@@ -1561,8 +1561,8 @@ Check the top-level render call using <` + C + ">.");
|
|
1561
1561
|
if (_e !== void 0)
|
1562
1562
|
if (I)
|
1563
1563
|
if (ai(_e)) {
|
1564
|
-
for (var
|
1565
|
-
Wi(_e[
|
1564
|
+
for (var $e = 0; $e < _e.length; $e++)
|
1565
|
+
Wi(_e[$e], h);
|
1566
1566
|
Object.freeze && Object.freeze(_e);
|
1567
1567
|
} else
|
1568
1568
|
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
@@ -1582,16 +1582,16 @@ Check the top-level render call using <` + C + ">.");
|
|
1582
1582
|
mt.Fragment = s, mt.jsx = Dn, mt.jsxs = Rn;
|
1583
1583
|
}()), mt;
|
1584
1584
|
}
|
1585
|
-
process.env.NODE_ENV === "production" ? Mi.exports =
|
1585
|
+
process.env.NODE_ENV === "production" ? Mi.exports = Ca() : Mi.exports = wa();
|
1586
1586
|
var d = Mi.exports;
|
1587
1587
|
function nn(i) {
|
1588
1588
|
return i.title.search("<") > -1 ? /* @__PURE__ */ d.jsx("button", { className: "svg", dangerouslySetInnerHTML: { __html: i.title } }) : /* @__PURE__ */ d.jsx("button", { children: i.title });
|
1589
1589
|
}
|
1590
|
-
const
|
1590
|
+
const Sa = /* @__PURE__ */ d.jsxs("svg", { className: "closeIcon", width: "14", height: "14", fill: "none", stroke: "#666666", strokeMiterlimit: "10", children: [
|
1591
1591
|
/* @__PURE__ */ d.jsx("circle", { cx: "7", cy: "7", r: "6" }),
|
1592
1592
|
/* @__PURE__ */ d.jsx("line", { x1: "4", y1: "4", x2: "10", y2: "10" }),
|
1593
1593
|
/* @__PURE__ */ d.jsx("line", { x1: "4", y1: "10", x2: "10", y2: "4" })
|
1594
|
-
] }),
|
1594
|
+
] }), xa = /* @__PURE__ */ d.jsx("svg", { className: "dragIcon", width: "14", height: "14", fill: "#666666", stroke: "none", children: /* @__PURE__ */ d.jsx(
|
1595
1595
|
"path",
|
1596
1596
|
{
|
1597
1597
|
d: `M10.43,4H3.57C3.26,4,3,4.22,3,4.5v1C3,5.78,3.26,6,3.57,6h6.86C10.74,6,11,5.78,11,5.5v-1\r
|
@@ -1599,16 +1599,16 @@ C11,4.22,10.74,4,10.43,4z M10.43,8H3.57C3.26,8,3,8.22,3,8.5v1C3,9.78,3.26,10,3.5
|
|
1599
1599
|
C11,8.22,10.74,8,10.43,8z`
|
1600
1600
|
}
|
1601
1601
|
) });
|
1602
|
-
function
|
1602
|
+
function Oa(i) {
|
1603
1603
|
return /* @__PURE__ */ d.jsx(en.Item, { value: i.title, children: /* @__PURE__ */ d.jsxs("div", { children: [
|
1604
|
-
|
1604
|
+
xa,
|
1605
1605
|
/* @__PURE__ */ d.jsx("span", { children: i.title }),
|
1606
1606
|
/* @__PURE__ */ d.jsx("button", { className: "closeIcon", onClick: () => {
|
1607
1607
|
i.onDelete(i.index);
|
1608
|
-
}, children:
|
1608
|
+
}, children: Sa })
|
1609
1609
|
] }) }, i.title);
|
1610
1610
|
}
|
1611
|
-
function
|
1611
|
+
function Ta(i) {
|
1612
1612
|
const [e, t] = Z(!1), [s, n] = Z(i.options), r = (l) => {
|
1613
1613
|
i.onDragComplete(l), n(l);
|
1614
1614
|
}, a = (l) => {
|
@@ -1616,7 +1616,7 @@ function Ma(i) {
|
|
1616
1616
|
u.splice(l, 1), r(u);
|
1617
1617
|
}, o = [];
|
1618
1618
|
s.forEach((l, u) => {
|
1619
|
-
o.push(/* @__PURE__ */ d.jsx(
|
1619
|
+
o.push(/* @__PURE__ */ d.jsx(Oa, { index: u, title: l, onDelete: a }, l));
|
1620
1620
|
});
|
1621
1621
|
let c = "dropdown draggable";
|
1622
1622
|
return i.subdropdown && (c += " subdropdown"), /* @__PURE__ */ d.jsxs("div", { className: c, onMouseEnter: () => t(!0), onMouseLeave: () => t(!1), children: [
|
@@ -1624,10 +1624,10 @@ function Ma(i) {
|
|
1624
1624
|
/* @__PURE__ */ d.jsx(en.Group, { axis: "y", values: s, onReorder: r, style: { visibility: e ? "visible" : "hidden" }, children: o })
|
1625
1625
|
] });
|
1626
1626
|
}
|
1627
|
-
function
|
1627
|
+
function Ma(i) {
|
1628
1628
|
const [e, t] = Z(!1), s = [];
|
1629
1629
|
i.options.map((r, a) => {
|
1630
|
-
i.onSelect !== void 0 && (r.onSelect = i.onSelect), s.push(/* @__PURE__ */ d.jsx(
|
1630
|
+
i.onSelect !== void 0 && (r.onSelect = i.onSelect), s.push(/* @__PURE__ */ d.jsx(Pa, { option: r }, a));
|
1631
1631
|
});
|
1632
1632
|
let n = "dropdown";
|
1633
1633
|
return i.subdropdown && (n += " subdropdown"), /* @__PURE__ */ d.jsxs(
|
@@ -1649,13 +1649,13 @@ function Pa(i) {
|
|
1649
1649
|
}
|
1650
1650
|
);
|
1651
1651
|
}
|
1652
|
-
function
|
1652
|
+
function Pa(i) {
|
1653
1653
|
const { option: e } = i, [t, s] = Z("");
|
1654
1654
|
let n;
|
1655
1655
|
switch (e.type) {
|
1656
1656
|
case "draggable":
|
1657
1657
|
n = /* @__PURE__ */ d.jsx(
|
1658
|
-
|
1658
|
+
Ta,
|
1659
1659
|
{
|
1660
1660
|
title: e.title,
|
1661
1661
|
options: e.value,
|
@@ -1668,7 +1668,7 @@ function Aa(i) {
|
|
1668
1668
|
break;
|
1669
1669
|
case "dropdown":
|
1670
1670
|
n = /* @__PURE__ */ d.jsx(
|
1671
|
-
|
1671
|
+
Ma,
|
1672
1672
|
{
|
1673
1673
|
title: e.title,
|
1674
1674
|
options: e.value,
|
@@ -1751,7 +1751,7 @@ function an(i) {
|
|
1751
1751
|
const e = ee(null), [t, s] = Z(!1), n = i.child !== void 0 && i.child.children.length > 0, r = [];
|
1752
1752
|
return i.child !== void 0 && i.child.children.length > 0 && i.child.children.map((a, o) => {
|
1753
1753
|
r.push(/* @__PURE__ */ d.jsx(an, { child: a, three: i.three }, o));
|
1754
|
-
}),
|
1754
|
+
}), ct(() => {
|
1755
1755
|
if (i.child) {
|
1756
1756
|
const a = i.three.getScene(i.child.uuid);
|
1757
1757
|
if (a !== null) {
|
@@ -1805,7 +1805,7 @@ function an(i) {
|
|
1805
1805
|
}
|
1806
1806
|
}
|
1807
1807
|
),
|
1808
|
-
/* @__PURE__ */ d.jsx("div", { className: `icon ${
|
1808
|
+
/* @__PURE__ */ d.jsx("div", { className: `icon ${_a(i.child)}` })
|
1809
1809
|
] }),
|
1810
1810
|
/* @__PURE__ */ d.jsx("div", { className: t ? "open" : "", children: /* @__PURE__ */ d.jsx("div", { className: "container", children: r }) })
|
1811
1811
|
] }, Math.random()) });
|
@@ -1816,9 +1816,9 @@ function as(i) {
|
|
1816
1816
|
e.push(/* @__PURE__ */ d.jsx(an, { child: t, scene: i.scene, three: i.three }, s));
|
1817
1817
|
}), /* @__PURE__ */ d.jsx("div", { className: `scene ${i.class !== void 0 ? i.class : ""}`, children: e });
|
1818
1818
|
}
|
1819
|
-
function
|
1819
|
+
function Aa(i) {
|
1820
1820
|
const [e, t] = Z(i.defaultValue);
|
1821
|
-
return
|
1821
|
+
return ct(() => {
|
1822
1822
|
let s = !1, n = -1, r = 0, a = i.defaultValue;
|
1823
1823
|
const o = (m) => {
|
1824
1824
|
s = !0, r = Number(i.input.current?.value), n = m.clientX, document.addEventListener("mouseup", l, !1), document.addEventListener("mousemove", c, !1), document.addEventListener("contextmenu", l, !1);
|
@@ -1842,7 +1842,7 @@ function Da(i) {
|
|
1842
1842
|
}, []), e;
|
1843
1843
|
}
|
1844
1844
|
function Ge(i) {
|
1845
|
-
const e = ee(null), t = ee(null), s =
|
1845
|
+
const e = ee(null), t = ee(null), s = Aa({
|
1846
1846
|
label: i.labelRef,
|
1847
1847
|
input: e,
|
1848
1848
|
sliderRef: t,
|
@@ -1904,7 +1904,7 @@ function Ge(i) {
|
|
1904
1904
|
] })
|
1905
1905
|
] });
|
1906
1906
|
}
|
1907
|
-
function
|
1907
|
+
function Da(i) {
|
1908
1908
|
const e = ee(null), t = ee(null), s = ee(null), n = ee(null), r = ee(null), a = ee(null), [o, c] = Z(i.value), [l, u] = Z({
|
1909
1909
|
min: Math.min(i.min, Math.min(i.value.x, i.value.y)),
|
1910
1910
|
max: Math.max(i.max, Math.max(i.value.x, i.value.y))
|
@@ -1931,7 +1931,7 @@ function Ra(i) {
|
|
1931
1931
|
const b = Number(n.current.value);
|
1932
1932
|
u({ min: l.min, max: b }), (o.x > b || o.y > b) && c({ x: Be(l.min, b, o.x), y: Be(l.min, b, o.y) });
|
1933
1933
|
}
|
1934
|
-
|
1934
|
+
ct(() => {
|
1935
1935
|
const b = es(l.min, l.max, o.x), P = es(l.min, l.max, o.y);
|
1936
1936
|
a.current.style.left = `${b * 100}%`, a.current.style.top = `${P * 100}%`;
|
1937
1937
|
}, [l, o]);
|
@@ -2002,18 +2002,18 @@ function Ra(i) {
|
|
2002
2002
|
] })
|
2003
2003
|
] });
|
2004
2004
|
}
|
2005
|
-
const
|
2006
|
-
function
|
2005
|
+
const Ra = Math.PI / 180, Ia = 180 / Math.PI;
|
2006
|
+
function Ke(i, e, t, s, n) {
|
2007
2007
|
return s + (i - e) * (n - s) / (t - e);
|
2008
2008
|
}
|
2009
|
-
function
|
2009
|
+
function Je(i, e, t) {
|
2010
2010
|
return (1 - t) * i + t * e;
|
2011
2011
|
}
|
2012
2012
|
function Pi(i) {
|
2013
|
-
return i *
|
2013
|
+
return i * Ra;
|
2014
2014
|
}
|
2015
|
-
function
|
2016
|
-
return i *
|
2015
|
+
function La(i) {
|
2016
|
+
return i * Ia;
|
2017
2017
|
}
|
2018
2018
|
function rs(i) {
|
2019
2019
|
const e = i.value.x !== void 0 && i.value.y !== void 0 && i.value.z !== void 0, t = i.value.isEuler !== void 0, s = i.value.elements !== void 0, n = i.step !== void 0 ? i.step : 0.01, r = [];
|
@@ -2027,7 +2027,7 @@ function rs(i) {
|
|
2027
2027
|
/* @__PURE__ */ d.jsx(
|
2028
2028
|
Ge,
|
2029
2029
|
{
|
2030
|
-
value:
|
2030
|
+
value: La(a[c]),
|
2031
2031
|
type: "number",
|
2032
2032
|
prop: c,
|
2033
2033
|
step: 0.1,
|
@@ -2090,7 +2090,7 @@ function rs(i) {
|
|
2090
2090
|
}
|
2091
2091
|
return /* @__PURE__ */ d.jsx("div", { className: "grid3", children: r }, Math.random().toString());
|
2092
2092
|
}
|
2093
|
-
function
|
2093
|
+
function ka(i) {
|
2094
2094
|
const e = i.value.x !== void 0, t = i.step !== void 0 ? i.step : 0.01, s = [];
|
2095
2095
|
if (e) {
|
2096
2096
|
const n = Ot(() => i.value, []), r = (o, c) => {
|
@@ -2142,10 +2142,10 @@ function Ua(i) {
|
|
2142
2142
|
}
|
2143
2143
|
return /* @__PURE__ */ d.jsx("div", { className: "grid4", children: s });
|
2144
2144
|
}
|
2145
|
-
function
|
2145
|
+
function Ua(i) {
|
2146
2146
|
return !(i === "defaultAttributeValues" || i === "forceSinglePass" || i === "linecap" || i === "linejoin" || i === "linewidth" || i === "normalMapType" || i === "precision" || i === "shadowSide" || i === "uniformsGroups" || i === "uniformsNeedUpdate" || i === "userData" || i === "version" || i === "wireframeLinecap" || i === "wireframeLinejoin" || i === "wireframeLinewidth" || i.slice(0, 4) === "clip" || i.slice(0, 7) === "polygon" || i.slice(0, 7) === "stencil" || i.slice(0, 2) === "is");
|
2147
2147
|
}
|
2148
|
-
function
|
2148
|
+
function ja(i) {
|
2149
2149
|
switch (i) {
|
2150
2150
|
case "Alpha Map":
|
2151
2151
|
return "alphaMap";
|
@@ -2401,7 +2401,7 @@ function rn(i) {
|
|
2401
2401
|
const e = i.toLowerCase();
|
2402
2402
|
return e.search("intensity") > -1 || e === "anisotropyrotation" || e === "blendalpha" || e === "bumpscale" || e === "clearcoatroughness" || e === "displacementbias" || e === "displacementscale" || e === "metalness" || e === "opacity" || e === "reflectivity" || e === "refractionratio" || e === "roughness" || e === "sheenroughness";
|
2403
2403
|
}
|
2404
|
-
function
|
2404
|
+
function Na() {
|
2405
2405
|
const i = document.createElement("input");
|
2406
2406
|
return i.type = "file", new Promise((e, t) => {
|
2407
2407
|
i.addEventListener("change", function() {
|
@@ -2416,7 +2416,7 @@ function Fa() {
|
|
2416
2416
|
}), i.click();
|
2417
2417
|
});
|
2418
2418
|
}
|
2419
|
-
const
|
2419
|
+
const Fa = [
|
2420
2420
|
{
|
2421
2421
|
title: "Front",
|
2422
2422
|
value: kn
|
@@ -2429,7 +2429,7 @@ const za = [
|
|
2429
2429
|
title: "Double",
|
2430
2430
|
value: Ri
|
2431
2431
|
}
|
2432
|
-
],
|
2432
|
+
], za = [
|
2433
2433
|
{
|
2434
2434
|
title: "No Blending",
|
2435
2435
|
value: Un
|
@@ -2454,7 +2454,7 @@ const za = [
|
|
2454
2454
|
title: "Custom",
|
2455
2455
|
value: Hn
|
2456
2456
|
}
|
2457
|
-
],
|
2457
|
+
], Ha = [
|
2458
2458
|
{
|
2459
2459
|
title: "Add",
|
2460
2460
|
value: Yn
|
@@ -2475,7 +2475,7 @@ const za = [
|
|
2475
2475
|
title: "Max",
|
2476
2476
|
value: Gn
|
2477
2477
|
}
|
2478
|
-
],
|
2478
|
+
], Ya = [
|
2479
2479
|
{
|
2480
2480
|
title: "Zero",
|
2481
2481
|
value: Ls
|
@@ -2536,7 +2536,7 @@ const za = [
|
|
2536
2536
|
title: "One Minus Constant Alpha",
|
2537
2537
|
value: Ws
|
2538
2538
|
}
|
2539
|
-
],
|
2539
|
+
], Ba = [
|
2540
2540
|
{
|
2541
2541
|
title: "Zero",
|
2542
2542
|
value: Ls
|
@@ -2597,7 +2597,7 @@ const za = [
|
|
2597
2597
|
function ft(i, e) {
|
2598
2598
|
i.needsUpdate = !0, i.type = "option", i.options = e;
|
2599
2599
|
}
|
2600
|
-
function
|
2600
|
+
function Va(i, e, t, s) {
|
2601
2601
|
return {
|
2602
2602
|
type: "boolean",
|
2603
2603
|
title: ei(i),
|
@@ -2614,7 +2614,7 @@ function Za(i, e, t, s) {
|
|
2614
2614
|
}
|
2615
2615
|
};
|
2616
2616
|
}
|
2617
|
-
function
|
2617
|
+
function Za(i, e, t, s) {
|
2618
2618
|
const n = {
|
2619
2619
|
type: "number",
|
2620
2620
|
title: ei(i),
|
@@ -2635,24 +2635,24 @@ function Ga(i, e, t, s) {
|
|
2635
2635
|
};
|
2636
2636
|
switch (i) {
|
2637
2637
|
case "blending":
|
2638
|
-
ft(n,
|
2638
|
+
ft(n, za);
|
2639
2639
|
break;
|
2640
2640
|
case "blendDst":
|
2641
|
-
ft(n,
|
2641
|
+
ft(n, Ba);
|
2642
2642
|
break;
|
2643
2643
|
case "blendEquation":
|
2644
|
-
ft(n,
|
2644
|
+
ft(n, Ha);
|
2645
2645
|
break;
|
2646
2646
|
case "blendSrc":
|
2647
|
-
ft(n,
|
2647
|
+
ft(n, Ya);
|
2648
2648
|
break;
|
2649
2649
|
case "side":
|
2650
|
-
ft(n,
|
2650
|
+
ft(n, Fa);
|
2651
2651
|
break;
|
2652
2652
|
}
|
2653
2653
|
return rn(i) && (n.value = Number(e), n.type = "range", n.min = Math.min(0, n.value), n.max = Math.max(1, n.value), n.step = 0.01), n;
|
2654
2654
|
}
|
2655
|
-
function
|
2655
|
+
function Ga(i, e, t, s) {
|
2656
2656
|
const n = {
|
2657
2657
|
type: "string",
|
2658
2658
|
title: ei(i),
|
@@ -2688,13 +2688,13 @@ function Wa(i, e, t, s) {
|
|
2688
2688
|
}
|
2689
2689
|
}), n;
|
2690
2690
|
}
|
2691
|
-
function
|
2691
|
+
function Wa(i) {
|
2692
2692
|
return i.x !== void 0 && i.y !== void 0 && i.z === void 0;
|
2693
2693
|
}
|
2694
|
-
function
|
2694
|
+
function Xa(i) {
|
2695
2695
|
return i.x !== void 0 && i.y !== void 0 && i.z !== void 0 && i.w === void 0;
|
2696
2696
|
}
|
2697
|
-
function
|
2697
|
+
function Qa(i) {
|
2698
2698
|
return i.x !== void 0 && i.y !== void 0 && i.z !== void 0 && i.w !== void 0;
|
2699
2699
|
}
|
2700
2700
|
function Ai(i) {
|
@@ -2772,7 +2772,7 @@ function wt(i, e, t, s, n = "", r = !1) {
|
|
2772
2772
|
items: l
|
2773
2773
|
};
|
2774
2774
|
} else {
|
2775
|
-
if (
|
2775
|
+
if (Wa(e))
|
2776
2776
|
return {
|
2777
2777
|
title: a,
|
2778
2778
|
prop: o,
|
@@ -2788,7 +2788,7 @@ function wt(i, e, t, s, n = "", r = !1) {
|
|
2788
2788
|
}
|
2789
2789
|
}
|
2790
2790
|
};
|
2791
|
-
if (
|
2791
|
+
if (Xa(e))
|
2792
2792
|
return {
|
2793
2793
|
title: a,
|
2794
2794
|
prop: o,
|
@@ -2804,7 +2804,7 @@ function wt(i, e, t, s, n = "", r = !1) {
|
|
2804
2804
|
}
|
2805
2805
|
}
|
2806
2806
|
};
|
2807
|
-
if (
|
2807
|
+
if (Qa(e))
|
2808
2808
|
return {
|
2809
2809
|
title: a,
|
2810
2810
|
prop: o,
|
@@ -2843,7 +2843,7 @@ function wt(i, e, t, s, n = "", r = !1) {
|
|
2843
2843
|
value: e,
|
2844
2844
|
disabled: r,
|
2845
2845
|
onChange: (l, u) => {
|
2846
|
-
const p =
|
2846
|
+
const p = ja(i), m = n.length > 0 ? `${n}.${p}` : p;
|
2847
2847
|
s.createTexture(t.uuid, `material.${m}`, u);
|
2848
2848
|
const _ = s.getScene(t.uuid);
|
2849
2849
|
if (_ !== null) {
|
@@ -2922,15 +2922,15 @@ function wt(i, e, t, s, n = "", r = !1) {
|
|
2922
2922
|
function os(i, e, t) {
|
2923
2923
|
const s = [];
|
2924
2924
|
for (const n in i) {
|
2925
|
-
if (!
|
2925
|
+
if (!Ua(n))
|
2926
2926
|
continue;
|
2927
2927
|
const r = typeof i[n], a = i[n];
|
2928
2928
|
if (r === "boolean")
|
2929
|
-
s.push(
|
2929
|
+
s.push(Va(n, a, e, t));
|
2930
2930
|
else if (r === "number")
|
2931
|
-
s.push(
|
2931
|
+
s.push(Za(n, a, e, t));
|
2932
2932
|
else if (r === "string")
|
2933
|
-
s.push(
|
2933
|
+
s.push(Ga(n, a, e, t));
|
2934
2934
|
else if (r === "object") {
|
2935
2935
|
const o = wt(n, a, e, t);
|
2936
2936
|
o !== void 0 && s.push(o);
|
@@ -2950,7 +2950,7 @@ function os(i, e, t) {
|
|
2950
2950
|
}
|
2951
2951
|
}), s;
|
2952
2952
|
}
|
2953
|
-
function
|
2953
|
+
function $a(i, e) {
|
2954
2954
|
function t() {
|
2955
2955
|
return `${e.app.appID}_material`;
|
2956
2956
|
}
|
@@ -2987,7 +2987,7 @@ function qa(i, e) {
|
|
2987
2987
|
);
|
2988
2988
|
}
|
2989
2989
|
const ls = "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==";
|
2990
|
-
function
|
2990
|
+
function qa(i) {
|
2991
2991
|
const e = i.step !== void 0 ? i.step : 0.01, t = ee(null), s = ee(null), n = ee(null), r = ee(null), a = ee(null), [o] = Z(i.value), [c, l] = Z(i.value.offset[0]), [u, p] = Z(i.value.offset[1]), [m, _] = Z(i.value.repeat[0]), [S, T] = Z(i.value.repeat[1]);
|
2992
2992
|
function M(v, E, b, P, x) {
|
2993
2993
|
if (i.onChange !== void 0) {
|
@@ -3018,7 +3018,7 @@ function Ka(i) {
|
|
3018
3018
|
}
|
3019
3019
|
return /* @__PURE__ */ d.jsxs("div", { className: "imageField", children: [
|
3020
3020
|
/* @__PURE__ */ d.jsx("img", { alt: i.title, ref: t, onClick: () => {
|
3021
|
-
|
3021
|
+
Na().then((v) => {
|
3022
3022
|
t.current.src = v, M(v, c, u, m, S);
|
3023
3023
|
});
|
3024
3024
|
}, src: o.src.length > 0 ? o.src : ls }),
|
@@ -3167,15 +3167,15 @@ function Gt(i) {
|
|
3167
3167
|
children: i.title
|
3168
3168
|
}
|
3169
3169
|
),
|
3170
|
-
i.type === "image" && /* @__PURE__ */ d.jsx(
|
3170
|
+
i.type === "image" && /* @__PURE__ */ d.jsx(qa, { title: i.title, prop: i.prop, value: i.value, onChange: i.onChange }),
|
3171
3171
|
i.type === "option" && /* @__PURE__ */ d.jsx(d.Fragment, { children: /* @__PURE__ */ d.jsx("select", { onChange: r, disabled: i.disabled, defaultValue: i.value, children: i.options?.map((l, u) => /* @__PURE__ */ d.jsx("option", { value: l.value, children: Qt(l.title) }, u)) }) }),
|
3172
|
-
i.type === "vector2" && /* @__PURE__ */ d.jsx(
|
3172
|
+
i.type === "vector2" && /* @__PURE__ */ d.jsx(Da, { step: i.step, value: t, min: 0, max: 1, onChange: r }),
|
3173
3173
|
i.type === "grid3" && /* @__PURE__ */ d.jsx(rs, { step: i.step, value: t, onChange: r }),
|
3174
|
-
i.type === "grid4" && /* @__PURE__ */ d.jsx(
|
3174
|
+
i.type === "grid4" && /* @__PURE__ */ d.jsx(ka, { step: i.step, value: t, onChange: r }),
|
3175
3175
|
i.type === "euler" && /* @__PURE__ */ d.jsx(rs, { step: i.step, value: t, onChange: r })
|
3176
3176
|
] });
|
3177
3177
|
}
|
3178
|
-
function
|
3178
|
+
function Ka(i) {
|
3179
3179
|
return "items" in i;
|
3180
3180
|
}
|
3181
3181
|
class Ee extends Jt {
|
@@ -3230,7 +3230,7 @@ class Ee extends Jt {
|
|
3230
3230
|
render() {
|
3231
3231
|
const e = [];
|
3232
3232
|
return this.props.items.forEach((t) => {
|
3233
|
-
if (
|
3233
|
+
if (Ka(t))
|
3234
3234
|
e.push(
|
3235
3235
|
/* @__PURE__ */ d.jsx(Ee, { title: Qt(t.title), items: t.items }, Math.random())
|
3236
3236
|
);
|
@@ -3393,7 +3393,7 @@ function cs(i) {
|
|
3393
3393
|
}
|
3394
3394
|
return i;
|
3395
3395
|
}
|
3396
|
-
function
|
3396
|
+
function Ja(i, e) {
|
3397
3397
|
function t() {
|
3398
3398
|
return `${e.app.appID}_camera`;
|
3399
3399
|
}
|
@@ -3448,13 +3448,13 @@ function er(i, e) {
|
|
3448
3448
|
}
|
3449
3449
|
);
|
3450
3450
|
}
|
3451
|
-
class
|
3451
|
+
class er extends xe {
|
3452
3452
|
constructor(e, t) {
|
3453
|
-
const s = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], n = new
|
3453
|
+
const s = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0], n = new ot();
|
3454
3454
|
n.setAttribute("position", new Ze(s, 3)), n.computeBoundingSphere();
|
3455
3455
|
const r = new Ii({ fog: !1 });
|
3456
3456
|
super(n, r), this.light = e, this.color = t, this.type = "RectAreaLightHelper";
|
3457
|
-
const a = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], o = new
|
3457
|
+
const a = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], o = new ot();
|
3458
3458
|
o.setAttribute("position", new Ze(a, 3)), o.computeBoundingSphere(), this.add(new w(o, new We({ side: Is, fog: !1 })));
|
3459
3459
|
}
|
3460
3460
|
updateMatrixWorld() {
|
@@ -3471,7 +3471,7 @@ class tr extends xe {
|
|
3471
3471
|
this.geometry.dispose(), this.material.dispose(), this.children[0].geometry.dispose(), this.children[0].material.dispose();
|
3472
3472
|
}
|
3473
3473
|
}
|
3474
|
-
const hs = { type: "change" }, ki = { type: "start" }, on = { type: "end" }, Ut = new Xn(), ds = new Qn(),
|
3474
|
+
const hs = { type: "change" }, ki = { type: "start" }, on = { type: "end" }, Ut = new Xn(), ds = new Qn(), tr = Math.cos(70 * $n.DEG2RAD), ie = new O(), ue = 2 * Math.PI, H = {
|
3475
3475
|
NONE: -1,
|
3476
3476
|
ROTATE: 0,
|
3477
3477
|
DOLLY: 1,
|
@@ -3481,9 +3481,9 @@ const hs = { type: "change" }, ki = { type: "start" }, on = { type: "end" }, Ut
|
|
3481
3481
|
TOUCH_DOLLY_PAN: 5,
|
3482
3482
|
TOUCH_DOLLY_ROTATE: 6
|
3483
3483
|
}, ui = 1e-6;
|
3484
|
-
class
|
3484
|
+
class ir extends Xs {
|
3485
3485
|
constructor(e, t = null) {
|
3486
|
-
super(e, t), this.state = H.NONE, this.enabled = !0, this.target = new O(), this.cursor = new O(), 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:
|
3486
|
+
super(e, t), this.state = H.NONE, this.enabled = !0, this.target = new O(), this.cursor = new O(), 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: rt.ROTATE, MIDDLE: rt.DOLLY, RIGHT: rt.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._lastPosition = new O(), this._lastQuaternion = new fe(), this._lastTargetPosition = new O(), this._quat = new fe().setFromUnitVectors(e.up, new O(0, 1, 0)), this._quatInverse = this._quat.clone().invert(), this._spherical = new Si(), this._sphericalDelta = new Si(), this._scale = 1, this._panOffset = new O(), this._rotateStart = new oe(), this._rotateEnd = new oe(), this._rotateDelta = new oe(), this._panStart = new oe(), this._panEnd = new oe(), this._panDelta = new oe(), this._dollyStart = new oe(), this._dollyEnd = new oe(), this._dollyDelta = new oe(), this._dollyDirection = new O(), this._mouse = new oe(), this._performCursorZoom = !1, this._pointers = [], this._pointerPositions = {}, this._controlActive = !1, this._onPointerMove = nr.bind(this), this._onPointerDown = sr.bind(this), this._onPointerUp = ar.bind(this), this._onContextMenu = ur.bind(this), this._onMouseWheel = lr.bind(this), this._onKeyDown = cr.bind(this), this._onTouchStart = hr.bind(this), this._onTouchMove = dr.bind(this), this._onMouseDown = rr.bind(this), this._onMouseMove = or.bind(this), this._interceptControlDown = pr.bind(this), this._interceptControlUp = mr.bind(this), this.domElement !== null && this.connect(), this.update();
|
3487
3487
|
}
|
3488
3488
|
connect() {
|
3489
3489
|
this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointercancel", this._onPointerUp), this.domElement.addEventListener("contextmenu", this._onContextMenu), this.domElement.addEventListener("wheel", this._onMouseWheel, { passive: !1 }), this.domElement.getRootNode().addEventListener("keydown", this._interceptControlDown, { passive: !0, capture: !0 }), this.domElement.style.touchAction = "none";
|
@@ -3543,7 +3543,7 @@ class sr extends Xs {
|
|
3543
3543
|
l.unproject(this.object), this.object.position.sub(l).add(o), this.object.updateMatrixWorld(), a = ie.length();
|
3544
3544
|
} else
|
3545
3545
|
console.warn("WARNING: OrbitControls.js encountered an unknown camera type - zoom to cursor disabled."), this.zoomToCursor = !1;
|
3546
|
-
a !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(a).add(this.object.position) : (Ut.origin.copy(this.object.position), Ut.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(Ut.direction)) <
|
3546
|
+
a !== null && (this.screenSpacePanning ? this.target.set(0, 0, -1).transformDirection(this.object.matrix).multiplyScalar(a).add(this.object.position) : (Ut.origin.copy(this.object.position), Ut.direction.set(0, 0, -1).transformDirection(this.object.matrix), Math.abs(this.object.up.dot(Ut.direction)) < tr ? this.object.lookAt(this.target) : (ds.setFromNormalAndCoplanarPoint(this.object.up, this.target), Ut.intersectPlane(ds, this.target))));
|
3547
3547
|
} else if (this.object.isOrthographicCamera) {
|
3548
3548
|
const a = this.object.zoom;
|
3549
3549
|
this.object.zoom = Math.max(this.minZoom, Math.min(this.maxZoom, this.object.zoom / this._scale)), a !== this.object.zoom && (this.object.updateProjectionMatrix(), r = !0);
|
@@ -3742,13 +3742,13 @@ class sr extends Xs {
|
|
3742
3742
|
return e.ctrlKey && !this._controlActive && (s.deltaY *= 10), s;
|
3743
3743
|
}
|
3744
3744
|
}
|
3745
|
-
function
|
3745
|
+
function sr(i) {
|
3746
3746
|
this.enabled !== !1 && (this._pointers.length === 0 && (this.domElement.setPointerCapture(i.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.domElement.addEventListener("pointerup", this._onPointerUp)), !this._isTrackingPointer(i) && (this._addPointer(i), i.pointerType === "touch" ? this._onTouchStart(i) : this._onMouseDown(i)));
|
3747
3747
|
}
|
3748
|
-
function
|
3748
|
+
function nr(i) {
|
3749
3749
|
this.enabled !== !1 && (i.pointerType === "touch" ? this._onTouchMove(i) : this._onMouseMove(i));
|
3750
3750
|
}
|
3751
|
-
function
|
3751
|
+
function ar(i) {
|
3752
3752
|
switch (this._removePointer(i), this._pointers.length) {
|
3753
3753
|
case 0:
|
3754
3754
|
this.domElement.releasePointerCapture(i.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.dispatchEvent(on), this.state = H.NONE;
|
@@ -3759,7 +3759,7 @@ function rr(i) {
|
|
3759
3759
|
break;
|
3760
3760
|
}
|
3761
3761
|
}
|
3762
|
-
function
|
3762
|
+
function rr(i) {
|
3763
3763
|
let e;
|
3764
3764
|
switch (i.button) {
|
3765
3765
|
case 0:
|
@@ -3775,12 +3775,12 @@ function or(i) {
|
|
3775
3775
|
e = -1;
|
3776
3776
|
}
|
3777
3777
|
switch (e) {
|
3778
|
-
case
|
3778
|
+
case rt.DOLLY:
|
3779
3779
|
if (this.enableZoom === !1)
|
3780
3780
|
return;
|
3781
3781
|
this._handleMouseDownDolly(i), this.state = H.DOLLY;
|
3782
3782
|
break;
|
3783
|
-
case
|
3783
|
+
case rt.ROTATE:
|
3784
3784
|
if (i.ctrlKey || i.metaKey || i.shiftKey) {
|
3785
3785
|
if (this.enablePan === !1)
|
3786
3786
|
return;
|
@@ -3791,7 +3791,7 @@ function or(i) {
|
|
3791
3791
|
this._handleMouseDownRotate(i), this.state = H.ROTATE;
|
3792
3792
|
}
|
3793
3793
|
break;
|
3794
|
-
case
|
3794
|
+
case rt.PAN:
|
3795
3795
|
if (i.ctrlKey || i.metaKey || i.shiftKey) {
|
3796
3796
|
if (this.enableRotate === !1)
|
3797
3797
|
return;
|
@@ -3807,7 +3807,7 @@ function or(i) {
|
|
3807
3807
|
}
|
3808
3808
|
this.state !== H.NONE && this.dispatchEvent(ki);
|
3809
3809
|
}
|
3810
|
-
function
|
3810
|
+
function or(i) {
|
3811
3811
|
switch (this.state) {
|
3812
3812
|
case H.ROTATE:
|
3813
3813
|
if (this.enableRotate === !1)
|
@@ -3826,22 +3826,22 @@ function lr(i) {
|
|
3826
3826
|
break;
|
3827
3827
|
}
|
3828
3828
|
}
|
3829
|
-
function
|
3829
|
+
function lr(i) {
|
3830
3830
|
this.enabled === !1 || this.enableZoom === !1 || this.state !== H.NONE || (i.preventDefault(), this.dispatchEvent(ki), this._handleMouseWheel(this._customWheelEvent(i)), this.dispatchEvent(on));
|
3831
3831
|
}
|
3832
|
-
function
|
3832
|
+
function cr(i) {
|
3833
3833
|
this.enabled === !1 || this.enablePan === !1 || this._handleKeyDown(i);
|
3834
3834
|
}
|
3835
|
-
function
|
3835
|
+
function hr(i) {
|
3836
3836
|
switch (this._trackPointer(i), this._pointers.length) {
|
3837
3837
|
case 1:
|
3838
3838
|
switch (this.touches.ONE) {
|
3839
|
-
case
|
3839
|
+
case at.ROTATE:
|
3840
3840
|
if (this.enableRotate === !1)
|
3841
3841
|
return;
|
3842
3842
|
this._handleTouchStartRotate(i), this.state = H.TOUCH_ROTATE;
|
3843
3843
|
break;
|
3844
|
-
case
|
3844
|
+
case at.PAN:
|
3845
3845
|
if (this.enablePan === !1)
|
3846
3846
|
return;
|
3847
3847
|
this._handleTouchStartPan(i), this.state = H.TOUCH_PAN;
|
@@ -3852,12 +3852,12 @@ function dr(i) {
|
|
3852
3852
|
break;
|
3853
3853
|
case 2:
|
3854
3854
|
switch (this.touches.TWO) {
|
3855
|
-
case
|
3855
|
+
case at.DOLLY_PAN:
|
3856
3856
|
if (this.enableZoom === !1 && this.enablePan === !1)
|
3857
3857
|
return;
|
3858
3858
|
this._handleTouchStartDollyPan(i), this.state = H.TOUCH_DOLLY_PAN;
|
3859
3859
|
break;
|
3860
|
-
case
|
3860
|
+
case at.DOLLY_ROTATE:
|
3861
3861
|
if (this.enableZoom === !1 && this.enableRotate === !1)
|
3862
3862
|
return;
|
3863
3863
|
this._handleTouchStartDollyRotate(i), this.state = H.TOUCH_DOLLY_ROTATE;
|
@@ -3871,7 +3871,7 @@ function dr(i) {
|
|
3871
3871
|
}
|
3872
3872
|
this.state !== H.NONE && this.dispatchEvent(ki);
|
3873
3873
|
}
|
3874
|
-
function
|
3874
|
+
function dr(i) {
|
3875
3875
|
switch (this._trackPointer(i), this.state) {
|
3876
3876
|
case H.TOUCH_ROTATE:
|
3877
3877
|
if (this.enableRotate === !1)
|
@@ -3897,13 +3897,13 @@ function ur(i) {
|
|
3897
3897
|
this.state = H.NONE;
|
3898
3898
|
}
|
3899
3899
|
}
|
3900
|
-
function
|
3900
|
+
function ur(i) {
|
3901
3901
|
this.enabled !== !1 && i.preventDefault();
|
3902
3902
|
}
|
3903
|
-
function
|
3903
|
+
function pr(i) {
|
3904
3904
|
i.key === "Control" && (this._controlActive = !0, this.domElement.getRootNode().addEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
3905
3905
|
}
|
3906
|
-
function
|
3906
|
+
function mr(i) {
|
3907
3907
|
i.key === "Control" && (this._controlActive = !1, this.domElement.getRootNode().removeEventListener("keyup", this._interceptControlUp, { passive: !0, capture: !0 }));
|
3908
3908
|
}
|
3909
3909
|
/*!
|
@@ -3934,7 +3934,7 @@ const W = {
|
|
3934
3934
|
TOUCH_ZOOM_TRUCK: 8192,
|
3935
3935
|
TOUCH_ZOOM_OFFSET: 16384,
|
3936
3936
|
TOUCH_ZOOM_ROTATE: 32768
|
3937
|
-
}),
|
3937
|
+
}), et = {
|
3938
3938
|
NONE: 0,
|
3939
3939
|
IN: 1,
|
3940
3940
|
OUT: -1
|
@@ -3945,7 +3945,7 @@ function Fe(i) {
|
|
3945
3945
|
function Re(i) {
|
3946
3946
|
return i.isOrthographicCamera;
|
3947
3947
|
}
|
3948
|
-
const
|
3948
|
+
const tt = Math.PI * 2, us = Math.PI / 2, ln = 1e-5, gt = Math.PI / 180;
|
3949
3949
|
function ye(i, e, t) {
|
3950
3950
|
return Math.max(e, Math.min(t, i));
|
3951
3951
|
}
|
@@ -3987,8 +3987,8 @@ function ms(i, e, t, s, n = 1 / 0, r, a) {
|
|
3987
3987
|
u = i.x - _, p = i.y - S, m = i.z - T;
|
3988
3988
|
const x = (t.x + o * _) * r, j = (t.y + o * S) * r, X = (t.z + o * T) * r;
|
3989
3989
|
t.x = (t.x - o * x) * l, t.y = (t.y - o * j) * l, t.z = (t.z - o * X) * l, a.x = u + (_ + x) * l, a.y = p + (S + j) * l, a.z = m + (T + X) * l;
|
3990
|
-
const ge = M - i.x, Ae = g - i.y, ht = v - i.z,
|
3991
|
-
return ge *
|
3990
|
+
const ge = M - i.x, Ae = g - i.y, ht = v - i.z, Xe = a.x - M, me = a.y - g, te = a.z - v;
|
3991
|
+
return ge * Xe + Ae * me + ht * te > 0 && (a.x = M, a.y = g, a.z = v, t.x = (a.x - M) / r, t.y = (a.y - g) / r, t.z = (a.z - v) / r), a;
|
3992
3992
|
}
|
3993
3993
|
function pi(i, e) {
|
3994
3994
|
e.set(0, 0), i.forEach((t) => {
|
@@ -3998,7 +3998,7 @@ function pi(i, e) {
|
|
3998
3998
|
function mi(i, e) {
|
3999
3999
|
return Re(i) ? (console.warn(`${e} is not supported in OrthographicCamera`), !0) : !1;
|
4000
4000
|
}
|
4001
|
-
class
|
4001
|
+
class fr {
|
4002
4002
|
constructor() {
|
4003
4003
|
this._listeners = {};
|
4004
4004
|
}
|
@@ -4063,9 +4063,9 @@ class gr {
|
|
4063
4063
|
}
|
4064
4064
|
}
|
4065
4065
|
var fi;
|
4066
|
-
const
|
4067
|
-
let R, fs, Ft, gi, pe, L, N,
|
4068
|
-
class Oe extends
|
4066
|
+
const gr = "2.9.0", Nt = 1 / 8, _r = /Mac/.test((fi = globalThis?.navigator) === null || fi === void 0 ? void 0 : fi.platform);
|
4067
|
+
let R, fs, Ft, gi, pe, L, N, it, yt, Ce, we, ze, gs, _s, ve, bt, st, vs, _i, ys, vi, yi, zt;
|
4068
|
+
class Oe extends fr {
|
4069
4069
|
/**
|
4070
4070
|
* Injects THREE as the dependency. You can then proceed to use CameraControls.
|
4071
4071
|
*
|
@@ -4107,7 +4107,7 @@ class Oe extends gr {
|
|
4107
4107
|
* @category Statics
|
4108
4108
|
*/
|
4109
4109
|
static install(e) {
|
4110
|
-
R = e.THREE, fs = Object.freeze(new R.Vector3(0, 0, 0)), Ft = Object.freeze(new R.Vector3(0, 1, 0)), gi = Object.freeze(new R.Vector3(0, 0, 1)), pe = new R.Vector2(), L = new R.Vector3(), N = new R.Vector3(),
|
4110
|
+
R = e.THREE, fs = Object.freeze(new R.Vector3(0, 0, 0)), Ft = Object.freeze(new R.Vector3(0, 1, 0)), gi = Object.freeze(new R.Vector3(0, 0, 1)), pe = new R.Vector2(), L = new R.Vector3(), N = new R.Vector3(), it = new R.Vector3(), yt = new R.Vector3(), Ce = new R.Vector3(), we = new R.Vector3(), ze = new R.Vector3(), gs = new R.Vector3(), _s = new R.Vector3(), ve = new R.Spherical(), bt = new R.Spherical(), st = new R.Box3(), vs = new R.Box3(), _i = new R.Sphere(), ys = new R.Quaternion(), vi = new R.Quaternion(), yi = new R.Matrix4(), zt = new R.Raycaster();
|
4111
4111
|
}
|
4112
4112
|
/**
|
4113
4113
|
* list all ACTIONs
|
@@ -4135,7 +4135,7 @@ class Oe extends gr {
|
|
4135
4135
|
*/
|
4136
4136
|
constructor(e, t) {
|
4137
4137
|
super(), this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.minDistance = Number.EPSILON, this.maxDistance = 1 / 0, this.infinityDolly = !1, this.minZoom = 0.01, this.maxZoom = 1 / 0, this.smoothTime = 0.25, this.draggingSmoothTime = 0.125, this.maxSpeed = 1 / 0, this.azimuthRotateSpeed = 1, this.polarRotateSpeed = 1, this.dollySpeed = 1, this.dollyDragInverted = !1, this.truckSpeed = 2, this.dollyToCursor = !1, this.dragToOffset = !1, this.verticalDragToForward = !1, this.boundaryFriction = 0, this.restThreshold = 0.01, this.colliderMeshes = [], this.cancel = () => {
|
4138
|
-
}, this._enabled = !0, this._state = f.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection =
|
4138
|
+
}, this._enabled = !0, this._state = f.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = et.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new R.Vector3(), this._focalOffsetVelocity = new R.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (g, v, E) => {
|
4139
4139
|
let b, P;
|
4140
4140
|
if (Fe(this._camera)) {
|
4141
4141
|
const x = L.copy(this._camera.position).sub(this._target), j = this._camera.getEffectiveFOV() * gt, X = x.length() * Math.tan(j * 0.5);
|
@@ -4147,7 +4147,7 @@ class Oe extends gr {
|
|
4147
4147
|
return;
|
4148
4148
|
this.verticalDragToForward ? (E ? this.setFocalOffset(this._focalOffsetEnd.x + b, this._focalOffsetEnd.y, this._focalOffsetEnd.z, !0) : this.truck(b, 0, !0), this.forward(-P, !0)) : E ? this.setFocalOffset(this._focalOffsetEnd.x + b, this._focalOffsetEnd.y + P, this._focalOffsetEnd.z, !0) : this.truck(b, P, !0);
|
4149
4149
|
}, this._rotateInternal = (g, v) => {
|
4150
|
-
const E =
|
4150
|
+
const E = tt * this.azimuthRotateSpeed * g / this._elementRect.height, b = tt * this.polarRotateSpeed * v / this._elementRect.height;
|
4151
4151
|
this.rotate(E, b, !0);
|
4152
4152
|
}, this._dollyInternal = (g, v, E) => {
|
4153
4153
|
const b = Math.pow(0.95, -g * this.dollySpeed), P = this._sphericalEnd.radius, x = this._sphericalEnd.radius * b, j = ye(x, this.minDistance, this.maxDistance), X = j - x;
|
@@ -4250,7 +4250,7 @@ class Oe extends gr {
|
|
4250
4250
|
const x = performance.now();
|
4251
4251
|
l - x < 1e3 && this._getClientRect(this._elementRect), l = x;
|
4252
4252
|
}
|
4253
|
-
const v =
|
4253
|
+
const v = _r ? -1 : -3, E = g.deltaMode === 1 ? g.deltaY / v : g.deltaY / (v * 10), b = this.dollyToCursor ? (g.clientX - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, P = this.dollyToCursor ? (g.clientY - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
|
4254
4254
|
switch (this.mouseButtons.wheel) {
|
4255
4255
|
case f.ROTATE: {
|
4256
4256
|
this._rotateInternal(g.deltaX, g.deltaY), this._isUserControllingRotate = !0;
|
@@ -4584,7 +4584,7 @@ class Oe extends gr {
|
|
4584
4584
|
* @category Methods
|
4585
4585
|
*/
|
4586
4586
|
dollyTo(e, t = !1) {
|
4587
|
-
return this._isUserControllingDolly = !1, this._lastDollyDirection =
|
4587
|
+
return this._isUserControllingDolly = !1, this._lastDollyDirection = et.NONE, this._changedDolly = 0, this._dollyToNoClamp(ye(e, this.minDistance, this.maxDistance), t);
|
4588
4588
|
}
|
4589
4589
|
_dollyToNoClamp(e, t = !1) {
|
4590
4590
|
const s = this._sphericalEnd.radius;
|
@@ -4714,7 +4714,7 @@ class Oe extends gr {
|
|
4714
4714
|
* @category Methods
|
4715
4715
|
*/
|
4716
4716
|
fitToBox(e, t, { cover: s = !1, paddingLeft: n = 0, paddingRight: r = 0, paddingBottom: a = 0, paddingTop: o = 0 } = {}) {
|
4717
|
-
const c = [], l = e.isBox3 ?
|
4717
|
+
const c = [], l = e.isBox3 ? st.copy(e) : st.setFromObject(e);
|
4718
4718
|
l.isEmpty() && (console.warn("camera-controls: fitTo() cannot be used with an empty box. Aborting"), Promise.resolve());
|
4719
4719
|
const u = ps(this._sphericalEnd.theta, us), p = ps(this._sphericalEnd.phi, us);
|
4720
4720
|
c.push(this.rotateTo(u, p, t));
|
@@ -4761,7 +4761,7 @@ class Oe extends gr {
|
|
4761
4761
|
* @category Methods
|
4762
4762
|
*/
|
4763
4763
|
setLookAt(e, t, s, n, r, a, o = !1) {
|
4764
|
-
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection =
|
4764
|
+
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection = et.NONE, this._changedDolly = 0;
|
4765
4765
|
const c = N.set(n, r, a), l = L.set(e, t, s);
|
4766
4766
|
this._targetEnd.copy(c), this._sphericalEnd.setFromVector3(l.sub(c).applyQuaternion(this._yAxisUpSpace)), this.normalizeRotations(), this._needsUpdate = !0, o || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
|
4767
4767
|
const u = !o || z(this._target.x, this._targetEnd.x, this.restThreshold) && z(this._target.y, this._targetEnd.y, this.restThreshold) && z(this._target.z, this._targetEnd.z, this.restThreshold) && z(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && z(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold) && z(this._spherical.radius, this._sphericalEnd.radius, this.restThreshold);
|
@@ -4786,10 +4786,10 @@ class Oe extends gr {
|
|
4786
4786
|
* @category Methods
|
4787
4787
|
*/
|
4788
4788
|
lerpLookAt(e, t, s, n, r, a, o, c, l, u, p, m, _, S = !1) {
|
4789
|
-
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection =
|
4789
|
+
this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._lastDollyDirection = et.NONE, this._changedDolly = 0;
|
4790
4790
|
const T = L.set(n, r, a), M = N.set(e, t, s);
|
4791
4791
|
ve.setFromVector3(M.sub(T).applyQuaternion(this._yAxisUpSpace));
|
4792
|
-
const g =
|
4792
|
+
const g = it.set(u, p, m), v = N.set(o, c, l);
|
4793
4793
|
bt.setFromVector3(v.sub(g).applyQuaternion(this._yAxisUpSpace)), this._targetEnd.copy(T.lerp(g, _));
|
4794
4794
|
const E = bt.theta - ve.theta, b = bt.phi - ve.phi, P = bt.radius - ve.radius;
|
4795
4795
|
this._sphericalEnd.set(ve.radius + P * _, ve.phi + b * _, ve.theta + E * _), this.normalizeRotations(), this._needsUpdate = !0, S || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
|
@@ -4942,7 +4942,7 @@ class Oe extends gr {
|
|
4942
4942
|
* @category Methods
|
4943
4943
|
*/
|
4944
4944
|
normalizeRotations() {
|
4945
|
-
this._sphericalEnd.theta = this._sphericalEnd.theta %
|
4945
|
+
this._sphericalEnd.theta = this._sphericalEnd.theta % tt, this._sphericalEnd.theta < 0 && (this._sphericalEnd.theta += tt), this._spherical.theta += tt * Math.round((this._sphericalEnd.theta - this._spherical.theta) / tt);
|
4946
4946
|
}
|
4947
4947
|
/**
|
4948
4948
|
* stop all transitions.
|
@@ -5043,7 +5043,7 @@ class Oe extends gr {
|
|
5043
5043
|
if (Fe(this._camera) && this._changedDolly !== 0) {
|
5044
5044
|
const p = this._spherical.radius - this._lastDistance, m = this._camera, _ = this._getCameraDirection(yt), S = L.copy(_).cross(m.up).normalize();
|
5045
5045
|
S.lengthSq() === 0 && (S.x = 1);
|
5046
|
-
const T = N.crossVectors(S, _), M = this._sphericalEnd.radius * Math.tan(m.getEffectiveFOV() * gt * 0.5), v = (this._sphericalEnd.radius - p - this._sphericalEnd.radius) / this._sphericalEnd.radius, E =
|
5046
|
+
const T = N.crossVectors(S, _), M = this._sphericalEnd.radius * Math.tan(m.getEffectiveFOV() * gt * 0.5), v = (this._sphericalEnd.radius - p - this._sphericalEnd.radius) / this._sphericalEnd.radius, E = it.copy(this._targetEnd).add(S.multiplyScalar(this._dollyControlCoord.x * M * m.aspect)).add(T.multiplyScalar(this._dollyControlCoord.y * M)), b = L.copy(this._targetEnd).lerp(E, v), P = this._lastDollyDirection === et.IN && this._spherical.radius <= this.minDistance, x = this._lastDollyDirection === et.OUT && this.maxDistance <= this._spherical.radius;
|
5047
5047
|
if (this.infinityDolly && (P || x)) {
|
5048
5048
|
this._sphericalEnd.radius -= p, this._spherical.radius -= p;
|
5049
5049
|
const X = N.copy(_).multiplyScalar(-p);
|
@@ -5053,7 +5053,7 @@ class Oe extends gr {
|
|
5053
5053
|
const j = N.subVectors(b, this._targetEnd);
|
5054
5054
|
this._targetEnd.copy(b), this._target.add(j), this._changedDolly -= p, V(this._changedDolly) && (this._changedDolly = 0);
|
5055
5055
|
} else if (Re(this._camera) && this._changedZoom !== 0) {
|
5056
|
-
const p = this._zoom - this._lastZoom, m = this._camera, _ = L.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (m.near + m.far) / (m.near - m.far)).unproject(m), S = N.set(0, 0, -1).applyQuaternion(m.quaternion), T =
|
5056
|
+
const p = this._zoom - this._lastZoom, m = this._camera, _ = L.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (m.near + m.far) / (m.near - m.far)).unproject(m), S = N.set(0, 0, -1).applyQuaternion(m.quaternion), T = it.copy(_).add(S.multiplyScalar(-_.dot(m.up))), g = -(this._zoom - p - this._zoom) / this._zoom, v = this._getCameraDirection(yt), E = this._targetEnd.dot(v), b = L.copy(this._targetEnd).lerp(T, g), P = b.dot(v), x = v.multiplyScalar(P - E);
|
5057
5057
|
b.sub(x), this._boundary.clampPoint(b, b);
|
5058
5058
|
const j = N.subVectors(b, this._targetEnd);
|
5059
5059
|
this._targetEnd.copy(b), this._target.add(j), this._changedZoom -= p, V(this._changedZoom) && (this._changedZoom = 0);
|
@@ -5115,7 +5115,7 @@ class Oe extends gr {
|
|
5115
5115
|
console.warn("camera-controls is already connected.");
|
5116
5116
|
return;
|
5117
5117
|
}
|
5118
|
-
e.setAttribute("data-camera-controls-version",
|
5118
|
+
e.setAttribute("data-camera-controls-version", gr), this._addAllEventListeners(e), this._getClientRect(this._elementRect);
|
5119
5119
|
}
|
5120
5120
|
/**
|
5121
5121
|
* Detach all internal event handlers to disable drag control.
|
@@ -5151,7 +5151,7 @@ class Oe extends gr {
|
|
5151
5151
|
const n = t.lengthSq();
|
5152
5152
|
if (n === 0)
|
5153
5153
|
return e;
|
5154
|
-
const r = N.copy(t).add(e), o = this._boundary.clampPoint(r,
|
5154
|
+
const r = N.copy(t).add(e), o = this._boundary.clampPoint(r, it).sub(r), c = o.lengthSq();
|
5155
5155
|
if (c === 0)
|
5156
5156
|
return e.add(t);
|
5157
5157
|
if (c === n)
|
@@ -5182,7 +5182,7 @@ class Oe extends gr {
|
|
5182
5182
|
for (let n = 0; n < 4; n++) {
|
5183
5183
|
const r = N.copy(this._nearPlaneCorners[n]);
|
5184
5184
|
r.applyMatrix4(yi);
|
5185
|
-
const a =
|
5185
|
+
const a = it.addVectors(this._target, r);
|
5186
5186
|
zt.set(a, s), zt.far = this._spherical.radius + 1;
|
5187
5187
|
const o = zt.intersectObjects(this.colliderMeshes);
|
5188
5188
|
o.length !== 0 && o[0].distance < e && (e = o[0].distance);
|
@@ -5245,9 +5245,9 @@ class Oe extends gr {
|
|
5245
5245
|
}
|
5246
5246
|
static createBoundingSphere(e, t = new R.Sphere()) {
|
5247
5247
|
const s = t, n = s.center;
|
5248
|
-
|
5249
|
-
a.isMesh &&
|
5250
|
-
}),
|
5248
|
+
st.makeEmpty(), e.traverseVisible((a) => {
|
5249
|
+
a.isMesh && st.expandByObject(a);
|
5250
|
+
}), st.getCenter(n);
|
5251
5251
|
let r = 0;
|
5252
5252
|
return e.traverseVisible((a) => {
|
5253
5253
|
if (!a.isMesh)
|
@@ -5319,7 +5319,7 @@ const qt = (i) => {
|
|
5319
5319
|
] })
|
5320
5320
|
] });
|
5321
5321
|
});
|
5322
|
-
class
|
5322
|
+
class vr extends Qs {
|
5323
5323
|
constructor(e) {
|
5324
5324
|
super({
|
5325
5325
|
extensions: {
|
@@ -5432,10 +5432,10 @@ class yr extends Qs {
|
|
5432
5432
|
});
|
5433
5433
|
}
|
5434
5434
|
}
|
5435
|
-
class
|
5435
|
+
class yr extends w {
|
5436
5436
|
gridMaterial;
|
5437
5437
|
constructor() {
|
5438
|
-
const e = new
|
5438
|
+
const e = new vr();
|
5439
5439
|
super(new $s(2, 2), e), this.gridMaterial = e, this.frustumCulled = !1, this.name = "InfiniteGridHelper", this.position.y = 0.1;
|
5440
5440
|
}
|
5441
5441
|
update() {
|
@@ -5461,7 +5461,7 @@ function bs(i) {
|
|
5461
5461
|
i.name
|
5462
5462
|
);
|
5463
5463
|
}
|
5464
|
-
const
|
5464
|
+
const br = `#include <common>
|
5465
5465
|
#include <batching_pars_vertex>
|
5466
5466
|
#include <uv_pars_vertex>
|
5467
5467
|
#include <color_pars_vertex>
|
@@ -5491,7 +5491,7 @@ void main() {
|
|
5491
5491
|
#include <logdepthbuf_vertex>
|
5492
5492
|
#include <clipping_planes_vertex>
|
5493
5493
|
#include <worldpos_vertex>
|
5494
|
-
}`,
|
5494
|
+
}`, Er = `
|
5495
5495
|
#include <common>
|
5496
5496
|
#include <uv_pars_fragment>
|
5497
5497
|
#include <clipping_planes_pars_fragment>
|
@@ -5500,14 +5500,14 @@ void main() {
|
|
5500
5500
|
#include <clipping_planes_fragment>
|
5501
5501
|
gl_FragColor = vec4(vec3(vUv, 0.0), 1.0);
|
5502
5502
|
}`;
|
5503
|
-
class
|
5503
|
+
class Cr extends Qs {
|
5504
5504
|
constructor() {
|
5505
5505
|
super({
|
5506
5506
|
defines: {
|
5507
5507
|
USE_UV: ""
|
5508
5508
|
},
|
5509
|
-
vertexShader:
|
5510
|
-
fragmentShader:
|
5509
|
+
vertexShader: br,
|
5510
|
+
fragmentShader: Er
|
5511
5511
|
});
|
5512
5512
|
}
|
5513
5513
|
}
|
@@ -5516,14 +5516,14 @@ const Ye = new Xt(), re = new O(), De = new O(), G = new fe(), Es = {
|
|
5516
5516
|
Y: new O(0, 1, 0),
|
5517
5517
|
Z: new O(0, 0, 1)
|
5518
5518
|
}, bi = { type: "change" }, Cs = { type: "mouseDown", mode: null }, ws = { type: "mouseUp", mode: null }, Ss = { type: "objectChange" };
|
5519
|
-
class
|
5519
|
+
class wr extends Xs {
|
5520
5520
|
constructor(e, t = null) {
|
5521
5521
|
super(void 0, t);
|
5522
|
-
const s = new
|
5522
|
+
const s = new Pr(this);
|
5523
5523
|
this._root = s;
|
5524
|
-
const n = new
|
5524
|
+
const n = new Ar();
|
5525
5525
|
this._gizmo = n, s.add(n);
|
5526
|
-
const r = new
|
5526
|
+
const r = new Dr();
|
5527
5527
|
this._plane = r, s.add(r);
|
5528
5528
|
const a = this;
|
5529
5529
|
function o(E, b) {
|
@@ -5539,7 +5539,7 @@ class Sr extends Xs {
|
|
5539
5539
|
}
|
5540
5540
|
o("camera", e), o("object", void 0), o("enabled", !0), o("axis", null), o("mode", "translate"), o("translationSnap", null), o("rotationSnap", null), o("scaleSnap", null), o("space", "world"), o("size", 1), o("dragging", !1), o("showX", !0), o("showY", !0), o("showZ", !0);
|
5541
5541
|
const c = new O(), l = new O(), u = new fe(), p = new fe(), m = new O(), _ = new fe(), S = new O(), T = new O(), M = new O(), g = 0, v = new O();
|
5542
|
-
o("worldPosition", c), o("worldPositionStart", l), o("worldQuaternion", u), o("worldQuaternionStart", p), o("cameraPosition", m), o("cameraQuaternion", _), o("pointStart", S), o("pointEnd", T), o("rotationAxis", M), o("rotationAngle", g), o("eye", v), this._offset = new O(), this._startNorm = new O(), this._endNorm = new O(), this._cameraScale = new O(), this._parentPosition = new O(), this._parentQuaternion = new fe(), this._parentQuaternionInv = new fe(), this._parentScale = new O(), this._worldScaleStart = new O(), this._worldQuaternionInv = new fe(), this._worldScale = new O(), this._positionStart = new O(), this._quaternionStart = new fe(), this._scaleStart = new O(), this._getPointer =
|
5542
|
+
o("worldPosition", c), o("worldPositionStart", l), o("worldQuaternion", u), o("worldQuaternionStart", p), o("cameraPosition", m), o("cameraQuaternion", _), o("pointStart", S), o("pointEnd", T), o("rotationAxis", M), o("rotationAngle", g), o("eye", v), this._offset = new O(), this._startNorm = new O(), this._endNorm = new O(), this._cameraScale = new O(), this._parentPosition = new O(), this._parentQuaternion = new fe(), this._parentQuaternionInv = new fe(), this._parentScale = new O(), this._worldScaleStart = new O(), this._worldQuaternionInv = new fe(), this._worldScale = new O(), this._positionStart = new O(), this._quaternionStart = new fe(), this._scaleStart = new O(), this._getPointer = Sr.bind(this), this._onPointerDown = Or.bind(this), this._onPointerHover = xr.bind(this), this._onPointerMove = Tr.bind(this), this._onPointerUp = Mr.bind(this), t !== null && this.connect();
|
5543
5543
|
}
|
5544
5544
|
connect() {
|
5545
5545
|
this.domElement.addEventListener("pointerdown", this._onPointerDown), this.domElement.addEventListener("pointermove", this._onPointerHover), this.domElement.addEventListener("pointerup", this._onPointerUp), this.domElement.style.touchAction = "none";
|
@@ -5635,7 +5635,7 @@ class Sr extends Xs {
|
|
5635
5635
|
this.space = e;
|
5636
5636
|
}
|
5637
5637
|
}
|
5638
|
-
function
|
5638
|
+
function Sr(i) {
|
5639
5639
|
if (this.domElement.ownerDocument.pointerLockElement)
|
5640
5640
|
return {
|
5641
5641
|
x: 0,
|
@@ -5651,7 +5651,7 @@ function xr(i) {
|
|
5651
5651
|
};
|
5652
5652
|
}
|
5653
5653
|
}
|
5654
|
-
function
|
5654
|
+
function xr(i) {
|
5655
5655
|
if (this.enabled)
|
5656
5656
|
switch (i.pointerType) {
|
5657
5657
|
case "mouse":
|
@@ -5660,13 +5660,13 @@ function Or(i) {
|
|
5660
5660
|
break;
|
5661
5661
|
}
|
5662
5662
|
}
|
5663
|
-
function
|
5663
|
+
function Or(i) {
|
5664
5664
|
this.enabled && (document.pointerLockElement || this.domElement.setPointerCapture(i.pointerId), this.domElement.addEventListener("pointermove", this._onPointerMove), this.pointerHover(this._getPointer(i)), this.pointerDown(this._getPointer(i)));
|
5665
5665
|
}
|
5666
|
-
function
|
5666
|
+
function Tr(i) {
|
5667
5667
|
this.enabled && this.pointerMove(this._getPointer(i));
|
5668
5668
|
}
|
5669
|
-
function
|
5669
|
+
function Mr(i) {
|
5670
5670
|
this.enabled && (this.domElement.releasePointerCapture(i.pointerId), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.pointerUp(this._getPointer(i)));
|
5671
5671
|
}
|
5672
5672
|
function Ei(i, e, t) {
|
@@ -5677,7 +5677,7 @@ function Ei(i, e, t) {
|
|
5677
5677
|
return !1;
|
5678
5678
|
}
|
5679
5679
|
const Ht = new qs(), B = new O(0, 1, 0), xs = new O(0, 0, 0), Os = new Kt(), Yt = new fe(), Wt = new fe(), Se = new O(), Ts = new Kt(), St = new O(1, 0, 0), Ve = new O(0, 1, 0), xt = new O(0, 0, 1), Bt = new O(), Et = new O(), Ct = new O();
|
5680
|
-
class
|
5680
|
+
class Pr extends lt {
|
5681
5681
|
constructor(e) {
|
5682
5682
|
super(), this.isTransformControlsRoot = !0, this.controls = e, this.visible = !1;
|
5683
5683
|
}
|
@@ -5687,7 +5687,7 @@ class Ar extends ct {
|
|
5687
5687
|
t.object !== void 0 && (t.object.updateMatrixWorld(), t.object.parent === null ? console.error("TransformControls: The attached 3D object must be a part of the scene graph.") : t.object.parent.matrixWorld.decompose(t._parentPosition, t._parentQuaternion, t._parentScale), t.object.matrixWorld.decompose(t.worldPosition, t.worldQuaternion, t._worldScale), t._parentQuaternionInv.copy(t._parentQuaternion).invert(), t._worldQuaternionInv.copy(t.worldQuaternion).invert()), t.camera.updateMatrixWorld(), t.camera.matrixWorld.decompose(t.cameraPosition, t.cameraQuaternion, t._cameraScale), t.camera.isOrthographicCamera ? t.camera.getWorldDirection(t.eye).negate() : t.eye.copy(t.cameraPosition).sub(t.worldPosition).normalize(), super.updateMatrixWorld(e);
|
5688
5688
|
}
|
5689
5689
|
}
|
5690
|
-
class
|
5690
|
+
class Ar extends lt {
|
5691
5691
|
constructor() {
|
5692
5692
|
super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
|
5693
5693
|
const e = new We({
|
@@ -5728,7 +5728,7 @@ class Dr extends ct {
|
|
5728
5728
|
T.translate(0, 0.05, 0);
|
5729
5729
|
const M = new ae(0.08, 0.08, 0.08);
|
5730
5730
|
M.translate(0, 0.04, 0);
|
5731
|
-
const g = new
|
5731
|
+
const g = new ot();
|
5732
5732
|
g.setAttribute("position", new Ze([0, 0, 0, 1, 0, 0], 3));
|
5733
5733
|
const v = new de(75e-4, 75e-4, 0.5, 3);
|
5734
5734
|
v.translate(0, 0.25, 0);
|
@@ -5737,7 +5737,7 @@ class Dr extends ct {
|
|
5737
5737
|
return he.rotateY(Math.PI / 2), he.rotateX(Math.PI / 2), he;
|
5738
5738
|
}
|
5739
5739
|
function b() {
|
5740
|
-
const Q = new
|
5740
|
+
const Q = new ot();
|
5741
5741
|
return Q.setAttribute("position", new Ze([0, 0, 0, 1, 1, 1], 3)), Q;
|
5742
5742
|
}
|
5743
5743
|
const P = {
|
@@ -5876,7 +5876,7 @@ class Dr extends ct {
|
|
5876
5876
|
XYZ: [
|
5877
5877
|
[new w(new ae(0.1, 0.1, 0.1), p.clone())]
|
5878
5878
|
]
|
5879
|
-
},
|
5879
|
+
}, Xe = {
|
5880
5880
|
X: [
|
5881
5881
|
[new w(new de(0.2, 0, 0.6, 4), s), [0.3, 0, 0], [0, 0, -Math.PI / 2]],
|
5882
5882
|
[new w(new de(0.2, 0, 0.6, 4), s), [-0.3, 0, 0], [0, 0, Math.PI / 2]]
|
@@ -5913,7 +5913,7 @@ class Dr extends ct {
|
|
5913
5913
|
]
|
5914
5914
|
};
|
5915
5915
|
function te(Q) {
|
5916
|
-
const ke = new
|
5916
|
+
const ke = new lt();
|
5917
5917
|
for (const he in Q)
|
5918
5918
|
for (let Te = Q[he].length; Te--; ) {
|
5919
5919
|
const se = Q[he][Te][0].clone(), Ue = Q[he][Te][1], je = Q[he][Te][2], Ne = Q[he][Te][3], Mt = Q[he][Te][4];
|
@@ -5923,7 +5923,7 @@ class Dr extends ct {
|
|
5923
5923
|
}
|
5924
5924
|
return ke;
|
5925
5925
|
}
|
5926
|
-
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = te(P)), this.add(this.gizmo.rotate = te(X)), this.add(this.gizmo.scale = te(ht)), this.add(this.picker.translate = te(x)), this.add(this.picker.rotate = te(Ae)), this.add(this.picker.scale = te(
|
5926
|
+
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = te(P)), this.add(this.gizmo.rotate = te(X)), this.add(this.gizmo.scale = te(ht)), this.add(this.picker.translate = te(x)), this.add(this.picker.rotate = te(Ae)), this.add(this.picker.scale = te(Xe)), this.add(this.helper.translate = te(j)), this.add(this.helper.rotate = te(ge)), this.add(this.helper.scale = te(me)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
|
5927
5927
|
}
|
5928
5928
|
// updateMatrixWorld will update transformations and appearance of individual handles
|
5929
5929
|
updateMatrixWorld(e) {
|
@@ -5946,7 +5946,7 @@ class Dr extends ct {
|
|
5946
5946
|
super.updateMatrixWorld(e);
|
5947
5947
|
}
|
5948
5948
|
}
|
5949
|
-
class
|
5949
|
+
class Dr extends w {
|
5950
5950
|
constructor() {
|
5951
5951
|
super(
|
5952
5952
|
new $s(1e5, 1e5, 2, 2),
|
@@ -6013,7 +6013,7 @@ class ce extends Rs {
|
|
6013
6013
|
let t = this.controls.get(e);
|
6014
6014
|
if (t === void 0) {
|
6015
6015
|
const s = document.querySelector(".clickable");
|
6016
|
-
t = new
|
6016
|
+
t = new wr(this.activeCamera, s), t.getHelper().name = e, t.setSpace("local"), this.controls.set(e, t), this.visibility.set(e, !0), t.addEventListener("mouseDown", () => {
|
6017
6017
|
this.dispatchEvent({ type: ce.DRAG_START });
|
6018
6018
|
}), t.addEventListener("mouseUp", () => {
|
6019
6019
|
this.dispatchEvent({ type: ce.DRAG_END });
|
@@ -6059,8 +6059,8 @@ class ce extends Rs {
|
|
6059
6059
|
return ce._instance || (ce._instance = new ce()), ce._instance;
|
6060
6060
|
}
|
6061
6061
|
}
|
6062
|
-
const
|
6063
|
-
class Ms extends
|
6062
|
+
const Rr = new ae(), Ci = new oe();
|
6063
|
+
class Ms extends lt {
|
6064
6064
|
curve = new Ki();
|
6065
6065
|
line;
|
6066
6066
|
draggable;
|
@@ -6081,8 +6081,8 @@ class Ms extends ct {
|
|
6081
6081
|
parentGroup;
|
6082
6082
|
group;
|
6083
6083
|
constructor(e, t) {
|
6084
|
-
const s = new Tt(
|
6085
|
-
super(), this.name = e, this.lineMaterial = new Ii({ color: s }), this.line = new xe(new
|
6084
|
+
const s = new Tt(Je(0.5, 1, Math.random()), Je(0.5, 1, Math.random()), Je(0.5, 1, Math.random()));
|
6085
|
+
super(), this.name = e, this.lineMaterial = new Ii({ color: s }), this.line = new xe(new ot(), this.lineMaterial), this.line.name = "line", this.add(this.line), this._camera = t, this.curveType = "catmullrom", this.draggedMat.color = s, this.draggable = new lt(), this.draggable.name = "draggablePoints", this.add(this.draggable), this.curvePos = new w(new Ks(1.5), new We({ color: s })), this.curvePos.name = "curvePos", this.curvePos.scale.setScalar(this._draggableScale), this.curvePos.visible = !1, this.add(this.curvePos), this.raycaster = new Xt(), this.raycaster.params.Line.threshold = 3, this.enable();
|
6086
6086
|
}
|
6087
6087
|
enable() {
|
6088
6088
|
document.addEventListener("pointerdown", this.onMouseClick);
|
@@ -6123,14 +6123,14 @@ class Ms extends ct {
|
|
6123
6123
|
this.addPoint(new O(-50, 0, 0), !1), this.addPoint(new O(50, 0, 0));
|
6124
6124
|
};
|
6125
6125
|
addPoint = (e, t = !0) => {
|
6126
|
-
const s = this.draggable.children.length, n = new w(
|
6126
|
+
const s = this.draggable.children.length, n = new w(Rr, this.draggedMat);
|
6127
6127
|
return n.name = `point_${s}`, n.position.copy(e), n.scale.setScalar(this._draggableScale), this.draggable.add(n), t && this.updateSpline(), n;
|
6128
6128
|
};
|
6129
6129
|
addNextPt = () => {
|
6130
6130
|
const e = this.draggable.children.length, t = new O(
|
6131
|
-
|
6132
|
-
|
6133
|
-
|
6131
|
+
Je(-this.offset, this.offset, Math.random()),
|
6132
|
+
Je(-this.offset, this.offset, Math.random()),
|
6133
|
+
Je(-this.offset, this.offset, Math.random())
|
6134
6134
|
);
|
6135
6135
|
e > 0 && t.add(this.draggable.children[e - 1].position);
|
6136
6136
|
const s = this.addPoint(t);
|
@@ -6393,7 +6393,7 @@ class Ms extends ct {
|
|
6393
6393
|
};
|
6394
6394
|
}
|
6395
6395
|
let Vt = 0;
|
6396
|
-
class
|
6396
|
+
class Ir extends lt {
|
6397
6397
|
defaultScale = 10;
|
6398
6398
|
_camera;
|
6399
6399
|
group = null;
|
@@ -6494,7 +6494,7 @@ const Ps = [
|
|
6494
6494
|
"Side by Side",
|
6495
6495
|
"Stacked",
|
6496
6496
|
"Quad"
|
6497
|
-
],
|
6497
|
+
], Lr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAC60lEQVRYhe2YT4hNcRTHP48xpmYaNAvRyEQxEhnKQljYsRm9/EmSyJiMFAsMZWNhJYoNIUVJ2VGiyb9ZzIpMpkQSahbGv9GMYWrM+1rc2zjvzvvdd+99rzdvMd+6de75nd+5387vnN/v/G5KEuWMKRNNIB8mCRaKiiL5qQb2ApuBuUAV0Ad0AJeB3sSeJRX6LJbULTf6JTUn9Z+KWMUpPyp/Avoa4CNQZ3Sj/lNpdL/xottR7AjOkHRUUpekN5I6JbVLavDH75lIfZN0UFKTpCWS0pJem/HeJBEMG6yV1ONYtgFJbZJ+GF1jDh+zJb03NuliEuwMkMo4yErS2RA/LcbuYVyCrm1mA7Dal/8Cu4FG4JD/HsTTkCy6a+SVMTPQuc1sBKb78nHghi+/A+YBxwL2lbhRY+ThuARdEVxu5JdGFvACr0otdoZ8Y4+Rn0Sn5sFFsMvI6YB9MzA1YJ8mN8k1wAHzfj4uQVdyrpI0aJL7oqTtkq4FiqPLyCOSbktqlbRL0jlJQ2b8QdwCUZ4qvhRStZL0XFK1pMd57CRvq5mfhKBriRfiFUMY6oD7eOdwPlQAN4G10dfWg+uouwXsiOssAj4AC+JMcEWwvnAuOTEr7gTXPmg34zagOwkbIIOXAo9CbDYBrcBXYN+4UUdy2sRflyS5zVNlfPX7ugpJW5V9nI7mmh+lYU0lCZ2B3TOnAVuAk0BTwC5nuhWro46KauBOQJch5OpRaoIW34GreGf+YZdRqS9NAj4Bp4ClQDvwOWxCqSM4ADQEdKE5XvbXzlITrAVe4TW+M6NMKDXBFLAMuAD0ACfIc7pMZBXXA2cY3/xmodQRHAL2A2+NLtj8ZiEKwUL/z2WMPAJcAVYALWSf8dZuDFGWeBHwKxm3sWYhiGG8Tfo6sA2vSfiSy4GrH3wGrDcfKSSKKf6v1E9yF0XK9Q1XBPuMXMw8HXTonQFwETwNzMFr64v1jzgFHIk9ybHEZYPJo65QlD3Bf2/Q/eaHPiSWAAAAAElFTkSuQmCC", kr = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAETklEQVRYhe2YXYhVVRTHf3d0/JhyUrMpFbImM+whSa3Mynww+4AeIgiKoozooQ+KyMyXIAujF6OXqHyI6iEKKYgIP/owsjSFqCkprdDUTEcjbWZ0HHV+Pex1ucfb9Z57Z9REXHA4Z++99l7/s/ZZ/7X2KaiczNLwfwPIk9MA+yunNMAG4DHgV+BvoB3YFff2TPstYEyfrajVroI6Sr1GvahsbJC63HzZq04pmztSvU5tVRuqYRiYg78JeBR4HPg5ntdmxovz9wJfA3uAxuibDLQCA+IqynnAQuBuYCnwMLC1rx48U12U8cZqdWqMDcx4cI16qTpYbVKHqa+ovWUeHKsujn7VL9ULq2HI+wY7gVeBJdGeFu3J4ZUiy/cAXeHRRuAQsC/GC0B3eG4BcH/0tUV7czUAeVsMsBF4Kha9HZgCvAncAuwPnXHA0wFuGLANuDrGuoGDwFxgTqzzQ7RX5FrP2eLsdb76vnogtme6+nE8H1YPlQXHwbi3q9eqn0e7Tb25VrsF68vFY0lb1AGcDTwItGQ8tQM4AIwGmqP/EPAu8A0wElgJfFGzxTo8mKWXu9Rd4ZF96jvqjSbauEC9Sn1O3R463epLaku99voCsFXdkAH3kNpcQW+IiT/bQne3eufxBtioPqP2mKhioXpWzpxb1T8C5Ifh4ZptVoriRmAIKdrI3Lujf3bobAPeJpF0NVkKrAFuI9HTOBIxnxFrF4OgQKKr/dnJlQA+AcwABgOHA4zAamA5cE7orQL+zAEHiWI+A2bFC7aSguheYCgpqAphZz3wSB7AecCICv2TgH8oFRib4gVqka0k0h8CXAxMBW6ooDejFoCvA9OBQUAvKWM0kDz4XUZvNKXtyZMWUl7vBbaQXq457PeEziDgx/KJlQAuIPFdMcEXv5OdYWBP9M8k8VpnDQCvB4aTSrCNJB5cSdrW3tBpIJVnR0qdUTxAfdGUOVTnmwqEanNmqltC/9OgqePKg5eom8PgdvW+oJ9Kupera0O3U50TL3lcAaI+oHaF4R3qa6Z822wq0Saq89T1lmSxOrxeW/Xm4uGkiqQDmECKuKHxHW0HdpMiewSpvGqKeR8Ay0iBsYIjg6261PE2o9Q3Yqv+MqWxO9R1Hl12qs+q49Vlppy82pSr+5xJKsko4AXgHlJ0t5NIeg3wLXAlqZhtIUV8J6nmWwX8QiLjdhL5TwMWkY4R6/rrwYKlMr1Y321QZ/vfwBijPqm+rF4Wc7PjE9QllurGVeoV5gRNHsAm9fnMom3qrKPoTjKdMXaYyrFygEWQ72XWW24qhPu8xcUc2UU6O8wFPjmK7jhgPHAuMJGUGQ6U6WwE5sfzTXGvei7KA9hFOiR9D/wOfFVFt4dS2tpfRe83Ur7/CPiJakfOGgBCypubatArl2r8VfOax/LfzABKtePAzHO/5FgC7KBEzB2kOrDfUm8mOeFySv9+OyFyGmB/5aQH+C9BVKmVCNuMZgAAAABJRU5ErkJggg==";
|
6498
6498
|
class Pe extends Jt {
|
6499
6499
|
static instance = null;
|
6500
6500
|
scene = new Ds();
|
@@ -6508,7 +6508,7 @@ class Pe extends Jt {
|
|
6508
6508
|
cameraHelpers = /* @__PURE__ */ new Map();
|
6509
6509
|
lightHelpers = /* @__PURE__ */ new Map();
|
6510
6510
|
helpersContainer = new Kn();
|
6511
|
-
grid = new
|
6511
|
+
grid = new yr();
|
6512
6512
|
axisHelper = new Ji(500);
|
6513
6513
|
interactionHelper = new Ji(100);
|
6514
6514
|
currentTransform;
|
@@ -6517,7 +6517,7 @@ class Pe extends Jt {
|
|
6517
6517
|
// Override Materials
|
6518
6518
|
depthMaterial = new Jn();
|
6519
6519
|
normalsMaterial = new ea();
|
6520
|
-
uvMaterial = new
|
6520
|
+
uvMaterial = new Cr();
|
6521
6521
|
wireframeMaterial = new We({
|
6522
6522
|
opacity: 0.33,
|
6523
6523
|
transparent: !0,
|
@@ -6767,7 +6767,7 @@ class Pe extends Jt {
|
|
6767
6767
|
bs,
|
6768
6768
|
{
|
6769
6769
|
name: "cameraHelper",
|
6770
|
-
icon:
|
6770
|
+
icon: Lr,
|
6771
6771
|
selected: this.cameraVisibility,
|
6772
6772
|
height: 24,
|
6773
6773
|
top: 2,
|
@@ -6782,7 +6782,7 @@ class Pe extends Jt {
|
|
6782
6782
|
bs,
|
6783
6783
|
{
|
6784
6784
|
name: "lightHelper",
|
6785
|
-
icon:
|
6785
|
+
icon: kr,
|
6786
6786
|
selected: this.lightVisibility,
|
6787
6787
|
height: 24,
|
6788
6788
|
top: 4,
|
@@ -6814,7 +6814,7 @@ class Pe extends Jt {
|
|
6814
6814
|
this.tlCam = this.cameras.get(t.getItem(`${s}_tlCam`)), this.trCam = this.cameras.get(t.getItem(`${s}_trCam`)), this.blCam = this.cameras.get(t.getItem(`${s}_blCam`)), this.brCam = this.cameras.get(t.getItem(`${s}_brCam`)), this.tlCam === void 0 && (this.tlCam = this.cameras.get("Debug")), this.trCam === void 0 && (this.trCam = this.cameras.get("Orthographic")), this.blCam === void 0 && (this.blCam = this.cameras.get("Front")), this.brCam === void 0 && (this.brCam = this.cameras.get("Top"));
|
6815
6815
|
}
|
6816
6816
|
setupTools() {
|
6817
|
-
this.splineEditor = new
|
6817
|
+
this.splineEditor = new Ir(this.currentCamera), this.splineEditor.initDebug(), this.scene.add(this.splineEditor);
|
6818
6818
|
}
|
6819
6819
|
// Public
|
6820
6820
|
play() {
|
@@ -6909,11 +6909,11 @@ class Pe extends Jt {
|
|
6909
6909
|
const t = new oe();
|
6910
6910
|
this.renderer.getSize(t);
|
6911
6911
|
const s = Math.min(e.clientX, t.x), n = Math.min(e.clientY, t.y);
|
6912
|
-
this.pointer.x =
|
6912
|
+
this.pointer.x = Ke(s, 0, t.x, -1, 1), this.pointer.y = Ke(n, 0, t.y, 1, -1);
|
6913
6913
|
const r = t.x / 2, a = t.y / 2, o = () => {
|
6914
|
-
s < r ? this.pointer.x =
|
6914
|
+
s < r ? this.pointer.x = Ke(s, 0, r, -1, 1) : this.pointer.x = Ke(s, r, t.x, -1, 1);
|
6915
6915
|
}, c = () => {
|
6916
|
-
n < a ? this.pointer.y =
|
6916
|
+
n < a ? this.pointer.y = Ke(n, 0, a, 1, -1) : this.pointer.y = Ke(n, a, t.y, 1, -1);
|
6917
6917
|
};
|
6918
6918
|
switch (this.state.mode) {
|
6919
6919
|
case "Quad":
|
@@ -6993,7 +6993,7 @@ class Pe extends Jt {
|
|
6993
6993
|
t = new ra(e, 250), t.name = `${e.name}Helper`, t.visible = this.lightVisibility, this.lightHelpers.set(e.name, t), this.helpersContainer.add(t);
|
6994
6994
|
break;
|
6995
6995
|
case "RectAreaLight":
|
6996
|
-
t = new
|
6996
|
+
t = new er(e), t.name = `${e.name}Helper`, t.visible = this.lightVisibility, this.lightHelpers.set(e.name, t), this.helpersContainer.add(t);
|
6997
6997
|
break;
|
6998
6998
|
case "PointLight":
|
6999
6999
|
t = new aa(e, 100), t.name = `${e.name}Helper`, t.visible = this.lightVisibility, this.lightHelpers.set(e.name, t), this.helpersContainer.add(t);
|
@@ -7009,7 +7009,7 @@ class Pe extends Jt {
|
|
7009
7009
|
const s = this.controls.get(e.name);
|
7010
7010
|
if (s !== void 0 && s.dispose(), this.controls.delete(e.name), e.name === "UI")
|
7011
7011
|
return;
|
7012
|
-
const n = new
|
7012
|
+
const n = new ir(e, t);
|
7013
7013
|
switch (n.enableDamping = !0, n.dampingFactor = 0.05, e.name) {
|
7014
7014
|
case "Top":
|
7015
7015
|
case "Bottom":
|
@@ -7244,7 +7244,7 @@ function As(i) {
|
|
7244
7244
|
}
|
7245
7245
|
return i;
|
7246
7246
|
}
|
7247
|
-
function
|
7247
|
+
function Ur(i, e) {
|
7248
7248
|
function t() {
|
7249
7249
|
return `${e.app.appID}_light`;
|
7250
7250
|
}
|
@@ -7298,7 +7298,7 @@ function jr(i, e) {
|
|
7298
7298
|
}
|
7299
7299
|
);
|
7300
7300
|
}
|
7301
|
-
function
|
7301
|
+
function jr(i, e) {
|
7302
7302
|
function t() {
|
7303
7303
|
return `${e.app.appID}_animation`;
|
7304
7304
|
}
|
@@ -7398,9 +7398,9 @@ const Di = {
|
|
7398
7398
|
children: []
|
7399
7399
|
};
|
7400
7400
|
let ne = { ...Di };
|
7401
|
-
function
|
7401
|
+
function Nr(i) {
|
7402
7402
|
const [e, t] = Z(-1);
|
7403
|
-
|
7403
|
+
ct(() => {
|
7404
7404
|
function a(c) {
|
7405
7405
|
ne = { ...c.value }, t(Date.now());
|
7406
7406
|
}
|
@@ -7454,17 +7454,17 @@ function Fr(i) {
|
|
7454
7454
|
] }),
|
7455
7455
|
/* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
7456
7456
|
/* @__PURE__ */ d.jsx(ti, { object: ne, three: i.three }),
|
7457
|
-
n ?
|
7458
|
-
s.search("camera") > -1 ?
|
7459
|
-
s.search("light") > -1 ?
|
7460
|
-
r ?
|
7457
|
+
n ? jr(ne, i.three) : null,
|
7458
|
+
s.search("camera") > -1 ? Ja(ne, i.three) : null,
|
7459
|
+
s.search("light") > -1 ? Ur(ne, i.three) : null,
|
7460
|
+
r ? $a(ne, i.three) : null
|
7461
7461
|
] })
|
7462
7462
|
] }) }, e)
|
7463
7463
|
},
|
7464
7464
|
"Inspector"
|
7465
7465
|
);
|
7466
7466
|
}
|
7467
|
-
function
|
7467
|
+
function Fr(i) {
|
7468
7468
|
const [e] = Z([]), [t] = Z([]), [s, n] = Z(0), r = (c) => {
|
7469
7469
|
const l = c.value;
|
7470
7470
|
e.push(l), t.push(
|
@@ -7509,16 +7509,16 @@ function zr(i) {
|
|
7509
7509
|
return;
|
7510
7510
|
}
|
7511
7511
|
};
|
7512
|
-
return
|
7512
|
+
return ct(() => (D.addEventListener(A.ADD_SCENE, r), D.addEventListener(A.REFRESH_SCENE, a), D.addEventListener(A.REMOVE_SCENE, o), () => {
|
7513
7513
|
D.removeEventListener(A.ADD_SCENE, r), D.removeEventListener(A.REFRESH_SCENE, a), D.removeEventListener(A.REMOVE_SCENE, o);
|
7514
7514
|
}), []), /* @__PURE__ */ d.jsxs("div", { id: "SidePanel", children: [
|
7515
7515
|
/* @__PURE__ */ d.jsx("div", { className: "scenes", children: t }, s),
|
7516
|
-
/* @__PURE__ */ d.jsx(
|
7516
|
+
/* @__PURE__ */ d.jsx(Nr, { three: i.three }),
|
7517
7517
|
/* @__PURE__ */ d.jsx(q, { three: i.three })
|
7518
7518
|
] });
|
7519
7519
|
}
|
7520
7520
|
function eo(i) {
|
7521
|
-
return
|
7521
|
+
return ct(() => {
|
7522
7522
|
function e(o) {
|
7523
7523
|
let c = null;
|
7524
7524
|
return i.three.scenes.forEach((l) => {
|
@@ -7566,7 +7566,7 @@ function eo(i) {
|
|
7566
7566
|
const { key: c, uuid: l, value: u, subitem: p } = o.value, _ = e(l)?.getObjectByProperty("uuid", l);
|
7567
7567
|
if (_ !== void 0)
|
7568
7568
|
try {
|
7569
|
-
p !== void 0 ?
|
7569
|
+
p !== void 0 ? ba(_, p)[c](u) : _[c](u);
|
7570
7570
|
} catch (S) {
|
7571
7571
|
console.log("Error requesting method:"), console.log(S), console.log(c), console.log(u);
|
7572
7572
|
}
|
@@ -7576,7 +7576,7 @@ function eo(i) {
|
|
7576
7576
|
};
|
7577
7577
|
}, []), null;
|
7578
7578
|
}
|
7579
|
-
function
|
7579
|
+
function zr(i) {
|
7580
7580
|
return /* @__PURE__ */ d.jsxs("div", { className: "editor", ref: i.ref, style: i.style, children: [
|
7581
7581
|
/* @__PURE__ */ d.jsx("div", { className: "header", children: i.header }),
|
7582
7582
|
i.children,
|
@@ -7584,9 +7584,7 @@ function Hr(i) {
|
|
7584
7584
|
] });
|
7585
7585
|
}
|
7586
7586
|
function to(i) {
|
7587
|
-
return
|
7588
|
-
_a();
|
7589
|
-
}, []), /* @__PURE__ */ d.jsx(Hr, { children: /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
7587
|
+
return /* @__PURE__ */ d.jsx(zr, { children: /* @__PURE__ */ d.jsxs(d.Fragment, { children: [
|
7590
7588
|
/* @__PURE__ */ d.jsx(
|
7591
7589
|
Pe,
|
7592
7590
|
{
|
@@ -7597,32 +7595,32 @@ function to(i) {
|
|
7597
7595
|
onSceneUpdate: i.onSceneUpdate
|
7598
7596
|
}
|
7599
7597
|
),
|
7600
|
-
/* @__PURE__ */ d.jsx(
|
7598
|
+
/* @__PURE__ */ d.jsx(Fr, { three: i.three })
|
7601
7599
|
] }) });
|
7602
7600
|
}
|
7603
7601
|
export {
|
7604
7602
|
$t as Accordion,
|
7605
|
-
|
7603
|
+
Wr as Application,
|
7606
7604
|
Li as BaseRemote,
|
7607
7605
|
an as ChildObject,
|
7608
7606
|
as as ContainerObject,
|
7609
|
-
|
7610
|
-
|
7611
|
-
|
7612
|
-
|
7613
|
-
|
7607
|
+
Ta as Draggable,
|
7608
|
+
Oa as DraggableItem,
|
7609
|
+
Ma as Dropdown,
|
7610
|
+
Pa as DropdownItem,
|
7611
|
+
zr as Editor,
|
7614
7612
|
Zt as ExportTexture,
|
7615
|
-
|
7613
|
+
Nr as Inspector,
|
7616
7614
|
Pe as MultiView,
|
7617
7615
|
nn as NavButton,
|
7618
|
-
|
7616
|
+
Xr as RemoteComponents,
|
7619
7617
|
Jr as RemoteController,
|
7620
7618
|
qr as RemoteTheatre,
|
7621
7619
|
Kr as RemoteThree,
|
7622
7620
|
eo as SceneInspector,
|
7623
|
-
|
7621
|
+
Fr as SidePanel,
|
7624
7622
|
Ms as Spline,
|
7625
|
-
|
7623
|
+
Ir as SplineEditor,
|
7626
7624
|
to as ThreeEditor,
|
7627
7625
|
A as ToolEvents,
|
7628
7626
|
ce as Transform,
|
@@ -7630,13 +7628,13 @@ export {
|
|
7630
7628
|
Be as clamp,
|
7631
7629
|
ts as colorToHex,
|
7632
7630
|
pa as copyToClipboard,
|
7633
|
-
|
7631
|
+
$r as customizeTheatreElements,
|
7634
7632
|
D as debugDispatcher,
|
7635
|
-
|
7633
|
+
Vr as defaultTheatreCallback,
|
7636
7634
|
Le as dispose,
|
7637
7635
|
ga as disposeMaterial,
|
7638
|
-
|
7639
|
-
|
7636
|
+
Gr as disposeTexture,
|
7637
|
+
Zr as distance,
|
7640
7638
|
Ti as hierarchyUUID,
|
7641
7639
|
fa as isColor,
|
7642
7640
|
xi as mix,
|
@@ -7645,6 +7643,6 @@ export {
|
|
7645
7643
|
ma as randomID,
|
7646
7644
|
is as resetThreeObjects,
|
7647
7645
|
be as round,
|
7648
|
-
|
7646
|
+
Qr as theatreEditorApp,
|
7649
7647
|
Oi as totalThreeObjects
|
7650
7648
|
};
|