@tresjs/cientos 3.0.0 → 3.0.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.
- package/dist/trescientos.js +199 -200
- package/dist/trescientos.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/trescientos.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @tresjs/cientos
|
|
3
|
-
* version: v3.0.
|
|
3
|
+
* version: v3.0.1
|
|
4
4
|
* (c) 2023
|
|
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/)
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
var op = Object.defineProperty;
|
|
9
9
|
var ap = (f, t, n) => t in f ? op(f, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : f[t] = n;
|
|
10
10
|
var Io = (f, t, n) => (ap(f, typeof t != "symbol" ? t + "" : t, n), n);
|
|
11
|
-
import { defineComponent as ke, toRefs as Be, useSlots as lp, computed as Bt, shallowRef as Ue, withAsyncContext as Mr, toValue as Pn, watchEffect as ds, unref as B, openBlock as xe, createElementBlock as Pe, createCommentVNode as Rn, renderSlot as Je, ref as
|
|
11
|
+
import { defineComponent as ke, toRefs as Be, useSlots as lp, computed as Bt, shallowRef as Ue, withAsyncContext as Mr, toValue as Pn, watchEffect as ds, unref as B, openBlock as xe, createElementBlock as Pe, createCommentVNode as Rn, renderSlot as Je, ref as fe, shallowReactive as cp, createElementVNode as ve, mergeProps as Qe, Fragment as hp, renderList as pp, resolveComponent as da, createVNode as up, getCurrentScope as dp, onScopeDispose as mp, getCurrentInstance as Ml, onMounted as ma, nextTick as fp, toRef as vp, readonly as _p, customRef as gp, watch as ft, reactive as rl, createBlock as Ll, onUnmounted as $s, normalizeProps as bp, guardReactiveProps as wp } from "vue";
|
|
12
12
|
import { TrianglesDrawMode as yp, TriangleFanDrawMode as ta, TriangleStripDrawMode as Dl, Object3D as On, Raycaster as Ol, Vector3 as Q, Quaternion as ze, Euler as ps, Matrix4 as Oe, MeshBasicMaterial as us, DoubleSide as fa, LineBasicMaterial as va, CylinderGeometry as Ft, BoxGeometry as rs, BufferGeometry as pn, Float32BufferAttribute as hn, Mesh as J, Line as Ce, OctahedronGeometry as os, PlaneGeometry as Sn, TorusGeometry as vr, SphereGeometry as xp, Color as $e, EventDispatcher as Rl, MOUSE as Mn, TOUCH as qt, Spherical as Ar, Vector2 as gt, PerspectiveCamera as Li, OrthographicCamera as js, Loader as Lr, LoaderUtils as Qt, FileLoader as Ks, SpotLight as Il, PointLight as na, DirectionalLight as Vl, MeshPhysicalMaterial as Vn, InstancedMesh as Ep, REVISION as Cp, TextureLoader as Fl, ImageBitmapLoader as Pp, BufferAttribute as Di, InterleavedBuffer as Tp, InterleavedBufferAttribute as Ap, LinearFilter as kr, LinearMipmapLinearFilter as zl, RepeatWrapping as Ii, PointsMaterial as kp, Material as Vo, MeshStandardMaterial as _a, PropertyBinding as Vi, SkinnedMesh as Nl, LineSegments as Sp, LineLoop as Mp, Points as Lp, Group as Oi, MathUtils as bt, Skeleton as Ul, InterpolateLinear as Bl, AnimationClip as Hl, Bone as sa, NearestFilter as Dp, NearestMipmapNearestFilter as Op, LinearMipmapNearestFilter as Rp, NearestMipmapLinearFilter as Ip, ClampToEdgeWrapping as ia, MirroredRepeatWrapping as Vp, InterpolateDiscrete as Fp, FrontSide as zp, Texture as Sr, VectorKeyframeTrack as jl, QuaternionKeyframeTrack as ra, NumberKeyframeTrack as Gl, Box3 as Kl, Sphere as $l, Interpolant as Np, ExtrudeGeometry as Up, Vector4 as zi, Curve as Bp, MeshPhongMaterial as Fo, MeshLambertMaterial as Hp, EquirectangularReflectionMapping as Yl, AmbientLight as jp, Uint16BufferAttribute as Gp, Matrix3 as Kp, ShapePath as $p, DataTextureLoader as Yp, HalfFloatType as _r, FloatType as zo, DataUtils as gr, AnimationMixer as Xp, CubeReflectionMapping as Zp, SRGBColorSpace as qp, CubeTextureLoader as Qp, WebGLRenderTarget as ol, MeshDepthMaterial as Wp, ShaderMaterial as al, DefaultLoadingManager as br, QuadraticBezierCurve3 as Jp } from "three";
|
|
13
13
|
import { useTresContext as wt, useRenderLoop as Lt, useLoader as ga, useTexture as eu, useLogger as tu } from "@tresjs/core";
|
|
14
14
|
function nu(f, t) {
|
|
@@ -4973,7 +4973,7 @@ function zd() {
|
|
|
4973
4973
|
}
|
|
4974
4974
|
}
|
|
4975
4975
|
}
|
|
4976
|
-
const Nd = ["args", "center"],
|
|
4976
|
+
const Nd = ["args", "center"], gf = /* @__PURE__ */ ke({
|
|
4977
4977
|
__name: "Text3D",
|
|
4978
4978
|
props: {
|
|
4979
4979
|
font: {},
|
|
@@ -5048,8 +5048,8 @@ const Nd = ["args", "center"], bf = /* @__PURE__ */ ke({
|
|
|
5048
5048
|
], 512)) : Rn("", !0);
|
|
5049
5049
|
}
|
|
5050
5050
|
});
|
|
5051
|
-
function
|
|
5052
|
-
const n =
|
|
5051
|
+
function bf(f, t) {
|
|
5052
|
+
const n = fe(t), i = new Xp(n.value), o = cp({});
|
|
5053
5053
|
f.forEach((c) => {
|
|
5054
5054
|
const p = i.clipAction(c, n.value);
|
|
5055
5055
|
o[c.name] = p;
|
|
@@ -5087,7 +5087,7 @@ async function Ud({
|
|
|
5087
5087
|
), v = c ? d[0] : d;
|
|
5088
5088
|
return v && (v.mapping = c ? Zp : Yl, v.colorSpace = qp), a.value && (a.value.environment = v, n && (a.value.background = v), t && (a.value.backgroundBlurriness = t | 0)), v;
|
|
5089
5089
|
}
|
|
5090
|
-
const
|
|
5090
|
+
const wf = ke({
|
|
5091
5091
|
name: "Environment",
|
|
5092
5092
|
props: ["background", "blur", "files", "encoding", "path", "preset"],
|
|
5093
5093
|
async setup(f, { expose: t }) {
|
|
@@ -5095,7 +5095,7 @@ const yf = ke({
|
|
|
5095
5095
|
return t({ getTexture: () => n }), n = await Ud(f), () => {
|
|
5096
5096
|
};
|
|
5097
5097
|
}
|
|
5098
|
-
}), Bd = ["position", "a-scale"], Hd = ["size", "size-attenuation", "transparent", "alpha-test", "alpha-map"],
|
|
5098
|
+
}), Bd = ["position", "a-scale"], Hd = ["size", "size-attenuation", "transparent", "alpha-test", "alpha-map"], yf = /* @__PURE__ */ ke({
|
|
5099
5099
|
__name: "Stars",
|
|
5100
5100
|
props: {
|
|
5101
5101
|
size: { default: 0.1 },
|
|
@@ -5108,7 +5108,7 @@ const yf = ke({
|
|
|
5108
5108
|
alphaMap: { default: null }
|
|
5109
5109
|
},
|
|
5110
5110
|
setup(f, { expose: t }) {
|
|
5111
|
-
const n = f, i =
|
|
5111
|
+
const n = f, i = fe(), o = fe(), { radius: a, depth: c, count: p, size: d, sizeAttenuation: v, transparent: b, alphaMap: _, alphaTest: y } = Be(n), E = () => {
|
|
5112
5112
|
let P = a.value + c.value;
|
|
5113
5113
|
const M = Bt(() => c.value / p.value), N = [], V = Array.from(
|
|
5114
5114
|
{ length: p.value },
|
|
@@ -5128,11 +5128,11 @@ const yf = ke({
|
|
|
5128
5128
|
ref_key: "starsRef",
|
|
5129
5129
|
ref: S
|
|
5130
5130
|
}, [
|
|
5131
|
-
|
|
5131
|
+
ve("TresBufferGeometry", {
|
|
5132
5132
|
position: [i.value, 3],
|
|
5133
5133
|
"a-scale": [o.value, 1]
|
|
5134
5134
|
}, null, 8, Bd),
|
|
5135
|
-
|
|
5135
|
+
ve("TresPointsMaterial", {
|
|
5136
5136
|
size: B(d),
|
|
5137
5137
|
"size-attenuation": B(v),
|
|
5138
5138
|
transparent: B(b),
|
|
@@ -5141,7 +5141,7 @@ const yf = ke({
|
|
|
5141
5141
|
}, null, 8, Hd)
|
|
5142
5142
|
], 512));
|
|
5143
5143
|
}
|
|
5144
|
-
}), jd = ["size", "color", "alpha-map", "map", "opacity", "alpha-test", "depth-write", "transparent", "size-attenuation"], Gd = ["position", "velocity"],
|
|
5144
|
+
}), jd = ["size", "color", "alpha-map", "map", "opacity", "alpha-test", "depth-write", "transparent", "size-attenuation"], Gd = ["position", "velocity"], xf = /* @__PURE__ */ ke({
|
|
5145
5145
|
__name: "Precipitation",
|
|
5146
5146
|
props: {
|
|
5147
5147
|
size: { default: 0.1 },
|
|
@@ -5201,7 +5201,7 @@ const yf = ke({
|
|
|
5201
5201
|
P.value.attributes.position.needsUpdate = !0;
|
|
5202
5202
|
}
|
|
5203
5203
|
}), (L, F) => (xe(), Pe("TresPoints", null, [
|
|
5204
|
-
|
|
5204
|
+
ve("TresPointsMaterial", {
|
|
5205
5205
|
size: B(n),
|
|
5206
5206
|
color: B(o),
|
|
5207
5207
|
"alpha-map": B(a),
|
|
@@ -5212,7 +5212,7 @@ const yf = ke({
|
|
|
5212
5212
|
transparent: B(b),
|
|
5213
5213
|
"size-attenuation": B(_)
|
|
5214
5214
|
}, null, 8, jd),
|
|
5215
|
-
|
|
5215
|
+
ve("TresBufferGeometry", {
|
|
5216
5216
|
ref_key: "geometryRef",
|
|
5217
5217
|
ref: P,
|
|
5218
5218
|
position: [B(M), 3],
|
|
@@ -5220,7 +5220,7 @@ const yf = ke({
|
|
|
5220
5220
|
}, null, 8, Gd)
|
|
5221
5221
|
]));
|
|
5222
5222
|
}
|
|
5223
|
-
}), Kd = ["position"], $d = ["position"], Yd = ["scale"], Xd = ["map", "depth-test", "color-space", "color", "opacity"],
|
|
5223
|
+
}), Kd = ["position"], $d = ["position"], Yd = ["scale"], Xd = ["map", "depth-test", "color-space", "color", "opacity"], Ef = /* @__PURE__ */ ke({
|
|
5224
5224
|
__name: "Smoke",
|
|
5225
5225
|
props: {
|
|
5226
5226
|
color: { default: "#ffffff" },
|
|
@@ -5257,7 +5257,7 @@ const yf = ke({
|
|
|
5257
5257
|
ref_key: "smokeRef",
|
|
5258
5258
|
ref: E
|
|
5259
5259
|
}, F.$attrs), [
|
|
5260
|
-
|
|
5260
|
+
ve("TresGroup", {
|
|
5261
5261
|
ref_key: "groupRef",
|
|
5262
5262
|
ref: S,
|
|
5263
5263
|
position: [0, 0, B(p) / 2 * B(c)]
|
|
@@ -5266,11 +5266,11 @@ const yf = ke({
|
|
|
5266
5266
|
key: `${q}`,
|
|
5267
5267
|
position: [U, K, -q * B(c)]
|
|
5268
5268
|
}, [
|
|
5269
|
-
|
|
5269
|
+
ve("TresPlaneGeometry", {
|
|
5270
5270
|
scale: [k, k, k],
|
|
5271
5271
|
rotation: [0, 0, 0]
|
|
5272
5272
|
}, null, 8, Yd),
|
|
5273
|
-
|
|
5273
|
+
ve("TresMeshStandardMaterial", {
|
|
5274
5274
|
map: B(N),
|
|
5275
5275
|
"depth-test": B(b),
|
|
5276
5276
|
"color-space": C.value,
|
|
@@ -5283,7 +5283,7 @@ const yf = ke({
|
|
|
5283
5283
|
], 8, Kd)
|
|
5284
5284
|
], 16));
|
|
5285
5285
|
}
|
|
5286
|
-
}),
|
|
5286
|
+
}), Cf = /* @__PURE__ */ ke({
|
|
5287
5287
|
__name: "Levioso",
|
|
5288
5288
|
props: {
|
|
5289
5289
|
speed: { default: 1 },
|
|
@@ -5296,7 +5296,7 @@ const yf = ke({
|
|
|
5296
5296
|
t({
|
|
5297
5297
|
value: i
|
|
5298
5298
|
});
|
|
5299
|
-
const { onLoop: o } = Lt(), a =
|
|
5299
|
+
const { onLoop: o } = Lt(), a = fe(Math.random() * 1e4);
|
|
5300
5300
|
return o(({ elapsed: c }) => {
|
|
5301
5301
|
var v, b;
|
|
5302
5302
|
if (!i.value)
|
|
@@ -5312,7 +5312,7 @@ const yf = ke({
|
|
|
5312
5312
|
Je(c.$slots, "default")
|
|
5313
5313
|
], 16));
|
|
5314
5314
|
}
|
|
5315
|
-
}), Zd = ["geometry"], qd = ["map", "opacity", "depth-write"], Qd = ["args"], Wd = ["rotation", "args"],
|
|
5315
|
+
}), Zd = ["geometry"], qd = ["map", "opacity", "depth-write"], Qd = ["args"], Wd = ["rotation", "args"], Pf = /* @__PURE__ */ ke({
|
|
5316
5316
|
__name: "ContactShadows",
|
|
5317
5317
|
props: {
|
|
5318
5318
|
opacity: { default: 1 },
|
|
@@ -5375,11 +5375,11 @@ const yf = ke({
|
|
|
5375
5375
|
ref_key: "groupRef",
|
|
5376
5376
|
ref: i
|
|
5377
5377
|
}, L.$attrs), [
|
|
5378
|
-
|
|
5378
|
+
ve("TresMesh", {
|
|
5379
5379
|
scale: [1, -1, 1],
|
|
5380
5380
|
geometry: B(p)
|
|
5381
5381
|
}, [
|
|
5382
|
-
|
|
5382
|
+
ve("TresMeshBasicMaterial", {
|
|
5383
5383
|
map: B(a).texture,
|
|
5384
5384
|
opacity: L.opacity,
|
|
5385
5385
|
"depth-write": L.depthWrite,
|
|
@@ -5391,14 +5391,13 @@ const yf = ke({
|
|
|
5391
5391
|
key: 0,
|
|
5392
5392
|
args: [o.value]
|
|
5393
5393
|
}, null, 8, Qd)) : Rn("", !0),
|
|
5394
|
-
|
|
5394
|
+
ve("TresOrthographicCamera", {
|
|
5395
5395
|
ref_key: "shadowCamera",
|
|
5396
5396
|
ref: o,
|
|
5397
5397
|
position: [0, 0, 0],
|
|
5398
5398
|
rotation: [Math.PI / 2, 0, 0],
|
|
5399
5399
|
args: [-y.value / 2, y.value / 2, E.value / 2, -E.value / 2, 0, L.far]
|
|
5400
|
-
}, null, 8, Wd)
|
|
5401
|
-
Jd
|
|
5400
|
+
}, null, 8, Wd)
|
|
5402
5401
|
], 16);
|
|
5403
5402
|
};
|
|
5404
5403
|
}
|
|
@@ -5409,7 +5408,7 @@ function cc(f) {
|
|
|
5409
5408
|
function Ut(f) {
|
|
5410
5409
|
return typeof f == "function" ? f() : B(f);
|
|
5411
5410
|
}
|
|
5412
|
-
const
|
|
5411
|
+
const Jd = typeof window < "u", In = () => {
|
|
5413
5412
|
};
|
|
5414
5413
|
function hc(f, t) {
|
|
5415
5414
|
function n(...i) {
|
|
@@ -5419,7 +5418,7 @@ function hc(f, t) {
|
|
|
5419
5418
|
}
|
|
5420
5419
|
return n;
|
|
5421
5420
|
}
|
|
5422
|
-
function
|
|
5421
|
+
function em(f, t = {}) {
|
|
5423
5422
|
let n, i, o = In;
|
|
5424
5423
|
const a = (p) => {
|
|
5425
5424
|
clearTimeout(p), o(), o = In;
|
|
@@ -5435,7 +5434,7 @@ function tm(f, t = {}) {
|
|
|
5435
5434
|
});
|
|
5436
5435
|
};
|
|
5437
5436
|
}
|
|
5438
|
-
function
|
|
5437
|
+
function tm(f, t = !0, n = !0, i = !1) {
|
|
5439
5438
|
let o = 0, a, c = !0, p = In, d;
|
|
5440
5439
|
const v = () => {
|
|
5441
5440
|
a && (clearTimeout(a), a = void 0, p(), p = In);
|
|
@@ -5449,33 +5448,33 @@ function nm(f, t = !0, n = !0, i = !1) {
|
|
|
5449
5448
|
})), !n && !a && (a = setTimeout(() => c = !0, y)), c = !1, d);
|
|
5450
5449
|
};
|
|
5451
5450
|
}
|
|
5452
|
-
function
|
|
5451
|
+
function nm(...f) {
|
|
5453
5452
|
if (f.length !== 1)
|
|
5454
5453
|
return vp(...f);
|
|
5455
5454
|
const t = f[0];
|
|
5456
|
-
return typeof t == "function" ? _p(gp(() => ({ get: t, set: In }))) :
|
|
5455
|
+
return typeof t == "function" ? _p(gp(() => ({ get: t, set: In }))) : fe(t);
|
|
5457
5456
|
}
|
|
5458
|
-
function
|
|
5457
|
+
function sm(f, t = 200, n = {}) {
|
|
5459
5458
|
return hc(
|
|
5460
|
-
|
|
5459
|
+
em(t, n),
|
|
5461
5460
|
f
|
|
5462
5461
|
);
|
|
5463
5462
|
}
|
|
5464
|
-
function
|
|
5463
|
+
function im(f, t = 200, n = !1, i = !0, o = !1) {
|
|
5465
5464
|
return hc(
|
|
5466
|
-
|
|
5465
|
+
tm(t, n, i, o),
|
|
5467
5466
|
f
|
|
5468
5467
|
);
|
|
5469
5468
|
}
|
|
5470
|
-
function
|
|
5469
|
+
function rm(f, t = !0) {
|
|
5471
5470
|
Ml() ? ma(f) : t ? f() : fp(f);
|
|
5472
5471
|
}
|
|
5473
|
-
function
|
|
5472
|
+
function om(f) {
|
|
5474
5473
|
var t;
|
|
5475
5474
|
const n = Ut(f);
|
|
5476
5475
|
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
5477
5476
|
}
|
|
5478
|
-
const Ys =
|
|
5477
|
+
const Ys = Jd ? window : void 0;
|
|
5479
5478
|
function Ge(...f) {
|
|
5480
5479
|
let t, n, i, o;
|
|
5481
5480
|
if (typeof f[0] == "string" || Array.isArray(f[0]) ? ([n, i, o] = f, t = Ys) : [t, n, i, o] = f, !t)
|
|
@@ -5484,7 +5483,7 @@ function Ge(...f) {
|
|
|
5484
5483
|
const a = [], c = () => {
|
|
5485
5484
|
a.forEach((b) => b()), a.length = 0;
|
|
5486
5485
|
}, p = (b, _, y, E) => (b.addEventListener(_, y, E), () => b.removeEventListener(_, y, E)), d = ft(
|
|
5487
|
-
() => [
|
|
5486
|
+
() => [om(t), Ut(o)],
|
|
5488
5487
|
([b, _]) => {
|
|
5489
5488
|
c(), b && a.push(
|
|
5490
5489
|
...n.flatMap((y) => i.map((E) => p(b, y, E, _)))
|
|
@@ -5496,7 +5495,7 @@ function Ge(...f) {
|
|
|
5496
5495
|
};
|
|
5497
5496
|
return cc(v), v;
|
|
5498
5497
|
}
|
|
5499
|
-
function
|
|
5498
|
+
function am(f) {
|
|
5500
5499
|
return typeof f == "function" ? f : typeof f == "string" ? (t) => t.key === f : Array.isArray(f) ? (t) => f.includes(t.key) : () => !0;
|
|
5501
5500
|
}
|
|
5502
5501
|
function ls(...f) {
|
|
@@ -5507,33 +5506,33 @@ function ls(...f) {
|
|
|
5507
5506
|
eventName: a = "keydown",
|
|
5508
5507
|
passive: c = !1,
|
|
5509
5508
|
dedupe: p = !1
|
|
5510
|
-
} = i, d =
|
|
5509
|
+
} = i, d = am(t);
|
|
5511
5510
|
return Ge(o, a, (b) => {
|
|
5512
5511
|
b.repeat && Ut(p) || d(b) && n(b);
|
|
5513
5512
|
}, c);
|
|
5514
5513
|
}
|
|
5515
|
-
function
|
|
5516
|
-
const f =
|
|
5514
|
+
function lm() {
|
|
5515
|
+
const f = fe(!1);
|
|
5517
5516
|
return Ml() && ma(() => {
|
|
5518
5517
|
f.value = !0;
|
|
5519
5518
|
}), f;
|
|
5520
5519
|
}
|
|
5521
|
-
function
|
|
5522
|
-
const t =
|
|
5520
|
+
function cm(f) {
|
|
5521
|
+
const t = lm();
|
|
5523
5522
|
return Bt(() => (t.value, !!f()));
|
|
5524
5523
|
}
|
|
5525
|
-
function
|
|
5526
|
-
const { window: n = Ys } = t, i =
|
|
5524
|
+
function hm(f, t = {}) {
|
|
5525
|
+
const { window: n = Ys } = t, i = cm(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
|
|
5527
5526
|
let o;
|
|
5528
|
-
const a =
|
|
5527
|
+
const a = fe(!1), c = () => {
|
|
5529
5528
|
o && ("removeEventListener" in o ? o.removeEventListener("change", p) : o.removeListener(p));
|
|
5530
5529
|
}, p = () => {
|
|
5531
|
-
i.value && (c(), o = n.matchMedia(
|
|
5530
|
+
i.value && (c(), o = n.matchMedia(nm(f).value), a.value = !!(o != null && o.matches), o && ("addEventListener" in o ? o.addEventListener("change", p) : o.addListener(p)));
|
|
5532
5531
|
};
|
|
5533
5532
|
return ds(p), cc(() => c()), a;
|
|
5534
5533
|
}
|
|
5535
5534
|
const wl = 1;
|
|
5536
|
-
function
|
|
5535
|
+
function pm(f, t = {}) {
|
|
5537
5536
|
const {
|
|
5538
5537
|
throttle: n = 0,
|
|
5539
5538
|
idle: i = 200,
|
|
@@ -5550,7 +5549,7 @@ function um(f, t = {}) {
|
|
|
5550
5549
|
passive: !0
|
|
5551
5550
|
},
|
|
5552
5551
|
behavior: d = "auto"
|
|
5553
|
-
} = t, v =
|
|
5552
|
+
} = t, v = fe(0), b = fe(0), _ = Bt({
|
|
5554
5553
|
get() {
|
|
5555
5554
|
return v.value;
|
|
5556
5555
|
},
|
|
@@ -5574,7 +5573,7 @@ function um(f, t = {}) {
|
|
|
5574
5573
|
behavior: Ut(d)
|
|
5575
5574
|
}));
|
|
5576
5575
|
}
|
|
5577
|
-
const S =
|
|
5576
|
+
const S = fe(!1), P = rl({
|
|
5578
5577
|
left: !0,
|
|
5579
5578
|
right: !1,
|
|
5580
5579
|
top: !0,
|
|
@@ -5586,7 +5585,7 @@ function um(f, t = {}) {
|
|
|
5586
5585
|
bottom: !1
|
|
5587
5586
|
}), N = (L) => {
|
|
5588
5587
|
S.value && (S.value = !1, M.left = !1, M.right = !1, M.top = !1, M.bottom = !1, o(L));
|
|
5589
|
-
}, V =
|
|
5588
|
+
}, V = sm(N, n + i), I = (L) => {
|
|
5590
5589
|
const F = L === window ? L.document.documentElement : L === document ? L.documentElement : L, { display: A, flexDirection: k } = getComputedStyle(F), U = F.scrollLeft;
|
|
5591
5590
|
M.left = U < v.value, M.right = U > v.value;
|
|
5592
5591
|
const K = Math.abs(U) <= 0 + (c.left || 0), $ = Math.abs(U) + F.clientWidth >= F.scrollWidth - (c.right || 0) - wl;
|
|
@@ -5602,7 +5601,7 @@ function um(f, t = {}) {
|
|
|
5602
5601
|
return Ge(
|
|
5603
5602
|
f,
|
|
5604
5603
|
"scroll",
|
|
5605
|
-
n ?
|
|
5604
|
+
n ? im(C, n, !0, !1) : C,
|
|
5606
5605
|
p
|
|
5607
5606
|
), Ge(
|
|
5608
5607
|
f,
|
|
@@ -5621,13 +5620,13 @@ function um(f, t = {}) {
|
|
|
5621
5620
|
}
|
|
5622
5621
|
};
|
|
5623
5622
|
}
|
|
5624
|
-
const
|
|
5623
|
+
const um = {
|
|
5625
5624
|
page: (f) => [f.pageX, f.pageY],
|
|
5626
5625
|
client: (f) => [f.clientX, f.clientY],
|
|
5627
5626
|
screen: (f) => [f.screenX, f.screenY],
|
|
5628
5627
|
movement: (f) => f instanceof Touch ? null : [f.movementX, f.movementY]
|
|
5629
5628
|
};
|
|
5630
|
-
function
|
|
5629
|
+
function dm(f = {}) {
|
|
5631
5630
|
const {
|
|
5632
5631
|
type: t = "page",
|
|
5633
5632
|
touch: n = !0,
|
|
@@ -5636,7 +5635,7 @@ function mm(f = {}) {
|
|
|
5636
5635
|
window: a = Ys,
|
|
5637
5636
|
target: c = a,
|
|
5638
5637
|
eventFilter: p
|
|
5639
|
-
} = f, d =
|
|
5638
|
+
} = f, d = fe(o.x), v = fe(o.y), b = fe(null), _ = typeof t == "function" ? t : um[t], y = (N) => {
|
|
5640
5639
|
const V = _(N);
|
|
5641
5640
|
V && ([d.value, v.value] = V, b.value = "mouse");
|
|
5642
5641
|
}, E = (N) => {
|
|
@@ -5653,13 +5652,13 @@ function mm(f = {}) {
|
|
|
5653
5652
|
sourceType: b
|
|
5654
5653
|
};
|
|
5655
5654
|
}
|
|
5656
|
-
function
|
|
5655
|
+
function mm({ window: f = Ys } = {}) {
|
|
5657
5656
|
if (!f)
|
|
5658
5657
|
return {
|
|
5659
|
-
x:
|
|
5660
|
-
y:
|
|
5658
|
+
x: fe(0),
|
|
5659
|
+
y: fe(0)
|
|
5661
5660
|
};
|
|
5662
|
-
const t =
|
|
5661
|
+
const t = fe(f.scrollX), n = fe(f.scrollY);
|
|
5663
5662
|
return Ge(
|
|
5664
5663
|
f,
|
|
5665
5664
|
"scroll",
|
|
@@ -5679,16 +5678,16 @@ function pc(f = {}) {
|
|
|
5679
5678
|
initialHeight: i = 1 / 0,
|
|
5680
5679
|
listenOrientation: o = !0,
|
|
5681
5680
|
includeScrollbar: a = !0
|
|
5682
|
-
} = f, c =
|
|
5681
|
+
} = f, c = fe(n), p = fe(i), d = () => {
|
|
5683
5682
|
t && (a ? (c.value = t.innerWidth, p.value = t.innerHeight) : (c.value = t.document.documentElement.clientWidth, p.value = t.document.documentElement.clientHeight));
|
|
5684
5683
|
};
|
|
5685
|
-
if (d(),
|
|
5686
|
-
const v =
|
|
5684
|
+
if (d(), rm(d), Ge("resize", d, { passive: !0 }), o) {
|
|
5685
|
+
const v = hm("(orientation: portrait)");
|
|
5687
5686
|
ft(v, () => d());
|
|
5688
5687
|
}
|
|
5689
5688
|
return { width: c, height: p };
|
|
5690
5689
|
}
|
|
5691
|
-
const
|
|
5690
|
+
const Tf = /* @__PURE__ */ ke({
|
|
5692
5691
|
__name: "MouseParallax",
|
|
5693
5692
|
props: {
|
|
5694
5693
|
disabled: { type: Boolean, default: !1 },
|
|
@@ -5696,7 +5695,7 @@ const Af = /* @__PURE__ */ ke({
|
|
|
5696
5695
|
ease: { default: 0.1 }
|
|
5697
5696
|
},
|
|
5698
5697
|
setup(f) {
|
|
5699
|
-
const t = f, { camera: n } = wt(), { disabled: i, factor: o, ease: a } = Be(t), { x: c, y: p } =
|
|
5698
|
+
const t = f, { camera: n } = wt(), { disabled: i, factor: o, ease: a } = Be(t), { x: c, y: p } = dm(), { width: d, height: v } = pc(), b = fe(), _ = Bt(() => (c.value / d.value - 0.5) * o.value), y = Bt(() => -(p.value / v.value - 0.5) * o.value), { onLoop: E } = Lt();
|
|
5700
5699
|
return E(({ delta: S }) => {
|
|
5701
5700
|
i.value || !b.value || (b.value.position.x += (_.value - b.value.position.x) * a.value * S, b.value.position.y += (y.value - b.value.position.y) * a.value * S);
|
|
5702
5701
|
}), ft(
|
|
@@ -5711,17 +5710,17 @@ const Af = /* @__PURE__ */ ke({
|
|
|
5711
5710
|
}
|
|
5712
5711
|
});
|
|
5713
5712
|
let yr = null;
|
|
5714
|
-
function
|
|
5713
|
+
function fm(f, t) {
|
|
5715
5714
|
return (n) => {
|
|
5716
5715
|
t && t(n), f.draco && (yr || (yr = new Fd()), yr.setDecoderPath(f.decoderPath || "https://www.gstatic.com/draco/versioned/decoders/1.4.3/"), n.setDRACOLoader(yr));
|
|
5717
5716
|
};
|
|
5718
5717
|
}
|
|
5719
|
-
async function
|
|
5718
|
+
async function vm(f, t = {
|
|
5720
5719
|
draco: !1
|
|
5721
5720
|
}, n) {
|
|
5722
|
-
return await ga(Mu, f,
|
|
5721
|
+
return await ga(Mu, f, fm(t, n));
|
|
5723
5722
|
}
|
|
5724
|
-
const
|
|
5723
|
+
const Af = /* @__PURE__ */ ke({
|
|
5725
5724
|
__name: "component",
|
|
5726
5725
|
props: {
|
|
5727
5726
|
path: {},
|
|
@@ -5730,11 +5729,11 @@ const kf = /* @__PURE__ */ ke({
|
|
|
5730
5729
|
},
|
|
5731
5730
|
async setup(f, { expose: t }) {
|
|
5732
5731
|
let n, i;
|
|
5733
|
-
const o = f, a =
|
|
5732
|
+
const o = f, a = fe();
|
|
5734
5733
|
t({
|
|
5735
5734
|
value: a
|
|
5736
5735
|
});
|
|
5737
|
-
const { scene: c } = ([n, i] = Mr(() =>
|
|
5736
|
+
const { scene: c } = ([n, i] = Mr(() => vm(o.path, { draco: o.draco, decoderPath: o.decoderPath })), n = await n, i(), n);
|
|
5738
5737
|
return (p, d) => {
|
|
5739
5738
|
const v = da("primitive");
|
|
5740
5739
|
return xe(), Ll(v, Qe({
|
|
@@ -5745,21 +5744,21 @@ const kf = /* @__PURE__ */ ke({
|
|
|
5745
5744
|
};
|
|
5746
5745
|
}
|
|
5747
5746
|
});
|
|
5748
|
-
async function
|
|
5747
|
+
async function _m(f) {
|
|
5749
5748
|
return await ga(gd, f);
|
|
5750
5749
|
}
|
|
5751
|
-
const
|
|
5750
|
+
const kf = /* @__PURE__ */ ke({
|
|
5752
5751
|
__name: "component",
|
|
5753
5752
|
props: {
|
|
5754
5753
|
path: {}
|
|
5755
5754
|
},
|
|
5756
5755
|
async setup(f, { expose: t }) {
|
|
5757
5756
|
let n, i;
|
|
5758
|
-
const o = f, a =
|
|
5757
|
+
const o = f, a = fe();
|
|
5759
5758
|
t({
|
|
5760
5759
|
value: a
|
|
5761
5760
|
});
|
|
5762
|
-
const c = ([n, i] = Mr(() =>
|
|
5761
|
+
const c = ([n, i] = Mr(() => _m(o.path)), n = await n, i(), n);
|
|
5763
5762
|
return (p, d) => {
|
|
5764
5763
|
const v = da("primitive");
|
|
5765
5764
|
return xe(), Ll(v, Qe({
|
|
@@ -5770,7 +5769,7 @@ const Sf = /* @__PURE__ */ ke({
|
|
|
5770
5769
|
};
|
|
5771
5770
|
}
|
|
5772
5771
|
}), yl = "[TresJS - Cientos ▲ ■ ♥] ";
|
|
5773
|
-
function
|
|
5772
|
+
function gm() {
|
|
5774
5773
|
function f(i, o) {
|
|
5775
5774
|
console.error(`${yl} ${i}`, o || "");
|
|
5776
5775
|
}
|
|
@@ -5786,8 +5785,8 @@ function bm() {
|
|
|
5786
5785
|
};
|
|
5787
5786
|
}
|
|
5788
5787
|
let Xo = 0;
|
|
5789
|
-
function
|
|
5790
|
-
const f =
|
|
5788
|
+
function Sf() {
|
|
5789
|
+
const f = fe(!1), t = fe(0), n = fe([]), { logError: i } = gm();
|
|
5791
5790
|
return new Promise((o) => {
|
|
5792
5791
|
br.onStart = () => {
|
|
5793
5792
|
f.value = !1;
|
|
@@ -5804,7 +5803,7 @@ function Mf() {
|
|
|
5804
5803
|
});
|
|
5805
5804
|
});
|
|
5806
5805
|
}
|
|
5807
|
-
const
|
|
5806
|
+
const bm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "damping-factor", "enable-pan", "key-pan-speed", "keys", "max-azimuth-angle", "min-azimuth-angle", "max-polar-angle", "min-polar-angle", "min-distance", "max-distance", "min-zoom", "max-zoom", "touches", "enable-zoom", "zoom-speed", "enable-rotate", "rotate-speed", "args"], Mf = /* @__PURE__ */ ke({
|
|
5808
5807
|
__name: "OrbitControls",
|
|
5809
5808
|
props: {
|
|
5810
5809
|
makeDefault: { type: Boolean, default: !1 },
|
|
@@ -5856,7 +5855,7 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
5856
5855
|
touches: L,
|
|
5857
5856
|
rotateSpeed: F,
|
|
5858
5857
|
target: A
|
|
5859
|
-
} = Be(n), { camera: k, renderer: U, extend: K, controls: $ } = wt(), q =
|
|
5858
|
+
} = Be(n), { camera: k, renderer: U, extend: K, controls: $ } = wt(), q = fe(null);
|
|
5860
5859
|
K({ OrbitControls: ec }), ft(q, (oe) => {
|
|
5861
5860
|
le(), oe && i.value ? $.value = oe : $.value = null;
|
|
5862
5861
|
});
|
|
@@ -5896,10 +5895,10 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
5896
5895
|
"enable-rotate": B(C),
|
|
5897
5896
|
"rotate-speed": B(F),
|
|
5898
5897
|
args: [B(k) || oe.camera, ((ne = B(U)) == null ? void 0 : ne.domElement) || oe.domElement]
|
|
5899
|
-
}, null, 8,
|
|
5898
|
+
}, null, 8, bm)) : Rn("", !0);
|
|
5900
5899
|
};
|
|
5901
5900
|
}
|
|
5902
|
-
}),
|
|
5901
|
+
}), wm = 5, ym = 6, xm = 0.3, Lf = /* @__PURE__ */ ke({
|
|
5903
5902
|
__name: "KeyboardControls",
|
|
5904
5903
|
props: {
|
|
5905
5904
|
forward: { default: () => ["w", "W"] },
|
|
@@ -5914,7 +5913,7 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
5914
5913
|
},
|
|
5915
5914
|
setup(f) {
|
|
5916
5915
|
var K;
|
|
5917
|
-
const t = f, { forward: n, back: i, left: o, right: a, jump: c, gravity: p, moveSpeed: d, headBobbing: v, is2D: b } = Be(t), { camera: _, controls: y } = wt(), E =
|
|
5916
|
+
const t = f, { forward: n, back: i, left: o, right: a, jump: c, gravity: p, moveSpeed: d, headBobbing: v, is2D: b } = Be(t), { camera: _, controls: y } = wt(), E = fe(0), S = fe(0), P = fe(!1), M = fe(!1), N = fe(0), V = Ue(), I = b.value ? "y" : "z";
|
|
5918
5917
|
let C = ((K = _.value.position) == null ? void 0 : K.y) || 0;
|
|
5919
5918
|
ls(
|
|
5920
5919
|
n.value,
|
|
@@ -5955,7 +5954,7 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
5955
5954
|
), ls(c.value, () => {
|
|
5956
5955
|
M.value || (N.value = Date.now()), M.value = !0;
|
|
5957
5956
|
});
|
|
5958
|
-
const L = ($) => P.value ? Math.sin($ *
|
|
5957
|
+
const L = ($) => P.value ? Math.sin($ * wm) * xm + C : C, F = () => (Date.now() - N.value) / 1e3 * 3, A = ($) => C + ym * $ - 0.5 * p.value * Math.pow($, 2), k = () => {
|
|
5959
5958
|
if (M.value) {
|
|
5960
5959
|
const $ = A(F());
|
|
5961
5960
|
return $ <= C && (M.value = !1), $;
|
|
@@ -5972,7 +5971,7 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
5972
5971
|
Je($.$slots, "default")
|
|
5973
5972
|
], 512));
|
|
5974
5973
|
}
|
|
5975
|
-
}),
|
|
5974
|
+
}), Em = ["object", "args", "mode", "enabled", "axis", "translation-snap", "rotation-snap", "scale-snap", "space", "size", "show-x", "show-y", "show-z"], Df = /* @__PURE__ */ ke({
|
|
5976
5975
|
__name: "TransformControls",
|
|
5977
5976
|
props: {
|
|
5978
5977
|
object: {},
|
|
@@ -6020,9 +6019,9 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
6020
6019
|
"show-y": B(E),
|
|
6021
6020
|
"show-z": B(S),
|
|
6022
6021
|
visible: !0
|
|
6023
|
-
}, null, 8,
|
|
6022
|
+
}, null, 8, Em)) : Rn("", !0);
|
|
6024
6023
|
}
|
|
6025
|
-
}),
|
|
6024
|
+
}), Cm = ["args"], Of = /* @__PURE__ */ ke({
|
|
6026
6025
|
__name: "PointerLockControls",
|
|
6027
6026
|
props: {
|
|
6028
6027
|
makeDefault: { type: Boolean, default: !1 },
|
|
@@ -6031,7 +6030,7 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
6031
6030
|
selector: {}
|
|
6032
6031
|
},
|
|
6033
6032
|
setup(f, { expose: t }) {
|
|
6034
|
-
const n = f, { camera: i, renderer: o, extend: a, controls: c } = wt(), p =
|
|
6033
|
+
const n = f, { camera: i, renderer: o, extend: a, controls: c } = wt(), p = fe(null);
|
|
6035
6034
|
let d;
|
|
6036
6035
|
return a({ PointerLockControls: la }), ft(p, (v) => {
|
|
6037
6036
|
v && n.makeDefault ? c.value = v : c.value = null;
|
|
@@ -6050,10 +6049,10 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
6050
6049
|
ref_key: "controlsRef",
|
|
6051
6050
|
ref: p,
|
|
6052
6051
|
args: [B(i) || v.camera, ((_ = B(o)) == null ? void 0 : _.domElement) || v.domElement]
|
|
6053
|
-
}, null, 8,
|
|
6052
|
+
}, null, 8, Cm)) : Rn("", !0);
|
|
6054
6053
|
};
|
|
6055
6054
|
}
|
|
6056
|
-
}),
|
|
6055
|
+
}), Pm = ["args"], Rf = /* @__PURE__ */ ke({
|
|
6057
6056
|
__name: "MapControls",
|
|
6058
6057
|
props: {
|
|
6059
6058
|
makeDefault: { type: Boolean, default: !1 },
|
|
@@ -6061,7 +6060,7 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
6061
6060
|
domElement: {}
|
|
6062
6061
|
},
|
|
6063
6062
|
setup(f) {
|
|
6064
|
-
const t = f, { camera: n, renderer: i, extend: o, controls: a } = wt(), c =
|
|
6063
|
+
const t = f, { camera: n, renderer: i, extend: o, controls: a } = wt(), c = fe(null);
|
|
6065
6064
|
return o({ MapControls: Su }), ft(a, (p) => {
|
|
6066
6065
|
p && t.makeDefault ? a.value = p : a.value = null;
|
|
6067
6066
|
}), $s(() => {
|
|
@@ -6073,10 +6072,10 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
6073
6072
|
ref_key: "controlsRef",
|
|
6074
6073
|
ref: c,
|
|
6075
6074
|
args: [B(n) || p.camera, ((v = B(i)) == null ? void 0 : v.domElement) || p.domElement]
|
|
6076
|
-
}, null, 8,
|
|
6075
|
+
}, null, 8, Pm)) : Rn("", !0);
|
|
6077
6076
|
};
|
|
6078
6077
|
}
|
|
6079
|
-
}),
|
|
6078
|
+
}), If = /* @__PURE__ */ ke({
|
|
6080
6079
|
__name: "ScrollControls",
|
|
6081
6080
|
props: {
|
|
6082
6081
|
pages: { default: 4 },
|
|
@@ -6089,9 +6088,9 @@ const wm = ["target", "auto-rotate", "auto-rotate-speed", "enable-damping", "dam
|
|
|
6089
6088
|
setup(f, { emit: t }) {
|
|
6090
6089
|
const n = f, { logWarning: i } = tu();
|
|
6091
6090
|
n.smoothScroll < 0 && i("SmoothControl must be greater than zero"), n.pages < 0 && i("Pages must be greater than zero");
|
|
6092
|
-
const { camera: o, controls: a, renderer: c } = wt(), p = Ue(), d = document.createElement("div"), { y: v } =
|
|
6091
|
+
const { camera: o, controls: a, renderer: c } = wt(), p = Ue(), d = document.createElement("div"), { y: v } = mm(), { x: b, y: _, isScrolling: y } = pm(d), { height: E, width: S } = pc();
|
|
6093
6092
|
let P = 0;
|
|
6094
|
-
const M =
|
|
6093
|
+
const M = fe(!1), N = fe(0), V = fe(0), I = fe(0), C = n.horizontal ? "x" : "y", L = ft(
|
|
6095
6094
|
o,
|
|
6096
6095
|
(A) => {
|
|
6097
6096
|
if (M.value) {
|
|
@@ -6241,7 +6240,7 @@ function Zo(f, t) {
|
|
|
6241
6240
|
function qo(f, t) {
|
|
6242
6241
|
return kn(f) ? (console.warn(`${t} is not supported in OrthographicCamera`), !0) : !1;
|
|
6243
6242
|
}
|
|
6244
|
-
class
|
|
6243
|
+
class Tm {
|
|
6245
6244
|
constructor() {
|
|
6246
6245
|
this._listeners = {};
|
|
6247
6246
|
}
|
|
@@ -6305,9 +6304,9 @@ class Am {
|
|
|
6305
6304
|
}
|
|
6306
6305
|
}
|
|
6307
6306
|
}
|
|
6308
|
-
const
|
|
6307
|
+
const Am = "2.7.0", Er = 1 / 8, dc = typeof window < "u", km = dc && /Mac/.test(navigator.platform), Sm = !(dc && "PointerEvent" in window);
|
|
6309
6308
|
let te, Pl, Cr, Qo, dt, ue, Ae, Bs, Si, Yt, Xt, hs, Tl, Al, kt, Mi, Hs, kl, Wo, Sl, Jo, ea, Pr;
|
|
6310
|
-
class Fi extends
|
|
6309
|
+
class Fi extends Tm {
|
|
6311
6310
|
/**
|
|
6312
6311
|
* Injects THREE as the dependency. You can then proceed to use CameraControls.
|
|
6313
6312
|
*
|
|
@@ -6520,7 +6519,7 @@ class Fi extends Am {
|
|
|
6520
6519
|
const U = performance.now();
|
|
6521
6520
|
y - U < 1e3 && this._getClientRect(this._elementRect), y = U;
|
|
6522
6521
|
}
|
|
6523
|
-
const L =
|
|
6522
|
+
const L = km ? -1 : -3, F = C.deltaMode === 1 ? C.deltaY / L : C.deltaY / (L * 10), A = this.dollyToCursor ? (C.clientX - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, k = this.dollyToCursor ? (C.clientY - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
|
|
6524
6523
|
switch (this.mouseButtons.wheel) {
|
|
6525
6524
|
case G.ROTATE: {
|
|
6526
6525
|
this._rotateInternal(C.deltaX, C.deltaY), this._isUserControllingRotate = !0;
|
|
@@ -6616,7 +6615,7 @@ class Fi extends Am {
|
|
|
6616
6615
|
this.unlockPointer();
|
|
6617
6616
|
};
|
|
6618
6617
|
this._addAllEventListeners = (C) => {
|
|
6619
|
-
this._domElement = C, this._domElement.style.touchAction = "none", this._domElement.style.userSelect = "none", this._domElement.style.webkitUserSelect = "none", this._domElement.addEventListener("pointerdown", c),
|
|
6618
|
+
this._domElement = C, this._domElement.style.touchAction = "none", this._domElement.style.userSelect = "none", this._domElement.style.webkitUserSelect = "none", this._domElement.addEventListener("pointerdown", c), Sm && this._domElement.addEventListener("mousedown", p), this._domElement.addEventListener("pointercancel", b), this._domElement.addEventListener("wheel", E, { passive: !1 }), this._domElement.addEventListener("contextmenu", S);
|
|
6620
6619
|
}, this._removeAllEventListeners = () => {
|
|
6621
6620
|
this._domElement && (this._domElement.style.touchAction = "", this._domElement.style.userSelect = "", this._domElement.style.webkitUserSelect = "", this._domElement.removeEventListener("pointerdown", c), this._domElement.removeEventListener("mousedown", p), this._domElement.removeEventListener("pointercancel", b), this._domElement.removeEventListener("wheel", E, { passive: !1 }), this._domElement.removeEventListener("contextmenu", S), this._domElement.ownerDocument.removeEventListener("pointermove", d, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("mousemove", v), this._domElement.ownerDocument.removeEventListener("pointerup", b), this._domElement.ownerDocument.removeEventListener("mouseup", _), this._domElement.ownerDocument.removeEventListener("pointerlockchange", V), this._domElement.ownerDocument.removeEventListener("pointerlockerror", I));
|
|
6622
6621
|
}, this.cancel = () => {
|
|
@@ -7378,7 +7377,7 @@ class Fi extends Am {
|
|
|
7378
7377
|
console.warn("camera-controls is already connected.");
|
|
7379
7378
|
return;
|
|
7380
7379
|
}
|
|
7381
|
-
t.setAttribute("data-camera-controls-version",
|
|
7380
|
+
t.setAttribute("data-camera-controls-version", Am), this._addAllEventListeners(t);
|
|
7382
7381
|
}
|
|
7383
7382
|
/**
|
|
7384
7383
|
* Detach all internal event handlers to disable drag control.
|
|
@@ -7523,7 +7522,7 @@ class Fi extends Am {
|
|
|
7523
7522
|
}), i.radius = Math.sqrt(a), i;
|
|
7524
7523
|
}
|
|
7525
7524
|
}
|
|
7526
|
-
const
|
|
7525
|
+
const Mm = ["min-polar-angle", "max-polar-angle", "min-azimuth-angle", "max-azimuth-angle", "min-distance", "max-distance", "infinity-dolly", "min-zoom", "max-zoom", "smooth-time", "dragging-smooth-time", "max-speed", "azimuth-rotate-speed", "polar-rotate-speed", "dolly-speed", "dolly-drag-inverted", "truck-speed", "dolly-to-cursor", "drag-to-offset", "vertical-drag-to-forward", "boundary-friction", "rest-threshold", "collider-meshes", "args"], Vf = /* @__PURE__ */ ke({
|
|
7527
7526
|
__name: "CameraControls",
|
|
7528
7527
|
props: {
|
|
7529
7528
|
makeDefault: { type: Boolean, default: !1 },
|
|
@@ -7597,7 +7596,7 @@ const Lm = ["min-polar-angle", "max-polar-angle", "min-azimuth-angle", "max-azim
|
|
|
7597
7596
|
Vector4: zi
|
|
7598
7597
|
};
|
|
7599
7598
|
Fi.install({ THREE: q });
|
|
7600
|
-
const { state: le, extend: he, setState: oe } = wt(), ie =
|
|
7599
|
+
const { state: le, extend: he, setState: oe } = wt(), ie = fe(null);
|
|
7601
7600
|
he({ CameraControls: Fi }), ft(ie, (Se) => {
|
|
7602
7601
|
ne(), Se && o.value ? oe("controls", Se) : oe("controls", null);
|
|
7603
7602
|
});
|
|
@@ -7642,11 +7641,11 @@ const Lm = ["min-polar-angle", "max-polar-angle", "min-azimuth-angle", "max-azim
|
|
|
7642
7641
|
"rest-threshold": B(K),
|
|
7643
7642
|
"collider-meshes": B($),
|
|
7644
7643
|
args: [B(le).camera || Se.camera, ((de = B(le).renderer) == null ? void 0 : de.domElement) || Se.domElement]
|
|
7645
|
-
}, null, 8,
|
|
7644
|
+
}, null, 8, Mm)) : Rn("", !0);
|
|
7646
7645
|
};
|
|
7647
7646
|
}
|
|
7648
7647
|
});
|
|
7649
|
-
class
|
|
7648
|
+
class Lm extends _a {
|
|
7650
7649
|
constructor(n = {}) {
|
|
7651
7650
|
super(n);
|
|
7652
7651
|
Io(this, "_time");
|
|
@@ -7681,7 +7680,7 @@ class Dm extends _a {
|
|
|
7681
7680
|
this._factor.value = n;
|
|
7682
7681
|
}
|
|
7683
7682
|
}
|
|
7684
|
-
const
|
|
7683
|
+
const Dm = ["factor"], Ff = /* @__PURE__ */ ke({
|
|
7685
7684
|
__name: "index",
|
|
7686
7685
|
props: {
|
|
7687
7686
|
speed: { default: 1 },
|
|
@@ -7689,7 +7688,7 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7689
7688
|
},
|
|
7690
7689
|
setup(f) {
|
|
7691
7690
|
const t = f, n = Ue(), { extend: i } = wt();
|
|
7692
|
-
i({ MeshWobbleMaterial:
|
|
7691
|
+
i({ MeshWobbleMaterial: Lm });
|
|
7693
7692
|
const { onLoop: o } = Lt();
|
|
7694
7693
|
return o(({ elapsed: a }) => {
|
|
7695
7694
|
n.value && (n.value.time = a * (t == null ? void 0 : t.speed));
|
|
@@ -7697,9 +7696,9 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7697
7696
|
ref_key: "materialRef",
|
|
7698
7697
|
ref: n,
|
|
7699
7698
|
factor: a.factor
|
|
7700
|
-
}, a.$attrs), null, 16,
|
|
7699
|
+
}, a.$attrs), null, 16, Dm));
|
|
7701
7700
|
}
|
|
7702
|
-
}),
|
|
7701
|
+
}), Om = ["args"], Rm = ["color"], zf = /* @__PURE__ */ ke({
|
|
7703
7702
|
__name: "Box",
|
|
7704
7703
|
props: {
|
|
7705
7704
|
args: { default: () => [1, 1, 1] },
|
|
@@ -7713,13 +7712,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7713
7712
|
ref_key: "boxRef",
|
|
7714
7713
|
ref: a
|
|
7715
7714
|
}, c.$attrs), [
|
|
7716
|
-
|
|
7715
|
+
ve("TresBoxGeometry", { args: B(i) }, null, 8, Om),
|
|
7717
7716
|
Je(c.$slots, "default", {}, () => [
|
|
7718
|
-
|
|
7717
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, Rm)
|
|
7719
7718
|
])
|
|
7720
7719
|
], 16));
|
|
7721
7720
|
}
|
|
7722
|
-
}),
|
|
7721
|
+
}), Im = ["args"], Vm = ["color"], Nf = /* @__PURE__ */ ke({
|
|
7723
7722
|
__name: "Circle",
|
|
7724
7723
|
props: {
|
|
7725
7724
|
args: { default: () => [1, 32, 0, Math.PI * 2] },
|
|
@@ -7733,13 +7732,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7733
7732
|
ref_key: "circleRef",
|
|
7734
7733
|
ref: a
|
|
7735
7734
|
}, c.$attrs), [
|
|
7736
|
-
|
|
7735
|
+
ve("TresCircleGeometry", { args: B(i) }, null, 8, Im),
|
|
7737
7736
|
Je(c.$slots, "default", {}, () => [
|
|
7738
|
-
|
|
7737
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, Vm)
|
|
7739
7738
|
])
|
|
7740
7739
|
], 16));
|
|
7741
7740
|
}
|
|
7742
|
-
}),
|
|
7741
|
+
}), Fm = ["args"], zm = ["color"], Uf = /* @__PURE__ */ ke({
|
|
7743
7742
|
__name: "Cone",
|
|
7744
7743
|
props: {
|
|
7745
7744
|
args: { default: () => [1, 1, 12, 12, !1, 0, Math.PI * 2] },
|
|
@@ -7753,13 +7752,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7753
7752
|
ref_key: "coneRef",
|
|
7754
7753
|
ref: a
|
|
7755
7754
|
}, c.$attrs), [
|
|
7756
|
-
|
|
7755
|
+
ve("TresConeGeometry", { args: B(i) }, null, 8, Fm),
|
|
7757
7756
|
Je(c.$slots, "default", {}, () => [
|
|
7758
|
-
|
|
7757
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, zm)
|
|
7759
7758
|
])
|
|
7760
7759
|
], 16));
|
|
7761
7760
|
}
|
|
7762
|
-
}),
|
|
7761
|
+
}), Nm = ["args"], Um = ["color"], Bf = /* @__PURE__ */ ke({
|
|
7763
7762
|
__name: "Dodecahedron",
|
|
7764
7763
|
props: {
|
|
7765
7764
|
args: { default: () => [1, 0] },
|
|
@@ -7773,13 +7772,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7773
7772
|
ref_key: "dodecahedronRef",
|
|
7774
7773
|
ref: a
|
|
7775
7774
|
}, c.$attrs), [
|
|
7776
|
-
|
|
7775
|
+
ve("TresDodecahedronGeometry", { args: B(i) }, null, 8, Nm),
|
|
7777
7776
|
Je(c.$slots, "default", {}, () => [
|
|
7778
|
-
|
|
7777
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, Um)
|
|
7779
7778
|
])
|
|
7780
7779
|
], 16));
|
|
7781
7780
|
}
|
|
7782
|
-
}),
|
|
7781
|
+
}), Bm = ["args"], Hm = ["color"], Hf = /* @__PURE__ */ ke({
|
|
7783
7782
|
__name: "Icosahedron",
|
|
7784
7783
|
props: {
|
|
7785
7784
|
args: { default: () => [1, 0] },
|
|
@@ -7793,13 +7792,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7793
7792
|
ref_key: "icosahedronRef",
|
|
7794
7793
|
ref: a
|
|
7795
7794
|
}, c.$attrs), [
|
|
7796
|
-
|
|
7795
|
+
ve("TresIcosahedronGeometry", { args: B(i) }, null, 8, Bm),
|
|
7797
7796
|
Je(c.$slots, "default", {}, () => [
|
|
7798
|
-
|
|
7797
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, Hm)
|
|
7799
7798
|
])
|
|
7800
7799
|
], 16));
|
|
7801
7800
|
}
|
|
7802
|
-
}),
|
|
7801
|
+
}), jm = ["args"], Gm = ["color"], jf = /* @__PURE__ */ ke({
|
|
7803
7802
|
__name: "Octahedron",
|
|
7804
7803
|
props: {
|
|
7805
7804
|
args: { default: () => [1, 0] },
|
|
@@ -7813,13 +7812,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7813
7812
|
ref_key: "octahedronRef",
|
|
7814
7813
|
ref: a
|
|
7815
7814
|
}, c.$attrs), [
|
|
7816
|
-
|
|
7815
|
+
ve("TresOctahedronGeometry", { args: B(i) }, null, 8, jm),
|
|
7817
7816
|
Je(c.$slots, "default", {}, () => [
|
|
7818
|
-
|
|
7817
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, Gm)
|
|
7819
7818
|
])
|
|
7820
7819
|
], 16));
|
|
7821
7820
|
}
|
|
7822
|
-
}),
|
|
7821
|
+
}), Km = ["rotation"], $m = ["args"], Ym = ["color"], Gf = /* @__PURE__ */ ke({
|
|
7823
7822
|
__name: "Plane",
|
|
7824
7823
|
props: {
|
|
7825
7824
|
args: { default: () => [1, 1] },
|
|
@@ -7834,13 +7833,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7834
7833
|
ref: a,
|
|
7835
7834
|
rotation: [-Math.PI / 2, 0, 0]
|
|
7836
7835
|
}, c.$attrs), [
|
|
7837
|
-
|
|
7836
|
+
ve("TresPlaneGeometry", { args: B(i) }, null, 8, $m),
|
|
7838
7837
|
Je(c.$slots, "default", {}, () => [
|
|
7839
|
-
|
|
7838
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, Ym)
|
|
7840
7839
|
])
|
|
7841
|
-
], 16,
|
|
7840
|
+
], 16, Km));
|
|
7842
7841
|
}
|
|
7843
|
-
}),
|
|
7842
|
+
}), Xm = ["args"], Zm = ["color"], Kf = /* @__PURE__ */ ke({
|
|
7844
7843
|
__name: "Ring",
|
|
7845
7844
|
props: {
|
|
7846
7845
|
args: { default: () => [0.5, 1, 32] },
|
|
@@ -7854,13 +7853,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7854
7853
|
ref_key: "ringRef",
|
|
7855
7854
|
ref: a
|
|
7856
7855
|
}, c.$attrs), [
|
|
7857
|
-
|
|
7856
|
+
ve("TresRingGeometry", { args: B(i) }, null, 8, Xm),
|
|
7858
7857
|
Je(c.$slots, "default", {}, () => [
|
|
7859
|
-
|
|
7858
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, Zm)
|
|
7860
7859
|
])
|
|
7861
7860
|
], 16));
|
|
7862
7861
|
}
|
|
7863
|
-
}),
|
|
7862
|
+
}), qm = ["args"], Qm = ["color"], $f = /* @__PURE__ */ ke({
|
|
7864
7863
|
__name: "Sphere",
|
|
7865
7864
|
props: {
|
|
7866
7865
|
args: { default: () => [2, 32, 16] },
|
|
@@ -7874,13 +7873,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7874
7873
|
ref_key: "sphereRef",
|
|
7875
7874
|
ref: a
|
|
7876
7875
|
}, c.$attrs), [
|
|
7877
|
-
|
|
7876
|
+
ve("TresSphereGeometry", { args: B(i) }, null, 8, qm),
|
|
7878
7877
|
Je(c.$slots, "default", {}, () => [
|
|
7879
|
-
|
|
7878
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, Qm)
|
|
7880
7879
|
])
|
|
7881
7880
|
], 16));
|
|
7882
7881
|
}
|
|
7883
|
-
}),
|
|
7882
|
+
}), Wm = ["rotation"], Jm = ["args"], ef = ["color"], Yf = /* @__PURE__ */ ke({
|
|
7884
7883
|
__name: "Tetrahedron",
|
|
7885
7884
|
props: {
|
|
7886
7885
|
args: { default: () => [1, 0] },
|
|
@@ -7895,13 +7894,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7895
7894
|
ref: a,
|
|
7896
7895
|
rotation: [-Math.PI / 2, 0, 0]
|
|
7897
7896
|
}, c.$attrs), [
|
|
7898
|
-
|
|
7897
|
+
ve("TresTetrahedronGeometry", { args: B(i) }, null, 8, Jm),
|
|
7899
7898
|
Je(c.$slots, "default", {}, () => [
|
|
7900
|
-
|
|
7899
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, ef)
|
|
7901
7900
|
])
|
|
7902
|
-
], 16,
|
|
7901
|
+
], 16, Wm));
|
|
7903
7902
|
}
|
|
7904
|
-
}),
|
|
7903
|
+
}), tf = ["args"], nf = ["color"], Xf = /* @__PURE__ */ ke({
|
|
7905
7904
|
__name: "Torus",
|
|
7906
7905
|
props: {
|
|
7907
7906
|
args: { default: () => [1, 1, 16, 80] },
|
|
@@ -7915,13 +7914,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7915
7914
|
ref_key: "torusRef",
|
|
7916
7915
|
ref: a
|
|
7917
7916
|
}, c.$attrs), [
|
|
7918
|
-
|
|
7917
|
+
ve("TresTorusGeometry", { args: B(i) }, null, 8, tf),
|
|
7919
7918
|
Je(c.$slots, "default", {}, () => [
|
|
7920
|
-
|
|
7919
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, nf)
|
|
7921
7920
|
])
|
|
7922
7921
|
], 16));
|
|
7923
7922
|
}
|
|
7924
|
-
}),
|
|
7923
|
+
}), sf = ["args"], rf = ["color"], Zf = /* @__PURE__ */ ke({
|
|
7925
7924
|
__name: "TorusKnot",
|
|
7926
7925
|
props: {
|
|
7927
7926
|
args: { default: () => [1, 0.4, 64, 8] },
|
|
@@ -7935,13 +7934,13 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7935
7934
|
ref_key: "torusKnotRef",
|
|
7936
7935
|
ref: a
|
|
7937
7936
|
}, c.$attrs), [
|
|
7938
|
-
|
|
7937
|
+
ve("TresTorusKnotGeometry", { args: B(i) }, null, 8, sf),
|
|
7939
7938
|
Je(c.$slots, "default", {}, () => [
|
|
7940
|
-
|
|
7939
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, rf)
|
|
7941
7940
|
])
|
|
7942
7941
|
], 16));
|
|
7943
7942
|
}
|
|
7944
|
-
}),
|
|
7943
|
+
}), of = ["args"], af = ["color"], qf = /* @__PURE__ */ ke({
|
|
7945
7944
|
__name: "Tube",
|
|
7946
7945
|
props: {
|
|
7947
7946
|
args: { default: () => [
|
|
@@ -7961,16 +7960,16 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7961
7960
|
ref_key: "tubeRef",
|
|
7962
7961
|
ref: a
|
|
7963
7962
|
}, c.$attrs), [
|
|
7964
|
-
|
|
7963
|
+
ve("TresTubeGeometry", { args: B(i) }, null, 8, of),
|
|
7965
7964
|
Je(c.$slots, "default", {}, () => [
|
|
7966
|
-
|
|
7965
|
+
ve("TresMeshBasicMaterial", { color: B(o) }, null, 8, af)
|
|
7967
7966
|
])
|
|
7968
7967
|
], 16));
|
|
7969
7968
|
}
|
|
7970
|
-
}),
|
|
7969
|
+
}), lf = ["receive-shadow", "rotation"], cf = ["args"], hf = /* @__PURE__ */ ve("TresMeshStandardMaterial", {
|
|
7971
7970
|
color: 8421504,
|
|
7972
7971
|
side: 2
|
|
7973
|
-
}, null, -1),
|
|
7972
|
+
}, null, -1), Qf = /* @__PURE__ */ ke({
|
|
7974
7973
|
__name: "Backdrop",
|
|
7975
7974
|
props: {
|
|
7976
7975
|
floor: { default: 0.25 },
|
|
@@ -7978,7 +7977,7 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7978
7977
|
receiveShadow: { type: Boolean, default: !1 }
|
|
7979
7978
|
},
|
|
7980
7979
|
setup(f) {
|
|
7981
|
-
const t = f, n = (p) => p === 0 ? 0 : Math.pow(2, 10 * p - 10), { floor: i, segments: o, receiveShadow: a } = Be(t), c =
|
|
7980
|
+
const t = f, n = (p) => p === 0 ? 0 : Math.pow(2, 10 * p - 10), { floor: i, segments: o, receiveShadow: a } = Be(t), c = fe(null);
|
|
7982
7981
|
return ft(
|
|
7983
7982
|
() => [o.value, i.value, c.value],
|
|
7984
7983
|
([p, d, v]) => {
|
|
@@ -7997,19 +7996,19 @@ const Om = ["factor"], zf = /* @__PURE__ */ ke({
|
|
|
7997
7996
|
y.needsUpdate = !0, v.computeVertexNormals();
|
|
7998
7997
|
}
|
|
7999
7998
|
), (p, d) => (xe(), Pe("TresGroup", bp(wp(p.$attrs)), [
|
|
8000
|
-
|
|
7999
|
+
ve("TresMesh", {
|
|
8001
8000
|
"receive-shadow": B(a),
|
|
8002
8001
|
rotation: [-Math.PI / 2, 0, Math.PI / 2]
|
|
8003
8002
|
}, [
|
|
8004
|
-
|
|
8003
|
+
ve("TresPlaneGeometry", {
|
|
8005
8004
|
ref_key: "planeRef",
|
|
8006
8005
|
ref: c,
|
|
8007
8006
|
args: [1, 1, B(o), B(o)]
|
|
8008
|
-
}, null, 8,
|
|
8007
|
+
}, null, 8, cf),
|
|
8009
8008
|
Je(p.$slots, "default", {}, () => [
|
|
8010
|
-
|
|
8009
|
+
hf
|
|
8011
8010
|
])
|
|
8012
|
-
], 8,
|
|
8011
|
+
], 8, lf)
|
|
8013
8012
|
], 16));
|
|
8014
8013
|
}
|
|
8015
8014
|
});
|
|
@@ -13361,7 +13360,7 @@ var pa = { exports: {} };
|
|
|
13361
13360
|
n.BladeApi = o, n.ButtonApi = N, n.FolderApi = Ws, n.InputBindingApi = qs, n.ListApi = tl, n.MonitorBindingApi = Qs, n.Pane = ip, n.SeparatorApi = ji, n.SliderApi = nl, n.TabApi = Ki, n.TabPageApi = ni, n.TextApi = sl, n.TpChangeEvent = c, n.VERSION = rp, Object.defineProperty(n, "__esModule", { value: !0 });
|
|
13362
13361
|
});
|
|
13363
13362
|
})(pa, pa.exports);
|
|
13364
|
-
var
|
|
13363
|
+
var pf = pa.exports, ua = { exports: {} };
|
|
13365
13364
|
(function(f, t) {
|
|
13366
13365
|
(function(n, i) {
|
|
13367
13366
|
i(t);
|
|
@@ -16031,15 +16030,15 @@ var uf = pa.exports, ua = { exports: {} };
|
|
|
16031
16030
|
});
|
|
16032
16031
|
})(ua, ua.exports);
|
|
16033
16032
|
var mc = ua.exports;
|
|
16034
|
-
const
|
|
16033
|
+
const uf = /* @__PURE__ */ Id(mc), df = /* @__PURE__ */ nu({
|
|
16035
16034
|
__proto__: null,
|
|
16036
|
-
default:
|
|
16035
|
+
default: uf
|
|
16037
16036
|
}, [mc]);
|
|
16038
16037
|
let Nt, Tr;
|
|
16039
|
-
const
|
|
16040
|
-
Nt || (Nt = new
|
|
16038
|
+
const Wf = (f = "body") => {
|
|
16039
|
+
Nt || (Nt = new pf.Pane({
|
|
16041
16040
|
container: document.querySelector(f)
|
|
16042
|
-
}), Nt.element.style.position = "absolute", Nt.element.style.top = "1rem", Nt.element.style.right = "1rem", Nt.element.style.zIndex = "9999", Nt.registerPlugin(
|
|
16041
|
+
}), Nt.element.style.position = "absolute", Nt.element.style.top = "1rem", Nt.element.style.right = "1rem", Nt.element.style.zIndex = "9999", Nt.registerPlugin(df), Tr = Nt.addBlade({
|
|
16043
16042
|
view: "fpsgraph",
|
|
16044
16043
|
label: "fpsgraph"
|
|
16045
16044
|
}));
|
|
@@ -16054,42 +16053,42 @@ const Jf = (f = "body") => {
|
|
|
16054
16053
|
}), { pane: Nt, fpsGraph: Tr, disposeTweakPane: t };
|
|
16055
16054
|
};
|
|
16056
16055
|
export {
|
|
16057
|
-
|
|
16058
|
-
|
|
16059
|
-
|
|
16060
|
-
|
|
16061
|
-
|
|
16062
|
-
|
|
16063
|
-
|
|
16064
|
-
|
|
16065
|
-
|
|
16066
|
-
|
|
16067
|
-
|
|
16068
|
-
|
|
16069
|
-
|
|
16070
|
-
|
|
16071
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16081
|
-
|
|
16082
|
-
|
|
16083
|
-
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16088
|
-
|
|
16089
|
-
|
|
16056
|
+
Qf as Backdrop,
|
|
16057
|
+
zf as Box,
|
|
16058
|
+
Vf as CameraControls,
|
|
16059
|
+
Nf as Circle,
|
|
16060
|
+
Uf as Cone,
|
|
16061
|
+
Pf as ContactShadows,
|
|
16062
|
+
Bf as Dodecahedron,
|
|
16063
|
+
wf as Environment,
|
|
16064
|
+
kf as FBXModel,
|
|
16065
|
+
Af as GLTFModel,
|
|
16066
|
+
Hf as Icosahedron,
|
|
16067
|
+
Lf as KeyboardControls,
|
|
16068
|
+
Cf as Levioso,
|
|
16069
|
+
Rf as MapControls,
|
|
16070
|
+
Ff as MeshWobbleMaterial,
|
|
16071
|
+
Tf as MouseParallax,
|
|
16072
|
+
jf as Octahedron,
|
|
16073
|
+
Mf as OrbitControls,
|
|
16074
|
+
Gf as Plane,
|
|
16075
|
+
Of as PointerLockControls,
|
|
16076
|
+
xf as Precipitation,
|
|
16077
|
+
Kf as Ring,
|
|
16078
|
+
If as ScrollControls,
|
|
16079
|
+
Ef as Smoke,
|
|
16080
|
+
$f as Sphere,
|
|
16081
|
+
yf as Stars,
|
|
16082
|
+
Yf as Tetrahedron,
|
|
16083
|
+
gf as Text3D,
|
|
16084
|
+
Xf as Torus,
|
|
16085
|
+
Zf as TorusKnot,
|
|
16086
|
+
Df as TransformControls,
|
|
16087
|
+
qf as Tube,
|
|
16088
|
+
bf as useAnimations,
|
|
16090
16089
|
Ud as useEnvironment,
|
|
16091
|
-
|
|
16092
|
-
|
|
16093
|
-
|
|
16094
|
-
|
|
16090
|
+
_m as useFBX,
|
|
16091
|
+
vm as useGLTF,
|
|
16092
|
+
Sf as useProgress,
|
|
16093
|
+
Wf as useTweakPane
|
|
16095
16094
|
};
|