@needle-tools/engine 4.17.0-alpha.3 → 4.17.0-alpha.4
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/{needle-engine.bundle-O6HHU-ll.js → needle-engine.bundle-BymlzaH_.js} +690 -690
- package/dist/{needle-engine.bundle-glRd_Shc.umd.cjs → needle-engine.bundle-CK9xKTOH.umd.cjs} +4 -4
- package/dist/{needle-engine.bundle-DrZh9f2V.min.js → needle-engine.bundle-D-7jnOxH.min.js} +92 -92
- package/dist/needle-engine.js +2 -2
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/lib/engine/engine_pmrem.js +4 -1
- package/lib/engine/engine_pmrem.js.map +1 -1
- package/lib/engine/engine_three_utils.js.map +1 -1
- package/package.json +1 -1
- package/plugins/vite/dependencies.js +61 -11
- package/src/engine/engine_pmrem.ts +4 -1
- package/src/engine/engine_three_utils.ts +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createLoaders as Jm, getRaycastMesh as gv, LODsManager as er, NEEDLE_progressive as Ve, addDracoAndKTX2Loaders as
|
|
2
|
-
import { Vector2 as Z, Vector3 as _, Vector4 as ge, Quaternion as V, PlaneGeometry as Pn, WebGLRenderer as Ur, PerspectiveCamera as de, OrthographicCamera as pu, Scene as Qi, Mesh as H, Texture as xe, Uniform$1 as qi, Color as re, ShaderMaterial as Xn, Box3 as Ut, ShadowMaterial as yv, Euler as ht, MeshStandardMaterial as mt, Box3Helper as
|
|
3
|
-
import { GroundedSkybox as Va, Font as OC, TextGeometry as MC, FontLoader as EC, GLTFLoader as Bs, TransformControlsGizmo as
|
|
4
|
-
import { fetchProfile as GC, MotionController as qC, $70d766613f57b014$export$2e2bcd8739ae039 as Xy, ByteBuffer as XC, v5 as Qy, md5 as Yy, SIZE_PREFIX_LENGTH as
|
|
5
|
-
import { __webpack_exports__default as Pe, __webpack_exports__Text as
|
|
1
|
+
import { createLoaders as Jm, getRaycastMesh as gv, LODsManager as er, NEEDLE_progressive as Ve, addDracoAndKTX2Loaders as cS, configureLoader as hS, setKTX2TranscoderLocation as dS, setDracoDecoderLocation as uS } from "./gltf-progressive-BJ9OrddA.js";
|
|
2
|
+
import { Vector2 as Z, Vector3 as _, Vector4 as ge, Quaternion as V, PlaneGeometry as Pn, WebGLRenderer as Ur, PerspectiveCamera as de, OrthographicCamera as pu, Scene as Qi, Mesh as H, Texture as xe, Uniform$1 as qi, Color as re, ShaderMaterial as Xn, Box3 as Ut, ShadowMaterial as yv, Euler as ht, MeshStandardMaterial as mt, Box3Helper as fS, GridHelper as _v, Object3D as M, Material as be, Matrix3 as bv, Matrix4 as ee, Layers as ko, Ray as Is, MathUtils as ks, AxesHelper as Oi, MeshBasicMaterial as Se, DoubleSide as Ei, BufferGeometry as bn, Group as Os, CylinderGeometry as vv, SphereGeometry as mu, BoxGeometry as Ua, SpriteMaterial as pS, Sprite as mS, Shape as gS, ExtrudeGeometry as yS, Fog as wv, DirectionalLight as Vp, PointLight as eg, TextureLoader as Er, EdgesGeometry as _S, LineSegments as xv, LineBasicMaterial as tg, Line as Na, BufferAttribute as gt, Raycaster as gu, Sphere as yu, ArrayCamera as bS, Plane as Rr, SkinnedMesh as vo, InterleavedBufferAttribute as Sv, Skeleton as vS, Bone as wS, WebGLCubeRenderTarget as xS, CubeCamera as SS, AnimationClip as Mi, FileLoader as ig, PropertyBinding as $a, KeyframeTrack as CS, CubeUVReflectionMapping as Ls, LinearSRGBColorSpace as Ds, ShaderChunk as ei, DataTexture as ng, RGBAFormat as _u, EquirectangularReflectionMapping as Ms, SRGBColorSpace as js, Clock as PS, NeutralToneMapping as Wa, AgXToneMapping as bu, ACESFilmicToneMapping as vu, NoToneMapping as Ad, PCFSoftShadowMap$1 as kS, BasicNodeLibrary as OS, WebGLRenderTarget as Qn, DepthTexture as Cv, NearestFilter as Id, LoopRepeat as MS, LoopOnce as Hp, AnimationMixer as sg, CompressedTexture as ES, FrontSide as Oo, Camera as RS, Frustum as $y, AudioListener as TS, PositionalAudio as AS, AudioLoader as Gp, EventDispatcher as og, BackSide as wu, MeshDepthMaterial as IS, CustomBlending as LS, MaxEquation as DS, AlwaysStencilFunc as jS, GreaterEqualStencilFunc as BS, NotEqualStencilFunc as FS, GreaterStencilFunc as zS, LessEqualStencilFunc as US, EqualStencilFunc as NS, LessStencilFunc as $S, NeverStencilFunc as Wy, InvertStencilOp as WS, DecrementWrapStencilOp as VS, IncrementWrapStencilOp as HS, DecrementStencilOp as GS, IncrementStencilOp as qS, ReplaceStencilOp as XS, ZeroStencilOp as QS, KeepStencilOp as YS, EquirectangularRefractionMapping as Pv, CubeTexture as kv, AmbientLight as KS, HemisphereLight as ZS, Loader as JS, RawShaderMaterial as Ov, GLSL3 as eC, AlwaysDepth as tC, GreaterEqualDepth as iC, GreaterDepth as nC, LessEqualDepth as sC, LessDepth as oC, NotEqualDepth as rC, EqualDepth as aC, BatchedMesh as Vy, LinearFilter as Ld, UnsignedByteType as lC, MeshPhysicalMaterial as Hy, RingGeometry as cC, Line3 as hC, AdditiveBlending as Mv, BoxHelper as dC, SpotLight as uC, DirectionalLightHelper as fC, CameraHelper as pC, LOD as mC, Triangle as gC, NormalBlending as yC, ReinhardToneMapping as rg, LinearToneMapping as ag, HalfFloatType as Tf, VideoTexture as _C, CompressedCubeTexture as bC, CatmullRomCurve3 as vC, VectorKeyframeTrack as wC, QuaternionKeyframeTrack as xC, Audio as SC, ShaderLib as Dd, UniformsUtils as Ev, MirroredRepeatWrapping as Gy, MeshNormalMaterial as CC, AudioContext as PC, PMREMGenerator$1 as kC } from "./three.js";
|
|
3
|
+
import { GroundedSkybox as Va, Font as OC, TextGeometry as MC, FontLoader as EC, GLTFLoader as Bs, TransformControlsGizmo as Rv, EXRLoader as lg, RGBELoader as Tv, Stats as RC, nodeFrame as qy, OrbitControls as TC, PositionalAudioHelper as AC, HorizontalBlurShader as IC, VerticalBlurShader as LC, GLTFExporter as Av, strToU8 as Iv, zipSync as DC, XRControllerModelFactory as jC, XRHandMeshModel as BC, Line2 as FC, LineGeometry as zC, LineMaterial as UC, TransformControls as NC, InteractiveGroup as $C, HTMLMesh as WC, VertexNormalsHelper as VC, OBJLoader as cg, FBXLoader as Lv, mergeVertices as HC } from "./three-examples.js";
|
|
4
|
+
import { fetchProfile as GC, MotionController as qC, $70d766613f57b014$export$2e2bcd8739ae039 as Xy, ByteBuffer as XC, v5 as Qy, md5 as Yy, SIZE_PREFIX_LENGTH as Dv, Builder as hg, createNoise4D as QC, Matrix4 as Af, BatchedParticleRenderer as YC, ParticleSystem as KC, RenderMode as ms, ConstantColor as ZC, Vector4 as JC, ConstantValue as e1, TrailParticle as Ky, WorkerBase as t1, MeshBVH as i1 } from "./vendor-CQMI3jTS.js";
|
|
5
|
+
import { __webpack_exports__default as Pe, __webpack_exports__Text as jv, __webpack_exports__Block as Bv, __webpack_exports__update as n1, SimpleStateBehavior as s1, __webpack_exports__Inline as If, __webpack_exports__FontLibrary as Zy, ThreeMeshUI as Jy } from "./three-mesh-ui-B-lqrZWj.js";
|
|
6
6
|
import { EffectAttribute as o1 } from "./postprocessing-BUS23YkY.js";
|
|
7
7
|
const Lf = /* @__PURE__ */ new Map();
|
|
8
8
|
function Yi(s = globalThis.location?.hostname) {
|
|
@@ -143,7 +143,7 @@ function c2(s, e) {
|
|
|
143
143
|
}
|
|
144
144
|
function jd(s, e, t = !0) {
|
|
145
145
|
const i = xu();
|
|
146
|
-
i.has(s) ? e === null ? i.delete(s) : i.set(s, e) : e !== null && i.append(s, e), t ? l1(s, i) :
|
|
146
|
+
i.has(s) ? e === null ? i.delete(s) : i.set(s, e) : e !== null && i.append(s, e), t ? l1(s, i) : Fv(s, i);
|
|
147
147
|
}
|
|
148
148
|
function t_(s, e, t) {
|
|
149
149
|
s.has(e) ? s.set(e, t.toString()) : s.append(e, t.toString());
|
|
@@ -151,7 +151,7 @@ function t_(s, e, t) {
|
|
|
151
151
|
function l1(s, e, t) {
|
|
152
152
|
window.history.pushState(t, s, "?" + e.toString());
|
|
153
153
|
}
|
|
154
|
-
function
|
|
154
|
+
function Fv(s, e, t) {
|
|
155
155
|
window.history.replaceState(t, s, "?" + e.toString());
|
|
156
156
|
}
|
|
157
157
|
function h2(s) {
|
|
@@ -337,7 +337,7 @@ function dg(s, e) {
|
|
|
337
337
|
return !1;
|
|
338
338
|
return s[ua].subscribeWrite(e), !0;
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function zv(s, e) {
|
|
341
341
|
if (!s) return;
|
|
342
342
|
const t = s[ua];
|
|
343
343
|
t && t.unsubscribeWrite(e);
|
|
@@ -484,7 +484,7 @@ async function S2() {
|
|
|
484
484
|
return D.microphonePermissionsGranted();
|
|
485
485
|
}
|
|
486
486
|
const go = /* @__PURE__ */ new WeakMap();
|
|
487
|
-
function
|
|
487
|
+
function Uv(s, e, t) {
|
|
488
488
|
if (!go.get(s)) {
|
|
489
489
|
const n = new MutationObserver((o) => {
|
|
490
490
|
p1(s, o);
|
|
@@ -496,10 +496,10 @@ function zv(s, e, t) {
|
|
|
496
496
|
}
|
|
497
497
|
const i = go.get(s).attributeChangedListeners;
|
|
498
498
|
return i.has(e) || i.set(e, []), i.get(e).push(t), () => {
|
|
499
|
-
|
|
499
|
+
Nv(s, e, t);
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Nv(s, e, t) {
|
|
503
503
|
if (!go.get(s)) return;
|
|
504
504
|
const i = go.get(s).attributeChangedListeners;
|
|
505
505
|
if (!i.has(e)) return;
|
|
@@ -522,7 +522,7 @@ class s_ {
|
|
|
522
522
|
this.reason = e;
|
|
523
523
|
}
|
|
524
524
|
}
|
|
525
|
-
async function
|
|
525
|
+
async function $v(s) {
|
|
526
526
|
const e = await Promise.allSettled(s).catch((n) => [
|
|
527
527
|
new s_(n.message)
|
|
528
528
|
]);
|
|
@@ -538,8 +538,8 @@ let ug = !1;
|
|
|
538
538
|
(x("noerrors") || x("nooverlaymessages")) && (ug = !0);
|
|
539
539
|
const Df = "needle_engine_global_error_container";
|
|
540
540
|
var Xi = /* @__PURE__ */ ((s) => (s[s.Log = 0] = "Log", s[s.Warn = 1] = "Warn", s[s.Error = 2] = "Error", s))(Xi || {});
|
|
541
|
-
function
|
|
542
|
-
return
|
|
541
|
+
function Wv() {
|
|
542
|
+
return Hv;
|
|
543
543
|
}
|
|
544
544
|
const Xp = new Array();
|
|
545
545
|
function g1(s) {
|
|
@@ -558,18 +558,18 @@ function y1(...s) {
|
|
|
558
558
|
jf = !1;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
const
|
|
562
|
-
|
|
561
|
+
const Vv = console.error, _1 = function(...s) {
|
|
562
|
+
Vv.apply(console, s), w1(s), yr(2, s, {}), v1(...s);
|
|
563
563
|
};
|
|
564
564
|
function b1(s) {
|
|
565
|
-
ug = !s, s ? console.error = _1 : console.error =
|
|
565
|
+
ug = !s, s ? console.error = _1 : console.error = Vv;
|
|
566
566
|
}
|
|
567
567
|
function C2(s) {
|
|
568
568
|
return b1(s);
|
|
569
569
|
}
|
|
570
|
-
let
|
|
570
|
+
let Hv = 0;
|
|
571
571
|
function v1(...s) {
|
|
572
|
-
|
|
572
|
+
Hv += 1, y1(...s);
|
|
573
573
|
}
|
|
574
574
|
function w1(s) {
|
|
575
575
|
if (Array.isArray(s))
|
|
@@ -705,10 +705,10 @@ function C1(s) {
|
|
|
705
705
|
return n.innerHTML = S1, t.appendChild(n), t;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
const
|
|
708
|
+
const Gv = /* @__PURE__ */ Symbol("logtype"), Bd = /* @__PURE__ */ new Map();
|
|
709
709
|
function a_(s) {
|
|
710
710
|
s.remove();
|
|
711
|
-
const e = s[
|
|
711
|
+
const e = s[Gv], t = Bd.get(e) ?? [];
|
|
712
712
|
t.push(s), Bd.set(e, t);
|
|
713
713
|
}
|
|
714
714
|
function P1(s, e) {
|
|
@@ -720,7 +720,7 @@ function P1(s, e) {
|
|
|
720
720
|
}
|
|
721
721
|
}
|
|
722
722
|
const t = document.createElement("div");
|
|
723
|
-
switch (t.setAttribute("data-id", "__needle_engine_debug_overlay"), t.style.marginRight = "5px", t.style.padding = ".5em", t.style.backgroundColor = "rgba(0,0,0,.9)", t.style.marginTop = "5px", t.style.marginBottom = "3px", t.style.borderRadius = "8px", t.style.pointerEvents = "all", t.style.userSelect = "text", t.style.maxWidth = "250px", t.style.whiteSpace = "pre-wrap", t.style["backdrop-filter"] = "blur(10px)", t.style["-webkit-backdrop-filter"] = "blur(10px)", t.style.backgroundColor = "rgba(20,20,20,.8)", t.style.boxShadow = "inset 0 0 80px rgba(0,0,0,.2), 0 0 5px rgba(0,0,0,.2)", t.style.border = "1px solid rgba(160,160,160,.2)", t[
|
|
723
|
+
switch (t.setAttribute("data-id", "__needle_engine_debug_overlay"), t.style.marginRight = "5px", t.style.padding = ".5em", t.style.backgroundColor = "rgba(0,0,0,.9)", t.style.marginTop = "5px", t.style.marginBottom = "3px", t.style.borderRadius = "8px", t.style.pointerEvents = "all", t.style.userSelect = "text", t.style.maxWidth = "250px", t.style.whiteSpace = "pre-wrap", t.style["backdrop-filter"] = "blur(10px)", t.style["-webkit-backdrop-filter"] = "blur(10px)", t.style.backgroundColor = "rgba(20,20,20,.8)", t.style.boxShadow = "inset 0 0 80px rgba(0,0,0,.2), 0 0 5px rgba(0,0,0,.2)", t.style.border = "1px solid rgba(160,160,160,.2)", t[Gv] = s, s) {
|
|
724
724
|
case 0:
|
|
725
725
|
t.classList.add("log"), t.style.color = "rgba(200,200,200,.7)", t.style.backgroundColor = "rgba(40,40,40,.7)";
|
|
726
726
|
break;
|
|
@@ -936,7 +936,7 @@ class Bf {
|
|
|
936
936
|
e != null && this.x.reset(e), this.x.alpha = this.alpha(this.minCutOff), this.dx.alpha = this.alpha(this.dCutOff), this.lasttime = null;
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
|
-
class
|
|
939
|
+
class qv {
|
|
940
940
|
x;
|
|
941
941
|
y;
|
|
942
942
|
z;
|
|
@@ -990,9 +990,9 @@ function k2(s, e, t) {
|
|
|
990
990
|
const i = s.length(), n = e.length(), o = F.lerp(i, n, t);
|
|
991
991
|
return s.lerp(e, t).normalize().multiplyScalar(o);
|
|
992
992
|
}
|
|
993
|
-
const Ff = new V(),
|
|
993
|
+
const Ff = new V(), Xv = new V().setFromAxisAngle(new _(0, 1, 0), Math.PI);
|
|
994
994
|
function O2(s, e) {
|
|
995
|
-
s.lookAt(e), s.quaternion.multiply(
|
|
995
|
+
s.lookAt(e), s.quaternion.multiply(Xv);
|
|
996
996
|
}
|
|
997
997
|
function Pu(s, e, t = !0, i = !1) {
|
|
998
998
|
if (s === e) return;
|
|
@@ -1001,7 +1001,7 @@ function Pu(s, e, t = !0, i = !1) {
|
|
|
1001
1001
|
if (i) {
|
|
1002
1002
|
if (Yn(s, ve(e)), t) {
|
|
1003
1003
|
const r = o.y, a = o.sub(N1(s));
|
|
1004
|
-
a.y = r, s.lookAt(a), s.quaternion.multiply(
|
|
1004
|
+
a.y = r, s.lookAt(a), s.quaternion.multiply(Xv);
|
|
1005
1005
|
}
|
|
1006
1006
|
Number.isNaN(s.quaternion.x) && s.quaternion.copy(Ff);
|
|
1007
1007
|
return;
|
|
@@ -1066,7 +1066,7 @@ function Yn(s, e) {
|
|
|
1066
1066
|
const n = zf.multiply(t);
|
|
1067
1067
|
s.quaternion.set(n.x, n.y, n.z, n.w);
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function Qv(s, e, t, i, n) {
|
|
1070
1070
|
wr.set(e, t, i, n), Yn(s, wr);
|
|
1071
1071
|
}
|
|
1072
1072
|
const B1 = new Ki(() => new _(), 100), F1 = new _();
|
|
@@ -1091,16 +1091,16 @@ function N1(s, e) {
|
|
|
1091
1091
|
return e || (e = U1.get().set(0, 0, 1)), ve(s, u_), e.applyQuaternion(u_);
|
|
1092
1092
|
}
|
|
1093
1093
|
const f_ = new ht(), p_ = new ht(), $1 = new _();
|
|
1094
|
-
function
|
|
1094
|
+
function Yv(s) {
|
|
1095
1095
|
const e = Fd.get();
|
|
1096
1096
|
return s.getWorldQuaternion(e), p_.setFromQuaternion(e), p_;
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Kv(s, e) {
|
|
1099
1099
|
const t = Fd.get();
|
|
1100
1100
|
Yn(s, t.setFromEuler(e));
|
|
1101
1101
|
}
|
|
1102
1102
|
function pg(s) {
|
|
1103
|
-
const e =
|
|
1103
|
+
const e = Yv(s), t = $1;
|
|
1104
1104
|
return t.set(e.x, e.y, e.z), t.x = F.toDegrees(t.x), t.y = F.toDegrees(t.y), t.z = F.toDegrees(t.z), t;
|
|
1105
1105
|
}
|
|
1106
1106
|
function W1(s, e) {
|
|
@@ -1249,7 +1249,7 @@ function q1(s) {
|
|
|
1249
1249
|
const e = s.type;
|
|
1250
1250
|
return e === "Mesh" || e === "SkinnedMesh";
|
|
1251
1251
|
}
|
|
1252
|
-
function
|
|
1252
|
+
function Zv(s, e) {
|
|
1253
1253
|
e ? s["needle:rendercustomshadow"] = !0 : s["needle:rendercustomshadow"] = !1;
|
|
1254
1254
|
}
|
|
1255
1255
|
function X1(s) {
|
|
@@ -1268,7 +1268,7 @@ function Ri(s, e = void 0, t = void 0, i = void 0) {
|
|
|
1268
1268
|
function r(l) {
|
|
1269
1269
|
let c = !0;
|
|
1270
1270
|
if (l.visible && E1(l) !== !1 && !(l.type === "TransformControlsGizmo" || l.type === "TransformControlsPlane")) {
|
|
1271
|
-
if (l instanceof
|
|
1271
|
+
if (l instanceof fS && (c = !1), l instanceof _v && (c = !1), l instanceof Va && (c = !1), l.isGizmo === !0 && (c = !1), l.material instanceof yv && (c = !1), q1(l) || (c = !1), t && l.layers.test(t) === !1 && (c = !1), c) {
|
|
1272
1272
|
if (e && Array.isArray(e) && e?.includes(l)) return;
|
|
1273
1273
|
if (typeof e == "function" && e(l) === !0)
|
|
1274
1274
|
return;
|
|
@@ -1329,11 +1329,11 @@ function Y1(s, e) {
|
|
|
1329
1329
|
bounds: t
|
|
1330
1330
|
};
|
|
1331
1331
|
}
|
|
1332
|
-
function
|
|
1332
|
+
function Jv(s, e, t, i) {
|
|
1333
1333
|
if (Array.isArray(e)) {
|
|
1334
1334
|
let r = !0;
|
|
1335
1335
|
for (let a = 0; a < e.length; a++)
|
|
1336
|
-
|
|
1336
|
+
Jv(s, e[a], a, e) || (r = !1);
|
|
1337
1337
|
return r;
|
|
1338
1338
|
}
|
|
1339
1339
|
if (e.type === "MeshStandardMaterial" || e.type === "MeshBasicMaterial")
|
|
@@ -1347,7 +1347,7 @@ function Zv(s, e, t, i) {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
let Mh = !1;
|
|
1349
1349
|
g1((...s) => {
|
|
1350
|
-
L() && pe.Current?.isInXR && (uc(!0),
|
|
1350
|
+
L() && pe.Current?.isInXR && (uc(!0), e0("error", ...s));
|
|
1351
1351
|
});
|
|
1352
1352
|
function uc(s) {
|
|
1353
1353
|
if (s) {
|
|
@@ -1380,7 +1380,7 @@ class K1 {
|
|
|
1380
1380
|
targetObject = new M();
|
|
1381
1381
|
/** this is a point in forward view of the user */
|
|
1382
1382
|
userForwardViewPoint = new _();
|
|
1383
|
-
oneEuroFilter = new
|
|
1383
|
+
oneEuroFilter = new qv(90, 0.8);
|
|
1384
1384
|
_lastElementRemoveTime = 0;
|
|
1385
1385
|
onBeforeRender = () => {
|
|
1386
1386
|
const e = this.context?.mainCamera;
|
|
@@ -1499,7 +1499,7 @@ function Z1() {
|
|
|
1499
1499
|
console[s] = function() {
|
|
1500
1500
|
if (fc[s]?.apply(console, arguments), !e)
|
|
1501
1501
|
try {
|
|
1502
|
-
e = !0,
|
|
1502
|
+
e = !0, e0(s, ...arguments);
|
|
1503
1503
|
} finally {
|
|
1504
1504
|
e = !1;
|
|
1505
1505
|
}
|
|
@@ -1512,7 +1512,7 @@ function J1() {
|
|
|
1512
1512
|
console[s] = fc[s];
|
|
1513
1513
|
}
|
|
1514
1514
|
const Il = /* @__PURE__ */ new Map();
|
|
1515
|
-
function
|
|
1515
|
+
function e0(s, ...e) {
|
|
1516
1516
|
try {
|
|
1517
1517
|
switch (Il.clear(), s) {
|
|
1518
1518
|
case "log":
|
|
@@ -1622,10 +1622,10 @@ function A2(s) {
|
|
|
1622
1622
|
Zp = s;
|
|
1623
1623
|
}
|
|
1624
1624
|
let ci, tr = null, Vn = null, Ll = !1, m_ = null;
|
|
1625
|
-
const
|
|
1626
|
-
tP &&
|
|
1625
|
+
const t0 = "terminal", tP = x("console");
|
|
1626
|
+
tP && i0();
|
|
1627
1627
|
const iP = /* @__PURE__ */ Symbol("consoleParent");
|
|
1628
|
-
function
|
|
1628
|
+
function i0() {
|
|
1629
1629
|
if (ci) {
|
|
1630
1630
|
ci.showSwitch();
|
|
1631
1631
|
return;
|
|
@@ -1640,14 +1640,14 @@ function sP() {
|
|
|
1640
1640
|
}
|
|
1641
1641
|
let g_ = 0;
|
|
1642
1642
|
function oP() {
|
|
1643
|
-
const s =
|
|
1643
|
+
const s = Wv(), e = s !== g_;
|
|
1644
1644
|
g_ = s, e && rP();
|
|
1645
1645
|
}
|
|
1646
1646
|
function rP() {
|
|
1647
|
-
|
|
1647
|
+
i0(), Vn && (Vn.setAttribute("error", "true"), Vn.innerText = "🤬");
|
|
1648
1648
|
}
|
|
1649
1649
|
function aP() {
|
|
1650
|
-
Vn && (Vn.removeAttribute("error"), Vn.innerText =
|
|
1650
|
+
Vn && (Vn.removeAttribute("error"), Vn.innerText = t0);
|
|
1651
1651
|
}
|
|
1652
1652
|
function lP(s = !1) {
|
|
1653
1653
|
if (ci !== void 0 || Ll) return;
|
|
@@ -1664,7 +1664,7 @@ function lP(s = !1) {
|
|
|
1664
1664
|
});
|
|
1665
1665
|
const t = globalThis["needle:codegen_files"];
|
|
1666
1666
|
if (t && t.length > 0 && ci.addPlugin(cP()), ci.addPlugin(fP()), ci.addPlugin(pP()), tr = PP(), tr && (tr[iP] = tr.parentElement, tr.style.position = "absolute", tr.style.zIndex = Number.MAX_SAFE_INTEGER.toString()), ci.setSwitchPosition(20, 30), Vn = CP(), Vn) {
|
|
1667
|
-
Vn.innerText =
|
|
1667
|
+
Vn.innerText = t0, Vn.addEventListener("click", aP);
|
|
1668
1668
|
const i = document.createElement("style"), n = 40;
|
|
1669
1669
|
i.innerHTML = `
|
|
1670
1670
|
#__vconsole .vc-switch {
|
|
@@ -1725,7 +1725,7 @@ function lP(s = !1) {
|
|
|
1725
1725
|
#__vconsole .vc-mask {
|
|
1726
1726
|
overflow: hidden;
|
|
1727
1727
|
}
|
|
1728
|
-
`, tr?.prepend(i), s === !0 &&
|
|
1728
|
+
`, tr?.prepend(i), s === !0 && Wv() <= 0 && nP(), console.log("🌵 Debug console has loaded");
|
|
1729
1729
|
}
|
|
1730
1730
|
}, e.onerror = () => {
|
|
1731
1731
|
console.warn("🌵 Debug console failed to load." + (window.crossOriginIsolated ? "This page is using cross-origin isolation, so external scripts can't be loaded." : "")), Ll = !1, ci = null;
|
|
@@ -1772,7 +1772,7 @@ function cP() {
|
|
|
1772
1772
|
}), t(i);
|
|
1773
1773
|
}), s;
|
|
1774
1774
|
}
|
|
1775
|
-
const Jp = "padding: 10px; font-family: monospace;", y_ = "margin-bottom: 10px;", ir = "margin-bottom: 10px; margin-top: 15px;", hP = "width: 100%; border-collapse: collapse; border: 1px solid rgba(0,0,0,0.1); table-layout: fixed;",
|
|
1775
|
+
const Jp = "padding: 10px; font-family: monospace;", y_ = "margin-bottom: 10px;", ir = "margin-bottom: 10px; margin-top: 15px;", hP = "width: 100%; border-collapse: collapse; border: 1px solid rgba(0,0,0,0.1); table-layout: fixed;", n0 = "border: 1px solid rgba(0,0,0,0.1); padding: 5px;", dP = n0, uP = n0 + " word-break: break-all;";
|
|
1776
1776
|
function Fn(s, e = !1) {
|
|
1777
1777
|
e && s.sort((i, n) => (n.value ? 1 : 0) - (i.value ? 1 : 0));
|
|
1778
1778
|
let t = `<table style='${hP}'>`;
|
|
@@ -1783,7 +1783,7 @@ function Fn(s, e = !1) {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
return t += "</tbody></table>", t;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function s0() {
|
|
1787
1787
|
try {
|
|
1788
1788
|
if (document.createElement("canvas").getContext("webgl2"))
|
|
1789
1789
|
return "✅";
|
|
@@ -1825,7 +1825,7 @@ function fP() {
|
|
|
1825
1825
|
{ label: "User Agent Data", value: navigator.userAgentData ? `Platform: ${navigator.userAgentData.platform}, Mobile: ${navigator.userAgentData.mobile}` : "Not supported" },
|
|
1826
1826
|
{ label: "WebXR", value: "xr" in navigator ? "✅" : "❌" },
|
|
1827
1827
|
{ label: "WebGPU", value: "gpu" in navigator ? "✅" : "❌" },
|
|
1828
|
-
{ label: "WebGL 2", value:
|
|
1828
|
+
{ label: "WebGL 2", value: s0() }
|
|
1829
1829
|
];
|
|
1830
1830
|
t += Fn(l, !1), t += "</div>", e(t);
|
|
1831
1831
|
}), s;
|
|
@@ -1858,7 +1858,7 @@ function mP() {
|
|
|
1858
1858
|
s.push({ label: "Device Pixel Ratio", value: e.toString() }), s.push({ label: "Width (px)", value: (window.innerWidth * e).toString() }), s.push({ label: "Height (px)", value: (window.innerHeight * e).toString() });
|
|
1859
1859
|
const i = D.isMobileDevice() ? 150 : 96, n = screen.width / i, o = screen.height / i, r = n * 2.54, a = o * 2.54;
|
|
1860
1860
|
s.push({ label: "Estimated Width (cm)", value: r.toFixed(1) }), s.push({ label: "Estimated Height (cm)", value: a.toFixed(1) });
|
|
1861
|
-
const l =
|
|
1861
|
+
const l = o0();
|
|
1862
1862
|
if (l) {
|
|
1863
1863
|
s.push({ label: "GPU", value: l.renderer }), s.push({ label: "Driver", value: l.vendor }), s.push({ label: "ANGLE", value: l.angle || "Not detected" });
|
|
1864
1864
|
const c = gP(l.renderer);
|
|
@@ -1884,8 +1884,8 @@ function gP(s) {
|
|
|
1884
1884
|
};
|
|
1885
1885
|
}
|
|
1886
1886
|
function yP() {
|
|
1887
|
-
const s = [], e =
|
|
1888
|
-
return e && (s.push({ label: "📊 WebGL Version", value: e.version }), s.push({ label: "🎮 WebGL 2 Available", value:
|
|
1887
|
+
const s = [], e = o0();
|
|
1888
|
+
return e && (s.push({ label: "📊 WebGL Version", value: e.version }), s.push({ label: "🎮 WebGL 2 Available", value: s0() })), s;
|
|
1889
1889
|
}
|
|
1890
1890
|
function _P() {
|
|
1891
1891
|
const s = [];
|
|
@@ -1935,7 +1935,7 @@ async function wP() {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
return s;
|
|
1937
1937
|
}
|
|
1938
|
-
function
|
|
1938
|
+
function o0() {
|
|
1939
1939
|
try {
|
|
1940
1940
|
const s = document.createElement("canvas"), e = s.getContext("webgl2") || s.getContext("webgl");
|
|
1941
1941
|
if (!e) return null;
|
|
@@ -1981,36 +1981,36 @@ function PP() {
|
|
|
1981
1981
|
const s = document.querySelector("#__vconsole");
|
|
1982
1982
|
return s || null;
|
|
1983
1983
|
}
|
|
1984
|
-
const
|
|
1984
|
+
const r0 = x("debugdefines");
|
|
1985
1985
|
Ao('if(!globalThis["NEEDLE_ENGINE_VERSION"]) globalThis["NEEDLE_ENGINE_VERSION"] = "0.0.0";');
|
|
1986
1986
|
Ao('if(!globalThis["NEEDLE_ENGINE_GENERATOR"]) globalThis["NEEDLE_ENGINE_GENERATOR"] = "unknown";');
|
|
1987
1987
|
Ao('if(!globalThis["NEEDLE_PROJECT_BUILD_TIME"]) globalThis["NEEDLE_PROJECT_BUILD_TIME"] = "unknown";');
|
|
1988
1988
|
Ao('if(!globalThis["NEEDLE_PUBLIC_KEY"]) globalThis["NEEDLE_PUBLIC_KEY"] = "unknown";');
|
|
1989
|
-
Ao('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.17.0-alpha.
|
|
1989
|
+
Ao('globalThis["__NEEDLE_ENGINE_VERSION__"] = "4.17.0-alpha.4";');
|
|
1990
1990
|
Ao('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
1991
|
-
Ao('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon Mar 23 2026
|
|
1991
|
+
Ao('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Mon Mar 23 2026 14:00:06 GMT+0000 (Coordinated Universal Time)";');
|
|
1992
1992
|
Ao('globalThis["__NEEDLE_PUBLIC_KEY__"] = "' + NEEDLE_PUBLIC_KEY + '";');
|
|
1993
|
-
const Ci = "4.17.0-alpha.
|
|
1994
|
-
|
|
1993
|
+
const Ci = "4.17.0-alpha.4", Ac = "undefined", Ud = "Mon Mar 23 2026 14:00:06 GMT+0000 (Coordinated Universal Time)";
|
|
1994
|
+
r0 && console.log(`Engine version: ${Ci} (generator: ${Ac})
|
|
1995
1995
|
Project built at ${Ud}`);
|
|
1996
1996
|
const _r = NEEDLE_PUBLIC_KEY, ws = "needle_isActiveInHierarchy", fa = "builtin_components", ud = "needle_editor_guid";
|
|
1997
1997
|
function Ao(s) {
|
|
1998
1998
|
try {
|
|
1999
1999
|
(0, eval)(s);
|
|
2000
2000
|
} catch (e) {
|
|
2001
|
-
|
|
2001
|
+
r0 && console.error(e);
|
|
2002
2002
|
}
|
|
2003
2003
|
}
|
|
2004
|
-
let
|
|
2004
|
+
let a0, __ = null;
|
|
2005
2005
|
function Kn() {
|
|
2006
|
-
return
|
|
2006
|
+
return a0;
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function l0(s) {
|
|
2009
2009
|
if (s == null) {
|
|
2010
2010
|
console.warn("Oh no: someone tried registering a non-existend gltf-loader. When you see this log it might mean that needle-engine is being imported multiple times. Please check your project setup.");
|
|
2011
2011
|
return;
|
|
2012
2012
|
}
|
|
2013
|
-
__ !== s && (__ = s,
|
|
2013
|
+
__ !== s && (__ = s, a0 = new s());
|
|
2014
2014
|
}
|
|
2015
2015
|
function kP(s, e) {
|
|
2016
2016
|
if (typeof window !== void 0 && window.SPECTOR) {
|
|
@@ -2036,7 +2036,7 @@ function OP(s) {
|
|
|
2036
2036
|
}
|
|
2037
2037
|
var mg = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.DontExport = 1] = "DontExport", s))(mg || {});
|
|
2038
2038
|
const MP = /* @__PURE__ */ Symbol("component-name");
|
|
2039
|
-
function
|
|
2039
|
+
function c0(s) {
|
|
2040
2040
|
return s && s.isComponent;
|
|
2041
2041
|
}
|
|
2042
2042
|
const I2 = /* @__PURE__ */ Symbol("object"), Nf = new Ki(() => new _(), 20);
|
|
@@ -2112,7 +2112,7 @@ class Nd {
|
|
|
2112
2112
|
static _managers = /* @__PURE__ */ new WeakMap();
|
|
2113
2113
|
/** Returns the {@link AccessibilityManager} associated with the given context or component. */
|
|
2114
2114
|
static get(e) {
|
|
2115
|
-
return
|
|
2115
|
+
return c0(e) ? this._managers.get(e.context) : this._managers.get(e);
|
|
2116
2116
|
}
|
|
2117
2117
|
_enabled;
|
|
2118
2118
|
/** Enables or disables the accessibility overlay. When disabled, the overlay DOM is removed. */
|
|
@@ -2180,7 +2180,7 @@ function gg(s, e, t, i) {
|
|
|
2180
2180
|
this[o] = v_(l, s, e);
|
|
2181
2181
|
else {
|
|
2182
2182
|
const c = this[o];
|
|
2183
|
-
|
|
2183
|
+
h0(s, e, this, c, l), this[o] = l, d0(s, e, this, c, l);
|
|
2184
2184
|
}
|
|
2185
2185
|
},
|
|
2186
2186
|
get: function() {
|
|
@@ -2202,9 +2202,9 @@ function v_(s, e, t) {
|
|
|
2202
2202
|
if (s[b_])
|
|
2203
2203
|
return s;
|
|
2204
2204
|
const i = function(...n) {
|
|
2205
|
-
|
|
2205
|
+
h0(e, t, this, ...n);
|
|
2206
2206
|
const o = s.apply(this, n);
|
|
2207
|
-
return
|
|
2207
|
+
return d0(e, t, this, o, ...n), o;
|
|
2208
2208
|
};
|
|
2209
2209
|
return i[b_] = !0, i;
|
|
2210
2210
|
}
|
|
@@ -2225,14 +2225,14 @@ function IP(s, e, t, i) {
|
|
|
2225
2225
|
postfix: i
|
|
2226
2226
|
});
|
|
2227
2227
|
}
|
|
2228
|
-
function
|
|
2228
|
+
function h0(s, e, t, ...i) {
|
|
2229
2229
|
if (!t) return;
|
|
2230
2230
|
const n = yg(s, e);
|
|
2231
2231
|
if (n)
|
|
2232
2232
|
for (const o of n)
|
|
2233
2233
|
o.prefix?.call(t, ...i);
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function d0(s, e, t, i, ...n) {
|
|
2236
2236
|
if (!t) return;
|
|
2237
2237
|
const o = yg(s, e);
|
|
2238
2238
|
if (o)
|
|
@@ -2248,7 +2248,7 @@ function D2(s) {
|
|
|
2248
2248
|
e !== -1 && Ga.splice(e, 1);
|
|
2249
2249
|
}
|
|
2250
2250
|
const qa = [];
|
|
2251
|
-
function
|
|
2251
|
+
function u0(s) {
|
|
2252
2252
|
qa.indexOf(s) === -1 && qa.push(s);
|
|
2253
2253
|
}
|
|
2254
2254
|
function j2(s) {
|
|
@@ -3055,7 +3055,7 @@ class FP {
|
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
3057
|
const ls = x("debugwebxr"), Rh = x("debugcustomgesture"), zP = "https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles", UP = "generic-trigger", NP = new V().setFromEuler(new ht(ks.degToRad(0), ks.degToRad(-90), ks.degToRad(-90))), $P = new _(0.04, -0.04, 0);
|
|
3058
|
-
class
|
|
3058
|
+
class f0 {
|
|
3059
3059
|
/** the Needle XR Session */
|
|
3060
3060
|
xr;
|
|
3061
3061
|
get context() {
|
|
@@ -3809,10 +3809,10 @@ function Io(s, e) {
|
|
|
3809
3809
|
}
|
|
3810
3810
|
}
|
|
3811
3811
|
function An(s, e) {
|
|
3812
|
-
e === ue.ContextCreated && im.delete(s),
|
|
3812
|
+
e === ue.ContextCreated && im.delete(s), p0(s, e);
|
|
3813
3813
|
}
|
|
3814
|
-
function
|
|
3815
|
-
e === Ce.Start && Ra.get(ue.ContextCreated) &&
|
|
3814
|
+
function p0(s, e) {
|
|
3815
|
+
e === Ce.Start && Ra.get(ue.ContextCreated) && p0(s, ue.ContextCreated);
|
|
3816
3816
|
const t = e === Ce.Start || e === ue.ContextCreated, i = xa.get(e);
|
|
3817
3817
|
i && i.length > 0 && P_(s, i, t);
|
|
3818
3818
|
const n = Ra.get(e);
|
|
@@ -3847,12 +3847,12 @@ function P_(s, e, t) {
|
|
|
3847
3847
|
} else t && (i || (i = /* @__PURE__ */ new Set(), im.set(s, i)), i.add(o));
|
|
3848
3848
|
}
|
|
3849
3849
|
}
|
|
3850
|
-
const im = /* @__PURE__ */ new WeakMap(),
|
|
3851
|
-
function
|
|
3852
|
-
|
|
3850
|
+
const im = /* @__PURE__ */ new WeakMap(), m0 = {};
|
|
3851
|
+
function g0(s, e) {
|
|
3852
|
+
m0[s] = e;
|
|
3853
3853
|
}
|
|
3854
3854
|
function WP(s) {
|
|
3855
|
-
const e = s.getBufferIdentifier(), t =
|
|
3855
|
+
const e = s.getBufferIdentifier(), t = m0[e];
|
|
3856
3856
|
return t(s);
|
|
3857
3857
|
}
|
|
3858
3858
|
function VP(s) {
|
|
@@ -3972,7 +3972,7 @@ class $2 {
|
|
|
3972
3972
|
userId;
|
|
3973
3973
|
}
|
|
3974
3974
|
var YP = /* @__PURE__ */ ((s) => (s.RequestHasOwner = "request-has-owner", s.ResponseHasOwner = "response-has-owner", s.RequestIsOwner = "request-is-owner", s.ResponseIsOwner = "response-is-owner", s.RequestOwnership = "request-ownership", s.GainedOwnership = "gained-ownership", s.RemoveOwnership = "remove-ownership", s.LostOwnership = "lost-ownership", s.GainedOwnershipBroadcast = "gained-ownership-broadcast", s.LostOwnershipBroadcast = "lost-ownership-broadcast", s))(YP || {});
|
|
3975
|
-
class
|
|
3975
|
+
class y0 {
|
|
3976
3976
|
/** The unique identifier (GUID) of the object this ownership model manages */
|
|
3977
3977
|
guid;
|
|
3978
3978
|
connection;
|
|
@@ -4738,9 +4738,9 @@ class $r {
|
|
|
4738
4738
|
* @returns The created object
|
|
4739
4739
|
*/
|
|
4740
4740
|
static createSprite(e) {
|
|
4741
|
-
const i = new
|
|
4741
|
+
const i = new pS({ color: 16777215 });
|
|
4742
4742
|
e?.texture && "map" in i && (i.map = e.texture);
|
|
4743
|
-
const n = new
|
|
4743
|
+
const n = new mS(i);
|
|
4744
4744
|
return this.applyDefaultObjectOptions(n, e), n;
|
|
4745
4745
|
}
|
|
4746
4746
|
static applyDefaultObjectOptions(e, t) {
|
|
@@ -4748,9 +4748,9 @@ class $r {
|
|
|
4748
4748
|
}
|
|
4749
4749
|
}
|
|
4750
4750
|
function rk(s, e, t, i, n) {
|
|
4751
|
-
const o = new
|
|
4751
|
+
const o = new gS(), r = 1e-5, a = i - r;
|
|
4752
4752
|
o.absarc(r, r, r, -Math.PI / 2, -Math.PI, !0), o.absarc(r, e - a * 2, r, Math.PI, Math.PI / 2, !0), o.absarc(s - a * 2, e - a * 2, r, Math.PI / 2, 0, !0), o.absarc(s - a * 2, r, r, 0, -Math.PI / 2, !0);
|
|
4753
|
-
const l = new
|
|
4753
|
+
const l = new yS(o, {
|
|
4754
4754
|
bevelEnabled: !0,
|
|
4755
4755
|
bevelSegments: n * 2,
|
|
4756
4756
|
steps: 1,
|
|
@@ -5040,7 +5040,7 @@ async function hk() {
|
|
|
5040
5040
|
navigator.xr?.addEventListener("sessiongranted", async () => {
|
|
5041
5041
|
const e = sessionStorage.getItem("needle_xr_session_mode"), t = sessionStorage.getItem("needle_xr_session_init") ?? null, i = t ? JSON.parse(t) : null;
|
|
5042
5042
|
let n = null;
|
|
5043
|
-
if (
|
|
5043
|
+
if (_0() && (await Qa.start(e || s, i || K.getDefaultSessionInit(s)).catch((o) => console.warn("[NeedleXRSession:granted] TemporaryXRContext start failed:", o)), await fk(), n = await Qa.handoff()), n)
|
|
5044
5044
|
K.setSession(n.mode, n.session, n.init, N.Current);
|
|
5045
5045
|
else if (e && t) {
|
|
5046
5046
|
console.log("[NeedleXRSession:granted] Restore last session");
|
|
@@ -5066,13 +5066,13 @@ pe.registerCallback(ue.ContextCreated, async (s) => {
|
|
|
5066
5066
|
const e = s.context?.domElement.getAttribute("autostart") || null;
|
|
5067
5067
|
pk(e);
|
|
5068
5068
|
});
|
|
5069
|
-
function
|
|
5069
|
+
function _0() {
|
|
5070
5070
|
return wg.size > 0;
|
|
5071
5071
|
}
|
|
5072
5072
|
function fk() {
|
|
5073
5073
|
return new Promise((s) => {
|
|
5074
5074
|
const e = Date.now(), t = setInterval(() => {
|
|
5075
|
-
(!
|
|
5075
|
+
(!_0() || Date.now() - e > 6e4) && (clearInterval(t), s());
|
|
5076
5076
|
}, 100);
|
|
5077
5077
|
});
|
|
5078
5078
|
}
|
|
@@ -5627,7 +5627,7 @@ class K {
|
|
|
5627
5627
|
console.debug("Controller already registered for input source", t);
|
|
5628
5628
|
return;
|
|
5629
5629
|
}
|
|
5630
|
-
const i = new
|
|
5630
|
+
const i = new f0(this, e, t);
|
|
5631
5631
|
this._newControllers.push(i);
|
|
5632
5632
|
};
|
|
5633
5633
|
/** Disconnects the controller, invokes events and notifies previou controller (if any) */
|
|
@@ -6207,7 +6207,7 @@ class z {
|
|
|
6207
6207
|
}
|
|
6208
6208
|
const yk = new Ua(1, 1, 1);
|
|
6209
6209
|
function xg(s = null) {
|
|
6210
|
-
const e = new re(s ?? 14540253), t = new
|
|
6210
|
+
const e = new re(s ?? 14540253), t = new _S(yk);
|
|
6211
6211
|
return new xv(t, new tg({ color: e }));
|
|
6212
6212
|
}
|
|
6213
6213
|
function un(s, e) {
|
|
@@ -6256,7 +6256,7 @@ class zi {
|
|
|
6256
6256
|
if (r)
|
|
6257
6257
|
r.set(l);
|
|
6258
6258
|
else {
|
|
6259
|
-
r = new
|
|
6259
|
+
r = new jv(l);
|
|
6260
6260
|
const c = this, h = r;
|
|
6261
6261
|
h.setText = function(d) {
|
|
6262
6262
|
this.set({ textContent: d }), c.tmuiNeedsUpdate = !0;
|
|
@@ -6409,7 +6409,7 @@ class Wr {
|
|
|
6409
6409
|
t ? t.mask = e : this.layerMask = e;
|
|
6410
6410
|
}
|
|
6411
6411
|
}
|
|
6412
|
-
class
|
|
6412
|
+
class b0 {
|
|
6413
6413
|
distance;
|
|
6414
6414
|
point;
|
|
6415
6415
|
object;
|
|
@@ -6494,7 +6494,7 @@ class Dc {
|
|
|
6494
6494
|
if (!a)
|
|
6495
6495
|
return Zt && console.error("Can not perform raycast - no main camera found"), this.defaultRaycastOptions.results && (this.defaultRaycastOptions.results.length = 0), this.defaultRaycastOptions.results ?? [];
|
|
6496
6496
|
const l = this.context.xrCamera;
|
|
6497
|
-
this.context.isInXR && l instanceof
|
|
6497
|
+
this.context.isInXR && l instanceof bS && l.cameras.length > 0 ? i.setFromCamera(t, l.cameras[0]) : i.setFromCamera(t, a);
|
|
6498
6498
|
}
|
|
6499
6499
|
let n = e.targets;
|
|
6500
6500
|
n || (n = this.targetBuffer, n.length = 1, n[0] = this.context.scene);
|
|
@@ -6553,7 +6553,7 @@ class Dc {
|
|
|
6553
6553
|
h.matrixWorldNeedsUpdate && h.updateWorldMatrix(!1, !1);
|
|
6554
6554
|
const f = this.tempBoundingBox.copy(d.boundingBox).applyMatrix4(h.matrixWorld), p = this.sphere;
|
|
6555
6555
|
if (p.center.copy(t), p.radius = i, p.intersectsBox(f)) {
|
|
6556
|
-
const g = te(e), y = g.distanceTo(p.center), m = new
|
|
6556
|
+
const g = te(e), y = g.distanceTo(p.center), m = new b0(e, y, g);
|
|
6557
6557
|
if (o.push(m), !r) return;
|
|
6558
6558
|
}
|
|
6559
6559
|
}
|
|
@@ -6663,7 +6663,7 @@ var $d;
|
|
|
6663
6663
|
if (j) {
|
|
6664
6664
|
const B = b;
|
|
6665
6665
|
if (c.copy(v.matrixWorld).invert(), B.applyMatrix4(c), j.intersectsSphere(B)) {
|
|
6666
|
-
const X = te(v), O = X.distanceTo(B.center), W = new
|
|
6666
|
+
const X = te(v), O = X.distanceTo(B.center), W = new b0(v, O, X);
|
|
6667
6667
|
T.push(W);
|
|
6668
6668
|
}
|
|
6669
6669
|
}
|
|
@@ -6752,7 +6752,7 @@ class xk {
|
|
|
6752
6752
|
}
|
|
6753
6753
|
}
|
|
6754
6754
|
const Mu = x("trackresources");
|
|
6755
|
-
function
|
|
6755
|
+
function v0() {
|
|
6756
6756
|
return Mu === "dispose";
|
|
6757
6757
|
}
|
|
6758
6758
|
let Vr = !0;
|
|
@@ -6763,21 +6763,21 @@ function W2(s) {
|
|
|
6763
6763
|
function Sk() {
|
|
6764
6764
|
return Vr;
|
|
6765
6765
|
}
|
|
6766
|
-
const
|
|
6766
|
+
const w0 = /* @__PURE__ */ Symbol("disposable");
|
|
6767
6767
|
function Ck(s, e) {
|
|
6768
|
-
s && (s[
|
|
6768
|
+
s && (s[w0] = e, Sr && console.warn("Set disposable", e, s));
|
|
6769
6769
|
}
|
|
6770
|
-
const
|
|
6770
|
+
const x0 = /* @__PURE__ */ Symbol("disposed");
|
|
6771
6771
|
function V2(s) {
|
|
6772
|
-
return s[
|
|
6772
|
+
return s[x0] === !0;
|
|
6773
6773
|
}
|
|
6774
6774
|
function Ae(s) {
|
|
6775
6775
|
if (s) {
|
|
6776
|
-
if (s[
|
|
6776
|
+
if (s[w0] === !1) {
|
|
6777
6777
|
Sr && console.warn("Object is marked as not disposable", s);
|
|
6778
6778
|
return;
|
|
6779
6779
|
}
|
|
6780
|
-
if (typeof s == "object" && (s[
|
|
6780
|
+
if (typeof s == "object" && (s[x0] = !0), s instanceof Qi)
|
|
6781
6781
|
Ae(s.environment), Ae(s.background), Ae(s.customDepthMaterial), Ae(s.customDistanceMaterial);
|
|
6782
6782
|
else if (s instanceof vo)
|
|
6783
6783
|
Ae(s.geometry), Ae(s.material), Ae(s.skeleton), Ae(s.bindMatrix), Ae(s.bindMatrixInverse), Ae(s.customDepthMaterial), Ae(s.customDistanceMaterial), s.visible = !1;
|
|
@@ -6808,21 +6808,21 @@ function Ae(s) {
|
|
|
6808
6808
|
const i = e[t];
|
|
6809
6809
|
i instanceof xe ? Ae(i) : i instanceof qi && Ae(i.value);
|
|
6810
6810
|
}
|
|
6811
|
-
} else s instanceof xe ? (ia(s), ia(s.source), s.source?.data instanceof ImageBitmap && ia(s.source.data)) : s instanceof
|
|
6811
|
+
} else s instanceof xe ? (ia(s), ia(s.source), s.source?.data instanceof ImageBitmap && ia(s.source.data)) : s instanceof vS ? (ia(s.boneTexture), s.boneTexture = null) : s instanceof wS || !(s instanceof M) && Sr && console.warn("Unknown object type", s);
|
|
6812
6812
|
}
|
|
6813
6813
|
}
|
|
6814
6814
|
function ia(s) {
|
|
6815
|
-
s && ((Sr ||
|
|
6815
|
+
s && ((Sr || v0() || Mu) && console.warn("🧨 FREE", s), s instanceof ImageBitmap || "dispose" in s && typeof s.dispose == "function" && s.dispose());
|
|
6816
6816
|
}
|
|
6817
6817
|
function H2(s) {
|
|
6818
6818
|
}
|
|
6819
6819
|
const Pk = /* @__PURE__ */ new Set();
|
|
6820
|
-
function
|
|
6820
|
+
function S0(s, e, t = null, i) {
|
|
6821
6821
|
if (i || (i = Pk, i.clear()), !s) return i;
|
|
6822
6822
|
const n = s[jc];
|
|
6823
6823
|
if (n)
|
|
6824
6824
|
for (const o of n)
|
|
6825
|
-
i.has(o) || t?.call(null, o) !== !1 && (i.add(o), e &&
|
|
6825
|
+
i.has(o) || t?.call(null, o) !== !1 && (i.add(o), e && S0(o, !0, t, i));
|
|
6826
6826
|
return i;
|
|
6827
6827
|
}
|
|
6828
6828
|
function G2(s) {
|
|
@@ -6864,7 +6864,7 @@ function Wd(s, e, t, i) {
|
|
|
6864
6864
|
} else if (e && n.has(e)) {
|
|
6865
6865
|
n.delete(e);
|
|
6866
6866
|
let o = t[Zl] || 0;
|
|
6867
|
-
o > 0 && (o -= 1, t[Zl] = o), Sr && console.warn(`🔴 Removed user of "${t.type}"`, e, t, o, "users:", n), o <= 0 && (Ta.isLoading(t) || (Mu && console.warn(`🔴 Removed all user of "${t.type}"`, t),
|
|
6867
|
+
o > 0 && (o -= 1, t[Zl] = o), Sr && console.warn(`🔴 Removed user of "${t.type}"`, e, t, o, "users:", n), o <= 0 && (Ta.isLoading(t) || (Mu && console.warn(`🔴 Removed all user of "${t.type}"`, t), v0() && Ae(t)));
|
|
6868
6868
|
}
|
|
6869
6869
|
t[s] = n;
|
|
6870
6870
|
}
|
|
@@ -6903,17 +6903,17 @@ class Sg {
|
|
|
6903
6903
|
n(t);
|
|
6904
6904
|
}
|
|
6905
6905
|
}
|
|
6906
|
-
const Bc = /* @__PURE__ */ Symbol("NEEDLE_NEED_UPDATE_INSTANCE"),
|
|
6906
|
+
const Bc = /* @__PURE__ */ Symbol("NEEDLE_NEED_UPDATE_INSTANCE"), C0 = /* @__PURE__ */ Symbol("isUsingInstancing"), P0 = /* @__PURE__ */ Symbol("instancingRenderer"), Jl = /* @__PURE__ */ Symbol("instancingAutoUpdateBounds");
|
|
6907
6907
|
class vn {
|
|
6908
6908
|
/** Is this object rendered using a InstancedMesh */
|
|
6909
6909
|
static isUsingInstancing(e) {
|
|
6910
|
-
return e[
|
|
6910
|
+
return e[C0] === !0;
|
|
6911
6911
|
}
|
|
6912
6912
|
/** Returns the instanced mesh IF the object is rendered by an instanced mesh
|
|
6913
6913
|
* @link https://threejs.org/docs/#api/en/objects/InstancedMesh
|
|
6914
6914
|
*/
|
|
6915
6915
|
static getRenderer(e) {
|
|
6916
|
-
return e[
|
|
6916
|
+
return e[P0] || null;
|
|
6917
6917
|
}
|
|
6918
6918
|
setAutoUpdateBounds(e, t) {
|
|
6919
6919
|
const i = vn.getRenderer(e);
|
|
@@ -6927,7 +6927,7 @@ class vn {
|
|
|
6927
6927
|
vn.markDirty(i, !0);
|
|
6928
6928
|
}
|
|
6929
6929
|
}
|
|
6930
|
-
const
|
|
6930
|
+
const k0 = {
|
|
6931
6931
|
experimentalSmartHierarchyUpdate: !1
|
|
6932
6932
|
};
|
|
6933
6933
|
function mc(s, e) {
|
|
@@ -7011,7 +7011,7 @@ Did you add and remove a component in the same frame?`), Re.splice(e, 1), e--;
|
|
|
7011
7011
|
function Ek(s) {
|
|
7012
7012
|
s && (s.__internalDisable(!0), ys(s, s.context));
|
|
7013
7013
|
}
|
|
7014
|
-
function
|
|
7014
|
+
function O0(s, e) {
|
|
7015
7015
|
for (let t = 0; t < s.new_script_start.length; t++)
|
|
7016
7016
|
try {
|
|
7017
7017
|
const i = s.new_script_start[t];
|
|
@@ -7045,7 +7045,7 @@ function Kf() {
|
|
|
7045
7045
|
rm = !0;
|
|
7046
7046
|
}
|
|
7047
7047
|
function fd(s, e = !1) {
|
|
7048
|
-
if (
|
|
7048
|
+
if (k0.experimentalSmartHierarchyUpdate) {
|
|
7049
7049
|
if (!e && !rm)
|
|
7050
7050
|
return;
|
|
7051
7051
|
rm = !1;
|
|
@@ -7119,9 +7119,9 @@ function gc(s) {
|
|
|
7119
7119
|
}
|
|
7120
7120
|
s[ws] = e && t;
|
|
7121
7121
|
}
|
|
7122
|
-
const pd = /* @__PURE__ */ new Map(),
|
|
7122
|
+
const pd = /* @__PURE__ */ new Map(), M0 = /* @__PURE__ */ Symbol("prewarmFlag"), lm = /* @__PURE__ */ Symbol("waitingForPrewarm"), cm = x("debugprewarm");
|
|
7123
7123
|
function Rk(s, e) {
|
|
7124
|
-
if (!s || s[
|
|
7124
|
+
if (!s || s[M0] === !0 || s[lm] === !0) return;
|
|
7125
7125
|
pd.has(e) || pd.set(e, []), s[lm] = !0, pd.get(e).push(s), cm && console.debug("register prewarm", s.name);
|
|
7126
7126
|
}
|
|
7127
7127
|
let z_ = null, U_ = null;
|
|
@@ -7135,9 +7135,9 @@ function Tk(s) {
|
|
|
7135
7135
|
const i = s.renderer;
|
|
7136
7136
|
if (i.compile) {
|
|
7137
7137
|
const n = s.scene;
|
|
7138
|
-
i.compile(n, t), z_ ??= new
|
|
7138
|
+
i.compile(n, t), z_ ??= new xS(64), U_ ??= new SS(1e-3, 9999999, z_), U_.update(i, n);
|
|
7139
7139
|
for (const o of e)
|
|
7140
|
-
o[
|
|
7140
|
+
o[M0] = !0, o[lm] = !1;
|
|
7141
7141
|
e.length = 0, cm && console.log("prewarm done");
|
|
7142
7142
|
}
|
|
7143
7143
|
}
|
|
@@ -7205,16 +7205,16 @@ function Eu(s, e, t = !0, i) {
|
|
|
7205
7205
|
console.warn("Can not send destroy: failed to find guid", s);
|
|
7206
7206
|
return;
|
|
7207
7207
|
}
|
|
7208
|
-
|
|
7208
|
+
E0(o, e, i);
|
|
7209
7209
|
}
|
|
7210
|
-
function
|
|
7210
|
+
function E0(s, e, t) {
|
|
7211
7211
|
const i = new Ik(s);
|
|
7212
7212
|
t?.saveInRoom === !1 && (i.dontSave = !0), e.send("instance-destroyed", i, zn.Queued);
|
|
7213
7213
|
}
|
|
7214
7214
|
function Lk(s) {
|
|
7215
7215
|
s.connection.beginListen("instance-destroyed", (e) => {
|
|
7216
7216
|
Hd && console.log("[Remote] Destroyed", s.scene, e);
|
|
7217
|
-
const t =
|
|
7217
|
+
const t = $0(e.guid, s.scene);
|
|
7218
7218
|
t && Zi(t);
|
|
7219
7219
|
});
|
|
7220
7220
|
}
|
|
@@ -7250,7 +7250,7 @@ class Dk {
|
|
|
7250
7250
|
this.originalGuid = e, this.guid = t;
|
|
7251
7251
|
}
|
|
7252
7252
|
}
|
|
7253
|
-
function
|
|
7253
|
+
function R0(s, e, t, i) {
|
|
7254
7254
|
const n = s;
|
|
7255
7255
|
if (!n.guid)
|
|
7256
7256
|
return console.warn("Can not instantiate: No guid", n), null;
|
|
@@ -7299,25 +7299,25 @@ function Fk(s, e) {
|
|
|
7299
7299
|
const n = Ar(s, i);
|
|
7300
7300
|
return { seed: t, instance: n };
|
|
7301
7301
|
}
|
|
7302
|
-
const
|
|
7302
|
+
const T0 = {};
|
|
7303
7303
|
function zk(s, e) {
|
|
7304
|
-
|
|
7304
|
+
T0[s] = e;
|
|
7305
7305
|
}
|
|
7306
7306
|
async function Uk(s, e) {
|
|
7307
|
-
const t =
|
|
7307
|
+
const t = T0[s];
|
|
7308
7308
|
if (t != null) {
|
|
7309
7309
|
const i = await t(s);
|
|
7310
7310
|
if (i) return i;
|
|
7311
7311
|
}
|
|
7312
|
-
return
|
|
7312
|
+
return A0(s, e);
|
|
7313
7313
|
}
|
|
7314
|
-
function
|
|
7314
|
+
function A0(s, e) {
|
|
7315
7315
|
if (e === null || !s) return null;
|
|
7316
7316
|
if (e.guid === s)
|
|
7317
7317
|
return e;
|
|
7318
7318
|
if (e.children)
|
|
7319
7319
|
for (const t of e.children) {
|
|
7320
|
-
const i =
|
|
7320
|
+
const i = A0(s, t);
|
|
7321
7321
|
if (i)
|
|
7322
7322
|
return i;
|
|
7323
7323
|
}
|
|
@@ -7351,7 +7351,7 @@ class Nk {
|
|
|
7351
7351
|
return this._reverseTypes.get(e) || null;
|
|
7352
7352
|
}
|
|
7353
7353
|
}
|
|
7354
|
-
const $k = /* @__PURE__ */ Symbol("BuiltInType"), P = new Nk(),
|
|
7354
|
+
const $k = /* @__PURE__ */ Symbol("BuiltInType"), P = new Nk(), I0 = function(s) {
|
|
7355
7355
|
P.get(s.name) || P.add(s.name, s);
|
|
7356
7356
|
}, Pg = x("debugresolvedependencies"), Wk = ["/extensions/", "extensions/"], Vk = [
|
|
7357
7357
|
{ prefix: "/nodes/", dependencyName: "node" },
|
|
@@ -7402,7 +7402,7 @@ function hm(s, e, t, i) {
|
|
|
7402
7402
|
continue;
|
|
7403
7403
|
}
|
|
7404
7404
|
for (const c of s) {
|
|
7405
|
-
const h =
|
|
7405
|
+
const h = L0(c.prefix, a);
|
|
7406
7406
|
if (h >= 0) {
|
|
7407
7407
|
Pg && console.log(c, h, c.dependencyName), i.push(e.getDependency(c.dependencyName, h).then((d) => o[r] = d));
|
|
7408
7408
|
break;
|
|
@@ -7436,13 +7436,13 @@ function $_(s, e) {
|
|
|
7436
7436
|
}
|
|
7437
7437
|
function W_(s, e, t) {
|
|
7438
7438
|
for (const i of s) {
|
|
7439
|
-
const n =
|
|
7439
|
+
const n = L0(i.prefix, t);
|
|
7440
7440
|
if (n >= 0)
|
|
7441
7441
|
return Pg && console.warn("GET DEPENDENCY", i, n, i.dependencyName), e.getDependency(i.dependencyName, n);
|
|
7442
7442
|
}
|
|
7443
7443
|
return null;
|
|
7444
7444
|
}
|
|
7445
|
-
function
|
|
7445
|
+
function L0(s, e) {
|
|
7446
7446
|
if (typeof e == "string" && e.startsWith(s)) {
|
|
7447
7447
|
const t = e.substring(s.length), i = Number.parseInt(t);
|
|
7448
7448
|
if (i >= 0)
|
|
@@ -7566,7 +7566,7 @@ class Yk {
|
|
|
7566
7566
|
return this.cache[e] === void 0 ? !1 : this.cache[e].includes(t);
|
|
7567
7567
|
}
|
|
7568
7568
|
}
|
|
7569
|
-
class
|
|
7569
|
+
class D0 {
|
|
7570
7570
|
root;
|
|
7571
7571
|
gltf;
|
|
7572
7572
|
/** the url of the glb that is currently being loaded */
|
|
@@ -7612,11 +7612,11 @@ function Kk(s, e) {
|
|
|
7612
7612
|
return i.name = n(s), typeof s.guid == "string" && (i.guid = s.guid), i;
|
|
7613
7613
|
}
|
|
7614
7614
|
const md = [];
|
|
7615
|
-
function
|
|
7615
|
+
function j0(s, e) {
|
|
7616
7616
|
if (!s) return e;
|
|
7617
7617
|
typeof s.$serializedTypes == "object" && (e || (e = {}), Object.assign(e, s.$serializedTypes));
|
|
7618
7618
|
const t = Object.getPrototypeOf(s);
|
|
7619
|
-
return
|
|
7619
|
+
return j0(t, e);
|
|
7620
7620
|
}
|
|
7621
7621
|
function dm(s, e, t) {
|
|
7622
7622
|
if (!s) return !1;
|
|
@@ -7624,7 +7624,7 @@ function dm(s, e, t) {
|
|
|
7624
7624
|
const n = s.onBeforeDeserialize(e, t);
|
|
7625
7625
|
if (typeof n == "boolean") return n;
|
|
7626
7626
|
}
|
|
7627
|
-
const i =
|
|
7627
|
+
const i = j0(s);
|
|
7628
7628
|
if (e) {
|
|
7629
7629
|
if (typeof e.guid == "string" && (s.guid = e.guid), i)
|
|
7630
7630
|
for (const n in i) {
|
|
@@ -7829,9 +7829,9 @@ function nO(s, e) {
|
|
|
7829
7829
|
while (!t && (s = Object.getPrototypeOf(s)));
|
|
7830
7830
|
return t;
|
|
7831
7831
|
}
|
|
7832
|
-
const
|
|
7832
|
+
const B0 = /* @__PURE__ */ Symbol("customVisibilityFlag");
|
|
7833
7833
|
function _s(s, e) {
|
|
7834
|
-
s.layers[
|
|
7834
|
+
s.layers[B0] = e;
|
|
7835
7835
|
}
|
|
7836
7836
|
const H_ = /* @__PURE__ */ Symbol("DidPatchLayers");
|
|
7837
7837
|
function sO() {
|
|
@@ -7840,7 +7840,7 @@ function sO() {
|
|
|
7840
7840
|
s[H_] = !0;
|
|
7841
7841
|
const e = s.test;
|
|
7842
7842
|
s.test = function(t) {
|
|
7843
|
-
return this[
|
|
7843
|
+
return this[B0] === !1 ? !1 : e.call(this, t);
|
|
7844
7844
|
};
|
|
7845
7845
|
}
|
|
7846
7846
|
sO();
|
|
@@ -7874,19 +7874,19 @@ Object.defineProperty(de.prototype, "far", {
|
|
|
7874
7874
|
},
|
|
7875
7875
|
configurable: !0
|
|
7876
7876
|
});
|
|
7877
|
-
const
|
|
7877
|
+
const F0 = /* @__PURE__ */ new Map();
|
|
7878
7878
|
function oO(s, e) {
|
|
7879
7879
|
if (!s) return;
|
|
7880
7880
|
if (!e) {
|
|
7881
7881
|
console.warn("No prototype found", s, s.prototype, s.constructor);
|
|
7882
7882
|
return;
|
|
7883
7883
|
}
|
|
7884
|
-
const t =
|
|
7884
|
+
const t = F0.get(e);
|
|
7885
7885
|
t && t.apply(s);
|
|
7886
7886
|
}
|
|
7887
7887
|
function rO(s) {
|
|
7888
7888
|
const e = aO(s.prototype);
|
|
7889
|
-
|
|
7889
|
+
F0.set(s, e);
|
|
7890
7890
|
}
|
|
7891
7891
|
function aO(s) {
|
|
7892
7892
|
return new lO(s);
|
|
@@ -7916,7 +7916,7 @@ const cO = x("debuggetcomponent"), G_ = () => cO || globalThis.NEEDLE_DEBUG_GETC
|
|
|
7916
7916
|
function hO(s) {
|
|
7917
7917
|
return s == null || s.isObject3D ? s : s.object && s.object.isObject3D ? s.object : s;
|
|
7918
7918
|
}
|
|
7919
|
-
function
|
|
7919
|
+
function z0(s, e) {
|
|
7920
7920
|
if (!s || !s.userData.components) return e;
|
|
7921
7921
|
const t = s.userData.components.indexOf(e);
|
|
7922
7922
|
return t < 0 || (Sg.dispatchComponentLifecycleEvent("removing-component", e), e.gameObject = null, s.userData.components.splice(t, 1)), e;
|
|
@@ -7925,9 +7925,9 @@ function Ru(s, e, t) {
|
|
|
7925
7925
|
const i = nl(s, e);
|
|
7926
7926
|
return i || qn(s, e, t);
|
|
7927
7927
|
}
|
|
7928
|
-
const
|
|
7928
|
+
const U0 = new Nt("addComponentIdProvider");
|
|
7929
7929
|
function Aa(s, e, t = !0) {
|
|
7930
|
-
s.userData || (s.userData = {}), s.userData.components || (s.userData.components = []), s.userData.components.push(e), e.gameObject = s, (e.guid === void 0 || e.guid === "invalid") && (e.guid =
|
|
7930
|
+
s.userData || (s.userData = {}), s.userData.components || (s.userData.components = []), s.userData.components.push(e), e.gameObject = s, (e.guid === void 0 || e.guid === "invalid") && (e.guid = U0.generateUUID()), Mg(s), Ig(e, e.context);
|
|
7931
7931
|
try {
|
|
7932
7932
|
t && e.__internalAwake && (gc(s), e.activeAndEnabled && e.__internalAwake()), Sg.dispatchComponentLifecycleEvent("component-added", e);
|
|
7933
7933
|
} catch (i) {
|
|
@@ -7951,7 +7951,7 @@ function qn(s, e, t, i) {
|
|
|
7951
7951
|
}
|
|
7952
7952
|
if (s.userData || (s.userData = {}), !s.userData.components) s.userData.components = [];
|
|
7953
7953
|
else if (s.userData.components.includes(e)) return e;
|
|
7954
|
-
return s.userData.components.push(e), e.gameObject = s, (e.guid === void 0 || e.guid === "invalid") && (e.guid =
|
|
7954
|
+
return s.userData.components.push(e), e.gameObject = s, (e.guid === void 0 || e.guid === "invalid") && (e.guid = U0.generateUUID()), t && e._internalInit(t), Ig(e, e.context), e;
|
|
7955
7955
|
}
|
|
7956
7956
|
function dO(s) {
|
|
7957
7957
|
if (s.gameObject && s.gameObject.userData.components) {
|
|
@@ -7961,7 +7961,7 @@ function dO(s) {
|
|
|
7961
7961
|
s.__internalDisable && s.__internalDisable(), ys(s, s.context ?? N.Current), s.destroy(), s.gameObject = null;
|
|
7962
7962
|
}
|
|
7963
7963
|
let q_ = !1;
|
|
7964
|
-
function
|
|
7964
|
+
function N0(s, e, t) {
|
|
7965
7965
|
if (s == null) return null;
|
|
7966
7966
|
if (!s.isObject3D)
|
|
7967
7967
|
return console.error("Object is not object3D"), null;
|
|
@@ -7985,11 +7985,11 @@ https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
|
|
|
7985
7985
|
return t || null;
|
|
7986
7986
|
}
|
|
7987
7987
|
function nl(s, e) {
|
|
7988
|
-
const t =
|
|
7988
|
+
const t = N0(s, e);
|
|
7989
7989
|
return t ? Array.isArray(t) ? t[0] : t : null;
|
|
7990
7990
|
}
|
|
7991
7991
|
function Tu(s, e, t, i = !0) {
|
|
7992
|
-
return t || (t = []), i && (t.length = 0),
|
|
7992
|
+
return t || (t = []), i && (t.length = 0), N0(s, e, t), t;
|
|
7993
7993
|
}
|
|
7994
7994
|
function Au(s, e, t = !1) {
|
|
7995
7995
|
if (t === !1 && s[ws] === !1) return null;
|
|
@@ -8043,7 +8043,7 @@ function uO(s, e, t = void 0) {
|
|
|
8043
8043
|
function Mg(s) {
|
|
8044
8044
|
s && s.isObject3D === !0 && oO(s, M);
|
|
8045
8045
|
}
|
|
8046
|
-
if (
|
|
8046
|
+
if (k0.experimentalSmartHierarchyUpdate) {
|
|
8047
8047
|
const s = M.prototype.add;
|
|
8048
8048
|
M.prototype.add = function(...i) {
|
|
8049
8049
|
return Kf(), s.apply(this, i);
|
|
@@ -8073,7 +8073,7 @@ M.prototype.addNewComponent = function(s, e) {
|
|
|
8073
8073
|
return qn(this, s, e);
|
|
8074
8074
|
};
|
|
8075
8075
|
M.prototype.removeComponent = function(s) {
|
|
8076
|
-
return
|
|
8076
|
+
return z0(this, s);
|
|
8077
8077
|
};
|
|
8078
8078
|
M.prototype.getOrAddComponent = function(s, e) {
|
|
8079
8079
|
return Ru(this, s, e);
|
|
@@ -8115,7 +8115,7 @@ Object.getOwnPropertyDescriptor(M.prototype, "raycastAllowed") || Object.defineP
|
|
|
8115
8115
|
});
|
|
8116
8116
|
Object.getOwnPropertyDescriptor(M.prototype, "worldPosition") || Object.defineProperty(M.prototype, "worldPosition", {
|
|
8117
8117
|
get: function() {
|
|
8118
|
-
return this instanceof
|
|
8118
|
+
return this instanceof Rv ? te(this.object) : te(this);
|
|
8119
8119
|
},
|
|
8120
8120
|
set: function(s) {
|
|
8121
8121
|
Rt(this, s);
|
|
@@ -8123,7 +8123,7 @@ Object.getOwnPropertyDescriptor(M.prototype, "worldPosition") || Object.definePr
|
|
|
8123
8123
|
});
|
|
8124
8124
|
Object.getOwnPropertyDescriptor(M.prototype, "worldQuaternion") || Object.defineProperty(M.prototype, "worldQuaternion", {
|
|
8125
8125
|
get: function() {
|
|
8126
|
-
return this instanceof
|
|
8126
|
+
return this instanceof Rv ? ve(this.object) : ve(this);
|
|
8127
8127
|
},
|
|
8128
8128
|
set: function(s) {
|
|
8129
8129
|
Yn(this, s);
|
|
@@ -8205,20 +8205,20 @@ function gO(s) {
|
|
|
8205
8205
|
return s[ws] || Eg(s);
|
|
8206
8206
|
}
|
|
8207
8207
|
function yO(s, e) {
|
|
8208
|
-
s[
|
|
8208
|
+
s[C0] = e;
|
|
8209
8209
|
}
|
|
8210
8210
|
function Eg(s) {
|
|
8211
8211
|
return vn.isUsingInstancing(s);
|
|
8212
8212
|
}
|
|
8213
|
-
function
|
|
8213
|
+
function $0(s, e) {
|
|
8214
8214
|
return Rc(s, e, !0, !0);
|
|
8215
8215
|
}
|
|
8216
|
-
const
|
|
8216
|
+
const W0 = /* @__PURE__ */ Symbol("isDestroyed");
|
|
8217
8217
|
function Ka(s) {
|
|
8218
|
-
return s[
|
|
8218
|
+
return s[W0];
|
|
8219
8219
|
}
|
|
8220
8220
|
function _O(s, e) {
|
|
8221
|
-
s[
|
|
8221
|
+
s[W0] = e;
|
|
8222
8222
|
}
|
|
8223
8223
|
const pm = /* @__PURE__ */ Symbol("isDontDestroy");
|
|
8224
8224
|
function Dl(s, e = !0) {
|
|
@@ -8261,7 +8261,7 @@ function mm(s, e = !0, t = !0) {
|
|
|
8261
8261
|
t && n.removeFromParent();
|
|
8262
8262
|
}
|
|
8263
8263
|
function Za(s, e, t = !0) {
|
|
8264
|
-
return
|
|
8264
|
+
return V0(s, e, t);
|
|
8265
8265
|
}
|
|
8266
8266
|
function* Rg(s, e, t = !1, i = 999, n = 0) {
|
|
8267
8267
|
if (s?.userData.components && !(n > i)) {
|
|
@@ -8272,7 +8272,7 @@ function* Rg(s, e, t = !1, i = 999, n = 0) {
|
|
|
8272
8272
|
yield* Rg(o, e, !0, i, n + 1);
|
|
8273
8273
|
}
|
|
8274
8274
|
}
|
|
8275
|
-
function
|
|
8275
|
+
function V0(s, e, t, i = 0) {
|
|
8276
8276
|
if (s) {
|
|
8277
8277
|
if (s.isObject3D, i > 1e3) {
|
|
8278
8278
|
console.warn("Failed to iterate components: too many levels");
|
|
@@ -8291,7 +8291,7 @@ function W0(s, e, t, i = 0) {
|
|
|
8291
8291
|
for (let o = 0; o < s.children.length; o++) {
|
|
8292
8292
|
const r = s.children[o];
|
|
8293
8293
|
if (!r) continue;
|
|
8294
|
-
const a =
|
|
8294
|
+
const a = V0(r, e, t, n);
|
|
8295
8295
|
if (a !== void 0) return a;
|
|
8296
8296
|
}
|
|
8297
8297
|
}
|
|
@@ -8304,7 +8304,7 @@ function Ar(s, e) {
|
|
|
8304
8304
|
e != null && (e.x !== void 0 ? (t = new ts(), t.position = e) : t = e);
|
|
8305
8305
|
let i = N.Current;
|
|
8306
8306
|
t?.context && (i = t.context), gd && i.alias && console.log("context", i.alias), t && !t.idProvider && (t.idProvider = new Nt(Date.now()));
|
|
8307
|
-
const n = [], o = {}, r = {}, a =
|
|
8307
|
+
const n = [], o = {}, r = {}, a = H0(i, s, t, n, o, r);
|
|
8308
8308
|
a && (wO(a, o), vO(r, o)), gd && (Kp(s, !0), Kp(a, !0));
|
|
8309
8309
|
const l = {};
|
|
8310
8310
|
if (t?.components !== !1) {
|
|
@@ -8320,7 +8320,7 @@ function Ar(s, e) {
|
|
|
8320
8320
|
}
|
|
8321
8321
|
return a;
|
|
8322
8322
|
}
|
|
8323
|
-
function
|
|
8323
|
+
function H0(s, e, t, i, n, o) {
|
|
8324
8324
|
if (!e || e[xi])
|
|
8325
8325
|
return null;
|
|
8326
8326
|
const r = e.userData;
|
|
@@ -8378,7 +8378,7 @@ function V0(s, e, t, i, n, o) {
|
|
|
8378
8378
|
}
|
|
8379
8379
|
t && (t.position = void 0, t.rotation = void 0, t.scale = void 0, t.parent = void 0, t.visible = void 0);
|
|
8380
8380
|
for (const h in e.children) {
|
|
8381
|
-
const d = e.children[h], f =
|
|
8381
|
+
const d = e.children[h], f = H0(s, d, t, i, n, o);
|
|
8382
8382
|
f && (n[f.uuid] = { original: d, clone: f }, l.add(f));
|
|
8383
8383
|
}
|
|
8384
8384
|
return l;
|
|
@@ -8807,7 +8807,7 @@ class ne {
|
|
|
8807
8807
|
o.context = n;
|
|
8808
8808
|
const a = this.asset;
|
|
8809
8809
|
a.guid = this.url;
|
|
8810
|
-
const l =
|
|
8810
|
+
const l = R0(a, o, void 0, i);
|
|
8811
8811
|
if (l)
|
|
8812
8812
|
return l;
|
|
8813
8813
|
} else {
|
|
@@ -9107,11 +9107,11 @@ class Fs {
|
|
|
9107
9107
|
);
|
|
9108
9108
|
break;
|
|
9109
9109
|
}
|
|
9110
|
-
const l = new
|
|
9110
|
+
const l = new CS(".scale", r, a);
|
|
9111
9111
|
return new Mi("scale", r[r.length - 1], [l]);
|
|
9112
9112
|
}
|
|
9113
9113
|
}
|
|
9114
|
-
function*
|
|
9114
|
+
function* G0(s, e = null) {
|
|
9115
9115
|
const t = e ? e.time : N.Current.time, i = t.time;
|
|
9116
9116
|
for (; t.time - i < s; )
|
|
9117
9117
|
yield;
|
|
@@ -9176,11 +9176,11 @@ class EO {
|
|
|
9176
9176
|
na && console.log("Load texture from path", c.pointer);
|
|
9177
9177
|
const d = To(this.source, c.pointer), f = d.endsWith(".pmrem.ktx2");
|
|
9178
9178
|
let p;
|
|
9179
|
-
d.endsWith(".exr") ? p = new lg(this.parser.options.manager) : d.endsWith(".hdr") ? p = new
|
|
9179
|
+
d.endsWith(".exr") ? p = new lg(this.parser.options.manager) : d.endsWith(".hdr") ? p = new Tv(this.parser.options.manager) : f ? p = this.parser.options.ktx2Loader : p = new Er(this.parser.options.manager), h = p.loadAsync(d, void 0).then((g) => (f && g && Iu.postprocess(g), this.resolveTexture(c, g)));
|
|
9180
9180
|
} else c.pointer;
|
|
9181
9181
|
h && a.push(h);
|
|
9182
9182
|
}
|
|
9183
|
-
const l = await
|
|
9183
|
+
const l = await $v(a);
|
|
9184
9184
|
l?.anyFailed && (L() || na) && console.error("[NEEDLE_lightmaps]Error during extension loading:", l), o();
|
|
9185
9185
|
})) : null;
|
|
9186
9186
|
}
|
|
@@ -9738,7 +9738,7 @@ class WO {
|
|
|
9738
9738
|
get smoothedDeltaTime() {
|
|
9739
9739
|
return 1 / this._smoothedFps;
|
|
9740
9740
|
}
|
|
9741
|
-
clock = new
|
|
9741
|
+
clock = new PS();
|
|
9742
9742
|
_smoothedFps = 0;
|
|
9743
9743
|
_smoothedDeltaTime = 0;
|
|
9744
9744
|
_fpsSamples = [];
|
|
@@ -9758,10 +9758,10 @@ class WO {
|
|
|
9758
9758
|
}
|
|
9759
9759
|
}
|
|
9760
9760
|
let eb = !1;
|
|
9761
|
-
function
|
|
9761
|
+
function q0(s) {
|
|
9762
9762
|
eb || (eb = !0, VO(), HO());
|
|
9763
9763
|
}
|
|
9764
|
-
|
|
9764
|
+
q0();
|
|
9765
9765
|
function VO() {
|
|
9766
9766
|
const s = `
|
|
9767
9767
|
float startCompression = 0.8;
|
|
@@ -9908,7 +9908,7 @@ vec3 AgXToneMapping( vec3 color ) {
|
|
|
9908
9908
|
ei.tonemapping_pars_fragment = ei.tonemapping_pars_fragment.replace(o, s);
|
|
9909
9909
|
} else L() && console.error("Couldn't find AgXToneMapping in ShaderChunk.tonemapping_pars_fragment");
|
|
9910
9910
|
}
|
|
9911
|
-
function
|
|
9911
|
+
function X0(s) {
|
|
9912
9912
|
if (typeof s == "string")
|
|
9913
9913
|
switch (s = s.toLowerCase(), s) {
|
|
9914
9914
|
case "none":
|
|
@@ -10197,7 +10197,7 @@ class gn {
|
|
|
10197
10197
|
hideElementDuringXRSession(e) {
|
|
10198
10198
|
_g((t) => {
|
|
10199
10199
|
e["previous-display"] = e.style.display, e.style.display = "none";
|
|
10200
|
-
}),
|
|
10200
|
+
}), u0((t) => {
|
|
10201
10201
|
e["previous-display"] != null && (e.style.display = e["previous-display"]);
|
|
10202
10202
|
});
|
|
10203
10203
|
}
|
|
@@ -10212,11 +10212,11 @@ function Qd(s, e) {
|
|
|
10212
10212
|
for (let n = 0; n < i.length; n++)
|
|
10213
10213
|
e?.loadedCallback && i[n].addEventListener("load", e.loadedCallback);
|
|
10214
10214
|
}
|
|
10215
|
-
function
|
|
10215
|
+
function Q0() {
|
|
10216
10216
|
Qd("https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap");
|
|
10217
10217
|
}
|
|
10218
10218
|
const bm = "https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=block", Yd = "needle-logo-element";
|
|
10219
|
-
class
|
|
10219
|
+
class Y0 extends HTMLElement {
|
|
10220
10220
|
static get elementName() {
|
|
10221
10221
|
return Yd;
|
|
10222
10222
|
}
|
|
@@ -10294,7 +10294,7 @@ class Q0 extends HTMLElement {
|
|
|
10294
10294
|
this.ensureInitialized(), this.logoElement && (e === "full" ? (this.logoElement.src = E_, this.logoElement.classList.remove("with-text"), this.logoElement.classList.remove("compact")) : (this.logoElement.src = Xa, this.logoElement.classList.add("with-text"), this.logoElement.classList.add("compact")));
|
|
10295
10295
|
}
|
|
10296
10296
|
}
|
|
10297
|
-
customElements.get(Yd) || customElements.define(Yd,
|
|
10297
|
+
customElements.get(Yd) || customElements.define(Yd, Y0);
|
|
10298
10298
|
const sp = x("debugspatialmenu");
|
|
10299
10299
|
class QO {
|
|
10300
10300
|
_context;
|
|
@@ -10375,7 +10375,7 @@ class QO {
|
|
|
10375
10375
|
});
|
|
10376
10376
|
}
|
|
10377
10377
|
_menuTarget = new M();
|
|
10378
|
-
positionFilter = new
|
|
10378
|
+
positionFilter = new qv(90, 0.5);
|
|
10379
10379
|
updateMenu() {
|
|
10380
10380
|
const e = this.getMenu();
|
|
10381
10381
|
this.handleNeedleWatermark(), this._context.scene.add(e);
|
|
@@ -11148,12 +11148,12 @@ class Lu extends HTMLElement {
|
|
|
11148
11148
|
</div>
|
|
11149
11149
|
`;
|
|
11150
11150
|
const t = this.attachShadow({ mode: "open" });
|
|
11151
|
-
|
|
11151
|
+
Q0(), Qd(bm, { loadedCallback: () => {
|
|
11152
11152
|
this.handleSizeChange();
|
|
11153
11153
|
} }), Qd(bm, { element: t });
|
|
11154
11154
|
const i = e.content.cloneNode(!0);
|
|
11155
11155
|
t?.appendChild(i), this.root = t.querySelector("#root"), this.wrapper = this.root?.querySelector(".wrapper"), this.options = this.root?.querySelector(".options.main-container"), this.optionsCompactMode = this.root?.querySelector(".options.compact-only"), this.logoContainer = this.root?.querySelector(".logo"), this.compactMenuButton = this.root?.querySelector(".compact-menu-button"), this.compactMenuButton.append(zt("more_vert")), this.foldout = this.root?.querySelector(".foldout"), this.root?.appendChild(this.wrapper), this.wrapper.classList.add("wrapper");
|
|
11156
|
-
const n =
|
|
11156
|
+
const n = Y0.create();
|
|
11157
11157
|
n.setType("compact"), n.style.minHeight = "1rem", this.logoContainer.append(n), this.logoContainer.addEventListener("click", () => {
|
|
11158
11158
|
globalThis.open("https://needle.tools", "_blank");
|
|
11159
11159
|
});
|
|
@@ -11848,8 +11848,8 @@ class N {
|
|
|
11848
11848
|
const t = this.domElement?.shadowRoot?.querySelector("canvas");
|
|
11849
11849
|
t ? (e.canvas = t, Xe && console.log("Using canvas from shadow root", t)) : Xe && console.warn("No canvas found in shadow root, creating new canvas. This may cause input events to not work correctly. To fix this, make sure to use the canvas provided by the Needle Engine Web Component (e.g. by using context.createNewRenderer() without parameters or passing the canvas from the shadow root explicitly).");
|
|
11850
11850
|
}
|
|
11851
|
-
return Xe && console.log("Using Renderer Parameters:", e, this.domElement), this.renderer = new Ur(e), this.renderer.domElement.setAttribute("aria-label", "3D rendering"), this.renderer.domElement.setAttribute("role", "img"), this.renderer.debug.checkShaderErrors = L() || x("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = Ad, this.renderer.setClearColor(new re("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type =
|
|
11852
|
-
library: new
|
|
11851
|
+
return Xe && console.log("Using Renderer Parameters:", e, this.domElement), this.renderer = new Ur(e), this.renderer.domElement.setAttribute("aria-label", "3D rendering"), this.renderer.domElement.setAttribute("role", "img"), this.renderer.debug.checkShaderErrors = L() || x("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = Ad, this.renderer.setClearColor(new re("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = kS, this.renderer.setSize(this.domWidth, this.domHeight), this.renderer.outputColorSpace = js, this.renderer.nodes = {
|
|
11852
|
+
library: new OS(),
|
|
11853
11853
|
modelViewMatrix: null,
|
|
11854
11854
|
modelNormalViewMatrix: null
|
|
11855
11855
|
}, this.lodsManager.setRenderer(this.renderer), this.input.bindEvents(), kP(this, this.renderer.domElement), this.renderer;
|
|
@@ -12331,7 +12331,7 @@ Possible solutions:
|
|
|
12331
12331
|
this._accumulatedTime = 0;
|
|
12332
12332
|
}
|
|
12333
12333
|
if (this._stats?.begin(), N.Current = this, this.onHandlePaused()) return !1;
|
|
12334
|
-
for (N.Current = this, this.time.update(), JO && console.log("FPS", this.time.smoothedFps.toFixed(0)), Vd(this), fd(this.scene),
|
|
12334
|
+
for (N.Current = this, this.time.update(), JO && console.log("FPS", this.time.smoothedFps.toFixed(0)), Vd(this), fd(this.scene), O0(this), An(
|
|
12335
12335
|
this,
|
|
12336
12336
|
-1
|
|
12337
12337
|
/* Start */
|
|
@@ -12471,7 +12471,7 @@ Target Framerate: ` + this.targetFrameRate
|
|
|
12471
12471
|
renderNow(e) {
|
|
12472
12472
|
if (!e && (e = this.mainCamera, !e))
|
|
12473
12473
|
return !1;
|
|
12474
|
-
if (this.handleRendererContextLost(), this._isRendering = !0, this.renderRequiredTextures(), this.renderer.toneMapping !== Ad &&
|
|
12474
|
+
if (this.handleRendererContextLost(), this._isRendering = !0, this.renderRequiredTextures(), this.renderer.toneMapping !== Ad && q0(), this.composer && !this.isInXR) {
|
|
12475
12475
|
e && "setMainCamera" in this.composer && this.composer.passes[0]?.mainCamera != e && this.composer.setMainCamera(e);
|
|
12476
12476
|
const t = this.renderer.getClearColor(this._tempClearColor), i = this.renderer.getClearAlpha();
|
|
12477
12477
|
this._tempClearColor2.copy(t), this.renderer.setClearColor(t.convertSRGBToLinear(), this.renderer.getClearAlpha()), this.composer.render(this.time.deltaTime), this.renderer.setClearColor(this._tempClearColor2, i);
|
|
@@ -12552,7 +12552,7 @@ Target Framerate: ` + this.targetFrameRate
|
|
|
12552
12552
|
}
|
|
12553
12553
|
}
|
|
12554
12554
|
}
|
|
12555
|
-
function
|
|
12555
|
+
function K0(s, e) {
|
|
12556
12556
|
return Ns(s, ue.ContextCreated, e), () => Io(s, ue.ContextCreated);
|
|
12557
12557
|
}
|
|
12558
12558
|
function Z2(s, e) {
|
|
@@ -12573,7 +12573,7 @@ function eD(s, e) {
|
|
|
12573
12573
|
function tD(s, e) {
|
|
12574
12574
|
return Ns(s, Ce.OnAfterRender, e), () => Io(s, Ce.OnAfterRender);
|
|
12575
12575
|
}
|
|
12576
|
-
const Et = x("debuglicense"),
|
|
12576
|
+
const Et = x("debuglicense"), Z0 = [];
|
|
12577
12577
|
let wn = "basic";
|
|
12578
12578
|
Et && console.log("License Type: " + wn);
|
|
12579
12579
|
function Es() {
|
|
@@ -12596,10 +12596,10 @@ function Rs() {
|
|
|
12596
12596
|
function iM(s) {
|
|
12597
12597
|
if (Es() || Du() || Dg())
|
|
12598
12598
|
return s(!0);
|
|
12599
|
-
|
|
12599
|
+
Z0.push(s);
|
|
12600
12600
|
}
|
|
12601
12601
|
function Uh(s) {
|
|
12602
|
-
for (const e of
|
|
12602
|
+
for (const e of Z0)
|
|
12603
12603
|
try {
|
|
12604
12604
|
e(s);
|
|
12605
12605
|
} catch {
|
|
@@ -12615,7 +12615,7 @@ var di;
|
|
|
12615
12615
|
stack: a.reason?.stack,
|
|
12616
12616
|
timestamp: Date.now()
|
|
12617
12617
|
});
|
|
12618
|
-
}),
|
|
12618
|
+
}), K0(((a) => e(a)), { once: !0 });
|
|
12619
12619
|
function e(a) {
|
|
12620
12620
|
if (!t(a)) {
|
|
12621
12621
|
Et && console.debug("Telemetry is disabled via no-telemetry attribute");
|
|
@@ -12816,7 +12816,7 @@ function xm(s) {
|
|
|
12816
12816
|
background-size: 20px;
|
|
12817
12817
|
background-position: 10px 5px;
|
|
12818
12818
|
background-repeat:no-repeat;
|
|
12819
|
-
background-image:url('${
|
|
12819
|
+
background-image:url('${J0}');
|
|
12820
12820
|
background-max-size: 40px;
|
|
12821
12821
|
padding: 10px;
|
|
12822
12822
|
padding-left: 30px;
|
|
@@ -12862,7 +12862,7 @@ function xm(s) {
|
|
|
12862
12862
|
}, 1e3 * 60 * 5);
|
|
12863
12863
|
}, 2e4);
|
|
12864
12864
|
}
|
|
12865
|
-
const
|
|
12865
|
+
const J0 = "data:image/webp;base64,UklGRrABAABXRUJQVlA4WAoAAAAQAAAAHwAAHwAAQUxQSKEAAAARN6CmbSM4WR7vdARON11EBDq3fLiNbVtVzpMCPlKAEzsx0Y/x+Ovuv4dn0EFE/ydAvz6YggXzgh5sVgXM/zOC/4sii7qgGvB5N7hmuQYwkvazWAu1JPW41FXSHq6pnaQWvqYH18Fc0j1hO/BFTtIeSBlJi5w6qIIO7IOrwhFsB2Yxukif0FTRLpXswHR8MxbslKe9VZsn/Ub5C7YFOpqSTABWUDgg6AAAAFAGAJ0BKiAAIAA+7VyoTqmkpCI3+qgBMB2JbACdMt69DwMIQBLhkTO6XwY00UEDK6cNIDnuNibPf0EgAP7Y1myuiQHLDsF/0h5unrGh6WAbv7aegg2ZMd3uRKfT/3SJztcaujYfTvMXspfCTmYcoO6a+vhC3ss4M8uM58t4siiu59I4aOl59e9Sr6xoxYlHf2v+NnBNpJYeJf8jABQAId/PXuBkLEFkiCucgSGEcfhvajql/j3reCGl0M5/9gQWy7ayNPs+wlvIxFnNfSlfuND4CZOCyxOHhRqOmHN4ULHo3tCSrUNvgAA=";
|
|
12866
12866
|
let sb = 0;
|
|
12867
12867
|
async function rM(s) {
|
|
12868
12868
|
const e = Date.now();
|
|
@@ -12875,7 +12875,7 @@ async function rM(s) {
|
|
|
12875
12875
|
background-size: 20px;
|
|
12876
12876
|
background-position: 10px 5px;
|
|
12877
12877
|
background-repeat:no-repeat;
|
|
12878
|
-
background-image:url('${
|
|
12878
|
+
background-image:url('${J0}');
|
|
12879
12879
|
background-max-size: 40px;
|
|
12880
12880
|
margin-bottom: 5px;
|
|
12881
12881
|
margin-top: .3em;
|
|
@@ -12917,7 +12917,7 @@ async function aM(s) {
|
|
|
12917
12917
|
}
|
|
12918
12918
|
const lM = x("debugdecoders");
|
|
12919
12919
|
let rp = null;
|
|
12920
|
-
function
|
|
12920
|
+
function ew() {
|
|
12921
12921
|
if (!rp) {
|
|
12922
12922
|
const s = Jm(null);
|
|
12923
12923
|
rp = { dracoLoader: s.dracoLoader, ktx2Loader: s.ktx2Loader, meshoptDecoder: s.meshoptDecoder };
|
|
@@ -12925,20 +12925,20 @@ function J0() {
|
|
|
12925
12925
|
return rp;
|
|
12926
12926
|
}
|
|
12927
12927
|
function ob(s) {
|
|
12928
|
-
s !== void 0 && typeof s == "string" &&
|
|
12928
|
+
s !== void 0 && typeof s == "string" && uS(s);
|
|
12929
12929
|
}
|
|
12930
12930
|
function rb(s) {
|
|
12931
12931
|
if (s !== void 0 && typeof s == "string" && s !== "js") {
|
|
12932
|
-
const e =
|
|
12932
|
+
const e = ew();
|
|
12933
12933
|
lM && console.log("Setting draco decoder type to", s), e.dracoLoader.setDecoderConfig({ type: s });
|
|
12934
12934
|
}
|
|
12935
12935
|
}
|
|
12936
12936
|
function ab(s) {
|
|
12937
|
-
s !== void 0 && typeof s == "string" &&
|
|
12937
|
+
s !== void 0 && typeof s == "string" && dS(s);
|
|
12938
12938
|
}
|
|
12939
12939
|
function jg(s, e) {
|
|
12940
|
-
const t =
|
|
12941
|
-
return e.renderer ? t.ktx2Loader.detectSupport(e.renderer) : console.warn("No renderer provided to detect ktx2 support - loading KTX2 textures will probably fail"),
|
|
12940
|
+
const t = ew();
|
|
12941
|
+
return e.renderer ? t.ktx2Loader.detectSupport(e.renderer) : console.warn("No renderer provided to detect ktx2 support - loading KTX2 textures will probably fail"), cS(s), s.dracoLoader || s.setDRACOLoader(t.dracoLoader), s.ktx2Loader || s.setKTX2Loader(t.ktx2Loader), s.meshoptDecoder || s.setMeshoptDecoder(t.meshoptDecoder), hS(s, {
|
|
12942
12942
|
progressive: !0
|
|
12943
12943
|
}), s;
|
|
12944
12944
|
}
|
|
@@ -13088,7 +13088,7 @@ class C extends M {
|
|
|
13088
13088
|
* @param processStart Whether to process the start callbacks if being activated
|
|
13089
13089
|
*/
|
|
13090
13090
|
static setActive(e, t, i = !0) {
|
|
13091
|
-
e && (yd(e, t), fd(e), t && i &&
|
|
13091
|
+
e && (yd(e, t), fd(e), t && i && O0(N.Current, e));
|
|
13092
13092
|
}
|
|
13093
13093
|
/**
|
|
13094
13094
|
* Checks if the GameObject itself is active (same as go.visible)
|
|
@@ -13139,7 +13139,7 @@ class C extends M {
|
|
|
13139
13139
|
* @returns The newly created instance or null if creation failed
|
|
13140
13140
|
*/
|
|
13141
13141
|
static instantiateSynced(e, t) {
|
|
13142
|
-
return e ?
|
|
13142
|
+
return e ? R0(e, t) : null;
|
|
13143
13143
|
}
|
|
13144
13144
|
static instantiate(e, t = null) {
|
|
13145
13145
|
return "isAssetReference" in e, Ar(e, t);
|
|
@@ -13241,7 +13241,7 @@ class C extends M {
|
|
|
13241
13241
|
* @returns The removed component
|
|
13242
13242
|
*/
|
|
13243
13243
|
static removeComponent(e) {
|
|
13244
|
-
return
|
|
13244
|
+
return z0(e.gameObject, e), e;
|
|
13245
13245
|
}
|
|
13246
13246
|
/**
|
|
13247
13247
|
* Gets or adds a component of the specified type
|
|
@@ -13278,7 +13278,7 @@ class C extends M {
|
|
|
13278
13278
|
* @returns The found GameObject or Component, or null/undefined if not found
|
|
13279
13279
|
*/
|
|
13280
13280
|
static findByGuid(e, t) {
|
|
13281
|
-
return
|
|
13281
|
+
return $0(e, t);
|
|
13282
13282
|
}
|
|
13283
13283
|
/**
|
|
13284
13284
|
* Finds the first object of the specified component type in the scene
|
|
@@ -13672,20 +13672,20 @@ class R {
|
|
|
13672
13672
|
* @param w W component of the quaternion
|
|
13673
13673
|
*/
|
|
13674
13674
|
setWorldQuaternion(e, t, i, n) {
|
|
13675
|
-
|
|
13675
|
+
Qv(this.gameObject, e, t, i, n);
|
|
13676
13676
|
}
|
|
13677
13677
|
/**
|
|
13678
13678
|
* Gets the rotation of this component's GameObject in world space as Euler angles (in radians)
|
|
13679
13679
|
*/
|
|
13680
13680
|
get worldEuler() {
|
|
13681
|
-
return
|
|
13681
|
+
return Yv(this.gameObject);
|
|
13682
13682
|
}
|
|
13683
13683
|
/**
|
|
13684
13684
|
* Sets the rotation of this component's GameObject in world space using Euler angles (in radians)
|
|
13685
13685
|
* @param val The world rotation Euler angles to set
|
|
13686
13686
|
*/
|
|
13687
13687
|
set worldEuler(e) {
|
|
13688
|
-
|
|
13688
|
+
Kv(this.gameObject, e);
|
|
13689
13689
|
}
|
|
13690
13690
|
/**
|
|
13691
13691
|
* Gets the rotation of this component's GameObject in world space as Euler angles (in degrees)
|
|
@@ -13775,7 +13775,7 @@ const sD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
13775
13775
|
Component: R,
|
|
13776
13776
|
GameObject: C
|
|
13777
13777
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
13778
|
-
var uM = Object.defineProperty,
|
|
13778
|
+
var uM = Object.defineProperty, tw = (s, e, t, i) => {
|
|
13779
13779
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
13780
13780
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
13781
13781
|
return n && uM(e, t, n), n;
|
|
@@ -13795,10 +13795,10 @@ class ju extends R {
|
|
|
13795
13795
|
this._centerPos.copy(e), this._centerPos.add(t), this._centerPos.multiplyScalar(0.5), Rt(this.gameObject, this.centered ? this._centerPos : e), this.gameObject.lookAt(te(this.to).clone()), this.gameObject.scale.set(this.width, this.width, i);
|
|
13796
13796
|
}
|
|
13797
13797
|
}
|
|
13798
|
-
|
|
13798
|
+
tw([
|
|
13799
13799
|
u(C)
|
|
13800
13800
|
], ju.prototype, "from");
|
|
13801
|
-
|
|
13801
|
+
tw([
|
|
13802
13802
|
u(C)
|
|
13803
13803
|
], ju.prototype, "to");
|
|
13804
13804
|
var fM = Object.defineProperty, pM = Object.getOwnPropertyDescriptor, Hr = (s, e, t, i) => {
|
|
@@ -13807,7 +13807,7 @@ var fM = Object.defineProperty, pM = Object.getOwnPropertyDescriptor, Hr = (s, e
|
|
|
13807
13807
|
return i && n && fM(e, t, n), n;
|
|
13808
13808
|
};
|
|
13809
13809
|
const Ks = x("debuganimation");
|
|
13810
|
-
let
|
|
13810
|
+
let iw = class {
|
|
13811
13811
|
x;
|
|
13812
13812
|
y;
|
|
13813
13813
|
};
|
|
@@ -14045,7 +14045,7 @@ class ii extends R {
|
|
|
14045
14045
|
const r = e.getClip();
|
|
14046
14046
|
e.time = F.lerp(t.minMaxOffsetNormalized.x, t.minMaxOffsetNormalized.y, Math.random()) * r.duration;
|
|
14047
14047
|
} else e.time >= e.getClip().duration && (e.time = 0);
|
|
14048
|
-
t?.minMaxSpeed ? e.timeScale = F.lerp(t.minMaxSpeed.x, t.minMaxSpeed.y, Math.random()) : e.timeScale = t?.speed ?? 1, t?.loop != null ? e.loop = t.loop ?
|
|
14048
|
+
t?.minMaxSpeed ? e.timeScale = F.lerp(t.minMaxSpeed.x, t.minMaxSpeed.y, Math.random()) : e.timeScale = t?.speed ?? 1, t?.loop != null ? e.loop = t.loop ? MS : Hp : e.loop = Hp, t?.clampWhenFinished && (e.clampWhenFinished = !0), e.paused = !1, e.play(), window.requestAnimationFrame(() => Fs.testIfRootCanAnimate(e)), Ks && console.log("PLAY", e.getClip().name, e);
|
|
14049
14049
|
const o = new mM(e, this.mixer, t, (r) => {
|
|
14050
14050
|
this._handles.splice(this._handles.indexOf(o), 1);
|
|
14051
14051
|
});
|
|
@@ -14071,10 +14071,10 @@ Hr([
|
|
|
14071
14071
|
u()
|
|
14072
14072
|
], ii.prototype, "randomStartTime", 2);
|
|
14073
14073
|
Hr([
|
|
14074
|
-
u(
|
|
14074
|
+
u(iw)
|
|
14075
14075
|
], ii.prototype, "minMaxSpeed", 2);
|
|
14076
14076
|
Hr([
|
|
14077
|
-
u(
|
|
14077
|
+
u(iw)
|
|
14078
14078
|
], ii.prototype, "minMaxOffsetNormalized", 2);
|
|
14079
14079
|
Hr([
|
|
14080
14080
|
u()
|
|
@@ -14169,7 +14169,7 @@ function yM(s, e) {
|
|
|
14169
14169
|
clip: new Mi(s, 0, [])
|
|
14170
14170
|
};
|
|
14171
14171
|
}
|
|
14172
|
-
var dr = /* @__PURE__ */ ((s) => (s[s.If = 1] = "If", s[s.IfNot = 2] = "IfNot", s[s.Greater = 3] = "Greater", s[s.Less = 4] = "Less", s[s.Equals = 6] = "Equals", s[s.NotEqual = 7] = "NotEqual", s))(dr || {}),
|
|
14172
|
+
var dr = /* @__PURE__ */ ((s) => (s[s.If = 1] = "If", s[s.IfNot = 2] = "IfNot", s[s.Greater = 3] = "Greater", s[s.Less = 4] = "Less", s[s.Equals = 6] = "Equals", s[s.NotEqual = 7] = "NotEqual", s))(dr || {}), nw = /* @__PURE__ */ ((s) => (s[s.Float = 1] = "Float", s[s.Int = 3] = "Int", s[s.Bool = 4] = "Bool", s[s.Trigger = 9] = "Trigger", s))(nw || {});
|
|
14173
14173
|
const ot = x("debuganimatorcontroller"), $h = x("debugrootmotion");
|
|
14174
14174
|
class xn {
|
|
14175
14175
|
/**
|
|
@@ -14553,7 +14553,7 @@ class xn {
|
|
|
14553
14553
|
if (o.hasExitTime ? i.timeScale > 0 ? h = l >= o.exitTime : i.timeScale < 0 && (h = 1 - l >= o.exitTime) : h = !0, h) {
|
|
14554
14554
|
for (const d of o.conditions) {
|
|
14555
14555
|
const f = this.model.parameters.find((p) => p.name === d.parameter);
|
|
14556
|
-
f?.type ===
|
|
14556
|
+
f?.type === nw.Trigger && f.value && (f.value = !1);
|
|
14557
14557
|
}
|
|
14558
14558
|
if (i.clampWhenFinished = !0, ot) {
|
|
14559
14559
|
const d = this.getState(o.destinationState, 0);
|
|
@@ -15170,7 +15170,7 @@ class xs extends Qn {
|
|
|
15170
15170
|
static _userSet = /* @__PURE__ */ new Set();
|
|
15171
15171
|
onBeforeRender() {
|
|
15172
15172
|
xs._userSet.clear();
|
|
15173
|
-
const e =
|
|
15173
|
+
const e = S0(this.texture, !0, null, xs._userSet);
|
|
15174
15174
|
for (const t of e)
|
|
15175
15175
|
t instanceof H && (t[fb] = t.visible, t.visible = !1);
|
|
15176
15176
|
}
|
|
@@ -15274,7 +15274,7 @@ class $s extends R {
|
|
|
15274
15274
|
console.error("Error creating three GroundProjection", o);
|
|
15275
15275
|
return;
|
|
15276
15276
|
}
|
|
15277
|
-
this._projection.position.y = this._height - i, this._projection.name = "GroundProjection",
|
|
15277
|
+
this._projection.position.y = this._height - i, this._projection.name = "GroundProjection", Zv(this._projection, !1);
|
|
15278
15278
|
} else
|
|
15279
15279
|
t = !1;
|
|
15280
15280
|
if (this._projection.parent || this.gameObject.add(this._projection), this.autoFit && t) {
|
|
@@ -15487,7 +15487,7 @@ let Pr = class {
|
|
|
15487
15487
|
return e.prep(4, 12), e.writeFloat32(n), e.writeFloat32(i), e.writeFloat32(t), e.offset();
|
|
15488
15488
|
}
|
|
15489
15489
|
};
|
|
15490
|
-
class
|
|
15490
|
+
class sw {
|
|
15491
15491
|
bb = null;
|
|
15492
15492
|
bb_pos = 0;
|
|
15493
15493
|
__init(e, t) {
|
|
@@ -15519,7 +15519,7 @@ class bs {
|
|
|
15519
15519
|
return (t || new bs()).__init(e.readInt32(e.position()) + e.position(), e);
|
|
15520
15520
|
}
|
|
15521
15521
|
static getSizePrefixedRootAsSyncedTransformModel(e, t) {
|
|
15522
|
-
return e.setPosition(e.position() +
|
|
15522
|
+
return e.setPosition(e.position() + Dv), (t || new bs()).__init(e.readInt32(e.position()) + e.position(), e);
|
|
15523
15523
|
}
|
|
15524
15524
|
guid(e) {
|
|
15525
15525
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -15534,7 +15534,7 @@ class bs {
|
|
|
15534
15534
|
}
|
|
15535
15535
|
transform(e) {
|
|
15536
15536
|
const t = this.bb.__offset(this.bb_pos, 8);
|
|
15537
|
-
return t ? (e || new
|
|
15537
|
+
return t ? (e || new sw()).__init(this.bb_pos + t, this.bb) : null;
|
|
15538
15538
|
}
|
|
15539
15539
|
/**
|
|
15540
15540
|
* if the server should not save this info
|
|
@@ -16008,14 +16008,14 @@ let et = pi;
|
|
|
16008
16008
|
new _();
|
|
16009
16009
|
new _();
|
|
16010
16010
|
const ro = x("debugsync"), zc = "STRS";
|
|
16011
|
-
|
|
16011
|
+
g0(zc, bs.getRootAsSyncedTransformModel);
|
|
16012
16012
|
const In = new hg();
|
|
16013
|
-
function
|
|
16013
|
+
function ow(s, e, t = !0) {
|
|
16014
16014
|
In.clear();
|
|
16015
16015
|
const i = In.createString(s);
|
|
16016
16016
|
bs.startSyncedTransformModel(In), bs.addGuid(In, i), bs.addFast(In, t);
|
|
16017
16017
|
const n = e.worldPosition, o = e.worldEuler, r = e.gameObject.scale;
|
|
16018
|
-
bs.addTransform(In,
|
|
16018
|
+
bs.addTransform(In, sw.createTransform(In, n.x, n.y, n.z, o.x, o.y, o.z, r.x, r.y, r.z));
|
|
16019
16019
|
const a = bs.endSyncedTransformModel(In);
|
|
16020
16020
|
return In.finish(a, zc), In.asUint8Array();
|
|
16021
16021
|
}
|
|
@@ -16092,11 +16092,11 @@ class Jn extends R {
|
|
|
16092
16092
|
receivedDataCallback = null;
|
|
16093
16093
|
/** @internal */
|
|
16094
16094
|
awake() {
|
|
16095
|
-
ro && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new _(), this._targetRotation = new V(), this.lastPosition = new _(), this.lastRotation = new V(), this.lastScale = new _(), this.rb = C.getComponentInChildren(this.gameObject, et), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new
|
|
16095
|
+
ro && console.log("new instance", this.guid, this), this._receivedDataBefore = !1, this._targetPosition = new _(), this._targetRotation = new V(), this.lastPosition = new _(), this.lastRotation = new V(), this.lastScale = new _(), this.rb = C.getComponentInChildren(this.gameObject, et), this.rb && (this._wasKinematic = this.rb.isKinematic), this.receivedUpdate = !0, this._model = new y0(this.context.connection, this.guid), this.context.connection.isConnected && this.tryGetLastState(), this.joinedRoomCallback = this.tryGetLastState.bind(this), this.context.connection.beginListen(ie.JoinedRoom, this.joinedRoomCallback), this.receivedDataCallback = this.onReceivedData.bind(this), this.context.connection.beginListenBinary(zc, this.receivedDataCallback);
|
|
16096
16096
|
}
|
|
16097
16097
|
/** @internal */
|
|
16098
16098
|
onDestroy() {
|
|
16099
|
-
this.syncDestroy &&
|
|
16099
|
+
this.syncDestroy && E0(this.guid, this.context.connection), this._model = null, this.context.connection.stopListen(ie.JoinedRoom, this.joinedRoomCallback), this.context.connection.stopListenBinary(zc, this.receivedDataCallback);
|
|
16100
16100
|
}
|
|
16101
16101
|
/**
|
|
16102
16102
|
* Attempts to retrieve and apply the last known network state for this transform
|
|
@@ -16119,7 +16119,7 @@ class Jn extends R {
|
|
|
16119
16119
|
const i = t.position();
|
|
16120
16120
|
i && (this.interpolatePosition && this._targetPosition?.set(i.x(), i.y(), i.z()), (!this.interpolatePosition || !this._receivedDataBefore) && this.setWorldPosition(i.x(), i.y(), i.z()));
|
|
16121
16121
|
const n = t.rotation();
|
|
16122
|
-
n && (this.tempEuler.set(n.x(), n.y(), n.z()), this.interpolateRotation && this._targetRotation.setFromEuler(this.tempEuler), (!this.interpolateRotation || !this._receivedDataBefore) &&
|
|
16122
|
+
n && (this.tempEuler.set(n.x(), n.y(), n.z()), this.interpolateRotation && this._targetRotation.setFromEuler(this.tempEuler), (!this.interpolateRotation || !this._receivedDataBefore) && Kv(this.gameObject, this.tempEuler));
|
|
16123
16123
|
const o = t.scale();
|
|
16124
16124
|
o && this.gameObject.scale.set(o.x(), o.y(), o.z());
|
|
16125
16125
|
}
|
|
@@ -16181,7 +16181,7 @@ class Jn extends R {
|
|
|
16181
16181
|
if (this._needsUpdate && (this.context.time.frameCount % n === 0 || o)) {
|
|
16182
16182
|
if (Sm++, o && vc > 0 && this.context.time.frameCount % vc !== 0) return;
|
|
16183
16183
|
ro && console.debug("[SyncedTransform] Send update", this.context.connection.connectionId, this.guid, this.gameObject.name, this.gameObject.guid), this._needsUpdate = !1;
|
|
16184
|
-
const r =
|
|
16184
|
+
const r = ow(this.guid, this, !!o);
|
|
16185
16185
|
this.context.connection.sendBinary(r);
|
|
16186
16186
|
}
|
|
16187
16187
|
}
|
|
@@ -16660,7 +16660,7 @@ class UM extends sn {
|
|
|
16660
16660
|
onDeserialize(e, t) {
|
|
16661
16661
|
if (e instanceof xe && t.type === xs) {
|
|
16662
16662
|
let i = e;
|
|
16663
|
-
Zd.has(i) && (i = Zd.get(i)), i.isRenderTargetTexture = !0, i.flipY = !0, i.offset.y = 1, i.repeat.y = -1, i.needsUpdate = !0, i.mipmaps = [], i instanceof
|
|
16663
|
+
Zd.has(i) && (i = Zd.get(i)), i.isRenderTargetTexture = !0, i.flipY = !0, i.offset.y = 1, i.repeat.y = -1, i.needsUpdate = !0, i.mipmaps = [], i instanceof ES && (i.isCompressedTexture = !1, i.format = _u);
|
|
16664
16664
|
const n = new xs(i.image.width, i.image.height, {
|
|
16665
16665
|
colorSpace: Ds
|
|
16666
16666
|
});
|
|
@@ -16736,7 +16736,7 @@ class el extends Uc {
|
|
|
16736
16736
|
return this.context.physics.sphereOverlap(t, 0.015, !1, !0);
|
|
16737
16737
|
}
|
|
16738
16738
|
}
|
|
16739
|
-
class
|
|
16739
|
+
class rw {
|
|
16740
16740
|
/** returns the real object when dealing with shadow UI */
|
|
16741
16741
|
static getObject(e) {
|
|
16742
16742
|
const t = e[xi];
|
|
@@ -16811,7 +16811,7 @@ function HM(s, e, t = Ce.OnBeforeRender) {
|
|
|
16811
16811
|
}
|
|
16812
16812
|
const ao = x("debugeventsystem");
|
|
16813
16813
|
var Pm = /* @__PURE__ */ ((s) => (s.BeforeHandleInput = "BeforeHandleInput", s.AfterHandleInput = "AfterHandleInput", s))(Pm || {});
|
|
16814
|
-
|
|
16814
|
+
K0((s) => {
|
|
16815
16815
|
ui.createIfNoneExists(s);
|
|
16816
16816
|
});
|
|
16817
16817
|
class ui extends R {
|
|
@@ -17005,7 +17005,7 @@ class ui extends R {
|
|
|
17005
17005
|
if (i[xi]) {
|
|
17006
17006
|
const d = i[xi].gameObject;
|
|
17007
17007
|
if (d) {
|
|
17008
|
-
if (!
|
|
17008
|
+
if (!rw.isInteractable(d, this.out)) return !1;
|
|
17009
17009
|
o = this.out.canvasGroup ?? null, this.handleMeshUIIntersection(e, h), e = d;
|
|
17010
17010
|
}
|
|
17011
17011
|
}
|
|
@@ -17562,7 +17562,7 @@ class ye extends R {
|
|
|
17562
17562
|
return (L() || Lt) && console.warn("[OrbitControls] setCameraAndLookTarget target is not an Object3D or Camera"), !1;
|
|
17563
17563
|
e instanceof Pi && (e = e.gameObject);
|
|
17564
17564
|
const i = e.worldPosition, n = e.worldForward;
|
|
17565
|
-
e instanceof
|
|
17565
|
+
e instanceof RS && (Lt && console.debug("[OrbitControls] setCameraAndLookTarget flip forward direction for camera"), n.multiplyScalar(-1));
|
|
17566
17566
|
const o = new Is(i, n);
|
|
17567
17567
|
return Lt && z.DrawRay(o.origin, o.direction, 16711680, 10), this.setTargetFromRaycast(o, t) || this.setLookTargetPosition(o.at(2, U()), t), this.setCameraTargetPosition(i, t), !0;
|
|
17568
17568
|
}
|
|
@@ -18166,7 +18166,7 @@ class yo extends R {
|
|
|
18166
18166
|
* @returns The {@link three#AudioListener} instance
|
|
18167
18167
|
*/
|
|
18168
18168
|
get listener() {
|
|
18169
|
-
return this._listener == null && (this._listener = new
|
|
18169
|
+
return this._listener == null && (this._listener = new TS()), this._listener;
|
|
18170
18170
|
}
|
|
18171
18171
|
_listener = null;
|
|
18172
18172
|
/**
|
|
@@ -18331,7 +18331,7 @@ const St = x("debugaudio"), on = class co extends R {
|
|
|
18331
18331
|
get Sound() {
|
|
18332
18332
|
if (!this.sound && co.userInteractionRegistered) {
|
|
18333
18333
|
let e = this.gameObject.getComponent(yo) ?? this.context.mainCamera.getComponent(yo) ?? Yc(yo, this.context, !1);
|
|
18334
|
-
!e && this.context.mainCamera && (e = this.context.mainCamera.addComponent(yo)), e?.listener ? (this.sound = new
|
|
18334
|
+
!e && this.context.mainCamera && (e = this.context.mainCamera.addComponent(yo)), e?.listener ? (this.sound = new AS(e.listener), this.gameObject?.add(this.sound)) : St && console.warn("No audio listener found in scene - can not play audio");
|
|
18335
18335
|
}
|
|
18336
18336
|
return this.sound;
|
|
18337
18337
|
}
|
|
@@ -18631,7 +18631,7 @@ class tu extends R {
|
|
|
18631
18631
|
awake() {
|
|
18632
18632
|
if (this.avatar = C.getComponentInParent(this.gameObject, ze), this.avatar) {
|
|
18633
18633
|
const e = C.getComponentInParent(this.gameObject, ze);
|
|
18634
|
-
this._model = new
|
|
18634
|
+
this._model = new y0(this.context.connection, this.guid), e?.isLocalAvatar && this._model.requestOwnership();
|
|
18635
18635
|
}
|
|
18636
18636
|
this.context.connection.beginListen("avatar-look-target-changed", (e) => {
|
|
18637
18637
|
this.target && e && e.guid === this.avatar?.guid && Rt(this.target, e.position);
|
|
@@ -18659,7 +18659,7 @@ class tu extends R {
|
|
|
18659
18659
|
}
|
|
18660
18660
|
const Be = x("debugnetworkingstreams");
|
|
18661
18661
|
var Ss = /* @__PURE__ */ ((s) => (s.Connected = "peer-user-connected", s.StreamReceived = "receive-stream", s.StreamEnded = "call-ended", s.Disconnected = "peer-user-disconnected", s.UserJoined = "user-joined", s))(Ss || {});
|
|
18662
|
-
class
|
|
18662
|
+
class aw {
|
|
18663
18663
|
type = "call-ended";
|
|
18664
18664
|
userId;
|
|
18665
18665
|
direction;
|
|
@@ -18718,7 +18718,7 @@ Video:`, o.getVideoTracks()), this._stream = o, i === "incoming") {
|
|
|
18718
18718
|
this.dispatchEvent(r);
|
|
18719
18719
|
}
|
|
18720
18720
|
}), t.on("close", () => {
|
|
18721
|
-
this.dispatchEvent(new
|
|
18721
|
+
this.dispatchEvent(new aw(e, i));
|
|
18722
18722
|
});
|
|
18723
18723
|
}
|
|
18724
18724
|
}
|
|
@@ -18874,7 +18874,7 @@ Incoming:`, this._incomingCalls), o;
|
|
|
18874
18874
|
}), e.on("close", () => {
|
|
18875
18875
|
Be && console.log("Call ended", e.metadata);
|
|
18876
18876
|
const l = r.indexOf(a);
|
|
18877
|
-
l !== -1 && r.splice(l, 1), a.close(), this.dispatchEvent(new
|
|
18877
|
+
l !== -1 && r.splice(l, 1), a.close(), this.dispatchEvent(new aw(o, t));
|
|
18878
18878
|
}), a.addEventListener("call-ended", (l) => {
|
|
18879
18879
|
this.dispatchEvent(l);
|
|
18880
18880
|
}), t === "incoming" && (a.addEventListener("receive-stream", (l) => {
|
|
@@ -18909,7 +18909,7 @@ class zu extends og {
|
|
|
18909
18909
|
*/
|
|
18910
18910
|
debug = !1;
|
|
18911
18911
|
constructor(e, t) {
|
|
18912
|
-
if (super(),
|
|
18912
|
+
if (super(), c0(e)) {
|
|
18913
18913
|
const i = e;
|
|
18914
18914
|
e = i.context, t = _o.getOrCreate(i.context, i.guid);
|
|
18915
18915
|
} else typeof t == "string" && (t = _o.getOrCreate(e, t));
|
|
@@ -19207,7 +19207,7 @@ $g([
|
|
|
19207
19207
|
$g([
|
|
19208
19208
|
u()
|
|
19209
19209
|
], Gr.prototype, "createMenuButton");
|
|
19210
|
-
var dE = Object.defineProperty,
|
|
19210
|
+
var dE = Object.defineProperty, lw = (s, e, t, i) => {
|
|
19211
19211
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
19212
19212
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
19213
19213
|
return n && dE(e, t, n), n;
|
|
@@ -19269,13 +19269,13 @@ class Uu extends R {
|
|
|
19269
19269
|
// });
|
|
19270
19270
|
// }
|
|
19271
19271
|
}
|
|
19272
|
-
|
|
19272
|
+
lw([
|
|
19273
19273
|
u(M)
|
|
19274
19274
|
], Uu.prototype, "idle");
|
|
19275
|
-
|
|
19275
|
+
lw([
|
|
19276
19276
|
u(M)
|
|
19277
19277
|
], Uu.prototype, "talking");
|
|
19278
|
-
class
|
|
19278
|
+
class cw extends R {
|
|
19279
19279
|
voip = null;
|
|
19280
19280
|
marker = null;
|
|
19281
19281
|
_startPosition = null;
|
|
@@ -19296,8 +19296,8 @@ var fE = Object.defineProperty, pE = (s, e, t, i) => {
|
|
|
19296
19296
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
19297
19297
|
return n && fE(e, t, n), n;
|
|
19298
19298
|
};
|
|
19299
|
-
const ga = x("debugxrflags"),
|
|
19300
|
-
|
|
19299
|
+
const ga = x("debugxrflags"), hw = x("disablexrflags");
|
|
19300
|
+
hw && console.warn("XRFlags are disabled");
|
|
19301
19301
|
var vs = /* @__PURE__ */ ((s) => (s[s.Never = 0] = "Never", s[s.Browser = 1] = "Browser", s[s.AR = 2] = "AR", s[s.VR = 4] = "VR", s[s.FirstPerson = 8] = "FirstPerson", s[s.ThirdPerson = 16] = "ThirdPerson", s[s.All = 4294967295] = "All", s))(vs || {});
|
|
19302
19302
|
class hi {
|
|
19303
19303
|
static Global = new hi();
|
|
@@ -19324,7 +19324,7 @@ class hi {
|
|
|
19324
19324
|
this.Mask = 0, mn.Apply();
|
|
19325
19325
|
}
|
|
19326
19326
|
}
|
|
19327
|
-
const
|
|
19327
|
+
const dw = class ds extends R {
|
|
19328
19328
|
static registry = [];
|
|
19329
19329
|
static Apply() {
|
|
19330
19330
|
for (const e of this.registry) e.UpdateVisible(hi.Global);
|
|
@@ -19346,7 +19346,7 @@ const hw = class ds extends R {
|
|
|
19346
19346
|
return this.gameObject.visible;
|
|
19347
19347
|
}
|
|
19348
19348
|
UpdateVisible(e = null) {
|
|
19349
|
-
if (
|
|
19349
|
+
if (hw)
|
|
19350
19350
|
return;
|
|
19351
19351
|
let t;
|
|
19352
19352
|
const i = e;
|
|
@@ -19361,8 +19361,8 @@ const hw = class ds extends R {
|
|
|
19361
19361
|
};
|
|
19362
19362
|
pE([
|
|
19363
19363
|
u()
|
|
19364
|
-
],
|
|
19365
|
-
let mn =
|
|
19364
|
+
], dw.prototype, "visibleIn");
|
|
19365
|
+
let mn = dw;
|
|
19366
19366
|
var mE = Object.defineProperty, Nu = (s, e, t, i) => {
|
|
19367
19367
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
19368
19368
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -19404,7 +19404,7 @@ var gE = Object.defineProperty, Wg = (s, e, t, i) => {
|
|
|
19404
19404
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
19405
19405
|
return n && gE(e, t, n), n;
|
|
19406
19406
|
};
|
|
19407
|
-
const $u = class
|
|
19407
|
+
const $u = class uw extends R {
|
|
19408
19408
|
head = null;
|
|
19409
19409
|
eyes = null;
|
|
19410
19410
|
target = null;
|
|
@@ -19424,7 +19424,7 @@ const $u = class dw extends R {
|
|
|
19424
19424
|
this.currentTargetPoint.lerp(i, this.context.time.deltaTime / 0.1);
|
|
19425
19425
|
const n = te(this.head), o = this.vec.copy(this.currentTargetPoint).sub(n).normalize();
|
|
19426
19426
|
if (o.length() < 0.1) return;
|
|
19427
|
-
const r =
|
|
19427
|
+
const r = uw.forward;
|
|
19428
19428
|
if (r.set(0, 0, 1), r.applyQuaternion(ve(this.head)), r.dot(o) > 0.45)
|
|
19429
19429
|
for (let l = 0; l < t.length; l++)
|
|
19430
19430
|
t[l].lookAt(this.currentTargetPoint);
|
|
@@ -19441,7 +19441,7 @@ Wg([
|
|
|
19441
19441
|
Wg([
|
|
19442
19442
|
u(M)
|
|
19443
19443
|
], $u.prototype, "target");
|
|
19444
|
-
let
|
|
19444
|
+
let fw = $u;
|
|
19445
19445
|
var yE = Object.defineProperty, Vg = (s, e, t, i) => {
|
|
19446
19446
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
19447
19447
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -19478,7 +19478,7 @@ Vg([
|
|
|
19478
19478
|
Vg([
|
|
19479
19479
|
u()
|
|
19480
19480
|
], eh.prototype, "isGizmo");
|
|
19481
|
-
class
|
|
19481
|
+
class pw extends R {
|
|
19482
19482
|
from;
|
|
19483
19483
|
to;
|
|
19484
19484
|
hint;
|
|
@@ -19651,7 +19651,7 @@ class th extends On {
|
|
|
19651
19651
|
* Removes scale change monitoring when the collider is disabled.
|
|
19652
19652
|
*/
|
|
19653
19653
|
onDisable() {
|
|
19654
|
-
super.onDisable(),
|
|
19654
|
+
super.onDisable(), zv(this.gameObject.scale, this.updateProperties);
|
|
19655
19655
|
}
|
|
19656
19656
|
/**
|
|
19657
19657
|
* Updates collider properties when validated in the editor or inspector.
|
|
@@ -19667,7 +19667,7 @@ mi([
|
|
|
19667
19667
|
mi([
|
|
19668
19668
|
u(_)
|
|
19669
19669
|
], th.prototype, "center");
|
|
19670
|
-
const Hg = class
|
|
19670
|
+
const Hg = class mw extends On {
|
|
19671
19671
|
/**
|
|
19672
19672
|
* Creates and adds a BoxCollider to the given object.
|
|
19673
19673
|
* @param obj The object to add the collider to
|
|
@@ -19675,7 +19675,7 @@ const Hg = class pw extends On {
|
|
|
19675
19675
|
* @returns The newly created BoxCollider
|
|
19676
19676
|
*/
|
|
19677
19677
|
static add(e, t) {
|
|
19678
|
-
const i = qn(e,
|
|
19678
|
+
const i = qn(e, mw);
|
|
19679
19679
|
return i.autoFit(), t?.rigidbody === !0 && qn(e, et, { isKinematic: !1 }), i;
|
|
19680
19680
|
}
|
|
19681
19681
|
size = new _(1, 1, 1);
|
|
@@ -19692,7 +19692,7 @@ const Hg = class pw extends On {
|
|
|
19692
19692
|
* @internal
|
|
19693
19693
|
*/
|
|
19694
19694
|
onDisable() {
|
|
19695
|
-
super.onDisable(),
|
|
19695
|
+
super.onDisable(), zv(this.gameObject.scale, this.updateProperties);
|
|
19696
19696
|
}
|
|
19697
19697
|
/**
|
|
19698
19698
|
* Updates collider properties when validated in the editor or inspector.
|
|
@@ -20043,7 +20043,7 @@ const Xr = class ic extends R {
|
|
|
20043
20043
|
side: wu
|
|
20044
20044
|
})).translateY(-1e-4), this.occluderMesh.renderOrder = -100, this.occluderMesh.layers.set(2), this.shadowsRoot.add(this.occluderMesh), this.blurPlane = new H(e), this.blurPlane.visible = !1, this.shadowGroup.add(this.blurPlane);
|
|
20045
20045
|
const i = 0, n = 1;
|
|
20046
|
-
this.shadowCamera = new pu(-1 / 2, 1 / 2, 1 / 2, -1 / 2, i, n), this.shadowCamera.layers.enableAll(), this.shadowCamera.rotation.x = Math.PI / 2, this.shadowCamera.matrixWorldAutoUpdate = !1, this.shadowGroup.add(this.shadowCamera), this.shadowCamera.updateMatrix(), this.depthMaterial = new
|
|
20046
|
+
this.shadowCamera = new pu(-1 / 2, 1 / 2, 1 / 2, -1 / 2, i, n), this.shadowCamera.layers.enableAll(), this.shadowCamera.rotation.x = Math.PI / 2, this.shadowCamera.matrixWorldAutoUpdate = !1, this.shadowGroup.add(this.shadowCamera), this.shadowCamera.updateMatrix(), this.depthMaterial = new IS(), this.depthMaterial.userData.darkness = { value: this.darkness }, this.depthMaterial.blending = LS, this.depthMaterial.blendEquation = DS, this.depthMaterial.onBeforeCompile = (o) => {
|
|
20047
20047
|
this.depthMaterial && (o.uniforms.darkness = this.depthMaterial.userData.darkness, o.fragmentShader = /* glsl */
|
|
20048
20048
|
`
|
|
20049
20049
|
uniform float darkness;
|
|
@@ -20136,7 +20136,7 @@ al([
|
|
|
20136
20136
|
], Xr.prototype, "backfaceShadows");
|
|
20137
20137
|
let Wu = Xr;
|
|
20138
20138
|
const _b = [], hp = new Array(), SE = x("logstats");
|
|
20139
|
-
class
|
|
20139
|
+
class gw extends R {
|
|
20140
20140
|
onEnable() {
|
|
20141
20141
|
console.log(this), SE && this.startCoroutine(this.run(), Ce.OnAfterRender);
|
|
20142
20142
|
}
|
|
@@ -20151,7 +20151,7 @@ class Vu extends R {
|
|
|
20151
20151
|
isUsed = !0;
|
|
20152
20152
|
usedBy = null;
|
|
20153
20153
|
}
|
|
20154
|
-
class
|
|
20154
|
+
class yw extends R {
|
|
20155
20155
|
}
|
|
20156
20156
|
const bb = x("debugdeletable");
|
|
20157
20157
|
class kr extends Ft {
|
|
@@ -20164,7 +20164,7 @@ class kr extends Ft {
|
|
|
20164
20164
|
e >= 0 && kr._instances.splice(e, 1);
|
|
20165
20165
|
}
|
|
20166
20166
|
}
|
|
20167
|
-
class
|
|
20167
|
+
class _w extends R {
|
|
20168
20168
|
update() {
|
|
20169
20169
|
for (const e of kr._instances) {
|
|
20170
20170
|
const t = this.gameObject;
|
|
@@ -20214,7 +20214,7 @@ var kE = Object.defineProperty, Qr = (s, e, t, i) => {
|
|
|
20214
20214
|
return n && kE(e, t, n), n;
|
|
20215
20215
|
};
|
|
20216
20216
|
const Hn = x("debugdrag"), dp = [];
|
|
20217
|
-
var
|
|
20217
|
+
var bw = /* @__PURE__ */ ((s) => (s[s.XZPlane = 0] = "XZPlane", s[s.Attached = 1] = "Attached", s[s.HitNormal = 2] = "HitNormal", s[s.DynamicViewAngle = 3] = "DynamicViewAngle", s[s.SnapToSurfaces = 4] = "SnapToSurfaces", s[s.None = 5] = "None", s))(bw || {});
|
|
20218
20218
|
const Do = class $i extends R {
|
|
20219
20219
|
/**
|
|
20220
20220
|
* Checks if any DragControls component is currently active with selected objects
|
|
@@ -20774,7 +20774,7 @@ class up {
|
|
|
20774
20774
|
return t && (r > Math.PI / 2 + a || r < Math.PI / 2 - a) ? this._dragPlane.setFromNormalAndCoplanarPoint(n, e) : this._dragPlane.setFromNormalAndCoplanarPoint(i, e), !0;
|
|
20775
20775
|
}
|
|
20776
20776
|
}
|
|
20777
|
-
class
|
|
20777
|
+
class vw {
|
|
20778
20778
|
/** Controls whether visual helpers like lines and markers are displayed */
|
|
20779
20779
|
showGizmo = !0;
|
|
20780
20780
|
/** When true, drag plane alignment changes based on view angle */
|
|
@@ -20812,7 +20812,7 @@ class bw {
|
|
|
20812
20812
|
static geometry = new bn().setFromPoints([new _(0, 0, 0), new _(0, -1, 0)]);
|
|
20813
20813
|
constructor(e) {
|
|
20814
20814
|
this._camera = e;
|
|
20815
|
-
const t = new Na(
|
|
20815
|
+
const t = new Na(vw.geometry), i = t.material;
|
|
20816
20816
|
i.color = new re(0.4, 0.4, 0.4), t.layers.set(2), t.name = "line", t.scale.y = 1, this._groundLine = t;
|
|
20817
20817
|
const n = new mu(0.5, 22, 22), o = new Se({ color: i.color }), r = new H(n, o);
|
|
20818
20818
|
r.visible = !1, r.layers.set(2), this._groundMarker = r;
|
|
@@ -21155,21 +21155,21 @@ class po {
|
|
|
21155
21155
|
function pp(s) {
|
|
21156
21156
|
switch (s) {
|
|
21157
21157
|
case 0:
|
|
21158
|
-
return
|
|
21158
|
+
return YS;
|
|
21159
21159
|
case 1:
|
|
21160
|
-
return
|
|
21160
|
+
return QS;
|
|
21161
21161
|
case 2:
|
|
21162
|
-
return
|
|
21162
|
+
return XS;
|
|
21163
21163
|
case 3:
|
|
21164
|
-
return
|
|
21164
|
+
return qS;
|
|
21165
21165
|
case 4:
|
|
21166
|
-
return
|
|
21166
|
+
return GS;
|
|
21167
21167
|
case 6:
|
|
21168
|
-
return
|
|
21168
|
+
return HS;
|
|
21169
21169
|
case 7:
|
|
21170
|
-
return
|
|
21170
|
+
return VS;
|
|
21171
21171
|
case 5:
|
|
21172
|
-
return
|
|
21172
|
+
return WS;
|
|
21173
21173
|
}
|
|
21174
21174
|
return 0;
|
|
21175
21175
|
}
|
|
@@ -21178,19 +21178,19 @@ function LE(s) {
|
|
|
21178
21178
|
case 1:
|
|
21179
21179
|
return Wy;
|
|
21180
21180
|
case 2:
|
|
21181
|
-
return
|
|
21181
|
+
return $S;
|
|
21182
21182
|
case 3:
|
|
21183
|
-
return
|
|
21183
|
+
return NS;
|
|
21184
21184
|
case 4:
|
|
21185
|
-
return
|
|
21185
|
+
return US;
|
|
21186
21186
|
case 5:
|
|
21187
|
-
return
|
|
21187
|
+
return zS;
|
|
21188
21188
|
case 6:
|
|
21189
|
-
return
|
|
21189
|
+
return FS;
|
|
21190
21190
|
case 7:
|
|
21191
|
-
return
|
|
21191
|
+
return BS;
|
|
21192
21192
|
case 8:
|
|
21193
|
-
return
|
|
21193
|
+
return jS;
|
|
21194
21194
|
}
|
|
21195
21195
|
return Wy;
|
|
21196
21196
|
}
|
|
@@ -21456,7 +21456,7 @@ class Po {
|
|
|
21456
21456
|
}
|
|
21457
21457
|
}
|
|
21458
21458
|
const Sd = /* @__PURE__ */ Symbol("originalValues"), Cd = /* @__PURE__ */ Symbol("savedTextureTransforms");
|
|
21459
|
-
function
|
|
21459
|
+
function ww(s) {
|
|
21460
21460
|
let e = Ps.getBlock(s);
|
|
21461
21461
|
if (e) return { block: e, owner: s };
|
|
21462
21462
|
if (s.parent && s.parent.type === "Group" && (e = Ps.getBlock(s.parent), e))
|
|
@@ -21481,7 +21481,7 @@ const Ba = /* @__PURE__ */ Symbol("beforeRenderingFlag"), km = /* @__PURE__ */ n
|
|
|
21481
21481
|
} else if (r !== n)
|
|
21482
21482
|
return;
|
|
21483
21483
|
this[Ba] === void 0 && (this[Ba] = /* @__PURE__ */ new WeakSet()), this[Ba].add(n);
|
|
21484
|
-
const a =
|
|
21484
|
+
const a = ww(this);
|
|
21485
21485
|
if (!a)
|
|
21486
21486
|
return;
|
|
21487
21487
|
const { block: l, owner: c } = a, h = l.overrides, d = n, f = l.getDefines(), p = Object.keys(f);
|
|
@@ -21517,7 +21517,7 @@ const Ba = /* @__PURE__ */ Symbol("beforeRenderingFlag"), km = /* @__PURE__ */ n
|
|
|
21517
21517
|
}, xb = function(s, e, t, i, n, o) {
|
|
21518
21518
|
if (this[Ba] === void 0 || !this[Ba].has(n)) return;
|
|
21519
21519
|
this[Ba].delete(n);
|
|
21520
|
-
const r =
|
|
21520
|
+
const r = ww(this);
|
|
21521
21521
|
if (!r)
|
|
21522
21522
|
return;
|
|
21523
21523
|
const { block: a, owner: l } = r, c = a.overrides, h = n, d = h[Sd], f = a.getDefines(), p = Object.keys(f);
|
|
@@ -21573,7 +21573,7 @@ function Sb(s, e, t) {
|
|
|
21573
21573
|
}
|
|
21574
21574
|
}
|
|
21575
21575
|
const Gh = /* @__PURE__ */ new Map();
|
|
21576
|
-
function
|
|
21576
|
+
function xw(s, e) {
|
|
21577
21577
|
if (Gh.has(s))
|
|
21578
21578
|
return Gh.get(s);
|
|
21579
21579
|
const t = new URL(s, window.location.href), i = UE(t, e);
|
|
@@ -21588,7 +21588,7 @@ async function UE(s, e) {
|
|
|
21588
21588
|
if (n)
|
|
21589
21589
|
a = new lg();
|
|
21590
21590
|
else if (o)
|
|
21591
|
-
a = new
|
|
21591
|
+
a = new Tv();
|
|
21592
21592
|
else if (r) {
|
|
21593
21593
|
const { ktx2Loader: d } = Jm(e);
|
|
21594
21594
|
a = d;
|
|
@@ -21598,7 +21598,7 @@ async function UE(s, e) {
|
|
|
21598
21598
|
return await a.loadAsync(l).then((d) => {
|
|
21599
21599
|
if (d) {
|
|
21600
21600
|
const f = t.lastIndexOf("/");
|
|
21601
|
-
d.name = t.substring(f >= 0 ? f + 1 : 0), i
|
|
21601
|
+
d.name = t.substring(f >= 0 ? f + 1 : 0), i ? d.mapping = Ls : d.mapping = Pv, a instanceof Er && (d.colorSpace = js);
|
|
21602
21602
|
}
|
|
21603
21603
|
return d;
|
|
21604
21604
|
}).catch((d) => (console.warn("Failed to load texture from url:", s), null));
|
|
@@ -21663,12 +21663,12 @@ const WE = /* @__PURE__ */ Symbol("reflectionProbeKey"), ih = class fn extends R
|
|
|
21663
21663
|
if (typeof e == "string") {
|
|
21664
21664
|
oa && console.debug(`[ReflectionProbe] Loading reflection probe texture from URL: ${e}`), this._textureUrlInFlight = e;
|
|
21665
21665
|
const t = To(this.sourceId, e);
|
|
21666
|
-
|
|
21666
|
+
xw(t, this.context.renderer).then((i) => {
|
|
21667
21667
|
this._textureUrlInFlight === e && i && (this._textureUrlInFlight = void 0, oa && console.debug(`[ReflectionProbe] Successfully loaded reflection probe texture: ${e}`), this.texture = i);
|
|
21668
21668
|
});
|
|
21669
21669
|
return;
|
|
21670
21670
|
}
|
|
21671
|
-
this.__didAwake && (this._textureUrlInFlight = void 0), this._texture = e, oa && console.debug("[ReflectionProbe] Set reflection probe texture " + (e?.name || "(removed)")), e && (e instanceof
|
|
21671
|
+
this.__didAwake && (this._textureUrlInFlight = void 0), this._texture = e, oa && console.debug("[ReflectionProbe] Set reflection probe texture " + (e?.name || "(removed)")), e && (e instanceof kv || e.mapping === Ls || e.mapping !== Ms && (e.mapping = Ms), e.colorSpace = Ds, e.needsUpdate = !0);
|
|
21672
21672
|
}
|
|
21673
21673
|
}
|
|
21674
21674
|
get texture() {
|
|
@@ -21783,7 +21783,7 @@ class qE {
|
|
|
21783
21783
|
this.node = e, this.nodeIndex = t, this.nodeDef = i;
|
|
21784
21784
|
}
|
|
21785
21785
|
}
|
|
21786
|
-
class
|
|
21786
|
+
class Sw {
|
|
21787
21787
|
get name() {
|
|
21788
21788
|
return HE;
|
|
21789
21789
|
}
|
|
@@ -22047,13 +22047,13 @@ class Mm extends R {
|
|
|
22047
22047
|
if (ya && console.warn("💡🟡 >>> Enable lighting", this.sourceId, this.enabled, this), this.ambientMode == yc.Flat) {
|
|
22048
22048
|
if (this.ambientLight && !this._ambientLightObj) {
|
|
22049
22049
|
const e = this.calculateIntensityFactor(this.ambientLight);
|
|
22050
|
-
this._ambientLightObj = new
|
|
22050
|
+
this._ambientLightObj = new KS(this.ambientLight, this.ambientIntensity * e), ya && console.log("Created ambient light", this.sourceId, this._ambientLightObj, this.ambientIntensity, e);
|
|
22051
22051
|
}
|
|
22052
22052
|
this._ambientLightObj && this.gameObject.add(this._ambientLightObj);
|
|
22053
22053
|
} else if (this.ambientMode === yc.Trilight) {
|
|
22054
22054
|
if (this.ambientTrilight) {
|
|
22055
22055
|
const e = this.ambientTrilight[0], t = this.ambientTrilight[this.ambientTrilight.length - 1], i = this.calculateIntensityFactor(t);
|
|
22056
|
-
this._hemisphereLightObj = new
|
|
22056
|
+
this._hemisphereLightObj = new ZS(t, e, this.ambientIntensity * i), this.gameObject.add(this._hemisphereLightObj), ya && console.log("Created hemisphere ambient light", this.sourceId, this._hemisphereLightObj, this.ambientIntensity, i);
|
|
22057
22057
|
}
|
|
22058
22058
|
} else
|
|
22059
22059
|
this._ambientLightObj && this._ambientLightObj.removeFromParent(), this._hemisphereLightObj && this._hemisphereLightObj.removeFromParent();
|
|
@@ -22086,7 +22086,7 @@ var Em;
|
|
|
22086
22086
|
}
|
|
22087
22087
|
s.loadFromUrl = e;
|
|
22088
22088
|
})(Em || (Em = {}));
|
|
22089
|
-
class YE extends
|
|
22089
|
+
class YE extends JS {
|
|
22090
22090
|
loadAsync(e, t) {
|
|
22091
22091
|
return new Promise((i, n) => {
|
|
22092
22092
|
this.load(e, i, t, n);
|
|
@@ -22131,7 +22131,7 @@ class KE {
|
|
|
22131
22131
|
return this.mtlxLoader ? this.mtlxLoader.loadMaterial(e) : null;
|
|
22132
22132
|
}
|
|
22133
22133
|
}
|
|
22134
|
-
var
|
|
22134
|
+
var Cw = /* @__PURE__ */ ((s) => (s[s.INT = 5124] = "INT", s[s.FLOAT = 5126] = "FLOAT", s[s.FLOAT_VEC2 = 35664] = "FLOAT_VEC2", s[s.FLOAT_VEC3 = 35665] = "FLOAT_VEC3", s[s.FLOAT_VEC4 = 35666] = "FLOAT_VEC4", s[s.INT_VEC2 = 35667] = "INT_VEC2", s[s.INT_VEC3 = 35668] = "INT_VEC3", s[s.INT_VEC4 = 35669] = "INT_VEC4", s[s.BOOL = 35670] = "BOOL", s[s.BOOL_VEC2 = 35671] = "BOOL_VEC2", s[s.BOOL_VEC3 = 35672] = "BOOL_VEC3", s[s.BOOL_VEC4 = 35673] = "BOOL_VEC4", s[s.FLOAT_MAT2 = 35674] = "FLOAT_MAT2", s[s.FLOAT_MAT3 = 35675] = "FLOAT_MAT3", s[s.FLOAT_MAT4 = 35676] = "FLOAT_MAT4", s[s.SAMPLER_2D = 35678] = "SAMPLER_2D", s[s.SAMPLER_3D = 35680] = "SAMPLER_3D", s[s.SAMPLER_CUBE = 35681] = "SAMPLER_CUBE", s[s.UNKNOWN = 0] = "UNKNOWN", s))(Cw || {});
|
|
22135
22135
|
const Bn = x("debugcustomshader"), ra = "NEEDLE_techniques_webgl";
|
|
22136
22136
|
class ZE {
|
|
22137
22137
|
objectToWorldMatrix = new ee();
|
|
@@ -22142,12 +22142,12 @@ class ZE {
|
|
|
22142
22142
|
this.objectToWorldMatrix.copy(e.matrixWorld), Xd(this.objectToWorldMatrix, this.objectToWorld), this.worldToObjectMatrix.copy(e.matrixWorld).invert(), Xd(this.worldToObjectMatrix, this.worldToObject);
|
|
22143
22143
|
}
|
|
22144
22144
|
}
|
|
22145
|
-
class Te extends
|
|
22145
|
+
class Te extends Ov {
|
|
22146
22146
|
identifier;
|
|
22147
22147
|
onBeforeRenderSceneCallback = this.onBeforeRenderScene.bind(this);
|
|
22148
22148
|
clone() {
|
|
22149
22149
|
const e = super.clone();
|
|
22150
|
-
return
|
|
22150
|
+
return Pw(e), e;
|
|
22151
22151
|
}
|
|
22152
22152
|
constructor(e, ...t) {
|
|
22153
22153
|
super(...t), this.identifier = e, Bn && console.log(this), this.type = "NEEDLE_CUSTOM_SHADER", this.uniforms[this._objToWorldName] || (this.uniforms[this._objToWorldName] = { value: [] }), this.uniforms[this._worldToObjectName] || (this.uniforms[this._worldToObjectName] = { value: [] }), this.uniforms[this._viewProjectionName] || (this.uniforms[this._viewProjectionName] = { value: [] }), this.uniforms[this._sphericalHarmonicsName], (this.depthTextureUniform || this.opaqueTextureUniform) && N.Current.pre_render_callbacks.push(this.onBeforeRenderSceneCallback);
|
|
@@ -22370,7 +22370,7 @@ class JE {
|
|
|
22370
22370
|
// },
|
|
22371
22371
|
}
|
|
22372
22372
|
);
|
|
22373
|
-
switch (g.glslVersion =
|
|
22373
|
+
switch (g.glslVersion = eC, g.vertexShader = g.vertexShader.replace("#version 300 es", ""), g.fragmentShader = g.fragmentShader.replace("#version 300 es", ""), d._Cull?.value) {
|
|
22374
22374
|
case 0:
|
|
22375
22375
|
g.side = Ei;
|
|
22376
22376
|
break;
|
|
@@ -22386,37 +22386,37 @@ class JE {
|
|
|
22386
22386
|
}
|
|
22387
22387
|
switch (d._ZTest?.value) {
|
|
22388
22388
|
case 3:
|
|
22389
|
-
g.depthTest = !0, g.depthFunc =
|
|
22389
|
+
g.depthTest = !0, g.depthFunc = aC;
|
|
22390
22390
|
break;
|
|
22391
22391
|
case 6:
|
|
22392
|
-
g.depthTest = !0, g.depthFunc =
|
|
22392
|
+
g.depthTest = !0, g.depthFunc = rC;
|
|
22393
22393
|
break;
|
|
22394
22394
|
case 2:
|
|
22395
|
-
g.depthTest = !0, g.depthFunc =
|
|
22395
|
+
g.depthTest = !0, g.depthFunc = oC;
|
|
22396
22396
|
break;
|
|
22397
22397
|
case 4:
|
|
22398
|
-
g.depthTest = !0, g.depthFunc =
|
|
22398
|
+
g.depthTest = !0, g.depthFunc = sC;
|
|
22399
22399
|
break;
|
|
22400
22400
|
case 5:
|
|
22401
|
-
g.depthTest = !0, g.depthFunc =
|
|
22401
|
+
g.depthTest = !0, g.depthFunc = nC;
|
|
22402
22402
|
break;
|
|
22403
22403
|
case 7:
|
|
22404
|
-
g.depthTest = !0, g.depthFunc =
|
|
22404
|
+
g.depthTest = !0, g.depthFunc = iC;
|
|
22405
22405
|
break;
|
|
22406
22406
|
case 8:
|
|
22407
|
-
g.depthTest = !1, g.depthFunc =
|
|
22407
|
+
g.depthTest = !1, g.depthFunc = tC;
|
|
22408
22408
|
break;
|
|
22409
22409
|
}
|
|
22410
22410
|
g.transparent = p, p && (g.depthWrite = !1), BO(d), g.onUpdateUniforms();
|
|
22411
22411
|
for (const w in f) {
|
|
22412
22412
|
const b = w, v = f[w].type;
|
|
22413
|
-
d[b]?.value === void 0 && (v ===
|
|
22413
|
+
d[b]?.value === void 0 && (v === Cw.SAMPLER_2D ? (d[b] = { value: DO }, console.warn("Missing/unassigned texture, fallback to white: " + b)) : b === "unity_OrthoParams" || console.warn("TODO: EXPECTED UNIFORM / fallback NOT SET: " + b, f[w]));
|
|
22414
22414
|
}
|
|
22415
|
-
Bn && console.log(g.uuid, d),
|
|
22415
|
+
Bn && console.log(g.uuid, d), Pw(g), r(g);
|
|
22416
22416
|
}) : null;
|
|
22417
22417
|
}
|
|
22418
22418
|
}
|
|
22419
|
-
function
|
|
22419
|
+
function Pw(s) {
|
|
22420
22420
|
if (s.uniforms) {
|
|
22421
22421
|
Bn && console.log("Uniforms:", s.uniforms);
|
|
22422
22422
|
for (const t in s.uniforms)
|
|
@@ -22450,9 +22450,9 @@ function pD(s) {
|
|
|
22450
22450
|
const e = Ir.indexOf(s);
|
|
22451
22451
|
e >= 0 && Ir.splice(e, 1);
|
|
22452
22452
|
}
|
|
22453
|
-
function
|
|
22453
|
+
function kw(s) {
|
|
22454
22454
|
if (s instanceof Bs) {
|
|
22455
|
-
const e = new
|
|
22455
|
+
const e = new Sw();
|
|
22456
22456
|
return s.register((t) => (e.parser = t, e)), e;
|
|
22457
22457
|
}
|
|
22458
22458
|
return null;
|
|
@@ -22477,7 +22477,7 @@ async function Rm(s, e, t, i) {
|
|
|
22477
22477
|
for (const o of Ir)
|
|
22478
22478
|
o.onImport && o.onImport(s, t, e);
|
|
22479
22479
|
}
|
|
22480
|
-
function
|
|
22480
|
+
function Ow(s, e) {
|
|
22481
22481
|
for (const t of Ir)
|
|
22482
22482
|
t.onExport && t.onExport(s, e);
|
|
22483
22483
|
}
|
|
@@ -22589,7 +22589,7 @@ class Fa {
|
|
|
22589
22589
|
/** The mesh information of the object - this tries to also calculate the LOD info */
|
|
22590
22590
|
meshInformation;
|
|
22591
22591
|
constructor(e, t) {
|
|
22592
|
-
this.__instanceIndex = -1, this.object = e, this.renderer = t, e[
|
|
22592
|
+
this.__instanceIndex = -1, this.object = e, this.renderer = t, e[P0] = t, this.meshInformation = mr(e.geometry), Fa.all.push(this);
|
|
22593
22593
|
}
|
|
22594
22594
|
/** Calculates the mesh information again
|
|
22595
22595
|
* @returns true if the vertex count or index count has changed
|
|
@@ -22704,7 +22704,7 @@ class sR {
|
|
|
22704
22704
|
constructor(e, t, i, n, o) {
|
|
22705
22705
|
this.name = e, this.geometry = t, this.material = i, this._context = o, this._maxInstanceCount = Math.max(2, n), jt && (this._debugMaterial = Ob());
|
|
22706
22706
|
const r = this.tryEstimateVertexCountSize(this._maxInstanceCount, [t], n);
|
|
22707
|
-
this._maxVertexCount = r.vertexCount, this._maxIndexCount = r.indexCount, this._batchedMesh = new Vy(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh.name = this.getBatchedMeshName(), this._batchedMesh[Jl] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof
|
|
22707
|
+
this._maxVertexCount = r.vertexCount, this._maxIndexCount = r.indexCount, this._batchedMesh = new Vy(this._maxInstanceCount, this._maxVertexCount, this._maxIndexCount, this._debugMaterial ?? this.material), this._batchedMesh.name = this.getBatchedMeshName(), this._batchedMesh[Jl] = !0, this._batchedMesh.visible = !0, this._context.scene.add(this._batchedMesh), i instanceof Ov && (i.defines.USE_INSTANCING = !0, i.needsUpdate = !0), o.pre_render_callbacks.push(this.onBeforeRender), o.post_render_callbacks.push(this.onAfterRender), jt && console.log(`Instanced renderer (${this.name}) created with ${this._maxInstanceCount} instances, ${this._maxVertexCount} max vertices and ${this._maxIndexCount} max indices for "${e}"`);
|
|
22708
22708
|
}
|
|
22709
22709
|
dispose() {
|
|
22710
22710
|
jt && console.warn("Dispose instanced renderer", this.name), this._context.scene.remove(this._batchedMesh), this._batchedMesh.dispose(), this._batchedMesh = null, this._handles = [];
|
|
@@ -22878,7 +22878,7 @@ function Ob() {
|
|
|
22878
22878
|
return s.emissive = s.color, s.emissiveIntensity = 0.3, x("wireframe") && (s.wireframe = !0), s;
|
|
22879
22879
|
}
|
|
22880
22880
|
const Xh = x("debuglightmaps"), Mb = /* @__PURE__ */ Symbol("lightmapKey");
|
|
22881
|
-
class
|
|
22881
|
+
class Mw {
|
|
22882
22882
|
get lightmap() {
|
|
22883
22883
|
return this.lightmapTexture;
|
|
22884
22884
|
}
|
|
@@ -23256,7 +23256,7 @@ const is = class Pd extends R {
|
|
|
23256
23256
|
const e = this._lightmapTextureOverride !== void 0 ? this._lightmapTextureOverride : this.context.lightmaps.tryGetLightmap(this.sourceId, this.lightmapIndex);
|
|
23257
23257
|
if (e) {
|
|
23258
23258
|
this._lightmaps || (this._lightmaps = []);
|
|
23259
|
-
const t = new
|
|
23259
|
+
const t = new Mw(this);
|
|
23260
23260
|
t.init(this.lightmapIndex, this.lightmapScaleOffset, e), this._lightmaps.push(t);
|
|
23261
23261
|
} else
|
|
23262
23262
|
_a && console.warn(`[Renderer] No lightmaps found ${this.name} (${this.sourceId}, ${this.lightmapIndex})`);
|
|
@@ -23445,7 +23445,7 @@ Vs([
|
|
|
23445
23445
|
let fi = is;
|
|
23446
23446
|
class Gu extends fi {
|
|
23447
23447
|
}
|
|
23448
|
-
class
|
|
23448
|
+
class Ew extends Gu {
|
|
23449
23449
|
_needUpdateBoundingSphere = !1;
|
|
23450
23450
|
// private _lastWorldPosition = new Vector3();
|
|
23451
23451
|
awake() {
|
|
@@ -23831,7 +23831,7 @@ var fR = Object.defineProperty, Xg = (s, e, t, i) => {
|
|
|
23831
23831
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
23832
23832
|
return n && fR(e, t, n), n;
|
|
23833
23833
|
};
|
|
23834
|
-
const qu = class
|
|
23834
|
+
const qu = class Rw extends R {
|
|
23835
23835
|
parent = null;
|
|
23836
23836
|
object = null;
|
|
23837
23837
|
limitCount = 60;
|
|
@@ -23842,10 +23842,10 @@ const qu = class Ew extends R {
|
|
|
23842
23842
|
if (this._currentCount = 0, this._startPosition = null, this._startQuaternion = null, this.object || (this.object = this.gameObject), this.object) {
|
|
23843
23843
|
if (this.object === this.gameObject) {
|
|
23844
23844
|
const t = new Nt(this.guid);
|
|
23845
|
-
this.object = C.instantiate(this.object, { idProvider: t, keepWorldPosition: !1 }), C.getComponent(this.object,
|
|
23845
|
+
this.object = C.instantiate(this.object, { idProvider: t, keepWorldPosition: !1 }), C.getComponent(this.object, Rw)?.destroy();
|
|
23846
23846
|
let n = this.object.getComponentInChildren(Pa);
|
|
23847
23847
|
n || (n = this.object.addComponent(Pa, {
|
|
23848
|
-
dragMode:
|
|
23848
|
+
dragMode: bw.SnapToSurfaces
|
|
23849
23849
|
}), n.guid = t.generateUUID());
|
|
23850
23850
|
let o = C.getComponent(n.gameObject, Jn);
|
|
23851
23851
|
o || (o = n.gameObject.addComponent(Jn), o.guid = t.generateUUID());
|
|
@@ -23884,7 +23884,7 @@ const qu = class Ew extends R {
|
|
|
23884
23884
|
}
|
|
23885
23885
|
*cloneLimitIntervalFn() {
|
|
23886
23886
|
for (; this.activeAndEnabled && !this.destroyed; )
|
|
23887
|
-
this._currentCount > 0 ? this._currentCount -= 1 : this._currentCount < 0 && (this._currentCount = 0), yield
|
|
23887
|
+
this._currentCount > 0 ? this._currentCount -= 1 : this._currentCount < 0 && (this._currentCount = 0), yield G0(1);
|
|
23888
23888
|
}
|
|
23889
23889
|
handleDuplication() {
|
|
23890
23890
|
if (!this.object || this.limitCount > 0 && this._currentCount >= this.limitCount || this.object === this.gameObject) return null;
|
|
@@ -23906,7 +23906,7 @@ Xg([
|
|
|
23906
23906
|
Xg([
|
|
23907
23907
|
u()
|
|
23908
23908
|
], qu.prototype, "limitCount");
|
|
23909
|
-
let
|
|
23909
|
+
let Tw = qu;
|
|
23910
23910
|
var us = /* @__PURE__ */ ((s) => (s[s.PointerEnter = 0] = "PointerEnter", s[s.PointerExit = 1] = "PointerExit", s[s.PointerDown = 2] = "PointerDown", s[s.PointerUp = 3] = "PointerUp", s[s.PointerClick = 4] = "PointerClick", s))(us || {}), pR = Object.defineProperty, Qg = (s, e, t, i) => {
|
|
23911
23911
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
23912
23912
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -23960,7 +23960,7 @@ class Kg extends R {
|
|
|
23960
23960
|
Qg([
|
|
23961
23961
|
u(Yg)
|
|
23962
23962
|
], Kg.prototype, "triggers");
|
|
23963
|
-
class
|
|
23963
|
+
class Aw {
|
|
23964
23964
|
constructor(e) {
|
|
23965
23965
|
this.writer = e, this.name = "EXT_mesh_gpu_instancing";
|
|
23966
23966
|
}
|
|
@@ -23983,7 +23983,7 @@ class Tw {
|
|
|
23983
23983
|
}, n[this.name] = !0;
|
|
23984
23984
|
}
|
|
23985
23985
|
}
|
|
23986
|
-
class
|
|
23986
|
+
class Iw {
|
|
23987
23987
|
writer;
|
|
23988
23988
|
constructor(e) {
|
|
23989
23989
|
this.writer = e;
|
|
@@ -23991,12 +23991,12 @@ class Aw {
|
|
|
23991
23991
|
writeNode(e) {
|
|
23992
23992
|
}
|
|
23993
23993
|
}
|
|
23994
|
-
class mR extends
|
|
23994
|
+
class mR extends Iw {
|
|
23995
23995
|
beforeWriteNode(e, t) {
|
|
23996
23996
|
z.isGizmo(e) && (t.keep = !1);
|
|
23997
23997
|
}
|
|
23998
23998
|
}
|
|
23999
|
-
class
|
|
23999
|
+
class Lw extends Iw {
|
|
24000
24000
|
beforeWriteTexture(e, t) {
|
|
24001
24001
|
e.isRenderTargetTexture && (t.newTexture = Tg(new ae(1, 1, 1, 0)));
|
|
24002
24002
|
}
|
|
@@ -24005,13 +24005,13 @@ function Tm(s) {
|
|
|
24005
24005
|
const e = mg.DontExport;
|
|
24006
24006
|
return !(s.hideFlags & e);
|
|
24007
24007
|
}
|
|
24008
|
-
var gR = Object.defineProperty,
|
|
24008
|
+
var gR = Object.defineProperty, Dw = (s, e, t, i) => {
|
|
24009
24009
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
24010
24010
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
24011
24011
|
return n && gR(e, t, n), n;
|
|
24012
24012
|
};
|
|
24013
24013
|
const Qh = x("debuggltfexport");
|
|
24014
|
-
class
|
|
24014
|
+
class jw extends Ft {
|
|
24015
24015
|
sceneRoot;
|
|
24016
24016
|
}
|
|
24017
24017
|
const Zg = class ba extends R {
|
|
@@ -24032,8 +24032,8 @@ const Zg = class ba extends R {
|
|
|
24032
24032
|
console.warn("No objects set to export");
|
|
24033
24033
|
return;
|
|
24034
24034
|
}
|
|
24035
|
-
const i = new
|
|
24036
|
-
i.register((c) => new
|
|
24035
|
+
const i = new Av();
|
|
24036
|
+
i.register((c) => new Aw(c)), i.register((c) => new Lw(c)), Ow(i, this.context), ba.filterTopmostParent(e);
|
|
24037
24037
|
const n = {
|
|
24038
24038
|
trs: !1,
|
|
24039
24039
|
onlyVisible: !0,
|
|
@@ -24058,8 +24058,8 @@ const Zg = class ba extends R {
|
|
|
24058
24058
|
}
|
|
24059
24059
|
}));
|
|
24060
24060
|
});
|
|
24061
|
-
const a = new
|
|
24062
|
-
return t?.needleComponents && (this.ext = new
|
|
24061
|
+
const a = new D0(r);
|
|
24062
|
+
return t?.needleComponents && (this.ext = new Sw()), this.ext && (this.ext.registerExport(i), this.ext.context = a), new Promise((c, h) => {
|
|
24063
24063
|
Qh && console.log("Starting glTF export.");
|
|
24064
24064
|
try {
|
|
24065
24065
|
i?.parse(
|
|
@@ -24130,13 +24130,13 @@ const Zg = class ba extends R {
|
|
|
24130
24130
|
}
|
|
24131
24131
|
}
|
|
24132
24132
|
};
|
|
24133
|
-
|
|
24133
|
+
Dw([
|
|
24134
24134
|
u()
|
|
24135
24135
|
], Zg.prototype, "binary");
|
|
24136
|
-
|
|
24136
|
+
Dw([
|
|
24137
24137
|
u(M)
|
|
24138
24138
|
], Zg.prototype, "objects");
|
|
24139
|
-
let
|
|
24139
|
+
let Bw = Zg;
|
|
24140
24140
|
typeof globalThis !== void 0 && !("OffscreenCanvas" in globalThis) && (globalThis.OffscreenCanvas = class {
|
|
24141
24141
|
canvas;
|
|
24142
24142
|
constructor(e, t) {
|
|
@@ -24538,10 +24538,10 @@ function CR(s) {
|
|
|
24538
24538
|
function en(s) {
|
|
24539
24539
|
return s = s.replace(/[^a-zA-Z0-9_]/g, ""), s.match(/^[a-zA-Z_]/) || (s = "_" + s), s;
|
|
24540
24540
|
}
|
|
24541
|
-
function
|
|
24541
|
+
function Fw(s) {
|
|
24542
24542
|
return s = s.replace('"', '\\"'), s;
|
|
24543
24543
|
}
|
|
24544
|
-
function
|
|
24544
|
+
function zw(s) {
|
|
24545
24545
|
if (s.length === 0) return null;
|
|
24546
24546
|
const e = s.map((i) => {
|
|
24547
24547
|
const n = new Array();
|
|
@@ -24551,8 +24551,8 @@ function Fw(s) {
|
|
|
24551
24551
|
});
|
|
24552
24552
|
return e[0].findLast((i) => e.every((n) => n.includes(i))) || null;
|
|
24553
24553
|
}
|
|
24554
|
-
function
|
|
24555
|
-
const e =
|
|
24554
|
+
function Uw(s) {
|
|
24555
|
+
const e = zw(s), t = /* @__PURE__ */ new Set();
|
|
24556
24556
|
for (const i of s) {
|
|
24557
24557
|
let n = i.parent;
|
|
24558
24558
|
for (; n && n !== e; )
|
|
@@ -24671,7 +24671,7 @@ class ct {
|
|
|
24671
24671
|
i && i.forEach((n) => n(e, t));
|
|
24672
24672
|
}
|
|
24673
24673
|
}
|
|
24674
|
-
class
|
|
24674
|
+
class Nw extends ct {
|
|
24675
24675
|
stageLength;
|
|
24676
24676
|
get isDocumentRoot() {
|
|
24677
24677
|
return !0;
|
|
@@ -24791,7 +24791,7 @@ class ER {
|
|
|
24791
24791
|
output;
|
|
24792
24792
|
animations;
|
|
24793
24793
|
constructor(e, t, i) {
|
|
24794
|
-
this.root = e || void 0, this.exporter = t, this.quickLookCompatible = i.quickLookCompatible, this.exportInvisible = i.exportInvisible, i.extensions && (this.extensions = i.extensions), this.materials = /* @__PURE__ */ new Map(), this.textures = {}, this.files = {}, this.document = new
|
|
24794
|
+
this.root = e || void 0, this.exporter = t, this.quickLookCompatible = i.quickLookCompatible, this.exportInvisible = i.exportInvisible, i.extensions && (this.extensions = i.extensions), this.materials = /* @__PURE__ */ new Map(), this.textures = {}, this.files = {}, this.document = new Nw(), this.output = "", this.animations = [];
|
|
24795
24795
|
}
|
|
24796
24796
|
makeNameSafe(e) {
|
|
24797
24797
|
return en(e);
|
|
@@ -24828,7 +24828,7 @@ let RR = class {
|
|
|
24828
24828
|
const a = [], l = /* @__PURE__ */ new Set();
|
|
24829
24829
|
e?.traverse((w) => {
|
|
24830
24830
|
if (!(!t.exportInvisible && !w.visible) && w instanceof vo) {
|
|
24831
|
-
const b = w.skeleton.bones, v =
|
|
24831
|
+
const b = w.skeleton.bones, v = zw(b);
|
|
24832
24832
|
if (v) {
|
|
24833
24833
|
const T = { object: w, originalParent: w.parent, newParent: v };
|
|
24834
24834
|
a.push(T), l.add(T.object.uuid), T.newParent && l.add(T.newParent.uuid), T.originalParent && l.add(T.originalParent.uuid);
|
|
@@ -24839,7 +24839,7 @@ let RR = class {
|
|
|
24839
24839
|
const { object: b, originalParent: v, newParent: T } = w;
|
|
24840
24840
|
T.add(b);
|
|
24841
24841
|
}
|
|
24842
|
-
he.report("export-usdz", "Traversing hierarchy"), e &&
|
|
24842
|
+
he.report("export-usdz", "Traversing hierarchy"), e && $w(e, i.document, i, this.keepObject), he.report("export-usdz", "Invoking onAfterBuildDocument"), await kd(i, "onAfterBuildDocument");
|
|
24843
24843
|
const h = i.extensions.find((w) => w.extensionName === "Behaviour")?.getAllTargetUuids() ?? /* @__PURE__ */ new Set();
|
|
24844
24844
|
if (this.pruneUnusedNodes) {
|
|
24845
24845
|
const w = {
|
|
@@ -24848,7 +24848,7 @@ let RR = class {
|
|
|
24848
24848
|
boneReparentings: l,
|
|
24849
24849
|
quickLookCompatible: i.quickLookCompatible
|
|
24850
24850
|
};
|
|
24851
|
-
this.debug && Ab(i.document, "Hierarchy BEFORE pruning", w),
|
|
24851
|
+
this.debug && Ab(i.document, "Hierarchy BEFORE pruning", w), Ww(i.document, w), this.debug && Ab(i.document, "Hierarchy AFTER pruning");
|
|
24852
24852
|
} else this.debug && console.log("Pruning of empty nodes is disabled. This may result in a larger USDZ file.");
|
|
24853
24853
|
he.report("export-usdz", { message: "Parsing document", autoStep: 10 }), await TR(i, t), he.report("export-usdz", "Invoking onAfterSerialize"), await kd(i, "onAfterSerialize");
|
|
24854
24854
|
for (const w of a) {
|
|
@@ -24858,7 +24858,7 @@ let RR = class {
|
|
|
24858
24858
|
i.exporter?.beforeWritingDocument?.();
|
|
24859
24859
|
const f = i.document.buildHeader(i) + `
|
|
24860
24860
|
` + i.output;
|
|
24861
|
-
this.debug && console.debug(f), n[o] =
|
|
24861
|
+
this.debug && console.debug(f), n[o] = Iv(f), i.output = "", he.report("export-usdz", { message: "Exporting textures", autoStep: 10 }), he.start("export-usdz-textures", { parentScope: "export-usdz", logTimings: !1 });
|
|
24862
24862
|
const p = new Ur({
|
|
24863
24863
|
antialias: !1,
|
|
24864
24864
|
alpha: !0,
|
|
@@ -24901,7 +24901,7 @@ let RR = class {
|
|
|
24901
24901
|
return he.report("export-usdz", "zip archive"), DC(n, { level: 0 });
|
|
24902
24902
|
}
|
|
24903
24903
|
};
|
|
24904
|
-
function
|
|
24904
|
+
function $w(s, e, t, i) {
|
|
24905
24905
|
if (!t.exportInvisible && !s.visible) return;
|
|
24906
24906
|
let n, o, r;
|
|
24907
24907
|
const a = { position: s.position, quaternion: s.quaternion, scale: s.scale };
|
|
@@ -24925,7 +24925,7 @@ function Nw(s, e, t, i) {
|
|
|
24925
24925
|
e && e.add(c), e = c;
|
|
24926
24926
|
}
|
|
24927
24927
|
for (const l of s.children)
|
|
24928
|
-
|
|
24928
|
+
$w(l, e, t, i);
|
|
24929
24929
|
}
|
|
24930
24930
|
function Ab(s, e, ...t) {
|
|
24931
24931
|
const i = {};
|
|
@@ -24941,7 +24941,7 @@ function Ab(s, e, ...t) {
|
|
|
24941
24941
|
}
|
|
24942
24942
|
o(s, i), console.log(e + " (" + n + " nodes)", i, ...t);
|
|
24943
24943
|
}
|
|
24944
|
-
function
|
|
24944
|
+
function Ww(s, e) {
|
|
24945
24945
|
let t = !0;
|
|
24946
24946
|
const i = new Array(), n = new Array();
|
|
24947
24947
|
if (s.children.length === 0)
|
|
@@ -24950,7 +24950,7 @@ function $w(s, e) {
|
|
|
24950
24950
|
const c = [...s.children];
|
|
24951
24951
|
for (const h of c)
|
|
24952
24952
|
if (h) {
|
|
24953
|
-
const d =
|
|
24953
|
+
const d = Ww(h, e);
|
|
24954
24954
|
e.debug && (d ? i.push(h) : n.push(h)), t = t && d;
|
|
24955
24955
|
}
|
|
24956
24956
|
}
|
|
@@ -24977,7 +24977,7 @@ async function TR(s, e) {
|
|
|
24977
24977
|
he.start("export-usdz-resources", "export-usdz");
|
|
24978
24978
|
const t = [];
|
|
24979
24979
|
for (const c of s.document.children)
|
|
24980
|
-
|
|
24980
|
+
Vw(c, s, t);
|
|
24981
24981
|
const i = t.length;
|
|
24982
24982
|
for (let c = 0; c < i; c++)
|
|
24983
24983
|
he.report("export-usdz-resources", { totalSteps: i, currentStep: c }), await new Promise((h, d) => {
|
|
@@ -24996,12 +24996,12 @@ async function TR(s, e) {
|
|
|
24996
24996
|
}, a = r(s.document);
|
|
24997
24997
|
he.start("export-usdz-xforms", "export-usdz"), he.report("export-usdz-xforms", { totalSteps: a, currentStep: 1 });
|
|
24998
24998
|
for (const c of s.document.children)
|
|
24999
|
-
|
|
24999
|
+
Hw(c, n, s);
|
|
25000
25000
|
he.end("export-usdz-xforms"), he.report("export-usdz", "invoke onAfterHierarchy"), await kd(s, "onAfterHierarchy", n), n.closeBlock(), n.closeBlock(), he.report("export-usdz", "Building materials");
|
|
25001
25001
|
const l = NR(s.materials, s.textures, e.quickLookCompatible);
|
|
25002
25002
|
n.appendLine(l), n.closeBlock(), he.report("export-usdz", "write to string"), s.output += n.toString();
|
|
25003
25003
|
}
|
|
25004
|
-
function
|
|
25004
|
+
function Vw(s, e, t) {
|
|
25005
25005
|
if (!s) return;
|
|
25006
25006
|
const i = s.geometry, n = s.material;
|
|
25007
25007
|
if (i)
|
|
@@ -25018,7 +25018,7 @@ function Ww(s, e, t) {
|
|
|
25018
25018
|
console.warn("NeedleUSDZExporter: Unsupported material type (USDZ only supports MeshStandardMaterial)", n?.name);
|
|
25019
25019
|
n && e.materials.get(n.uuid) === void 0 && (e.materials[n.uuid] = n);
|
|
25020
25020
|
for (const o of s.children)
|
|
25021
|
-
|
|
25021
|
+
Vw(o, e, t);
|
|
25022
25022
|
}
|
|
25023
25023
|
async function kd(s, e, t = null) {
|
|
25024
25024
|
if (s.extensions) {
|
|
@@ -25068,7 +25068,7 @@ async function AR(s, e = 1 / 0, t = null, i = void 0) {
|
|
|
25068
25068
|
const o = new de(), r = new Qi();
|
|
25069
25069
|
r.add(Zh), t || (t = Kh = new Ur({ antialias: !1, alpha: !0, premultipliedAlpha: !1, preserveDrawingBuffer: !0 }));
|
|
25070
25070
|
const a = Math.min(s.image.width, e), l = Math.min(s.image.height, e);
|
|
25071
|
-
Xt && (Xt.width !== a || Xt.height !== l) && (Xt.dispose(), Xt = null), Xt || (Xt = new Qn(a, l, { format: _u, type:
|
|
25071
|
+
Xt && (Xt.width !== a || Xt.height !== l) && (Xt.dispose(), Xt = null), Xt || (Xt = new Qn(a, l, { format: _u, type: lC, minFilter: Ld, magFilter: Ld })), t.setRenderTarget(Xt), t.setSize(a, l), t.clear(), t.render(r, o), Kh && (Kh.dispose(), Kh = null);
|
|
25072
25072
|
const c = new Uint8ClampedArray(Xt.width * Xt.height * 4);
|
|
25073
25073
|
t.readRenderTargetPixels(Xt, 0, 0, Xt.width, Xt.height, c);
|
|
25074
25074
|
const h = new ImageData(c, Xt.width, Xt.height, void 0), d = await createImageBitmap(h, { premultiplyAlpha: "none" });
|
|
@@ -25114,7 +25114,7 @@ function jR() {
|
|
|
25114
25114
|
}
|
|
25115
25115
|
function BR(s, e) {
|
|
25116
25116
|
let t = jR();
|
|
25117
|
-
return t += s,
|
|
25117
|
+
return t += s, Iv(t);
|
|
25118
25118
|
}
|
|
25119
25119
|
function Jh(s) {
|
|
25120
25120
|
return s.name.replace(/[-<>\(\)\[\]§$%&\/\\\=\?\,\;]/g, "") + "_" + s.id;
|
|
@@ -25134,7 +25134,7 @@ function za(s, e) {
|
|
|
25134
25134
|
t = Ib(i) + "/" + t, i = i.parent;
|
|
25135
25135
|
return t;
|
|
25136
25136
|
}
|
|
25137
|
-
function
|
|
25137
|
+
function Hw(s, e, t) {
|
|
25138
25138
|
if (s == null)
|
|
25139
25139
|
return;
|
|
25140
25140
|
he.report("export-usdz-xforms", { message: "buildXform " + s.displayName || s.name, autoStep: !0 });
|
|
@@ -25143,7 +25143,7 @@ function Vw(s, e, t) {
|
|
|
25143
25143
|
for (const p of s.animations)
|
|
25144
25144
|
t.animations.push(p);
|
|
25145
25145
|
const l = n && n.isBufferGeometry && n.attributes.skinIndex !== void 0 && n.attributes.skinIndex.count > 0, c = l ? "SkelRoot" : "Xform", h = new Array(), d = o && o instanceof Se && o.color && o.color.r === 1 && o.color.g === 1 && o.color.b === 1 && !o.map && o.opacity === 1 && n?.attributes.color;
|
|
25146
|
-
if (n?.attributes.color && !d && console.warn("NeedleUSDZExporter: Geometry has vertex colors. Vertex colors will only be shown in QuickLook for unlit materials with white color and no texture. Otherwise, they will be ignored.", s.displayName), e.appendLine(), n ? (e.beginBlock(`def ${c} "${a}"`, "(", !1), t.quickLookCompatible && o && o.side === Ei && !l ? e.appendLine(`prepend references = @./geometries/${Am(n)}.usda@</Geometry_doubleSided>`) : e.appendLine(`prepend references = @./geometries/${Am(n)}.usda@</Geometry>`), d || h.push("MaterialBindingAPI"), l && h.push("SkelBindingAPI")) : r && !t.quickLookCompatible ? e.beginBlock(`def Camera "${a}"`, "(", !1) : s.type !== void 0 ? e.beginBlock(`def ${s.type} "${a}"`) : e.beginBlock(`def Xform "${a}"`, "(", !1), s.type === void 0 && (s.extraSchemas?.length && h.push(...s.extraSchemas), h.length && e.appendLine(`prepend apiSchemas = [${h.map((p) => `"${p}"`).join(", ")}]`)), s.displayName && e.appendLine(`displayName = "${
|
|
25146
|
+
if (n?.attributes.color && !d && console.warn("NeedleUSDZExporter: Geometry has vertex colors. Vertex colors will only be shown in QuickLook for unlit materials with white color and no texture. Otherwise, they will be ignored.", s.displayName), e.appendLine(), n ? (e.beginBlock(`def ${c} "${a}"`, "(", !1), t.quickLookCompatible && o && o.side === Ei && !l ? e.appendLine(`prepend references = @./geometries/${Am(n)}.usda@</Geometry_doubleSided>`) : e.appendLine(`prepend references = @./geometries/${Am(n)}.usda@</Geometry>`), d || h.push("MaterialBindingAPI"), l && h.push("SkelBindingAPI")) : r && !t.quickLookCompatible ? e.beginBlock(`def Camera "${a}"`, "(", !1) : s.type !== void 0 ? e.beginBlock(`def ${s.type} "${a}"`) : e.beginBlock(`def Xform "${a}"`, "(", !1), s.type === void 0 && (s.extraSchemas?.length && h.push(...s.extraSchemas), h.length && e.appendLine(`prepend apiSchemas = [${h.map((p) => `"${p}"`).join(", ")}]`)), s.displayName && e.appendLine(`displayName = "${Fw(s.displayName)}"`), (r || s.type === void 0) && (e.closeBlock(")"), e.beginBlock()), n && o) {
|
|
25147
25147
|
if (!d) {
|
|
25148
25148
|
const p = Xu(o);
|
|
25149
25149
|
e.appendLine(`rel material:binding = </StageRoot/Materials/${p}>`);
|
|
@@ -25158,7 +25158,7 @@ function Vw(s, e, t) {
|
|
|
25158
25158
|
if (s.children) {
|
|
25159
25159
|
e.appendLine();
|
|
25160
25160
|
for (const p of s.children)
|
|
25161
|
-
|
|
25161
|
+
Hw(p, e, t);
|
|
25162
25162
|
}
|
|
25163
25163
|
e.closeBlock();
|
|
25164
25164
|
}
|
|
@@ -25193,7 +25193,7 @@ function zR(s, e = [], t = !0) {
|
|
|
25193
25193
|
f.indexOf(b.uuid) === -1 && e.indexOf(b) !== -1 && (a.push({ bone: b, index: e.indexOf(b) }), f.push(b.uuid));
|
|
25194
25194
|
}
|
|
25195
25195
|
p <= 0 && console.error("Failed to sort bones in skinned mesh", a, e, f);
|
|
25196
|
-
for (const m of
|
|
25196
|
+
for (const m of Uw(e))
|
|
25197
25197
|
a.push({ bone: m, index: a.length });
|
|
25198
25198
|
const g = a[0].bone.parent;
|
|
25199
25199
|
a.sort((m, w) => za(m.bone, g) > za(w.bone, g) ? 1 : -1), a.map((m) => '"' + za(m.bone, g) + '"').join(", ");
|
|
@@ -25223,7 +25223,7 @@ function zR(s, e = [], t = !0) {
|
|
|
25223
25223
|
)`
|
|
25224
25224
|
) : ""}
|
|
25225
25225
|
point3f[] points = [${Od(n.position, o)}]
|
|
25226
|
-
${n.uv ? `texCoord2f[] primvars:st = [${
|
|
25226
|
+
${n.uv ? `texCoord2f[] primvars:st = [${Gw(n.uv, o, !0)}] (
|
|
25227
25227
|
interpolation = "vertex"
|
|
25228
25228
|
)` : ""}
|
|
25229
25229
|
${n.uv1 ? bp("st1", n.uv1) : ""}
|
|
@@ -25287,7 +25287,7 @@ function bp(s, e) {
|
|
|
25287
25287
|
const t = e.itemSize;
|
|
25288
25288
|
switch (t) {
|
|
25289
25289
|
case 2:
|
|
25290
|
-
return `texCoord2f[] primvars:${s} = [${
|
|
25290
|
+
return `texCoord2f[] primvars:${s} = [${Gw(e, t, !0)}] (
|
|
25291
25291
|
interpolation = "vertex"
|
|
25292
25292
|
)`;
|
|
25293
25293
|
case 3:
|
|
@@ -25330,7 +25330,7 @@ function Db(s, e = !1) {
|
|
|
25330
25330
|
}
|
|
25331
25331
|
return t.join(", ");
|
|
25332
25332
|
}
|
|
25333
|
-
function
|
|
25333
|
+
function Gw(s, e, t = !1) {
|
|
25334
25334
|
if (s === void 0)
|
|
25335
25335
|
return console.warn("USDZExporter: UVs missing."), Array(e).fill("(0, 0)").join(", ");
|
|
25336
25336
|
const i = [];
|
|
@@ -25445,7 +25445,7 @@ function $R(s, e, t = !1) {
|
|
|
25445
25445
|
return s instanceof Hy && (r.push(`${o}float inputs:clearcoat = ${s.clearcoat}`), r.push(`${o}float inputs:clearcoatRoughness = ${s.clearcoatRoughness}`), r.push(`${o}float inputs:ior = ${s.ior}`), !s.transparent && !(s.alphaTest > 0) && s.transmissionMap && (r.push(`${o}float inputs:opacity.connect = ${Yt}/${i}/${Wi(s.transmissionMap)}_transmission.outputs:r>`), a.push(Zs(s.transmissionMap, "transmission", t, e, s, l)))), l.size > 2 ? console.warn("USDZExporter: Material " + s.name + " uses more than 2 UV channels. Currently, only UV0 and UV1 are supported.") : l.size === 2 && (!l.has(0) || !l.has(1)) && console.warn("USDZExporter: Material " + s.name + " uses UV channels other than 0 and 1. Currently, only UV0 and UV1 are supported."), `
|
|
25446
25446
|
|
|
25447
25447
|
def Material "${i}" ${s.name ? `(
|
|
25448
|
-
displayName = "${
|
|
25448
|
+
displayName = "${Fw(s.name)}"
|
|
25449
25449
|
)` : ""}
|
|
25450
25450
|
{
|
|
25451
25451
|
token outputs:surface.connect = ${Yt}/${i}/PreviewSurface.outputs:surface>
|
|
@@ -25833,7 +25833,7 @@ class WR {
|
|
|
25833
25833
|
this.onApply(e);
|
|
25834
25834
|
}
|
|
25835
25835
|
}
|
|
25836
|
-
class
|
|
25836
|
+
class qw extends WR {
|
|
25837
25837
|
constructor(e, t, i, n) {
|
|
25838
25838
|
super(e), this.matrix = t, this.material = i, this.geometry = n;
|
|
25839
25839
|
}
|
|
@@ -26346,7 +26346,7 @@ class HR {
|
|
|
26346
26346
|
}
|
|
26347
26347
|
}
|
|
26348
26348
|
b <= 0 && console.error("Failed to sort bones in skinned mesh", n.skinnedMesh, g.bones, w);
|
|
26349
|
-
for (const O of
|
|
26349
|
+
for (const O of Uw(g.bones))
|
|
26350
26350
|
y.push({ bone: O, inverse: O.matrixWorld.clone().invert() });
|
|
26351
26351
|
const v = y[0].bone.parent;
|
|
26352
26352
|
v || console.error("No bone parent found for skinned mesh during USDZ export", n.skinnedMesh), y.sort((O, W) => za(O.bone, v) > za(W.bone, v) ? 1 : -1);
|
|
@@ -26703,7 +26703,7 @@ Ue([
|
|
|
26703
26703
|
Ue([
|
|
26704
26704
|
u()
|
|
26705
26705
|
], Qu.prototype, "fadeDuration");
|
|
26706
|
-
let
|
|
26706
|
+
let Xw = Qu;
|
|
26707
26707
|
const nh = class Le extends R {
|
|
26708
26708
|
target;
|
|
26709
26709
|
toggleOnClick = !1;
|
|
@@ -26742,7 +26742,7 @@ const nh = class Le extends R {
|
|
|
26742
26742
|
let n = this.selfModel, o = this.targetState;
|
|
26743
26743
|
if (this.toggleOnClick)
|
|
26744
26744
|
if (o = !this.targetStateBeforeCreatingDocument, !this.selfModelClone.geometry)
|
|
26745
|
-
(!this.selfModel.parent || this.selfModel.parent.isEmpty()) &&
|
|
26745
|
+
(!this.selfModel.parent || this.selfModel.parent.isEmpty()) && Nw.createEmptyParent(this.selfModel), this.toggleModel = this.selfModel.deepClone(), this.toggleModel.name += "_toggle", this.selfModel.parent.add(this.toggleModel);
|
|
26746
26746
|
else {
|
|
26747
26747
|
if (!this.gameObject[Le.toggleClone]) {
|
|
26748
26748
|
const l = this.selfModelClone.clone();
|
|
@@ -26798,7 +26798,7 @@ Ue([
|
|
|
26798
26798
|
Ue([
|
|
26799
26799
|
u()
|
|
26800
26800
|
], nh.prototype, "hideSelf");
|
|
26801
|
-
let
|
|
26801
|
+
let Qw = nh;
|
|
26802
26802
|
class pn extends R {
|
|
26803
26803
|
static _fadeBehaviour;
|
|
26804
26804
|
static _fadeObjects = [];
|
|
@@ -27211,7 +27211,7 @@ Ue([
|
|
|
27211
27211
|
Ue([
|
|
27212
27212
|
u()
|
|
27213
27213
|
], Ku.prototype, "duration");
|
|
27214
|
-
class
|
|
27214
|
+
class Yw extends Yu {
|
|
27215
27215
|
}
|
|
27216
27216
|
const XR = 100, QR = 200, YR = 300;
|
|
27217
27217
|
class Mr {
|
|
@@ -27322,7 +27322,7 @@ class Mr {
|
|
|
27322
27322
|
hideElementDuringXRSession(e) {
|
|
27323
27323
|
_g((t) => {
|
|
27324
27324
|
e["previous-display"] = e.style.display, e.style.setProperty("display", "none", "important");
|
|
27325
|
-
}),
|
|
27325
|
+
}), u0((t) => {
|
|
27326
27326
|
e["previous-display"] != null && (e.style.display = e["previous-display"]);
|
|
27327
27327
|
});
|
|
27328
27328
|
}
|
|
@@ -27362,7 +27362,7 @@ class eT {
|
|
|
27362
27362
|
x;
|
|
27363
27363
|
y;
|
|
27364
27364
|
}
|
|
27365
|
-
function
|
|
27365
|
+
function Kw(s) {
|
|
27366
27366
|
s && (s.colorSpace != js && (s.colorSpace = js, s.needsUpdate = !0), s.minFilter == Id && s.magFilter == Id && (s.anisotropy = 1, s.needsUpdate = !0));
|
|
27367
27367
|
}
|
|
27368
27368
|
let Bo = class {
|
|
@@ -27387,7 +27387,7 @@ let Bo = class {
|
|
|
27387
27387
|
* The material used to render the sprite
|
|
27388
27388
|
*/
|
|
27389
27389
|
get material() {
|
|
27390
|
-
return this._material || (this.texture &&
|
|
27390
|
+
return this._material || (this.texture && Kw(this.texture), this._material = new Se({
|
|
27391
27391
|
map: this.texture,
|
|
27392
27392
|
color: 16777215,
|
|
27393
27393
|
side: Ei,
|
|
@@ -27460,7 +27460,7 @@ const iy = class Dm {
|
|
|
27460
27460
|
if (t < 0 || t >= this.spriteSheet.sprites.length)
|
|
27461
27461
|
return;
|
|
27462
27462
|
const i = this.spriteSheet.sprites[t], n = i?.texture;
|
|
27463
|
-
if (n && (
|
|
27463
|
+
if (n && (Kw(n), !i.__hasLoadedProgressive)) {
|
|
27464
27464
|
i.__hasLoadedProgressive = !0;
|
|
27465
27465
|
const o = n;
|
|
27466
27466
|
Ve.assignTextureLOD(n, 0).then((r) => {
|
|
@@ -27761,7 +27761,7 @@ class yn extends R {
|
|
|
27761
27761
|
}
|
|
27762
27762
|
else
|
|
27763
27763
|
o = new H(
|
|
27764
|
-
new
|
|
27764
|
+
new cC(0.07, 0.09, 32).rotateX(-Math.PI / 2),
|
|
27765
27765
|
new Se({ side: Ei, depthTest: !1, depthWrite: !1, transparent: !0, opacity: 1, color: 15658734 })
|
|
27766
27766
|
), o.name = "AR Placement Reticle";
|
|
27767
27767
|
if (Ub) {
|
|
@@ -27793,7 +27793,7 @@ class yn extends R {
|
|
|
27793
27793
|
return;
|
|
27794
27794
|
}
|
|
27795
27795
|
let i = this._hits[0];
|
|
27796
|
-
if (e && e.origin instanceof
|
|
27796
|
+
if (e && e.origin instanceof f0) {
|
|
27797
27797
|
const n = this._reticle[e.origin.index];
|
|
27798
27798
|
n && (t = n, i = this._hits[e.origin.index]);
|
|
27799
27799
|
}
|
|
@@ -28075,7 +28075,7 @@ function rT(s) {
|
|
|
28075
28075
|
const e = s[Sc];
|
|
28076
28076
|
e && (ny.removeSyncer(e), e.destroy(), delete s[Sc]);
|
|
28077
28077
|
}
|
|
28078
|
-
const
|
|
28078
|
+
const Zw = function(s = null) {
|
|
28079
28079
|
return function(e, t) {
|
|
28080
28080
|
let i = "";
|
|
28081
28081
|
typeof t == "string" ? i = t : i = t.name;
|
|
@@ -28128,7 +28128,7 @@ var aT = Object.defineProperty, Zu = (s, e, t, i) => {
|
|
|
28128
28128
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
28129
28129
|
return n && aT(e, t, n), n;
|
|
28130
28130
|
};
|
|
28131
|
-
const Kt = x("debugplayersync"), Ju = class
|
|
28131
|
+
const Kt = x("debugplayersync"), Ju = class Jw extends R {
|
|
28132
28132
|
/**
|
|
28133
28133
|
* This API is experimental and may change or be removed in the future.
|
|
28134
28134
|
* Creates a PlayerSync instance at runtime from a given URL and sets it up for networking
|
|
@@ -28149,7 +28149,7 @@ const Kt = x("debugplayersync"), Ju = class Zw extends R {
|
|
|
28149
28149
|
const r = await i.loadAssetAsync();
|
|
28150
28150
|
r && C.getOrAddComponent(r, _n);
|
|
28151
28151
|
}
|
|
28152
|
-
const n = new
|
|
28152
|
+
const n = new Jw();
|
|
28153
28153
|
n._internalInit(t), n.asset = i;
|
|
28154
28154
|
const o = new M();
|
|
28155
28155
|
return o.guid = e, C.addComponent(o, n), n;
|
|
@@ -28222,7 +28222,7 @@ Zu([
|
|
|
28222
28222
|
Zu([
|
|
28223
28223
|
u(ce)
|
|
28224
28224
|
], Ju.prototype, "onPlayerSpawned");
|
|
28225
|
-
let
|
|
28225
|
+
let ex = Ju;
|
|
28226
28226
|
var lT = /* @__PURE__ */ ((s) => (s.OwnerChanged = "ownerChanged", s))(lT || {});
|
|
28227
28227
|
const jm = class Ot extends R {
|
|
28228
28228
|
static _all = [];
|
|
@@ -28351,7 +28351,7 @@ const jm = class Ot extends R {
|
|
|
28351
28351
|
};
|
|
28352
28352
|
};
|
|
28353
28353
|
Zu([
|
|
28354
|
-
|
|
28354
|
+
Zw(jm.prototype.onOwnerChange)
|
|
28355
28355
|
], jm.prototype, "owner");
|
|
28356
28356
|
let _n = jm;
|
|
28357
28357
|
var cT = Object.defineProperty, dl = (s, e, t, i) => {
|
|
@@ -28512,7 +28512,7 @@ class jr extends R {
|
|
|
28512
28512
|
async loadAvatarObjects(e, t, i) {
|
|
28513
28513
|
const n = e.loadAssetAsync(), o = t.loadAssetAsync(), r = i.loadAssetAsync(), a = new Array();
|
|
28514
28514
|
n && a.push(n), o && a.push(o), r && a.push(r);
|
|
28515
|
-
const l = await
|
|
28515
|
+
const l = await $v(a);
|
|
28516
28516
|
Fl && console.log("Avatar loaded results:", l);
|
|
28517
28517
|
}
|
|
28518
28518
|
}
|
|
@@ -28630,7 +28630,7 @@ class Ro extends R {
|
|
|
28630
28630
|
n || (Js ? z.DrawLabel(t.rayWorldPosition, "No hand found for index " + t.index, 0.05, 5) : console.warn("No hand found for index " + t.index));
|
|
28631
28631
|
const o = new Bs();
|
|
28632
28632
|
jg(o, i), await Rm(o, i, this.sourceId ?? "", this.sourceId ?? "");
|
|
28633
|
-
const r =
|
|
28633
|
+
const r = kw(o);
|
|
28634
28634
|
let a = "";
|
|
28635
28635
|
const l = t.side === "left" ? this.customLeftHand : this.customRightHand;
|
|
28636
28636
|
l ? (a = l.url.split(".").slice(0, -1).join("."), o.setPath("")) : (a = t.inputSource.handedness === "left" ? "left" : "right", o.setPath("https://cdn.jsdelivr.net/npm/@webxr-input-profiles/assets@1.0/dist/profiles/generic-hand/"));
|
|
@@ -28759,7 +28759,7 @@ class tn extends R {
|
|
|
28759
28759
|
const r = t.worldPosition;
|
|
28760
28760
|
this._plane.setFromNormalAndCoplanarPoint(new _(0, 1, 0), r);
|
|
28761
28761
|
const a = e.ray;
|
|
28762
|
-
o = r.clone(), this._plane.intersectLine(new
|
|
28762
|
+
o = r.clone(), this._plane.intersectLine(new hC(a.origin, U(a.direction).multiplyScalar(1e4).add(a.origin)), o), o.distanceTo(r) > t.scale.x * 10 && (o = null);
|
|
28763
28763
|
}
|
|
28764
28764
|
if (o) {
|
|
28765
28765
|
if (this.useTeleportTarget && !C.getComponentInParent(n.object, oy))
|
|
@@ -28890,7 +28890,7 @@ class tn extends R {
|
|
|
28890
28890
|
transparent: !0,
|
|
28891
28891
|
depthWrite: !1,
|
|
28892
28892
|
// TODO: this doesnt work with passthrough
|
|
28893
|
-
blending:
|
|
28893
|
+
blending: Mv,
|
|
28894
28894
|
dashed: !1
|
|
28895
28895
|
// alphaToCoverage: true,
|
|
28896
28896
|
});
|
|
@@ -28967,7 +28967,7 @@ const zl = x("debugwebxr"), mT = x("debugusdz"), ut = class va extends R {
|
|
|
28967
28967
|
window.location.protocol !== "https:" && _e('<a href="https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API" target="_blank">WebXR</a> only works on secure connections (https).'), navigator.xr?.isSessionSupported("immersive-ar").catch(() => !1).then((e) => {
|
|
28968
28968
|
const t = D.isVisionOS() && !e;
|
|
28969
28969
|
(this.useQuicklookExport || t) && (C.findObjectOfType(Ts) || (zl && console.log("WebXR: Adding USDZExporter"), this._usdzExporter = C.addComponent(this.gameObject, Ts), this._usdzExporter.objectToExport = this.context.scene, this._usdzExporter.autoExportAnimations = !0, this._usdzExporter.autoExportAudioSources = !0));
|
|
28970
|
-
}), this.handleCreatingHTML(), this.handleOfferSession(), this.defaultAvatar === !0 && (zl && console.warn("WebXR: No default avatar set, using static default avatar"), this.defaultAvatar = new ne("https://cdn.needle.tools/static/avatars/DefaultAvatar.glb")), this.defaultAvatar && (this._playerSync = this.gameObject.getOrAddComponent(
|
|
28970
|
+
}), this.handleCreatingHTML(), this.handleOfferSession(), this.defaultAvatar === !0 && (zl && console.warn("WebXR: No default avatar set, using static default avatar"), this.defaultAvatar = new ne("https://cdn.needle.tools/static/avatars/DefaultAvatar.glb")), this.defaultAvatar && (this._playerSync = this.gameObject.getOrAddComponent(ex), this._playerSync.autoSync = !1), this._playerSync && typeof this.defaultAvatar != "boolean" && (this._playerSync.asset = this.defaultAvatar, this._playerSync.onPlayerSpawned?.removeEventListener(this.onAvatarSpawned), this._playerSync.onPlayerSpawned?.addEventListener(this.onAvatarSpawned));
|
|
28971
28971
|
}
|
|
28972
28972
|
/**
|
|
28973
28973
|
* Cleans up resources when the component is disabled.
|
|
@@ -29253,7 +29253,7 @@ vt([
|
|
|
29253
29253
|
], ut.prototype, "defaultAvatar");
|
|
29254
29254
|
let ry = ut;
|
|
29255
29255
|
const td = x("debugusdzbehaviours");
|
|
29256
|
-
class
|
|
29256
|
+
class tx {
|
|
29257
29257
|
get extensionName() {
|
|
29258
29258
|
return "Behaviour";
|
|
29259
29259
|
}
|
|
@@ -29415,7 +29415,7 @@ axisFormat %s
|
|
|
29415
29415
|
this.behaviourComponentsCopy.length = 0, this.audioClipsCopy.length = 0;
|
|
29416
29416
|
}
|
|
29417
29417
|
}
|
|
29418
|
-
class
|
|
29418
|
+
class ix {
|
|
29419
29419
|
get extensionName() {
|
|
29420
29420
|
return "Physics";
|
|
29421
29421
|
}
|
|
@@ -29457,7 +29457,7 @@ class tx {
|
|
|
29457
29457
|
}
|
|
29458
29458
|
}
|
|
29459
29459
|
const gT = x("debugshadowcomponents");
|
|
29460
|
-
|
|
29460
|
+
Bv.prototype.interactable = {
|
|
29461
29461
|
get() {
|
|
29462
29462
|
return this.interactive;
|
|
29463
29463
|
},
|
|
@@ -29575,7 +29575,7 @@ class vT {
|
|
|
29575
29575
|
width;
|
|
29576
29576
|
height;
|
|
29577
29577
|
}
|
|
29578
|
-
const hn = new _(), Ul = new ee(), id = new V(), ul = class
|
|
29578
|
+
const hn = new _(), Ul = new ee(), id = new V(), ul = class nx extends Cn {
|
|
29579
29579
|
get parent() {
|
|
29580
29580
|
return this._parentRectTransform;
|
|
29581
29581
|
}
|
|
@@ -29673,7 +29673,7 @@ const hn = new _(), Ul = new ee(), id = new V(), ul = class ix extends Cn {
|
|
|
29673
29673
|
this._lastUpdateFrame = this.context.time.frameCount;
|
|
29674
29674
|
const t = this.shadowComponent;
|
|
29675
29675
|
if (!t) return;
|
|
29676
|
-
this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent,
|
|
29676
|
+
this.gameObject.parent ? this._parentRectTransform = C.getComponentInParent(this.gameObject.parent, nx) : this._parentRectTransform = void 0, this._transformNeedsUpdate = !1, Cp && console.warn("RectTransform → ApplyTransform", this.name + " because " + e), this.isRoot() ? this.Root.screenspace || (t.rotation.y = Math.PI) : (t.matrix.identity(), t.matrixAutoUpdate = !1, hn.set(0, 0, 0), this.applyPivot(hn), t.matrix.setPosition(hn.x, hn.y, 0), (this.gameObject.quaternion.x || this.gameObject.quaternion.y || this.gameObject.quaternion.z) && (id.copy(this.gameObject.quaternion), id.x *= -1, id.z *= -1, Ul.makeRotationFromQuaternion(id), t.matrix.premultiply(Ul)), hn.set(0, 0, 0), this.applyAnchoring(hn), this.canvas?.screenspace ? hn.z += 0.1 : hn.z += 0.01, Ul.identity(), Ul.setPosition(hn.x, hn.y, hn.z), t.matrix.premultiply(Ul), t.matrix.scale(this.gameObject.scale)), this.lastMatrix.copy(this.gameObject.matrix);
|
|
29677
29677
|
const i = !0;
|
|
29678
29678
|
for (const n of Rg(this.gameObject, Cn, i, 1)) {
|
|
29679
29679
|
if (n === this || !n.activeAndEnabled) continue;
|
|
@@ -29742,7 +29742,7 @@ const hn = new _(), Ul = new ee(), id = new V(), ul = class ix extends Cn {
|
|
|
29742
29742
|
...this.getBasicOptions(),
|
|
29743
29743
|
...e
|
|
29744
29744
|
}, Sp && console.log(this.name, e);
|
|
29745
|
-
const t = new
|
|
29745
|
+
const t = new Bv(e);
|
|
29746
29746
|
return this._createdBlocks.push(t), t;
|
|
29747
29747
|
}
|
|
29748
29748
|
createNewText(e) {
|
|
@@ -29750,7 +29750,7 @@ const hn = new _(), Ul = new ee(), id = new V(), ul = class ix extends Cn {
|
|
|
29750
29750
|
...this.getBasicOptions(),
|
|
29751
29751
|
...e
|
|
29752
29752
|
}, Sp && console.log(this.name, e);
|
|
29753
|
-
const t = new
|
|
29753
|
+
const t = new jv(e);
|
|
29754
29754
|
return this._createdTextBlocks.push(t), t;
|
|
29755
29755
|
}
|
|
29756
29756
|
};
|
|
@@ -29770,7 +29770,7 @@ rh([
|
|
|
29770
29770
|
u(Z)
|
|
29771
29771
|
], ul.prototype, "anchorMax", 2);
|
|
29772
29772
|
let es = ul;
|
|
29773
|
-
var wT = Object.defineProperty,
|
|
29773
|
+
var wT = Object.defineProperty, sx = (s, e, t, i) => {
|
|
29774
29774
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
29775
29775
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
29776
29776
|
return n && wT(e, t, n), n;
|
|
@@ -29779,13 +29779,13 @@ class ah extends R {
|
|
|
29779
29779
|
effectColor;
|
|
29780
29780
|
effectDistance;
|
|
29781
29781
|
}
|
|
29782
|
-
|
|
29782
|
+
sx([
|
|
29783
29783
|
u(ae)
|
|
29784
29784
|
], ah.prototype, "effectColor");
|
|
29785
|
-
|
|
29785
|
+
sx([
|
|
29786
29786
|
u(Z)
|
|
29787
29787
|
], ah.prototype, "effectDistance");
|
|
29788
|
-
var xT = Object.defineProperty, ST = Object.getOwnPropertyDescriptor,
|
|
29788
|
+
var xT = Object.defineProperty, ST = Object.getOwnPropertyDescriptor, ox = (s, e, t, i) => {
|
|
29789
29789
|
for (var n = i > 1 ? void 0 : i ? ST(e, t) : e, o = s.length - 1, r; o >= 0; o--)
|
|
29790
29790
|
(r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
|
|
29791
29791
|
return i && n && xT(e, t, n), n;
|
|
@@ -29905,10 +29905,10 @@ const or = {
|
|
|
29905
29905
|
super.onAfterAddedToScene(), this.shadowComponent && (this.shadowComponent.offset = this.shadowComponent.position.z);
|
|
29906
29906
|
}
|
|
29907
29907
|
};
|
|
29908
|
-
|
|
29908
|
+
ox([
|
|
29909
29909
|
u(ae)
|
|
29910
29910
|
], ay.prototype, "color", 1);
|
|
29911
|
-
|
|
29911
|
+
ox([
|
|
29912
29912
|
u()
|
|
29913
29913
|
], ay.prototype, "raycastTarget", 2);
|
|
29914
29914
|
let nf = ay;
|
|
@@ -29924,7 +29924,7 @@ var CT = Object.defineProperty, PT = Object.getOwnPropertyDescriptor, Gs = (s, e
|
|
|
29924
29924
|
return i && n && CT(e, t, n), n;
|
|
29925
29925
|
};
|
|
29926
29926
|
const rr = x("debugtext");
|
|
29927
|
-
var rt = /* @__PURE__ */ ((s) => (s[s.UpperLeft = 0] = "UpperLeft", s[s.UpperCenter = 1] = "UpperCenter", s[s.UpperRight = 2] = "UpperRight", s[s.MiddleLeft = 3] = "MiddleLeft", s[s.MiddleCenter = 4] = "MiddleCenter", s[s.MiddleRight = 5] = "MiddleRight", s[s.LowerLeft = 6] = "LowerLeft", s[s.LowerCenter = 7] = "LowerCenter", s[s.LowerRight = 8] = "LowerRight", s))(rt || {}),
|
|
29927
|
+
var rt = /* @__PURE__ */ ((s) => (s[s.UpperLeft = 0] = "UpperLeft", s[s.UpperCenter = 1] = "UpperCenter", s[s.UpperRight = 2] = "UpperRight", s[s.MiddleLeft = 3] = "MiddleLeft", s[s.MiddleCenter = 4] = "MiddleCenter", s[s.MiddleRight = 5] = "MiddleRight", s[s.LowerLeft = 6] = "LowerLeft", s[s.LowerCenter = 7] = "LowerCenter", s[s.LowerRight = 8] = "LowerRight", s))(rt || {}), rx = /* @__PURE__ */ ((s) => (s[s.Normal = 0] = "Normal", s[s.Bold = 1] = "Bold", s[s.Italic = 2] = "Italic", s[s.BoldAndItalic = 3] = "BoldAndItalic", s))(rx || {});
|
|
29928
29928
|
class si extends nf {
|
|
29929
29929
|
alignment = 0;
|
|
29930
29930
|
verticalOverflow = 0;
|
|
@@ -30202,7 +30202,7 @@ class si extends nf {
|
|
|
30202
30202
|
let r = e;
|
|
30203
30203
|
o >= 0 && (r = r.substring(o + 1));
|
|
30204
30204
|
const a = r[0] === r[0].toUpperCase(), l = e.substring(0, i > o ? i : e.length);
|
|
30205
|
-
switch (rr && console.log("Select font: ", e,
|
|
30205
|
+
switch (rr && console.log("Select font: ", e, rx[t], r, a, l), t) {
|
|
30206
30206
|
case 0:
|
|
30207
30207
|
return a ? l + "-Regular" : l + "-regular";
|
|
30208
30208
|
case 1:
|
|
@@ -30299,7 +30299,7 @@ class oc {
|
|
|
30299
30299
|
t.appendLine(`string[] font = [ ${i} ]`), t.appendLine(`double pointSize = ${this.pointSize}`), typeof this.width == "number" && t.appendLine(`double width = ${this.width}`), typeof this.height == "number" && t.appendLine(`double height = ${this.height}`), typeof this.depth == "number" && t.appendLine(`double depth = ${this.depth}`), this.wrapMode && t.appendLine(`token wrapMode = "${this.wrapMode}"`), this.horizontalAlignment && t.appendLine(`token horizontalAlignment = "${this.horizontalAlignment}"`), this.verticalAlignment && t.appendLine(`token verticalAlignment = "${this.verticalAlignment}"`), this.material !== void 0 && t.appendLine(`rel material:binding = </StageRoot/Materials/${Xu(this.material)}>`), t.closeBlock();
|
|
30300
30300
|
}
|
|
30301
30301
|
}
|
|
30302
|
-
class
|
|
30302
|
+
class ax {
|
|
30303
30303
|
static singleLine(e, t, i) {
|
|
30304
30304
|
const n = new oc("text_" + oc.getId());
|
|
30305
30305
|
return n.content = e, t && (n.pointSize = t), i && (n.depth = i), n;
|
|
@@ -30326,7 +30326,7 @@ class ly {
|
|
|
30326
30326
|
t.material = new mt({ color: c, emissive: c }), t.addEventListener("serialize", (h, d) => {
|
|
30327
30327
|
let f = n.text;
|
|
30328
30328
|
f = f.replace(/\r/g, ""), f = f.replace(/\n/g, "\\n");
|
|
30329
|
-
const p =
|
|
30329
|
+
const p = ax.multiLine(
|
|
30330
30330
|
f,
|
|
30331
30331
|
r,
|
|
30332
30332
|
a,
|
|
@@ -30556,17 +30556,17 @@ it([
|
|
|
30556
30556
|
it([
|
|
30557
30557
|
u()
|
|
30558
30558
|
], zo.prototype, "childScaleWidth");
|
|
30559
|
-
class
|
|
30559
|
+
class lx extends zo {
|
|
30560
30560
|
get primaryAxis() {
|
|
30561
30561
|
return "y";
|
|
30562
30562
|
}
|
|
30563
30563
|
}
|
|
30564
|
-
class
|
|
30564
|
+
class cx extends zo {
|
|
30565
30565
|
get primaryAxis() {
|
|
30566
30566
|
return "x";
|
|
30567
30567
|
}
|
|
30568
30568
|
}
|
|
30569
|
-
class
|
|
30569
|
+
class hx extends Ii {
|
|
30570
30570
|
onCalculateLayout() {
|
|
30571
30571
|
}
|
|
30572
30572
|
}
|
|
@@ -30574,8 +30574,8 @@ var RT = Object.defineProperty, TT = Object.getOwnPropertyDescriptor, ns = (s, e
|
|
|
30574
30574
|
for (var n = i > 1 ? void 0 : i ? TT(e, t) : e, o = s.length - 1, r; o >= 0; o--)
|
|
30575
30575
|
(r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
|
|
30576
30576
|
return i && n && RT(e, t, n), n;
|
|
30577
|
-
},
|
|
30578
|
-
const kp = x("debuguilayout"), nn = class
|
|
30577
|
+
}, dx = /* @__PURE__ */ ((s) => (s[s.ScreenSpaceOverlay = 0] = "ScreenSpaceOverlay", s[s.ScreenSpaceCamera = 1] = "ScreenSpaceCamera", s[s.WorldSpace = 2] = "WorldSpace", s[s.Undefined = -1] = "Undefined", s))(dx || {});
|
|
30578
|
+
const kp = x("debuguilayout"), nn = class ux extends tf {
|
|
30579
30579
|
get isCanvas() {
|
|
30580
30580
|
return !0;
|
|
30581
30581
|
}
|
|
@@ -30626,7 +30626,7 @@ const kp = x("debuguilayout"), nn = class dx extends tf {
|
|
|
30626
30626
|
_renderMode = -1;
|
|
30627
30627
|
_rootCanvas;
|
|
30628
30628
|
set rootCanvas(e) {
|
|
30629
|
-
this._rootCanvas instanceof
|
|
30629
|
+
this._rootCanvas instanceof ux || (this._rootCanvas = e);
|
|
30630
30630
|
}
|
|
30631
30631
|
get rootCanvas() {
|
|
30632
30632
|
return this._rootCanvas;
|
|
@@ -30839,7 +30839,7 @@ cy([
|
|
|
30839
30839
|
cy([
|
|
30840
30840
|
u()
|
|
30841
30841
|
], Br.prototype, "blocksRaycasts", 2);
|
|
30842
|
-
class
|
|
30842
|
+
class fx {
|
|
30843
30843
|
get extensionName() {
|
|
30844
30844
|
return "tmui";
|
|
30845
30845
|
}
|
|
@@ -30847,7 +30847,7 @@ class ux {
|
|
|
30847
30847
|
// so that we don't export them twice (once as regular hierarchy, once as part of Canvas export)
|
|
30848
30848
|
onExportObject(e, t, i) {
|
|
30849
30849
|
const n = C.getComponent(e, $c);
|
|
30850
|
-
if (n && n.enabled && n.renderMode ===
|
|
30850
|
+
if (n && n.enabled && n.renderMode === dx.WorldSpace) {
|
|
30851
30851
|
const o = new ly(), r = C.getComponent(e, es), a = C.getComponent(e, Br), l = new Array();
|
|
30852
30852
|
if (r) {
|
|
30853
30853
|
if (!C.isActiveSelf(e)) {
|
|
@@ -31168,7 +31168,7 @@ const gi = class ur extends R {
|
|
|
31168
31168
|
const a = new RR(), l = new ey(this.quickLookCompatible);
|
|
31169
31169
|
let c;
|
|
31170
31170
|
const h = [];
|
|
31171
|
-
this.interactive && (h.push(new
|
|
31171
|
+
this.interactive && (h.push(new tx()), h.push(new cl()), globalThis.NEEDLE_USE_RAPIER && C.getComponentsInChildren(e, et).length > 0 && (this.physics ? (c = new ix(), h.push(c)) : L() && console.warn("USDZExporter: Physics export is disabled, but there are active Rigidbody components in the scene. They will not be exported.")), h.push(new ly()), h.push(new fx()));
|
|
31172
31172
|
const d = [l, ...h, ...this.extensions], f = { self: this, exporter: a, extensions: d, object: e };
|
|
31173
31173
|
he.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: f })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, he.report("export-usdz", "auto export animations and audio sources");
|
|
31174
31174
|
const p = new Array();
|
|
@@ -31388,7 +31388,7 @@ class ml extends R {
|
|
|
31388
31388
|
_gizmoObject = null;
|
|
31389
31389
|
_boxHelper = null;
|
|
31390
31390
|
onEnable() {
|
|
31391
|
-
this.isGizmo && !Xc || (this._gizmoObject || (this.objectBounds ? this._gizmoObject = new
|
|
31391
|
+
this.isGizmo && !Xc || (this._gizmoObject || (this.objectBounds ? this._gizmoObject = new dC(this.gameObject, this.color ?? 16776960) : (this.objectBounds = !1, this._gizmoObject = xg(this.color ?? 16776960))), this.objectBounds ? (this.scene.add(this._gizmoObject), this._boxHelper = this._gizmoObject, this.startCoroutine(this.syncObjectBounds(), Ce.OnBeforeRender)) : this.gameObject.add(this._gizmoObject));
|
|
31392
31392
|
}
|
|
31393
31393
|
onDisable() {
|
|
31394
31394
|
this._gizmoObject && this.gameObject.remove(this._gizmoObject);
|
|
@@ -31461,7 +31461,7 @@ class py extends R {
|
|
|
31461
31461
|
fy([
|
|
31462
31462
|
u(et)
|
|
31463
31463
|
], py.prototype, "connectedBody");
|
|
31464
|
-
class
|
|
31464
|
+
class px extends py {
|
|
31465
31465
|
createJoint(e, t) {
|
|
31466
31466
|
this.context.physics.engine?.addFixedJoint(e, t);
|
|
31467
31467
|
}
|
|
@@ -31642,12 +31642,12 @@ class Ht extends R {
|
|
|
31642
31642
|
case 1:
|
|
31643
31643
|
const t = new Vp(this.color, this.intensity * Math.PI);
|
|
31644
31644
|
if (t.position.set(0, 0, -Vb * 0.5).applyQuaternion(this.gameObject.quaternion), this.gameObject.add(t.target), Ha(t.target, 0, 0, 0), this.light = t, this.gameObject.position.set(0, 0, 0), this.gameObject.rotation.set(0, 0, 0), to) {
|
|
31645
|
-
const r = new
|
|
31645
|
+
const r = new fC(this.light, 0.2, this.color);
|
|
31646
31646
|
this.context.scene.add(r);
|
|
31647
31647
|
}
|
|
31648
31648
|
break;
|
|
31649
31649
|
case 0:
|
|
31650
|
-
const i = new
|
|
31650
|
+
const i = new uC(this.color, this.intensity * Math.PI, this.range, ha(this.spotAngle / 2), 1 - ha(this.innerSpotAngle / 2) / ha(this.spotAngle / 2), 2);
|
|
31651
31651
|
i.position.set(0, 0, 0), i.rotation.set(0, 0, 0), this.light = i;
|
|
31652
31652
|
const n = i.target;
|
|
31653
31653
|
i.add(n), n.position.set(0, 0, this.range), n.rotation.set(0, 0, 0);
|
|
@@ -31673,7 +31673,7 @@ class Ht extends R {
|
|
|
31673
31673
|
const i = this.gameObject.scale.y;
|
|
31674
31674
|
t.top *= i, t.bottom *= i;
|
|
31675
31675
|
}
|
|
31676
|
-
this.light.shadow.needsUpdate = !0, to && this.context.scene.add(new
|
|
31676
|
+
this.light.shadow.needsUpdate = !0, to && this.context.scene.add(new pC(t));
|
|
31677
31677
|
}
|
|
31678
31678
|
this.isBaked ? this.light.removeFromParent() : e || this.gameObject.add(this.light);
|
|
31679
31679
|
}
|
|
@@ -31792,7 +31792,7 @@ class my extends R {
|
|
|
31792
31792
|
}
|
|
31793
31793
|
this._lodsHandler = new Array();
|
|
31794
31794
|
for (let i = 0; i < e.length; i++) {
|
|
31795
|
-
const n = new
|
|
31795
|
+
const n = new mC();
|
|
31796
31796
|
this._lodsHandler.push(n), this.gameObject.add(n);
|
|
31797
31797
|
}
|
|
31798
31798
|
const t = new M();
|
|
@@ -31971,7 +31971,7 @@ yy([
|
|
|
31971
31971
|
yy([
|
|
31972
31972
|
u()
|
|
31973
31973
|
], af.prototype, "localhost");
|
|
31974
|
-
let
|
|
31974
|
+
let mx = af;
|
|
31975
31975
|
var ZT = Object.defineProperty, lf = (s, e, t, i) => {
|
|
31976
31976
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
31977
31977
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -32056,7 +32056,7 @@ Uo([
|
|
|
32056
32056
|
Uo([
|
|
32057
32057
|
u()
|
|
32058
32058
|
], ki.prototype, "weightedMode");
|
|
32059
|
-
const
|
|
32059
|
+
const gx = class ac {
|
|
32060
32060
|
/**
|
|
32061
32061
|
* Creates an animation curve that goes from the `from` value to the `to` value over the given `duration`.
|
|
32062
32062
|
*/
|
|
@@ -32115,8 +32115,8 @@ const mx = class ac {
|
|
|
32115
32115
|
};
|
|
32116
32116
|
Uo([
|
|
32117
32117
|
u(ki)
|
|
32118
|
-
],
|
|
32119
|
-
let cf =
|
|
32118
|
+
], gx.prototype, "keys");
|
|
32119
|
+
let cf = gx;
|
|
32120
32120
|
var eA = Object.defineProperty, S = (s, e, t, i) => {
|
|
32121
32121
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
32122
32122
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -32608,7 +32608,7 @@ const nt = class cc {
|
|
|
32608
32608
|
/** initializer implementation */
|
|
32609
32609
|
_vector = new _(0, 0, 0);
|
|
32610
32610
|
_temp = new _(0, 0, 0);
|
|
32611
|
-
_triangle = new
|
|
32611
|
+
_triangle = new gC();
|
|
32612
32612
|
onInitialize(e) {
|
|
32613
32613
|
this._vector.set(0, 0, 0), e.mesh = void 0, e.mesh_geometry = void 0;
|
|
32614
32614
|
const t = this._temp.copy(this.position), i = this._space === 1;
|
|
@@ -32821,7 +32821,7 @@ S([
|
|
|
32821
32821
|
S([
|
|
32822
32822
|
u(Gu)
|
|
32823
32823
|
], nt.prototype, "meshRenderer");
|
|
32824
|
-
let
|
|
32824
|
+
let yx = nt;
|
|
32825
32825
|
class we {
|
|
32826
32826
|
damping;
|
|
32827
32827
|
enabled;
|
|
@@ -33374,13 +33374,13 @@ S([
|
|
|
33374
33374
|
S([
|
|
33375
33375
|
u()
|
|
33376
33376
|
], wt.prototype, "space");
|
|
33377
|
-
const uh = class
|
|
33377
|
+
const uh = class _x {
|
|
33378
33378
|
enabled;
|
|
33379
33379
|
curve;
|
|
33380
33380
|
curveMultiplier;
|
|
33381
33381
|
mode;
|
|
33382
33382
|
clone() {
|
|
33383
|
-
const e = new
|
|
33383
|
+
const e = new _x();
|
|
33384
33384
|
return e.enabled = this.enabled, e.curve = this.curve?.clone(), e.curveMultiplier = this.curveMultiplier, e.mode = this.mode, e;
|
|
33385
33385
|
}
|
|
33386
33386
|
system;
|
|
@@ -33428,7 +33428,7 @@ S([
|
|
|
33428
33428
|
S([
|
|
33429
33429
|
u()
|
|
33430
33430
|
], uh.prototype, "mode");
|
|
33431
|
-
let
|
|
33431
|
+
let bx = uh;
|
|
33432
33432
|
class Di {
|
|
33433
33433
|
enabled;
|
|
33434
33434
|
range;
|
|
@@ -33499,7 +33499,7 @@ S([
|
|
|
33499
33499
|
], fh.prototype, "color");
|
|
33500
33500
|
new _(1, 1, 1);
|
|
33501
33501
|
new _(0, 0, 1);
|
|
33502
|
-
class
|
|
33502
|
+
class vx {
|
|
33503
33503
|
constructor(e, t, i, n) {
|
|
33504
33504
|
this.system = e, this.particleSystem = t, this.subSystem = i, this.subParticleSystem = n, this.subParticleSystem && this.subParticleSystem && (this.subParticleSystem.onlyUsedByOther = !0);
|
|
33505
33505
|
const o = 1e3;
|
|
@@ -33780,7 +33780,7 @@ class hA extends Yr {
|
|
|
33780
33780
|
this.system.renderer.renderMode !== gs.Mesh && (o = this.system.worldScale.x / this.system.cameraScale);
|
|
33781
33781
|
const r = U(e.startSize).multiplyScalar(n * o);
|
|
33782
33782
|
if (e.size.set(r.x, r.y, r.z), this.system.localspace) {
|
|
33783
|
-
const a =
|
|
33783
|
+
const a = wx(this.system, cA);
|
|
33784
33784
|
e.size.x *= a.x, e.size.y *= a.y, e.size.z *= a.z;
|
|
33785
33785
|
}
|
|
33786
33786
|
}
|
|
@@ -33978,7 +33978,7 @@ class pA {
|
|
|
33978
33978
|
return 1;
|
|
33979
33979
|
}
|
|
33980
33980
|
get blending() {
|
|
33981
|
-
return this.system.renderer.particleMaterial?.blending ??
|
|
33981
|
+
return this.system.renderer.particleMaterial?.blending ?? yC;
|
|
33982
33982
|
}
|
|
33983
33983
|
get transparent() {
|
|
33984
33984
|
return this.system.renderer.transparent;
|
|
@@ -34263,7 +34263,7 @@ const Gt = class Md extends R {
|
|
|
34263
34263
|
}
|
|
34264
34264
|
const t = !this.worldspace, i = this.gameObject;
|
|
34265
34265
|
if (ve(i, this.__worldQuaternion), this._worldQuaternionInverted.copy(this.__worldQuaternion).invert(), Qe(this.gameObject, this._worldScale), t && this._container && this.gameObject?.parent) {
|
|
34266
|
-
const n =
|
|
34266
|
+
const n = wx(this, $m);
|
|
34267
34267
|
this._container.matrix.makeScale(n.x, n.y, n.z), this._container.matrix.makeRotationFromQuaternion(this.__worldQuaternion), this._container.matrix.setPosition(this.worldPos), this._container.matrix.scale(this.gameObject.scale);
|
|
34268
34268
|
}
|
|
34269
34269
|
this.emission.system = this, this._interface.update(), this.shape.onUpdate(this, this.context, this.main.simulationSpace, this.gameObject), this.noise.update(this.context), this.inheritVelocity?.update(this.context), this.velocityOverLifetime.update(this);
|
|
@@ -34275,7 +34275,7 @@ const Gt = class Md extends R {
|
|
|
34275
34275
|
const t = e.particleSystem?._particleSystem;
|
|
34276
34276
|
if (t) {
|
|
34277
34277
|
e.particleSystem._isUsedAsSubsystem = !0;
|
|
34278
|
-
const i = new
|
|
34278
|
+
const i = new vx(this, this._particleSystem, e.particleSystem, t);
|
|
34279
34279
|
i.emitterType = e.type, i.emitterProbability = e.emitProbability, this._particleSystem.addBehavior(i);
|
|
34280
34280
|
} else uo && console.warn("Could not add SubParticleSystem", e, this);
|
|
34281
34281
|
}
|
|
@@ -34294,7 +34294,7 @@ Ne([
|
|
|
34294
34294
|
u(bl)
|
|
34295
34295
|
], Gt.prototype, "sizeOverLifetime");
|
|
34296
34296
|
Ne([
|
|
34297
|
-
u(
|
|
34297
|
+
u(yx)
|
|
34298
34298
|
], Gt.prototype, "shape");
|
|
34299
34299
|
Ne([
|
|
34300
34300
|
u(we)
|
|
@@ -34309,7 +34309,7 @@ Ne([
|
|
|
34309
34309
|
u(wt)
|
|
34310
34310
|
], Gt.prototype, "limitVelocityOverLifetime");
|
|
34311
34311
|
Ne([
|
|
34312
|
-
u(
|
|
34312
|
+
u(bx)
|
|
34313
34313
|
], Gt.prototype, "inheritVelocity");
|
|
34314
34314
|
Ne([
|
|
34315
34315
|
u(fh)
|
|
@@ -34339,7 +34339,7 @@ class Wm {
|
|
|
34339
34339
|
i && typeof i.guid == "string" && (n = i.guid, this.particleSystem = C.findByGuid(n, t)), uo && !(this.particleSystem instanceof ru) && console.warn("Could not find particle system for sub emitter", n, t, this);
|
|
34340
34340
|
}
|
|
34341
34341
|
}
|
|
34342
|
-
function
|
|
34342
|
+
function wx(s, e) {
|
|
34343
34343
|
if (e.set(1, 1, 1), s.gameObject.parent && s.localspace)
|
|
34344
34344
|
switch (s.main.scalingMode) {
|
|
34345
34345
|
case zm.Local:
|
|
@@ -34394,7 +34394,7 @@ class Vc extends R {
|
|
|
34394
34394
|
this.context.connection.stopListen(ie.JoinedRoom, this.tryAssignColor);
|
|
34395
34395
|
}
|
|
34396
34396
|
*waitForConnection() {
|
|
34397
|
-
for (; !this.destroyed && this.activeAndEnabled && (yield
|
|
34397
|
+
for (; !this.destroyed && this.activeAndEnabled && (yield G0(0.2), !this.tryAssignColor()); )
|
|
34398
34398
|
;
|
|
34399
34399
|
}
|
|
34400
34400
|
tryAssignColor = () => {
|
|
@@ -34436,7 +34436,7 @@ let Vm = null;
|
|
|
34436
34436
|
function yA(s) {
|
|
34437
34437
|
Vm = s;
|
|
34438
34438
|
}
|
|
34439
|
-
function
|
|
34439
|
+
function xx(s) {
|
|
34440
34440
|
let e = s.gameObject;
|
|
34441
34441
|
for (; e; ) {
|
|
34442
34442
|
for (const t of Rg(e))
|
|
@@ -34447,7 +34447,7 @@ function wx(s) {
|
|
|
34447
34447
|
return null;
|
|
34448
34448
|
}
|
|
34449
34449
|
function _A(s) {
|
|
34450
|
-
let e =
|
|
34450
|
+
let e = xx(s);
|
|
34451
34451
|
if (!e)
|
|
34452
34452
|
if (Vm) {
|
|
34453
34453
|
hc && console.warn("Adding postprocessing manager to the scene.");
|
|
@@ -34484,7 +34484,7 @@ function bA(s) {
|
|
|
34484
34484
|
return i === Number.NEGATIVE_INFINITY ? (hc && console.warn("Unknown effect found: ", e.constructor.name, e), 1) : n === Number.NEGATIVE_INFINITY ? (hc && console.warn("Unknown effect found: ", t.constructor.name, t), -1) : i - n;
|
|
34485
34485
|
}), hc === "verbose" && console.debug("After ordering effects", [...s]);
|
|
34486
34486
|
}
|
|
34487
|
-
var vA = Object.defineProperty, wA = Object.getOwnPropertyDescriptor,
|
|
34487
|
+
var vA = Object.defineProperty, wA = Object.getOwnPropertyDescriptor, Sx = (s, e, t, i) => {
|
|
34488
34488
|
for (var n = wA(e, t), o = s.length - 1, r; o >= 0; o--)
|
|
34489
34489
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34490
34490
|
return n && vA(e, t, n), n;
|
|
@@ -34542,10 +34542,10 @@ class $ {
|
|
|
34542
34542
|
return this._valueRaw !== e;
|
|
34543
34543
|
}
|
|
34544
34544
|
}
|
|
34545
|
-
|
|
34545
|
+
Sx([
|
|
34546
34546
|
u()
|
|
34547
34547
|
], $.prototype, "overrideState");
|
|
34548
|
-
|
|
34548
|
+
Sx([
|
|
34549
34549
|
u()
|
|
34550
34550
|
], $.prototype, "value");
|
|
34551
34551
|
class SA extends sn {
|
|
@@ -34718,7 +34718,7 @@ var IA = Object.defineProperty, xy = (s, e, t, i) => {
|
|
|
34718
34718
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34719
34719
|
return n && IA(e, t, n), n;
|
|
34720
34720
|
};
|
|
34721
|
-
const df = class
|
|
34721
|
+
const df = class Cx extends dt {
|
|
34722
34722
|
/** Whether to use selective bloom by default */
|
|
34723
34723
|
static useSelectiveBloom = !1;
|
|
34724
34724
|
get typeName() {
|
|
@@ -34737,7 +34737,7 @@ const df = class Sx extends dt {
|
|
|
34737
34737
|
}
|
|
34738
34738
|
onCreateEffect() {
|
|
34739
34739
|
let e;
|
|
34740
|
-
if (this.selectiveBloom == null && (this.selectiveBloom =
|
|
34740
|
+
if (this.selectiveBloom == null && (this.selectiveBloom = Cx.useSelectiveBloom), this.selectiveBloom) {
|
|
34741
34741
|
const t = e = new A.POSTPROCESSING.MODULE.SelectiveBloomEffect(this.context.scene, this.context.mainCamera, {
|
|
34742
34742
|
blendFunction: A.POSTPROCESSING.MODULE.BlendFunction.ADD,
|
|
34743
34743
|
mipmapBlur: !0,
|
|
@@ -34849,7 +34849,7 @@ function Ed(s) {
|
|
|
34849
34849
|
return A.POSTPROCESSING.MODULE.ToneMappingMode.LINEAR;
|
|
34850
34850
|
}
|
|
34851
34851
|
}
|
|
34852
|
-
var BA = Object.defineProperty,
|
|
34852
|
+
var BA = Object.defineProperty, Px = (s, e, t, i) => {
|
|
34853
34853
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
34854
34854
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
34855
34855
|
return n && BA(e, t, n), n;
|
|
@@ -34870,7 +34870,7 @@ class Fr extends dt {
|
|
|
34870
34870
|
return !0;
|
|
34871
34871
|
}
|
|
34872
34872
|
onEffectEnabled() {
|
|
34873
|
-
const e =
|
|
34873
|
+
const e = xx(this);
|
|
34874
34874
|
e && super.onEffectEnabled(e);
|
|
34875
34875
|
}
|
|
34876
34876
|
_tonemappingEffect = null;
|
|
@@ -34885,7 +34885,7 @@ class Fr extends dt {
|
|
|
34885
34885
|
});
|
|
34886
34886
|
return this.mode.onValueChanged = (i) => {
|
|
34887
34887
|
if (typeof i == "string")
|
|
34888
|
-
i =
|
|
34888
|
+
i = X0(i), t.mode = Ed(i);
|
|
34889
34889
|
else {
|
|
34890
34890
|
const n = Ap(i);
|
|
34891
34891
|
t.mode = Ed(n);
|
|
@@ -34900,10 +34900,10 @@ class Fr extends dt {
|
|
|
34900
34900
|
}
|
|
34901
34901
|
}
|
|
34902
34902
|
}
|
|
34903
|
-
|
|
34903
|
+
Px([
|
|
34904
34904
|
u($)
|
|
34905
34905
|
], Fr.prototype, "mode");
|
|
34906
|
-
|
|
34906
|
+
Px([
|
|
34907
34907
|
u($)
|
|
34908
34908
|
], Fr.prototype, "exposure");
|
|
34909
34909
|
Rn("Tonemapping", Fr);
|
|
@@ -35201,7 +35201,7 @@ Jr([
|
|
|
35201
35201
|
u()
|
|
35202
35202
|
], rs.prototype, "quality");
|
|
35203
35203
|
Rn("ScreenSpaceAmbientOcclusionN8", rs);
|
|
35204
|
-
var GA = Object.defineProperty, qA = Object.getOwnPropertyDescriptor,
|
|
35204
|
+
var GA = Object.defineProperty, qA = Object.getOwnPropertyDescriptor, kx = (s, e, t, i) => {
|
|
35205
35205
|
for (var n = qA(e, t), o = s.length - 1, r; o >= 0; o--)
|
|
35206
35206
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
35207
35207
|
return n && GA(e, t, n), n;
|
|
@@ -35240,10 +35240,10 @@ class mf extends dt {
|
|
|
35240
35240
|
// return this.effect.uniforms.get("threshold")!.value;
|
|
35241
35241
|
// }
|
|
35242
35242
|
}
|
|
35243
|
-
|
|
35243
|
+
kx([
|
|
35244
35244
|
u()
|
|
35245
35245
|
], mf.prototype, "amount");
|
|
35246
|
-
|
|
35246
|
+
kx([
|
|
35247
35247
|
u()
|
|
35248
35248
|
], mf.prototype, "radius");
|
|
35249
35249
|
function XA() {
|
|
@@ -35396,7 +35396,7 @@ Cy([
|
|
|
35396
35396
|
Rn("Vignette", wl);
|
|
35397
35397
|
globalThis.NEEDLE_USE_POSTPROCESSING = globalThis.NEEDLE_USE_POSTPROCESSING !== void 0 ? globalThis.NEEDLE_USE_POSTPROCESSING : !0;
|
|
35398
35398
|
const hs = x("debugpost"), Lp = /* @__PURE__ */ Symbol("needle:postprocessing-handler"), Nl = /* @__PURE__ */ Symbol("needle:previous-autoclear-state"), $l = /* @__PURE__ */ Symbol("needle:previous-tone-mapping");
|
|
35399
|
-
class
|
|
35399
|
+
class Ox {
|
|
35400
35400
|
_composer = null;
|
|
35401
35401
|
_lastVolumeComponents;
|
|
35402
35402
|
_effects = [];
|
|
@@ -35632,7 +35632,7 @@ class kx {
|
|
|
35632
35632
|
}
|
|
35633
35633
|
}
|
|
35634
35634
|
}
|
|
35635
|
-
var KA = Object.defineProperty,
|
|
35635
|
+
var KA = Object.defineProperty, Mx = (s, e, t, i) => {
|
|
35636
35636
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
35637
35637
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
35638
35638
|
return n && KA(e, t, n), n;
|
|
@@ -35752,7 +35752,7 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
|
|
|
35752
35752
|
}
|
|
35753
35753
|
for (const e of this._effects)
|
|
35754
35754
|
e.active && e.enabled && !this._activeEffects.includes(e) && this._activeEffects.push(e);
|
|
35755
|
-
this._activeEffects.length > 0 ? (this._postprocessing || (this._postprocessing = new
|
|
35755
|
+
this._activeEffects.length > 0 ? (this._postprocessing || (this._postprocessing = new Ox(this.context)), this._postprocessing.apply(this._activeEffects)?.then(() => {
|
|
35756
35756
|
this.activeAndEnabled && (this._applyPostQueue(), this._postprocessing ? (this.multisampling === "auto" ? this._postprocessing.multisampling = D.isMobileDevice() ? 2 : 4 : this._postprocessing.multisampling = Math.max(0, Math.min(this.multisampling, this.context.renderer.capabilities.maxSamples)), lr && console.debug(`[PostProcessing] Set multisampling to ${this._postprocessing.multisampling} (Is Mobile: ${D.isMobileDevice()})`)) : lr && console.warn("[PostProcessing] No composer found"));
|
|
35757
35757
|
})) : this._postprocessing?.unapply(!1);
|
|
35758
35758
|
}
|
|
@@ -35810,10 +35810,10 @@ If you need multisampling consider changing 'auto' to a fixed value (e.g. 4).`))
|
|
|
35810
35810
|
}, 200);
|
|
35811
35811
|
}
|
|
35812
35812
|
}
|
|
35813
|
-
|
|
35813
|
+
Mx([
|
|
35814
35814
|
tt(wy)
|
|
35815
35815
|
], gh.prototype, "sharedProfile");
|
|
35816
|
-
|
|
35816
|
+
Mx([
|
|
35817
35817
|
tt()
|
|
35818
35818
|
], gh.prototype, "multisampling");
|
|
35819
35819
|
const ld = /* @__PURE__ */ new Map();
|
|
@@ -36409,7 +36409,7 @@ var sI = Object.defineProperty, oI = Object.getOwnPropertyDescriptor, ji = (s, e
|
|
|
36409
36409
|
return i && n && sI(e, t, n), n;
|
|
36410
36410
|
};
|
|
36411
36411
|
const Ze = x("debugvideo");
|
|
36412
|
-
var
|
|
36412
|
+
var Ex = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.AdjustHeight = 1] = "AdjustHeight", s[s.AdjustWidth = 2] = "AdjustWidth", s))(Ex || {}), Rx = /* @__PURE__ */ ((s) => (s[s.VideoClip = 0] = "VideoClip", s[s.Url = 1] = "Url", s))(Rx || {}), Tx = /* @__PURE__ */ ((s) => (s[s.CameraFarPlane = 0] = "CameraFarPlane", s[s.CameraNearPlane = 1] = "CameraNearPlane", s[s.RenderTexture = 2] = "RenderTexture", s[s.MaterialOverride = 3] = "MaterialOverride", s))(Tx || {});
|
|
36413
36413
|
class _t extends R {
|
|
36414
36414
|
playOnAwake = !0;
|
|
36415
36415
|
aspectMode = 0;
|
|
@@ -36559,7 +36559,7 @@ class _t extends R {
|
|
|
36559
36559
|
}
|
|
36560
36560
|
/** @internal */
|
|
36561
36561
|
onEnable() {
|
|
36562
|
-
Ze && console.log("VideoPlayer.onEnable",
|
|
36562
|
+
Ze && console.log("VideoPlayer.onEnable", Rx[this.source], this.clip, this.url, this), window.addEventListener("visibilitychange", this.visibilityChanged), this.playOnAwake === !0 ? this.create(!0) : this.preloadVideo(), this.screenspace ? this._overlay?.start() : this._overlay?.stop();
|
|
36563
36563
|
}
|
|
36564
36564
|
/** @internal */
|
|
36565
36565
|
onDisable() {
|
|
@@ -36631,7 +36631,7 @@ class _t extends R {
|
|
|
36631
36631
|
t = this.url, !t?.length && typeof this.clip == "string" && (t = this.clip);
|
|
36632
36632
|
break;
|
|
36633
36633
|
}
|
|
36634
|
-
return t ? (this._videoElement || (Ze && console.warn("Create VideoElement", this), this._videoElement = this.createVideoElement(), this.context.domElement.shadowRoot.prepend(this._videoElement), this.updateVideoElementStyles()), typeof t == "string" ? (Ze && console.log("Set Video src", t), this._videoElement.src = t) : (Ze && console.log("Set Video srcObject", t), this._videoElement.srcObject = t), this._videoTexture || (this._videoTexture = new
|
|
36634
|
+
return t ? (this._videoElement || (Ze && console.warn("Create VideoElement", this), this._videoElement = this.createVideoElement(), this.context.domElement.shadowRoot.prepend(this._videoElement), this.updateVideoElementStyles()), typeof t == "string" ? (Ze && console.log("Set Video src", t), this._videoElement.src = t) : (Ze && console.log("Set Video srcObject", t), this._videoElement.srcObject = t), this._videoTexture || (this._videoTexture = new _C(this._videoElement)), this._videoTexture.flipY = !1, this._videoTexture.colorSpace = js, e && this.handleBeginPlaying(e), Ze && console.log("Video: handle playing done...", t, e), !0) : (Ze && console.warn("No video source set", this), !1);
|
|
36635
36635
|
}
|
|
36636
36636
|
updateAspect() {
|
|
36637
36637
|
this.aspectMode !== 0 && this.startCoroutine(this.updateAspectImpl());
|
|
@@ -36669,7 +36669,7 @@ class _t extends R {
|
|
|
36669
36669
|
return;
|
|
36670
36670
|
}
|
|
36671
36671
|
if (!t) {
|
|
36672
|
-
console.error("Missing target for video material renderer", this.name,
|
|
36672
|
+
console.error("Missing target for video material renderer", this.name, Tx[this.renderMode], this);
|
|
36673
36673
|
return;
|
|
36674
36674
|
}
|
|
36675
36675
|
const i = t.material;
|
|
@@ -36984,7 +36984,7 @@ var cI = Object.defineProperty, hI = Object.getOwnPropertyDescriptor, yh = (s, e
|
|
|
36984
36984
|
return i && n && cI(e, t, n), n;
|
|
36985
36985
|
};
|
|
36986
36986
|
const Pt = x("debugscreensharing");
|
|
36987
|
-
var
|
|
36987
|
+
var Ax = /* @__PURE__ */ ((s) => (s[s.Screen = 0] = "Screen", s[s.Camera = 1] = "Camera", s[s.Canvas = 2] = "Canvas", s[s.Microphone = 3] = "Microphone", s))(Ax || {});
|
|
36988
36988
|
class ea extends R {
|
|
36989
36989
|
allowStartOnClick = !0;
|
|
36990
36990
|
/** @internal */
|
|
@@ -37071,7 +37071,7 @@ class ea extends R {
|
|
|
37071
37071
|
_currentMode = 0;
|
|
37072
37072
|
/** @internal */
|
|
37073
37073
|
awake() {
|
|
37074
|
-
typeof this.device == "number" && (this.device =
|
|
37074
|
+
typeof this.device == "number" && (this.device = Ax[this.device]), Pt && console.log("Screensharing", this.name, this), Ji.registerWaitForAllowAudio(() => {
|
|
37075
37075
|
this._videoPlayer && this._currentStream && this._currentMode === 2 && (this._videoPlayer.playInBackground = !0, this._videoPlayer.setVideo(this._currentStream));
|
|
37076
37076
|
}), this._net = new zu(this);
|
|
37077
37077
|
}
|
|
@@ -37088,7 +37088,7 @@ class ea extends R {
|
|
|
37088
37088
|
};
|
|
37089
37089
|
_ensureVideoPlayer() {
|
|
37090
37090
|
const e = new _t();
|
|
37091
|
-
e.aspectMode =
|
|
37091
|
+
e.aspectMode = Ex.AdjustWidth, C.addComponent(this.gameObject, e), this._videoPlayer = e;
|
|
37092
37092
|
}
|
|
37093
37093
|
_activeShareRequest = null;
|
|
37094
37094
|
/** Call to begin screensharing */
|
|
@@ -37353,7 +37353,7 @@ xl([
|
|
|
37353
37353
|
xl([
|
|
37354
37354
|
u()
|
|
37355
37355
|
], Vo.prototype, "autoUpdate");
|
|
37356
|
-
var pI = Object.defineProperty,
|
|
37356
|
+
var pI = Object.defineProperty, Ix = (s, e, t, i) => {
|
|
37357
37357
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
37358
37358
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
37359
37359
|
return n && pI(e, t, n), n;
|
|
@@ -37404,7 +37404,7 @@ class gf extends R {
|
|
|
37404
37404
|
applyLightBlendMaterial() {
|
|
37405
37405
|
if (!this.targetMesh) return;
|
|
37406
37406
|
const e = this.targetMesh.material;
|
|
37407
|
-
e.blending =
|
|
37407
|
+
e.blending = Mv, this.applyMaterialOptions(e), e.onBeforeCompile = (t) => {
|
|
37408
37408
|
t.fragmentShader = t.fragmentShader.replace(
|
|
37409
37409
|
"vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;",
|
|
37410
37410
|
`vec3 outgoingLight = totalDiffuse + totalSpecular + totalEmissiveRadiance;
|
|
@@ -37448,10 +37448,10 @@ class gf extends R {
|
|
|
37448
37448
|
e && (e.depthWrite = !1, e.stencilWrite = !1);
|
|
37449
37449
|
}
|
|
37450
37450
|
}
|
|
37451
|
-
|
|
37451
|
+
Ix([
|
|
37452
37452
|
u()
|
|
37453
37453
|
], gf.prototype, "mode");
|
|
37454
|
-
|
|
37454
|
+
Ix([
|
|
37455
37455
|
u(ae)
|
|
37456
37456
|
], gf.prototype, "shadowColor");
|
|
37457
37457
|
var mI = Object.defineProperty, _h = (s, e, t, i) => {
|
|
@@ -37497,8 +37497,8 @@ function ev(s, e, t, i, n) {
|
|
|
37497
37497
|
s.scene.background = l;
|
|
37498
37498
|
}
|
|
37499
37499
|
};
|
|
37500
|
-
return
|
|
37501
|
-
Jt && console.log("Destroyed attribute remote skybox", n),
|
|
37500
|
+
return Uv(s.domElement, n, r), o.addEventListener("destroy", () => {
|
|
37501
|
+
Jt && console.log("Destroyed attribute remote skybox", n), Nv(s.domElement, n, r);
|
|
37502
37502
|
}), o.setSkybox(e);
|
|
37503
37503
|
}
|
|
37504
37504
|
const lu = new Array();
|
|
@@ -37550,12 +37550,12 @@ const zr = class extends R {
|
|
|
37550
37550
|
if (t ??= e, this.isValidTextureType(t) || console.warn('Potentially invalid skybox URL: "' + t + '" on ' + (this.name || this.gameObject?.name || "context")), Jt && console.log("Set RemoteSkybox url: " + e), this._prevUrl === e && this._prevLoadedEnvironment)
|
|
37551
37551
|
return this.apply(), !0;
|
|
37552
37552
|
this._prevLoadedEnvironment?.dispose(), this._prevLoadedEnvironment = void 0, this._prevUrl = e;
|
|
37553
|
-
const i = await
|
|
37553
|
+
const i = await xw(e, this.context.renderer);
|
|
37554
37554
|
return i ? !this.enabled || this.destroyed ? (Jt && console.warn("RemoteSkybox: Component is disabled or destroyed"), !1) : this._prevUrl !== e ? (Jt && console.warn("RemoteSkybox: URL changed while loading texture, aborting setSkybox"), !1) : (this.url = e, this._prevLoadedEnvironment = i, this.apply(), !0) : (Jt && console.warn("RemoteSkybox: Failed to load texture from url", e), !1);
|
|
37555
37555
|
}
|
|
37556
37556
|
apply() {
|
|
37557
37557
|
const e = this._prevLoadedEnvironment;
|
|
37558
|
-
if (e && (e instanceof
|
|
37558
|
+
if (e && (e instanceof kv || e instanceof bC || e.mapping == Ls || (e.mapping = Pv, e.needsUpdate = !0), !this.destroyed)) {
|
|
37559
37559
|
if (!this.context) {
|
|
37560
37560
|
console.warn("RemoteSkybox: Context is not available - can not apply skybox.");
|
|
37561
37561
|
return;
|
|
@@ -37628,7 +37628,7 @@ const zr = class extends R {
|
|
|
37628
37628
|
};
|
|
37629
37629
|
};
|
|
37630
37630
|
_h([
|
|
37631
|
-
|
|
37631
|
+
Zw(zr.prototype.urlChangedSyncField),
|
|
37632
37632
|
u(URL)
|
|
37633
37633
|
], zr.prototype, "url");
|
|
37634
37634
|
_h([
|
|
@@ -37654,7 +37654,7 @@ var yI = Object.defineProperty, yf = (s, e, t, i) => {
|
|
|
37654
37654
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
37655
37655
|
return n && yI(e, t, n), n;
|
|
37656
37656
|
};
|
|
37657
|
-
const bh = class
|
|
37657
|
+
const bh = class Lx extends R {
|
|
37658
37658
|
target = null;
|
|
37659
37659
|
followFactor = 0.1;
|
|
37660
37660
|
rotateFactor = 0.1;
|
|
@@ -37681,7 +37681,7 @@ const bh = class Ix extends R {
|
|
|
37681
37681
|
}
|
|
37682
37682
|
if (this.rotateFactor > 0) {
|
|
37683
37683
|
const t = ve(this.target);
|
|
37684
|
-
this.flipForward && t.premultiply(
|
|
37684
|
+
this.flipForward && t.premultiply(Lx._invertForward);
|
|
37685
37685
|
const i = this._firstUpdate || e ? 1 : F.clamp01(this.context.time.deltaTime * this.rotateFactor);
|
|
37686
37686
|
this.worldQuaternion = this.worldQuaternion.slerp(t, i);
|
|
37687
37687
|
}
|
|
@@ -37778,7 +37778,7 @@ vh([
|
|
|
37778
37778
|
vh([
|
|
37779
37779
|
u(ce)
|
|
37780
37780
|
], As.prototype, "onExit");
|
|
37781
|
-
const
|
|
37781
|
+
const Dx = class Td extends R {
|
|
37782
37782
|
/** Global registry of all active spatial triggers in the scene */
|
|
37783
37783
|
static triggers = [];
|
|
37784
37784
|
triggerMask;
|
|
@@ -37841,8 +37841,8 @@ const Lx = class Td extends R {
|
|
|
37841
37841
|
};
|
|
37842
37842
|
vh([
|
|
37843
37843
|
u()
|
|
37844
|
-
],
|
|
37845
|
-
let My =
|
|
37844
|
+
], Dx.prototype, "triggerMask");
|
|
37845
|
+
let My = Dx;
|
|
37846
37846
|
var vI = Object.defineProperty, wI = (s, e, t, i) => {
|
|
37847
37847
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
37848
37848
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -38703,7 +38703,7 @@ class Wn {
|
|
|
38703
38703
|
return (t || new Wn()).__init(e.readInt32(e.position()) + e.position(), e);
|
|
38704
38704
|
}
|
|
38705
38705
|
static getSizePrefixedRootAsSyncedCameraModel(e, t) {
|
|
38706
|
-
return e.setPosition(e.position() +
|
|
38706
|
+
return e.setPosition(e.position() + Dv), (t || new Wn()).__init(e.readInt32(e.position()) + e.position(), e);
|
|
38707
38707
|
}
|
|
38708
38708
|
userId(e) {
|
|
38709
38709
|
const t = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -38759,7 +38759,7 @@ var II = Object.defineProperty, LI = (s, e, t, i) => {
|
|
|
38759
38759
|
return n && II(e, t, n), n;
|
|
38760
38760
|
};
|
|
38761
38761
|
const cu = "SCAM";
|
|
38762
|
-
|
|
38762
|
+
g0(cu, Wn.getRootAsSyncedCameraModel);
|
|
38763
38763
|
const yi = new hg();
|
|
38764
38764
|
class DI {
|
|
38765
38765
|
userId;
|
|
@@ -38782,7 +38782,7 @@ class DI {
|
|
|
38782
38782
|
}
|
|
38783
38783
|
}
|
|
38784
38784
|
}
|
|
38785
|
-
const
|
|
38785
|
+
const jx = class qm extends R {
|
|
38786
38786
|
static instances = [];
|
|
38787
38787
|
getCameraObject(e) {
|
|
38788
38788
|
const t = this.userToCamMap[e];
|
|
@@ -38856,8 +38856,8 @@ const Dx = class qm extends R {
|
|
|
38856
38856
|
};
|
|
38857
38857
|
LI([
|
|
38858
38858
|
u([M, ne])
|
|
38859
|
-
],
|
|
38860
|
-
let
|
|
38859
|
+
], jx.prototype, "cameraPrefab");
|
|
38860
|
+
let Bx = jx;
|
|
38861
38861
|
var jI = Object.defineProperty, BI = Object.getOwnPropertyDescriptor, Go = (s, e, t, i) => {
|
|
38862
38862
|
for (var n = i > 1 ? void 0 : i ? BI(e, t) : e, o = s.length - 1, r; o >= 0; o--)
|
|
38863
38863
|
(r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
|
|
@@ -38956,7 +38956,7 @@ C) Set "joinRandomRoom" to true`), !1) : (jp && console.log("Join " + this.roomN
|
|
|
38956
38956
|
}
|
|
38957
38957
|
setRandomRoomUrlParameter() {
|
|
38958
38958
|
const e = xu(), t = this.generateRoomName();
|
|
38959
|
-
x(this.urlParameterName) ? e.set(this.urlParameterName, t) : e.append(this.urlParameterName, t),
|
|
38959
|
+
x(this.urlParameterName) ? e.set(this.urlParameterName, t) : e.append(this.urlParameterName, t), Fv(t, e);
|
|
38960
38960
|
}
|
|
38961
38961
|
generateRoomName() {
|
|
38962
38962
|
let e = "";
|
|
@@ -39068,12 +39068,12 @@ function zI(s) {
|
|
|
39068
39068
|
}
|
|
39069
39069
|
return i;
|
|
39070
39070
|
}
|
|
39071
|
-
class
|
|
39071
|
+
class Fx extends R {
|
|
39072
39072
|
awake() {
|
|
39073
39073
|
FI();
|
|
39074
39074
|
}
|
|
39075
39075
|
}
|
|
39076
|
-
class
|
|
39076
|
+
class zx extends R {
|
|
39077
39077
|
transformsPerFrame = 10;
|
|
39078
39078
|
interval = 0;
|
|
39079
39079
|
useFlatbuffers = !0;
|
|
@@ -39097,7 +39097,7 @@ class Fx extends R {
|
|
|
39097
39097
|
const e = this.builder;
|
|
39098
39098
|
for (let t = 0; t < this.transformsPerFrame; t++) {
|
|
39099
39099
|
e.clear();
|
|
39100
|
-
const i =
|
|
39100
|
+
const i = ow(this.context.connection.connectionId, this);
|
|
39101
39101
|
this.context.connection.sendBinary(i);
|
|
39102
39102
|
}
|
|
39103
39103
|
} else if (this.models)
|
|
@@ -39155,7 +39155,7 @@ _f([
|
|
|
39155
39155
|
_f([
|
|
39156
39156
|
u(ce)
|
|
39157
39157
|
], bf.prototype, "reaction");
|
|
39158
|
-
const
|
|
39158
|
+
const Ux = class fs extends R {
|
|
39159
39159
|
static receivers = {};
|
|
39160
39160
|
static invoke(e) {
|
|
39161
39161
|
if (fs.receivers[e]) {
|
|
@@ -39220,9 +39220,9 @@ const zx = class fs extends R {
|
|
|
39220
39220
|
};
|
|
39221
39221
|
_f([
|
|
39222
39222
|
u(bf)
|
|
39223
|
-
],
|
|
39224
|
-
let vf =
|
|
39225
|
-
var Vi = /* @__PURE__ */ ((s) => (s.Activation = "ActivationTrack", s.Animation = "AnimationTrack", s.Audio = "AudioTrack", s.Control = "ControlTrack", s.Marker = "MarkerTrack", s.Signal = "SignalTrack", s))(Vi || {}), ps = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Hold = 1] = "Hold", s[s.Loop = 2] = "Loop", s[s.PingPong = 3] = "PingPong", s[s.Continue = 4] = "Continue", s))(ps || {}),
|
|
39223
|
+
], Ux.prototype, "events");
|
|
39224
|
+
let vf = Ux;
|
|
39225
|
+
var Vi = /* @__PURE__ */ ((s) => (s.Activation = "ActivationTrack", s.Animation = "AnimationTrack", s.Audio = "AudioTrack", s.Control = "ControlTrack", s.Marker = "MarkerTrack", s.Signal = "SignalTrack", s))(Vi || {}), ps = /* @__PURE__ */ ((s) => (s[s.None = 0] = "None", s[s.Hold = 1] = "Hold", s[s.Loop = 2] = "Loop", s[s.PingPong = 3] = "PingPong", s[s.Continue = 4] = "Continue", s))(ps || {}), Nx = /* @__PURE__ */ ((s) => (s.Signal = "SignalEmitter", s))(Nx || {});
|
|
39226
39226
|
const Gn = x("debugtimeline");
|
|
39227
39227
|
class wh {
|
|
39228
39228
|
director;
|
|
@@ -39714,7 +39714,7 @@ class Ay extends wh {
|
|
|
39714
39714
|
}
|
|
39715
39715
|
}
|
|
39716
39716
|
}
|
|
39717
|
-
var HI = Object.defineProperty,
|
|
39717
|
+
var HI = Object.defineProperty, $x = (s, e, t, i) => {
|
|
39718
39718
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
39719
39719
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
39720
39720
|
return n && HI(e, t, n), n;
|
|
@@ -40127,7 +40127,7 @@ const dn = x("debugtimeline"), Iy = class Xm extends R {
|
|
|
40127
40127
|
const r = new Ty();
|
|
40128
40128
|
r.director = this, r.track = t;
|
|
40129
40129
|
for (const a of t.markers)
|
|
40130
|
-
a.type ===
|
|
40130
|
+
a.type === Nx.Signal ? (o.models.push(a), o.didTrigger.push(!1)) : r.models.push(a);
|
|
40131
40131
|
if (o !== null && o.models.length > 0) {
|
|
40132
40132
|
const a = C.getComponent(this.gameObject, vf);
|
|
40133
40133
|
a && (o.receivers.push(a), this._signalTracks.push(o));
|
|
@@ -40167,10 +40167,10 @@ const dn = x("debugtimeline"), Iy = class Xm extends R {
|
|
|
40167
40167
|
t !== -1 && this.animationCallbackReceivers.splice(t, 1);
|
|
40168
40168
|
}
|
|
40169
40169
|
};
|
|
40170
|
-
|
|
40170
|
+
$x([
|
|
40171
40171
|
u()
|
|
40172
40172
|
], Iy.prototype, "playOnAwake");
|
|
40173
|
-
|
|
40173
|
+
$x([
|
|
40174
40174
|
u()
|
|
40175
40175
|
], Iy.prototype, "extrapolationMode");
|
|
40176
40176
|
let il = Iy;
|
|
@@ -40709,8 +40709,8 @@ Sf([
|
|
|
40709
40709
|
Sf([
|
|
40710
40710
|
u(ce)
|
|
40711
40711
|
], Sh.prototype, "onEndEdit");
|
|
40712
|
-
let
|
|
40713
|
-
var JI = Object.defineProperty,
|
|
40712
|
+
let Wx = Sh;
|
|
40713
|
+
var JI = Object.defineProperty, Vx = (s, e, t, i) => {
|
|
40714
40714
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
40715
40715
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
40716
40716
|
return n && JI(e, t, n), n;
|
|
@@ -40756,10 +40756,10 @@ class Cf extends R {
|
|
|
40756
40756
|
this._object?.removeFromParent();
|
|
40757
40757
|
}
|
|
40758
40758
|
}
|
|
40759
|
-
|
|
40759
|
+
Vx([
|
|
40760
40760
|
u()
|
|
40761
40761
|
], Cf.prototype, "id");
|
|
40762
|
-
|
|
40762
|
+
Vx([
|
|
40763
40763
|
u()
|
|
40764
40764
|
], Cf.prototype, "keepAspect");
|
|
40765
40765
|
const eL = {
|
|
@@ -40942,7 +40942,7 @@ var iL = Object.defineProperty, Pf = (s, e, t, i) => {
|
|
|
40942
40942
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
40943
40943
|
return n && iL(e, t, n), n;
|
|
40944
40944
|
};
|
|
40945
|
-
const Ch = class
|
|
40945
|
+
const Ch = class Hx extends R {
|
|
40946
40946
|
target;
|
|
40947
40947
|
invertForward = !1;
|
|
40948
40948
|
keepUpDirection = !0;
|
|
@@ -40953,7 +40953,7 @@ const Ch = class Vx extends R {
|
|
|
40953
40953
|
let e = this.target;
|
|
40954
40954
|
if (e || (e = this.context.mainCamera, L() && !this.__did_warn && (this.__did_warn = !0, console.debug(`[LookAt] No target set on ${this.name}, using main camera as target.`))), !e) return;
|
|
40955
40955
|
let t = this.copyTargetRotation;
|
|
40956
|
-
(this.context.isInVR || this.context.isInPassThrough) && (t = !1), Pu(this.gameObject, e, this.keepUpDirection, t), this.invertForward && this.gameObject.quaternion.multiply(
|
|
40956
|
+
(this.context.isInVR || this.context.isInPassThrough) && (t = !1), Pu(this.gameObject, e, this.keepUpDirection, t), this.invertForward && this.gameObject.quaternion.multiply(Hx.flipYQuat);
|
|
40957
40957
|
}
|
|
40958
40958
|
/** @internal */
|
|
40959
40959
|
createBehaviours(e, t, i) {
|
|
@@ -40991,7 +40991,7 @@ Pf([
|
|
|
40991
40991
|
Pf([
|
|
40992
40992
|
u()
|
|
40993
40993
|
], Ch.prototype, "copyTargetRotation");
|
|
40994
|
-
let
|
|
40994
|
+
let Gx = Ch;
|
|
40995
40995
|
var nL = Object.defineProperty, By = (s, e, t, i) => {
|
|
40996
40996
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
40997
40997
|
(r = s[o]) && (n = r(e, t, n) || n);
|
|
@@ -41056,7 +41056,7 @@ Lg((s) => {
|
|
|
41056
41056
|
const e = s.domElement.getAttribute("clickthrough");
|
|
41057
41057
|
if (t(e)) {
|
|
41058
41058
|
const i = s.scene.addComponent(Fy);
|
|
41059
|
-
|
|
41059
|
+
Uv(s.domElement, "clickthrough", () => {
|
|
41060
41060
|
const n = s.domElement.getAttribute("clickthrough");
|
|
41061
41061
|
i.enabled = t(n);
|
|
41062
41062
|
});
|
|
@@ -41246,7 +41246,7 @@ Ol([
|
|
|
41246
41246
|
u(Mi)
|
|
41247
41247
|
], Us.prototype, "idle", 2);
|
|
41248
41248
|
Us = Ol([
|
|
41249
|
-
|
|
41249
|
+
I0
|
|
41250
41250
|
], Us);
|
|
41251
41251
|
var lL = Object.defineProperty, Ml = (s, e, t, i) => {
|
|
41252
41252
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
@@ -41360,7 +41360,7 @@ class Qo extends R {
|
|
|
41360
41360
|
c.element && !c.element?.parentNode) {
|
|
41361
41361
|
c.needsUpdate = !1;
|
|
41362
41362
|
try {
|
|
41363
|
-
if (c.element =
|
|
41363
|
+
if (c.element = qx(h), Wl && console.debug(`ScrollMarker #${h} (${c.time.toFixed(2)}) found`, c.element), !c.element) {
|
|
41364
41364
|
(Wl || L()) && console.warn(`No HTML element found for ScrollMarker: ${c.name} (index ${h})`);
|
|
41365
41365
|
continue;
|
|
41366
41366
|
}
|
|
@@ -41436,10 +41436,10 @@ Ml([
|
|
|
41436
41436
|
], Qo.prototype, "changed");
|
|
41437
41437
|
const sv = /* @__PURE__ */ new WeakMap(), Dn = [], Fp = new Array();
|
|
41438
41438
|
let zp = !0;
|
|
41439
|
-
function
|
|
41439
|
+
function qx(s) {
|
|
41440
41440
|
return zp ? (zp = !1, Fp.length = 0, document.querySelectorAll("[data-timeline-marker]").forEach((t, i) => {
|
|
41441
41441
|
Fp[i] = t;
|
|
41442
|
-
}), zp = !1,
|
|
41442
|
+
}), zp = !1, qx(s)) : Fp[s] || null;
|
|
41443
41443
|
}
|
|
41444
41444
|
function cL(s) {
|
|
41445
41445
|
if (!s.source) return 0;
|
|
@@ -41447,10 +41447,10 @@ function cL(s) {
|
|
|
41447
41447
|
let i = 1;
|
|
41448
41448
|
return (t.unit === "seconds" || t.unit === "percent") && (i = t.value), e.unit === "seconds" ? e.value / i : e.value / 100;
|
|
41449
41449
|
}
|
|
41450
|
-
var
|
|
41450
|
+
var Xx = Object.defineProperty, hL = Object.getOwnPropertyDescriptor, dL = (s, e, t) => e in s ? Xx(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, Of = (s, e, t, i) => {
|
|
41451
41451
|
for (var n = i > 1 ? void 0 : i ? hL(e, t) : e, o = s.length - 1, r; o >= 0; o--)
|
|
41452
41452
|
(r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
|
|
41453
|
-
return i && n &&
|
|
41453
|
+
return i && n && Xx(e, t, n), n;
|
|
41454
41454
|
}, zy = (s, e, t) => dL(s, typeof e != "symbol" ? e + "" : e, t);
|
|
41455
41455
|
const so = x("debugviewbox"), uL = new ae(0.5, 0.5, 0.5, 0.5);
|
|
41456
41456
|
let lt = class extends R {
|
|
@@ -41559,7 +41559,7 @@ Of([
|
|
|
41559
41559
|
u()
|
|
41560
41560
|
], lt.prototype, "debug", 2);
|
|
41561
41561
|
lt = Of([
|
|
41562
|
-
|
|
41562
|
+
I0
|
|
41563
41563
|
], lt);
|
|
41564
41564
|
var fL = Object.defineProperty, El = (s, e, t, i) => {
|
|
41565
41565
|
for (var n = void 0, o = s.length - 1, r; o >= 0; o--)
|
|
@@ -41622,7 +41622,7 @@ El([
|
|
|
41622
41622
|
El([
|
|
41623
41623
|
u()
|
|
41624
41624
|
], Yo.prototype, "resetTransformAfterXRSession");
|
|
41625
|
-
function
|
|
41625
|
+
function Qx(s, e) {
|
|
41626
41626
|
const t = s.xr.getFrame();
|
|
41627
41627
|
if (!t)
|
|
41628
41628
|
return console.warn("No XRFrame available"), !1;
|
|
@@ -41670,9 +41670,9 @@ function pL(s, e) {
|
|
|
41670
41670
|
i.map = e, s.render(o, r);
|
|
41671
41671
|
}
|
|
41672
41672
|
function vD(s, e, t, i = "image/webp", n) {
|
|
41673
|
-
return
|
|
41673
|
+
return Yx({ context: s, width: e, height: t, mimeType: i, camera: n });
|
|
41674
41674
|
}
|
|
41675
|
-
function
|
|
41675
|
+
function Yx(s) {
|
|
41676
41676
|
s || (s = {});
|
|
41677
41677
|
const { transparent: e = !1 } = s;
|
|
41678
41678
|
let { mimeType: t, context: i, width: n, height: o, camera: r } = s;
|
|
@@ -41684,7 +41684,7 @@ function Qx(s) {
|
|
|
41684
41684
|
if (l && i.currentFrameEvent != Ce.EarlyUpdate)
|
|
41685
41685
|
return console.warn("Screenshot: defer to access XR frame"), new Promise((I) => {
|
|
41686
41686
|
Ns((j) => {
|
|
41687
|
-
const B =
|
|
41687
|
+
const B = Yx(s);
|
|
41688
41688
|
I(B);
|
|
41689
41689
|
}, Ce.EarlyUpdate, { once: !0 });
|
|
41690
41690
|
});
|
|
@@ -41822,7 +41822,7 @@ var uu;
|
|
|
41822
41822
|
defines: {
|
|
41823
41823
|
DECODE_VIDEO_TEXTURE: !0
|
|
41824
41824
|
}
|
|
41825
|
-
})), t || (t = l()), n || (n = new xe()), h.xr.updateCamera(c.camera), h.xr.enabled = !1, h.autoClear = !1, h.clear(), h.setSize(m, w), h.setRenderTarget(i),
|
|
41825
|
+
})), t || (t = l()), n || (n = new xe()), h.xr.updateCamera(c.camera), h.xr.enabled = !1, h.autoClear = !1, h.clear(), h.setSize(m, w), h.setRenderTarget(i), Qx(c.renderer, n) || console.error("Could not update texture from XR frame");
|
|
41826
41826
|
const T = C.findObjectOfType(Mf);
|
|
41827
41827
|
return T ? T.setTexture(n) : (e.setTexture(n), h.render(e, c.camera)), h.clearDepth(), h.setSize(m, w), h.render(c.scene, c.camera), h.setRenderTarget(null), t.setTexture(i.texture), h.render(t, c.camera), o.getContext("2d", { alpha: !1 }).drawImage(h.domElement, 0, 0, o.width, o.height), h.setRenderTarget(g), h.xr.enabled = p, h.autoClear = y, o;
|
|
41828
41828
|
}
|
|
@@ -41853,7 +41853,7 @@ void main() {
|
|
|
41853
41853
|
function l(c) {
|
|
41854
41854
|
const h = c?.material || new Xn({
|
|
41855
41855
|
name: "BackgroundMaterial",
|
|
41856
|
-
uniforms:
|
|
41856
|
+
uniforms: Ev.clone(Dd.background.uniforms),
|
|
41857
41857
|
vertexShader: Dd.background.vertexShader,
|
|
41858
41858
|
fragmentShader: a,
|
|
41859
41859
|
defines: c?.defines,
|
|
@@ -41919,7 +41919,7 @@ class Mf extends R {
|
|
|
41919
41919
|
material: new Xn({
|
|
41920
41920
|
name: "BackgroundMaterial",
|
|
41921
41921
|
uniforms: {
|
|
41922
|
-
...
|
|
41922
|
+
...Ev.clone(Dd.background.uniforms),
|
|
41923
41923
|
tint: { value: new ge(i.r, i.g, i.b, i.a) }
|
|
41924
41924
|
},
|
|
41925
41925
|
vertexShader: Dd.background.vertexShader,
|
|
@@ -41939,7 +41939,7 @@ class Mf extends R {
|
|
|
41939
41939
|
this.updateFromFrame();
|
|
41940
41940
|
}
|
|
41941
41941
|
updateFromFrame() {
|
|
41942
|
-
this.threeTexture && this.context.xr?.mode === "immersive-ar" && (
|
|
41942
|
+
this.threeTexture && this.context.xr?.mode === "immersive-ar" && (Qx(this.context.renderer, this.threeTexture), this.setTexture(this.threeTexture));
|
|
41943
41943
|
}
|
|
41944
41944
|
setTexture(e) {
|
|
41945
41945
|
this.backgroundPlane && (this.threeTexture = e, this.backgroundPlane.setTexture(this.threeTexture), this.backgroundPlane.visible = !0);
|
|
@@ -42518,7 +42518,7 @@ class Jo extends R {
|
|
|
42518
42518
|
this.dataTemplate.loadAssetAsync();
|
|
42519
42519
|
else {
|
|
42520
42520
|
const f = C.instantiate(this.dataTemplate.asset);
|
|
42521
|
-
if (f.name = "xr-tracked-plane", d = f,
|
|
42521
|
+
if (f.name = "xr-tracked-plane", d = f, Zv(f, !1), f instanceof H)
|
|
42522
42522
|
Ae(f.geometry), f.geometry = this.createGeometry(l), this.makeOccluder(f, f.material, this.occluder && !this.dataTemplate);
|
|
42523
42523
|
else if (f instanceof Os)
|
|
42524
42524
|
for (const y of f.children)
|
|
@@ -42695,11 +42695,11 @@ P.add("AudioListener", yo);
|
|
|
42695
42695
|
P.add("AudioSource", Ji);
|
|
42696
42696
|
P.add("Avatar_Brain_LookAt", tu);
|
|
42697
42697
|
P.add("Avatar_MouthShapes", Uu);
|
|
42698
|
-
P.add("Avatar_MustacheShake",
|
|
42698
|
+
P.add("Avatar_MustacheShake", cw);
|
|
42699
42699
|
P.add("AvatarBlink_Simple", ol);
|
|
42700
|
-
P.add("AvatarEyeLook_Rotation",
|
|
42700
|
+
P.add("AvatarEyeLook_Rotation", fw);
|
|
42701
42701
|
P.add("AxesHelper", eh);
|
|
42702
|
-
P.add("BasicIKConstraint",
|
|
42702
|
+
P.add("BasicIKConstraint", pw);
|
|
42703
42703
|
P.add("BoxHelperComponent", Ft);
|
|
42704
42704
|
P.add("Camera", Pi);
|
|
42705
42705
|
P.add("CharacterController", rl);
|
|
@@ -42709,21 +42709,21 @@ P.add("BoxCollider", Gg);
|
|
|
42709
42709
|
P.add("MeshCollider", qr);
|
|
42710
42710
|
P.add("CapsuleCollider", Eo);
|
|
42711
42711
|
P.add("ContactShadows", Wu);
|
|
42712
|
-
P.add("LogStats",
|
|
42712
|
+
P.add("LogStats", gw);
|
|
42713
42713
|
P.add("DeleteBox", kr);
|
|
42714
|
-
P.add("Deletable",
|
|
42714
|
+
P.add("Deletable", _w);
|
|
42715
42715
|
P.add("DeviceFlag", qg);
|
|
42716
42716
|
P.add("DragControls", Pa);
|
|
42717
42717
|
P.add("DropListener", jo);
|
|
42718
|
-
P.add("Duplicatable",
|
|
42718
|
+
P.add("Duplicatable", Tw);
|
|
42719
42719
|
P.add("EventListEvent", zg);
|
|
42720
42720
|
P.add("EventTrigger", Kg);
|
|
42721
|
-
P.add("GltfExportBox",
|
|
42722
|
-
P.add("GltfExport",
|
|
42723
|
-
P.add("VariantAction",
|
|
42721
|
+
P.add("GltfExportBox", jw);
|
|
42722
|
+
P.add("GltfExport", Bw);
|
|
42723
|
+
P.add("VariantAction", qw);
|
|
42724
42724
|
P.add("ChangeTransformOnClick", hl);
|
|
42725
|
-
P.add("ChangeMaterialOnClick",
|
|
42726
|
-
P.add("SetActiveOnClick",
|
|
42725
|
+
P.add("ChangeMaterialOnClick", Xw);
|
|
42726
|
+
P.add("SetActiveOnClick", Qw);
|
|
42727
42727
|
P.add("HideOnStart", pn);
|
|
42728
42728
|
P.add("EmphasizeOnClick", sh);
|
|
42729
42729
|
P.add("PlayAudioOnClick", Lr);
|
|
@@ -42731,22 +42731,22 @@ P.add("PlayAnimationOnClick", su);
|
|
|
42731
42731
|
P.add("PreliminaryAction", oh);
|
|
42732
42732
|
P.add("PreliminaryTrigger", Yu);
|
|
42733
42733
|
P.add("VisibilityAction", Ku);
|
|
42734
|
-
P.add("TapGestureTrigger",
|
|
42734
|
+
P.add("TapGestureTrigger", Yw);
|
|
42735
42735
|
P.add("USDZExporter", Ts);
|
|
42736
42736
|
P.add("Fog", lh);
|
|
42737
42737
|
P.add("BoxGizmo", ml);
|
|
42738
42738
|
P.add("GridHelper", ch);
|
|
42739
42739
|
P.add("GroundProjectedEnv", $s);
|
|
42740
42740
|
P.add("UsageMarker", Vu);
|
|
42741
|
-
P.add("Interactable",
|
|
42742
|
-
P.add("FixedJoint",
|
|
42741
|
+
P.add("Interactable", yw);
|
|
42742
|
+
P.add("FixedJoint", px);
|
|
42743
42743
|
P.add("HingeJoint", of);
|
|
42744
42744
|
P.add("Light", Ht);
|
|
42745
42745
|
P.add("LODGroup", my);
|
|
42746
42746
|
P.add("LookAtConstraint", sl);
|
|
42747
42747
|
P.add("NeedleMenu", Hs);
|
|
42748
42748
|
P.add("NestedGltf", dh);
|
|
42749
|
-
P.add("Networking",
|
|
42749
|
+
P.add("Networking", mx);
|
|
42750
42750
|
P.add("OffsetConstraint", gl);
|
|
42751
42751
|
P.add("CameraTargetReachedEvent", eu);
|
|
42752
42752
|
P.add("OrbitControls", ye);
|
|
@@ -42771,7 +42771,7 @@ P.add("Volume", gh);
|
|
|
42771
42771
|
P.add("ReflectionProbe", ho);
|
|
42772
42772
|
P.add("Renderer", fi);
|
|
42773
42773
|
P.add("MeshRenderer", Gu);
|
|
42774
|
-
P.add("SkinnedMeshRenderer",
|
|
42774
|
+
P.add("SkinnedMeshRenderer", Ew);
|
|
42775
42775
|
P.add("Rigidbody", et);
|
|
42776
42776
|
P.add("SceneSwitcher", st);
|
|
42777
42777
|
P.add("ScreenCapture", ea);
|
|
@@ -42785,11 +42785,11 @@ P.add("SpectatorCamera", Ey);
|
|
|
42785
42785
|
P.add("SplineContainer", Cl);
|
|
42786
42786
|
P.add("SplineWalker", Tn);
|
|
42787
42787
|
P.add("SpriteRenderer", Ai);
|
|
42788
|
-
P.add("SyncedCamera",
|
|
42788
|
+
P.add("SyncedCamera", Bx);
|
|
42789
42789
|
P.add("SyncedRoom", as);
|
|
42790
42790
|
P.add("SyncedTransform", Jn);
|
|
42791
|
-
P.add("TestRunner",
|
|
42792
|
-
P.add("TestSimulateUserData",
|
|
42791
|
+
P.add("TestRunner", Fx);
|
|
42792
|
+
P.add("TestSimulateUserData", zx);
|
|
42793
42793
|
P.add("PlayableDirector", il);
|
|
42794
42794
|
P.add("SignalReceiver", vf);
|
|
42795
42795
|
P.add("AnimationTrackHandler", hu);
|
|
@@ -42808,10 +42808,10 @@ P.add("Graphic", nf);
|
|
|
42808
42808
|
P.add("MaskableGraphic", sf);
|
|
42809
42809
|
P.add("Image", xh);
|
|
42810
42810
|
P.add("RawImage", Dy);
|
|
42811
|
-
P.add("InputField",
|
|
42812
|
-
P.add("VerticalLayoutGroup",
|
|
42813
|
-
P.add("HorizontalLayoutGroup",
|
|
42814
|
-
P.add("GridLayoutGroup",
|
|
42811
|
+
P.add("InputField", Wx);
|
|
42812
|
+
P.add("VerticalLayoutGroup", lx);
|
|
42813
|
+
P.add("HorizontalLayoutGroup", cx);
|
|
42814
|
+
P.add("GridLayoutGroup", hx);
|
|
42815
42815
|
P.add("Outline", ah);
|
|
42816
42816
|
P.add("ObjectRaycaster", Sn);
|
|
42817
42817
|
P.add("GraphicRaycaster", Ug);
|
|
@@ -42820,7 +42820,7 @@ P.add("RectTransform", es);
|
|
|
42820
42820
|
P.add("SpatialHtml", Cf);
|
|
42821
42821
|
P.add("Text", si);
|
|
42822
42822
|
P.add("EnvironmentScene", jy);
|
|
42823
|
-
P.add("LookAt",
|
|
42823
|
+
P.add("LookAt", Gx);
|
|
42824
42824
|
P.add("OpenURL", Ph);
|
|
42825
42825
|
P.add("VideoPlayer", _t);
|
|
42826
42826
|
P.add("Voip", Gr);
|
|
@@ -42842,7 +42842,7 @@ P.add("WebXRImageTracking", Ef);
|
|
|
42842
42842
|
P.add("WebXRPlaneTracking", Jo);
|
|
42843
42843
|
P.add("XRRig", Uy);
|
|
42844
42844
|
P.add("XRFlag", mn);
|
|
42845
|
-
P.add("PlayerSync",
|
|
42845
|
+
P.add("PlayerSync", ex);
|
|
42846
42846
|
P.add("PlayerState", _n);
|
|
42847
42847
|
P.add("PresentationMode", PL);
|
|
42848
42848
|
const Oc = yt, kL = x("debugtypestore");
|
|
@@ -42862,7 +42862,7 @@ async function EL(s, e, t, i = null, n) {
|
|
|
42862
42862
|
typeof r == "number" && (r = new Nt(i));
|
|
42863
42863
|
const a = e.indexOf("?");
|
|
42864
42864
|
e = a === -1 ? e : e.substring(0, a);
|
|
42865
|
-
const l = new
|
|
42865
|
+
const l = new D0(t.scene);
|
|
42866
42866
|
l.gltfId = e, l.context = s, l.gltf = t, l.nodeToObject = n?.nodeToObjectMap, l.implementationInformation = ML;
|
|
42867
42867
|
let c = s[Up];
|
|
42868
42868
|
if (c || (c = s[Up] = []), t.scenes)
|
|
@@ -42943,7 +42943,7 @@ function RL(s, e) {
|
|
|
42943
42943
|
const { instance: t, compData: i, obj: n } = s;
|
|
42944
42944
|
e.object = n, e.target = t, dm(t, i, e), Oc && console.debug("add " + i.name, i, t);
|
|
42945
42945
|
}
|
|
42946
|
-
class
|
|
42946
|
+
class Kx {
|
|
42947
42947
|
createBuiltinComponents(e, t, i, n, o) {
|
|
42948
42948
|
return EL(e, t, i, n, o);
|
|
42949
42949
|
}
|
|
@@ -42954,12 +42954,12 @@ class Yx {
|
|
|
42954
42954
|
return AL(e, t, i, n);
|
|
42955
42955
|
}
|
|
42956
42956
|
loadSync(e, t, i, n, o) {
|
|
42957
|
-
return
|
|
42957
|
+
return eS(e, t, i, n, o);
|
|
42958
42958
|
}
|
|
42959
42959
|
}
|
|
42960
|
-
|
|
42961
|
-
const
|
|
42962
|
-
async function
|
|
42960
|
+
l0(Kx);
|
|
42961
|
+
const Zx = x("printGltf") || x("printgltf"), TL = x("debugfileformat");
|
|
42962
|
+
async function Jx(s, e, t) {
|
|
42963
42963
|
const i = await RE(s, { useExtension: !0 }) || "unknown";
|
|
42964
42964
|
TL && console.debug(`Determined file type: '${i}' for url '${s}'`, { registeredModelLoaderCallbacks: ka });
|
|
42965
42965
|
for (const n of ka) {
|
|
@@ -42979,7 +42979,7 @@ Use import { NeedleEngineModelLoader } from "@needle-tools/engine" namespace to
|
|
|
42979
42979
|
}
|
|
42980
42980
|
case "model/fbx":
|
|
42981
42981
|
case "model/vnd.autodesk.fbx":
|
|
42982
|
-
return new
|
|
42982
|
+
return new Lv();
|
|
42983
42983
|
case "model/obj":
|
|
42984
42984
|
return new cg();
|
|
42985
42985
|
case "model/vnd.usdz+zip":
|
|
@@ -42997,14 +42997,14 @@ Use import { NeedleEngineModelLoader } from "@needle-tools/engine" namespace to
|
|
|
42997
42997
|
}
|
|
42998
42998
|
}
|
|
42999
42999
|
function wD(s, e) {
|
|
43000
|
-
return
|
|
43000
|
+
return eS(e?.context || N.Current, s, s, e?.seed || null, e?.onprogress);
|
|
43001
43001
|
}
|
|
43002
43002
|
async function AL(s, e, t, i) {
|
|
43003
|
-
typeof t != "string" && (console.warn("Parse gltf binary without path, this might lead to errors in resolving extensions. Please provide the source path of the gltf/glb file", t, typeof t), t = ""),
|
|
43004
|
-
const n = await
|
|
43003
|
+
typeof t != "string" && (console.warn("Parse gltf binary without path, this might lead to errors in resolving extensions. Please provide the source path of the gltf/glb file", t, typeof t), t = ""), Zx && console.log("Parse glTF", t);
|
|
43004
|
+
const n = await Jx(t, s, t);
|
|
43005
43005
|
if (!n)
|
|
43006
43006
|
return;
|
|
43007
|
-
const { componentsExtension: o } =
|
|
43007
|
+
const { componentsExtension: o } = tS(n, s);
|
|
43008
43008
|
if (n instanceof cg) {
|
|
43009
43009
|
typeof e != "string" && (e = new TextDecoder().decode(e));
|
|
43010
43010
|
const a = n.parse(e);
|
|
@@ -43034,12 +43034,12 @@ async function AL(s, e, t, i) {
|
|
|
43034
43034
|
}
|
|
43035
43035
|
});
|
|
43036
43036
|
}
|
|
43037
|
-
async function
|
|
43037
|
+
async function eS(s, e, t, i, n) {
|
|
43038
43038
|
LL(e);
|
|
43039
|
-
const o = await
|
|
43039
|
+
const o = await Jx(e, s, t);
|
|
43040
43040
|
if (!o)
|
|
43041
43041
|
return;
|
|
43042
|
-
const { componentsExtension: r } =
|
|
43042
|
+
const { componentsExtension: r } = tS(o, s);
|
|
43043
43043
|
if (!(o instanceof Bs)) {
|
|
43044
43044
|
const a = await o.loadAsync(e, n);
|
|
43045
43045
|
return await Mc(o, s, e, a, i, r);
|
|
@@ -43060,12 +43060,12 @@ async function Jx(s, e, t, i, n) {
|
|
|
43060
43060
|
}
|
|
43061
43061
|
});
|
|
43062
43062
|
}
|
|
43063
|
-
function
|
|
43064
|
-
const t =
|
|
43063
|
+
function tS(s, e) {
|
|
43064
|
+
const t = kw(s);
|
|
43065
43065
|
return s instanceof Bs && jg(s, e), { componentsExtension: t };
|
|
43066
43066
|
}
|
|
43067
43067
|
async function Mc(s, e, t, i, n, o) {
|
|
43068
|
-
if (
|
|
43068
|
+
if (Zx && console.warn("Loaded", t, i), i == null)
|
|
43069
43069
|
return console.error(`Loaded model is null '${t}' - please make sure the loader is registered correctly`), {
|
|
43070
43070
|
scene: new M(),
|
|
43071
43071
|
animations: [],
|
|
@@ -43119,15 +43119,15 @@ function DL(s, e) {
|
|
|
43119
43119
|
for (const i of e.animations)
|
|
43120
43120
|
t.animations.includes(i) || t.animations.push(i);
|
|
43121
43121
|
}
|
|
43122
|
-
if (s instanceof
|
|
43122
|
+
if (s instanceof Lv || s instanceof cg) {
|
|
43123
43123
|
let t = e;
|
|
43124
43124
|
t instanceof M || (t = e.scene || e.scenes.find((i) => i)), t.traverse((i) => {
|
|
43125
43125
|
const n = i;
|
|
43126
|
-
n?.isMesh &&
|
|
43126
|
+
n?.isMesh && Jv(n, n.material);
|
|
43127
43127
|
});
|
|
43128
43128
|
}
|
|
43129
43129
|
}
|
|
43130
|
-
const Gl = x("debugoverlay"),
|
|
43130
|
+
const Gl = x("debugoverlay"), iS = "ar", jL = "quit-ar";
|
|
43131
43131
|
class BL {
|
|
43132
43132
|
get ARContainer() {
|
|
43133
43133
|
return this.arContainer;
|
|
@@ -43232,7 +43232,7 @@ class xD {
|
|
|
43232
43232
|
additionalClasses;
|
|
43233
43233
|
}
|
|
43234
43234
|
let Xl = 0, cv;
|
|
43235
|
-
function
|
|
43235
|
+
function nS(s) {
|
|
43236
43236
|
gr && console.log(s.progress.loaded.toFixed(0) + "/" + s.progress.total.toFixed(0), s);
|
|
43237
43237
|
const e = s.count, t = s.progress.total;
|
|
43238
43238
|
t === 0 || t === void 0 ? (cv !== s.name && (Xl = 0), cv = s.name, Xl += (1 - Xl) * 1e-3, gr && _e("Loading " + s.name + " did not report total size")) : Xl = s.progress.loaded / t;
|
|
@@ -43281,7 +43281,7 @@ class fu {
|
|
|
43281
43281
|
if (!this._loadingElement?.parentNode)
|
|
43282
43282
|
return;
|
|
43283
43283
|
let i = 0;
|
|
43284
|
-
typeof e == "number" ? i = e : ("index" in e && (i =
|
|
43284
|
+
typeof e == "number" ? i = e : ("index" in e && (i = nS(e)), !t && "name" in e && this.setMessage("loading " + e.name)), this.loadingProgress = i, t && this.setMessage(t), this.updateDisplay();
|
|
43285
43285
|
}
|
|
43286
43286
|
onLoadingFinished() {
|
|
43287
43287
|
gr && console.warn("Finished Loading"), ql || (this.loadingProgress = 1, this.onDoneLoading());
|
|
@@ -43415,8 +43415,8 @@ class fu {
|
|
|
43415
43415
|
// nonCommercialContainer.style.opacity = "1";
|
|
43416
43416
|
// }
|
|
43417
43417
|
}
|
|
43418
|
-
|
|
43419
|
-
const Oe = x("debugwebcomponent"), hv = "needle-engine",
|
|
43418
|
+
l0(Kx);
|
|
43419
|
+
const Oe = x("debugwebcomponent"), hv = "needle-engine", sS = "vr", oS = "desktop", FL = [iS, sS, oS], Ql = "ar-session-active", Yl = "desktop-session-active", zL = [
|
|
43420
43420
|
// MainAttributes
|
|
43421
43421
|
"src",
|
|
43422
43422
|
"hash",
|
|
@@ -43444,7 +43444,7 @@ const Oe = x("debugwebcomponent"), hv = "needle-engine", nS = "vr", sS = "deskto
|
|
|
43444
43444
|
"progress",
|
|
43445
43445
|
"loadfinished"
|
|
43446
43446
|
];
|
|
43447
|
-
class
|
|
43447
|
+
class rS extends HTMLElement {
|
|
43448
43448
|
static get observedAttributes() {
|
|
43449
43449
|
return zL;
|
|
43450
43450
|
}
|
|
@@ -43593,7 +43593,7 @@ class oS extends HTMLElement {
|
|
|
43593
43593
|
}
|
|
43594
43594
|
// #region Init DOM
|
|
43595
43595
|
initializeDom() {
|
|
43596
|
-
|
|
43596
|
+
Q0(), this.setAttribute("role", "application"), this.setAttribute("aria-label", "Needle Engine 3D scene");
|
|
43597
43597
|
}
|
|
43598
43598
|
/**
|
|
43599
43599
|
* @internal
|
|
@@ -43737,7 +43737,7 @@ Needle Engine: Begin loading ` + i + `
|
|
|
43737
43737
|
onLoadingProgress: (y) => {
|
|
43738
43738
|
if (Oe && console.debug("Loading progress: ", y), d.signal.aborted) return;
|
|
43739
43739
|
const m = y.index;
|
|
43740
|
-
!h[m] && y.name && (h[m] = UL(y.name)), y.name = h[m], r && this._loadingView?.onLoadingUpdate(y), l.name = y.name, l.progress = y.progress, this._loadingProgress01 =
|
|
43740
|
+
!h[m] && y.name && (h[m] = UL(y.name)), y.name = h[m], r && this._loadingView?.onLoadingUpdate(y), l.name = y.name, l.progress = y.progress, this._loadingProgress01 = nS(y), l.totalProgress01 = this._loadingProgress01, this.dispatchEvent(c);
|
|
43741
43741
|
},
|
|
43742
43742
|
onLoadingFinished: (y, m, w) => {
|
|
43743
43743
|
Oe && console.debug(`Finished loading "${m}" (aborted? ${d.signal.aborted})`), !d.signal.aborted && w && a.push({
|
|
@@ -43772,7 +43772,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
43772
43772
|
applyAttributes() {
|
|
43773
43773
|
const e = this.getOrCreateContext();
|
|
43774
43774
|
if (e.renderer) {
|
|
43775
|
-
const o =
|
|
43775
|
+
const o = X0(this.toneMapping);
|
|
43776
43776
|
o !== void 0 && (e.renderer.toneMapping = o);
|
|
43777
43777
|
const r = this.getAttribute("tone-mapping-exposure");
|
|
43778
43778
|
if (r != null) {
|
|
@@ -43897,15 +43897,15 @@ Needle Engine: finished loading ` + i + `
|
|
|
43897
43897
|
onSetupAR() {
|
|
43898
43898
|
this.classList.add(Ql), this.classList.remove(Yl);
|
|
43899
43899
|
const e = this.getAROverlayContainer();
|
|
43900
|
-
Oe && console.warn("onSetupAR:", e), e && (e.classList.add(Ql), e.classList.remove(Yl)), this.foreachHtmlElement((t) => this.setupElementsForMode(t,
|
|
43900
|
+
Oe && console.warn("onSetupAR:", e), e && (e.classList.add(Ql), e.classList.remove(Yl)), this.foreachHtmlElement((t) => this.setupElementsForMode(t, iS));
|
|
43901
43901
|
}
|
|
43902
43902
|
onSetupVR() {
|
|
43903
|
-
this.classList.remove(Ql), this.classList.remove(Yl), this.foreachHtmlElement((e) => this.setupElementsForMode(e,
|
|
43903
|
+
this.classList.remove(Ql), this.classList.remove(Yl), this.foreachHtmlElement((e) => this.setupElementsForMode(e, sS));
|
|
43904
43904
|
}
|
|
43905
43905
|
onSetupDesktop() {
|
|
43906
43906
|
this.classList.remove(Ql), this.classList.add(Yl);
|
|
43907
43907
|
const e = this.getAROverlayContainer();
|
|
43908
|
-
e && (e.classList.remove(Ql), e.classList.add(Yl)), this.foreachHtmlElement((t) => this.setupElementsForMode(t,
|
|
43908
|
+
e && (e.classList.remove(Ql), e.classList.add(Yl)), this.foreachHtmlElement((t) => this.setupElementsForMode(t, oS));
|
|
43909
43909
|
}
|
|
43910
43910
|
setupElementsForMode(e, t, i = null) {
|
|
43911
43911
|
if (e === this._context?.renderer?.domElement || e.id === "VRButton" || e.id === "ARButton") return;
|
|
@@ -43949,7 +43949,7 @@ Needle Engine: finished loading ` + i + `
|
|
|
43949
43949
|
return super.addEventListener(e, t, i);
|
|
43950
43950
|
}
|
|
43951
43951
|
}
|
|
43952
|
-
typeof window < "u" && !window.customElements.get(hv) && window.customElements.define(hv,
|
|
43952
|
+
typeof window < "u" && !window.customElements.get(hv) && window.customElements.define(hv, rS);
|
|
43953
43953
|
function UL(s) {
|
|
43954
43954
|
if (s.startsWith("blob:"))
|
|
43955
43955
|
return "blob";
|
|
@@ -44016,7 +44016,7 @@ function NL(s) {
|
|
|
44016
44016
|
}
|
|
44017
44017
|
const $L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
44018
44018
|
__proto__: null,
|
|
44019
|
-
NeedleEngineWebComponent:
|
|
44019
|
+
NeedleEngineWebComponent: rS
|
|
44020
44020
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
44021
44021
|
function WL() {
|
|
44022
44022
|
Zn.registerWaitForInteraction(() => {
|
|
@@ -44600,7 +44600,7 @@ Error:`, r), null;
|
|
|
44600
44600
|
const l = this._tempPosition.copy(a).applyQuaternion(this._tempQuaternion), c = Qe(t.gameObject);
|
|
44601
44601
|
l.multiply(c), o.x -= l.x, o.y -= l.y, o.z -= l.z;
|
|
44602
44602
|
}
|
|
44603
|
-
Ha(t.gameObject, o.x, o.y, o.z),
|
|
44603
|
+
Ha(t.gameObject, o.x, o.y, o.z), Qv(t.gameObject, r.x, r.y, r.z, r.w);
|
|
44604
44604
|
}
|
|
44605
44605
|
}
|
|
44606
44606
|
syncPhysicsBody(e, t, i, n) {
|
|
@@ -44818,8 +44818,8 @@ async function CD(s) {
|
|
|
44818
44818
|
const e = {
|
|
44819
44819
|
...GL,
|
|
44820
44820
|
...s
|
|
44821
|
-
}, { context: t } = e, i = new
|
|
44822
|
-
i.register((a) => new
|
|
44821
|
+
}, { context: t } = e, i = new Av();
|
|
44822
|
+
i.register((a) => new Aw(a)), i.register((a) => new mR(a)), i.register((a) => new Lw(a)), Ow(i, e.context);
|
|
44823
44823
|
const n = {
|
|
44824
44824
|
binary: e.binary,
|
|
44825
44825
|
animations: XL(t, e.scene, [])
|
|
@@ -44954,7 +44954,7 @@ class QL extends HTMLElement {
|
|
|
44954
44954
|
}
|
|
44955
44955
|
typeof window < "u" && !window.customElements.get(pv) && window.customElements.define(pv, QL);
|
|
44956
44956
|
const Kl = x("debugavatar");
|
|
44957
|
-
class
|
|
44957
|
+
class aS {
|
|
44958
44958
|
/** The root object of the avatar model */
|
|
44959
44959
|
root;
|
|
44960
44960
|
/** The head object of the avatar model */
|
|
@@ -45066,7 +45066,7 @@ class YL {
|
|
|
45066
45066
|
const c = Math.max(l.x, l.y, l.z);
|
|
45067
45067
|
console.warn("[Custom Avatar] Normalizing head scale, it's too big: " + c + " meters! Should be < 0.3m"), c > 0.3 && n.scale.multiplyScalar(1 / c * 0.3);
|
|
45068
45068
|
}
|
|
45069
|
-
return new
|
|
45069
|
+
return new aS(t, n, o, r);
|
|
45070
45070
|
}
|
|
45071
45071
|
/**
|
|
45072
45072
|
* Recursively searches for an avatar part by name within an Object3D hierarchy.
|
|
@@ -45130,18 +45130,18 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45130
45130
|
AudioTrackHandler: bo,
|
|
45131
45131
|
Avatar: jr,
|
|
45132
45132
|
AvatarBlink_Simple: ol,
|
|
45133
|
-
AvatarEyeLook_Rotation:
|
|
45133
|
+
AvatarEyeLook_Rotation: fw,
|
|
45134
45134
|
AvatarLoader: YL,
|
|
45135
45135
|
AvatarMarker: ze,
|
|
45136
|
-
AvatarModel:
|
|
45136
|
+
AvatarModel: aS,
|
|
45137
45137
|
Avatar_Brain_LookAt: tu,
|
|
45138
45138
|
Avatar_MouthShapes: Uu,
|
|
45139
|
-
Avatar_MustacheShake:
|
|
45139
|
+
Avatar_MustacheShake: cw,
|
|
45140
45140
|
Avatar_POI: ja,
|
|
45141
45141
|
AxesHelper: eh,
|
|
45142
45142
|
BaseUIComponent: Cn,
|
|
45143
|
-
BasicIKConstraint:
|
|
45144
|
-
BehaviorExtension:
|
|
45143
|
+
BasicIKConstraint: pw,
|
|
45144
|
+
BehaviorExtension: tx,
|
|
45145
45145
|
BehaviorModel: $t,
|
|
45146
45146
|
BloomEffect: Sy,
|
|
45147
45147
|
BoxCollider: Gg,
|
|
@@ -45154,7 +45154,7 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45154
45154
|
Canvas: $c,
|
|
45155
45155
|
CanvasGroup: Br,
|
|
45156
45156
|
CapsuleCollider: Eo,
|
|
45157
|
-
ChangeMaterialOnClick:
|
|
45157
|
+
ChangeMaterialOnClick: Xw,
|
|
45158
45158
|
ChangeTransformOnClick: hl,
|
|
45159
45159
|
CharacterController: rl,
|
|
45160
45160
|
CharacterControllerInput: Lo,
|
|
@@ -45167,14 +45167,14 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45167
45167
|
ControlTrackHandler: Ay,
|
|
45168
45168
|
CursorFollow: kl,
|
|
45169
45169
|
CustomBranding: pl,
|
|
45170
|
-
Deletable:
|
|
45170
|
+
Deletable: _w,
|
|
45171
45171
|
DeleteBox: kr,
|
|
45172
45172
|
DepthOfField: os,
|
|
45173
45173
|
DeviceFlag: qg,
|
|
45174
45174
|
DocumentExtension: KL,
|
|
45175
45175
|
DragControls: Pa,
|
|
45176
45176
|
DropListener: jo,
|
|
45177
|
-
Duplicatable:
|
|
45177
|
+
Duplicatable: Tw,
|
|
45178
45178
|
EffectWrapper: au,
|
|
45179
45179
|
EmissionModule: $o,
|
|
45180
45180
|
EmphasizeOnClick: sh,
|
|
@@ -45184,36 +45184,36 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45184
45184
|
EventSystem: ui,
|
|
45185
45185
|
EventTrigger: Kg,
|
|
45186
45186
|
FieldWithDefault: aR,
|
|
45187
|
-
FixedJoint:
|
|
45187
|
+
FixedJoint: px,
|
|
45188
45188
|
Fog: lh,
|
|
45189
|
-
GltfExport:
|
|
45190
|
-
GltfExportBox:
|
|
45189
|
+
GltfExport: Bw,
|
|
45190
|
+
GltfExportBox: jw,
|
|
45191
45191
|
Gradient: yl,
|
|
45192
45192
|
Graphic: nf,
|
|
45193
45193
|
GraphicRaycaster: Ug,
|
|
45194
45194
|
GridHelper: ch,
|
|
45195
|
-
GridLayoutGroup:
|
|
45195
|
+
GridLayoutGroup: hx,
|
|
45196
45196
|
GroundProjectedEnv: $s,
|
|
45197
45197
|
GroupActionModel: Oa,
|
|
45198
45198
|
HideOnStart: pn,
|
|
45199
45199
|
HingeJoint: of,
|
|
45200
|
-
HorizontalLayoutGroup:
|
|
45200
|
+
HorizontalLayoutGroup: cx,
|
|
45201
45201
|
get HoverAnimation() {
|
|
45202
45202
|
return Us;
|
|
45203
45203
|
},
|
|
45204
45204
|
Image: xh,
|
|
45205
|
-
InheritVelocityModule:
|
|
45206
|
-
InputField:
|
|
45205
|
+
InheritVelocityModule: bx,
|
|
45206
|
+
InputField: Wx,
|
|
45207
45207
|
InstanceHandle: Fa,
|
|
45208
45208
|
InstancingHandler: tl,
|
|
45209
|
-
Interactable:
|
|
45209
|
+
Interactable: yw,
|
|
45210
45210
|
Keyframe: ki,
|
|
45211
45211
|
LODGroup: my,
|
|
45212
45212
|
LODModel: hh,
|
|
45213
45213
|
Light: Ht,
|
|
45214
45214
|
LimitVelocityOverLifetimeModule: wt,
|
|
45215
|
-
LogStats:
|
|
45216
|
-
LookAt:
|
|
45215
|
+
LogStats: gw,
|
|
45216
|
+
LookAt: Gx,
|
|
45217
45217
|
LookAtConstraint: sl,
|
|
45218
45218
|
MainModule: oi,
|
|
45219
45219
|
MarkerTrackHandler: Ty,
|
|
@@ -45224,7 +45224,7 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45224
45224
|
MinMaxGradient: _l,
|
|
45225
45225
|
NeedleMenu: Hs,
|
|
45226
45226
|
NestedGltf: dh,
|
|
45227
|
-
Networking:
|
|
45227
|
+
Networking: mx,
|
|
45228
45228
|
NoiseModule: we,
|
|
45229
45229
|
ObjectRaycaster: Sn,
|
|
45230
45230
|
OffsetConstraint: gl,
|
|
@@ -45233,17 +45233,17 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45233
45233
|
Outline: ah,
|
|
45234
45234
|
Padding: fl,
|
|
45235
45235
|
ParticleBurst: Um,
|
|
45236
|
-
ParticleSubEmitter:
|
|
45236
|
+
ParticleSubEmitter: vx,
|
|
45237
45237
|
ParticleSystem: ru,
|
|
45238
45238
|
ParticleSystemRenderer: En,
|
|
45239
|
-
PhysicsExtension:
|
|
45239
|
+
PhysicsExtension: ix,
|
|
45240
45240
|
PixelationEffect: pf,
|
|
45241
45241
|
PlayAnimationOnClick: su,
|
|
45242
45242
|
PlayAudioOnClick: Lr,
|
|
45243
45243
|
PlayableDirector: il,
|
|
45244
45244
|
PlayerColor: Vc,
|
|
45245
45245
|
PointerEventData: Fu,
|
|
45246
|
-
PostProcessingHandler:
|
|
45246
|
+
PostProcessingHandler: Ox,
|
|
45247
45247
|
PreliminaryAction: oh,
|
|
45248
45248
|
PreliminaryTrigger: Yu,
|
|
45249
45249
|
RawImage: Dy,
|
|
@@ -45253,7 +45253,7 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45253
45253
|
RegisteredAnimationInfo: vr,
|
|
45254
45254
|
RemoteSkybox: ky,
|
|
45255
45255
|
Renderer: fi,
|
|
45256
|
-
RendererLightmap:
|
|
45256
|
+
RendererLightmap: Mw,
|
|
45257
45257
|
Rigidbody: et,
|
|
45258
45258
|
RotationBySpeedModule: Mn,
|
|
45259
45259
|
RotationOverLifetimeModule: ss,
|
|
@@ -45263,9 +45263,9 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45263
45263
|
ScreenSpaceAmbientOcclusionN8: rs,
|
|
45264
45264
|
ScrollFollow: Qo,
|
|
45265
45265
|
SeeThrough: Vo,
|
|
45266
|
-
SetActiveOnClick:
|
|
45266
|
+
SetActiveOnClick: Qw,
|
|
45267
45267
|
ShadowCatcher: gf,
|
|
45268
|
-
ShapeModule:
|
|
45268
|
+
ShapeModule: yx,
|
|
45269
45269
|
SharpeningEffect: mf,
|
|
45270
45270
|
SignalAsset: Ry,
|
|
45271
45271
|
SignalReceiver: vf,
|
|
@@ -45274,7 +45274,7 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45274
45274
|
Size: bT,
|
|
45275
45275
|
SizeBySpeedModule: Di,
|
|
45276
45276
|
SizeOverLifetimeModule: bl,
|
|
45277
|
-
SkinnedMeshRenderer:
|
|
45277
|
+
SkinnedMeshRenderer: Ew,
|
|
45278
45278
|
SmoothFollow: Oy,
|
|
45279
45279
|
SpatialGrabRaycaster: el,
|
|
45280
45280
|
SpatialHtml: Cf,
|
|
@@ -45290,15 +45290,15 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45290
45290
|
SpriteRenderer: Ai,
|
|
45291
45291
|
SpriteSheet: Nc,
|
|
45292
45292
|
SubEmitterSystem: Wm,
|
|
45293
|
-
SyncedCamera:
|
|
45293
|
+
SyncedCamera: Bx,
|
|
45294
45294
|
SyncedRoom: as,
|
|
45295
45295
|
SyncedTransform: Jn,
|
|
45296
|
-
TapGestureTrigger:
|
|
45296
|
+
TapGestureTrigger: Yw,
|
|
45297
45297
|
TeleportTarget: oy,
|
|
45298
|
-
TestRunner:
|
|
45299
|
-
TestSimulateUserData:
|
|
45298
|
+
TestRunner: Fx,
|
|
45299
|
+
TestSimulateUserData: zx,
|
|
45300
45300
|
Text: si,
|
|
45301
|
-
TextBuilder:
|
|
45301
|
+
TextBuilder: ax,
|
|
45302
45302
|
TextExtension: ly,
|
|
45303
45303
|
TextureSheetAnimationModule: ri,
|
|
45304
45304
|
TiltShiftEffect: Xs,
|
|
@@ -45308,15 +45308,15 @@ const PD = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
45308
45308
|
TransformGizmo: Pl,
|
|
45309
45309
|
TriggerBuilder: ti,
|
|
45310
45310
|
TriggerModel: Or,
|
|
45311
|
-
UIRaycastUtils:
|
|
45311
|
+
UIRaycastUtils: rw,
|
|
45312
45312
|
UIRootComponent: tf,
|
|
45313
45313
|
USDZExporter: Ts,
|
|
45314
45314
|
USDZText: oc,
|
|
45315
|
-
USDZUIExtension:
|
|
45315
|
+
USDZUIExtension: fx,
|
|
45316
45316
|
UsageMarker: Vu,
|
|
45317
|
-
VariantAction:
|
|
45317
|
+
VariantAction: qw,
|
|
45318
45318
|
VelocityOverLifetimeModule: Ye,
|
|
45319
|
-
VerticalLayoutGroup:
|
|
45319
|
+
VerticalLayoutGroup: lx,
|
|
45320
45320
|
VideoPlayer: _t,
|
|
45321
45321
|
get ViewBox() {
|
|
45322
45322
|
return lt;
|
|
@@ -45362,7 +45362,7 @@ pe.registerCallback(ue.MissingCamera, (s) => {
|
|
|
45362
45362
|
}
|
|
45363
45363
|
}
|
|
45364
45364
|
const o = Aa(t, i, !0);
|
|
45365
|
-
return t.position.x = 0, t.position.y = 1, t.position.z = 2, s.context.domElement?.cameraControls != !1 &&
|
|
45365
|
+
return t.position.x = 0, t.position.y = 1, t.position.z = 2, s.context.domElement?.cameraControls != !1 && lS(s.context, o), o;
|
|
45366
45366
|
});
|
|
45367
45367
|
pe.registerCallback(ue.ContextCreated, (s) => {
|
|
45368
45368
|
if (!s.context.mainCamera) {
|
|
@@ -45374,10 +45374,10 @@ pe.registerCallback(ue.ContextCreated, (s) => {
|
|
|
45374
45374
|
Gc && console.log("Will not auto-fit because a camera controller exists");
|
|
45375
45375
|
return;
|
|
45376
45376
|
}
|
|
45377
|
-
|
|
45377
|
+
lS(s.context);
|
|
45378
45378
|
}
|
|
45379
45379
|
});
|
|
45380
|
-
function
|
|
45380
|
+
function lS(s, e) {
|
|
45381
45381
|
e = e ?? s.mainCameraComponent;
|
|
45382
45382
|
const t = e?.gameObject;
|
|
45383
45383
|
if (Gc && console.log("Creating default camera controls", e?.name), t) {
|
|
@@ -45483,7 +45483,7 @@ export {
|
|
|
45483
45483
|
Tt as Animator,
|
|
45484
45484
|
dr as AnimatorConditionMode,
|
|
45485
45485
|
xn as AnimatorController,
|
|
45486
|
-
|
|
45486
|
+
nw as AnimatorControllerParameterType,
|
|
45487
45487
|
Nh as AnimatorStateInfo,
|
|
45488
45488
|
hf as Antialiasing,
|
|
45489
45489
|
Zn as Application,
|
|
@@ -45496,20 +45496,20 @@ export {
|
|
|
45496
45496
|
bo as AudioTrackHandler,
|
|
45497
45497
|
jr as Avatar,
|
|
45498
45498
|
ol as AvatarBlink_Simple,
|
|
45499
|
-
|
|
45499
|
+
fw as AvatarEyeLook_Rotation,
|
|
45500
45500
|
YL as AvatarLoader,
|
|
45501
45501
|
ze as AvatarMarker,
|
|
45502
|
-
|
|
45502
|
+
aS as AvatarModel,
|
|
45503
45503
|
tu as Avatar_Brain_LookAt,
|
|
45504
45504
|
Uu as Avatar_MouthShapes,
|
|
45505
|
-
|
|
45505
|
+
cw as Avatar_MustacheShake,
|
|
45506
45506
|
ja as Avatar_POI,
|
|
45507
45507
|
ec as Axes,
|
|
45508
45508
|
eh as AxesHelper,
|
|
45509
45509
|
Ud as BUILD_TIME,
|
|
45510
45510
|
Cn as BaseUIComponent,
|
|
45511
|
-
|
|
45512
|
-
|
|
45511
|
+
pw as BasicIKConstraint,
|
|
45512
|
+
tx as BehaviorExtension,
|
|
45513
45513
|
$t as BehaviorModel,
|
|
45514
45514
|
Ja as BlobStorage,
|
|
45515
45515
|
Sy as BloomEffect,
|
|
@@ -45525,7 +45525,7 @@ export {
|
|
|
45525
45525
|
$c as Canvas,
|
|
45526
45526
|
Br as CanvasGroup,
|
|
45527
45527
|
Eo as CapsuleCollider,
|
|
45528
|
-
|
|
45528
|
+
Xw as ChangeMaterialOnClick,
|
|
45529
45529
|
hl as ChangeTransformOnClick,
|
|
45530
45530
|
rl as CharacterController,
|
|
45531
45531
|
Lo as CharacterControllerInput,
|
|
@@ -45556,16 +45556,16 @@ export {
|
|
|
45556
45556
|
pl as CustomBranding,
|
|
45557
45557
|
Te as CustomShader,
|
|
45558
45558
|
gm as DefaultReflectionMode,
|
|
45559
|
-
|
|
45559
|
+
_w as Deletable,
|
|
45560
45560
|
kr as DeleteBox,
|
|
45561
45561
|
os as DepthOfField,
|
|
45562
45562
|
qg as DeviceFlag,
|
|
45563
45563
|
D as DeviceUtilities,
|
|
45564
45564
|
KL as DocumentExtension,
|
|
45565
45565
|
Pa as DragControls,
|
|
45566
|
-
|
|
45566
|
+
bw as DragMode,
|
|
45567
45567
|
jo as DropListener,
|
|
45568
|
-
|
|
45568
|
+
Tw as Duplicatable,
|
|
45569
45569
|
au as EffectWrapper,
|
|
45570
45570
|
$o as EmissionModule,
|
|
45571
45571
|
sh as EmphasizeOnClick,
|
|
@@ -45580,43 +45580,43 @@ export {
|
|
|
45580
45580
|
kO as FileReferenceSerializer,
|
|
45581
45581
|
uD as FileSpawnModel,
|
|
45582
45582
|
ME as File_Event,
|
|
45583
|
-
|
|
45583
|
+
px as FixedJoint,
|
|
45584
45584
|
lh as Fog,
|
|
45585
45585
|
Ce as FrameEvent,
|
|
45586
45586
|
Ac as GENERATOR,
|
|
45587
45587
|
C as GameObject,
|
|
45588
45588
|
z as Gizmos,
|
|
45589
|
-
|
|
45590
|
-
|
|
45589
|
+
Bw as GltfExport,
|
|
45590
|
+
jw as GltfExportBox,
|
|
45591
45591
|
yl as Gradient,
|
|
45592
45592
|
nf as Graphic,
|
|
45593
45593
|
Ug as GraphicRaycaster,
|
|
45594
45594
|
Tr as Graphics,
|
|
45595
45595
|
ch as GridHelper,
|
|
45596
|
-
|
|
45596
|
+
hx as GridLayoutGroup,
|
|
45597
45597
|
$s as GroundProjectedEnv,
|
|
45598
45598
|
Oa as GroupActionModel,
|
|
45599
45599
|
mg as HideFlags,
|
|
45600
45600
|
pn as HideOnStart,
|
|
45601
45601
|
of as HingeJoint,
|
|
45602
|
-
|
|
45602
|
+
cx as HorizontalLayoutGroup,
|
|
45603
45603
|
q2 as HostData,
|
|
45604
45604
|
Us as HoverAnimation,
|
|
45605
45605
|
xh as Image,
|
|
45606
45606
|
Ia as ImageReference,
|
|
45607
45607
|
PO as ImageReferenceSerializer,
|
|
45608
|
-
|
|
45608
|
+
bx as InheritVelocityModule,
|
|
45609
45609
|
jP as Input,
|
|
45610
45610
|
wi as InputEventQueue,
|
|
45611
45611
|
Fe as InputEvents,
|
|
45612
|
-
|
|
45612
|
+
Wx as InputField,
|
|
45613
45613
|
Fa as InstanceHandle,
|
|
45614
45614
|
tl as InstancingHandler,
|
|
45615
45615
|
vn as InstancingUtil,
|
|
45616
45616
|
Ak as InstantiateEvent,
|
|
45617
45617
|
Nt as InstantiateIdProvider,
|
|
45618
45618
|
ts as InstantiateOptions,
|
|
45619
|
-
|
|
45619
|
+
yw as Interactable,
|
|
45620
45620
|
uu as InternalScreenshotUtils,
|
|
45621
45621
|
U2 as JoinedRoomResponse,
|
|
45622
45622
|
B2 as KeyEventArgs,
|
|
@@ -45628,14 +45628,14 @@ export {
|
|
|
45628
45628
|
$O as LightData,
|
|
45629
45629
|
wt as LimitVelocityOverLifetimeModule,
|
|
45630
45630
|
xD as LoadingElementOptions,
|
|
45631
|
-
|
|
45631
|
+
gw as LogStats,
|
|
45632
45632
|
Xi as LogType,
|
|
45633
|
-
|
|
45633
|
+
Gx as LookAt,
|
|
45634
45634
|
sl as LookAtConstraint,
|
|
45635
45635
|
A as MODULES,
|
|
45636
45636
|
oi as MainModule,
|
|
45637
45637
|
Ty as MarkerTrackHandler,
|
|
45638
|
-
|
|
45638
|
+
Nx as MarkerType,
|
|
45639
45639
|
sf as MaskableGraphic,
|
|
45640
45640
|
Po as MaterialPropertyBlock,
|
|
45641
45641
|
Em as MaterialX,
|
|
@@ -45644,15 +45644,15 @@ export {
|
|
|
45644
45644
|
Gu as MeshRenderer,
|
|
45645
45645
|
Y as MinMaxCurve,
|
|
45646
45646
|
_l as MinMaxGradient,
|
|
45647
|
-
|
|
45647
|
+
k0 as NEEDLE_ENGINE_FEATURE_FLAGS,
|
|
45648
45648
|
Eh as NEKeyboardEvent,
|
|
45649
45649
|
oo as NEPointerEvent,
|
|
45650
45650
|
QL as NeedleButtonElement,
|
|
45651
45651
|
vb as NeedleEngineModelLoader,
|
|
45652
|
-
|
|
45652
|
+
rS as NeedleEngineWebComponent,
|
|
45653
45653
|
Hs as NeedleMenu,
|
|
45654
45654
|
$f as NeedlePatchesKey,
|
|
45655
|
-
|
|
45655
|
+
f0 as NeedleXRController,
|
|
45656
45656
|
K as NeedleXRSession,
|
|
45657
45657
|
ZP as NeedleXRSync,
|
|
45658
45658
|
mk as NeedleXRUtils,
|
|
@@ -45660,23 +45660,23 @@ export {
|
|
|
45660
45660
|
KP as NetworkConnection,
|
|
45661
45661
|
Ss as NetworkedStreamEvents,
|
|
45662
45662
|
zu as NetworkedStreams,
|
|
45663
|
-
|
|
45663
|
+
mx as Networking,
|
|
45664
45664
|
Dk as NewInstanceModel,
|
|
45665
45665
|
we as NoiseModule,
|
|
45666
45666
|
Sn as ObjectRaycaster,
|
|
45667
45667
|
$r as ObjectUtils,
|
|
45668
45668
|
gl as OffsetConstraint,
|
|
45669
45669
|
Bf as OneEuroFilter,
|
|
45670
|
-
|
|
45670
|
+
qv as OneEuroFilterXYZ,
|
|
45671
45671
|
Ph as OpenURL,
|
|
45672
45672
|
ye as OrbitControls,
|
|
45673
45673
|
ah as Outline,
|
|
45674
45674
|
YP as OwnershipEvent,
|
|
45675
|
-
|
|
45675
|
+
y0 as OwnershipModel,
|
|
45676
45676
|
_r as PUBLIC_KEY,
|
|
45677
45677
|
fl as Padding,
|
|
45678
45678
|
Um as ParticleBurst,
|
|
45679
|
-
|
|
45679
|
+
vx as ParticleSubEmitter,
|
|
45680
45680
|
ru as ParticleSystem,
|
|
45681
45681
|
Yr as ParticleSystemBaseBehaviour,
|
|
45682
45682
|
En as ParticleSystemRenderer,
|
|
@@ -45684,7 +45684,7 @@ export {
|
|
|
45684
45684
|
_o as PeerHandle,
|
|
45685
45685
|
GP as PeerNetworking,
|
|
45686
45686
|
Dc as Physics,
|
|
45687
|
-
|
|
45687
|
+
ix as PhysicsExtension,
|
|
45688
45688
|
kt as PhysicsMaterialCombine,
|
|
45689
45689
|
pf as PixelationEffect,
|
|
45690
45690
|
su as PlayAnimationOnClick,
|
|
@@ -45693,20 +45693,20 @@ export {
|
|
|
45693
45693
|
Vc as PlayerColor,
|
|
45694
45694
|
_n as PlayerState,
|
|
45695
45695
|
lT as PlayerStateEvent,
|
|
45696
|
-
|
|
45696
|
+
ex as PlayerSync,
|
|
45697
45697
|
IO as PlayerView,
|
|
45698
45698
|
LO as PlayerViewManager,
|
|
45699
45699
|
Fu as PointerEventData,
|
|
45700
45700
|
bg as PointerType,
|
|
45701
45701
|
dt as PostProcessingEffect,
|
|
45702
45702
|
ft as PostProcessingEffectOrder,
|
|
45703
|
-
|
|
45703
|
+
Ox as PostProcessingHandler,
|
|
45704
45704
|
oh as PreliminaryAction,
|
|
45705
45705
|
Yu as PreliminaryTrigger,
|
|
45706
45706
|
pr as PreviewHelper,
|
|
45707
45707
|
qc as PrimitiveType,
|
|
45708
45708
|
he as Progress,
|
|
45709
|
-
|
|
45709
|
+
$v as PromiseAllWithErrors,
|
|
45710
45710
|
s_ as PromiseErrorResult,
|
|
45711
45711
|
ae as RGBAColor,
|
|
45712
45712
|
Ec as RapierPhysics,
|
|
@@ -45721,7 +45721,7 @@ export {
|
|
|
45721
45721
|
UM as RenderTextureSerializer,
|
|
45722
45722
|
fi as Renderer,
|
|
45723
45723
|
NO as RendererData,
|
|
45724
|
-
|
|
45724
|
+
Mw as RendererLightmap,
|
|
45725
45725
|
et as Rigidbody,
|
|
45726
45726
|
Je as RigidbodyConstraints,
|
|
45727
45727
|
ie as RoomEvents,
|
|
@@ -45735,10 +45735,10 @@ export {
|
|
|
45735
45735
|
Qo as ScrollFollow,
|
|
45736
45736
|
Vo as SeeThrough,
|
|
45737
45737
|
zn as SendQueue,
|
|
45738
|
-
|
|
45739
|
-
|
|
45738
|
+
D0 as SerializationContext,
|
|
45739
|
+
Qw as SetActiveOnClick,
|
|
45740
45740
|
gf as ShadowCatcher,
|
|
45741
|
-
|
|
45741
|
+
yx as ShapeModule,
|
|
45742
45742
|
TP as ShapeOverlapResult,
|
|
45743
45743
|
mf as SharpeningEffect,
|
|
45744
45744
|
Ry as SignalAsset,
|
|
@@ -45748,7 +45748,7 @@ export {
|
|
|
45748
45748
|
bT as Size,
|
|
45749
45749
|
Di as SizeBySpeedModule,
|
|
45750
45750
|
bl as SizeOverLifetimeModule,
|
|
45751
|
-
|
|
45751
|
+
Ew as SkinnedMeshRenderer,
|
|
45752
45752
|
Oy as SmoothFollow,
|
|
45753
45753
|
el as SpatialGrabRaycaster,
|
|
45754
45754
|
Cf as SpatialHtml,
|
|
@@ -45756,7 +45756,7 @@ export {
|
|
|
45756
45756
|
As as SpatialTriggerReceiver,
|
|
45757
45757
|
Ey as SpectatorCamera,
|
|
45758
45758
|
th as SphereCollider,
|
|
45759
|
-
|
|
45759
|
+
b0 as SphereIntersection,
|
|
45760
45760
|
Cl as SplineContainer,
|
|
45761
45761
|
zs as SplineData,
|
|
45762
45762
|
mv as SplineUtils,
|
|
@@ -45766,18 +45766,18 @@ export {
|
|
|
45766
45766
|
Ai as SpriteRenderer,
|
|
45767
45767
|
Nc as SpriteSheet,
|
|
45768
45768
|
rD as StateMachineBehaviour,
|
|
45769
|
-
|
|
45769
|
+
aw as StreamEndedEvent,
|
|
45770
45770
|
sE as StreamReceivedEvent,
|
|
45771
45771
|
Wm as SubEmitterSystem,
|
|
45772
|
-
|
|
45772
|
+
Bx as SyncedCamera,
|
|
45773
45773
|
as as SyncedRoom,
|
|
45774
45774
|
Jn as SyncedTransform,
|
|
45775
|
-
|
|
45775
|
+
Yw as TapGestureTrigger,
|
|
45776
45776
|
oy as TeleportTarget,
|
|
45777
|
-
|
|
45778
|
-
|
|
45777
|
+
Fx as TestRunner,
|
|
45778
|
+
zx as TestSimulateUserData,
|
|
45779
45779
|
si as Text,
|
|
45780
|
-
|
|
45780
|
+
ax as TextBuilder,
|
|
45781
45781
|
ly as TextExtension,
|
|
45782
45782
|
ri as TextureSheetAnimationModule,
|
|
45783
45783
|
Xs as TiltShiftEffect,
|
|
@@ -45791,22 +45791,22 @@ export {
|
|
|
45791
45791
|
ti as TriggerBuilder,
|
|
45792
45792
|
Or as TriggerModel,
|
|
45793
45793
|
P as TypeStore,
|
|
45794
|
-
|
|
45794
|
+
rw as UIRaycastUtils,
|
|
45795
45795
|
tf as UIRootComponent,
|
|
45796
|
-
|
|
45796
|
+
Nw as USDDocument,
|
|
45797
45797
|
ct as USDObject,
|
|
45798
45798
|
MR as USDWriter,
|
|
45799
45799
|
RR as USDZExporter,
|
|
45800
45800
|
Ts as USDZExporter$1,
|
|
45801
45801
|
oc as USDZText,
|
|
45802
|
-
|
|
45802
|
+
fx as USDZUIExtension,
|
|
45803
45803
|
NM as UriSerializer,
|
|
45804
45804
|
Vu as UsageMarker,
|
|
45805
45805
|
$2 as UserJoinedOrLeftRoomModel,
|
|
45806
45806
|
Ci as VERSION,
|
|
45807
|
-
|
|
45807
|
+
qw as VariantAction,
|
|
45808
45808
|
Ye as VelocityOverLifetimeModule,
|
|
45809
|
-
|
|
45809
|
+
lx as VerticalLayoutGroup,
|
|
45810
45810
|
_t as VideoPlayer,
|
|
45811
45811
|
lt as ViewBox,
|
|
45812
45812
|
xo as ViewDevice,
|
|
@@ -45818,7 +45818,7 @@ export {
|
|
|
45818
45818
|
wy as VolumeProfile,
|
|
45819
45819
|
X2 as WaitForFrames,
|
|
45820
45820
|
MO as WaitForPromise,
|
|
45821
|
-
|
|
45821
|
+
G0 as WaitForSeconds,
|
|
45822
45822
|
wo as Watch,
|
|
45823
45823
|
Mf as WebARCameraBackground,
|
|
45824
45824
|
yn as WebARSessionRoot,
|
|
@@ -45838,7 +45838,7 @@ export {
|
|
|
45838
45838
|
ZL as __Ignore,
|
|
45839
45839
|
H2 as __internalNotifyObjectDestroyed,
|
|
45840
45840
|
ws as activeInHierarchyFieldName,
|
|
45841
|
-
|
|
45841
|
+
Uv as addAttributeChangeCallback,
|
|
45842
45842
|
qn as addComponent,
|
|
45843
45843
|
fD as addCustomExtensionPlugin,
|
|
45844
45844
|
Aa as addNewComponent,
|
|
@@ -45848,10 +45848,10 @@ export {
|
|
|
45848
45848
|
oO as applyPrototypeExtensions,
|
|
45849
45849
|
Lk as beginListenDestroy,
|
|
45850
45850
|
Bk as beginListenInstantiate,
|
|
45851
|
-
|
|
45851
|
+
m0 as binaryIdentifierCasts,
|
|
45852
45852
|
Y2 as build_scene_functions,
|
|
45853
45853
|
fa as builtinComponentKeyName,
|
|
45854
|
-
|
|
45854
|
+
nS as calculateProgress01,
|
|
45855
45855
|
P2 as clearMessages,
|
|
45856
45856
|
cD as colorSerializer,
|
|
45857
45857
|
Hk as compareAssociation,
|
|
@@ -45875,10 +45875,10 @@ export {
|
|
|
45875
45875
|
hD as euler,
|
|
45876
45876
|
dD as eventListSerializer,
|
|
45877
45877
|
CD as exportAsGLTF,
|
|
45878
|
-
|
|
45878
|
+
$0 as findByGuid,
|
|
45879
45879
|
Yc as findObjectOfType,
|
|
45880
45880
|
uO as findObjectsOfType,
|
|
45881
|
-
|
|
45881
|
+
S0 as findResourceUsers,
|
|
45882
45882
|
kM as fitCamera,
|
|
45883
45883
|
Q1 as fitObjectIntoVolume,
|
|
45884
45884
|
Za as foreachComponent,
|
|
@@ -45911,7 +45911,7 @@ export {
|
|
|
45911
45911
|
xu as getUrlParams,
|
|
45912
45912
|
X1 as getVisibleInCustomShadowRendering,
|
|
45913
45913
|
N1 as getWorldDirection,
|
|
45914
|
-
|
|
45914
|
+
Yv as getWorldEuler,
|
|
45915
45915
|
te as getWorldPosition,
|
|
45916
45916
|
ve as getWorldQuaternion,
|
|
45917
45917
|
pg as getWorldRotation,
|
|
@@ -45930,7 +45930,7 @@ export {
|
|
|
45930
45930
|
Kc as isActiveSelf,
|
|
45931
45931
|
y2 as isAndroidDevice,
|
|
45932
45932
|
V1 as isAnimationAction,
|
|
45933
|
-
|
|
45933
|
+
c0 as isComponent,
|
|
45934
45934
|
l2 as isDebugMode,
|
|
45935
45935
|
f2 as isDesktop,
|
|
45936
45936
|
Ka as isDestroyed,
|
|
@@ -45954,8 +45954,8 @@ export {
|
|
|
45954
45954
|
v2 as isiOS,
|
|
45955
45955
|
g2 as isiPad,
|
|
45956
45956
|
wD as loadAsset,
|
|
45957
|
-
|
|
45958
|
-
|
|
45957
|
+
xw as loadPMREM,
|
|
45958
|
+
eS as loadSync,
|
|
45959
45959
|
Kp as logHierarchy,
|
|
45960
45960
|
O2 as lookAtInverse,
|
|
45961
45961
|
Pu as lookAtObject,
|
|
@@ -45974,39 +45974,39 @@ export {
|
|
|
45974
45974
|
eD as onBeforeRender,
|
|
45975
45975
|
Z2 as onClear,
|
|
45976
45976
|
J2 as onDestroy,
|
|
45977
|
-
|
|
45977
|
+
K0 as onInitialized,
|
|
45978
45978
|
Lg as onStart,
|
|
45979
45979
|
tM as onUpdate,
|
|
45980
|
-
|
|
45980
|
+
u0 as onXRSessionEnd,
|
|
45981
45981
|
_g as onXRSessionStart,
|
|
45982
45982
|
AL as parseSync,
|
|
45983
45983
|
Y1 as placeOnSurface,
|
|
45984
|
-
|
|
45984
|
+
Jv as postprocessFBXMaterials,
|
|
45985
45985
|
lD as prefix,
|
|
45986
45986
|
l1 as pushState,
|
|
45987
45987
|
d2 as randomNumber,
|
|
45988
|
-
|
|
45988
|
+
g0 as registerBinaryType,
|
|
45989
45989
|
Ig as registerComponent,
|
|
45990
|
-
|
|
45990
|
+
kw as registerComponentExtension,
|
|
45991
45991
|
Rn as registerCustomEffectType,
|
|
45992
|
-
|
|
45992
|
+
Ow as registerExportExtensions,
|
|
45993
45993
|
Rm as registerExtensions,
|
|
45994
45994
|
cM as registerHotReloadType,
|
|
45995
|
-
|
|
45995
|
+
l0 as registerLoader,
|
|
45996
45996
|
zk as registerPrefabProvider,
|
|
45997
45997
|
rO as registerPrototypeExtensions,
|
|
45998
|
-
|
|
45998
|
+
I0 as registerType,
|
|
45999
45999
|
d1 as relativePathPrefix,
|
|
46000
|
-
|
|
46001
|
-
|
|
46000
|
+
Nv as removeAttributeChangeCallback,
|
|
46001
|
+
z0 as removeComponent,
|
|
46002
46002
|
pD as removeCustomImportExtensionType,
|
|
46003
46003
|
L2 as removePatch,
|
|
46004
46004
|
To as resolveUrl,
|
|
46005
46005
|
h1 as sanitizeString,
|
|
46006
46006
|
gL as saveImage,
|
|
46007
46007
|
vD as screenshot,
|
|
46008
|
-
|
|
46009
|
-
|
|
46008
|
+
Yx as screenshot2,
|
|
46009
|
+
E0 as sendDestroyed,
|
|
46010
46010
|
u as serializable,
|
|
46011
46011
|
Kk as serializeObject,
|
|
46012
46012
|
tt as serializeable,
|
|
@@ -46024,24 +46024,24 @@ export {
|
|
|
46024
46024
|
jd as setParamWithoutReload,
|
|
46025
46025
|
z2 as setPeerOptions,
|
|
46026
46026
|
W2 as setResourceTrackingEnabled,
|
|
46027
|
-
|
|
46028
|
-
|
|
46029
|
-
|
|
46027
|
+
Fv as setState,
|
|
46028
|
+
Zv as setVisibleInCustomShadowRendering,
|
|
46029
|
+
Kv as setWorldEuler,
|
|
46030
46030
|
Rt as setWorldPosition,
|
|
46031
46031
|
Ha as setWorldPositionXYZ,
|
|
46032
46032
|
Yn as setWorldQuaternion,
|
|
46033
|
-
|
|
46033
|
+
Qv as setWorldQuaternionXYZW,
|
|
46034
46034
|
W1 as setWorldRotation,
|
|
46035
46035
|
ku as setWorldRotationXYZ,
|
|
46036
46036
|
Tc as setWorldScale,
|
|
46037
46037
|
Ou as showBalloonError,
|
|
46038
46038
|
Ie as showBalloonMessage,
|
|
46039
46039
|
_e as showBalloonWarning,
|
|
46040
|
-
|
|
46040
|
+
i0 as showDebugConsole,
|
|
46041
46041
|
k2 as slerp,
|
|
46042
46042
|
Eu as syncDestroy,
|
|
46043
|
-
|
|
46044
|
-
|
|
46043
|
+
Zw as syncField,
|
|
46044
|
+
R0 as syncInstantiate,
|
|
46045
46045
|
T2 as textureToCanvas,
|
|
46046
46046
|
u1 as toSourceId,
|
|
46047
46047
|
WP as tryCastBinary,
|
|
@@ -46050,7 +46050,7 @@ export {
|
|
|
46050
46050
|
Rc as tryFindObject,
|
|
46051
46051
|
VP as tryGetGuid,
|
|
46052
46052
|
hM as unregisterHotReloadType,
|
|
46053
|
-
|
|
46053
|
+
zv as unwatchWrite,
|
|
46054
46054
|
E1 as useForAutoFit,
|
|
46055
46055
|
Wt as validate,
|
|
46056
46056
|
dg as watchWrite
|