@tresjs/cientos 4.1.0 → 4.1.1

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.
@@ -19,7 +19,7 @@ export interface ScrollControlsProps {
19
19
  * The smooth factor of the scrolling.
20
20
  *
21
21
  * @type {number}
22
- * @default 0.5
22
+ * @default 0.1
23
23
  * @memberof ScrollControlsProps
24
24
  */
25
25
  smoothScroll?: number;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * name: @tresjs/cientos
3
- * version: v4.1.0
3
+ * version: v4.1.1
4
4
  * (c) 2025
5
5
  * description: Collection of useful helpers and fully functional, ready-made abstractions for Tres
6
6
  * author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
@@ -9,7 +9,7 @@ var bl = Object.defineProperty;
9
9
  var El = (a, e, t) => e in a ? bl(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
10
10
  var de = (a, e, t) => El(a, typeof e != "symbol" ? e + "" : e, t);
11
11
  import * as Jn from "three";
12
- import { TextureLoader as ai, DoubleSide as sn, WebGLCubeRenderTarget as oa, HalfFloatType as Dt, CubeCamera as ra, Group as Xt, Quaternion as je, Euler as en, AudioListener as aa, Audio as Ml, AudioLoader as la, MathUtils as Ye, ShaderMaterial as Tt, UniformsUtils as Dn, Color as be, Vector2 as ve, FrontSide as ss, REVISION as Ts, Vector3 as $, BufferAttribute as ut, TrianglesDrawMode as Sl, TriangleFanDrawMode as io, TriangleStripDrawMode as ca, CompressedTexture as mi, Texture as es, RGBAFormat as ei, PropertyBinding as on, InterpolateDiscrete as ua, Matrix4 as Ie, Scene as xs, PlaneGeometry as Gt, Uniform as Se, Mesh as pe, PerspectiveCamera as Lt, WebGLRenderer as Al, InterpolateLinear as bo, NearestFilter as Kn, NearestMipmapNearestFilter as ha, NearestMipmapLinearFilter as fa, LinearFilter as xt, LinearMipmapNearestFilter as da, LinearMipmapLinearFilter as Eo, ClampToEdgeWrapping as Vt, RepeatWrapping as Ln, MirroredRepeatWrapping as pa, Plane as bs, Vector4 as at, WebGLRenderTarget as Yt, NoToneMapping as Pl, BufferGeometry as ht, InterleavedBuffer as Mo, InterleavedBufferAttribute as tn, MeshBasicMaterial as Wt, DataTexture as ti, RawShaderMaterial as gi, AdditiveBlending as So, Box2 as ma, UniformsLib as ni, BackSide as li, BoxGeometry as zt, Triangle as Rl, Object3D as Pt, Raycaster as ga, LineBasicMaterial as ws, CylinderGeometry as Ct, Float32BufferAttribute as gt, Line as ke, OctahedronGeometry as Mn, TorusGeometry as Ds, SphereGeometry as Cl, EventDispatcher as va, Ray as Il, MOUSE as mn, TOUCH as Ht, OrthographicCamera as _n, Spherical as si, Loader as Un, LoaderUtils as qn, FileLoader as kn, SpotLight as ya, PointLight as oo, DirectionalLight as _a, MeshPhysicalMaterial as $t, InstancedMesh as xa, InstancedBufferAttribute as Ol, ImageBitmapLoader as Dl, PointsMaterial as Ll, Material as vi, MeshStandardMaterial as Es, SkinnedMesh as Ao, LineSegments as kl, LineLoop as Nl, Points as wa, Skeleton as Ta, AnimationClip as ba, Bone as ro, VectorKeyframeTrack as ao, NumberKeyframeTrack as lo, QuaternionKeyframeTrack as co, Box3 as yt, Sphere as Ms, Interpolant as Bl, ExtrudeGeometry as Ul, Curve as Fl, MeshPhongMaterial as yi, MeshLambertMaterial as zl, EquirectangularReflectionMapping as uo, AmbientLight as Gl, Uint16BufferAttribute as Hl, Matrix3 as Cn, ShapePath as dn, DataTextureLoader as jl, FloatType as qs, DataUtils as Ls, ShapeUtils as Vl, Shape as Yl, Path as _i, InstancedBufferGeometry as Wl, InstancedInterleavedBuffer as ho, WireframeGeometry as Xl, Line3 as $l, AlwaysStencilFunc as Zl, ReplaceStencilOp as xi, AnimationMixer as Kl, NotEqualStencilFunc as Xo, EqualStencilFunc as $o, KeepStencilOp as wi, DepthTexture as Ea, EdgesGeometry as ql, CubeTextureLoader as Ql, CubeReflectionMapping as Jl, ShapeGeometry as ec, DefaultLoadingManager as ks, VideoTexture as tc, Clock as nc, NoBlending as sc, Camera as ic, TangentSpaceNormalMap as oc, CatmullRomCurve3 as rc, QuadraticBezierCurve3 as ac, MeshDepthMaterial as Zo, ShaderChunk as Ti, UnsignedByteType as lc, UVMapping as cc, IcosahedronGeometry as uc } from "three";
12
+ import { TextureLoader as ai, DoubleSide as sn, WebGLCubeRenderTarget as oa, HalfFloatType as Ot, CubeCamera as ra, Group as Xt, Quaternion as je, Euler as en, AudioListener as aa, Audio as Ml, AudioLoader as la, MathUtils as Ye, ShaderMaterial as Tt, UniformsUtils as Dn, Color as be, Vector2 as ve, FrontSide as ss, REVISION as Ts, Vector3 as $, BufferAttribute as ut, TrianglesDrawMode as Sl, TriangleFanDrawMode as io, TriangleStripDrawMode as ca, CompressedTexture as mi, Texture as es, RGBAFormat as ei, PropertyBinding as on, InterpolateDiscrete as ua, Matrix4 as Ie, Scene as xs, PlaneGeometry as Gt, Uniform as Se, Mesh as pe, PerspectiveCamera as Dt, WebGLRenderer as Al, InterpolateLinear as bo, NearestFilter as Kn, NearestMipmapNearestFilter as ha, NearestMipmapLinearFilter as fa, LinearFilter as xt, LinearMipmapNearestFilter as da, LinearMipmapLinearFilter as Eo, ClampToEdgeWrapping as Vt, RepeatWrapping as Ln, MirroredRepeatWrapping as pa, Plane as bs, Vector4 as at, WebGLRenderTarget as Yt, NoToneMapping as Pl, BufferGeometry as ht, InterleavedBuffer as Mo, InterleavedBufferAttribute as tn, MeshBasicMaterial as Wt, DataTexture as ti, RawShaderMaterial as gi, AdditiveBlending as So, Box2 as ma, UniformsLib as ni, BackSide as li, BoxGeometry as zt, Triangle as Rl, Object3D as Pt, Raycaster as ga, LineBasicMaterial as ws, CylinderGeometry as Rt, Float32BufferAttribute as gt, Line as ke, OctahedronGeometry as Mn, TorusGeometry as Ds, SphereGeometry as Cl, EventDispatcher as va, Ray as Il, MOUSE as mn, TOUCH as Ht, OrthographicCamera as _n, Spherical as si, Loader as Un, LoaderUtils as qn, FileLoader as kn, SpotLight as ya, PointLight as oo, DirectionalLight as _a, MeshPhysicalMaterial as $t, InstancedMesh as xa, InstancedBufferAttribute as Ol, ImageBitmapLoader as Dl, PointsMaterial as Ll, Material as vi, MeshStandardMaterial as Es, SkinnedMesh as Ao, LineSegments as kl, LineLoop as Nl, Points as wa, Skeleton as Ta, AnimationClip as ba, Bone as ro, VectorKeyframeTrack as ao, NumberKeyframeTrack as lo, QuaternionKeyframeTrack as co, Box3 as yt, Sphere as Ms, Interpolant as Bl, ExtrudeGeometry as Ul, Curve as Fl, MeshPhongMaterial as yi, MeshLambertMaterial as zl, EquirectangularReflectionMapping as uo, AmbientLight as Gl, Uint16BufferAttribute as Hl, Matrix3 as Cn, ShapePath as dn, DataTextureLoader as jl, FloatType as qs, DataUtils as Ls, ShapeUtils as Vl, Shape as Yl, Path as _i, InstancedBufferGeometry as Wl, InstancedInterleavedBuffer as ho, WireframeGeometry as Xl, Line3 as $l, AlwaysStencilFunc as Zl, ReplaceStencilOp as xi, AnimationMixer as Kl, NotEqualStencilFunc as Xo, EqualStencilFunc as $o, KeepStencilOp as wi, DepthTexture as Ea, EdgesGeometry as ql, CubeTextureLoader as Ql, CubeReflectionMapping as Jl, ShapeGeometry as ec, DefaultLoadingManager as ks, VideoTexture as tc, Clock as nc, NoBlending as sc, Camera as ic, TangentSpaceNormalMap as oc, CatmullRomCurve3 as rc, QuadraticBezierCurve3 as ac, MeshDepthMaterial as Zo, ShaderChunk as Ti, UnsignedByteType as lc, UVMapping as cc, IcosahedronGeometry as uc } from "three";
13
13
  import { defineComponent as ue, watch as J, ref as ge, shallowRef as re, withAsyncContext as Tn, onUnmounted as tt, openBlock as ae, createElementBlock as ce, createElementVNode as ye, unref as F, renderSlot as Ne, getCurrentScope as hc, onScopeDispose as fc, onMounted as bn, nextTick as Po, isRef as ii, getCurrentInstance as Ma, computed as Pe, reactive as ts, watchEffect as et, toValue as ze, isReactive as fo, createVNode as ms, mergeProps as $e, toRefs as Le, shallowReactive as Sa, onBeforeUnmount as Ro, useSlots as Co, createCommentVNode as rn, createBlock as Io, Fragment as Aa, renderList as Pa, useAttrs as dc, render as pc, triggerRef as mc, toRaw as Ko } from "vue";
14
14
  import { useLogger as _t, useLoader as Nn, useTresContext as xe, useLoop as Ve, normalizeVectorFlexibleParam as Ra, useTres as xn, extend as Ca, useTexture as Bn, normalizeColor as Jt } from "@tresjs/core";
15
15
  function gc(a) {
@@ -830,7 +830,7 @@ function nu(a) {
830
830
  e = ze(a.resolution) ?? 255, o = ze(a.near) ?? 0.1, r = ze(a.far) ?? 1e3, s = ze(a.envMap) ?? void 0, i = ze(a.fog) ?? void 0, t = ze(a.renderer) ?? t, n = ze(a.scene) ?? n;
831
831
  });
832
832
  const c = Pe(() => new oa(ze(e)));
833
- c.value.texture.type = Dt, ci(() => {
833
+ c.value.texture.type = Ot, ci(() => {
834
834
  c.value.dispose();
835
835
  });
836
836
  const f = Pe(() => new ra(ze(o), ze(r), ze(c))), u = () => {
@@ -1236,7 +1236,7 @@ function Ei(a, e = 1 / 0, t = null) {
1236
1236
  `
1237
1237
  )
1238
1238
  })), Fn.uniforms.blitTexture.value = a, Fn.defines.IS_SRGB = "colorSpace" in a ? a.colorSpace === "srgb" : a.encoding === 3001, Fn.needsUpdate = !0, Us || (Us = new pe(bi, Fn), Us.frustrumCulled = !1);
1239
- const n = new Lt(), s = new xs();
1239
+ const n = new Dt(), s = new xs();
1240
1240
  s.add(Us), t || (t = Bs = new Al({ antialias: !1 })), t.setSize(Math.min(a.image.width, e), Math.min(a.image.height, e)), t.clear(), t.render(s, n);
1241
1241
  const i = new es(t.domElement);
1242
1242
  return i.minFilter = a.minFilter, i.magFilter = a.magFilter, i.wrapS = a.wrapS, i.wrapT = a.wrapT, i.name = a.name, Bs && (Bs.dispose(), Bs = null), i;
@@ -2521,7 +2521,7 @@ var Bu = /* @__PURE__ */ ys(As, 9, 1), Uu = /* @__PURE__ */ ys(Ga, 5, 1), Ai = f
2521
2521
  for (var e = a[0], t = 1; t < a.length; ++t)
2522
2522
  a[t] > e && (e = a[t]);
2523
2523
  return e;
2524
- }, It = function(a, e, t) {
2524
+ }, Ct = function(a, e, t) {
2525
2525
  var n = e / 8 | 0;
2526
2526
  return (a[n] | a[n + 1] << 8) >> (e & 7) & t;
2527
2527
  }, Pi = function(a, e) {
@@ -2548,26 +2548,26 @@ var Bu = /* @__PURE__ */ ys(As, 9, 1), Uu = /* @__PURE__ */ ys(Ga, 5, 1), Ai = f
2548
2548
  }, r = t.f || 0, l = t.p || 0, c = t.b || 0, f = t.l, u = t.d, d = t.m, h = t.n, p = n * 8;
2549
2549
  do {
2550
2550
  if (!f) {
2551
- t.f = r = It(a, l, 1);
2552
- var m = It(a, l + 1, 3);
2551
+ t.f = r = Ct(a, l, 1);
2552
+ var m = Ct(a, l + 1, 3);
2553
2553
  if (l += 3, m)
2554
2554
  if (m == 1)
2555
2555
  f = Bu, u = Uu, d = 9, h = 5;
2556
2556
  else if (m == 2) {
2557
- var x = It(a, l, 31) + 257, M = It(a, l + 10, 15) + 4, R = x + It(a, l + 5, 31) + 1;
2557
+ var x = Ct(a, l, 31) + 257, M = Ct(a, l + 10, 15) + 4, R = x + Ct(a, l + 5, 31) + 1;
2558
2558
  l += 14;
2559
2559
  for (var w = new At(R), E = new At(19), _ = 0; _ < M; ++_)
2560
- E[Du[_]] = It(a, l + _ * 3, 7);
2560
+ E[Du[_]] = Ct(a, l + _ * 3, 7);
2561
2561
  l += M * 3;
2562
2562
  for (var T = Ai(E), y = (1 << T) - 1, A = ys(E, T, 1), _ = 0; _ < R; ) {
2563
- var C = A[It(a, l, y)];
2563
+ var C = A[Ct(a, l, y)];
2564
2564
  l += C & 15;
2565
2565
  var v = C >>> 4;
2566
2566
  if (v < 16)
2567
2567
  w[_++] = v;
2568
2568
  else {
2569
2569
  var N = 0, U = 0;
2570
- for (v == 16 ? (U = 3 + It(a, l, 3), l += 2, N = w[_ - 1]) : v == 17 ? (U = 3 + It(a, l, 7), l += 3) : v == 18 && (U = 11 + It(a, l, 127), l += 7); U--; )
2570
+ for (v == 16 ? (U = 3 + Ct(a, l, 3), l += 2, N = w[_ - 1]) : v == 17 ? (U = 3 + Ct(a, l, 7), l += 3) : v == 18 && (U = 11 + Ct(a, l, 127), l += 7); U--; )
2571
2571
  w[_++] = N;
2572
2572
  }
2573
2573
  }
@@ -2610,7 +2610,7 @@ var Bu = /* @__PURE__ */ ys(As, 9, 1), Uu = /* @__PURE__ */ ys(Ga, 5, 1), Ai = f
2610
2610
  var fe = te - 254;
2611
2611
  if (te > 264) {
2612
2612
  var _ = te - 257, he = Na[_];
2613
- fe = It(a, l, (1 << he) - 1) + za[_], l += he;
2613
+ fe = Ct(a, l, (1 << he) - 1) + za[_], l += he;
2614
2614
  }
2615
2615
  var we = u[Pi(a, l) & Z], I = we >>> 4;
2616
2616
  if (!we)
@@ -2652,10 +2652,10 @@ try {
2652
2652
  var Xu = Object.defineProperty, $u = (a, e, t) => e in a ? Xu(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t, Zu = (a, e, t) => ($u(a, e + "", t), t);
2653
2653
  const Ha = class extends pe {
2654
2654
  constructor(a, e = {}) {
2655
- super(a), this.isReflector = !0, this.type = "Reflector", this.camera = new Lt();
2655
+ super(a), this.isReflector = !0, this.type = "Reflector", this.camera = new Dt();
2656
2656
  const t = this, n = e.color !== void 0 ? new be(e.color) : new be(8355711), s = e.textureWidth || 512, i = e.textureHeight || 512, o = e.clipBias || 0, r = e.shader || Ha.ReflectorShader, l = e.multisample !== void 0 ? e.multisample : 4, c = new bs(), f = new $(), u = new $(), d = new $(), h = new Ie(), p = new $(0, 0, -1), m = new at(), v = new $(), g = new $(), b = new at(), x = new Ie(), M = this.camera, R = new Yt(s, i, {
2657
2657
  samples: l,
2658
- type: Dt
2658
+ type: Ot
2659
2659
  }), w = new Tt({
2660
2660
  uniforms: Dn.clone(r.uniforms),
2661
2661
  fragmentShader: r.fragmentShader,
@@ -2963,7 +2963,7 @@ ja(Wa, "Shader", {
2963
2963
  class Ju extends pe {
2964
2964
  constructor(e, t = {}) {
2965
2965
  super(e), this.isWater = !0;
2966
- const n = this, s = t.textureWidth !== void 0 ? t.textureWidth : 512, i = t.textureHeight !== void 0 ? t.textureHeight : 512, o = t.clipBias !== void 0 ? t.clipBias : 0, r = t.alpha !== void 0 ? t.alpha : 1, l = t.time !== void 0 ? t.time : 0, c = t.waterNormals !== void 0 ? t.waterNormals : null, f = t.sunDirection !== void 0 ? t.sunDirection : new $(0.70707, 0.70707, 0), u = new be(t.sunColor !== void 0 ? t.sunColor : 16777215), d = new be(t.waterColor !== void 0 ? t.waterColor : 8355711), h = t.eye !== void 0 ? t.eye : new $(0, 0, 0), p = t.distortionScale !== void 0 ? t.distortionScale : 20, m = t.side !== void 0 ? t.side : ss, v = t.fog !== void 0 ? t.fog : !1, g = new bs(), b = new $(), x = new $(), M = new $(), R = new Ie(), w = new $(0, 0, -1), E = new at(), _ = new $(), T = new $(), y = new at(), A = new Ie(), C = new Lt(), N = new Yt(s, i), U = {
2966
+ const n = this, s = t.textureWidth !== void 0 ? t.textureWidth : 512, i = t.textureHeight !== void 0 ? t.textureHeight : 512, o = t.clipBias !== void 0 ? t.clipBias : 0, r = t.alpha !== void 0 ? t.alpha : 1, l = t.time !== void 0 ? t.time : 0, c = t.waterNormals !== void 0 ? t.waterNormals : null, f = t.sunDirection !== void 0 ? t.sunDirection : new $(0.70707, 0.70707, 0), u = new be(t.sunColor !== void 0 ? t.sunColor : 16777215), d = new be(t.waterColor !== void 0 ? t.waterColor : 8355711), h = t.eye !== void 0 ? t.eye : new $(0, 0, 0), p = t.distortionScale !== void 0 ? t.distortionScale : 20, m = t.side !== void 0 ? t.side : ss, v = t.fog !== void 0 ? t.fog : !1, g = new bs(), b = new $(), x = new $(), M = new $(), R = new Ie(), w = new $(0, 0, -1), E = new at(), _ = new $(), T = new $(), y = new at(), A = new Ie(), C = new Dt(), N = new Yt(s, i), U = {
2967
2967
  uniforms: Dn.merge([
2968
2968
  ni.fog,
2969
2969
  ni.lights,
@@ -3550,7 +3550,7 @@ class rh extends Pt {
3550
3550
  x.color.set(7895160);
3551
3551
  const M = b.clone();
3552
3552
  M.opacity = 0.25;
3553
- const R = new Ct(0, 0.05, 0.2, 12, 1, !1), w = new zt(0.125, 0.125, 0.125), E = new ht();
3553
+ const R = new Rt(0, 0.05, 0.2, 12, 1, !1), w = new zt(0.125, 0.125, 0.125), E = new ht();
3554
3554
  E.setAttribute("position", new gt([0, 0, 0, 1, 0, 0], 3));
3555
3555
  const _ = (te, fe) => {
3556
3556
  const he = new ht(), we = [];
@@ -3597,9 +3597,9 @@ class rh extends Pt {
3597
3597
  [new ke(E, g), [0.3, 0, 0.18], [0, -Math.PI / 2, 0], [0.125, 1, 1]]
3598
3598
  ]
3599
3599
  }, A = {
3600
- X: [[new pe(new Ct(0.2, 0, 1, 4, 1, !1), n), [0.6, 0, 0], [0, 0, -Math.PI / 2]]],
3601
- Y: [[new pe(new Ct(0.2, 0, 1, 4, 1, !1), n), [0, 0.6, 0]]],
3602
- Z: [[new pe(new Ct(0.2, 0, 1, 4, 1, !1), n), [0, 0, 0.6], [Math.PI / 2, 0, 0]]],
3600
+ X: [[new pe(new Rt(0.2, 0, 1, 4, 1, !1), n), [0.6, 0, 0], [0, 0, -Math.PI / 2]]],
3601
+ Y: [[new pe(new Rt(0.2, 0, 1, 4, 1, !1), n), [0, 0.6, 0]]],
3602
+ Z: [[new pe(new Rt(0.2, 0, 1, 4, 1, !1), n), [0, 0, 0.6], [Math.PI / 2, 0, 0]]],
3603
3603
  XYZ: [[new pe(new Mn(0.2, 0), n)]],
3604
3604
  XY: [[new pe(new Gt(0.4, 0.4), n), [0.2, 0.2, 0]]],
3605
3605
  YZ: [[new pe(new Gt(0.4, 0.4), n), [0, 0.2, 0.2], [0, Math.PI / 2, 0]]],
@@ -3627,25 +3627,25 @@ class rh extends Pt {
3627
3627
  E: [
3628
3628
  [new ke(_(1.25, 1), M), null, [0, Math.PI / 2, 0]],
3629
3629
  [
3630
- new pe(new Ct(0.03, 0, 0.15, 4, 1, !1), M),
3630
+ new pe(new Rt(0.03, 0, 0.15, 4, 1, !1), M),
3631
3631
  [1.17, 0, 0],
3632
3632
  [0, 0, -Math.PI / 2],
3633
3633
  [1, 1, 1e-3]
3634
3634
  ],
3635
3635
  [
3636
- new pe(new Ct(0.03, 0, 0.15, 4, 1, !1), M),
3636
+ new pe(new Rt(0.03, 0, 0.15, 4, 1, !1), M),
3637
3637
  [-1.17, 0, 0],
3638
3638
  [0, 0, Math.PI / 2],
3639
3639
  [1, 1, 1e-3]
3640
3640
  ],
3641
3641
  [
3642
- new pe(new Ct(0.03, 0, 0.15, 4, 1, !1), M),
3642
+ new pe(new Rt(0.03, 0, 0.15, 4, 1, !1), M),
3643
3643
  [0, -1.17, 0],
3644
3644
  [Math.PI, 0, 0],
3645
3645
  [1, 1, 1e-3]
3646
3646
  ],
3647
3647
  [
3648
- new pe(new Ct(0.03, 0, 0.15, 4, 1, !1), M),
3648
+ new pe(new Rt(0.03, 0, 0.15, 4, 1, !1), M),
3649
3649
  [0, 1.17, 0],
3650
3650
  [0, 0, 0],
3651
3651
  [1, 1, 1e-3]
@@ -3692,9 +3692,9 @@ class rh extends Pt {
3692
3692
  XYZY: [[new pe(new zt(0.125, 0.125, 0.125), l.clone()), [0, 1.1, 0]]],
3693
3693
  XYZZ: [[new pe(new zt(0.125, 0.125, 0.125), l.clone()), [0, 0, 1.1]]]
3694
3694
  }, ee = {
3695
- X: [[new pe(new Ct(0.2, 0, 0.8, 4, 1, !1), n), [0.5, 0, 0], [0, 0, -Math.PI / 2]]],
3696
- Y: [[new pe(new Ct(0.2, 0, 0.8, 4, 1, !1), n), [0, 0.5, 0]]],
3697
- Z: [[new pe(new Ct(0.2, 0, 0.8, 4, 1, !1), n), [0, 0, 0.5], [Math.PI / 2, 0, 0]]],
3695
+ X: [[new pe(new Rt(0.2, 0, 0.8, 4, 1, !1), n), [0.5, 0, 0], [0, 0, -Math.PI / 2]]],
3696
+ Y: [[new pe(new Rt(0.2, 0, 0.8, 4, 1, !1), n), [0, 0.5, 0]]],
3697
+ Z: [[new pe(new Rt(0.2, 0, 0.8, 4, 1, !1), n), [0, 0, 0.5], [Math.PI / 2, 0, 0]]],
3698
3698
  XY: [[new pe(w, n), [0.85, 0.85, 0], null, [3, 3, 0.2]]],
3699
3699
  YZ: [[new pe(w, n), [0, 0.85, 0.85], null, [0.2, 3, 3]]],
3700
3700
  XZ: [[new pe(w, n), [0.85, 0, 0.85], null, [3, 0.2, 3]]],
@@ -3818,9 +3818,9 @@ class Ka extends va {
3818
3818
  let Ue = Math.abs(le - Ee);
3819
3819
  2 * Math.PI - Ue < Ue && (le < Ee ? le += 2 * Math.PI : Ee += 2 * Math.PI), u.theta = le - Ee, n.update();
3820
3820
  }, this.getDistance = () => n.object.position.distanceTo(n.target), this.listenToKeyEvents = (W) => {
3821
- W.addEventListener("keydown", kt), this._domElementKeyEvents = W;
3821
+ W.addEventListener("keydown", Lt), this._domElementKeyEvents = W;
3822
3822
  }, this.stopListenToKeyEvents = () => {
3823
- this._domElementKeyEvents.removeEventListener("keydown", kt), this._domElementKeyEvents = null;
3823
+ this._domElementKeyEvents.removeEventListener("keydown", Lt), this._domElementKeyEvents = null;
3824
3824
  }, this.saveState = () => {
3825
3825
  n.target0.copy(n.target), n.position0.copy(n.object.position), n.zoom0 = n.object.zoom;
3826
3826
  }, this.reset = () => {
@@ -3835,7 +3835,7 @@ class Ka extends va {
3835
3835
  let os = !1;
3836
3836
  if (n.zoomToCursor && T) {
3837
3837
  let rs = null;
3838
- if (n.object instanceof Lt && n.object.isPerspectiveCamera) {
3838
+ if (n.object instanceof Dt && n.object.isPerspectiveCamera) {
3839
3839
  const as = W.length();
3840
3840
  rs = we(as * d);
3841
3841
  const Os = as - rs;
@@ -3855,7 +3855,7 @@ class Ka extends va {
3855
3855
  n.domElement = W, n.domElement.style.touchAction = "none", n.domElement.addEventListener("contextmenu", is), n.domElement.addEventListener("pointerdown", Re), n.domElement.addEventListener("pointercancel", He), n.domElement.addEventListener("wheel", En);
3856
3856
  }, this.dispose = () => {
3857
3857
  var W, le, Ee, Ue, nt, Zt;
3858
- n.domElement && (n.domElement.style.touchAction = "auto"), (W = n.domElement) == null || W.removeEventListener("contextmenu", is), (le = n.domElement) == null || le.removeEventListener("pointerdown", Re), (Ee = n.domElement) == null || Ee.removeEventListener("pointercancel", He), (Ue = n.domElement) == null || Ue.removeEventListener("wheel", En), (nt = n.domElement) == null || nt.ownerDocument.removeEventListener("pointermove", Ke), (Zt = n.domElement) == null || Zt.ownerDocument.removeEventListener("pointerup", He), n._domElementKeyEvents !== null && n._domElementKeyEvents.removeEventListener("keydown", kt);
3858
+ n.domElement && (n.domElement.style.touchAction = "auto"), (W = n.domElement) == null || W.removeEventListener("contextmenu", is), (le = n.domElement) == null || le.removeEventListener("pointerdown", Re), (Ee = n.domElement) == null || Ee.removeEventListener("pointercancel", He), (Ue = n.domElement) == null || Ue.removeEventListener("wheel", En), (nt = n.domElement) == null || nt.ownerDocument.removeEventListener("pointermove", Ke), (Zt = n.domElement) == null || Zt.ownerDocument.removeEventListener("pointerup", He), n._domElementKeyEvents !== null && n._domElementKeyEvents.removeEventListener("keydown", Lt);
3859
3859
  };
3860
3860
  const n = this, s = { type: "change" }, i = { type: "start" }, o = { type: "end" }, r = {
3861
3861
  NONE: -1,
@@ -3899,7 +3899,7 @@ class Ka extends va {
3899
3899
  const W = new $();
3900
3900
  return function(Ee, Ue) {
3901
3901
  const nt = n.domElement;
3902
- if (nt && n.object instanceof Lt && n.object.isPerspectiveCamera) {
3902
+ if (nt && n.object instanceof Dt && n.object.isPerspectiveCamera) {
3903
3903
  const Zt = n.object.position;
3904
3904
  W.copy(Zt).sub(n.target);
3905
3905
  let un = W.length();
@@ -3914,7 +3914,7 @@ class Ka extends va {
3914
3914
  };
3915
3915
  })();
3916
3916
  function ne(W) {
3917
- n.object instanceof Lt && n.object.isPerspectiveCamera || n.object instanceof _n && n.object.isOrthographicCamera ? d = W : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), n.enableZoom = !1);
3917
+ n.object instanceof Dt && n.object.isPerspectiveCamera || n.object instanceof _n && n.object.isOrthographicCamera ? d = W : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."), n.enableZoom = !1);
3918
3918
  }
3919
3919
  function te(W) {
3920
3920
  ne(d / W);
@@ -4034,7 +4034,7 @@ class Ka extends va {
4034
4034
  n.enabled !== !1 && (y.length === 0 && ((le = n.domElement) == null || le.ownerDocument.addEventListener("pointermove", Ke), (Ee = n.domElement) == null || Ee.ownerDocument.addEventListener("pointerup", He)), Cs(W), W.pointerType === "touch" ? vt(W) : bt(W));
4035
4035
  }
4036
4036
  function Ke(W) {
4037
- n.enabled !== !1 && (W.pointerType === "touch" ? Rt(W) : cn(W));
4037
+ n.enabled !== !1 && (W.pointerType === "touch" ? kt(W) : cn(W));
4038
4038
  }
4039
4039
  function He(W) {
4040
4040
  var le, Ee, Ue;
@@ -4111,7 +4111,7 @@ class Ka extends va {
4111
4111
  function En(W) {
4112
4112
  n.enabled === !1 || n.enableZoom === !1 || l !== r.NONE && l !== r.ROTATE || (W.preventDefault(), n.dispatchEvent(i), P(W), n.dispatchEvent(o));
4113
4113
  }
4114
- function kt(W) {
4114
+ function Lt(W) {
4115
4115
  n.enabled === !1 || n.enablePan === !1 || L(W);
4116
4116
  }
4117
4117
  function vt(W) {
@@ -4153,7 +4153,7 @@ class Ka extends va {
4153
4153
  }
4154
4154
  l !== r.NONE && n.dispatchEvent(i);
4155
4155
  }
4156
- function Rt(W) {
4156
+ function kt(W) {
4157
4157
  switch (Is(W), l) {
4158
4158
  case r.TOUCH_ROTATE:
4159
4159
  if (n.enableRotate === !1)
@@ -5635,7 +5635,7 @@ class qh {
5635
5635
  console.warn("THREE.GLTFLoader: Missing camera parameters.");
5636
5636
  return;
5637
5637
  }
5638
- return n.type === "perspective" ? t = new Lt(
5638
+ return n.type === "perspective" ? t = new Dt(
5639
5639
  Ye.radToDeg(s.yfov),
5640
5640
  s.aspectRatio || 1,
5641
5641
  s.znear || 1,
@@ -6606,7 +6606,7 @@ class hf {
6606
6606
  const u = n.FocalLength ? n.FocalLength.value : null;
6607
6607
  switch (s) {
6608
6608
  case 0:
6609
- t = new Lt(f, c, i, o), u !== null && t.setFocalLength(u);
6609
+ t = new Dt(f, c, i, o), u !== null && t.setFocalLength(u);
6610
6610
  break;
6611
6611
  case 1:
6612
6612
  t = new _n(
@@ -7787,7 +7787,7 @@ function Sf(a, e, t, n, s) {
7787
7787
  }
7788
7788
  class xr extends jl {
7789
7789
  constructor(e) {
7790
- super(e), this.type = Dt;
7790
+ super(e), this.type = Ot;
7791
7791
  }
7792
7792
  // adapted from http://www.graphics.cornell.edu/~bjw/rgbe.html
7793
7793
  parse(e) {
@@ -7888,12 +7888,12 @@ class xr extends jl {
7888
7888
  p(M, y * 4, _, y * 4);
7889
7889
  R = _, w = qs;
7890
7890
  break;
7891
- case Dt:
7891
+ case Ot:
7892
7892
  E = M.length / 4;
7893
7893
  const T = new Uint16Array(E * 4);
7894
7894
  for (let y = 0; y < E; y++)
7895
7895
  m(M, y * 4, T, y * 4);
7896
- R = T, w = Dt;
7896
+ R = T, w = Ot;
7897
7897
  break;
7898
7898
  default:
7899
7899
  throw new Error("THREE.RGBELoader: Unsupported type: " + this.type);
@@ -7915,7 +7915,7 @@ class xr extends jl {
7915
7915
  function i(o, r) {
7916
7916
  switch (o.type) {
7917
7917
  case qs:
7918
- case Dt:
7918
+ case Ot:
7919
7919
  "colorSpace" in o ? o.colorSpace = "srgb-linear" : o.encoding = 3e3, o.minFilter = xt, o.magFilter = xt, o.generateMipmaps = !1, o.flipY = !0;
7920
7920
  break;
7921
7921
  }
@@ -8198,14 +8198,14 @@ class _s extends Un {
8198
8198
  let se = B * B, ie = D * D;
8199
8199
  const G = j * j, k = K * K, oe = G / se + k / ie;
8200
8200
  if (oe > 1) {
8201
- const Rt = Math.sqrt(oe);
8202
- B = Rt * B, D = Rt * D, se = B * B, ie = D * D;
8201
+ const kt = Math.sqrt(oe);
8202
+ B = kt * B, D = kt * D, se = B * B, ie = D * D;
8203
8203
  }
8204
8204
  const me = se * k + ie * G, Re = (se * ie - me) / me;
8205
8205
  let Ke = Math.sqrt(Math.max(0, Re));
8206
8206
  z === S && (Ke = -Ke);
8207
- const He = Ke * B * K / D, bt = -Ke * D * j / B, cn = Math.cos(O) * He - Math.sin(O) * bt + (P.x + L.x) / 2, En = Math.sin(O) * He + Math.cos(O) * bt + (P.y + L.y) / 2, kt = r(1, 0, (j - He) / B, (K - bt) / D), vt = r((j - He) / B, (K - bt) / D, (-j - He) / B, (-K - bt) / D) % (Math.PI * 2);
8208
- I.currentPath.absellipse(cn, En, B, D, kt, kt + vt, S === 0, O);
8207
+ const He = Ke * B * K / D, bt = -Ke * D * j / B, cn = Math.cos(O) * He - Math.sin(O) * bt + (P.x + L.x) / 2, En = Math.sin(O) * He + Math.cos(O) * bt + (P.y + L.y) / 2, Lt = r(1, 0, (j - He) / B, (K - bt) / D), vt = r((j - He) / B, (K - bt) / D, (-j - He) / B, (-K - bt) / D) % (Math.PI * 2);
8208
+ I.currentPath.absellipse(cn, En, B, D, Lt, Lt + vt, S === 0, O);
8209
8209
  }
8210
8210
  function r(I, B, D, O) {
8211
8211
  const z = I * D + B * O, S = Math.sqrt(I * I + B * B) * Math.sqrt(D * D + O * O);
@@ -8483,8 +8483,8 @@ class _s extends Un {
8483
8483
  function O(P) {
8484
8484
  const L = P.xRadius, X = P.yRadius, H = Math.cos(P.aRotation), j = Math.sin(P.aRotation), K = new $(L * H, L * j, 0), se = new $(-X * j, X * H, 0), ie = K.applyMatrix3(B), G = se.applyMatrix3(B), k = V.set(ie.x, G.x, 0, ie.y, G.y, 0, 0, 0, 1), oe = Y.copy(k).invert(), Ke = ee.copy(oe).transpose().multiply(oe).elements, He = A(Ke[0], Ke[1], Ke[4]), bt = Math.sqrt(He.rt1), cn = Math.sqrt(He.rt2);
8485
8485
  if (P.xRadius = 1 / bt, P.yRadius = 1 / cn, P.aRotation = Math.atan2(He.sn, He.cs), !((P.aEndAngle - P.aStartAngle) % (2 * Math.PI) < Number.EPSILON)) {
8486
- const kt = Y.set(bt, 0, 0, 0, cn, 0, 0, 0, 1), vt = ee.set(He.cs, He.sn, 0, -He.sn, He.cs, 0, 0, 0, 1), Rt = kt.multiply(vt).multiply(k), is = (Cs) => {
8487
- const { x: di, y: Is } = new $(Math.cos(Cs), Math.sin(Cs), 0).applyMatrix3(Rt);
8486
+ const Lt = Y.set(bt, 0, 0, 0, cn, 0, 0, 0, 1), vt = ee.set(He.cs, He.sn, 0, -He.sn, He.cs, 0, 0, 0, 1), kt = Lt.multiply(vt).multiply(k), is = (Cs) => {
8487
+ const { x: di, y: Is } = new $(Math.cos(Cs), Math.sin(Cs), 0).applyMatrix3(kt);
8488
8488
  return Math.atan2(Is, di);
8489
8489
  };
8490
8490
  P.aStartAngle = is(P.aStartAngle), P.aEndAngle = is(P.aEndAngle), E(B) && (P.aClockwise = !P.aClockwise);
@@ -10522,7 +10522,7 @@ function od(a) {
10522
10522
  (h = e.value) == null || h.dispose(), e.value = new Yt((n == null ? void 0 : n.value) || u.width.value, (t == null ? void 0 : t.value) || u.height.value, {
10523
10523
  minFilter: xt,
10524
10524
  magFilter: xt,
10525
- type: Dt,
10525
+ type: Ot,
10526
10526
  ...s == null ? void 0 : s.value
10527
10527
  }), i != null && i.value && (e.value.depthTexture = new Ea(
10528
10528
  (n == null ? void 0 : n.value) || u.width.value,
@@ -10786,7 +10786,7 @@ function pn(a) {
10786
10786
  return a.isOrthographicCamera;
10787
10787
  }
10788
10788
  const Vn = Math.PI * 2, Ir = Math.PI / 2, ul = 1e-5, us = Math.PI / 180;
10789
- function Ot(a, e, t) {
10789
+ function It(a, e, t) {
10790
10790
  return Math.max(e, Math.min(t, a));
10791
10791
  }
10792
10792
  function We(a, e = ul) {
@@ -10809,7 +10809,7 @@ function Ws(a, e, t, n, s = 1 / 0, i) {
10809
10809
  const o = 2 / n, r = o * i, l = 1 / (1 + r + 0.48 * r * r + 0.235 * r * r * r);
10810
10810
  let c = a - e;
10811
10811
  const f = e, u = s * n;
10812
- c = Ot(c, -u, u), e = a - c;
10812
+ c = It(c, -u, u), e = a - c;
10813
10813
  const d = (t.value + o * c) * i;
10814
10814
  t.value = (t.value - o * d) * l;
10815
10815
  let h = e + (c + d) * l;
@@ -10990,7 +10990,7 @@ class lt extends gd {
10990
10990
  const x = Vn * this.azimuthRotateSpeed * g / this._elementRect.height, M = Vn * this.polarRotateSpeed * b / this._elementRect.height;
10991
10991
  this.rotate(x, M, !0);
10992
10992
  }, this._dollyInternal = (g, b, x) => {
10993
- const M = Math.pow(0.95, -g * this.dollySpeed), R = this._sphericalEnd.radius, w = this._sphericalEnd.radius * M, E = Ot(w, this.minDistance, this.maxDistance), _ = E - w;
10993
+ const M = Math.pow(0.95, -g * this.dollySpeed), R = this._sphericalEnd.radius, w = this._sphericalEnd.radius * M, E = It(w, this.minDistance, this.maxDistance), _ = E - w;
10994
10994
  this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(w, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(_, !0), this._dollyToNoClamp(E, !0)) : this._dollyToNoClamp(E, !0), this.dollyToCursor && (this._changedDolly += (this.infinityDolly ? w : E) - R, this._dollyControlCoord.set(b, x)), this._lastDollyDirection = Math.sign(-g);
10995
10995
  }, this._zoomInternal = (g, b, x) => {
10996
10996
  const M = Math.pow(0.95, g * this.dollySpeed), R = this._zoom, w = this._zoom * M;
@@ -11281,7 +11281,7 @@ class lt extends gd {
11281
11281
  * @category Properties
11282
11282
  */
11283
11283
  set interactiveArea(e) {
11284
- this._interactiveArea.width = Ot(e.width, 0, 1), this._interactiveArea.height = Ot(e.height, 0, 1), this._interactiveArea.x = Ot(e.x, 0, 1 - this._interactiveArea.width), this._interactiveArea.y = Ot(e.y, 0, 1 - this._interactiveArea.height);
11284
+ this._interactiveArea.width = It(e.width, 0, 1), this._interactiveArea.height = It(e.height, 0, 1), this._interactiveArea.x = It(e.x, 0, 1 - this._interactiveArea.width), this._interactiveArea.y = It(e.y, 0, 1 - this._interactiveArea.height);
11285
11285
  }
11286
11286
  /**
11287
11287
  * Adds the specified event listener.
@@ -11403,7 +11403,7 @@ class lt extends gd {
11403
11403
  */
11404
11404
  rotateTo(e, t, n = !1) {
11405
11405
  this._isUserControllingRotate = !1;
11406
- const s = Ot(e, this.minAzimuthAngle, this.maxAzimuthAngle), i = Ot(t, this.minPolarAngle, this.maxPolarAngle);
11406
+ const s = It(e, this.minAzimuthAngle, this.maxAzimuthAngle), i = It(t, this.minPolarAngle, this.maxPolarAngle);
11407
11407
  this._sphericalEnd.theta = s, this._sphericalEnd.phi = i, this._sphericalEnd.makeSafe(), this._needsUpdate = !0, n || (this._spherical.theta = this._sphericalEnd.theta, this._spherical.phi = this._sphericalEnd.phi);
11408
11408
  const o = !n || Fe(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && Fe(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold);
11409
11409
  return this._createOnRestPromise(o);
@@ -11424,7 +11424,7 @@ class lt extends gd {
11424
11424
  * @category Methods
11425
11425
  */
11426
11426
  dollyTo(e, t = !1) {
11427
- return this._isUserControllingDolly = !1, this._lastDollyDirection = jn.NONE, this._changedDolly = 0, this._dollyToNoClamp(Ot(e, this.minDistance, this.maxDistance), t);
11427
+ return this._isUserControllingDolly = !1, this._lastDollyDirection = jn.NONE, this._changedDolly = 0, this._dollyToNoClamp(It(e, this.minDistance, this.maxDistance), t);
11428
11428
  }
11429
11429
  _dollyToNoClamp(e, t = !1) {
11430
11430
  const n = this._sphericalEnd.radius;
@@ -11469,7 +11469,7 @@ class lt extends gd {
11469
11469
  * @category Methods
11470
11470
  */
11471
11471
  zoomTo(e, t = !1) {
11472
- this._isUserControllingZoom = !1, this._zoomEnd = Ot(e, this.minZoom, this.maxZoom), this._needsUpdate = !0, t || (this._zoom = this._zoomEnd);
11472
+ this._isUserControllingZoom = !1, this._zoomEnd = It(e, this.minZoom, this.maxZoom), this._needsUpdate = !0, t || (this._zoom = this._zoomEnd);
11473
11473
  const n = !t || Fe(this._zoom, this._zoomEnd, this.restThreshold);
11474
11474
  return this._changedZoom = 0, this._createOnRestPromise(n);
11475
11475
  }
@@ -11659,7 +11659,7 @@ class lt extends gd {
11659
11659
  */
11660
11660
  setTarget(e, t, n, s = !1) {
11661
11661
  const i = this.getPosition(Ae), o = this.setLookAt(i.x, i.y, i.z, e, t, n, s);
11662
- return this._sphericalEnd.phi = Ot(this._sphericalEnd.phi, this.minPolarAngle, this.maxPolarAngle), o;
11662
+ return this._sphericalEnd.phi = It(this._sphericalEnd.phi, this.minPolarAngle, this.maxPolarAngle), o;
11663
11663
  }
11664
11664
  /**
11665
11665
  * Set focal offset using the screen parallel coordinates. z doesn't affect in Orthographic as with Dolly.
@@ -15489,7 +15489,7 @@ class Dp {
15489
15489
  magFilter: xt,
15490
15490
  stencilBuffer: !1,
15491
15491
  depthBuffer: !1,
15492
- type: Dt
15492
+ type: Ot
15493
15493
  }), this.renderTargetB = this.renderTargetA.clone(), this.convolutionMaterial = new Op(), this.convolutionMaterial.setTexelSize(1 / t, 1 / n), this.convolutionMaterial.setResolution(new ve(t, n)), this.scene = new xs(), this.camera = new ic(), this.convolutionMaterial.uniforms.depthEdge0.value = s, this.convolutionMaterial.uniforms.depthEdge1.value = i, this.convolutionMaterial.uniforms.depthScale.value = o, this.convolutionMaterial.uniforms.depthBias.value = r, this.convolutionMaterial.defines.USE_DEPTH = o > 0;
15494
15494
  const l = new Float32Array([-1, -1, 0, 3, -1, 0, -1, 3, 0]), c = new Float32Array([0, 0, 2, 0, 0, 2]), f = new ht();
15495
15495
  f.setAttribute("position", new ut(l, 3)), f.setAttribute("uv", new ut(c, 2)), this.screen = new pe(f, this.convolutionMaterial), this.screen.frustumCulled = !1, this.scene.add(this.screen);
@@ -15781,7 +15781,7 @@ const kp = ["texture-matrix", "t-sharp", "t-depth", "t-blur", "defines-USE_BLUR"
15781
15781
  view: new $(),
15782
15782
  target: new $(),
15783
15783
  q: new at(),
15784
- virtualCamera: new Lt(),
15784
+ virtualCamera: new Dt(),
15785
15785
  textureMatrix: new Ie()
15786
15786
  }, p = new Yt(
15787
15787
  t.resolution,
@@ -15789,7 +15789,7 @@ const kp = ["texture-matrix", "t-sharp", "t-depth", "t-blur", "defines-USE_BLUR"
15789
15789
  {
15790
15790
  minFilter: xt,
15791
15791
  magFilter: xt,
15792
- type: Dt,
15792
+ type: Ot,
15793
15793
  depthBuffer: !0,
15794
15794
  depthTexture: new Ea(
15795
15795
  t.resolution,
@@ -15802,7 +15802,7 @@ const kp = ["texture-matrix", "t-sharp", "t-depth", "t-blur", "defines-USE_BLUR"
15802
15802
  {
15803
15803
  minFilter: xt,
15804
15804
  magFilter: xt,
15805
- type: Dt
15805
+ type: Ot
15806
15806
  }
15807
15807
  );
15808
15808
  function v(g, b, x, M) {
@@ -15983,7 +15983,8 @@ function ta(a, e, t) {
15983
15983
  const s = t.width / 2, i = t.height / 2;
15984
15984
  return [
15985
15985
  (Number.isNaN(n.x) ? 0 : n.x) * s + s,
15986
- -(n.y * i) + i
15986
+ -(n.y * i) + i,
15987
+ n.z
15987
15988
  ];
15988
15989
  }
15989
15990
  function Gp(a, e) {
@@ -16003,14 +16004,14 @@ function Hp(a, e, t, n) {
16003
16004
  function jp(a, e) {
16004
16005
  if (e instanceof _n)
16005
16006
  return e.zoom;
16006
- if (e instanceof Lt) {
16007
+ if (e instanceof Dt) {
16007
16008
  const t = Rs.setFromMatrixPosition(a.matrixWorld), n = jo.setFromMatrixPosition(e.matrixWorld), s = e.fov * Math.PI / 180, i = t.distanceTo(n);
16008
16009
  return 1 / (2 * Math.tan(s / 2) * i);
16009
16010
  } else
16010
16011
  return 1;
16011
16012
  }
16012
16013
  function Vp(a, e, t) {
16013
- if (e instanceof Lt || e instanceof _n) {
16014
+ if (e instanceof Dt || e instanceof _n) {
16014
16015
  const n = Rs.setFromMatrixPosition(a.matrixWorld), s = jo.setFromMatrixPosition(e.matrixWorld), i = n.distanceTo(s), o = (t[1] - t[0]) / (e.far - e.near), r = t[1] - o * e.far;
16015
16016
  return Math.round(o * i + r);
16016
16017
  }
@@ -16057,7 +16058,7 @@ const Yp = /* @__PURE__ */ ((a) => (e) => _l(e, a))([1, -1, 1, 1, 1, -1, 1, 1, 1
16057
16058
  sprite: M,
16058
16059
  occlude: R,
16059
16060
  zIndexRange: w
16060
- } = Le(n), { renderer: E, scene: _, camera: T, raycaster: y, sizes: A } = xe(), C = Pe(() => document.createElement(u.value)), N = ge([0, 0]), U = ge(0), V = ge(), Y = Pe(() => d.value ? {
16061
+ } = Le(n), { renderer: E, scene: _, camera: T, raycaster: y, sizes: A } = xe(), C = Pe(() => document.createElement(u.value)), N = ge([0, 0, 0]), U = ge(0), V = ge(), Y = Pe(() => d.value ? {
16061
16062
  position: "absolute",
16062
16063
  top: 0,
16063
16064
  left: 0,
@@ -16065,8 +16066,7 @@ const Yp = /* @__PURE__ */ ((a) => (e) => _l(e, a))([1, -1, 1, 1, 1, -1, 1, 1, 1
16065
16066
  height: `${A.height.value}px`,
16066
16067
  transformStyle: "preserve-3d",
16067
16068
  pointerEvents: "none",
16068
- zIndex: 2,
16069
- willChange: "transform"
16069
+ zIndex: 2
16070
16070
  } : {
16071
16071
  position: "absolute",
16072
16072
  transform: b.value ? "translate3d(-50%,-50%,0)" : "none",
@@ -16077,8 +16077,7 @@ const Yp = /* @__PURE__ */ ((a) => (e) => _l(e, a))([1, -1, 1, 1, 1, -1, 1, 1, 1
16077
16077
  height: `${A.height.value}px`
16078
16078
  },
16079
16079
  zIndex: 2,
16080
- ...Object.assign({}, o.style),
16081
- willChange: "transform"
16080
+ ...Object.assign({}, o.style)
16082
16081
  }), ee = Pe(() => ({
16083
16082
  position: "absolute",
16084
16083
  pointerEvents: x.value
@@ -16136,7 +16135,7 @@ const Yp = /* @__PURE__ */ ((a) => (e) => _l(e, a))([1, -1, 1, 1, 1, -1, 1, 1, 1
16136
16135
  width: A.width.value || 0,
16137
16136
  height: A.height.value || 0
16138
16137
  });
16139
- if (d.value || Math.abs(U.value - T.value.zoom) > m.value || Math.abs(N.value[0] - H[0]) > m.value || Math.abs(N.value[1] - H[1]) > m.value) {
16138
+ if (d.value || Math.abs(U.value - T.value.zoom) > m.value || Math.abs(N.value[0] - H[0]) > m.value || Math.abs(N.value[1] - H[1]) > m.value || Math.abs(N.value[2] - H[2]) > m.value) {
16140
16139
  const j = Gp(r.value, T.value);
16141
16140
  let K = !1;
16142
16141
  te.value && (Array.isArray(R == null ? void 0 : R.value) ? K = R == null ? void 0 : R.value : (R == null ? void 0 : R.value) !== "blending" && (K = [_.value]));
@@ -16153,16 +16152,16 @@ const Yp = /* @__PURE__ */ ((a) => (e) => _l(e, a))([1, -1, 1, 1, 1, -1, 1, 1, 1
16153
16152
  fe.value = !j;
16154
16153
  se !== fe.value && (s("onOcclude", !fe.value), C.value.style.display = fe.value ? "block" : "none");
16155
16154
  const ie = Math.floor(w.value[0] / 2), G = R != null && R.value ? te.value ? [w.value[0], ie] : [ie - 1, 0] : w.value;
16156
- if (C.value.style.zIndex = `${Vp(r.value, T.value, G)}`, C.value.style.willChange = "transform", d.value) {
16155
+ if (C.value.style.zIndex = `${Vp(r.value, T.value, G)}`, d.value) {
16157
16156
  const [k, oe] = [
16158
16157
  A.width.value / 2,
16159
16158
  A.height.value / 2
16160
- ], me = T.value.projectionMatrix.elements[5] * oe, { isOrthographicCamera: Re, top: Ke, left: He, bottom: bt, right: cn } = T.value, En = Yp(T.value.matrixWorldInverse), kt = Re ? `scale(${me})translate(${To(-(cn + He) / 2)}px,${To((Ke + bt) / 2)}px)` : `translateZ(${me}px)`;
16159
+ ], me = T.value.projectionMatrix.elements[5] * oe, { isOrthographicCamera: Re, top: Ke, left: He, bottom: bt, right: cn } = T.value, En = Yp(T.value.matrixWorldInverse), Lt = Re ? `scale(${me})translate(${To(-(cn + He) / 2)}px,${To((Ke + bt) / 2)}px)` : `translateZ(${me}px)`;
16161
16160
  let vt = r.value.matrixWorld;
16162
16161
  if (M.value && (vt = T.value.matrixWorldInverse.clone().transpose().copyPosition(vt).scale(r.value.scale), vt.elements[3] = vt.elements[7] = vt.elements[11] = 0, vt.elements[15] = 1), C.value.style.width = `${A.width.value}px`, C.value.style.height = `${A.height.value}px`, C.value.style.perspective = Re ? "" : `${me}px`, (O = V.value) != null && O.el && ((z = V.value) != null && z.children) && Array.isArray(V.value.children)) {
16163
- V.value.el.style.willChange = "transform", V.value.el.style.transform = `${kt}${En}translate(${k}px,${oe}px)`;
16164
- const Rt = V.value.children[0];
16165
- Rt && Rt.el && (Rt.el.style.willChange = "transform", Rt.el.style.transform = Wp(
16162
+ V.value.el.style.transform = `${Lt}${En}translate(${k}px,${oe}px)`;
16163
+ const kt = V.value.children[0];
16164
+ kt && kt.el && (kt.el.style.transform = Wp(
16166
16165
  vt,
16167
16166
  1 / (((v == null ? void 0 : v.value) || 10) / 400)
16168
16167
  ));
@@ -18447,7 +18446,7 @@ const Jv = /* @__PURE__ */ ue({
18447
18446
  }, { immediate: !0, deep: !0 }), J(() => Co().default, (g) => {
18448
18447
  var b;
18449
18448
  if (g && (c = g(), Array.isArray(c) && c.length > 0)) {
18450
- o({ EnvironmentScene: ia }), f.value = new oa(s.resolution), f.value.texture.type = Dt, u = new ra(s.near, s.far, f.value), v(f.value);
18449
+ o({ EnvironmentScene: ia }), f.value = new oa(s.resolution), f.value.texture.type = Ot, u = new ra(s.near, s.far, f.value), v(f.value);
18451
18450
  return;
18452
18451
  }
18453
18452
  (b = f.value) == null || b.dispose(), f.value = null, v();