@needle-tools/engine 3.38.0-alpha.2 → 3.38.0-alpha.3
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/CHANGELOG.md +5 -0
- package/dist/needle-engine.js +700 -695
- package/dist/needle-engine.light.js +679 -674
- package/dist/needle-engine.light.min.js +119 -118
- package/dist/needle-engine.light.umd.cjs +50 -49
- package/dist/needle-engine.min.js +62 -61
- package/dist/needle-engine.umd.cjs +50 -49
- package/lib/engine/webcomponents/needle menu/needle-menu.js +1 -0
- package/lib/engine/webcomponents/needle menu/needle-menu.js.map +1 -1
- package/lib/engine-components/export/usdz/USDZExporter.js +1 -5
- package/lib/engine-components/export/usdz/USDZExporter.js.map +1 -1
- package/lib/engine-components/export/usdz/extensions/Animation.js +6 -4
- package/lib/engine-components/export/usdz/extensions/Animation.js.map +1 -1
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js +6 -2
- package/lib/engine-components/export/usdz/extensions/behavior/BehaviourComponents.js.map +1 -1
- package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.d.ts +1 -0
- package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.js +28 -0
- package/lib/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.js.map +1 -1
- package/lib/engine-components/webxr/WebXR.js +5 -2
- package/lib/engine-components/webxr/WebXR.js.map +1 -1
- package/package.json +2 -2
- package/plugins/vite/meta.js +4 -1
- package/src/engine/webcomponents/needle menu/needle-menu.ts +1 -0
- package/src/engine-components/export/usdz/USDZExporter.ts +2 -6
- package/src/engine-components/export/usdz/extensions/Animation.ts +5 -3
- package/src/engine-components/export/usdz/extensions/behavior/BehaviourComponents.ts +6 -1
- package/src/engine-components/export/usdz/extensions/behavior/BehavioursBuilder.ts +32 -2
- package/src/engine-components/webxr/WebXR.ts +5 -2
|
@@ -27,7 +27,7 @@ function P9() {
|
|
|
27
27
|
* Copyright 2010-2023 Three.js Authors
|
|
28
28
|
* SPDX-License-Identifier: MIT
|
|
29
29
|
*/
|
|
30
|
-
const Su = "162", wd = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Cd = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, sQ = 0, zM = 1, rQ = 2, D9 = 3, k9 = 0, pR = 1, gR = 2, Ic = 3,
|
|
30
|
+
const Su = "162", wd = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Cd = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, sQ = 0, zM = 1, rQ = 2, D9 = 3, k9 = 0, pR = 1, gR = 2, Ic = 3, cs = 0, mn = 1, gi = 2, on = 0, pu = 1, df = 2, GM = 3, HM = 4, mR = 5, nu = 100, oQ = 101, aQ = 102, VM = 103, ew = 104, cQ = 200, lQ = 201, hQ = 202, uQ = 203, tw = 204, iw = 205, dQ = 206, fQ = 207, pQ = 208, gQ = 209, mQ = 210, AQ = 211, yQ = 212, vQ = 213, bQ = 214, AR = 0, hC = 1, Jy = 2, ff = 3, Lg = 4, uC = 5, dC = 6, Q0 = 7, z0 = 0, _Q = 1, xQ = 2, so = 0, Fg = 1, wQ = 2, CQ = 3, fC = 4, SQ = 5, yR = 6, pC = 7, jM = "attached", EQ = "detached", gC = 300, nh = 301, Eu = 302, ma = 303, Ug = 304, rm = 306, ya = 1e3, _s = 1001, pf = 1002, Nt = 1003, Ng = 1004, O9 = 1004, Fl = 1005, L9 = 1005, Tt = 1006, Wd = 1007, F9 = 1007, Nr = 1008, U9 = 1008, pi = 1009, IQ = 1010, MQ = 1011, mC = 1012, vR = 1013, Ga = 1014, Xi = 1015, An = 1016, bR = 1017, _R = 1018, Kl = 1020, TQ = 1021, _i = 1023, AC = 1024, BQ = 1025, gu = 1026, Iu = 1027, Ha = 1028, xR = 1029, au = 1030, wR = 1031, CR = 1033, uy = 33776, Ax = 33777, yx = 33778, dy = 33779, nw = 35840, WM = 35841, sw = 35842, qM = 35843, yC = 36196, rw = 37492, ow = 37496, aw = 37808, XM = 37809, YM = 37810, JM = 37811, Ky = 37812, KM = 37813, ZM = 37814, $M = 37815, eT = 37816, tT = 37817, iT = 37818, nT = 37819, sT = 37820, rT = 37821, fy = 36492, oT = 36494, aT = 36495, RQ = 36283, cT = 36284, lT = 36285, hT = 36286, Zy = 2200, SR = 2201, PQ = 2202, Mu = 2300, Xc = 2301, vx = 2302, Od = 2400, Ld = 2401, $y = 2402, vC = 2500, ER = 2501, DQ = 0, IR = 1, cw = 2, kQ = 3e3, uT = 3001, Ys = 3200, bC = 3201, Du = 0, OQ = 1, gr = "", yt = "srgb", xi = "srgb-linear", G0 = "display-p3", om = "display-p3-linear", e0 = "linear", zi = "srgb", t0 = "rec709", i0 = "p3", LQ = 0, Zh = 7680, FQ = 7681, UQ = 7682, NQ = 7683, QQ = 34055, zQ = 34056, GQ = 5386, dT = 512, HQ = 513, VQ = 514, jQ = 515, WQ = 516, qQ = 517, XQ = 518, lw = 519, YQ = 512, JQ = 513, KQ = 514, MR = 515, ZQ = 516, $Q = 517, ez = 518, tz = 519, n0 = 35044, ur = 35048, N9 = 35040, Q9 = 35045, z9 = 35049, G9 = 35041, H9 = 35046, V9 = 35050, j9 = 35042, W9 = "100", hw = "300 es", uw = 1035, Uc = 2e3, s0 = 2001;
|
|
31
31
|
let Ss = class {
|
|
32
32
|
addEventListener(e, t) {
|
|
33
33
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -65,7 +65,7 @@ let Ss = class {
|
|
|
65
65
|
const tr = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
|
|
66
66
|
let Z2 = 1234567;
|
|
67
67
|
const qd = Math.PI / 180, Qg = 180 / Math.PI;
|
|
68
|
-
function
|
|
68
|
+
function Do() {
|
|
69
69
|
const s = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
|
|
70
70
|
return (tr[s & 255] + tr[s >> 8 & 255] + tr[s >> 16 & 255] + tr[s >> 24 & 255] + "-" + tr[e & 255] + tr[e >> 8 & 255] + "-" + tr[e >> 16 & 15 | 64] + tr[e >> 24 & 255] + "-" + tr[t & 63 | 128] + tr[t >> 8 & 255] + "-" + tr[t >> 16 & 255] + tr[t >> 24 & 255] + tr[i & 255] + tr[i >> 8 & 255] + tr[i >> 16 & 255] + tr[i >> 24 & 255]).toLowerCase();
|
|
71
71
|
}
|
|
@@ -190,10 +190,10 @@ function Xt(s, e) {
|
|
|
190
190
|
throw new Error("Invalid component type.");
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const os = {
|
|
194
194
|
DEG2RAD: qd,
|
|
195
195
|
RAD2DEG: Qg,
|
|
196
|
-
generateUUID:
|
|
196
|
+
generateUUID: Do,
|
|
197
197
|
clamp: En,
|
|
198
198
|
euclideanModulo: TR,
|
|
199
199
|
mapLinear: q9,
|
|
@@ -746,7 +746,7 @@ let Yf, BR = class {
|
|
|
746
746
|
}
|
|
747
747
|
}, l6 = 0, jl = class {
|
|
748
748
|
constructor(e = null) {
|
|
749
|
-
this.isSource = !0, Object.defineProperty(this, "id", { value: l6++ }), this.uuid =
|
|
749
|
+
this.isSource = !0, Object.defineProperty(this, "id", { value: l6++ }), this.uuid = Do(), this.data = e, this.dataReady = !0, this.version = 0;
|
|
750
750
|
}
|
|
751
751
|
set needsUpdate(e) {
|
|
752
752
|
e === !0 && this.version++;
|
|
@@ -782,7 +782,7 @@ function TE(s) {
|
|
|
782
782
|
}
|
|
783
783
|
let h6 = 0, jt = class bx extends Ss {
|
|
784
784
|
constructor(e = bx.DEFAULT_IMAGE, t = bx.DEFAULT_MAPPING, i = _s, n = _s, r = Tt, o = Nr, a = _i, c = pi, l = bx.DEFAULT_ANISOTROPY, h = gr) {
|
|
785
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: h6++ }), this.uuid =
|
|
785
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: h6++ }), this.uuid = Do(), this.name = "", this.source = new jl(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = n, this.magFilter = r, this.minFilter = o, this.anisotropy = l, this.format = a, this.internalFormat = null, this.type = c, this.offset = new te(0, 0), this.repeat = new te(1, 1), this.center = new te(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Ft(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
|
|
786
786
|
}
|
|
787
787
|
get image() {
|
|
788
788
|
return this.source.data;
|
|
@@ -2508,7 +2508,7 @@ let Ar = class {
|
|
|
2508
2508
|
const rk = /* @__PURE__ */ new C(), ep = /* @__PURE__ */ new Ee(), hl = /* @__PURE__ */ new Ce(), Xv = /* @__PURE__ */ new C(), Jm = /* @__PURE__ */ new C(), A6 = /* @__PURE__ */ new C(), y6 = /* @__PURE__ */ new Ee(), ok = /* @__PURE__ */ new C(1, 0, 0), ak = /* @__PURE__ */ new C(0, 1, 0), ck = /* @__PURE__ */ new C(0, 0, 1), v6 = { type: "added" }, b6 = { type: "removed" }, LE = { type: "childadded", child: null }, FE = { type: "childremoved", child: null };
|
|
2509
2509
|
let Ae = class _x extends Ss {
|
|
2510
2510
|
constructor() {
|
|
2511
|
-
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: m6++ }), this.uuid =
|
|
2511
|
+
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: m6++ }), this.uuid = Do(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = _x.DEFAULT_UP.clone();
|
|
2512
2512
|
const e = new C(), t = new an(), i = new Ee(), n = new C(1, 1, 1);
|
|
2513
2513
|
function r() {
|
|
2514
2514
|
i.setFromEuler(t, !1);
|
|
@@ -3274,7 +3274,7 @@ const ir = /* @__PURE__ */ new we();
|
|
|
3274
3274
|
we.NAMES = uz;
|
|
3275
3275
|
let _6 = 0, Ut = class extends Ss {
|
|
3276
3276
|
constructor() {
|
|
3277
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: _6++ }), this.uuid =
|
|
3277
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: _6++ }), this.uuid = Do(), this.name = "", this.type = "Material", this.blending = pu, this.side = cs, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = tw, this.blendDst = iw, this.blendEquation = nu, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new we(0, 0, 0), this.blendAlpha = 0, this.depthFunc = ff, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = lw, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = Zh, this.stencilZFail = Zh, this.stencilZPass = Zh, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
3278
3278
|
}
|
|
3279
3279
|
get alphaTest() {
|
|
3280
3280
|
return this._alphaTest;
|
|
@@ -3320,7 +3320,7 @@ let _6 = 0, Ut = class extends Ss {
|
|
|
3320
3320
|
generator: "Material.toJSON"
|
|
3321
3321
|
}
|
|
3322
3322
|
};
|
|
3323
|
-
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapRotation !== void 0 && (i.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== pu && (i.blending = this.blending), this.side !==
|
|
3323
|
+
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapRotation !== void 0 && (i.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== pu && (i.blending = this.blending), this.side !== cs && (i.side = this.side), this.vertexColors === !0 && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = !0), this.blendSrc !== tw && (i.blendSrc = this.blendSrc), this.blendDst !== iw && (i.blendDst = this.blendDst), this.blendEquation !== nu && (i.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (i.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (i.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (i.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (i.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (i.blendAlpha = this.blendAlpha), this.depthFunc !== ff && (i.depthFunc = this.depthFunc), this.depthTest === !1 && (i.depthTest = this.depthTest), this.depthWrite === !1 && (i.depthWrite = this.depthWrite), this.colorWrite === !1 && (i.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (i.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== lw && (i.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (i.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (i.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== Zh && (i.stencilFail = this.stencilFail), this.stencilZFail !== Zh && (i.stencilZFail = this.stencilZFail), this.stencilZPass !== Zh && (i.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (i.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = !0), this.alphaToCoverage === !0 && (i.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = !0), this.forceSinglePass === !0 && (i.forceSinglePass = !0), this.wireframe === !0 && (i.wireframe = !0), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = !0), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
|
|
3324
3324
|
function n(r) {
|
|
3325
3325
|
const o = [];
|
|
3326
3326
|
for (const a in r) {
|
|
@@ -3615,10 +3615,10 @@ let pt = class extends tt {
|
|
|
3615
3615
|
super(new Float32Array(e), t, i);
|
|
3616
3616
|
}
|
|
3617
3617
|
}, T6 = 0;
|
|
3618
|
-
const
|
|
3618
|
+
const Wo = /* @__PURE__ */ new Ce(), HE = /* @__PURE__ */ new Ae(), np = /* @__PURE__ */ new C(), Ao = /* @__PURE__ */ new Ei(), Km = /* @__PURE__ */ new Ei(), fs = /* @__PURE__ */ new C();
|
|
3619
3619
|
let Mt = class dz extends Ss {
|
|
3620
3620
|
constructor() {
|
|
3621
|
-
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: T6++ }), this.uuid =
|
|
3621
|
+
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: T6++ }), this.uuid = Do(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
3622
3622
|
}
|
|
3623
3623
|
getIndex() {
|
|
3624
3624
|
return this.index;
|
|
@@ -3663,22 +3663,22 @@ let Mt = class dz extends Ss {
|
|
|
3663
3663
|
return n !== void 0 && (n.transformDirection(e), n.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
3664
3664
|
}
|
|
3665
3665
|
applyQuaternion(e) {
|
|
3666
|
-
return
|
|
3666
|
+
return Wo.makeRotationFromQuaternion(e), this.applyMatrix4(Wo), this;
|
|
3667
3667
|
}
|
|
3668
3668
|
rotateX(e) {
|
|
3669
|
-
return
|
|
3669
|
+
return Wo.makeRotationX(e), this.applyMatrix4(Wo), this;
|
|
3670
3670
|
}
|
|
3671
3671
|
rotateY(e) {
|
|
3672
|
-
return
|
|
3672
|
+
return Wo.makeRotationY(e), this.applyMatrix4(Wo), this;
|
|
3673
3673
|
}
|
|
3674
3674
|
rotateZ(e) {
|
|
3675
|
-
return
|
|
3675
|
+
return Wo.makeRotationZ(e), this.applyMatrix4(Wo), this;
|
|
3676
3676
|
}
|
|
3677
3677
|
translate(e, t, i) {
|
|
3678
|
-
return
|
|
3678
|
+
return Wo.makeTranslation(e, t, i), this.applyMatrix4(Wo), this;
|
|
3679
3679
|
}
|
|
3680
3680
|
scale(e, t, i) {
|
|
3681
|
-
return
|
|
3681
|
+
return Wo.makeScale(e, t, i), this.applyMatrix4(Wo), this;
|
|
3682
3682
|
}
|
|
3683
3683
|
lookAt(e) {
|
|
3684
3684
|
return HE.lookAt(e), HE.updateMatrix(), this.applyMatrix4(HE.matrix), this;
|
|
@@ -4005,7 +4005,7 @@ let ge = class extends Ae {
|
|
|
4005
4005
|
};
|
|
4006
4006
|
function B6(s, e, t, i, n, r, o, a) {
|
|
4007
4007
|
let c;
|
|
4008
|
-
if (e.side === mn ? c = i.intersectTriangle(o, r, n, !0, a) : c = i.intersectTriangle(n, r, o, e.side ===
|
|
4008
|
+
if (e.side === mn ? c = i.intersectTriangle(o, r, n, !0, a) : c = i.intersectTriangle(n, r, o, e.side === cs, a), c === null)
|
|
4009
4009
|
return null;
|
|
4010
4010
|
nb.copy(a), nb.applyMatrix4(s.matrixWorld);
|
|
4011
4011
|
const l = t.ray.origin.distanceTo(nb);
|
|
@@ -4689,7 +4689,7 @@ function L6(s, e) {
|
|
|
4689
4689
|
update: c
|
|
4690
4690
|
};
|
|
4691
4691
|
}
|
|
4692
|
-
class
|
|
4692
|
+
class Jn extends Mt {
|
|
4693
4693
|
constructor(e = 1, t = 1, i = 1, n = 1) {
|
|
4694
4694
|
super(), this.type = "PlaneGeometry", this.parameters = {
|
|
4695
4695
|
width: e,
|
|
@@ -4716,7 +4716,7 @@ class Yn extends Mt {
|
|
|
4716
4716
|
return super.copy(e), this.parameters = Object.assign({}, e.parameters), this;
|
|
4717
4717
|
}
|
|
4718
4718
|
static fromJSON(e) {
|
|
4719
|
-
return new
|
|
4719
|
+
return new Jn(e.width, e.height, e.widthSegments, e.heightSegments);
|
|
4720
4720
|
}
|
|
4721
4721
|
}
|
|
4722
4722
|
var F6 = `#ifdef USE_ALPHAHASH
|
|
@@ -8840,13 +8840,13 @@ function yq(s, e, t, i, n, r, o) {
|
|
|
8840
8840
|
return this.uniforms.envMap.value;
|
|
8841
8841
|
}
|
|
8842
8842
|
}), n.update(h)), $u.copy(A.backgroundRotation), $u.x *= -1, $u.y *= -1, $u.z *= -1, v.isCubeTexture && v.isRenderTargetTexture === !1 && ($u.y *= -1, $u.z *= -1), h.material.uniforms.envMap.value = v, h.material.uniforms.flipEnvMap.value = v.isCubeTexture && v.isRenderTargetTexture === !1 ? -1 : 1, h.material.uniforms.backgroundBlurriness.value = A.backgroundBlurriness, h.material.uniforms.backgroundIntensity.value = A.backgroundIntensity, h.material.uniforms.backgroundRotation.value.setFromMatrix4(Aq.makeRotationFromEuler($u)), h.material.toneMapped = bi.getTransfer(v.colorSpace) !== zi, (d !== v || f !== v.version || p !== s.toneMapping) && (h.material.needsUpdate = !0, d = v, f = v.version, p = s.toneMapping), h.layers.enableAll(), m.unshift(h, h.geometry, h.material, 0, 0, null)) : v && v.isTexture && (l === void 0 && (l = new ge(
|
|
8843
|
-
new
|
|
8843
|
+
new Jn(2, 2),
|
|
8844
8844
|
new Pt({
|
|
8845
8845
|
name: "BackgroundMaterial",
|
|
8846
8846
|
uniforms: zg(js.background.uniforms),
|
|
8847
8847
|
vertexShader: js.background.vertexShader,
|
|
8848
8848
|
fragmentShader: js.background.fragmentShader,
|
|
8849
|
-
side:
|
|
8849
|
+
side: cs,
|
|
8850
8850
|
depthTest: !1,
|
|
8851
8851
|
depthWrite: !1,
|
|
8852
8852
|
fog: !1
|
|
@@ -10136,7 +10136,7 @@ function lm(s, e, t) {
|
|
|
10136
10136
|
}
|
|
10137
10137
|
return r;
|
|
10138
10138
|
}
|
|
10139
|
-
function
|
|
10139
|
+
function ls(s, e) {
|
|
10140
10140
|
if (s.length !== e.length)
|
|
10141
10141
|
return !1;
|
|
10142
10142
|
for (let t = 0, i = s.length; t < i; t++)
|
|
@@ -10144,7 +10144,7 @@ function cs(s, e) {
|
|
|
10144
10144
|
return !1;
|
|
10145
10145
|
return !0;
|
|
10146
10146
|
}
|
|
10147
|
-
function
|
|
10147
|
+
function hs(s, e) {
|
|
10148
10148
|
for (let t = 0, i = e.length; t < i; t++)
|
|
10149
10149
|
s[t] = e[t];
|
|
10150
10150
|
}
|
|
@@ -10164,9 +10164,9 @@ function Oq(s, e) {
|
|
|
10164
10164
|
if (e.x !== void 0)
|
|
10165
10165
|
(t[0] !== e.x || t[1] !== e.y) && (s.uniform2f(this.addr, e.x, e.y), t[0] = e.x, t[1] = e.y);
|
|
10166
10166
|
else {
|
|
10167
|
-
if (
|
|
10167
|
+
if (ls(t, e))
|
|
10168
10168
|
return;
|
|
10169
|
-
s.uniform2fv(this.addr, e),
|
|
10169
|
+
s.uniform2fv(this.addr, e), hs(t, e);
|
|
10170
10170
|
}
|
|
10171
10171
|
}
|
|
10172
10172
|
function Lq(s, e) {
|
|
@@ -10176,9 +10176,9 @@ function Lq(s, e) {
|
|
|
10176
10176
|
else if (e.r !== void 0)
|
|
10177
10177
|
(t[0] !== e.r || t[1] !== e.g || t[2] !== e.b) && (s.uniform3f(this.addr, e.r, e.g, e.b), t[0] = e.r, t[1] = e.g, t[2] = e.b);
|
|
10178
10178
|
else {
|
|
10179
|
-
if (
|
|
10179
|
+
if (ls(t, e))
|
|
10180
10180
|
return;
|
|
10181
|
-
s.uniform3fv(this.addr, e),
|
|
10181
|
+
s.uniform3fv(this.addr, e), hs(t, e);
|
|
10182
10182
|
}
|
|
10183
10183
|
}
|
|
10184
10184
|
function Fq(s, e) {
|
|
@@ -10186,45 +10186,45 @@ function Fq(s, e) {
|
|
|
10186
10186
|
if (e.x !== void 0)
|
|
10187
10187
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z || t[3] !== e.w) && (s.uniform4f(this.addr, e.x, e.y, e.z, e.w), t[0] = e.x, t[1] = e.y, t[2] = e.z, t[3] = e.w);
|
|
10188
10188
|
else {
|
|
10189
|
-
if (
|
|
10189
|
+
if (ls(t, e))
|
|
10190
10190
|
return;
|
|
10191
|
-
s.uniform4fv(this.addr, e),
|
|
10191
|
+
s.uniform4fv(this.addr, e), hs(t, e);
|
|
10192
10192
|
}
|
|
10193
10193
|
}
|
|
10194
10194
|
function Uq(s, e) {
|
|
10195
10195
|
const t = this.cache, i = e.elements;
|
|
10196
10196
|
if (i === void 0) {
|
|
10197
|
-
if (
|
|
10197
|
+
if (ls(t, e))
|
|
10198
10198
|
return;
|
|
10199
|
-
s.uniformMatrix2fv(this.addr, !1, e),
|
|
10199
|
+
s.uniformMatrix2fv(this.addr, !1, e), hs(t, e);
|
|
10200
10200
|
} else {
|
|
10201
|
-
if (
|
|
10201
|
+
if (ls(t, i))
|
|
10202
10202
|
return;
|
|
10203
|
-
Mk.set(i), s.uniformMatrix2fv(this.addr, !1, Mk),
|
|
10203
|
+
Mk.set(i), s.uniformMatrix2fv(this.addr, !1, Mk), hs(t, i);
|
|
10204
10204
|
}
|
|
10205
10205
|
}
|
|
10206
10206
|
function Nq(s, e) {
|
|
10207
10207
|
const t = this.cache, i = e.elements;
|
|
10208
10208
|
if (i === void 0) {
|
|
10209
|
-
if (
|
|
10209
|
+
if (ls(t, e))
|
|
10210
10210
|
return;
|
|
10211
|
-
s.uniformMatrix3fv(this.addr, !1, e),
|
|
10211
|
+
s.uniformMatrix3fv(this.addr, !1, e), hs(t, e);
|
|
10212
10212
|
} else {
|
|
10213
|
-
if (
|
|
10213
|
+
if (ls(t, i))
|
|
10214
10214
|
return;
|
|
10215
|
-
Ik.set(i), s.uniformMatrix3fv(this.addr, !1, Ik),
|
|
10215
|
+
Ik.set(i), s.uniformMatrix3fv(this.addr, !1, Ik), hs(t, i);
|
|
10216
10216
|
}
|
|
10217
10217
|
}
|
|
10218
10218
|
function Qq(s, e) {
|
|
10219
10219
|
const t = this.cache, i = e.elements;
|
|
10220
10220
|
if (i === void 0) {
|
|
10221
|
-
if (
|
|
10221
|
+
if (ls(t, e))
|
|
10222
10222
|
return;
|
|
10223
|
-
s.uniformMatrix4fv(this.addr, !1, e),
|
|
10223
|
+
s.uniformMatrix4fv(this.addr, !1, e), hs(t, e);
|
|
10224
10224
|
} else {
|
|
10225
|
-
if (
|
|
10225
|
+
if (ls(t, i))
|
|
10226
10226
|
return;
|
|
10227
|
-
Ek.set(i), s.uniformMatrix4fv(this.addr, !1, Ek),
|
|
10227
|
+
Ek.set(i), s.uniformMatrix4fv(this.addr, !1, Ek), hs(t, i);
|
|
10228
10228
|
}
|
|
10229
10229
|
}
|
|
10230
10230
|
function zq(s, e) {
|
|
@@ -10236,9 +10236,9 @@ function Gq(s, e) {
|
|
|
10236
10236
|
if (e.x !== void 0)
|
|
10237
10237
|
(t[0] !== e.x || t[1] !== e.y) && (s.uniform2i(this.addr, e.x, e.y), t[0] = e.x, t[1] = e.y);
|
|
10238
10238
|
else {
|
|
10239
|
-
if (
|
|
10239
|
+
if (ls(t, e))
|
|
10240
10240
|
return;
|
|
10241
|
-
s.uniform2iv(this.addr, e),
|
|
10241
|
+
s.uniform2iv(this.addr, e), hs(t, e);
|
|
10242
10242
|
}
|
|
10243
10243
|
}
|
|
10244
10244
|
function Hq(s, e) {
|
|
@@ -10246,9 +10246,9 @@ function Hq(s, e) {
|
|
|
10246
10246
|
if (e.x !== void 0)
|
|
10247
10247
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z) && (s.uniform3i(this.addr, e.x, e.y, e.z), t[0] = e.x, t[1] = e.y, t[2] = e.z);
|
|
10248
10248
|
else {
|
|
10249
|
-
if (
|
|
10249
|
+
if (ls(t, e))
|
|
10250
10250
|
return;
|
|
10251
|
-
s.uniform3iv(this.addr, e),
|
|
10251
|
+
s.uniform3iv(this.addr, e), hs(t, e);
|
|
10252
10252
|
}
|
|
10253
10253
|
}
|
|
10254
10254
|
function Vq(s, e) {
|
|
@@ -10256,9 +10256,9 @@ function Vq(s, e) {
|
|
|
10256
10256
|
if (e.x !== void 0)
|
|
10257
10257
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z || t[3] !== e.w) && (s.uniform4i(this.addr, e.x, e.y, e.z, e.w), t[0] = e.x, t[1] = e.y, t[2] = e.z, t[3] = e.w);
|
|
10258
10258
|
else {
|
|
10259
|
-
if (
|
|
10259
|
+
if (ls(t, e))
|
|
10260
10260
|
return;
|
|
10261
|
-
s.uniform4iv(this.addr, e),
|
|
10261
|
+
s.uniform4iv(this.addr, e), hs(t, e);
|
|
10262
10262
|
}
|
|
10263
10263
|
}
|
|
10264
10264
|
function jq(s, e) {
|
|
@@ -10270,9 +10270,9 @@ function Wq(s, e) {
|
|
|
10270
10270
|
if (e.x !== void 0)
|
|
10271
10271
|
(t[0] !== e.x || t[1] !== e.y) && (s.uniform2ui(this.addr, e.x, e.y), t[0] = e.x, t[1] = e.y);
|
|
10272
10272
|
else {
|
|
10273
|
-
if (
|
|
10273
|
+
if (ls(t, e))
|
|
10274
10274
|
return;
|
|
10275
|
-
s.uniform2uiv(this.addr, e),
|
|
10275
|
+
s.uniform2uiv(this.addr, e), hs(t, e);
|
|
10276
10276
|
}
|
|
10277
10277
|
}
|
|
10278
10278
|
function qq(s, e) {
|
|
@@ -10280,9 +10280,9 @@ function qq(s, e) {
|
|
|
10280
10280
|
if (e.x !== void 0)
|
|
10281
10281
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z) && (s.uniform3ui(this.addr, e.x, e.y, e.z), t[0] = e.x, t[1] = e.y, t[2] = e.z);
|
|
10282
10282
|
else {
|
|
10283
|
-
if (
|
|
10283
|
+
if (ls(t, e))
|
|
10284
10284
|
return;
|
|
10285
|
-
s.uniform3uiv(this.addr, e),
|
|
10285
|
+
s.uniform3uiv(this.addr, e), hs(t, e);
|
|
10286
10286
|
}
|
|
10287
10287
|
}
|
|
10288
10288
|
function Xq(s, e) {
|
|
@@ -10290,9 +10290,9 @@ function Xq(s, e) {
|
|
|
10290
10290
|
if (e.x !== void 0)
|
|
10291
10291
|
(t[0] !== e.x || t[1] !== e.y || t[2] !== e.z || t[3] !== e.w) && (s.uniform4ui(this.addr, e.x, e.y, e.z, e.w), t[0] = e.x, t[1] = e.y, t[2] = e.z, t[3] = e.w);
|
|
10292
10292
|
else {
|
|
10293
|
-
if (
|
|
10293
|
+
if (ls(t, e))
|
|
10294
10294
|
return;
|
|
10295
|
-
s.uniform4uiv(this.addr, e),
|
|
10295
|
+
s.uniform4uiv(this.addr, e), hs(t, e);
|
|
10296
10296
|
}
|
|
10297
10297
|
}
|
|
10298
10298
|
function Yq(s, e, t) {
|
|
@@ -10424,25 +10424,25 @@ function p7(s, e) {
|
|
|
10424
10424
|
}
|
|
10425
10425
|
function g7(s, e, t) {
|
|
10426
10426
|
const i = this.cache, n = e.length, r = wC(t, n);
|
|
10427
|
-
|
|
10427
|
+
ls(i, r) || (s.uniform1iv(this.addr, r), hs(i, r));
|
|
10428
10428
|
for (let o = 0; o !== n; ++o)
|
|
10429
10429
|
t.setTexture2D(e[o] || gz, r[o]);
|
|
10430
10430
|
}
|
|
10431
10431
|
function m7(s, e, t) {
|
|
10432
10432
|
const i = this.cache, n = e.length, r = wC(t, n);
|
|
10433
|
-
|
|
10433
|
+
ls(i, r) || (s.uniform1iv(this.addr, r), hs(i, r));
|
|
10434
10434
|
for (let o = 0; o !== n; ++o)
|
|
10435
10435
|
t.setTexture3D(e[o] || yz, r[o]);
|
|
10436
10436
|
}
|
|
10437
10437
|
function A7(s, e, t) {
|
|
10438
10438
|
const i = this.cache, n = e.length, r = wC(t, n);
|
|
10439
|
-
|
|
10439
|
+
ls(i, r) || (s.uniform1iv(this.addr, r), hs(i, r));
|
|
10440
10440
|
for (let o = 0; o !== n; ++o)
|
|
10441
10441
|
t.setTextureCube(e[o] || vz, r[o]);
|
|
10442
10442
|
}
|
|
10443
10443
|
function y7(s, e, t) {
|
|
10444
10444
|
const i = this.cache, n = e.length, r = wC(t, n);
|
|
10445
|
-
|
|
10445
|
+
ls(i, r) || (s.uniform1iv(this.addr, r), hs(i, r));
|
|
10446
10446
|
for (let o = 0; o !== n; ++o)
|
|
10447
10447
|
t.setTexture2DArray(e[o] || Az, r[o]);
|
|
10448
10448
|
}
|
|
@@ -11820,7 +11820,7 @@ void main() {
|
|
|
11820
11820
|
}`;
|
|
11821
11821
|
function oX(s, e, t) {
|
|
11822
11822
|
let i = new gf();
|
|
11823
|
-
const n = new te(), r = new te(), o = new et(), a = new j0({ depthPacking: bC }), c = new LR(), l = {}, h = t.maxTextureSize, d = { [
|
|
11823
|
+
const n = new te(), r = new te(), o = new et(), a = new j0({ depthPacking: bC }), c = new LR(), l = {}, h = t.maxTextureSize, d = { [cs]: mn, [mn]: cs, [gi]: gi }, f = new Pt({
|
|
11824
11824
|
defines: {
|
|
11825
11825
|
VSM_SAMPLES: 8
|
|
11826
11826
|
},
|
|
@@ -13118,7 +13118,7 @@ class dX {
|
|
|
13118
13118
|
depthHeight: { value: i.w }
|
|
13119
13119
|
}
|
|
13120
13120
|
});
|
|
13121
|
-
this.mesh = new ge(new
|
|
13121
|
+
this.mesh = new ge(new Jn(20, 20), n);
|
|
13122
13122
|
}
|
|
13123
13123
|
e.render(this.mesh, t);
|
|
13124
13124
|
}
|
|
@@ -13716,7 +13716,7 @@ class hh {
|
|
|
13716
13716
|
Ht.render(Ze, wt);
|
|
13717
13717
|
};
|
|
13718
13718
|
function Zt(B, z, V) {
|
|
13719
|
-
B.transparent === !0 && B.side === gi && B.forceSinglePass === !1 ? (B.side = mn, B.needsUpdate = !0, Jt(B, z, V), B.side =
|
|
13719
|
+
B.transparent === !0 && B.side === gi && B.forceSinglePass === !1 ? (B.side = mn, B.needsUpdate = !0, Jt(B, z, V), B.side = cs, B.needsUpdate = !0, Jt(B, z, V), B.side = gi) : Jt(B, z, V);
|
|
13720
13720
|
}
|
|
13721
13721
|
this.compile = function(B, z, V = null) {
|
|
13722
13722
|
V === null && (V = B), m = lt.get(V), m.init(), b.push(m), V.traverseVisible(function(J) {
|
|
@@ -13851,7 +13851,7 @@ class hh {
|
|
|
13851
13851
|
}
|
|
13852
13852
|
}
|
|
13853
13853
|
function _h(B, z, V, Y, J, fe) {
|
|
13854
|
-
B.onBeforeRender(v, z, V, Y, J, fe), B.modelViewMatrix.multiplyMatrices(V.matrixWorldInverse, B.matrixWorld), B.normalMatrix.getNormalMatrix(B.modelViewMatrix), J.onBeforeRender(v, z, V, Y, B, fe), J.transparent === !0 && J.side === gi && J.forceSinglePass === !1 ? (J.side = mn, J.needsUpdate = !0, v.renderBufferDirect(V, z, Y, J, B, fe), J.side =
|
|
13854
|
+
B.onBeforeRender(v, z, V, Y, J, fe), B.modelViewMatrix.multiplyMatrices(V.matrixWorldInverse, B.matrixWorld), B.normalMatrix.getNormalMatrix(B.modelViewMatrix), J.onBeforeRender(v, z, V, Y, B, fe), J.transparent === !0 && J.side === gi && J.forceSinglePass === !1 ? (J.side = mn, J.needsUpdate = !0, v.renderBufferDirect(V, z, Y, J, B, fe), J.side = cs, J.needsUpdate = !0, v.renderBufferDirect(V, z, Y, J, B, fe), J.side = gi) : v.renderBufferDirect(V, z, Y, J, B, fe), B.onAfterRender(v, z, V, Y, J, fe);
|
|
13855
13855
|
}
|
|
13856
13856
|
function Jt(B, z, V) {
|
|
13857
13857
|
z.isScene !== !0 && (z = gt);
|
|
@@ -14091,7 +14091,7 @@ class yr extends Ae {
|
|
|
14091
14091
|
}
|
|
14092
14092
|
let W0 = class {
|
|
14093
14093
|
constructor(e, t) {
|
|
14094
|
-
this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = n0, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.version = 0, this.uuid =
|
|
14094
|
+
this.isInterleavedBuffer = !0, this.array = e, this.stride = t, this.count = e !== void 0 ? e.length / t : 0, this.usage = n0, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.version = 0, this.uuid = Do();
|
|
14095
14095
|
}
|
|
14096
14096
|
onUploadCallback() {
|
|
14097
14097
|
}
|
|
@@ -14123,7 +14123,7 @@ let W0 = class {
|
|
|
14123
14123
|
return this.array.set(e, t), this;
|
|
14124
14124
|
}
|
|
14125
14125
|
clone(e) {
|
|
14126
|
-
e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid =
|
|
14126
|
+
e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Do()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer);
|
|
14127
14127
|
const t = new this.array.constructor(e.arrayBuffers[this.array.buffer._uuid]), i = new this.constructor(t, this.stride);
|
|
14128
14128
|
return i.setUsage(this.usage), i;
|
|
14129
14129
|
}
|
|
@@ -14131,7 +14131,7 @@ let W0 = class {
|
|
|
14131
14131
|
return this.onUploadCallback = e, this;
|
|
14132
14132
|
}
|
|
14133
14133
|
toJSON(e) {
|
|
14134
|
-
return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid =
|
|
14134
|
+
return e.arrayBuffers === void 0 && (e.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Do()), e.arrayBuffers[this.array.buffer._uuid] === void 0 && (e.arrayBuffers[this.array.buffer._uuid] = Array.from(new Uint32Array(this.array.buffer))), {
|
|
14135
14135
|
uuid: this.uuid,
|
|
14136
14136
|
buffer: this.array.buffer._uuid,
|
|
14137
14137
|
type: this.array.constructor.name,
|
|
@@ -14140,7 +14140,7 @@ let W0 = class {
|
|
|
14140
14140
|
}
|
|
14141
14141
|
};
|
|
14142
14142
|
const Ir = /* @__PURE__ */ new C();
|
|
14143
|
-
let
|
|
14143
|
+
let To = class wz {
|
|
14144
14144
|
constructor(e, t, i, n = !1) {
|
|
14145
14145
|
this.isInterleavedBufferAttribute = !0, this.name = "", this.data = e, this.itemSize = t, this.offset = i, this.normalized = n;
|
|
14146
14146
|
}
|
|
@@ -14286,7 +14286,7 @@ let UR = class extends Ae {
|
|
|
14286
14286
|
0,
|
|
14287
14287
|
1
|
|
14288
14288
|
]), i = new W0(t, 5);
|
|
14289
|
-
hp.setIndex([0, 1, 2, 0, 2, 3]), hp.setAttribute("position", new
|
|
14289
|
+
hp.setIndex([0, 1, 2, 0, 2, 3]), hp.setAttribute("position", new To(i, 3, 0, !1)), hp.setAttribute("uv", new To(i, 2, 3, !1));
|
|
14290
14290
|
}
|
|
14291
14291
|
this.geometry = hp, this.material = e, this.center = new te(0.5, 0.5);
|
|
14292
14292
|
}
|
|
@@ -14403,7 +14403,7 @@ let NR = class extends Ae {
|
|
|
14403
14403
|
}
|
|
14404
14404
|
};
|
|
14405
14405
|
const Gk = /* @__PURE__ */ new C(), Hk = /* @__PURE__ */ new et(), Vk = /* @__PURE__ */ new et(), AX = /* @__PURE__ */ new C(), jk = /* @__PURE__ */ new Ce(), db = /* @__PURE__ */ new C(), $E = /* @__PURE__ */ new Mn(), Wk = /* @__PURE__ */ new Ce(), eI = /* @__PURE__ */ new lo();
|
|
14406
|
-
let
|
|
14406
|
+
let ko = class extends ge {
|
|
14407
14407
|
constructor(e, t) {
|
|
14408
14408
|
super(e, t), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = jM, this.bindMatrix = new Ce(), this.bindMatrixInverse = new Ce(), this.boundingBox = null, this.boundingSphere = null;
|
|
14409
14409
|
}
|
|
@@ -14472,7 +14472,7 @@ let Oo = class extends ge {
|
|
|
14472
14472
|
const qk = /* @__PURE__ */ new Ce(), yX = /* @__PURE__ */ new Ce();
|
|
14473
14473
|
let IC = class Sz {
|
|
14474
14474
|
constructor(e = [], t = []) {
|
|
14475
|
-
this.uuid =
|
|
14475
|
+
this.uuid = Do(), this.bones = e.slice(0), this.boneInverses = t, this.boneMatrices = null, this.boneTexture = null, this.init();
|
|
14476
14476
|
}
|
|
14477
14477
|
init() {
|
|
14478
14478
|
const e = this.bones, t = this.boneInverses;
|
|
@@ -15011,7 +15011,7 @@ let On = class extends Ae {
|
|
|
15011
15011
|
}
|
|
15012
15012
|
};
|
|
15013
15013
|
const tO = /* @__PURE__ */ new C(), iO = /* @__PURE__ */ new C();
|
|
15014
|
-
let
|
|
15014
|
+
let Uo = class extends On {
|
|
15015
15015
|
constructor(e, t) {
|
|
15016
15016
|
super(e, t), this.isLineSegments = !0, this.type = "LineSegments";
|
|
15017
15017
|
}
|
|
@@ -16249,7 +16249,7 @@ class JR extends Mt {
|
|
|
16249
16249
|
}
|
|
16250
16250
|
class Xd extends o0 {
|
|
16251
16251
|
constructor(e) {
|
|
16252
|
-
super(e), this.uuid =
|
|
16252
|
+
super(e), this.uuid = Do(), this.type = "Shape", this.holes = [];
|
|
16253
16253
|
}
|
|
16254
16254
|
getPointsHoles(e) {
|
|
16255
16255
|
const t = [];
|
|
@@ -17320,7 +17320,7 @@ var hO = /* @__PURE__ */ Object.freeze({
|
|
|
17320
17320
|
IcosahedronGeometry: LC,
|
|
17321
17321
|
LatheGeometry: X0,
|
|
17322
17322
|
OctahedronGeometry: ql,
|
|
17323
|
-
PlaneGeometry:
|
|
17323
|
+
PlaneGeometry: Jn,
|
|
17324
17324
|
PolyhedronGeometry: ku,
|
|
17325
17325
|
RingGeometry: Af,
|
|
17326
17326
|
ShapeGeometry: FC,
|
|
@@ -17937,7 +17937,7 @@ let sh = class extends oc {
|
|
|
17937
17937
|
sh.prototype.ValueTypeName = "vector";
|
|
17938
17938
|
let Gr = class {
|
|
17939
17939
|
constructor(e, t = -1, i, n = vC) {
|
|
17940
|
-
this.name = e, this.tracks = i, this.duration = t, this.blendMode = n, this.uuid =
|
|
17940
|
+
this.name = e, this.tracks = i, this.duration = t, this.blendMode = n, this.uuid = Do(), this.duration < 0 && this.resetDuration();
|
|
17941
17941
|
}
|
|
17942
17942
|
static parse(e) {
|
|
17943
17943
|
const t = [], i = e.tracks, n = 1 / (e.fps || 1);
|
|
@@ -18214,7 +18214,7 @@ let sY = class extends Error {
|
|
|
18214
18214
|
constructor(e, t) {
|
|
18215
18215
|
super(e), this.response = t;
|
|
18216
18216
|
}
|
|
18217
|
-
},
|
|
18217
|
+
}, as = class extends Ks {
|
|
18218
18218
|
constructor(e) {
|
|
18219
18219
|
super(e);
|
|
18220
18220
|
}
|
|
@@ -18324,7 +18324,7 @@ class rY extends Ks {
|
|
|
18324
18324
|
super(e);
|
|
18325
18325
|
}
|
|
18326
18326
|
load(e, t, i, n) {
|
|
18327
|
-
const r = this, o = new
|
|
18327
|
+
const r = this, o = new as(this.manager);
|
|
18328
18328
|
o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(e, function(a) {
|
|
18329
18329
|
try {
|
|
18330
18330
|
t(r.parse(JSON.parse(a)));
|
|
@@ -18347,7 +18347,7 @@ class oY extends Ks {
|
|
|
18347
18347
|
super(e);
|
|
18348
18348
|
}
|
|
18349
18349
|
load(e, t, i, n) {
|
|
18350
|
-
const r = this, o = [], a = new Vc(), c = new
|
|
18350
|
+
const r = this, o = [], a = new Vc(), c = new as(this.manager);
|
|
18351
18351
|
c.setPath(this.path), c.setResponseType("arraybuffer"), c.setRequestHeader(this.requestHeader), c.setWithCredentials(r.withCredentials);
|
|
18352
18352
|
let l = 0;
|
|
18353
18353
|
function h(d) {
|
|
@@ -18431,7 +18431,7 @@ class eP extends Ks {
|
|
|
18431
18431
|
super(e);
|
|
18432
18432
|
}
|
|
18433
18433
|
load(e, t, i, n) {
|
|
18434
|
-
const r = this, o = new ro(), a = new
|
|
18434
|
+
const r = this, o = new ro(), a = new as(this.manager);
|
|
18435
18435
|
return a.setResponseType("arraybuffer"), a.setRequestHeader(this.requestHeader), a.setPath(this.path), a.setWithCredentials(r.withCredentials), a.load(e, function(c) {
|
|
18436
18436
|
let l;
|
|
18437
18437
|
try {
|
|
@@ -18763,7 +18763,7 @@ class qC extends Ks {
|
|
|
18763
18763
|
super(e), this.textures = {};
|
|
18764
18764
|
}
|
|
18765
18765
|
load(e, t, i, n) {
|
|
18766
|
-
const r = this, o = new
|
|
18766
|
+
const r = this, o = new as(r.manager);
|
|
18767
18767
|
o.setPath(r.path), o.setRequestHeader(r.requestHeader), o.setWithCredentials(r.withCredentials), o.load(e, function(a) {
|
|
18768
18768
|
try {
|
|
18769
18769
|
t(r.parse(JSON.parse(a)));
|
|
@@ -18881,7 +18881,7 @@ class Kz extends Ks {
|
|
|
18881
18881
|
super(e);
|
|
18882
18882
|
}
|
|
18883
18883
|
load(e, t, i, n) {
|
|
18884
|
-
const r = this, o = new
|
|
18884
|
+
const r = this, o = new as(r.manager);
|
|
18885
18885
|
o.setPath(r.path), o.setRequestHeader(r.requestHeader), o.setWithCredentials(r.withCredentials), o.load(e, function(a) {
|
|
18886
18886
|
try {
|
|
18887
18887
|
t(r.parse(JSON.parse(a)));
|
|
@@ -18915,7 +18915,7 @@ class Kz extends Ks {
|
|
|
18915
18915
|
let y;
|
|
18916
18916
|
if (g.isInterleavedBufferAttribute) {
|
|
18917
18917
|
const m = n(e.data, g.data);
|
|
18918
|
-
y = new
|
|
18918
|
+
y = new To(m, g.itemSize, g.offset, g.normalized);
|
|
18919
18919
|
} else {
|
|
18920
18920
|
const m = rg(g.type, g.array), A = g.isInstancedBufferAttribute ? to : tt;
|
|
18921
18921
|
y = new A(m, g.itemSize, g.normalized);
|
|
@@ -18931,7 +18931,7 @@ class Kz extends Ks {
|
|
|
18931
18931
|
let v;
|
|
18932
18932
|
if (b.isInterleavedBufferAttribute) {
|
|
18933
18933
|
const _ = n(e.data, b.data);
|
|
18934
|
-
v = new
|
|
18934
|
+
v = new To(_, b.itemSize, b.offset, b.normalized);
|
|
18935
18935
|
} else {
|
|
18936
18936
|
const _ = rg(b.type, b.array);
|
|
18937
18937
|
v = new tt(_, b.itemSize, b.normalized);
|
|
@@ -18962,7 +18962,7 @@ class uY extends Ks {
|
|
|
18962
18962
|
load(e, t, i, n) {
|
|
18963
18963
|
const r = this, o = this.path === "" ? mu.extractUrlBase(e) : this.path;
|
|
18964
18964
|
this.resourcePath = this.resourcePath || o;
|
|
18965
|
-
const a = new
|
|
18965
|
+
const a = new as(this.manager);
|
|
18966
18966
|
a.setPath(this.path), a.setRequestHeader(this.requestHeader), a.setWithCredentials(this.withCredentials), a.load(e, function(c) {
|
|
18967
18967
|
let l = null;
|
|
18968
18968
|
try {
|
|
@@ -18982,7 +18982,7 @@ class uY extends Ks {
|
|
|
18982
18982
|
async loadAsync(e, t) {
|
|
18983
18983
|
const i = this, n = this.path === "" ? mu.extractUrlBase(e) : this.path;
|
|
18984
18984
|
this.resourcePath = this.resourcePath || n;
|
|
18985
|
-
const r = new
|
|
18985
|
+
const r = new as(this.manager);
|
|
18986
18986
|
r.setPath(this.path), r.setRequestHeader(this.requestHeader), r.setWithCredentials(this.withCredentials);
|
|
18987
18987
|
const o = await r.loadAsync(e, t), a = JSON.parse(o), c = a.metadata;
|
|
18988
18988
|
if (c === void 0 || c.type === void 0 || c.type.toLowerCase() === "geometry")
|
|
@@ -19212,7 +19212,7 @@ class uY extends Ks {
|
|
|
19212
19212
|
o = new Jz().fromJSON(e);
|
|
19213
19213
|
break;
|
|
19214
19214
|
case "SkinnedMesh":
|
|
19215
|
-
h = a(e.geometry), d = c(e.material), o = new
|
|
19215
|
+
h = a(e.geometry), d = c(e.material), o = new ko(h, d), e.bindMode !== void 0 && (o.bindMode = e.bindMode), e.bindMatrix !== void 0 && o.bindMatrix.fromArray(e.bindMatrix), e.skeleton !== void 0 && (o.skeleton = e.skeleton);
|
|
19216
19216
|
break;
|
|
19217
19217
|
case "Mesh":
|
|
19218
19218
|
h = a(e.geometry), d = c(e.material), o = new ge(h, d);
|
|
@@ -19245,7 +19245,7 @@ class uY extends Ks {
|
|
|
19245
19245
|
o = new zR(a(e.geometry), c(e.material));
|
|
19246
19246
|
break;
|
|
19247
19247
|
case "LineSegments":
|
|
19248
|
-
o = new
|
|
19248
|
+
o = new Uo(a(e.geometry), c(e.material));
|
|
19249
19249
|
break;
|
|
19250
19250
|
case "PointCloud":
|
|
19251
19251
|
case "Points":
|
|
@@ -19363,7 +19363,7 @@ class gw extends Ks {
|
|
|
19363
19363
|
super(e);
|
|
19364
19364
|
}
|
|
19365
19365
|
load(e, t, i, n) {
|
|
19366
|
-
const r = this, o = new
|
|
19366
|
+
const r = this, o = new as(this.manager);
|
|
19367
19367
|
o.setResponseType("arraybuffer"), o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(e, function(c) {
|
|
19368
19368
|
try {
|
|
19369
19369
|
const l = c.slice(0);
|
|
@@ -20069,7 +20069,7 @@ ai.prototype.SetterByBindingTypeAndVersioning = [
|
|
|
20069
20069
|
];
|
|
20070
20070
|
class EY {
|
|
20071
20071
|
constructor() {
|
|
20072
|
-
this.isAnimationObjectGroup = !0, this.uuid =
|
|
20072
|
+
this.isAnimationObjectGroup = !0, this.uuid = Do(), this._objects = Array.prototype.slice.call(arguments), this.nCachedObjects_ = 0;
|
|
20073
20073
|
const e = {};
|
|
20074
20074
|
this._indicesByUUID = e;
|
|
20075
20075
|
for (let i = 0, n = arguments.length; i !== n; ++i)
|
|
@@ -20988,7 +20988,7 @@ class DY extends Ae {
|
|
|
20988
20988
|
}
|
|
20989
20989
|
i.setAttribute("position", new pt(n, 3));
|
|
20990
20990
|
const r = new Un({ fog: !1, toneMapped: !1 });
|
|
20991
|
-
this.cone = new
|
|
20991
|
+
this.cone = new Uo(i, r), this.add(this.cone), this.update();
|
|
20992
20992
|
}
|
|
20993
20993
|
dispose() {
|
|
20994
20994
|
this.cone.geometry.dispose(), this.cone.material.dispose();
|
|
@@ -21000,7 +21000,7 @@ class DY extends Ae {
|
|
|
21000
21000
|
}
|
|
21001
21001
|
}
|
|
21002
21002
|
const Bh = /* @__PURE__ */ new C(), Ib = /* @__PURE__ */ new Ce(), hI = /* @__PURE__ */ new Ce();
|
|
21003
|
-
class kY extends
|
|
21003
|
+
class kY extends Uo {
|
|
21004
21004
|
constructor(e) {
|
|
21005
21005
|
const t = n4(e), i = new Mt(), n = [], r = [], o = new we(0, 0, 1), a = new we(0, 1, 0);
|
|
21006
21006
|
for (let l = 0; l < t.length; l++) {
|
|
@@ -21071,7 +21071,7 @@ class FY extends Ae {
|
|
|
21071
21071
|
this.light.updateWorldMatrix(!0, !1), e.lookAt(LY.setFromMatrixPosition(this.light.matrixWorld).negate());
|
|
21072
21072
|
}
|
|
21073
21073
|
}
|
|
21074
|
-
let KC = class extends
|
|
21074
|
+
let KC = class extends Uo {
|
|
21075
21075
|
constructor(e = 10, t = 10, i = 4473924, n = 8947848) {
|
|
21076
21076
|
i = new we(i), n = new we(n);
|
|
21077
21077
|
const r = t / 2, o = e / t, a = e / 2, c = [], l = [];
|
|
@@ -21089,7 +21089,7 @@ let KC = class extends No {
|
|
|
21089
21089
|
this.geometry.dispose(), this.material.dispose();
|
|
21090
21090
|
}
|
|
21091
21091
|
};
|
|
21092
|
-
class UY extends
|
|
21092
|
+
class UY extends Uo {
|
|
21093
21093
|
constructor(e = 10, t = 16, i = 8, n = 64, r = 4473924, o = 8947848) {
|
|
21094
21094
|
r = new we(r), o = new we(o);
|
|
21095
21095
|
const a = [], c = [];
|
|
@@ -21149,7 +21149,7 @@ class s4 extends Ae {
|
|
|
21149
21149
|
}
|
|
21150
21150
|
}
|
|
21151
21151
|
const Tb = /* @__PURE__ */ new C(), wn = /* @__PURE__ */ new H0();
|
|
21152
|
-
class r4 extends
|
|
21152
|
+
class r4 extends Uo {
|
|
21153
21153
|
constructor(e) {
|
|
21154
21154
|
const t = new Mt(), i = new Un({ color: 16777215, vertexColors: !0, toneMapped: !1 }), n = [], r = [], o = {};
|
|
21155
21155
|
a("n1", "n2"), a("n2", "n4"), a("n4", "n3"), a("n3", "n1"), a("f1", "f2"), a("f2", "f4"), a("f4", "f3"), a("f3", "f1"), a("n1", "f1"), a("n2", "f2"), a("n3", "f3"), a("n4", "f4"), a("p", "n1"), a("p", "n2"), a("p", "n3"), a("p", "n4"), a("u1", "u2"), a("u2", "u3"), a("u3", "u1"), a("c", "t"), a("p", "c"), a("cn1", "cn2"), a("cn3", "cn4"), a("cf1", "cf2"), a("cf3", "cf4");
|
|
@@ -21185,7 +21185,7 @@ function Rn(s, e, t, i, n, r, o) {
|
|
|
21185
21185
|
}
|
|
21186
21186
|
}
|
|
21187
21187
|
const Bb = /* @__PURE__ */ new Ei();
|
|
21188
|
-
class lP extends
|
|
21188
|
+
class lP extends Uo {
|
|
21189
21189
|
constructor(e, t = 16776960) {
|
|
21190
21190
|
const i = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), n = new Float32Array(8 * 3), r = new Mt();
|
|
21191
21191
|
r.setIndex(new tt(i, 1)), r.setAttribute("position", new tt(n, 3)), super(r, new Un({ color: t, toneMapped: !1 })), this.object = e, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
|
|
@@ -21206,7 +21206,7 @@ class lP extends No {
|
|
|
21206
21206
|
this.geometry.dispose(), this.material.dispose();
|
|
21207
21207
|
}
|
|
21208
21208
|
}
|
|
21209
|
-
class hP extends
|
|
21209
|
+
class hP extends Uo {
|
|
21210
21210
|
constructor(e, t = 16776960) {
|
|
21211
21211
|
const i = new Uint16Array([0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7]), n = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], r = new Mt();
|
|
21212
21212
|
r.setIndex(new tt(i, 1)), r.setAttribute("position", new pt(n, 3)), super(r, new Un({ color: t, toneMapped: !1 })), this.box = e, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
|
|
@@ -21264,7 +21264,7 @@ class QY extends Ae {
|
|
|
21264
21264
|
this.line.geometry.dispose(), this.line.material.dispose(), this.cone.geometry.dispose(), this.cone.material.dispose();
|
|
21265
21265
|
}
|
|
21266
21266
|
}
|
|
21267
|
-
let va = class extends
|
|
21267
|
+
let va = class extends Uo {
|
|
21268
21268
|
constructor(e = 1) {
|
|
21269
21269
|
const t = [
|
|
21270
21270
|
0,
|
|
@@ -21543,14 +21543,14 @@ const GY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21543
21543
|
Euler: an,
|
|
21544
21544
|
EventDispatcher: Ss,
|
|
21545
21545
|
ExtrudeGeometry: OC,
|
|
21546
|
-
FileLoader:
|
|
21546
|
+
FileLoader: as,
|
|
21547
21547
|
Float16BufferAttribute: M6,
|
|
21548
21548
|
Float32BufferAttribute: pt,
|
|
21549
21549
|
FloatType: Xi,
|
|
21550
21550
|
Fog: SC,
|
|
21551
21551
|
FogExp2: CC,
|
|
21552
21552
|
FramebufferTexture: SX,
|
|
21553
|
-
FrontSide:
|
|
21553
|
+
FrontSide: cs,
|
|
21554
21554
|
Frustum: gf,
|
|
21555
21555
|
GLBufferAttribute: BY,
|
|
21556
21556
|
GLSL1: W9,
|
|
@@ -21581,7 +21581,7 @@ const GY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21581
21581
|
Int8BufferAttribute: w6,
|
|
21582
21582
|
IntType: vR,
|
|
21583
21583
|
InterleavedBuffer: W0,
|
|
21584
|
-
InterleavedBufferAttribute:
|
|
21584
|
+
InterleavedBufferAttribute: To,
|
|
21585
21585
|
Interpolant: hm,
|
|
21586
21586
|
InterpolateDiscrete: Mu,
|
|
21587
21587
|
InterpolateLinear: Xc,
|
|
@@ -21607,7 +21607,7 @@ const GY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21607
21607
|
LineCurve3: Pz,
|
|
21608
21608
|
LineDashedMaterial: zz,
|
|
21609
21609
|
LineLoop: zR,
|
|
21610
|
-
LineSegments:
|
|
21610
|
+
LineSegments: Uo,
|
|
21611
21611
|
LinearDisplayP3ColorSpace: om,
|
|
21612
21612
|
LinearEncoding: kQ,
|
|
21613
21613
|
LinearFilter: Tt,
|
|
@@ -21630,7 +21630,7 @@ const GY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21630
21630
|
MOUSE: wd,
|
|
21631
21631
|
Material: Ut,
|
|
21632
21632
|
MaterialLoader: qC,
|
|
21633
|
-
MathUtils:
|
|
21633
|
+
MathUtils: os,
|
|
21634
21634
|
Matrix3: Ft,
|
|
21635
21635
|
Matrix4: Ce,
|
|
21636
21636
|
MaxEquation: ew,
|
|
@@ -21687,7 +21687,7 @@ const GY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21687
21687
|
Path: o0,
|
|
21688
21688
|
PerspectiveCamera: Qt,
|
|
21689
21689
|
Plane: Fr,
|
|
21690
|
-
PlaneGeometry:
|
|
21690
|
+
PlaneGeometry: Jn,
|
|
21691
21691
|
PlaneHelper: NY,
|
|
21692
21692
|
PointLight: Y0,
|
|
21693
21693
|
PointLightHelper: OY,
|
|
@@ -21768,7 +21768,7 @@ const GY = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21768
21768
|
ShortType: MQ,
|
|
21769
21769
|
Skeleton: IC,
|
|
21770
21770
|
SkeletonHelper: kY,
|
|
21771
|
-
SkinnedMesh:
|
|
21771
|
+
SkinnedMesh: ko,
|
|
21772
21772
|
Source: jl,
|
|
21773
21773
|
Sphere: Mn,
|
|
21774
21774
|
SphereGeometry: rc,
|
|
@@ -22492,7 +22492,7 @@ function hJ(s, e) {
|
|
|
22492
22492
|
}
|
|
22493
22493
|
return t.title = "Open the browser console (F12) for more information", t.innerHTML = e, t;
|
|
22494
22494
|
}
|
|
22495
|
-
let
|
|
22495
|
+
let Bo = null, Co = null, Qc = null, pI = !1, FO = null;
|
|
22496
22496
|
const g4 = "terminal", HA = ne("console"), uJ = ne("noerrors") || ne("noconsole");
|
|
22497
22497
|
HA && m4();
|
|
22498
22498
|
if (!uJ && (HA || oo())) {
|
|
@@ -22505,7 +22505,7 @@ Open this page to get the console: ` + e.toString());
|
|
|
22505
22505
|
if ((s || HA) && (rJ(), A4(), y4(!0), s)) {
|
|
22506
22506
|
const e = document.querySelector("needle-engine");
|
|
22507
22507
|
e == null || e.addEventListener("enter-ar", () => {
|
|
22508
|
-
(HA ||
|
|
22508
|
+
(HA || Bo || gP() > 0) && ne("noerrors");
|
|
22509
22509
|
}), e == null || e.addEventListener("exit-ar", () => {
|
|
22510
22510
|
mJ();
|
|
22511
22511
|
});
|
|
@@ -22513,14 +22513,14 @@ Open this page to get the console: ` + e.toString());
|
|
|
22513
22513
|
}
|
|
22514
22514
|
const IT = Symbol("consoleParent");
|
|
22515
22515
|
function m4() {
|
|
22516
|
-
if (
|
|
22517
|
-
|
|
22516
|
+
if (Bo !== null) {
|
|
22517
|
+
Bo.showSwitch();
|
|
22518
22518
|
return;
|
|
22519
22519
|
}
|
|
22520
22520
|
y4();
|
|
22521
22521
|
}
|
|
22522
22522
|
function dJ() {
|
|
22523
|
-
|
|
22523
|
+
Bo !== null && (Bo.hide(), Bo.hideSwitch());
|
|
22524
22524
|
}
|
|
22525
22525
|
function A4() {
|
|
22526
22526
|
FO || (FO = setInterval(fJ, 500));
|
|
@@ -22537,20 +22537,20 @@ function gJ() {
|
|
|
22537
22537
|
Qc && (Qc.removeAttribute("error"), Qc.innerText = g4);
|
|
22538
22538
|
}
|
|
22539
22539
|
function mJ() {
|
|
22540
|
-
|
|
22540
|
+
Co && Co[IT] && Co[IT].appendChild(Co);
|
|
22541
22541
|
}
|
|
22542
22542
|
function y4(s = !1) {
|
|
22543
|
-
if (
|
|
22543
|
+
if (Bo || pI)
|
|
22544
22544
|
return;
|
|
22545
22545
|
pI = !0;
|
|
22546
22546
|
const e = document.createElement("script");
|
|
22547
22547
|
e.onload = () => {
|
|
22548
|
-
pI = !1, A4(),
|
|
22548
|
+
pI = !1, A4(), Bo = new VConsole({
|
|
22549
22549
|
// defaultPlugins: ['system', 'network'],
|
|
22550
22550
|
pluginOrder: ["default", "needle-console"]
|
|
22551
22551
|
});
|
|
22552
22552
|
const t = globalThis["needle:codegen_files"];
|
|
22553
|
-
if (t && t.length > 0 &&
|
|
22553
|
+
if (t && t.length > 0 && Bo.addPlugin(AJ()), Co = vJ(), Co && (Co[IT] = Co.parentElement, Co.style.position = "absolute", Co.style.zIndex = Number.MAX_SAFE_INTEGER.toString()), Bo.setSwitchPosition(20, 30), Qc = yJ(), Qc) {
|
|
22554
22554
|
Qc.innerText = g4, Qc.addEventListener("click", gJ);
|
|
22555
22555
|
const i = document.createElement("style"), n = 40;
|
|
22556
22556
|
i.innerHTML = `
|
|
@@ -22611,7 +22611,7 @@ function y4(s = !1) {
|
|
|
22611
22611
|
#__vconsole .vc-mask {
|
|
22612
22612
|
overflow: hidden;
|
|
22613
22613
|
}
|
|
22614
|
-
`,
|
|
22614
|
+
`, Co == null || Co.prepend(i), s === !0 && gP() <= 0 && dJ(), console.log("🌵 Debug console has loaded");
|
|
22615
22615
|
}
|
|
22616
22616
|
}, e.src = "https://unpkg.com/vconsole@latest/dist/vconsole.min.js", document.body.appendChild(e);
|
|
22617
22617
|
}
|
|
@@ -22639,7 +22639,7 @@ function AJ() {
|
|
|
22639
22639
|
i.push({
|
|
22640
22640
|
name: "Open in new window ↗",
|
|
22641
22641
|
onClick: function(n) {
|
|
22642
|
-
window.open(s.fullUrl, "_blank"),
|
|
22642
|
+
window.open(s.fullUrl, "_blank"), Bo == null || Bo.hide();
|
|
22643
22643
|
}
|
|
22644
22644
|
}), i.push({
|
|
22645
22645
|
name: "Reload",
|
|
@@ -22673,8 +22673,8 @@ qa.o = (s, e) => Object.prototype.hasOwnProperty.call(s, e);
|
|
|
22673
22673
|
qa.r = (s) => {
|
|
22674
22674
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(s, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(s, "__esModule", { value: !0 });
|
|
22675
22675
|
};
|
|
22676
|
-
var
|
|
22677
|
-
qa.d(
|
|
22676
|
+
var Kn = {};
|
|
22677
|
+
qa.d(Kn, {
|
|
22678
22678
|
ti: () => (
|
|
22679
22679
|
/* reexport */
|
|
22680
22680
|
Ii
|
|
@@ -23016,7 +23016,7 @@ var EJ = (s) => {
|
|
|
23016
23016
|
var e = {};
|
|
23017
23017
|
return qa.d(e, s), e;
|
|
23018
23018
|
};
|
|
23019
|
-
const qe = EJ({ BackSide: () => mn, BufferAttribute: () => tt, BufferGeometry: () => Mt, Color: () => we, DoubleSide: () => gi, EventDispatcher: () => Ss, FileLoader: () =>
|
|
23019
|
+
const qe = EJ({ BackSide: () => mn, BufferAttribute: () => tt, BufferGeometry: () => Mt, Color: () => we, DoubleSide: () => gi, EventDispatcher: () => Ss, FileLoader: () => as, FrontSide: () => cs, LinearFilter: () => Tt, Mesh: () => ge, MeshBasicMaterial: () => $t, Object3D: () => Ae, Plane: () => Fr, PlaneGeometry: () => Jn, ShaderMaterial: () => Pt, Texture: () => jt, TextureLoader: () => Zl, Vector2: () => te, Vector3: () => C, Vector4: () => et });
|
|
23020
23020
|
class ln extends Ii {
|
|
23021
23021
|
/**
|
|
23022
23022
|
*
|
|
@@ -28814,7 +28814,7 @@ const sG = () => bw.update(), rG = {
|
|
|
28814
28814
|
};
|
|
28815
28815
|
typeof global < "u" && (global.ThreeMeshUI = rG);
|
|
28816
28816
|
const k$ = rG;
|
|
28817
|
-
var O$ =
|
|
28817
|
+
var O$ = Kn.ti, oG = Kn.nS, UP = Kn.eB, L$ = Kn.Yp, BT = Kn.VB, F$ = Kn.BC, U$ = Kn.zN, Cx = Kn.cV, N$ = Kn.hW, Q$ = Kn.k2, z$ = Kn.K6, G$ = Kn.M7, H$ = Kn.ls, V$ = Kn.Hi, NP = Kn.EY, j$ = Kn.MR, W$ = Kn.zf, Ui = Kn.Ay, aG = Kn.yo;
|
|
28818
28818
|
const qO = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28819
28819
|
__proto__: null,
|
|
28820
28820
|
BaseProperty: O$,
|
|
@@ -29192,7 +29192,7 @@ class Mc {
|
|
|
29192
29192
|
return null;
|
|
29193
29193
|
}
|
|
29194
29194
|
}
|
|
29195
|
-
u(Mc, "planeGeometry", new
|
|
29195
|
+
u(Mc, "planeGeometry", new Jn(2, 2, 1, 1)), u(Mc, "renderer"), u(Mc, "perspectiveCam", new Qt()), u(Mc, "scene", new yr()), u(Mc, "vertex", `
|
|
29196
29196
|
varying vec2 vUv;
|
|
29197
29197
|
void main(){
|
|
29198
29198
|
vUv = uv;
|
|
@@ -29529,13 +29529,13 @@ function zbe(s) {
|
|
|
29529
29529
|
DT = s;
|
|
29530
29530
|
}
|
|
29531
29531
|
const yG = ne("debugdefines");
|
|
29532
|
-
um('if(!globalThis[""3.38.0-alpha.
|
|
29532
|
+
um('if(!globalThis[""3.38.0-alpha.3""]) globalThis[""3.38.0-alpha.3""] = "0.0.0";');
|
|
29533
29533
|
um('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
29534
|
-
um('if(!globalThis[""
|
|
29535
|
-
um('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.38.0-alpha.
|
|
29534
|
+
um('if(!globalThis[""Thu May 30 2024 10:17:12 GMT+0200 (Central European Summer Time)""]) globalThis[""Thu May 30 2024 10:17:12 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
29535
|
+
um('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.38.0-alpha.3";');
|
|
29536
29536
|
um('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
29537
|
-
um('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
29538
|
-
const Va = "3.38.0-alpha.
|
|
29537
|
+
um('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu May 30 2024 10:17:12 GMT+0200 (Central European Summer Time)";');
|
|
29538
|
+
const Va = "3.38.0-alpha.3", zP = "undefined", vG = "Thu May 30 2024 10:17:12 GMT+0200 (Central European Summer Time)";
|
|
29539
29539
|
yG && console.log(`Engine version: ${Va} (generator: ${zP})
|
|
29540
29540
|
Project built at ${vG}`);
|
|
29541
29541
|
const yu = "needle_isActiveInHierarchy", Yp = "builtin_components", Ex = "needle_editor_guid";
|
|
@@ -30687,7 +30687,7 @@ const xL = /* @__PURE__ */ new uh().set(
|
|
|
30687
30687
|
toReference: (s) => s.convertSRGBToLinear().applyMatrix3(wL),
|
|
30688
30688
|
fromReference: (s) => s.applyMatrix3(xL).convertLinearToSRGB()
|
|
30689
30689
|
}
|
|
30690
|
-
}, yte = /* @__PURE__ */ new Set([co, GP]),
|
|
30690
|
+
}, yte = /* @__PURE__ */ new Set([co, GP]), _o = {
|
|
30691
30691
|
enabled: !0,
|
|
30692
30692
|
_workingColorSpace: co,
|
|
30693
30693
|
get workingColorSpace() {
|
|
@@ -30799,8 +30799,8 @@ function MI(s) {
|
|
|
30799
30799
|
} : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
|
|
30800
30800
|
}
|
|
30801
30801
|
let xte = 0;
|
|
30802
|
-
class
|
|
30803
|
-
constructor(e =
|
|
30802
|
+
class ss extends cS {
|
|
30803
|
+
constructor(e = ss.DEFAULT_IMAGE, t = ss.DEFAULT_MAPPING, i = Nd, n = Nd, r = b0, o = aS, a = lu, c = ca, l = ss.DEFAULT_ANISOTROPY, h = Sw) {
|
|
30804
30804
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: xte++ }), this.uuid = Xa(), this.name = "", this.source = new _te(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = n, this.magFilter = r, this.minFilter = o, this.anisotropy = l, this.format = a, this.internalFormat = null, this.type = c, this.offset = new yn(0, 0), this.repeat = new yn(1, 1), this.center = new yn(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new uh(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = h, this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
|
|
30805
30805
|
}
|
|
30806
30806
|
get image() {
|
|
@@ -30888,9 +30888,9 @@ class ns extends cS {
|
|
|
30888
30888
|
e === !0 && (this.version++, this.source.needsUpdate = !0);
|
|
30889
30889
|
}
|
|
30890
30890
|
}
|
|
30891
|
-
|
|
30892
|
-
|
|
30893
|
-
|
|
30891
|
+
ss.DEFAULT_IMAGE = null;
|
|
30892
|
+
ss.DEFAULT_MAPPING = CG;
|
|
30893
|
+
ss.DEFAULT_ANISOTROPY = 1;
|
|
30894
30894
|
class ha {
|
|
30895
30895
|
constructor(e = 0, t = 0, i = 0, n = 1) {
|
|
30896
30896
|
ha.prototype.isVector4 = !0, this.x = e, this.y = t, this.z = i, this.w = n;
|
|
@@ -31090,7 +31090,7 @@ class ha {
|
|
|
31090
31090
|
yield this.x, yield this.y, yield this.z, yield this.w;
|
|
31091
31091
|
}
|
|
31092
31092
|
}
|
|
31093
|
-
class wte extends
|
|
31093
|
+
class wte extends ss {
|
|
31094
31094
|
constructor(e = null, t = 1, i = 1, n = 1) {
|
|
31095
31095
|
super(null), this.isData3DTexture = !0, this.image = { data: e, width: t, height: i, depth: n }, this.magFilter = vf, this.minFilter = vf, this.wrapR = Nd, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
31096
31096
|
}
|
|
@@ -33035,19 +33035,19 @@ class qn {
|
|
|
33035
33035
|
return this.r = e, this.g = e, this.b = e, this;
|
|
33036
33036
|
}
|
|
33037
33037
|
setHex(e, t = fr) {
|
|
33038
|
-
return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255,
|
|
33038
|
+
return e = Math.floor(e), this.r = (e >> 16 & 255) / 255, this.g = (e >> 8 & 255) / 255, this.b = (e & 255) / 255, _o.toWorkingColorSpace(this, t), this;
|
|
33039
33039
|
}
|
|
33040
|
-
setRGB(e, t, i, n =
|
|
33041
|
-
return this.r = e, this.g = t, this.b = i,
|
|
33040
|
+
setRGB(e, t, i, n = _o.workingColorSpace) {
|
|
33041
|
+
return this.r = e, this.g = t, this.b = i, _o.toWorkingColorSpace(this, n), this;
|
|
33042
33042
|
}
|
|
33043
|
-
setHSL(e, t, i, n =
|
|
33043
|
+
setHSL(e, t, i, n = _o.workingColorSpace) {
|
|
33044
33044
|
if (e = HP(e, 1), t = pr(t, 0, 1), i = pr(i, 0, 1), t === 0)
|
|
33045
33045
|
this.r = this.g = this.b = i;
|
|
33046
33046
|
else {
|
|
33047
33047
|
const r = i <= 0.5 ? i * (1 + t) : i + t - i * t, o = 2 * i - r;
|
|
33048
33048
|
this.r = zI(o, r, e + 1 / 3), this.g = zI(o, r, e), this.b = zI(o, r, e - 1 / 3);
|
|
33049
33049
|
}
|
|
33050
|
-
return
|
|
33050
|
+
return _o.toWorkingColorSpace(this, n), this;
|
|
33051
33051
|
}
|
|
33052
33052
|
setStyle(e, t = fr) {
|
|
33053
33053
|
function i(r) {
|
|
@@ -33127,13 +33127,13 @@ class qn {
|
|
|
33127
33127
|
return this.copyLinearToSRGB(this), this;
|
|
33128
33128
|
}
|
|
33129
33129
|
getHex(e = fr) {
|
|
33130
|
-
return
|
|
33130
|
+
return _o.fromWorkingColorSpace(rr.copy(this), e), Math.round(pr(rr.r * 255, 0, 255)) * 65536 + Math.round(pr(rr.g * 255, 0, 255)) * 256 + Math.round(pr(rr.b * 255, 0, 255));
|
|
33131
33131
|
}
|
|
33132
33132
|
getHexString(e = fr) {
|
|
33133
33133
|
return ("000000" + this.getHex(e).toString(16)).slice(-6);
|
|
33134
33134
|
}
|
|
33135
|
-
getHSL(e, t =
|
|
33136
|
-
|
|
33135
|
+
getHSL(e, t = _o.workingColorSpace) {
|
|
33136
|
+
_o.fromWorkingColorSpace(rr.copy(this), t);
|
|
33137
33137
|
const i = rr.r, n = rr.g, r = rr.b, o = Math.max(i, n, r), a = Math.min(i, n, r);
|
|
33138
33138
|
let c, l;
|
|
33139
33139
|
const h = (a + o) / 2;
|
|
@@ -33156,11 +33156,11 @@ class qn {
|
|
|
33156
33156
|
}
|
|
33157
33157
|
return e.h = c, e.s = l, e.l = h, e;
|
|
33158
33158
|
}
|
|
33159
|
-
getRGB(e, t =
|
|
33160
|
-
return
|
|
33159
|
+
getRGB(e, t = _o.workingColorSpace) {
|
|
33160
|
+
return _o.fromWorkingColorSpace(rr.copy(this), t), e.r = rr.r, e.g = rr.g, e.b = rr.b, e;
|
|
33161
33161
|
}
|
|
33162
33162
|
getStyle(e = fr) {
|
|
33163
|
-
|
|
33163
|
+
_o.fromWorkingColorSpace(rr.copy(this), e);
|
|
33164
33164
|
const t = rr.r, i = rr.g, n = rr.b;
|
|
33165
33165
|
return e !== fr ? `color(${e} ${t.toFixed(3)} ${i.toFixed(3)} ${n.toFixed(3)})` : `rgb(${Math.round(t * 255)},${Math.round(i * 255)},${Math.round(n * 255)})`;
|
|
33166
33166
|
}
|
|
@@ -33319,7 +33319,7 @@ class ug extends _u {
|
|
|
33319
33319
|
}
|
|
33320
33320
|
}
|
|
33321
33321
|
const Gn = /* @__PURE__ */ new ue(), qb = /* @__PURE__ */ new yn();
|
|
33322
|
-
class
|
|
33322
|
+
class Oo {
|
|
33323
33323
|
constructor(e, t, i = !1) {
|
|
33324
33324
|
if (Array.isArray(e))
|
|
33325
33325
|
throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
@@ -33441,23 +33441,23 @@ class Lo {
|
|
|
33441
33441
|
return this.name !== "" && (e.name = this.name), this.usage !== NT && (e.usage = this.usage), e;
|
|
33442
33442
|
}
|
|
33443
33443
|
}
|
|
33444
|
-
class kte extends
|
|
33444
|
+
class kte extends Oo {
|
|
33445
33445
|
constructor(e, t, i) {
|
|
33446
33446
|
super(new Uint16Array(e), t, i);
|
|
33447
33447
|
}
|
|
33448
33448
|
}
|
|
33449
|
-
class Ote extends
|
|
33449
|
+
class Ote extends Oo {
|
|
33450
33450
|
constructor(e, t, i) {
|
|
33451
33451
|
super(new Uint32Array(e), t, i);
|
|
33452
33452
|
}
|
|
33453
33453
|
}
|
|
33454
|
-
class VP extends
|
|
33454
|
+
class VP extends Oo {
|
|
33455
33455
|
constructor(e, t, i) {
|
|
33456
33456
|
super(new Float32Array(e), t, i);
|
|
33457
33457
|
}
|
|
33458
33458
|
}
|
|
33459
33459
|
let Lte = 0;
|
|
33460
|
-
const
|
|
33460
|
+
const qo = /* @__PURE__ */ new ri(), GI = /* @__PURE__ */ new Fn(), Sp = /* @__PURE__ */ new ue(), vo = /* @__PURE__ */ new $a(), dA = /* @__PURE__ */ new $a(), ps = /* @__PURE__ */ new ue();
|
|
33461
33461
|
class Ya extends cS {
|
|
33462
33462
|
constructor() {
|
|
33463
33463
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: Lte++ }), this.uuid = Xa(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
@@ -33505,22 +33505,22 @@ class Ya extends cS {
|
|
|
33505
33505
|
return n !== void 0 && (n.transformDirection(e), n.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
33506
33506
|
}
|
|
33507
33507
|
applyQuaternion(e) {
|
|
33508
|
-
return
|
|
33508
|
+
return qo.makeRotationFromQuaternion(e), this.applyMatrix4(qo), this;
|
|
33509
33509
|
}
|
|
33510
33510
|
rotateX(e) {
|
|
33511
|
-
return
|
|
33511
|
+
return qo.makeRotationX(e), this.applyMatrix4(qo), this;
|
|
33512
33512
|
}
|
|
33513
33513
|
rotateY(e) {
|
|
33514
|
-
return
|
|
33514
|
+
return qo.makeRotationY(e), this.applyMatrix4(qo), this;
|
|
33515
33515
|
}
|
|
33516
33516
|
rotateZ(e) {
|
|
33517
|
-
return
|
|
33517
|
+
return qo.makeRotationZ(e), this.applyMatrix4(qo), this;
|
|
33518
33518
|
}
|
|
33519
33519
|
translate(e, t, i) {
|
|
33520
|
-
return
|
|
33520
|
+
return qo.makeTranslation(e, t, i), this.applyMatrix4(qo), this;
|
|
33521
33521
|
}
|
|
33522
33522
|
scale(e, t, i) {
|
|
33523
|
-
return
|
|
33523
|
+
return qo.makeScale(e, t, i), this.applyMatrix4(qo), this;
|
|
33524
33524
|
}
|
|
33525
33525
|
lookAt(e) {
|
|
33526
33526
|
return GI.lookAt(e), GI.updateMatrix(), this.applyMatrix4(GI.matrix), this;
|
|
@@ -33590,7 +33590,7 @@ class Ya extends cS {
|
|
|
33590
33590
|
return;
|
|
33591
33591
|
}
|
|
33592
33592
|
const i = t.position, n = t.normal, r = t.uv;
|
|
33593
|
-
this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new
|
|
33593
|
+
this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new Oo(new Float32Array(4 * i.count), 4));
|
|
33594
33594
|
const o = this.getAttribute("tangent"), a = [], c = [];
|
|
33595
33595
|
for (let I = 0; I < i.count; I++)
|
|
33596
33596
|
a[I] = new ue(), c[I] = new ue();
|
|
@@ -33633,7 +33633,7 @@ class Ya extends cS {
|
|
|
33633
33633
|
if (t !== void 0) {
|
|
33634
33634
|
let i = this.getAttribute("normal");
|
|
33635
33635
|
if (i === void 0)
|
|
33636
|
-
i = new
|
|
33636
|
+
i = new Oo(new Float32Array(t.count * 3), 3), this.setAttribute("normal", i);
|
|
33637
33637
|
else
|
|
33638
33638
|
for (let f = 0, p = i.count; f < p; f++)
|
|
33639
33639
|
i.setXYZ(f, 0, 0, 0);
|
|
@@ -33663,7 +33663,7 @@ class Ya extends cS {
|
|
|
33663
33663
|
for (let A = 0; A < h; A++)
|
|
33664
33664
|
f[g++] = l[p++];
|
|
33665
33665
|
}
|
|
33666
|
-
return new
|
|
33666
|
+
return new Oo(f, h, d);
|
|
33667
33667
|
}
|
|
33668
33668
|
if (this.index === null)
|
|
33669
33669
|
return console.warn("THREE.BufferGeometry.toNonIndexed(): BufferGeometry is already non-indexed."), this;
|
|
@@ -34180,7 +34180,7 @@ class RG extends TG {
|
|
|
34180
34180
|
return t.object.zoom = this.zoom, t.object.left = this.left, t.object.right = this.right, t.object.top = this.top, t.object.bottom = this.bottom, t.object.near = this.near, t.object.far = this.far, this.view !== null && (t.object.view = Object.assign({}, this.view)), t;
|
|
34181
34181
|
}
|
|
34182
34182
|
}
|
|
34183
|
-
class Qte extends
|
|
34183
|
+
class Qte extends ss {
|
|
34184
34184
|
constructor(e, t, i, n, r, o, a, c, l, h) {
|
|
34185
34185
|
if (h = h !== void 0 ? h : CI, h !== CI && h !== uL)
|
|
34186
34186
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
@@ -34333,7 +34333,7 @@ class WP {
|
|
|
34333
34333
|
for (let r = 0; r < this.itemSize; r++)
|
|
34334
34334
|
t.push(this.data.array[n + r]);
|
|
34335
34335
|
}
|
|
34336
|
-
return new
|
|
34336
|
+
return new Oo(new this.array.constructor(t), this.itemSize, this.normalized);
|
|
34337
34337
|
} else
|
|
34338
34338
|
return e.interleavedBuffers === void 0 && (e.interleavedBuffers = {}), e.interleavedBuffers[this.data.uuid] === void 0 && (e.interleavedBuffers[this.data.uuid] = this.data.clone(e)), new WP(e.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
|
|
34339
34339
|
}
|
|
@@ -34426,7 +34426,7 @@ class PG extends Fn {
|
|
|
34426
34426
|
super(), this.isBone = !0, this.type = "Bone";
|
|
34427
34427
|
}
|
|
34428
34428
|
}
|
|
34429
|
-
class qP extends
|
|
34429
|
+
class qP extends ss {
|
|
34430
34430
|
constructor(e = null, t = 1, i = 1, n, r, o, a, c, l = vf, h = vf, d, f) {
|
|
34431
34431
|
super(null, o, a, c, l, h, n, r, d, f), this.isDataTexture = !0, this.image = { data: e, width: t, height: i }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
34432
34432
|
}
|
|
@@ -34522,7 +34522,7 @@ class XP {
|
|
|
34522
34522
|
return e;
|
|
34523
34523
|
}
|
|
34524
34524
|
}
|
|
34525
|
-
class GT extends
|
|
34525
|
+
class GT extends Oo {
|
|
34526
34526
|
constructor(e, t, i, n = 1) {
|
|
34527
34527
|
super(e, t, i), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = n;
|
|
34528
34528
|
}
|
|
@@ -34775,7 +34775,7 @@ function $L(s, e, t, i, n, r, o) {
|
|
|
34775
34775
|
});
|
|
34776
34776
|
}
|
|
34777
34777
|
}
|
|
34778
|
-
class hS extends
|
|
34778
|
+
class hS extends ss {
|
|
34779
34779
|
constructor(e, t, i, n, r, o, a, c, l, h, d, f) {
|
|
34780
34780
|
super(null, o, a, c, l, h, n, r, d, f), this.isCompressedTexture = !0, this.image = { width: t, height: i }, this.mipmaps = e, this.flipY = !1, this.generateMipmaps = !1;
|
|
34781
34781
|
}
|
|
@@ -35668,7 +35668,7 @@ class FG extends Fu {
|
|
|
35668
35668
|
super(e);
|
|
35669
35669
|
}
|
|
35670
35670
|
load(e, t, i, n) {
|
|
35671
|
-
const r = new
|
|
35671
|
+
const r = new ss(), o = new uie(this.manager);
|
|
35672
35672
|
return o.setCrossOrigin(this.crossOrigin), o.setPath(this.path), o.load(e, function(a) {
|
|
35673
35673
|
r.image = a, r.needsUpdate = !0, t !== void 0 && t(r);
|
|
35674
35674
|
}, i, n), r;
|
|
@@ -36288,9 +36288,9 @@ let Mie = class extends Fu {
|
|
|
36288
36288
|
}
|
|
36289
36289
|
_createGeometry(e) {
|
|
36290
36290
|
const t = new Ya();
|
|
36291
|
-
e.index && t.setIndex(new
|
|
36291
|
+
e.index && t.setIndex(new Oo(e.index.array, 1));
|
|
36292
36292
|
for (let i = 0; i < e.attributes.length; i++) {
|
|
36293
|
-
const n = e.attributes[i], r = n.name, o = n.array, a = n.itemSize, c = new
|
|
36293
|
+
const n = e.attributes[i], r = n.name, o = n.array, a = n.itemSize, c = new Oo(o, a);
|
|
36294
36294
|
r === "color" && (this._assignVertexColorSpace(c, n.vertexColorSpace), c.normalized = !(o instanceof Float32Array)), t.setAttribute(r, c);
|
|
36295
36295
|
}
|
|
36296
36296
|
return t;
|
|
@@ -38045,7 +38045,7 @@ let xne = class {
|
|
|
38045
38045
|
const t = this, i = this.json, n = this.json.accessors[e];
|
|
38046
38046
|
if (n.bufferView === void 0 && n.sparse === void 0) {
|
|
38047
38047
|
const o = r1[n.type], a = Eg[n.componentType], c = n.normalized === !0, l = new a(n.count * o);
|
|
38048
|
-
return Promise.resolve(new
|
|
38048
|
+
return Promise.resolve(new Oo(l, o, c));
|
|
38049
38049
|
}
|
|
38050
38050
|
const r = [];
|
|
38051
38051
|
return n.bufferView !== void 0 ? r.push(this.getDependency("bufferView", n.bufferView)) : r.push(null), n.sparse !== void 0 && (r.push(this.getDependency("bufferView", n.sparse.indices.bufferView)), r.push(this.getDependency("bufferView", n.sparse.values.bufferView))), Promise.all(r).then(function(o) {
|
|
@@ -38056,10 +38056,10 @@ let xne = class {
|
|
|
38056
38056
|
let v = t.cache.get(b);
|
|
38057
38057
|
v || (y = new l(a, A * p, n.count * p / h), v = new Gte(y, p / h), t.cache.add(b, v)), m = new WP(v, c, f % p / h, g);
|
|
38058
38058
|
} else
|
|
38059
|
-
a === null ? y = new l(n.count * c) : y = new l(a, f, n.count * c), m = new
|
|
38059
|
+
a === null ? y = new l(n.count * c) : y = new l(a, f, n.count * c), m = new Oo(y, c, g);
|
|
38060
38060
|
if (n.sparse !== void 0) {
|
|
38061
38061
|
const A = r1.SCALAR, b = Eg[n.sparse.indices.componentType], v = n.sparse.indices.byteOffset || 0, _ = n.sparse.values.byteOffset || 0, w = new b(o[1], v, n.sparse.count * A), E = new l(o[2], _, n.sparse.count * c);
|
|
38062
|
-
a !== null && (m = new
|
|
38062
|
+
a !== null && (m = new Oo(m.array.slice(), m.itemSize, m.normalized));
|
|
38063
38063
|
for (let M = 0, I = w.length; M < I; M++) {
|
|
38064
38064
|
const P = w[M];
|
|
38065
38065
|
if (m.setX(P, E[M * c]), c >= 2 && m.setY(P, E[M * c + 1]), c >= 3 && m.setZ(P, E[M * c + 2]), c >= 4 && m.setW(P, E[M * c + 3]), c >= 5)
|
|
@@ -38114,7 +38114,7 @@ let xne = class {
|
|
|
38114
38114
|
return new Promise(function(f, p) {
|
|
38115
38115
|
let g = f;
|
|
38116
38116
|
t.isImageBitmapLoader === !0 && (g = function(y) {
|
|
38117
|
-
const m = new
|
|
38117
|
+
const m = new ss(y);
|
|
38118
38118
|
m.needsUpdate = !0, f(m);
|
|
38119
38119
|
}), t.load(xy.resolveURL(d, r.path), g, void 0, p);
|
|
38120
38120
|
});
|
|
@@ -38445,7 +38445,7 @@ let xne = class {
|
|
|
38445
38445
|
const l = (h) => {
|
|
38446
38446
|
const d = /* @__PURE__ */ new Map();
|
|
38447
38447
|
for (const [f, p] of n.associations)
|
|
38448
|
-
(f instanceof _u || f instanceof
|
|
38448
|
+
(f instanceof _u || f instanceof ss) && d.set(f, p);
|
|
38449
38449
|
return h.traverse((f) => {
|
|
38450
38450
|
const p = n.associations.get(f);
|
|
38451
38451
|
p != null && d.set(f, p);
|
|
@@ -38571,7 +38571,7 @@ function dF(s, e, t) {
|
|
|
38571
38571
|
});
|
|
38572
38572
|
n.push(o);
|
|
38573
38573
|
}
|
|
38574
|
-
return
|
|
38574
|
+
return _o.workingColorSpace !== co && "COLOR_0" in i && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${_o.workingColorSpace}" not supported.`), $h(s, e), wne(s, e, t), Promise.all(n).then(function() {
|
|
38575
38575
|
return e.targets !== void 0 ? Ane(s, e.targets, t) : s;
|
|
38576
38576
|
});
|
|
38577
38577
|
}
|
|
@@ -38742,7 +38742,7 @@ const Hs = class {
|
|
|
38742
38742
|
return o;
|
|
38743
38743
|
});
|
|
38744
38744
|
}
|
|
38745
|
-
if (s instanceof
|
|
38745
|
+
if (s instanceof ss || s.isTexture === !0) {
|
|
38746
38746
|
const t = s;
|
|
38747
38747
|
return this.assignTextureLODForSlot(t, e, null, null);
|
|
38748
38748
|
}
|
|
@@ -38823,7 +38823,7 @@ const Hs = class {
|
|
|
38823
38823
|
t && console.log(`LOD ${e} was already loading/loaded: ${d}`);
|
|
38824
38824
|
let m = await f.catch((b) => (console.error(`Error loading LOD ${e} from ${h}
|
|
38825
38825
|
`, b), null)), A = !1;
|
|
38826
|
-
if (m == null || (m instanceof
|
|
38826
|
+
if (m == null || (m instanceof ss && s instanceof ss ? (o = m.image) != null && o.data || (a = m.source) != null && a.data ? m = this.copySettings(s, m) : (A = !0, this.previouslyLoaded.delete(d)) : m instanceof Ya && s instanceof Ya && ((c = m.attributes.position) != null && c.array || (A = !0, this.previouslyLoaded.delete(d)))), !A)
|
|
38827
38827
|
return m;
|
|
38828
38828
|
}
|
|
38829
38829
|
const p = r, g = new Promise(async (m, A) => {
|
|
@@ -38855,7 +38855,7 @@ const Hs = class {
|
|
|
38855
38855
|
}
|
|
38856
38856
|
if (M) {
|
|
38857
38857
|
let I = await w.getDependency("texture", E);
|
|
38858
|
-
return I && Hs.assignLODInformation(i.url, I, n, e, void 0, void 0), t && console.log('change "' + s.name + '" → "' + I.name + '"', h, E, I, d), s instanceof
|
|
38858
|
+
return I && Hs.assignLODInformation(i.url, I, n, e, void 0, void 0), t && console.log('change "' + s.name + '" → "' + I.name + '"', h, E, I, d), s instanceof ss && (I = this.copySettings(s, I)), I && (I.guid = p.guid), m(I);
|
|
38859
38859
|
} else
|
|
38860
38860
|
Us && console.warn("Could not find texture with guid", p.guid);
|
|
38861
38861
|
}
|
|
@@ -38892,7 +38892,7 @@ const Hs = class {
|
|
|
38892
38892
|
return m(null);
|
|
38893
38893
|
});
|
|
38894
38894
|
return this.previouslyLoaded.set(d, g), await g;
|
|
38895
|
-
} else if (s instanceof
|
|
38895
|
+
} else if (s instanceof ss) {
|
|
38896
38896
|
t && console.log("Load texture from uri: " + h);
|
|
38897
38897
|
const f = await new FG().loadAsync(h);
|
|
38898
38898
|
return f ? (f.guid = r.guid, f.flipY = !1, f.needsUpdate = !0, f.colorSpace = s.colorSpace, t && console.log(r, f)) : Us && console.warn("failed loading", h), f;
|
|
@@ -39136,12 +39136,12 @@ const c1 = iD("debugprogressive"), Ine = iD("noprogressive"), pF = Symbol("Needl
|
|
|
39136
39136
|
return r;
|
|
39137
39137
|
}
|
|
39138
39138
|
};
|
|
39139
|
-
let
|
|
39140
|
-
|
|
39141
|
-
|
|
39142
|
-
|
|
39143
|
-
|
|
39144
|
-
|
|
39139
|
+
let Io = Zo;
|
|
39140
|
+
Io.corner0 = new ue();
|
|
39141
|
+
Io.corner1 = new ue();
|
|
39142
|
+
Io.corner2 = new ue();
|
|
39143
|
+
Io.corner3 = new ue();
|
|
39144
|
+
Io._tempPtInside = new ue();
|
|
39145
39145
|
class Mne {
|
|
39146
39146
|
constructor() {
|
|
39147
39147
|
this.lastLodLevel = 0, this.lastScreenCoverage = 0, this.lastScreenspaceVolume = new ue(), this.lastCentrality = 0;
|
|
@@ -39158,8 +39158,8 @@ function Tne(s) {
|
|
|
39158
39158
|
}
|
|
39159
39159
|
if (e) {
|
|
39160
39160
|
console.log("Adding Needle LODs to modelviewer");
|
|
39161
|
-
const i =
|
|
39162
|
-
if (
|
|
39161
|
+
const i = Io.get(e);
|
|
39162
|
+
if (Io.addPlugin(new Bne(s)), i.enable(), t) {
|
|
39163
39163
|
const n = t.camera || t.traverse((r) => r.type == "PerspectiveCamera")[0];
|
|
39164
39164
|
n && e.render(t, n);
|
|
39165
39165
|
}
|
|
@@ -39235,7 +39235,7 @@ class Bne {
|
|
|
39235
39235
|
}
|
|
39236
39236
|
function __e(s, e, t, i) {
|
|
39237
39237
|
$G(e), eH(t), t.register((r) => new yi(r, s));
|
|
39238
|
-
const n =
|
|
39238
|
+
const n = Io.get(e);
|
|
39239
39239
|
return (i == null ? void 0 : i.enableLODsManager) !== !1 && n.enable(), n;
|
|
39240
39240
|
}
|
|
39241
39241
|
document.addEventListener("DOMContentLoaded", () => {
|
|
@@ -39362,7 +39362,7 @@ class sD extends Ks {
|
|
|
39362
39362
|
return this.workerLimit = e, this;
|
|
39363
39363
|
}
|
|
39364
39364
|
load(e, t, i, n) {
|
|
39365
|
-
const r = new
|
|
39365
|
+
const r = new as(this.manager);
|
|
39366
39366
|
r.setPath(this.path), r.setResponseType("arraybuffer"), r.setRequestHeader(this.requestHeader), r.setWithCredentials(this.withCredentials), r.load(e, (o) => {
|
|
39367
39367
|
this.parse(o, t, n);
|
|
39368
39368
|
}, i, n);
|
|
@@ -39420,7 +39420,7 @@ class sD extends Ks {
|
|
|
39420
39420
|
i.fromBufferAttribute(e, n).convertSRGBToLinear(), e.setXYZ(n, i.r, i.g, i.b);
|
|
39421
39421
|
}
|
|
39422
39422
|
_loadLibrary(e, t) {
|
|
39423
|
-
const i = new
|
|
39423
|
+
const i = new as(this.manager);
|
|
39424
39424
|
return i.setPath(this.decoderPath), i.setResponseType(t), i.setWithCredentials(this.withCredentials), new Promise((n, r) => {
|
|
39425
39425
|
i.load(e, n, void 0, r);
|
|
39426
39426
|
});
|
|
@@ -39752,9 +39752,9 @@ class ja extends Ks {
|
|
|
39752
39752
|
}
|
|
39753
39753
|
init() {
|
|
39754
39754
|
if (!this.transcoderPending) {
|
|
39755
|
-
const e = new
|
|
39755
|
+
const e = new as(this.manager);
|
|
39756
39756
|
e.setPath(this.transcoderPath), e.setWithCredentials(this.withCredentials);
|
|
39757
|
-
const t = e.loadAsync("basis_transcoder.js"), i = new
|
|
39757
|
+
const t = e.loadAsync("basis_transcoder.js"), i = new as(this.manager);
|
|
39758
39758
|
i.setPath(this.transcoderPath), i.setResponseType("arraybuffer"), i.setWithCredentials(this.withCredentials);
|
|
39759
39759
|
const n = i.loadAsync("basis_transcoder.wasm");
|
|
39760
39760
|
this.transcoderPending = Promise.all([t, n]).then(([r, o]) => {
|
|
@@ -39782,7 +39782,7 @@ class ja extends Ks {
|
|
|
39782
39782
|
load(e, t, i, n) {
|
|
39783
39783
|
if (this.workerConfig === null)
|
|
39784
39784
|
throw new Error("THREE.KTX2Loader: Missing initialization with `.detectSupport( renderer )`.");
|
|
39785
|
-
const r = new
|
|
39785
|
+
const r = new as(this.manager);
|
|
39786
39786
|
r.setResponseType("arraybuffer"), r.setWithCredentials(this.withCredentials), r.load(e, (o) => {
|
|
39787
39787
|
if (d1.has(o))
|
|
39788
39788
|
return d1.get(o).promise.then(t).catch(n);
|
|
@@ -40241,7 +40241,7 @@ class tv extends Ks {
|
|
|
40241
40241
|
this.manager.itemStart(e);
|
|
40242
40242
|
const a = function(l) {
|
|
40243
40243
|
n ? n(l) : console.error(l), r.manager.itemError(e), r.manager.itemEnd(e);
|
|
40244
|
-
}, c = new
|
|
40244
|
+
}, c = new as(this.manager);
|
|
40245
40245
|
c.setPath(this.path), c.setResponseType("arraybuffer"), c.setRequestHeader(this.requestHeader), c.setWithCredentials(this.withCredentials), c.load(e, function(l) {
|
|
40246
40246
|
try {
|
|
40247
40247
|
r.parse(l, o, function(h) {
|
|
@@ -40926,7 +40926,7 @@ function Ase(s) {
|
|
|
40926
40926
|
roughness: 1,
|
|
40927
40927
|
transparent: !1,
|
|
40928
40928
|
depthTest: !0,
|
|
40929
|
-
side:
|
|
40929
|
+
side: cs
|
|
40930
40930
|
})), s.DefaultMaterial;
|
|
40931
40931
|
}
|
|
40932
40932
|
function ud(s, e, t) {
|
|
@@ -41021,7 +41021,7 @@ class wse {
|
|
|
41021
41021
|
constructor(e = {}, t = {}) {
|
|
41022
41022
|
this.json = e, this.extensions = {}, this.plugins = {}, this.options = t, this.cache = new Wne(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.nodeCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.sourceCache = {}, this.textureCache = {}, this.nodeNamesUsed = {};
|
|
41023
41023
|
let i = !1, n = !1, r = -1;
|
|
41024
|
-
typeof navigator < "u" && (i = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) === !0, n = navigator.userAgent.indexOf("Firefox") > -1, r = n ? navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1] : -1), typeof createImageBitmap > "u" || i || n && r < 98 ? this.textureLoader = new Zl(this.options.manager) : this.textureLoader = new Zz(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new
|
|
41024
|
+
typeof navigator < "u" && (i = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) === !0, n = navigator.userAgent.indexOf("Firefox") > -1, r = n ? navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1] : -1), typeof createImageBitmap > "u" || i || n && r < 98 ? this.textureLoader = new Zl(this.options.manager) : this.textureLoader = new Zz(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new as(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
|
|
41025
41025
|
}
|
|
41026
41026
|
setExtensions(e) {
|
|
41027
41027
|
this.extensions = e;
|
|
@@ -41247,7 +41247,7 @@ class wse {
|
|
|
41247
41247
|
if (p && p !== d) {
|
|
41248
41248
|
const A = Math.floor(f / p), b = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + A + ":" + n.count;
|
|
41249
41249
|
let v = t.cache.get(b);
|
|
41250
|
-
v || (y = new l(a, A * p, n.count * p / h), v = new W0(y, p / h), t.cache.add(b, v)), m = new
|
|
41250
|
+
v || (y = new l(a, A * p, n.count * p / h), v = new W0(y, p / h), t.cache.add(b, v)), m = new To(v, c, f % p / h, g);
|
|
41251
41251
|
} else
|
|
41252
41252
|
a === null ? y = new l(n.count * c) : y = new l(a, f, n.count * c), m = new tt(y, c, g);
|
|
41253
41253
|
if (n.sparse !== void 0) {
|
|
@@ -41461,9 +41461,9 @@ class wse {
|
|
|
41461
41461
|
let A;
|
|
41462
41462
|
const b = l[p];
|
|
41463
41463
|
if (m.mode === ra.TRIANGLES || m.mode === ra.TRIANGLE_STRIP || m.mode === ra.TRIANGLE_FAN || m.mode === void 0)
|
|
41464
|
-
A = r.isSkinnedMesh === !0 ? new
|
|
41464
|
+
A = r.isSkinnedMesh === !0 ? new ko(y, b) : new ge(y, b), A.isSkinnedMesh === !0 && A.normalizeSkinWeights(), m.mode === ra.TRIANGLE_STRIP ? A.geometry = wF(A.geometry, IR) : m.mode === ra.TRIANGLE_FAN && (A.geometry = wF(A.geometry, cw));
|
|
41465
41465
|
else if (m.mode === ra.LINES)
|
|
41466
|
-
A = new
|
|
41466
|
+
A = new Uo(y, b);
|
|
41467
41467
|
else if (m.mode === ra.LINE_STRIP)
|
|
41468
41468
|
A = new On(y, b);
|
|
41469
41469
|
else if (m.mode === ra.LINE_LOOP)
|
|
@@ -41500,7 +41500,7 @@ class wse {
|
|
|
41500
41500
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
41501
41501
|
return;
|
|
41502
41502
|
}
|
|
41503
|
-
return i.type === "perspective" ? t = new Qt(
|
|
41503
|
+
return i.type === "perspective" ? t = new Qt(os.radToDeg(n.yfov), n.aspectRatio || 1, n.znear || 1, n.zfar || 2e6) : i.type === "orthographic" && (t = new lh(-n.xmag, n.xmag, n.ymag, -n.ymag, n.znear, n.zfar)), i.name && (t.name = this.createUniqueName(i.name)), eu(t, i), Promise.resolve(t);
|
|
41504
41504
|
}
|
|
41505
41505
|
/**
|
|
41506
41506
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -42530,11 +42530,11 @@ const Pd = class {
|
|
|
42530
42530
|
this._isDynamic = e;
|
|
42531
42531
|
}
|
|
42532
42532
|
static createEmptyParent(e) {
|
|
42533
|
-
const t = new Pd(
|
|
42533
|
+
const t = new Pd(os.generateUUID(), e.name + "_empty_" + Pd.USDObject_export_id++, e.matrix), i = e.parent;
|
|
42534
42534
|
return i && i.add(t), t.add(e), t.isDynamic = !0, e.matrix = new Ce().identity(), t;
|
|
42535
42535
|
}
|
|
42536
42536
|
static createEmpty() {
|
|
42537
|
-
const e = new Pd(
|
|
42537
|
+
const e = new Pd(os.generateUUID(), "Empty_" + Pd.USDObject_export_id++, new Ce());
|
|
42538
42538
|
return e.isDynamic = !0, e;
|
|
42539
42539
|
}
|
|
42540
42540
|
is(e) {
|
|
@@ -42544,7 +42544,7 @@ const Pd = class {
|
|
|
42544
42544
|
return !this.geometry;
|
|
42545
42545
|
}
|
|
42546
42546
|
clone() {
|
|
42547
|
-
const e = new Pd(
|
|
42547
|
+
const e = new Pd(os.generateUUID(), this.name, this.matrix, this.geometry, this.material);
|
|
42548
42548
|
return e.isDynamic = this.isDynamic, e;
|
|
42549
42549
|
}
|
|
42550
42550
|
deepClone() {
|
|
@@ -42731,7 +42731,7 @@ let Yse = class {
|
|
|
42731
42731
|
ii.report("export-usdz", "Invoking onBeforeBuildDocument"), await Bx(i, "onBeforeBuildDocument"), ii.report("export-usdz", "Done onBeforeBuildDocument"), ii.report("export-usdz", "Reparent bones to common ancestor");
|
|
42732
42732
|
const c = [];
|
|
42733
42733
|
e == null || e.traverse((y) => {
|
|
42734
|
-
if (!(!t.exportInvisible && !y.visible) && y instanceof
|
|
42734
|
+
if (!(!t.exportInvisible && !y.visible) && y instanceof ko) {
|
|
42735
42735
|
const m = y.skeleton.bones, A = EH(m);
|
|
42736
42736
|
A && c.push({ object: y, originalParent: y.parent, newParent: A });
|
|
42737
42737
|
}
|
|
@@ -42794,8 +42794,8 @@ function TH(s, e, t, i) {
|
|
|
42794
42794
|
if (!t.exportInvisible && !s.visible)
|
|
42795
42795
|
return;
|
|
42796
42796
|
let n, r, o;
|
|
42797
|
-
if ((s instanceof ge || s instanceof
|
|
42798
|
-
const a = f_(s), c = s instanceof
|
|
42797
|
+
if ((s instanceof ge || s instanceof ko) && (r = s.geometry, o = s.material), i && !i(s) && (r = void 0, o = void 0), (s instanceof ge || s instanceof ko) && o && (o instanceof zr || o instanceof $t)) {
|
|
42798
|
+
const a = f_(s), c = s instanceof ko ? s : null;
|
|
42799
42799
|
n = new no(s.uuid, a, s.matrix, r, o, void 0, c, s.animations);
|
|
42800
42800
|
} else if (s instanceof Qt || s instanceof lh) {
|
|
42801
42801
|
const a = f_(s);
|
|
@@ -42875,7 +42875,7 @@ async function Bx(s, e, t = null) {
|
|
|
42875
42875
|
}
|
|
42876
42876
|
let u_ = null, Rr = null, E1, Pp, d_;
|
|
42877
42877
|
async function Kse(s, e = 1 / 0, t = null, i = void 0) {
|
|
42878
|
-
E1 || (E1 = new
|
|
42878
|
+
E1 || (E1 = new Jn(2, 2, 1, 1)), Pp || (Pp = new Pt({
|
|
42879
42879
|
uniforms: {
|
|
42880
42880
|
blitTexture: new _e(s),
|
|
42881
42881
|
flipY: new _e(!1),
|
|
@@ -43356,8 +43356,8 @@ const z2 = class {
|
|
|
43356
43356
|
i.appendLine(), this.action.writeTo(t, i), i.closeBlock();
|
|
43357
43357
|
}
|
|
43358
43358
|
};
|
|
43359
|
-
let
|
|
43360
|
-
u(
|
|
43359
|
+
let rs = z2;
|
|
43360
|
+
u(rs, "global_id", 0);
|
|
43361
43361
|
const Dp = /* @__PURE__ */ new Set();
|
|
43362
43362
|
function oB(s, e) {
|
|
43363
43363
|
var i, n;
|
|
@@ -43431,6 +43431,7 @@ class zd {
|
|
|
43431
43431
|
u(this, "loops", 0);
|
|
43432
43432
|
u(this, "performCount", 1);
|
|
43433
43433
|
u(this, "type", "serial");
|
|
43434
|
+
u(this, "multiplePerformOperation");
|
|
43434
43435
|
this.id = e, this.actions = t;
|
|
43435
43436
|
}
|
|
43436
43437
|
static getId() {
|
|
@@ -43459,7 +43460,7 @@ class zd {
|
|
|
43459
43460
|
const n = i === this.actions[this.actions.length - 1];
|
|
43460
43461
|
t.appendLine("<" + i.id + ">" + (n ? "" : ", "));
|
|
43461
43462
|
}
|
|
43462
|
-
t.closeArray(), t.appendLine(), t.appendLine('token info:id = "Group"'), t.appendLine(`bool loops = ${this.loops}`), t.appendLine(`int performCount = ${this.loops > 0 ? 0 : Math.max(0, this.performCount)}`), t.appendLine(`token type = "${this.type}"`), t.appendLine();
|
|
43463
|
+
t.closeArray(), t.appendLine(), t.appendLine('token info:id = "Group"'), t.appendLine(`bool loops = ${this.loops}`), t.appendLine(`int performCount = ${this.loops > 0 ? 0 : Math.max(0, this.performCount)}`), t.appendLine(`token type = "${this.type}"`), typeof this.multiplePerformOperation == "string" && t.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), t.appendLine();
|
|
43463
43464
|
for (const i of this.actions)
|
|
43464
43465
|
i && (i.writeTo(e, t), t.appendLine());
|
|
43465
43466
|
t.closeBlock();
|
|
@@ -43500,8 +43501,8 @@ const sC = class {
|
|
|
43500
43501
|
t.beginBlock(`def Preliminary_Action "${this.id}"`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = oB(this.affectedObjects, e)), t.appendLine("rel affectedObjects = " + this.affectedObjects)), typeof this.duration == "number" && (typeof this.animationSpeed == "number" && this.animationSpeed !== 1 ? t.appendLine(`double duration = ${this.duration / this.animationSpeed} `) : t.appendLine(`double duration = ${this.duration} `)), this.easeType && t.appendLine(`token easeType = "${this.easeType}"`), this.tokenId && t.appendLine(`token info:id = "${this.tokenId}"`), this.tokenId === "ChangeScene" && t.appendLine("rel scene = </StageRoot/Scenes/Scene>"), this.motionType !== void 0 && t.appendLine(`token motionType = "${this.motionType}"`), typeof this.moveDistance == "number" && t.appendLine(`double moveDistance = ${this.moveDistance} `), this.style && t.appendLine(`token style = "${this.style}"`), this.type && t.appendLine(`token type = "${this.type}"`), this.front && t.appendLine(`vector3d front = (${this.front.x}, ${this.front.y}, ${this.front.z})`), this.up && t.appendLine(`vector3d upVector = (${this.up.x}, ${this.up.y}, ${this.up.z})`), typeof this.start == "number" && t.appendLine(`double start = ${this.start} `), typeof this.animationSpeed == "number" && t.appendLine(`double animationSpeed = ${this.animationSpeed.toFixed(2)} `), typeof this.reversed == "boolean" && t.appendLine(`bool reversed = ${this.reversed}`), typeof this.pingPong == "boolean" && t.appendLine(`bool reverses = ${this.pingPong}`), this.xFormTarget && (typeof this.xFormTarget != "string" && (this.xFormTarget = oB(this.xFormTarget, e)), t.appendLine(`rel xformTarget = ${this.xFormTarget}`)), typeof this.audio == "string" && t.appendLine(`asset audio = @${this.audio}@`), typeof this.gain == "number" && t.appendLine(`double gain = ${this.gain}`), typeof this.auralMode == "string" && t.appendLine(`token auralMode = "${this.auralMode}"`), typeof this.multiplePerformOperation == "string" && t.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), typeof this.velocity == "object" && t.appendLine(`vector3d velocity = (${this.velocity.x}, ${this.velocity.y}, ${this.velocity.z})`), t.closeBlock();
|
|
43501
43502
|
}
|
|
43502
43503
|
};
|
|
43503
|
-
let
|
|
43504
|
-
u(
|
|
43504
|
+
let Eo = sC;
|
|
43505
|
+
u(Eo, "global_id", 0);
|
|
43505
43506
|
let fg = class Jp {
|
|
43506
43507
|
constructor(e, t, i) {
|
|
43507
43508
|
u(this, "x", 0);
|
|
@@ -43533,7 +43534,7 @@ class fi {
|
|
|
43533
43534
|
return new zd("Group_" + zd.getId(), e).makeParallel();
|
|
43534
43535
|
}
|
|
43535
43536
|
static fadeAction(e, t, i) {
|
|
43536
|
-
const n = new
|
|
43537
|
+
const n = new Eo(e);
|
|
43537
43538
|
return n.tokenId = "Visibility", n.type = i ? "show" : "hide", n.duration = t, n.style = "basic", n.motionType = "none", n.moveDistance = 0, n.easeType = "none", n;
|
|
43538
43539
|
}
|
|
43539
43540
|
/**
|
|
@@ -43542,7 +43543,7 @@ class fi {
|
|
|
43542
43543
|
* @param duration in seconds! 0 means play to end
|
|
43543
43544
|
*/
|
|
43544
43545
|
static startAnimationAction(e, t, i = 0, n = 1, r = !1, o = !1) {
|
|
43545
|
-
const a = new
|
|
43546
|
+
const a = new Eo(e);
|
|
43546
43547
|
if (a.tokenId = "StartAnimation", a.start = t, a.duration = i, a.animationSpeed = n, a.reversed = r, a.pingPong = o, a.multiplePerformOperation = "allow", r && (a.start -= i), o) {
|
|
43547
43548
|
a.pingPong = !1;
|
|
43548
43549
|
const c = a.clone();
|
|
@@ -43551,28 +43552,28 @@ class fi {
|
|
|
43551
43552
|
return a;
|
|
43552
43553
|
}
|
|
43553
43554
|
static waitAction(e) {
|
|
43554
|
-
const t = new
|
|
43555
|
+
const t = new Eo();
|
|
43555
43556
|
return t.tokenId = "Wait", t.duration = e, t.motionType = void 0, t;
|
|
43556
43557
|
}
|
|
43557
43558
|
static lookAtCameraAction(e, t, i, n) {
|
|
43558
|
-
const r = new
|
|
43559
|
+
const r = new Eo(e);
|
|
43559
43560
|
return r.tokenId = "LookAtCamera", r.duration = t === void 0 ? 9999999999999 : t, r.front = i ?? fg.forward, r.up = n ?? fg.up, r;
|
|
43560
43561
|
}
|
|
43561
43562
|
static emphasize(e, t, i = "bounce", n = 1, r = "basic") {
|
|
43562
|
-
const o = new
|
|
43563
|
+
const o = new Eo(e);
|
|
43563
43564
|
return o.tokenId = "Emphasize", o.duration = t, o.style = r ?? "basic", o.motionType = i, o.moveDistance = n, o;
|
|
43564
43565
|
}
|
|
43565
43566
|
static transformAction(e, t, i, n, r = "inout") {
|
|
43566
|
-
const o = new
|
|
43567
|
+
const o = new Eo(e);
|
|
43567
43568
|
return o.tokenId = "Transform", o.duration = i, o.duration = Math.max(1e-6, i), o.type = n, o.easeType = i > 0 ? r : "none", Array.isArray(t) && console.error("Transform target must not be an array", t), o.xFormTarget = t, o;
|
|
43568
43569
|
}
|
|
43569
43570
|
static playAudioAction(e, t, i = "play", n = 1, r = "spatial") {
|
|
43570
|
-
const o = new
|
|
43571
|
+
const o = new Eo(e);
|
|
43571
43572
|
return o.tokenId = "Audio", o.type = i, o.audio = t, o.gain = n, o.auralMode = r, o.multiplePerformOperation = "allow", o;
|
|
43572
43573
|
}
|
|
43573
43574
|
// Supported only on VisionOS, Preliminary Behaviours can affect RealityKit physics as well
|
|
43574
43575
|
static impulseAction(e, t) {
|
|
43575
|
-
const i = new
|
|
43576
|
+
const i = new Eo(e);
|
|
43576
43577
|
return i.tokenId = "Impulse", i.velocity = t, i;
|
|
43577
43578
|
}
|
|
43578
43579
|
// Currently doesn't work on VisionOS, see FB13761990
|
|
@@ -44095,7 +44096,7 @@ class lD extends Ae {
|
|
|
44095
44096
|
class pre extends ge {
|
|
44096
44097
|
constructor() {
|
|
44097
44098
|
super(
|
|
44098
|
-
new
|
|
44099
|
+
new Jn(1e5, 1e5, 2, 2),
|
|
44099
44100
|
new $t({ visible: !1, wireframe: !0, side: gi, transparent: !0, opacity: 0.1, toneMapped: !1 })
|
|
44100
44101
|
), this.isTransformControlsPlane = !0, this.type = "TransformControlsPlane";
|
|
44101
44102
|
}
|
|
@@ -44302,7 +44303,7 @@ function qi(s) {
|
|
|
44302
44303
|
}
|
|
44303
44304
|
if (s[QH] = !0, s instanceof yr)
|
|
44304
44305
|
qi(s.environment), qi(s.background), qi(s.customDepthMaterial), qi(s.customDistanceMaterial);
|
|
44305
|
-
else if (s instanceof
|
|
44306
|
+
else if (s instanceof ko)
|
|
44306
44307
|
qi(s.geometry), qi(s.material), qi(s.skeleton), qi(s.bindMatrix), qi(s.bindMatrixInverse), qi(s.customDepthMaterial), qi(s.customDistanceMaterial), s.geometry = null, s.material = null;
|
|
44307
44308
|
else if (s instanceof ge)
|
|
44308
44309
|
qi(s.geometry), qi(s.material), qi(s.customDepthMaterial), qi(s.customDistanceMaterial), s.geometry = null, s.material = null;
|
|
@@ -44312,7 +44313,7 @@ function qi(s) {
|
|
|
44312
44313
|
const i = s.attributes[t];
|
|
44313
44314
|
qi(i);
|
|
44314
44315
|
}
|
|
44315
|
-
} else if (s instanceof tt || s instanceof
|
|
44316
|
+
} else if (s instanceof tt || s instanceof To)
|
|
44316
44317
|
ef && console.warn("BufferAttribute dispose not supported", s.count);
|
|
44317
44318
|
else if (s instanceof Array)
|
|
44318
44319
|
for (const t of s)
|
|
@@ -44337,7 +44338,7 @@ function kp(s) {
|
|
|
44337
44338
|
s && ((ef || FH() || pS) && console.warn("🧨 FREE", s), s instanceof ImageBitmap ? s.close() : s instanceof jl ? s.data = null : s.dispose());
|
|
44338
44339
|
}
|
|
44339
44340
|
function bre(s) {
|
|
44340
|
-
(s instanceof ge || s instanceof
|
|
44341
|
+
(s instanceof ge || s instanceof ko) && (s.material = null, s.geometry = null);
|
|
44341
44342
|
}
|
|
44342
44343
|
const _re = /* @__PURE__ */ new Set();
|
|
44343
44344
|
function zH(s, e, t = null, i) {
|
|
@@ -44555,9 +44556,9 @@ function dD(s, e) {
|
|
|
44555
44556
|
e.scripts.indexOf(s) === -1 && (e.scripts.push(s), s.earlyUpdate && e.scripts_earlyUpdate.push(s), s.update && e.scripts_update.push(s), s.lateUpdate && e.scripts_lateUpdate.push(s), s.onBeforeRender && e.scripts_onBeforeRender.push(s), s.onAfterRender && e.scripts_onAfterRender.push(s), s.onPausedChanged && e.scripts_pausedChanged.push(s), P1(s, null) && e.new_scripts_xr.push(s), P1(s, "immersive-vr") && e.scripts_immersive_vr.push(s), P1(s, "immersive-ar") && e.scripts_immersive_ar.push(s));
|
|
44556
44557
|
}
|
|
44557
44558
|
function Ql(s, e) {
|
|
44558
|
-
|
|
44559
|
+
Xo(s, e.new_scripts), Xo(s, e.new_script_start), Xo(s, e.scripts), Xo(s, e.scripts_earlyUpdate), Xo(s, e.scripts_update), Xo(s, e.scripts_lateUpdate), Xo(s, e.scripts_onBeforeRender), Xo(s, e.scripts_onAfterRender), Xo(s, e.scripts_pausedChanged), Xo(s, e.new_scripts_xr), Xo(s, e.scripts_immersive_vr), Xo(s, e.scripts_immersive_ar), e.stopAllCoroutinesFrom(s);
|
|
44559
44560
|
}
|
|
44560
|
-
function
|
|
44561
|
+
function Xo(s, e) {
|
|
44561
44562
|
const t = e.indexOf(s);
|
|
44562
44563
|
t >= 0 && e.splice(t, 1);
|
|
44563
44564
|
}
|
|
@@ -45354,7 +45355,7 @@ float signedDistance=linearDepth-focusDistance;float magnitude=smoothstep(0.0,fo
|
|
|
45354
45355
|
DEPTH: 0,
|
|
45355
45356
|
LUMA: 1,
|
|
45356
45357
|
COLOR: 2
|
|
45357
|
-
},
|
|
45358
|
+
}, Lo = {
|
|
45358
45359
|
NONE: 0,
|
|
45359
45360
|
DEPTH: 1,
|
|
45360
45361
|
CONVOLUTION: 2
|
|
@@ -48839,7 +48840,7 @@ function Doe(s, e, t) {
|
|
|
48839
48840
|
const r = i !== void 0 && /mainImage/.test(i), o = i !== void 0 && /mainUv/.test(i);
|
|
48840
48841
|
if (t.attributes |= e.getAttributes(), i === void 0)
|
|
48841
48842
|
throw new Error(`Missing fragment shader (${e.name})`);
|
|
48842
|
-
if (o && t.attributes &
|
|
48843
|
+
if (o && t.attributes & Lo.CONVOLUTION)
|
|
48843
48844
|
throw new Error(`Effects that transform UVs are incompatible with convolution effects (${e.name})`);
|
|
48844
48845
|
if (!r && !o)
|
|
48845
48846
|
throw new Error(`Could not find mainImage or mainUv function (${e.name})`);
|
|
@@ -48874,7 +48875,7 @@ function Doe(s, e, t) {
|
|
|
48874
48875
|
` : `color0 = sRGBToLinear(color0);
|
|
48875
48876
|
`), e.outputColorSpace !== gr ? t.colorSpace = e.outputColorSpace : e.inputColorSpace !== null && (t.colorSpace = e.inputColorSpace);
|
|
48876
48877
|
const b = /MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;
|
|
48877
|
-
d += `${s}MainImage(color0, UV, `, t.attributes &
|
|
48878
|
+
d += `${s}MainImage(color0, UV, `, t.attributes & Lo.DEPTH && b.test(i) && (d += "depth, ", t.readDepth = !0), d += `color1);
|
|
48878
48879
|
`;
|
|
48879
48880
|
const v = s + "BlendOpacity";
|
|
48880
48881
|
t.uniforms.set(v, A.opacity), d += `color0 = blend${A.blendFunction}(color0, color1, ${v});
|
|
@@ -48956,9 +48957,9 @@ var nU = class extends Zs {
|
|
|
48956
48957
|
let e = 0;
|
|
48957
48958
|
for (const o of this.effects)
|
|
48958
48959
|
if (o.blendMode.blendFunction === Vt.DST)
|
|
48959
|
-
s.attributes |= o.getAttributes() &
|
|
48960
|
+
s.attributes |= o.getAttributes() & Lo.DEPTH;
|
|
48960
48961
|
else {
|
|
48961
|
-
if (s.attributes & o.getAttributes() &
|
|
48962
|
+
if (s.attributes & o.getAttributes() & Lo.CONVOLUTION)
|
|
48962
48963
|
throw new Error(`Convolution effects cannot be merged (${o.name})`);
|
|
48963
48964
|
Doe("e" + e++, o, s);
|
|
48964
48965
|
}
|
|
@@ -48967,7 +48968,7 @@ var nU = class extends Zs {
|
|
|
48967
48968
|
for (const o of s.blendModes.values())
|
|
48968
48969
|
t += o.getShaderCode().replace(r, `blend${o.blendFunction}`) + `
|
|
48969
48970
|
`;
|
|
48970
|
-
s.attributes &
|
|
48971
|
+
s.attributes & Lo.DEPTH ? (s.readDepth && (i = `float depth = readDepth(UV);
|
|
48971
48972
|
|
|
48972
48973
|
` + i), this.needsDepthTexture = this.getDepthTexture() === null) : this.needsDepthTexture = !1, s.colorSpace === yt && (i += `color0 = sRGBToLinear(color0);
|
|
48973
48974
|
`), s.uvTransformation ? (n = `vec2 transformedUv = vUv;
|
|
@@ -49988,7 +49989,7 @@ var nU = class extends Zs {
|
|
|
49988
49989
|
[Ai.FRAGMENT_MAIN_IMAGE, null],
|
|
49989
49990
|
[Ai.VERTEX_HEAD, null],
|
|
49990
49991
|
[Ai.VERTEX_MAIN_SUPPORT, null]
|
|
49991
|
-
]), this.defines = /* @__PURE__ */ new Map(), this.uniforms = /* @__PURE__ */ new Map(), this.blendModes = /* @__PURE__ */ new Map(), this.extensions = /* @__PURE__ */ new Set(), this.attributes =
|
|
49992
|
+
]), this.defines = /* @__PURE__ */ new Map(), this.uniforms = /* @__PURE__ */ new Map(), this.blendModes = /* @__PURE__ */ new Map(), this.extensions = /* @__PURE__ */ new Set(), this.attributes = Lo.NONE, this.varyings = /* @__PURE__ */ new Set(), this.uvTransformation = !1, this.readDepth = !1, this.colorSpace = xi;
|
|
49992
49993
|
}
|
|
49993
49994
|
}, O1 = !1, sU = class {
|
|
49994
49995
|
/**
|
|
@@ -50061,7 +50062,7 @@ var nU = class extends Zs {
|
|
|
50061
50062
|
this.cloneMaterial(s)
|
|
50062
50063
|
];
|
|
50063
50064
|
for (const t of e)
|
|
50064
|
-
t.uniforms = Object.assign({}, s.uniforms), t.side =
|
|
50065
|
+
t.uniforms = Object.assign({}, s.uniforms), t.side = cs;
|
|
50065
50066
|
e[2].skinning = !0, this.materialsBackSide = e.map((t) => {
|
|
50066
50067
|
const i = this.cloneMaterial(t);
|
|
50067
50068
|
return i.uniforms = Object.assign({}, s.uniforms), i.side = mn, i;
|
|
@@ -50647,7 +50648,7 @@ var nU = class extends Zs {
|
|
|
50647
50648
|
* @param {String} [options.vertexShader=null] - The vertex shader. Most effects don't need one.
|
|
50648
50649
|
*/
|
|
50649
50650
|
constructor(s, e, {
|
|
50650
|
-
attributes: t =
|
|
50651
|
+
attributes: t = Lo.NONE,
|
|
50651
50652
|
blendFunction: i = Vt.NORMAL,
|
|
50652
50653
|
defines: n = /* @__PURE__ */ new Map(),
|
|
50653
50654
|
uniforms: r = /* @__PURE__ */ new Map(),
|
|
@@ -51232,7 +51233,7 @@ outputColor=vec4(ra.x,inputColor.g,ba.x,max(max(ra.y,ba.y),inputColor.a));}`, xa
|
|
|
51232
51233
|
} = {}) {
|
|
51233
51234
|
super("ChromaticAberrationEffect", _ae, {
|
|
51234
51235
|
vertexShader: xae,
|
|
51235
|
-
attributes:
|
|
51236
|
+
attributes: Lo.CONVOLUTION,
|
|
51236
51237
|
uniforms: /* @__PURE__ */ new Map([
|
|
51237
51238
|
["offset", new _e(s)],
|
|
51238
51239
|
["modulationOffset", new _e(t)]
|
|
@@ -51338,7 +51339,7 @@ vec4 result=inputColor*(1.0-cocNearFar.y)+colorFar;result=mix(result,colorNear,c
|
|
|
51338
51339
|
} = {}) {
|
|
51339
51340
|
super("DepthOfFieldEffect", wae, {
|
|
51340
51341
|
blendFunction: e,
|
|
51341
|
-
attributes:
|
|
51342
|
+
attributes: Lo.DEPTH,
|
|
51342
51343
|
uniforms: /* @__PURE__ */ new Map([
|
|
51343
51344
|
["nearColorBuffer", new _e(null)],
|
|
51344
51345
|
["farColorBuffer", new _e(null)],
|
|
@@ -51707,7 +51708,7 @@ var Sae = class extends ro {
|
|
|
51707
51708
|
* @param {Object} [options] - The options. See {@link BloomEffect} for details.
|
|
51708
51709
|
*/
|
|
51709
51710
|
constructor(s, e, t) {
|
|
51710
|
-
super(t), this.setAttributes(this.getAttributes() |
|
|
51711
|
+
super(t), this.setAttributes(this.getAttributes() | Lo.DEPTH), this.camera = e, this.depthPass = new Poe(s, e), this.clearPass = new AS(!0, !1, !1), this.clearPass.overrideClearColor = new we(0), this.depthMaskPass = new Bc(new ioe());
|
|
51711
51712
|
const i = this.depthMaskMaterial;
|
|
51712
51713
|
i.copyCameraSettings(e), i.depthBuffer1 = this.depthPass.texture, i.depthPacking1 = bC, i.depthMode = Lg, this.renderTargetMasked = new Yt(1, 1, { depthBuffer: !1 }), this.renderTargetMasked.texture.name = "Bloom.Masked", this.selection = new Uoe(), this.selection.layer = 11, this._inverted = !1, this._ignoreBackground = !1;
|
|
51713
51714
|
}
|
|
@@ -51856,7 +51857,7 @@ var Sae = class extends ro {
|
|
|
51856
51857
|
super("SMAAEffect", Mae, {
|
|
51857
51858
|
vertexShader: Tae,
|
|
51858
51859
|
blendFunction: s,
|
|
51859
|
-
attributes:
|
|
51860
|
+
attributes: Lo.CONVOLUTION | Lo.DEPTH,
|
|
51860
51861
|
uniforms: /* @__PURE__ */ new Map([
|
|
51861
51862
|
["weightMap", new _e(null)]
|
|
51862
51863
|
])
|
|
@@ -52132,7 +52133,7 @@ outputColor=vec4(vec3(1.0-ao),inputColor.a);
|
|
|
52132
52133
|
} = {}) {
|
|
52133
52134
|
super("SSAOEffect", Bae, {
|
|
52134
52135
|
blendFunction: t,
|
|
52135
|
-
attributes:
|
|
52136
|
+
attributes: Lo.DEPTH,
|
|
52136
52137
|
defines: /* @__PURE__ */ new Map([
|
|
52137
52138
|
["THRESHOLD", "0.997"]
|
|
52138
52139
|
]),
|
|
@@ -54358,7 +54359,7 @@ u(Ct, "enabled", !0), u(Ct, "_up", new C(0, 1, 0));
|
|
|
54358
54359
|
const vce = new Gi(1, 1, 1);
|
|
54359
54360
|
function bD(s = null) {
|
|
54360
54361
|
const e = new we(s ?? 14540253), t = new JR(vce);
|
|
54361
|
-
return new
|
|
54362
|
+
return new Uo(t, new Un({ color: e }));
|
|
54362
54363
|
}
|
|
54363
54364
|
const yB = Symbol("GizmoCache");
|
|
54364
54365
|
class Cn {
|
|
@@ -54480,7 +54481,7 @@ class Cn {
|
|
|
54480
54481
|
}
|
|
54481
54482
|
// private static createdLines: number = 0;
|
|
54482
54483
|
u(Cn, "familyName", "needle-gizmos"), u(Cn, "linesCache", []), u(Cn, "spheresCache", []), u(Cn, "boxesCache", []), u(Cn, "arrowHeadsCache", []), u(Cn, "mesh", []), u(Cn, "textLabelCache", []), u(Cn, "timedObjectsBuffer", new Array()), u(Cn, "timesBuffer", new Array()), u(Cn, "contextPostRenderCallbacks", /* @__PURE__ */ new Map()), u(Cn, "contextBeforeRenderCallbacks", /* @__PURE__ */ new Map()), u(Cn, "tmuiNeedsUpdate", !1);
|
|
54483
|
-
const
|
|
54484
|
+
const $n = ne("debuginput");
|
|
54484
54485
|
var _D = /* @__PURE__ */ ((s) => (s.Mouse = "mouse", s.Touch = "touch", s.Controller = "controller", s.Hand = "hand", s))(_D || {}), pn = /* @__PURE__ */ ((s) => (s.PointerDown = "pointerdown", s.PointerUp = "pointerup", s.PointerMove = "pointermove", s.KeyDown = "keydown", s.KeyUp = "keyup", s.KeyPressed = "keypress", s))(pn || {});
|
|
54485
54486
|
class Yh extends PointerEvent {
|
|
54486
54487
|
constructor(t, i, n) {
|
|
@@ -54562,7 +54563,7 @@ class Yh extends PointerEvent {
|
|
|
54562
54563
|
}
|
|
54563
54564
|
stopPropagation() {
|
|
54564
54565
|
var t;
|
|
54565
|
-
this._propagationStopped = !0, super.stopPropagation(), (t = this.source) == null || t.stopPropagation(),
|
|
54566
|
+
this._propagationStopped = !0, super.stopPropagation(), (t = this.source) == null || t.stopPropagation(), $n && console.warn("Stop propagation...", this.pointerId, this.pointerType);
|
|
54566
54567
|
}
|
|
54567
54568
|
}
|
|
54568
54569
|
class v_ extends KeyboardEvent {
|
|
@@ -54646,7 +54647,7 @@ class bce {
|
|
|
54646
54647
|
});
|
|
54647
54648
|
u(this, "keysPressed", {});
|
|
54648
54649
|
u(this, "onKeyDown", (e) => {
|
|
54649
|
-
if (
|
|
54650
|
+
if ($n && console.log(`key down ${e.code}, ${this.context.application.hasFocus}`, e), !this.context.application.hasFocus)
|
|
54650
54651
|
return;
|
|
54651
54652
|
const t = this.keysPressed[e.code];
|
|
54652
54653
|
if (t && t.pressed)
|
|
@@ -54689,7 +54690,7 @@ class bce {
|
|
|
54689
54690
|
if (this.context.isInAR || this.canReceiveInput(e) === !1)
|
|
54690
54691
|
return;
|
|
54691
54692
|
const t = this.getPointerId(e);
|
|
54692
|
-
|
|
54693
|
+
$n && In(`pointer down #${t}, identifier:${e.pointerId}`);
|
|
54693
54694
|
const i = this.getAndUpdateSpatialObjectForScreenPosition(t, e.clientX, e.clientY), n = new Yh("pointerdown", e, { origin: this, mode: "screen", deviceIndex: 0, pointerId: t, button: e.button, clientX: e.clientX, clientY: e.clientY, pointerType: e.pointerType, buttonName: this.getButtonName(e), device: i, pressure: e.pressure });
|
|
54694
54695
|
this.onDown(n);
|
|
54695
54696
|
});
|
|
@@ -54707,10 +54708,10 @@ class bce {
|
|
|
54707
54708
|
if (this.context.isInAR)
|
|
54708
54709
|
return;
|
|
54709
54710
|
const t = this.getPointerId(e), i = new Yh("pointerup", e, { origin: this, mode: "screen", deviceIndex: 0, pointerId: t, button: e.button, clientX: e.clientX, clientY: e.clientY, pointerType: e.pointerType, buttonName: this.getButtonName(e), device: this.getAndUpdateSpatialObjectForScreenPosition(t, e.clientX, e.clientY), pressure: e.pressure });
|
|
54710
|
-
this.onUp(i), this._pointerIds[t] = -1,
|
|
54711
|
+
this.onUp(i), this._pointerIds[t] = -1, $n && console.log("ID=" + t, "PointerId=" + e.pointerId, "ALL:", [...this._pointerIds]);
|
|
54711
54712
|
});
|
|
54712
54713
|
u(this, "onPointerCancel", (e) => {
|
|
54713
|
-
this.context.isInAR || (
|
|
54714
|
+
this.context.isInAR || ($n && console.log("Pointer cancel", e), this.onPointerUp(e));
|
|
54714
54715
|
});
|
|
54715
54716
|
// the touch events are currently only used for AR support on android
|
|
54716
54717
|
u(this, "onTouchStart", (e) => {
|
|
@@ -54805,10 +54806,10 @@ class bce {
|
|
|
54805
54806
|
continue;
|
|
54806
54807
|
}
|
|
54807
54808
|
if (e.immediatePropagationStopped) {
|
|
54808
|
-
t = !0,
|
|
54809
|
+
t = !0, $n && console.log("immediatePropagationStopped", e.type);
|
|
54809
54810
|
break;
|
|
54810
54811
|
} else
|
|
54811
|
-
e.propagationStopped && (t = !0,
|
|
54812
|
+
e.propagationStopped && (t = !0, $n && console.log("propagationStopped", e.type));
|
|
54812
54813
|
h.options.once && (c.listeners.splice(l, 1), l--), h.callback(e);
|
|
54813
54814
|
}
|
|
54814
54815
|
}
|
|
@@ -55052,13 +55053,13 @@ class bce {
|
|
|
55052
55053
|
createInputEvent(e) {
|
|
55053
55054
|
switch (e.type) {
|
|
55054
55055
|
case "pointerdown":
|
|
55055
|
-
|
|
55056
|
+
$n && In("Create Pointer down"), this.onDownButton(e.deviceIndex, e.button), this.onDown(e);
|
|
55056
55057
|
break;
|
|
55057
55058
|
case "pointermove":
|
|
55058
|
-
|
|
55059
|
+
$n && In("Create Pointer move"), this.onMove(e);
|
|
55059
55060
|
break;
|
|
55060
55061
|
case "pointerup":
|
|
55061
|
-
|
|
55062
|
+
$n && In("Create Pointer up"), this.onUp(e), this.onReleaseButton(e.deviceIndex, e.button);
|
|
55062
55063
|
break;
|
|
55063
55064
|
}
|
|
55064
55065
|
}
|
|
@@ -55078,7 +55079,7 @@ class bce {
|
|
|
55078
55079
|
}
|
|
55079
55080
|
canReceiveInput(e) {
|
|
55080
55081
|
var t;
|
|
55081
|
-
return e.target === ((t = this.context.renderer) == null ? void 0 : t.domElement) || e.target === this.context.domElement || this.context.isInAR || this.context.isInAR && e.target === document.body && Cg() ? !0 : (
|
|
55082
|
+
return e.target === ((t = this.context.renderer) == null ? void 0 : t.domElement) || e.target === this.context.domElement || this.context.isInAR || this.context.isInAR && e.target === document.body && Cg() ? !0 : ($n && console.warn("CanReceiveInput:False for", e.target), !1);
|
|
55082
55083
|
}
|
|
55083
55084
|
getPointerId(e, t) {
|
|
55084
55085
|
return e.pointerType === "mouse" ? 0 + (t ?? e.button) : this.getPointerIndex(e.pointerId);
|
|
@@ -55119,11 +55120,11 @@ class bce {
|
|
|
55119
55120
|
if (this.context.isInXR)
|
|
55120
55121
|
return !0;
|
|
55121
55122
|
const t = this.context.domElement.getBoundingClientRect(), i = e.clientX, n = e.clientY, r = i >= t.x && i <= t.right && n >= t.y && n <= t.bottom;
|
|
55122
|
-
return
|
|
55123
|
+
return $n && !r && console.log("Not in rect", t, i, n), r;
|
|
55123
55124
|
}
|
|
55124
55125
|
onDown(e) {
|
|
55125
55126
|
const t = e.pointerId;
|
|
55126
|
-
if (this.getPointerPressed(t) && console.warn(`pointerId is already pressed: ${t}`,
|
|
55127
|
+
if (this.getPointerPressed(t) && console.warn(`pointerId is already pressed: ${t}`, $n ? e : ""), $n && console.log(e.pointerType, "DOWN", t), !!this.isInRect(e)) {
|
|
55127
55128
|
for (this.setPointerState(t, this._pointerPressed, !0), this.setPointerState(t, this._pointerDown, !0), this.setPointerStateT(t, this._pointerEvent, e.source); t >= this._pointerTypes.length; )
|
|
55128
55129
|
this._pointerTypes.push(e.pointerType);
|
|
55129
55130
|
for (this._pointerTypes[t] = e.pointerType; t >= this._pointerPositionDown.length; )
|
|
@@ -55141,18 +55142,18 @@ class bce {
|
|
|
55141
55142
|
onUp(e) {
|
|
55142
55143
|
const t = e.pointerId;
|
|
55143
55144
|
if (!this.getPointerPressed(t)) {
|
|
55144
|
-
|
|
55145
|
+
$n && console.log(e.pointerType, "UP", t, "was not down");
|
|
55145
55146
|
return;
|
|
55146
55147
|
}
|
|
55147
|
-
for (
|
|
55148
|
+
for ($n && console.log(e.pointerType, "UP", t), this.setPointerState(t, this._pointerPressed, !1), this.setPointerStateT(t, this._pointerEvent, e.source), this.setPointerState(t, this._pointerUp, !0); t >= this._pointerUsed.length; )
|
|
55148
55149
|
this._pointerUsed.push(!1);
|
|
55149
55150
|
if (this.setPointerState(t, this._pointerUsed, !1), this.updatePointerPosition(e), !this._pointerPositionDown[t]) {
|
|
55150
|
-
|
|
55151
|
+
$n && ji("Received pointer up event without matching down event for button: " + t), console.warn("Received pointer up event without matching down event for button: " + t);
|
|
55151
55152
|
return;
|
|
55152
55153
|
}
|
|
55153
55154
|
const n = e.clientX - this._pointerPositionDown[t].x, r = e.clientY - this._pointerPositionDown[t].y;
|
|
55154
55155
|
if (t >= this._pointerUpTime.length && this._pointerUpTime.push(-99), Math.abs(n) < 5 && Math.abs(r) < 5) {
|
|
55155
|
-
|
|
55156
|
+
$n && console.log("CLICK", t), this.setPointerState(t, this._pointerClick, !0), e.isClick = !0;
|
|
55156
55157
|
const o = this._pointerUpTime[t], a = this.context.time.time - o;
|
|
55157
55158
|
a < this._doubleClickTimeThreshold && a > 0 && (this.setPointerState(t, this._pointerDoubleClick, !0), e.isDoubleClick = !0);
|
|
55158
55159
|
}
|
|
@@ -55189,7 +55190,7 @@ class bce {
|
|
|
55189
55190
|
return i;
|
|
55190
55191
|
t === -1 && this._pointerIds[i] === -1 && (t = i);
|
|
55191
55192
|
}
|
|
55192
|
-
return t !== -1 ? (this._pointerIds[t] = e, t) : (
|
|
55193
|
+
return t !== -1 ? (this._pointerIds[t] = e, t) : ($n && console.log("PUSH pointerId:", e), this._pointerIds.push(e), this._pointerIds.length - 1);
|
|
55193
55194
|
}
|
|
55194
55195
|
setPointerState(e, t, i) {
|
|
55195
55196
|
t[e] = i;
|
|
@@ -62001,7 +62002,7 @@ class jU {
|
|
|
62001
62002
|
depthTest: !1,
|
|
62002
62003
|
fog: !1,
|
|
62003
62004
|
side: gi
|
|
62004
|
-
}), this._fadeToColorQuad = new ge(new
|
|
62005
|
+
}), this._fadeToColorQuad = new ge(new Jn(10, 10), this._fadeToColorMaterial);
|
|
62005
62006
|
}
|
|
62006
62007
|
dispose() {
|
|
62007
62008
|
this._fadeToColorQuad.geometry.dispose(), this._fadeToColorMaterial.dispose();
|
|
@@ -62043,7 +62044,7 @@ class _S {
|
|
|
62043
62044
|
case "Quad":
|
|
62044
62045
|
case 0:
|
|
62045
62046
|
{
|
|
62046
|
-
const r = new
|
|
62047
|
+
const r = new Jn(1, 1, 1, 1), o = (t == null ? void 0 : t.material) ?? new zr({ color: 16777215 });
|
|
62047
62048
|
t != null && t.texture && "map" in o && (o.map = t.texture), i = new ge(r, o);
|
|
62048
62049
|
}
|
|
62049
62050
|
break;
|
|
@@ -64197,7 +64198,7 @@ class Mle {
|
|
|
64197
64198
|
/** @internal */
|
|
64198
64199
|
setRenderer(e) {
|
|
64199
64200
|
var t;
|
|
64200
|
-
(t = this._lodsManager) == null || t.disable(),
|
|
64201
|
+
(t = this._lodsManager) == null || t.disable(), Io.removePlugin(this), Io.addPlugin(this), Io.debugDrawLine = Ct.DrawLine, this._lodsManager = Io.get(e), this._lodsManager.enable();
|
|
64201
64202
|
}
|
|
64202
64203
|
/** @internal */
|
|
64203
64204
|
onAfterUpdatedLOD(e, t, i, n, r) {
|
|
@@ -64207,7 +64208,7 @@ class Mle {
|
|
|
64207
64208
|
var o, a, c;
|
|
64208
64209
|
if (!t.geometry || !yi.hasLODLevelAvailable(t.geometry))
|
|
64209
64210
|
return;
|
|
64210
|
-
const n =
|
|
64211
|
+
const n = Io.getObjectLODState(t);
|
|
64211
64212
|
if (!n)
|
|
64212
64213
|
return;
|
|
64213
64214
|
const r = i != n.lastLodLevel;
|
|
@@ -64446,7 +64447,7 @@ class Dle {
|
|
|
64446
64447
|
(i == null ? void 0 : i.viewDevice) === t && (Rle && console.log("REMOVE", e), i.removed = !0, this.playerViews.delete(e));
|
|
64447
64448
|
}
|
|
64448
64449
|
}
|
|
64449
|
-
new
|
|
64450
|
+
new as();
|
|
64450
64451
|
const ov = new Uint8Array(4);
|
|
64451
64452
|
ov[0] = 255;
|
|
64452
64453
|
ov[1] = 255;
|
|
@@ -64522,7 +64523,7 @@ async function JU(s) {
|
|
|
64522
64523
|
const e = s.uri;
|
|
64523
64524
|
if (e)
|
|
64524
64525
|
if (e.endsWith(".glsl")) {
|
|
64525
|
-
const i = await new
|
|
64526
|
+
const i = await new as().loadAsync(e);
|
|
64526
64527
|
s.code = i.toString();
|
|
64527
64528
|
} else
|
|
64528
64529
|
s.code = Nle(s.uri);
|
|
@@ -65482,6 +65483,7 @@ class xS extends HTMLElement {
|
|
|
65482
65483
|
overflow: clip;
|
|
65483
65484
|
box-shadow: 0px 7px 0.5rem 0px rgb(0 0 0 / 6%), inset 0px 0px 1.3rem rgba(0,0,0,.05);
|
|
65484
65485
|
backdrop-filter: blur(16px);
|
|
65486
|
+
-webkit-backdrop-filter: blur(16px);
|
|
65485
65487
|
pointer-events: all;
|
|
65486
65488
|
z-index: 1000;
|
|
65487
65489
|
}
|
|
@@ -65816,7 +65818,7 @@ class xS extends HTMLElement {
|
|
|
65816
65818
|
}
|
|
65817
65819
|
}
|
|
65818
65820
|
customElements.get(mg) || customElements.define(mg, xS);
|
|
65819
|
-
const
|
|
65821
|
+
const ts = ne("debugcontext"), qle = ne("stats"), Xle = ne("debugactive"), Yle = ne("debugframerate"), Jle = ne("debugcoroutine"), ixe = {};
|
|
65820
65822
|
class nxe {
|
|
65821
65823
|
constructor() {
|
|
65822
65824
|
u(this, "name");
|
|
@@ -65841,12 +65843,12 @@ function TD(s, e) {
|
|
|
65841
65843
|
if (!s)
|
|
65842
65844
|
return;
|
|
65843
65845
|
if (!s.isComponent) {
|
|
65844
|
-
(dt() ||
|
|
65846
|
+
(dt() || ts) && console.error(`Registered script is not a Needle Engine component.
|
|
65845
65847
|
The script will be ignored. Please make sure your component extends "Behaviour" imported from "@needle-tools/engine"
|
|
65846
65848
|
`, s);
|
|
65847
65849
|
return;
|
|
65848
65850
|
}
|
|
65849
|
-
e || (e = kt.Current,
|
|
65851
|
+
e || (e = kt.Current, ts && console.warn("> Registering component without context"));
|
|
65850
65852
|
const t = e == null ? void 0 : e.new_scripts;
|
|
65851
65853
|
t.includes(s) || t.push(s);
|
|
65852
65854
|
}
|
|
@@ -66124,9 +66126,9 @@ const Qi = class {
|
|
|
66124
66126
|
var t, i, n;
|
|
66125
66127
|
if ((t = this.renderer) == null || t.dispose(), e = { ...Qi.DefaultWebGLRendererParameters, ...e }, !e.canvas) {
|
|
66126
66128
|
const r = (n = (i = this.domElement) == null ? void 0 : i.shadowRoot) == null ? void 0 : n.querySelector("canvas");
|
|
66127
|
-
r && (e.canvas = r,
|
|
66129
|
+
r && (e.canvas = r, ts && console.log("Using canvas from shadow root", r));
|
|
66128
66130
|
}
|
|
66129
|
-
|
|
66131
|
+
ts && console.log("Using Renderer Parameters:", e, this.domElement), this.renderer = new hh(e), this.renderer.debug.checkShaderErrors = dt() || ne("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = so, this.renderer.setClearColor(new we("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = gR, this.renderer.setSize(this.domWidth, this.domHeight), this.renderer.outputColorSpace = yt, this.lodsManager.setRenderer(this.renderer), this.input.bindEvents();
|
|
66130
66132
|
}
|
|
66131
66133
|
internalOnUpdateVisible() {
|
|
66132
66134
|
var e, t;
|
|
@@ -66189,7 +66191,7 @@ const Qi = class {
|
|
|
66189
66191
|
}
|
|
66190
66192
|
internalOnDestroy() {
|
|
66191
66193
|
var e, t;
|
|
66192
|
-
Qi.Current = this, di.dispatchCallback(ki.ContextDestroying, this), Ac(this, ki.ContextDestroying), this.clear(), (e = this.renderer) == null || e.setAnimationLoop(null), this.renderer && (this.renderer.setClearAlpha(0), this.renderer.clear(), this.isManagedExternally || (
|
|
66194
|
+
Qi.Current = this, di.dispatchCallback(ki.ContextDestroying, this), Ac(this, ki.ContextDestroying), this.clear(), (e = this.renderer) == null || e.setAnimationLoop(null), this.renderer && (this.renderer.setClearAlpha(0), this.renderer.clear(), this.isManagedExternally || (ts && console.log("Disposing renderer"), this.renderer.dispose())), this.scene = null, this.renderer = null, this.input.dispose(), this.menu.onDestroy();
|
|
66193
66195
|
for (const i of this._disposeCallbacks)
|
|
66194
66196
|
try {
|
|
66195
66197
|
i();
|
|
@@ -66298,12 +66300,12 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66298
66300
|
async internalOnCreate(e) {
|
|
66299
66301
|
var a, c, l, h, d, f, p, g;
|
|
66300
66302
|
const t = ++this._createId;
|
|
66301
|
-
|
|
66303
|
+
ts && console.log("Creating context", this.name, e);
|
|
66302
66304
|
const i = globalThis["needle:dependencies:ready"];
|
|
66303
|
-
i instanceof Promise && (
|
|
66304
|
-
(
|
|
66305
|
+
i instanceof Promise && (ts && console.log("Waiting for dependencies to be ready"), await i.catch((y) => {
|
|
66306
|
+
(ts || dt()) && console.error("Needle Engine dependencies failed to load", y);
|
|
66305
66307
|
}).then(() => {
|
|
66306
|
-
|
|
66308
|
+
ts && console.log("Needle Engine dependencies are ready");
|
|
66307
66309
|
})), this.clear(), this.isManagedExternally === !1 && (this.createNewRenderer(), (a = this.renderer) == null || a.setAnimationLoop(null)), await rh(1), Qi.Current = this, await di.dispatchCallback(ki.ContextCreationStart, this);
|
|
66308
66310
|
let n = !0, r;
|
|
66309
66311
|
try {
|
|
@@ -66314,7 +66316,7 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66314
66316
|
if (!n || t !== this._createId || (c = e == null ? void 0 : e.abortSignal) != null && c.aborted)
|
|
66315
66317
|
return !1;
|
|
66316
66318
|
if (this.internalOnUpdateVisible(), !this.renderer)
|
|
66317
|
-
return
|
|
66319
|
+
return ts && console.warn("Context has no renderer (perhaps it was disconnected?", this.domElement.isConnected), !1;
|
|
66318
66320
|
!this.isManagedExternally && !this.domElement.shadowRoot && this.domElement.prepend(this.renderer.domElement), Qi.Current = this, Qi.Current = this;
|
|
66319
66321
|
for (let y = 0; y < this.new_scripts.length; y++) {
|
|
66320
66322
|
const m = this.new_scripts[y];
|
|
@@ -66345,9 +66347,9 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66345
66347
|
const y = new yS(this.scene, this.mainCamera);
|
|
66346
66348
|
this.renderer.setSize(this.domWidth, this.domHeight), this.composer.addPass(y), this.composer.setSize(this.domWidth, this.domHeight);
|
|
66347
66349
|
}
|
|
66348
|
-
this._sizeChanged = !0, this._stats && (this._stats.showPanel(0), (d = this.domElement.shadowRoot) == null || d.appendChild(this._stats.dom)),
|
|
66350
|
+
this._sizeChanged = !0, this._stats && (this._stats.showPanel(0), (d = this.domElement.shadowRoot) == null || d.appendChild(this._stats.dom)), ts && PT(this.scene, !0), this.targetFrameRate === void 0 ? (ts && console.warn("No target framerate set, using default", Qi.DefaultTargetFrameRate), this.targetFrameRate = Qi._defaultTargetFramerate) : ts && console.log("Target framerate set to", this.targetFrameRate), this._dispatchReadyAfterFrame = !0;
|
|
66349
66351
|
const o = di.dispatchCallback(ki.ContextCreated, this, { files: r });
|
|
66350
|
-
return o && ("internalSetLoadingMessage" in this.domElement && typeof this.domElement.internalSetLoadingMessage == "function" && ((f = this.domElement) == null || f.internalSetLoadingMessage("finish loading")), await o), (p = e == null ? void 0 : e.abortSignal) != null && p.aborted ? !1 : (Ac(this, ki.ContextCreated),
|
|
66352
|
+
return o && ("internalSetLoadingMessage" in this.domElement && typeof this.domElement.internalSetLoadingMessage == "function" && ((f = this.domElement) == null || f.internalSetLoadingMessage("finish loading")), await o), (p = e == null ? void 0 : e.abortSignal) != null && p.aborted ? !1 : (Ac(this, ki.ContextCreated), ts && console.log("Context Created...", this.renderer, this.renderer.domElement), this._isCreating = !1, !this.isManagedExternally && !((g = e == null ? void 0 : e.abortSignal) != null && g.aborted) && this.restartRenderLoop(), o);
|
|
66351
66353
|
}
|
|
66352
66354
|
async internalLoadInitialContent(e, t) {
|
|
66353
66355
|
var c, l, h, d;
|
|
@@ -66362,15 +66364,15 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66362
66364
|
}, o = qc(), a = 0;
|
|
66363
66365
|
for (let f = 0; f < n.length; f++) {
|
|
66364
66366
|
if ((c = t.abortSignal) != null && c.aborted) {
|
|
66365
|
-
|
|
66367
|
+
ts && console.log("Aborting loading because of abort signal");
|
|
66366
66368
|
break;
|
|
66367
66369
|
}
|
|
66368
66370
|
if (e !== this._createId) {
|
|
66369
|
-
|
|
66371
|
+
ts && console.log("Aborting loading because create id changed", e, this._createId);
|
|
66370
66372
|
break;
|
|
66371
66373
|
}
|
|
66372
66374
|
const p = n[f];
|
|
66373
|
-
(l = t == null ? void 0 : t.onLoadingStart) == null || l.call(this, f, p),
|
|
66375
|
+
(l = t == null ? void 0 : t.onLoadingStart) == null || l.call(this, f, p), ts && console.log("Context Load " + p);
|
|
66374
66376
|
const g = await o.loadSync(this, p, p, a, (y) => {
|
|
66375
66377
|
var m, A;
|
|
66376
66378
|
(m = t.abortSignal) != null && m.aborted || (r.name = p, r.progress = y, r.index = f, r.count = n.length, (A = t.onLoadingProgress) == null || A.call(this, r));
|
|
@@ -66400,11 +66402,11 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66400
66402
|
}
|
|
66401
66403
|
/** Performs a full update step including script callbacks, rendering (unless isManagedExternally is set to false) and post render callbacks */
|
|
66402
66404
|
update(e, t) {
|
|
66403
|
-
if (t === void 0 && (t = null), dt() ||
|
|
66405
|
+
if (t === void 0 && (t = null), dt() || ts || Cre())
|
|
66404
66406
|
try {
|
|
66405
66407
|
this.internalStep(e, t), this._renderlooperrors = 0;
|
|
66406
66408
|
} catch (i) {
|
|
66407
|
-
this._renderlooperrors += 1, (dt() ||
|
|
66409
|
+
this._renderlooperrors += 1, (dt() || ts) && (i instanceof Error || i instanceof TypeError) && In("Caught unhandled exception during render-loop - see console for details.", ga.Error), console.error("Frame #" + this.time.frame + `
|
|
66408
66410
|
`, i), this._renderlooperrors >= 3 && (console.warn("Stopping render loop due to error"), this.renderer.setAnimationLoop(null)), this.domElement.dispatchEvent(new CustomEvent("error", { detail: i }));
|
|
66409
66411
|
}
|
|
66410
66412
|
else
|
|
@@ -68216,7 +68218,7 @@ class Ri extends we {
|
|
|
68216
68218
|
return this.alpha = t[i + 3], super.fromArray(t, i);
|
|
68217
68219
|
}
|
|
68218
68220
|
}
|
|
68219
|
-
const aN = { type: "change" }, W1 = { type: "start" }, cN = { type: "end" }, R_ = new lo(), lN = new Fr(), Ihe = Math.cos(70 *
|
|
68221
|
+
const aN = { type: "change" }, W1 = { type: "start" }, cN = { type: "end" }, R_ = new lo(), lN = new Fr(), Ihe = Math.cos(70 * os.DEG2RAD);
|
|
68220
68222
|
let Mhe = class extends Ss {
|
|
68221
68223
|
constructor(e, t) {
|
|
68222
68224
|
super(), this.object = e, this.domElement = t, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new C(), this.cursor = new C(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: wd.ROTATE, MIDDLE: wd.DOLLY, RIGHT: wd.PAN }, this.touches = { ONE: Cd.ROTATE, TWO: Cd.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
|
|
@@ -68244,7 +68246,7 @@ let Mhe = class extends Ss {
|
|
|
68244
68246
|
if (i.zoomToCursor && M || i.object.isOrthographicCamera)
|
|
68245
68247
|
a.radius = se(a.radius);
|
|
68246
68248
|
else {
|
|
68247
|
-
i.enableDamping ? h =
|
|
68249
|
+
i.enableDamping ? h = os.lerp(h, l, i.dampingFactor) : h = l, a.radius = se(a.radius * h);
|
|
68248
68250
|
const xn = a.radius;
|
|
68249
68251
|
a.radius = se(a.radius * l), un = xn != a.radius;
|
|
68250
68252
|
}
|
|
@@ -68878,7 +68880,7 @@ const fxe = function(s) {
|
|
|
68878
68880
|
});
|
|
68879
68881
|
};
|
|
68880
68882
|
};
|
|
68881
|
-
var Dhe = Object.defineProperty, khe = Object.getOwnPropertyDescriptor,
|
|
68883
|
+
var Dhe = Object.defineProperty, khe = Object.getOwnPropertyDescriptor, No = (s, e, t, i) => {
|
|
68882
68884
|
for (var n = i > 1 ? void 0 : i ? khe(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
68883
68885
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
68884
68886
|
return i && n && Dhe(e, t, n), n;
|
|
@@ -69177,51 +69179,51 @@ const UB = (BM = class extends Be {
|
|
|
69177
69179
|
}
|
|
69178
69180
|
}, u(BM, "tempPosition", new C()), BM);
|
|
69179
69181
|
let Ni = UB;
|
|
69180
|
-
|
|
69182
|
+
No([
|
|
69181
69183
|
_r()
|
|
69182
69184
|
], Ni.prototype, "autoMass", 2);
|
|
69183
|
-
|
|
69185
|
+
No([
|
|
69184
69186
|
x()
|
|
69185
69187
|
], Ni.prototype, "mass", 1);
|
|
69186
|
-
|
|
69188
|
+
No([
|
|
69187
69189
|
_r(),
|
|
69188
69190
|
x()
|
|
69189
69191
|
], Ni.prototype, "useGravity", 2);
|
|
69190
|
-
|
|
69192
|
+
No([
|
|
69191
69193
|
x(C)
|
|
69192
69194
|
], Ni.prototype, "centerOfMass", 2);
|
|
69193
|
-
|
|
69195
|
+
No([
|
|
69194
69196
|
_r(),
|
|
69195
69197
|
x()
|
|
69196
69198
|
], Ni.prototype, "constraints", 2);
|
|
69197
|
-
|
|
69199
|
+
No([
|
|
69198
69200
|
_r(),
|
|
69199
69201
|
x()
|
|
69200
69202
|
], Ni.prototype, "isKinematic", 2);
|
|
69201
|
-
|
|
69203
|
+
No([
|
|
69202
69204
|
_r(),
|
|
69203
69205
|
x()
|
|
69204
69206
|
], Ni.prototype, "drag", 2);
|
|
69205
|
-
|
|
69207
|
+
No([
|
|
69206
69208
|
_r(),
|
|
69207
69209
|
x()
|
|
69208
69210
|
], Ni.prototype, "angularDrag", 2);
|
|
69209
|
-
|
|
69211
|
+
No([
|
|
69210
69212
|
_r(),
|
|
69211
69213
|
x()
|
|
69212
69214
|
], Ni.prototype, "detectCollisions", 2);
|
|
69213
|
-
|
|
69215
|
+
No([
|
|
69214
69216
|
_r(),
|
|
69215
69217
|
x()
|
|
69216
69218
|
], Ni.prototype, "sleepThreshold", 2);
|
|
69217
|
-
|
|
69219
|
+
No([
|
|
69218
69220
|
_r(),
|
|
69219
69221
|
x()
|
|
69220
69222
|
], Ni.prototype, "collisionDetectionMode", 2);
|
|
69221
|
-
|
|
69223
|
+
No([
|
|
69222
69224
|
_r()
|
|
69223
69225
|
], Ni.prototype, "_gravityScale", 2);
|
|
69224
|
-
|
|
69226
|
+
No([
|
|
69225
69227
|
_r()
|
|
69226
69228
|
], Ni.prototype, "dominanceGroup", 2);
|
|
69227
69229
|
const Jh = ne("debugsync"), M0 = "STRS";
|
|
@@ -69410,7 +69412,7 @@ class tc extends Be {
|
|
|
69410
69412
|
}
|
|
69411
69413
|
/** Mark the UI dirty which will trigger an THREE-Mesh-UI update */
|
|
69412
69414
|
markDirty() {
|
|
69413
|
-
|
|
69415
|
+
Ro.markUIDirty(this.context);
|
|
69414
69416
|
}
|
|
69415
69417
|
/** the underlying three-mesh-ui */
|
|
69416
69418
|
get shadowComponent() {
|
|
@@ -69918,15 +69920,15 @@ var Whe = Object.defineProperty, qhe = Object.getOwnPropertyDescriptor, Xhe = (s
|
|
|
69918
69920
|
};
|
|
69919
69921
|
class hv extends Be {
|
|
69920
69922
|
awake() {
|
|
69921
|
-
|
|
69923
|
+
Ro.createIfNoneExists(this.context);
|
|
69922
69924
|
}
|
|
69923
69925
|
onEnable() {
|
|
69924
69926
|
var e;
|
|
69925
|
-
(e =
|
|
69927
|
+
(e = Ro.get(this.context)) == null || e.register(this);
|
|
69926
69928
|
}
|
|
69927
69929
|
onDisable() {
|
|
69928
69930
|
var e;
|
|
69929
|
-
(e =
|
|
69931
|
+
(e = Ro.get(this.context)) == null || e.unregister(this);
|
|
69930
69932
|
}
|
|
69931
69933
|
}
|
|
69932
69934
|
class ba extends hv {
|
|
@@ -69944,7 +69946,7 @@ class ba extends hv {
|
|
|
69944
69946
|
return null;
|
|
69945
69947
|
t ?? (t = new ec()), t.targets = this.targets, t.results = this.raycastHits;
|
|
69946
69948
|
const i = t.testObject;
|
|
69947
|
-
this.ignoreSkinnedMeshes && (t.testObject = (r) => r instanceof
|
|
69949
|
+
this.ignoreSkinnedMeshes && (t.testObject = (r) => r instanceof ko ? "continue in children" : i ? i(r) : !0);
|
|
69948
69950
|
const n = this.context.physics.raycast(t);
|
|
69949
69951
|
return t.testObject = i, n;
|
|
69950
69952
|
}
|
|
@@ -70010,7 +70012,7 @@ function Gw(s, e) {
|
|
|
70010
70012
|
const t = s.material;
|
|
70011
70013
|
if ((t == null ? void 0 : t.isMaterial) === !0) {
|
|
70012
70014
|
const i = s.parent;
|
|
70013
|
-
i && i.isText, t.side = e.doubleSided ?? !0 ? gi :
|
|
70015
|
+
i && i.isText, t.side = e.doubleSided ?? !0 ? gi : cs, t.shadowSide = e.doubleSided ? gi : cs, s.castShadow = e.castShadows ? e.castShadows : !1, s.receiveShadow = e.receiveShadows ? e.receiveShadows : !1;
|
|
70014
70016
|
}
|
|
70015
70017
|
for (const i of s.children)
|
|
70016
70018
|
Gw(i, e);
|
|
@@ -70410,8 +70412,8 @@ const Tc = class extends Be {
|
|
|
70410
70412
|
return t ? re.isActiveSelf(t) ? this.testIsVisible(t.parent) : !1 : !0;
|
|
70411
70413
|
}
|
|
70412
70414
|
};
|
|
70413
|
-
let
|
|
70414
|
-
u(
|
|
70415
|
+
let Ro = Tc;
|
|
70416
|
+
u(Ro, "_eventSystemMap", /* @__PURE__ */ new Map()), u(Ro, "didSearchEventSystem", !1);
|
|
70415
70417
|
class ou {
|
|
70416
70418
|
static markDirty() {
|
|
70417
70419
|
this.needsUpdate = !0;
|
|
@@ -70589,7 +70591,7 @@ class wi extends Be {
|
|
|
70589
70591
|
}
|
|
70590
70592
|
/** @internal */
|
|
70591
70593
|
start() {
|
|
70592
|
-
this._didStart = !0, this._eventSystem =
|
|
70594
|
+
this._didStart = !0, this._eventSystem = Ro.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(QB.AfterHandleInput, this._afterHandleInputFn));
|
|
70593
70595
|
}
|
|
70594
70596
|
/** @internal */
|
|
70595
70597
|
onDestroy() {
|
|
@@ -71228,7 +71230,7 @@ class sue extends On {
|
|
|
71228
71230
|
super(r, [l, c]), this.audio = e, this.range = t, this.divisionsInnerAngle = i, this.divisionsOuterAngle = n, this.type = "PositionalAudioHelper", this.update();
|
|
71229
71231
|
}
|
|
71230
71232
|
update() {
|
|
71231
|
-
const e = this.audio, t = this.range, i = this.divisionsInnerAngle, n = this.divisionsOuterAngle, r =
|
|
71233
|
+
const e = this.audio, t = this.range, i = this.divisionsInnerAngle, n = this.divisionsOuterAngle, r = os.degToRad(e.panner.coneInnerAngle), o = os.degToRad(e.panner.coneOuterAngle), a = r / 2, c = o / 2;
|
|
71232
71234
|
let l = 0, h = 0, d, f;
|
|
71233
71235
|
const p = this.geometry, g = p.attributes.position;
|
|
71234
71236
|
p.clearGroups();
|
|
@@ -72607,7 +72609,7 @@ function pue(s, e) {
|
|
|
72607
72609
|
return {
|
|
72608
72610
|
name: "Empty",
|
|
72609
72611
|
isLooping: !1,
|
|
72610
|
-
guid: (e == null ? void 0 : e.generateUUID()) ??
|
|
72612
|
+
guid: (e == null ? void 0 : e.generateUUID()) ?? os.generateUUID(),
|
|
72611
72613
|
index: -1,
|
|
72612
72614
|
clip: new Gr(s, 0, [])
|
|
72613
72615
|
};
|
|
@@ -73071,7 +73073,7 @@ class gN {
|
|
|
73071
73073
|
this.createdInterpolant && this.originalEvaluate && (this.createdInterpolant.evaluate = this.originalEvaluate), this.track = void 0, this.createdInterpolant = null, this.originalEvaluate = void 0, this.customEvaluate = void 0;
|
|
73072
73074
|
}
|
|
73073
73075
|
}
|
|
73074
|
-
const
|
|
73076
|
+
const is = class {
|
|
73075
73077
|
constructor(e, t, i, n, r) {
|
|
73076
73078
|
u(this, "_action");
|
|
73077
73079
|
u(this, "root");
|
|
@@ -73082,11 +73084,11 @@ const ts = class {
|
|
|
73082
73084
|
u(this, "positionChange", new C());
|
|
73083
73085
|
u(this, "rotationChange", new Ee());
|
|
73084
73086
|
u(this, "_prevTime", 0);
|
|
73085
|
-
if (this.context = e, this.root = t, this.clip = i,
|
|
73087
|
+
if (this.context = e, this.root = t, this.clip = i, is.firstKeyframeRotation[this.cacheId] || (is.firstKeyframeRotation[this.cacheId] = new Ee()), r) {
|
|
73086
73088
|
const o = r.values;
|
|
73087
|
-
|
|
73089
|
+
is.firstKeyframeRotation[this.cacheId].set(o[0], o[1], o[2], o[3]);
|
|
73088
73090
|
}
|
|
73089
|
-
|
|
73091
|
+
is.spaceRotation[this.cacheId] || (is.spaceRotation[this.cacheId] = new Ee()), is.effectiveSpaceRotation[this.cacheId] || (is.effectiveSpaceRotation[this.cacheId] = new Ee()), is.clipOffsetRotation[this.cacheId] = new Ee(), r && is.clipOffsetRotation[this.cacheId].set(r.values[0], r.values[1], r.values[2], r.values[3]).invert(), this.handlePosition(i, n), this.handleRotation(i, r);
|
|
73090
73092
|
}
|
|
73091
73093
|
set action(e) {
|
|
73092
73094
|
this._action = e;
|
|
@@ -73100,20 +73102,20 @@ const ts = class {
|
|
|
73100
73102
|
onStart(e) {
|
|
73101
73103
|
if (e.getClip() !== this.clip)
|
|
73102
73104
|
return;
|
|
73103
|
-
|
|
73104
|
-
const t =
|
|
73105
|
-
if (
|
|
73105
|
+
is.lastObjRotation[this.cacheId] || (is.lastObjRotation[this.cacheId] = this.root.quaternion.clone());
|
|
73106
|
+
const t = is.lastObjRotation[this.cacheId];
|
|
73107
|
+
if (is.spaceRotation[this.cacheId].copy(t), L_) {
|
|
73106
73108
|
const i = new an().setFromQuaternion(t);
|
|
73107
73109
|
console.log("START", this.clip.name, it.toDegrees(i.y), this.root.position.z);
|
|
73108
73110
|
}
|
|
73109
73111
|
}
|
|
73110
73112
|
getClipRotationOffset() {
|
|
73111
|
-
return
|
|
73113
|
+
return is.clipOffsetRotation[this.cacheId];
|
|
73112
73114
|
}
|
|
73113
73115
|
handlePosition(e, t) {
|
|
73114
73116
|
if (t) {
|
|
73115
73117
|
const i = this.root;
|
|
73116
|
-
L_ && i.add(new va()),
|
|
73118
|
+
L_ && i.add(new va()), is.lastObjPosition[this.cacheId] || (is.lastObjPosition[this.cacheId] = this.root.position.clone());
|
|
73117
73119
|
const n = new C(), r = new C();
|
|
73118
73120
|
this.positionWrapper = new gN(t, (o, a) => {
|
|
73119
73121
|
const c = this.action.getEffectiveWeight();
|
|
@@ -73139,10 +73141,10 @@ const ts = class {
|
|
|
73139
73141
|
this.positionChange.set(0, 0, 0), this.rotationChange.set(0, 0, 0, 1);
|
|
73140
73142
|
}
|
|
73141
73143
|
onAfterUpdate(e) {
|
|
73142
|
-
return !this.action || (e *= this.action.getEffectiveWeight(), e <= 0) ? !1 : (this.positionChange.multiplyScalar(e), this.rotationChange.slerp(
|
|
73144
|
+
return !this.action || (e *= this.action.getEffectiveWeight(), e <= 0) ? !1 : (this.positionChange.multiplyScalar(e), this.rotationChange.slerp(is.identityQuaternion, 1 - e), !0);
|
|
73143
73145
|
}
|
|
73144
73146
|
};
|
|
73145
|
-
let wc =
|
|
73147
|
+
let wc = is;
|
|
73146
73148
|
u(wc, "lastObjPosition", {}), u(wc, "lastObjRotation", {}), // we remove the first keyframe rotation from the space rotation when updating
|
|
73147
73149
|
u(wc, "firstKeyframeRotation", {}), // this is used to rotate the space on clip end / start (so the transform direction is correct)
|
|
73148
73150
|
u(wc, "spaceRotation", {}), u(wc, "effectiveSpaceRotation", {}), u(wc, "clipOffsetRotation", {}), u(wc, "identityQuaternion", new Ee());
|
|
@@ -73206,7 +73208,7 @@ var Aue = Object.defineProperty, yue = Object.getOwnPropertyDescriptor, DS = (s,
|
|
|
73206
73208
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
73207
73209
|
return i && n && Aue(e, t, n), n;
|
|
73208
73210
|
};
|
|
73209
|
-
const
|
|
73211
|
+
const Yo = ne("debuganimator");
|
|
73210
73212
|
class Js extends Be {
|
|
73211
73213
|
constructor() {
|
|
73212
73214
|
super(...arguments);
|
|
@@ -73226,7 +73228,7 @@ class Js extends Be {
|
|
|
73226
73228
|
}
|
|
73227
73229
|
set runtimeAnimatorController(t) {
|
|
73228
73230
|
var i;
|
|
73229
|
-
this._animatorController && this._animatorController.model === t || (t ? t instanceof Aa ? (t.animator && t.animator !== this && (console.warn("AnimatorController can not be bound to multiple animators", (i = t.model) == null ? void 0 : i.name), t.model || console.error("AnimatorController has no model"), t = new Aa(t.model)), this._animatorController = t, this._animatorController.bind(this)) : (
|
|
73231
|
+
this._animatorController && this._animatorController.model === t || (t ? t instanceof Aa ? (t.animator && t.animator !== this && (console.warn("AnimatorController can not be bound to multiple animators", (i = t.model) == null ? void 0 : i.name), t.model || console.error("AnimatorController has no model"), t = new Aa(t.model)), this._animatorController = t, this._animatorController.bind(this)) : (Yo && console.log("Assign animator controller", t, this), this._animatorController = new Aa(t), this.__didAwake && this._animatorController.bind(this)) : this._animatorController = null);
|
|
73230
73232
|
}
|
|
73231
73233
|
get runtimeAnimatorController() {
|
|
73232
73234
|
return this._animatorController;
|
|
@@ -73284,7 +73286,7 @@ class Js extends Be {
|
|
|
73284
73286
|
}
|
|
73285
73287
|
setBool(t, i) {
|
|
73286
73288
|
var n, r;
|
|
73287
|
-
|
|
73289
|
+
Yo && console.log("setBool", t, i), ((n = this.runtimeAnimatorController) == null ? void 0 : n.getBool(t)) !== i && (this._parametersAreDirty = !0), (r = this.runtimeAnimatorController) == null || r.setBool(t, i);
|
|
73288
73290
|
}
|
|
73289
73291
|
/**@deprecated use getBool */
|
|
73290
73292
|
GetBool(t) {
|
|
@@ -73293,7 +73295,7 @@ class Js extends Be {
|
|
|
73293
73295
|
getBool(t) {
|
|
73294
73296
|
var n;
|
|
73295
73297
|
const i = ((n = this.runtimeAnimatorController) == null ? void 0 : n.getBool(t)) ?? !1;
|
|
73296
|
-
return
|
|
73298
|
+
return Yo && console.log("getBool", t, i), i;
|
|
73297
73299
|
}
|
|
73298
73300
|
toggleBool(t) {
|
|
73299
73301
|
this.setBool(t, !this.getBool(t));
|
|
@@ -73304,7 +73306,7 @@ class Js extends Be {
|
|
|
73304
73306
|
}
|
|
73305
73307
|
setFloat(t, i) {
|
|
73306
73308
|
var n, r;
|
|
73307
|
-
((n = this.runtimeAnimatorController) == null ? void 0 : n.getFloat(t)) !== i && (this._parametersAreDirty = !0),
|
|
73309
|
+
((n = this.runtimeAnimatorController) == null ? void 0 : n.getFloat(t)) !== i && (this._parametersAreDirty = !0), Yo && console.log("setFloat", t, i), (r = this.runtimeAnimatorController) == null || r.setFloat(t, i);
|
|
73308
73310
|
}
|
|
73309
73311
|
/**@deprecated use getFloat */
|
|
73310
73312
|
GetFloat(t) {
|
|
@@ -73313,7 +73315,7 @@ class Js extends Be {
|
|
|
73313
73315
|
getFloat(t) {
|
|
73314
73316
|
var n;
|
|
73315
73317
|
const i = ((n = this.runtimeAnimatorController) == null ? void 0 : n.getFloat(t)) ?? -1;
|
|
73316
|
-
return
|
|
73318
|
+
return Yo && console.log("getFloat", t, i), i;
|
|
73317
73319
|
}
|
|
73318
73320
|
/**@deprecated use setInteger */
|
|
73319
73321
|
SetInteger(t, i) {
|
|
@@ -73321,7 +73323,7 @@ class Js extends Be {
|
|
|
73321
73323
|
}
|
|
73322
73324
|
setInteger(t, i) {
|
|
73323
73325
|
var n, r;
|
|
73324
|
-
((n = this.runtimeAnimatorController) == null ? void 0 : n.getInteger(t)) !== i && (this._parametersAreDirty = !0),
|
|
73326
|
+
((n = this.runtimeAnimatorController) == null ? void 0 : n.getInteger(t)) !== i && (this._parametersAreDirty = !0), Yo && console.log("setInteger", t, i), (r = this.runtimeAnimatorController) == null || r.setInteger(t, i);
|
|
73325
73327
|
}
|
|
73326
73328
|
/**@deprecated use getInteger */
|
|
73327
73329
|
GetInteger(t) {
|
|
@@ -73330,7 +73332,7 @@ class Js extends Be {
|
|
|
73330
73332
|
getInteger(t) {
|
|
73331
73333
|
var n;
|
|
73332
73334
|
const i = ((n = this.runtimeAnimatorController) == null ? void 0 : n.getInteger(t)) ?? -1;
|
|
73333
|
-
return
|
|
73335
|
+
return Yo && console.log("getInteger", t, i), i;
|
|
73334
73336
|
}
|
|
73335
73337
|
/**@deprecated use setTrigger */
|
|
73336
73338
|
SetTrigger(t) {
|
|
@@ -73338,7 +73340,7 @@ class Js extends Be {
|
|
|
73338
73340
|
}
|
|
73339
73341
|
setTrigger(t) {
|
|
73340
73342
|
var i;
|
|
73341
|
-
this._parametersAreDirty = !0,
|
|
73343
|
+
this._parametersAreDirty = !0, Yo && console.log("setTrigger", t), (i = this.runtimeAnimatorController) == null || i.setTrigger(t);
|
|
73342
73344
|
}
|
|
73343
73345
|
/**@deprecated use resetTrigger */
|
|
73344
73346
|
ResetTrigger(t) {
|
|
@@ -73346,7 +73348,7 @@ class Js extends Be {
|
|
|
73346
73348
|
}
|
|
73347
73349
|
resetTrigger(t) {
|
|
73348
73350
|
var i;
|
|
73349
|
-
this._parametersAreDirty = !0,
|
|
73351
|
+
this._parametersAreDirty = !0, Yo && console.log("resetTrigger", t), (i = this.runtimeAnimatorController) == null || i.resetTrigger(t);
|
|
73350
73352
|
}
|
|
73351
73353
|
/**@deprecated use getTrigger */
|
|
73352
73354
|
GetTrigger(t) {
|
|
@@ -73355,7 +73357,7 @@ class Js extends Be {
|
|
|
73355
73357
|
getTrigger(t) {
|
|
73356
73358
|
var n;
|
|
73357
73359
|
const i = (n = this.runtimeAnimatorController) == null ? void 0 : n.getTrigger(t);
|
|
73358
|
-
return
|
|
73360
|
+
return Yo && console.log("getTrigger", t, i), i;
|
|
73359
73361
|
}
|
|
73360
73362
|
/**@deprecated use isInTransition */
|
|
73361
73363
|
IsInTransition() {
|
|
@@ -73372,7 +73374,7 @@ class Js extends Be {
|
|
|
73372
73374
|
}
|
|
73373
73375
|
setSpeed(t) {
|
|
73374
73376
|
var i;
|
|
73375
|
-
t !== this._speed && (
|
|
73377
|
+
t !== this._speed && (Yo && console.log("setSpeed", t), this._speed = t, ((i = this._animatorController) == null ? void 0 : i.animator) == this && this._animatorController.setSpeed(t));
|
|
73376
73378
|
}
|
|
73377
73379
|
/** Will generate a random speed between the min and max values and set it to the animatorcontroller */
|
|
73378
73380
|
set minMaxSpeed(t) {
|
|
@@ -73384,7 +73386,7 @@ class Js extends Be {
|
|
|
73384
73386
|
this._normalizedStartOffset = it.lerp(t.x, t.y, Math.random()), ((i = this.runtimeAnimatorController) == null ? void 0 : i.animator) == this && (this.runtimeAnimatorController.normalizedStartOffset = this._normalizedStartOffset);
|
|
73385
73387
|
}
|
|
73386
73388
|
awake() {
|
|
73387
|
-
|
|
73389
|
+
Yo && console.log("ANIMATOR", this.name, this), this.gameObject && this.initializeRuntimeAnimatorController();
|
|
73388
73390
|
}
|
|
73389
73391
|
initializeRuntimeAnimatorController(t = !1) {
|
|
73390
73392
|
const i = t || this.runtimeAnimatorController !== this._initializeWithRuntimeAnimatorController;
|
|
@@ -73429,7 +73431,7 @@ class HD {
|
|
|
73429
73431
|
}
|
|
73430
73432
|
get duration() {
|
|
73431
73433
|
var e;
|
|
73432
|
-
return ((e = this.clip) == null ? void 0 : e.duration) ??
|
|
73434
|
+
return ((e = this.clip) == null ? void 0 : e.duration) ?? ns.restPoseClipDuration;
|
|
73433
73435
|
}
|
|
73434
73436
|
}
|
|
73435
73437
|
const j2 = class {
|
|
@@ -73515,11 +73517,11 @@ const j2 = class {
|
|
|
73515
73517
|
}
|
|
73516
73518
|
}
|
|
73517
73519
|
};
|
|
73518
|
-
let
|
|
73520
|
+
let ns = j2;
|
|
73519
73521
|
/** This value can theoretically be anything – a value of 1 is good to clearly see animation gaps.
|
|
73520
73522
|
* For production, a value of 1/60 is enough, since the files can then still properly play back at 60fps.
|
|
73521
73523
|
*/
|
|
73522
|
-
u(
|
|
73524
|
+
u(ns, "animationDurationPadding", 1 / 60), u(ns, "restPoseClipDuration", 1 / 60);
|
|
73523
73525
|
class kS {
|
|
73524
73526
|
constructor(e) {
|
|
73525
73527
|
/** For each animated object, contains time/pos/rot/scale samples in the format that USD needs,
|
|
@@ -73545,7 +73547,7 @@ class kS {
|
|
|
73545
73547
|
return "animation";
|
|
73546
73548
|
}
|
|
73547
73549
|
getStartTimeCode() {
|
|
73548
|
-
return !this.injectRestPoses || this.rootAndClipToRegisteredAnimationMap.size === 0 ? 0 : (
|
|
73550
|
+
return !this.injectRestPoses || this.rootAndClipToRegisteredAnimationMap.size === 0 ? 0 : (ns.restPoseClipDuration + ns.animationDurationPadding) * 60;
|
|
73549
73551
|
}
|
|
73550
73552
|
/** Returns the end time code, based on 60 frames per second, for all registered animations.
|
|
73551
73553
|
* This matches the highest time value in the USDZ file. */
|
|
@@ -73574,7 +73576,7 @@ class kS {
|
|
|
73574
73576
|
return console.error("Trying to get start time for root that has no animation data", e, t, ...this.dict), 0;
|
|
73575
73577
|
let r = 0;
|
|
73576
73578
|
for (let o = 0; o < n.length && n[o].clip !== t; o++)
|
|
73577
|
-
r += n[o].getDuration() +
|
|
73579
|
+
r += n[o].getDuration() + ns.animationDurationPadding;
|
|
73578
73580
|
return r;
|
|
73579
73581
|
}
|
|
73580
73582
|
// The same clip could be registered for different roots. All of them need written animation data then.
|
|
@@ -73625,9 +73627,9 @@ class kS {
|
|
|
73625
73627
|
console.warn("no transform data found for target ", f, "at slot " + r + ", this is likely a bug");
|
|
73626
73628
|
continue;
|
|
73627
73629
|
}
|
|
73628
|
-
a.delete(f), this.injectRestPoses && !p[0] && (p[0] = new
|
|
73630
|
+
a.delete(f), this.injectRestPoses && !p[0] && (p[0] = new ns(null, f, null));
|
|
73629
73631
|
let g = p[r];
|
|
73630
|
-
g || (g = new
|
|
73632
|
+
g || (g = new ns(e, f, t), p[r] = g), g.addTrack(h), o != null && o.includes(f) || o == null || o.push(f);
|
|
73631
73633
|
}
|
|
73632
73634
|
Rc && console.log("Unregistered nodes for this clip", a, "clip", t, "at slot", r, "for root", e, "targets", o);
|
|
73633
73635
|
for (const h of a) {
|
|
@@ -73636,11 +73638,11 @@ class kS {
|
|
|
73636
73638
|
continue;
|
|
73637
73639
|
if (this.injectRestPoses && !d[0]) {
|
|
73638
73640
|
console.warn("Adding rest pose for ", h, t, "at slot", r, "This is likely a bug, should have been added earlier.");
|
|
73639
|
-
const p = new
|
|
73641
|
+
const p = new ns(null, h, null);
|
|
73640
73642
|
d[0] = p;
|
|
73641
73643
|
}
|
|
73642
73644
|
let f = d[r];
|
|
73643
|
-
f || (Rc && console.log("Adding padding clip for ", h, t, "at slot", r), f = new
|
|
73645
|
+
f || (Rc && console.log("Adding padding clip for ", h, t, "at slot", r), f = new ns(e, h, t), d[r] = f);
|
|
73644
73646
|
}
|
|
73645
73647
|
const c = new HD(this, e, t);
|
|
73646
73648
|
if (this.rootAndClipToRegisteredAnimationMap.set(i, c), Rc && console.log({ root: e, clip: t, info: c }), t) {
|
|
@@ -73671,13 +73673,14 @@ class kS {
|
|
|
73671
73673
|
for (let h = 0; h < l.length; h++) {
|
|
73672
73674
|
let d = l[h];
|
|
73673
73675
|
if (!d) {
|
|
73674
|
-
const
|
|
73675
|
-
l[h] = new
|
|
73676
|
+
const p = h - (this.injectRestPoses ? 1 : 0);
|
|
73677
|
+
l[h] = new ns(null, c, this.rootToRegisteredClip.get(n)[p]), d = l[h];
|
|
73676
73678
|
}
|
|
73677
|
-
|
|
73678
|
-
|
|
73679
|
-
|
|
73680
|
-
|
|
73679
|
+
const f = d.getDuration();
|
|
73680
|
+
if (a[h] === void 0)
|
|
73681
|
+
a[h] = f;
|
|
73682
|
+
else if (a[h] !== f) {
|
|
73683
|
+
console.error("Error during UDSZ export: Encountered different animation durations for animated targets. Please report a bug!", { datas: l, target: c }), a[h] = f;
|
|
73681
73684
|
continue;
|
|
73682
73685
|
}
|
|
73683
73686
|
}
|
|
@@ -73747,7 +73750,7 @@ class vue {
|
|
|
73747
73750
|
const Q = new Array();
|
|
73748
73751
|
let q = 0;
|
|
73749
73752
|
for (let X = 0; X < L.length; X++)
|
|
73750
|
-
Q.push(q), q += L[X].getDuration() +
|
|
73753
|
+
Q.push(q), q += L[X].getDuration() + ns.animationDurationPadding;
|
|
73751
73754
|
for (let X = 0; X < L.length; X++) {
|
|
73752
73755
|
const se = L[X], ce = Q[X];
|
|
73753
73756
|
G.length <= X && G.push({ pos: [], rot: [], scale: [], timeOffset: ce });
|
|
@@ -73763,7 +73766,7 @@ class vue {
|
|
|
73763
73766
|
for (const Q of F) {
|
|
73764
73767
|
const q = T.get(Q);
|
|
73765
73768
|
let X;
|
|
73766
|
-
q ? console.assert(q.length === L, "We should have the same number of TransformData entries for each bone", q, U) : X = new
|
|
73769
|
+
q ? console.assert(q.length === L, "We should have the same number of TransformData entries for each bone", q, U) : X = new ns(null, Q, null);
|
|
73767
73770
|
for (let se = 0; se < L; se++) {
|
|
73768
73771
|
const ce = q ? q[se] : X, Ie = U[se];
|
|
73769
73772
|
for (const { time: ie, translation: me } of ce.getValues(Ie.pos, !0, !1, !1)) {
|
|
@@ -73887,7 +73890,7 @@ class vue {
|
|
|
73887
73890
|
const i = this.dict.get(this.object);
|
|
73888
73891
|
if (i)
|
|
73889
73892
|
for (let d = 0; d < i.length; d++)
|
|
73890
|
-
i[d] === void 0 && (i[d] = new
|
|
73893
|
+
i[d] === void 0 && (i[d] = new ns(null, this.object, null));
|
|
73891
73894
|
this.skinnedMeshExport(e, t);
|
|
73892
73895
|
const n = this.object, r = this.dict.get(n);
|
|
73893
73896
|
if (!r || n.isSkinnedMesh)
|
|
@@ -73902,7 +73905,7 @@ class vue {
|
|
|
73902
73905
|
console.error("Got an undefined transform data, this is likely a bug.", n, r);
|
|
73903
73906
|
continue;
|
|
73904
73907
|
}
|
|
73905
|
-
c += r[d].getDuration() +
|
|
73908
|
+
c += r[d].getDuration() + ns.animationDurationPadding;
|
|
73906
73909
|
}
|
|
73907
73910
|
const l = Intl.NumberFormat("en-US", {
|
|
73908
73911
|
maximumFractionDigits: 3,
|
|
@@ -74347,7 +74350,7 @@ var Que = Object.defineProperty, zue = Object.getOwnPropertyDescriptor, FS = (s,
|
|
|
74347
74350
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
74348
74351
|
return i && n && Que(e, t, n), n;
|
|
74349
74352
|
};
|
|
74350
|
-
const
|
|
74353
|
+
const wo = ne("debugplayersync");
|
|
74351
74354
|
class fv extends Be {
|
|
74352
74355
|
constructor() {
|
|
74353
74356
|
super(...arguments);
|
|
@@ -74356,7 +74359,7 @@ class fv extends Be {
|
|
|
74356
74359
|
u(this, "onPlayerSpawned");
|
|
74357
74360
|
u(this, "_localInstance");
|
|
74358
74361
|
u(this, "onJoinedRoom", () => {
|
|
74359
|
-
|
|
74362
|
+
wo && console.log("PlayerSync.joinedRoom. autoSync is set to " + this.autoSync), this.autoSync && this.getInstance();
|
|
74360
74363
|
});
|
|
74361
74364
|
}
|
|
74362
74365
|
awake() {
|
|
@@ -74372,7 +74375,7 @@ class fv extends Be {
|
|
|
74372
74375
|
var i, n, r, o, a, c;
|
|
74373
74376
|
if (this._localInstance)
|
|
74374
74377
|
return this._localInstance;
|
|
74375
|
-
if (
|
|
74378
|
+
if (wo && console.log("PlayerSync.createInstance", (i = this.asset) == null ? void 0 : i.uri), !((n = this.asset) != null && n.asset) && !((r = this.asset) != null && r.uri))
|
|
74376
74379
|
return console.error('PlayerSync: can not create an instance because "asset" is not set!'), null;
|
|
74377
74380
|
this._localInstance = (o = this.asset) == null ? void 0 : o.instantiateSynced({ parent: this.gameObject }, !0);
|
|
74378
74381
|
const t = await this._localInstance;
|
|
@@ -74385,7 +74388,7 @@ class fv extends Be {
|
|
|
74385
74388
|
}
|
|
74386
74389
|
destroyInstance() {
|
|
74387
74390
|
var t;
|
|
74388
|
-
(t = this._localInstance) == null || t.then((i) => (
|
|
74391
|
+
(t = this._localInstance) == null || t.then((i) => (wo && console.log("PlayerSync.destroyInstance", i), re.destroySynced(i))), this._localInstance = void 0;
|
|
74389
74392
|
}
|
|
74390
74393
|
watchTabVisible() {
|
|
74391
74394
|
window.addEventListener("visibilitychange", (t) => {
|
|
@@ -74418,7 +74421,7 @@ const Ls = (NA = class extends Be {
|
|
|
74418
74421
|
u(this, "dontDestroy", !1);
|
|
74419
74422
|
u(this, "onUserLeftRoom", (e) => {
|
|
74420
74423
|
if (e.userId === this.owner) {
|
|
74421
|
-
|
|
74424
|
+
wo && console.log("PLAYERSYNC LEFT", this.owner), this.doDestroy();
|
|
74422
74425
|
return;
|
|
74423
74426
|
}
|
|
74424
74427
|
});
|
|
@@ -74464,7 +74467,7 @@ const Ls = (NA = class extends Be {
|
|
|
74464
74467
|
}
|
|
74465
74468
|
onOwnerChange(e, t) {
|
|
74466
74469
|
var o, a;
|
|
74467
|
-
|
|
74470
|
+
wo && console.log("PlayerSync.onOwnerChange", this, "newOwner", e, "oldOwner", t);
|
|
74468
74471
|
const i = Ls._local.indexOf(this);
|
|
74469
74472
|
i >= 0 && Ls._local.splice(i, 1);
|
|
74470
74473
|
const n = {
|
|
@@ -74481,11 +74484,11 @@ const Ls = (NA = class extends Be {
|
|
|
74481
74484
|
this.dispatchEvent(r), Ls.dispatchEvent("ownerChanged", r);
|
|
74482
74485
|
}
|
|
74483
74486
|
awake() {
|
|
74484
|
-
Ls.all.push(this),
|
|
74487
|
+
Ls.all.push(this), wo && console.log("Registered new PlayerState", this.guid, Ls.all.length - 1, Ls.all), this.context.connection.beginListen(si.UserLeftRoom, this.onUserLeftRoom);
|
|
74485
74488
|
}
|
|
74486
74489
|
async start() {
|
|
74487
|
-
|
|
74488
|
-
!this.destroyed && !this.owner ? this.dontDestroy ?
|
|
74490
|
+
wo && console.log("PLAYERSTATE.START, owner: " + this.owner, this.context.connection.usersInRoom([])), this.owner ? (this.context.connection.isInRoom || await rh(300), this.context.connection.userIsInRoom(this.owner) == !1 && (wo && console.log(`PlayerSync.start → doDestroy "${this.name}" because user "${this.owner}" is not in room anymore...`, "Currently in room:", ...this.context.connection.usersInRoom()), this.doDestroy())) : this.owner || (wo && console.warn("PlayerState.start → owner is undefined!", this.name), setTimeout(() => {
|
|
74491
|
+
!this.destroyed && !this.owner ? this.dontDestroy ? wo && console.warn("PlayerState.start → owner is still undefined but dontDestroy is set to true", this.name) : (wo && console.warn(`PlayerState.start → owner is still undefined: destroying "${this.name}" instance now`), this.doDestroy()) : wo && console.log("PlayerState.start → owner is assigned", this.owner);
|
|
74489
74492
|
}, 2e3));
|
|
74490
74493
|
}
|
|
74491
74494
|
// onEnable() {
|
|
@@ -74499,7 +74502,7 @@ const Ls = (NA = class extends Be {
|
|
|
74499
74502
|
// }
|
|
74500
74503
|
/** this tells the server that this client has been destroyed and the networking message for the instantiate will be removed */
|
|
74501
74504
|
doDestroy() {
|
|
74502
|
-
|
|
74505
|
+
wo && console.log("PlayerSync.doDestroy → syncDestroy", this.name), BD(this.gameObject, this.context.connection);
|
|
74503
74506
|
}
|
|
74504
74507
|
onDestroy() {
|
|
74505
74508
|
if (this.context.connection.stopListen(si.UserLeftRoom, this.onUserLeftRoom), Ls.all.splice(Ls.all.indexOf(this), 1), this.isLocalPlayer) {
|
|
@@ -76514,7 +76517,7 @@ class $D extends zS {
|
|
|
76514
76517
|
GS([
|
|
76515
76518
|
x(jt)
|
|
76516
76519
|
], $D.prototype, "mainTexture", 1);
|
|
76517
|
-
var Rde = Object.defineProperty, Pde = Object.getOwnPropertyDescriptor,
|
|
76520
|
+
var Rde = Object.defineProperty, Pde = Object.getOwnPropertyDescriptor, Qo = (s, e, t, i) => {
|
|
76518
76521
|
for (var n = i > 1 ? void 0 : i ? Pde(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
76519
76522
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
76520
76523
|
return i && n && Rde(e, t, n), n;
|
|
@@ -76531,25 +76534,25 @@ class zu {
|
|
|
76531
76534
|
u(this, "selectedColor");
|
|
76532
76535
|
}
|
|
76533
76536
|
}
|
|
76534
|
-
|
|
76537
|
+
Qo([
|
|
76535
76538
|
x()
|
|
76536
76539
|
], zu.prototype, "colorMultiplier", 2);
|
|
76537
|
-
|
|
76540
|
+
Qo([
|
|
76538
76541
|
x(Ri)
|
|
76539
76542
|
], zu.prototype, "disabledColor", 2);
|
|
76540
|
-
|
|
76543
|
+
Qo([
|
|
76541
76544
|
x()
|
|
76542
76545
|
], zu.prototype, "fadeDuration", 2);
|
|
76543
|
-
|
|
76546
|
+
Qo([
|
|
76544
76547
|
x(Ri)
|
|
76545
76548
|
], zu.prototype, "highlightedColor", 2);
|
|
76546
|
-
|
|
76549
|
+
Qo([
|
|
76547
76550
|
x(Ri)
|
|
76548
76551
|
], zu.prototype, "normalColor", 2);
|
|
76549
|
-
|
|
76552
|
+
Qo([
|
|
76550
76553
|
x(Ri)
|
|
76551
76554
|
], zu.prototype, "pressedColor", 2);
|
|
76552
|
-
|
|
76555
|
+
Qo([
|
|
76553
76556
|
x(Ri)
|
|
76554
76557
|
], zu.prototype, "selectedColor", 2);
|
|
76555
76558
|
class Dde {
|
|
@@ -76676,25 +76679,25 @@ class Gu extends Be {
|
|
|
76676
76679
|
return i ? t.clone().multiply(i).convertLinearToSRGB() : t.clone().convertLinearToSRGB();
|
|
76677
76680
|
}
|
|
76678
76681
|
}
|
|
76679
|
-
|
|
76682
|
+
Qo([
|
|
76680
76683
|
x(ws)
|
|
76681
76684
|
], Gu.prototype, "onClick", 2);
|
|
76682
|
-
|
|
76685
|
+
Qo([
|
|
76683
76686
|
x(zu)
|
|
76684
76687
|
], Gu.prototype, "colors", 2);
|
|
76685
|
-
|
|
76688
|
+
Qo([
|
|
76686
76689
|
x()
|
|
76687
76690
|
], Gu.prototype, "transition", 2);
|
|
76688
|
-
|
|
76691
|
+
Qo([
|
|
76689
76692
|
x(Dde)
|
|
76690
76693
|
], Gu.prototype, "animationTriggers", 2);
|
|
76691
|
-
|
|
76694
|
+
Qo([
|
|
76692
76695
|
x(Js)
|
|
76693
76696
|
], Gu.prototype, "animator", 2);
|
|
76694
|
-
|
|
76697
|
+
Qo([
|
|
76695
76698
|
x()
|
|
76696
76699
|
], Gu.prototype, "interactable", 1);
|
|
76697
|
-
var kde = Object.defineProperty, Ode = Object.getOwnPropertyDescriptor,
|
|
76700
|
+
var kde = Object.defineProperty, Ode = Object.getOwnPropertyDescriptor, Zn = (s, e, t, i) => {
|
|
76698
76701
|
for (var n = i > 1 ? void 0 : i ? Ode(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
76699
76702
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
76700
76703
|
return i && n && kde(e, t, n), n;
|
|
@@ -76714,19 +76717,19 @@ class kf {
|
|
|
76714
76717
|
return this.left + this.right;
|
|
76715
76718
|
}
|
|
76716
76719
|
}
|
|
76717
|
-
|
|
76720
|
+
Zn([
|
|
76718
76721
|
x()
|
|
76719
76722
|
], kf.prototype, "left", 2);
|
|
76720
|
-
|
|
76723
|
+
Zn([
|
|
76721
76724
|
x()
|
|
76722
76725
|
], kf.prototype, "right", 2);
|
|
76723
|
-
|
|
76726
|
+
Zn([
|
|
76724
76727
|
x()
|
|
76725
76728
|
], kf.prototype, "top", 2);
|
|
76726
|
-
|
|
76729
|
+
Zn([
|
|
76727
76730
|
x()
|
|
76728
76731
|
], kf.prototype, "bottom", 2);
|
|
76729
|
-
class
|
|
76732
|
+
class zo extends Be {
|
|
76730
76733
|
constructor() {
|
|
76731
76734
|
super(...arguments);
|
|
76732
76735
|
u(this, "_rectTransform", null);
|
|
@@ -76777,37 +76780,37 @@ class Go extends Be {
|
|
|
76777
76780
|
return this.spacing;
|
|
76778
76781
|
}
|
|
76779
76782
|
}
|
|
76780
|
-
|
|
76783
|
+
Zn([
|
|
76781
76784
|
x()
|
|
76782
|
-
],
|
|
76783
|
-
|
|
76785
|
+
], zo.prototype, "childAlignment", 2);
|
|
76786
|
+
Zn([
|
|
76784
76787
|
x()
|
|
76785
|
-
],
|
|
76786
|
-
|
|
76788
|
+
], zo.prototype, "reverseArrangement", 2);
|
|
76789
|
+
Zn([
|
|
76787
76790
|
x()
|
|
76788
|
-
],
|
|
76789
|
-
|
|
76791
|
+
], zo.prototype, "spacing", 2);
|
|
76792
|
+
Zn([
|
|
76790
76793
|
x(kf)
|
|
76791
|
-
],
|
|
76792
|
-
|
|
76794
|
+
], zo.prototype, "padding", 2);
|
|
76795
|
+
Zn([
|
|
76793
76796
|
x()
|
|
76794
|
-
],
|
|
76795
|
-
|
|
76797
|
+
], zo.prototype, "minWidth", 2);
|
|
76798
|
+
Zn([
|
|
76796
76799
|
x()
|
|
76797
|
-
],
|
|
76798
|
-
|
|
76800
|
+
], zo.prototype, "minHeight", 2);
|
|
76801
|
+
Zn([
|
|
76799
76802
|
x()
|
|
76800
|
-
],
|
|
76801
|
-
|
|
76803
|
+
], zo.prototype, "flexibleHeight", 2);
|
|
76804
|
+
Zn([
|
|
76802
76805
|
x()
|
|
76803
|
-
],
|
|
76804
|
-
|
|
76806
|
+
], zo.prototype, "flexibleWidth", 2);
|
|
76807
|
+
Zn([
|
|
76805
76808
|
x()
|
|
76806
|
-
],
|
|
76807
|
-
|
|
76809
|
+
], zo.prototype, "preferredHeight", 2);
|
|
76810
|
+
Zn([
|
|
76808
76811
|
x()
|
|
76809
|
-
],
|
|
76810
|
-
class Hu extends
|
|
76812
|
+
], zo.prototype, "preferredWidth", 2);
|
|
76813
|
+
class Hu extends zo {
|
|
76811
76814
|
constructor() {
|
|
76812
76815
|
super(...arguments);
|
|
76813
76816
|
u(this, "childControlHeight", !0);
|
|
@@ -76860,22 +76863,22 @@ class Hu extends Go {
|
|
|
76860
76863
|
}
|
|
76861
76864
|
}
|
|
76862
76865
|
}
|
|
76863
|
-
|
|
76866
|
+
Zn([
|
|
76864
76867
|
x()
|
|
76865
76868
|
], Hu.prototype, "childControlHeight", 2);
|
|
76866
|
-
|
|
76869
|
+
Zn([
|
|
76867
76870
|
x()
|
|
76868
76871
|
], Hu.prototype, "childControlWidth", 2);
|
|
76869
|
-
|
|
76872
|
+
Zn([
|
|
76870
76873
|
x()
|
|
76871
76874
|
], Hu.prototype, "childForceExpandHeight", 2);
|
|
76872
|
-
|
|
76875
|
+
Zn([
|
|
76873
76876
|
x()
|
|
76874
76877
|
], Hu.prototype, "childForceExpandWidth", 2);
|
|
76875
|
-
|
|
76878
|
+
Zn([
|
|
76876
76879
|
x()
|
|
76877
76880
|
], Hu.prototype, "childScaleHeight", 2);
|
|
76878
|
-
|
|
76881
|
+
Zn([
|
|
76879
76882
|
x()
|
|
76880
76883
|
], Hu.prototype, "childScaleWidth", 2);
|
|
76881
76884
|
class KV extends Hu {
|
|
@@ -76888,7 +76891,7 @@ class ZV extends Hu {
|
|
|
76888
76891
|
return "x";
|
|
76889
76892
|
}
|
|
76890
76893
|
}
|
|
76891
|
-
class $V extends
|
|
76894
|
+
class $V extends zo {
|
|
76892
76895
|
onCalculateLayout() {
|
|
76893
76896
|
}
|
|
76894
76897
|
}
|
|
@@ -76922,7 +76925,7 @@ const $1 = ne("debuguilayout"), t5 = class extends TS {
|
|
|
76922
76925
|
this.gameObject.visible = !1, this.gameObject.removeFromParent();
|
|
76923
76926
|
return;
|
|
76924
76927
|
}
|
|
76925
|
-
this.renderOnTop || this.screenspace ? this.gameObject.removeFromParent() : (this.onUpdateRenderMode(), this.handleLayoutUpdates(), (i = this.shadowComponent) == null || i.updateMatrixWorld(!0), (n = this.shadowComponent) == null || n.updateWorldMatrix(!0, !0), this.invokeBeforeRenderEvents(),
|
|
76928
|
+
this.renderOnTop || this.screenspace ? this.gameObject.removeFromParent() : (this.onUpdateRenderMode(), this.handleLayoutUpdates(), (i = this.shadowComponent) == null || i.updateMatrixWorld(!0), (n = this.shadowComponent) == null || n.updateWorldMatrix(!0, !0), this.invokeBeforeRenderEvents(), Ro.ensureUpdateMeshUI(qO, this.context));
|
|
76926
76929
|
});
|
|
76927
76930
|
u(this, "onAfterRenderRoutine", () => {
|
|
76928
76931
|
var e, t, i, n, r;
|
|
@@ -76937,7 +76940,7 @@ const $1 = ne("debuguilayout"), t5 = class extends TS {
|
|
|
76937
76940
|
} else
|
|
76938
76941
|
this.previousParent.add(this.gameObject);
|
|
76939
76942
|
const o = this.context.renderer.autoClear, a = this.context.renderer.autoClearColor;
|
|
76940
|
-
this.context.renderer.autoClear = !1, this.context.renderer.autoClearColor = !1, this.context.renderer.clearDepth(), this.onUpdateRenderMode(!0), this.handleLayoutUpdates(), (n = this.shadowComponent) == null || n.updateMatrixWorld(!0), this.invokeBeforeRenderEvents(),
|
|
76943
|
+
this.context.renderer.autoClear = !1, this.context.renderer.autoClearColor = !1, this.context.renderer.clearDepth(), this.onUpdateRenderMode(!0), this.handleLayoutUpdates(), (n = this.shadowComponent) == null || n.updateMatrixWorld(!0), this.invokeBeforeRenderEvents(), Ro.ensureUpdateMeshUI(qO, this.context, !0), this.context.renderer.render(this.gameObject, this.context.mainCamera), this.context.renderer.autoClear = o, this.context.renderer.autoClearColor = a, this.previousParent.add(this.gameObject);
|
|
76941
76944
|
}
|
|
76942
76945
|
(r = this._lastMatrixWorld) == null || r.copy(this.gameObject.matrixWorld);
|
|
76943
76946
|
});
|
|
@@ -77060,7 +77063,7 @@ const $1 = ne("debuguilayout"), t5 = class extends TS {
|
|
|
77060
77063
|
for (const i of this._rectTransforms) {
|
|
77061
77064
|
e && i.markDirty();
|
|
77062
77065
|
let n = this._layoutGroups.get(i.gameObject);
|
|
77063
|
-
i.isDirty && !n && (n = i.gameObject.getComponentInParent(
|
|
77066
|
+
i.isDirty && !n && (n = i.gameObject.getComponentInParent(zo)), (i.isDirty || n != null && n.isDirty) && ($1 && !t && console.log("CANVAS UPDATE ### " + i.name + " ##################################### " + this.context.time.frame), n == null || n.updateLayout(), i.updateTransform());
|
|
77064
77067
|
}
|
|
77065
77068
|
}
|
|
77066
77069
|
applyRenderSettings() {
|
|
@@ -77230,7 +77233,7 @@ class Im extends Be {
|
|
|
77230
77233
|
beforeCreateDocument(t) {
|
|
77231
77234
|
var i;
|
|
77232
77235
|
if (this.target && this.object && this.gameObject) {
|
|
77233
|
-
const n = new
|
|
77236
|
+
const n = new rs(
|
|
77234
77237
|
"Move to " + ((i = this.target) == null ? void 0 : i.name),
|
|
77235
77238
|
Ws.tapTrigger(this.gameObject),
|
|
77236
77239
|
fi.transformAction(this.object, this.target, this.duration, this.relativeMotion ? "relative" : "absolute")
|
|
@@ -77314,13 +77317,13 @@ const Cc = (hx = class extends Be {
|
|
|
77314
77317
|
createAndAttachBehaviors(e, t, i) {
|
|
77315
77318
|
const n = [], r = [], o = Math.max(0, this.fadeDuration);
|
|
77316
77319
|
r.push(fi.fadeAction([...this.targetModels, ...i], o, !1)), n.push(fi.fadeAction(t, o, !1)), r.push(fi.fadeAction(t, o, !0)), e.addBehavior(
|
|
77317
|
-
new
|
|
77320
|
+
new rs(
|
|
77318
77321
|
"Select_" + this.selfModel.name,
|
|
77319
77322
|
Ws.tapTrigger(this.selfModel),
|
|
77320
77323
|
fi.parallel(...r)
|
|
77321
77324
|
)
|
|
77322
77325
|
), e.addBehavior(
|
|
77323
|
-
new
|
|
77326
|
+
new rs(
|
|
77324
77327
|
"StartHidden_" + this.selfModel.name,
|
|
77325
77328
|
Ws.sceneStartTrigger(),
|
|
77326
77329
|
fi.parallel(...n)
|
|
@@ -77403,13 +77406,13 @@ const fn = (jp = class extends Be {
|
|
|
77403
77406
|
if (this.toggleModel) {
|
|
77404
77407
|
if (this.toggleOnClick) {
|
|
77405
77408
|
const c = [];
|
|
77406
|
-
c.push(fi.fadeAction(n, 0, !1)), c.push(fi.fadeAction(this.toggleModel, 0, !0)), c.push(fi.fadeAction(this.targetModel, 0, r)), e.addBehavior(new
|
|
77409
|
+
c.push(fi.fadeAction(n, 0, !1)), c.push(fi.fadeAction(this.toggleModel, 0, !0)), c.push(fi.fadeAction(this.targetModel, 0, r)), e.addBehavior(new rs(
|
|
77407
77410
|
"Toggle_" + n.name + "_toggleTo" + (r ? "On" : "Off"),
|
|
77408
77411
|
Ws.tapTrigger(n),
|
|
77409
77412
|
fi.parallel(...c)
|
|
77410
77413
|
));
|
|
77411
77414
|
const l = [];
|
|
77412
|
-
l.push(fi.fadeAction(this.toggleModel, 0, !1)), l.push(fi.fadeAction(n, 0, !0)), l.push(fi.fadeAction(this.targetModel, 0, !r)), e.addBehavior(new
|
|
77415
|
+
l.push(fi.fadeAction(this.toggleModel, 0, !1)), l.push(fi.fadeAction(n, 0, !0)), l.push(fi.fadeAction(this.targetModel, 0, !r)), e.addBehavior(new rs(
|
|
77413
77416
|
"Toggle_" + n.name + "_toggleTo" + (r ? "Off" : "On"),
|
|
77414
77417
|
Ws.tapTrigger(this.toggleModel),
|
|
77415
77418
|
fi.parallel(...l)
|
|
@@ -77417,7 +77420,7 @@ const fn = (jp = class extends Be {
|
|
|
77417
77420
|
}
|
|
77418
77421
|
} else {
|
|
77419
77422
|
const c = [];
|
|
77420
|
-
this.hideSelf && c.push(fi.fadeAction(n, 0, !1)), c.push(fi.fadeAction(this.targetModel, 0, r)), e.addBehavior(new
|
|
77423
|
+
this.hideSelf && c.push(fi.fadeAction(n, 0, !1)), c.push(fi.fadeAction(this.targetModel, 0, r)), e.addBehavior(new rs(
|
|
77421
77424
|
"Toggle_" + n.name + "_toggleTo" + (r ? "On" : "Off"),
|
|
77422
77425
|
Ws.tapTrigger(n),
|
|
77423
77426
|
fi.parallel(...c)
|
|
@@ -77431,7 +77434,7 @@ const fn = (jp = class extends Be {
|
|
|
77431
77434
|
};
|
|
77432
77435
|
o(n), this.toggleModel && o(this.toggleModel);
|
|
77433
77436
|
const a = new Array();
|
|
77434
|
-
this.targetStateBeforeCreatingDocument || a.push(this.targetModel), this.stateBeforeCreatingDocument || a.push(i), this.toggleModel && a.push(this.toggleModel), e.addBehavior(new
|
|
77437
|
+
this.targetStateBeforeCreatingDocument || a.push(this.targetModel), this.stateBeforeCreatingDocument || a.push(i), this.toggleModel && a.push(this.toggleModel), e.addBehavior(new rs(
|
|
77435
77438
|
"HideOnStart_" + this.gameObject.name,
|
|
77436
77439
|
Ws.sceneStartTrigger(),
|
|
77437
77440
|
fi.fadeAction(a, 0, !1)
|
|
@@ -77464,7 +77467,7 @@ class i5 extends Be {
|
|
|
77464
77467
|
re.setActive(this.gameObject, !1);
|
|
77465
77468
|
}
|
|
77466
77469
|
createBehaviours(t, i, n) {
|
|
77467
|
-
i.uuid === this.gameObject.uuid && (this.wasVisible || t.addBehavior(new
|
|
77470
|
+
i.uuid === this.gameObject.uuid && (this.wasVisible || t.addBehavior(new rs(
|
|
77468
77471
|
"HideOnStart_" + this.gameObject.name,
|
|
77469
77472
|
Ws.sceneStartTrigger(),
|
|
77470
77473
|
fi.fadeAction(i, 0, !1)
|
|
@@ -77485,7 +77488,7 @@ class wv extends Be {
|
|
|
77485
77488
|
}
|
|
77486
77489
|
createBehaviours(t, i, n) {
|
|
77487
77490
|
if (this.target && i.uuid === this.gameObject.uuid) {
|
|
77488
|
-
const r = new
|
|
77491
|
+
const r = new rs(
|
|
77489
77492
|
"emphasize " + this.name,
|
|
77490
77493
|
Ws.tapTrigger(this.gameObject),
|
|
77491
77494
|
fi.emphasize(this.target, this.duration, this.motionType, void 0, "basic")
|
|
@@ -77545,7 +77548,7 @@ class wf extends Be {
|
|
|
77545
77548
|
const f = this.name ? "_" + this.name : "";
|
|
77546
77549
|
if (l && this.trigger === "tap") {
|
|
77547
77550
|
this.toggleOnClick && (d.multiplePerformOperation = "stop");
|
|
77548
|
-
const p = new
|
|
77551
|
+
const p = new rs(
|
|
77549
77552
|
"playAudio" + f,
|
|
77550
77553
|
Ws.tapTrigger(this.gameObject),
|
|
77551
77554
|
d
|
|
@@ -77556,7 +77559,7 @@ class wf extends Be {
|
|
|
77556
77559
|
if (l && this.trigger === "tap")
|
|
77557
77560
|
console.warn("USDZExport: Audio sources that are played on tap can't also auto-play at scene start due to a QuickLook bug.");
|
|
77558
77561
|
else {
|
|
77559
|
-
const p = new
|
|
77562
|
+
const p = new rs(
|
|
77560
77563
|
"playAudioOnStart" + f,
|
|
77561
77564
|
Ws.sceneStartTrigger(),
|
|
77562
77565
|
d
|
|
@@ -77630,7 +77633,7 @@ const Sc = (ux = class extends Be {
|
|
|
77630
77633
|
a,
|
|
77631
77634
|
this.animationSequence,
|
|
77632
77635
|
this.animationLoopAfterSequence
|
|
77633
|
-
), d = new
|
|
77636
|
+
), d = new rs(
|
|
77634
77637
|
this.trigger + "_" + o + "_toPlayAnimation_" + this.stateName + "_on_" + ((l = this.target) == null ? void 0 : l.name),
|
|
77635
77638
|
this.trigger == "tap" ? Ws.tapTrigger(this.selfModel) : Ws.sceneStartTrigger(),
|
|
77636
77639
|
h
|
|
@@ -77667,7 +77670,7 @@ const Sc = (ux = class extends Be {
|
|
|
77667
77670
|
let o = [], a = [];
|
|
77668
77671
|
if (r) {
|
|
77669
77672
|
const b = e.registerAnimation(t, r.clip);
|
|
77670
|
-
return b && a.push(b), {
|
|
77673
|
+
return b && (r.loop ? a.push(b) : o.push(b)), {
|
|
77671
77674
|
animationSequence: o,
|
|
77672
77675
|
animationLoopAfterSequence: a
|
|
77673
77676
|
};
|
|
@@ -80586,10 +80589,10 @@ class Cfe {
|
|
|
80586
80589
|
g.side = mn;
|
|
80587
80590
|
break;
|
|
80588
80591
|
case 2:
|
|
80589
|
-
g.side =
|
|
80592
|
+
g.side = cs;
|
|
80590
80593
|
break;
|
|
80591
80594
|
default:
|
|
80592
|
-
g.side =
|
|
80595
|
+
g.side = cs;
|
|
80593
80596
|
break;
|
|
80594
80597
|
}
|
|
80595
80598
|
switch ((b = d._ZTest) == null ? void 0 : b.value) {
|
|
@@ -81547,35 +81550,35 @@ const Wx = class extends Be {
|
|
|
81547
81550
|
return e.type === "Mesh" || e.type === "SkinnedMesh";
|
|
81548
81551
|
}
|
|
81549
81552
|
};
|
|
81550
|
-
let
|
|
81553
|
+
let Yn = Wx;
|
|
81551
81554
|
ph([
|
|
81552
81555
|
x()
|
|
81553
|
-
],
|
|
81556
|
+
], Yn.prototype, "receiveShadows", 2);
|
|
81554
81557
|
ph([
|
|
81555
81558
|
x()
|
|
81556
|
-
],
|
|
81559
|
+
], Yn.prototype, "shadowCastingMode", 2);
|
|
81557
81560
|
ph([
|
|
81558
81561
|
x()
|
|
81559
|
-
],
|
|
81562
|
+
], Yn.prototype, "lightmapIndex", 2);
|
|
81560
81563
|
ph([
|
|
81561
81564
|
x(et)
|
|
81562
|
-
],
|
|
81565
|
+
], Yn.prototype, "lightmapScaleOffset", 2);
|
|
81563
81566
|
ph([
|
|
81564
81567
|
x()
|
|
81565
|
-
],
|
|
81568
|
+
], Yn.prototype, "enableInstancing", 2);
|
|
81566
81569
|
ph([
|
|
81567
81570
|
x()
|
|
81568
|
-
],
|
|
81571
|
+
], Yn.prototype, "renderOrder", 2);
|
|
81569
81572
|
ph([
|
|
81570
81573
|
x()
|
|
81571
|
-
],
|
|
81574
|
+
], Yn.prototype, "allowOcclusionWhenDynamic", 2);
|
|
81572
81575
|
ph([
|
|
81573
81576
|
x(Ae)
|
|
81574
|
-
],
|
|
81577
|
+
], Yn.prototype, "probeAnchor", 2);
|
|
81575
81578
|
ph([
|
|
81576
81579
|
x()
|
|
81577
|
-
],
|
|
81578
|
-
class XS extends
|
|
81580
|
+
], Yn.prototype, "reflectionProbeUsage", 2);
|
|
81581
|
+
class XS extends Yn {
|
|
81579
81582
|
}
|
|
81580
81583
|
class m5 extends XS {
|
|
81581
81584
|
constructor() {
|
|
@@ -81592,7 +81595,7 @@ class m5 extends XS {
|
|
|
81592
81595
|
onAfterRender() {
|
|
81593
81596
|
if (super.onAfterRender(), this._needUpdateBoundingSphere) {
|
|
81594
81597
|
for (const t of this.sharedMeshes)
|
|
81595
|
-
if (t instanceof
|
|
81598
|
+
if (t instanceof ko) {
|
|
81596
81599
|
this._needUpdateBoundingSphere = !1;
|
|
81597
81600
|
const i = t.geometry, n = nD(t);
|
|
81598
81601
|
n && (t.geometry = n), t.computeBoundingSphere(), t.geometry = i;
|
|
@@ -81600,7 +81603,7 @@ class m5 extends XS {
|
|
|
81600
81603
|
}
|
|
81601
81604
|
if (IN) {
|
|
81602
81605
|
for (const t of this.sharedMeshes)
|
|
81603
|
-
if (t instanceof
|
|
81606
|
+
if (t instanceof ko && t.boundingSphere) {
|
|
81604
81607
|
const i = kn(t.boundingSphere.center).applyMatrix4(t.matrixWorld);
|
|
81605
81608
|
Ct.DrawWireSphere(i, t.boundingSphere.radius, "red");
|
|
81606
81609
|
}
|
|
@@ -81767,25 +81770,25 @@ const ka = (fx = class {
|
|
|
81767
81770
|
return ka._temp.set(16711935), ka._temp.alpha = 1, ka._temp;
|
|
81768
81771
|
}
|
|
81769
81772
|
}, u(fx, "_temp", new Ri(0, 0, 0, 1)), u(fx, "_temp2", new Ri(0, 0, 0, 1)), fx);
|
|
81770
|
-
let
|
|
81773
|
+
let Go = ka;
|
|
81771
81774
|
oe([
|
|
81772
81775
|
x(Ri)
|
|
81773
|
-
],
|
|
81776
|
+
], Go.prototype, "color", 2);
|
|
81774
81777
|
oe([
|
|
81775
81778
|
x(Ri)
|
|
81776
|
-
],
|
|
81779
|
+
], Go.prototype, "colorMin", 2);
|
|
81777
81780
|
oe([
|
|
81778
81781
|
x(Ri)
|
|
81779
|
-
],
|
|
81782
|
+
], Go.prototype, "colorMax", 2);
|
|
81780
81783
|
oe([
|
|
81781
81784
|
x(Lf)
|
|
81782
|
-
],
|
|
81785
|
+
], Go.prototype, "gradient", 2);
|
|
81783
81786
|
oe([
|
|
81784
81787
|
x(Lf)
|
|
81785
|
-
],
|
|
81788
|
+
], Go.prototype, "gradientMin", 2);
|
|
81786
81789
|
oe([
|
|
81787
81790
|
x(Lf)
|
|
81788
|
-
],
|
|
81791
|
+
], Go.prototype, "gradientMax", 2);
|
|
81789
81792
|
var jB = /* @__PURE__ */ ((s) => (s[s.Hierarchy = 0] = "Hierarchy", s[s.Local = 1] = "Local", s[s.Shape = 2] = "Shape", s))(jB || {});
|
|
81790
81793
|
class xr {
|
|
81791
81794
|
constructor() {
|
|
@@ -81837,7 +81840,7 @@ oe([
|
|
|
81837
81840
|
x(At)
|
|
81838
81841
|
], xr.prototype, "gravityModifier", 2);
|
|
81839
81842
|
oe([
|
|
81840
|
-
x(
|
|
81843
|
+
x(Go)
|
|
81841
81844
|
], xr.prototype, "startColor", 2);
|
|
81842
81845
|
oe([
|
|
81843
81846
|
x(At)
|
|
@@ -81966,7 +81969,7 @@ class YS {
|
|
|
81966
81969
|
}
|
|
81967
81970
|
}
|
|
81968
81971
|
oe([
|
|
81969
|
-
x(
|
|
81972
|
+
x(Go)
|
|
81970
81973
|
], YS.prototype, "color", 2);
|
|
81971
81974
|
class Ff {
|
|
81972
81975
|
constructor() {
|
|
@@ -82444,10 +82447,10 @@ oe([
|
|
|
82444
82447
|
x()
|
|
82445
82448
|
], bn.prototype, "attachRibbonToTransform", 2);
|
|
82446
82449
|
oe([
|
|
82447
|
-
x(
|
|
82450
|
+
x(Go)
|
|
82448
82451
|
], bn.prototype, "colorOverLifetime", 2);
|
|
82449
82452
|
oe([
|
|
82450
|
-
x(
|
|
82453
|
+
x(Go)
|
|
82451
82454
|
], bn.prototype, "colorOverTrail", 2);
|
|
82452
82455
|
oe([
|
|
82453
82456
|
x()
|
|
@@ -82978,7 +82981,7 @@ oe([
|
|
|
82978
82981
|
x(te)
|
|
82979
82982
|
], Bm.prototype, "range", 2);
|
|
82980
82983
|
oe([
|
|
82981
|
-
x(
|
|
82984
|
+
x(Go)
|
|
82982
82985
|
], Bm.prototype, "color", 2);
|
|
82983
82986
|
const Ofe = {
|
|
82984
82987
|
name: "HorizontalBlurShader",
|
|
@@ -83136,7 +83139,7 @@ const v5 = (OM = class extends Be {
|
|
|
83136
83139
|
/** @internal */
|
|
83137
83140
|
start() {
|
|
83138
83141
|
j_ && console.log("Create ContactShadows on " + this.gameObject.name, this), this.shadowGroup = new io(), this.gameObject.add(this.shadowGroup), this.renderTarget = new Yt(this.textureSize, this.textureSize), this.renderTarget.texture.generateMipmaps = !1, this.renderTargetBlur = new Yt(this.textureSize, this.textureSize), this.renderTargetBlur.texture.generateMipmaps = !1;
|
|
83139
|
-
const e = new
|
|
83142
|
+
const e = new Jn(1, 1).rotateX(Math.PI / 2);
|
|
83140
83143
|
this.gameObject instanceof ge && (console.warn("ContactShadows can not be added to a Mesh. Please add it to a Group or an empty Object"), Rd(this.gameObject, !1));
|
|
83141
83144
|
const t = new $t({
|
|
83142
83145
|
map: this.renderTarget.texture,
|
|
@@ -83144,7 +83147,7 @@ const v5 = (OM = class extends Be {
|
|
|
83144
83147
|
color: 0,
|
|
83145
83148
|
transparent: !0,
|
|
83146
83149
|
depthWrite: !1,
|
|
83147
|
-
side:
|
|
83150
|
+
side: cs
|
|
83148
83151
|
});
|
|
83149
83152
|
this.plane = new ge(e, t), this.plane.scale.y = -1, this.gameObject.add(this.plane), this.plane && (this.plane.renderOrder = 1), this.occluderMesh = new ge(this.plane.geometry, new $t({
|
|
83150
83153
|
depthWrite: !0,
|
|
@@ -83179,7 +83182,7 @@ const v5 = (OM = class extends Be {
|
|
|
83179
83182
|
const r = this.plane.visible;
|
|
83180
83183
|
this.plane.visible = !1, this.gameObject instanceof ge && Rd(this.gameObject, !1);
|
|
83181
83184
|
const o = t.background;
|
|
83182
|
-
t.background = null, t.overrideMaterial = this.depthMaterial, this.backfaceShadows ? this.depthMaterial.side = gi : this.depthMaterial.side =
|
|
83185
|
+
t.background = null, t.overrideMaterial = this.depthMaterial, this.backfaceShadows ? this.depthMaterial.side = gi : this.depthMaterial.side = cs;
|
|
83183
83186
|
const a = i.getClearAlpha();
|
|
83184
83187
|
i.setClearAlpha(0);
|
|
83185
83188
|
const c = i.xr.enabled;
|
|
@@ -83447,7 +83450,7 @@ var Hfe = Object.defineProperty, Vfe = Object.getOwnPropertyDescriptor, Pm = (s,
|
|
|
83447
83450
|
return i && n && Hfe(e, t, n), n;
|
|
83448
83451
|
};
|
|
83449
83452
|
const TN = ne("debugwebxr"), jfe = new Ce().makeRotationY(Math.PI);
|
|
83450
|
-
class
|
|
83453
|
+
class Fo extends Be {
|
|
83451
83454
|
constructor() {
|
|
83452
83455
|
super(...arguments);
|
|
83453
83456
|
u(this, "_arScale", 1);
|
|
@@ -83642,22 +83645,22 @@ class Uo extends Be {
|
|
|
83642
83645
|
}
|
|
83643
83646
|
Pm([
|
|
83644
83647
|
x()
|
|
83645
|
-
],
|
|
83648
|
+
], Fo.prototype, "arScale", 1);
|
|
83646
83649
|
Pm([
|
|
83647
83650
|
x()
|
|
83648
|
-
],
|
|
83651
|
+
], Fo.prototype, "invertForward", 2);
|
|
83649
83652
|
Pm([
|
|
83650
83653
|
x(ti)
|
|
83651
|
-
],
|
|
83654
|
+
], Fo.prototype, "customReticle", 2);
|
|
83652
83655
|
Pm([
|
|
83653
83656
|
x()
|
|
83654
|
-
],
|
|
83657
|
+
], Fo.prototype, "useXRAnchor", 2);
|
|
83655
83658
|
Pm([
|
|
83656
83659
|
x()
|
|
83657
|
-
],
|
|
83660
|
+
], Fo.prototype, "arTouchTransform", 2);
|
|
83658
83661
|
Pm([
|
|
83659
83662
|
x()
|
|
83660
|
-
],
|
|
83663
|
+
], Fo.prototype, "autoPlace", 2);
|
|
83661
83664
|
const cC = class {
|
|
83662
83665
|
// readonly translate: Vector3 = new Vector3();
|
|
83663
83666
|
// readonly rotation: Quaternion = new Quaternion();
|
|
@@ -84385,13 +84388,13 @@ class _5 extends XC {
|
|
|
84385
84388
|
let t;
|
|
84386
84389
|
e instanceof Float32Array ? t = e : Array.isArray(e) && (t = new Float32Array(e));
|
|
84387
84390
|
const i = new mw(t, 6, 1);
|
|
84388
|
-
return this.setAttribute("instanceStart", new
|
|
84391
|
+
return this.setAttribute("instanceStart", new To(i, 3, 0)), this.setAttribute("instanceEnd", new To(i, 3, 3)), this.computeBoundingBox(), this.computeBoundingSphere(), this;
|
|
84389
84392
|
}
|
|
84390
84393
|
setColors(e) {
|
|
84391
84394
|
let t;
|
|
84392
84395
|
e instanceof Float32Array ? t = e : Array.isArray(e) && (t = new Float32Array(e));
|
|
84393
84396
|
const i = new mw(t, 6, 1);
|
|
84394
|
-
return this.setAttribute("instanceColorStart", new
|
|
84397
|
+
return this.setAttribute("instanceColorStart", new To(i, 3, 0)), this.setAttribute("instanceColorEnd", new To(i, 3, 3)), this;
|
|
84395
84398
|
}
|
|
84396
84399
|
fromWireframeGeometry(e) {
|
|
84397
84400
|
return this.setPositions(e.attributes.position.array), this;
|
|
@@ -84940,7 +84943,7 @@ function upe(s, e, t) {
|
|
|
84940
84943
|
Ts.applyMatrix4(i), Bs.applyMatrix4(i), Ts.multiplyScalar(1 / Ts.w), Bs.multiplyScalar(1 / Bs.w), Ts.x *= r.x / 2, Ts.y *= r.y / 2, Bs.x *= r.x / 2, Bs.y *= r.y / 2, zs.start.copy(Ts), zs.start.z = 0, zs.end.copy(Bs), zs.end.z = 0;
|
|
84941
84944
|
const y = zs.closestPointToPointParameter(oM, !0);
|
|
84942
84945
|
zs.at(y, kN);
|
|
84943
|
-
const m =
|
|
84946
|
+
const m = os.lerp(Ts.z, Bs.z, y), A = m >= -1 && m <= 1, b = oM.distanceTo(kN) < hf * 0.5;
|
|
84944
84947
|
if (A && b) {
|
|
84945
84948
|
zs.start.fromBufferAttribute(c, f), zs.end.fromBufferAttribute(l, f), zs.start.applyMatrix4(o), zs.end.applyMatrix4(o);
|
|
84946
84949
|
const v = new C(), _ = new C();
|
|
@@ -84967,7 +84970,7 @@ class dpe extends ge {
|
|
|
84967
84970
|
for (let o = 0, a = 0, c = t.count; o < c; o++, a += 2)
|
|
84968
84971
|
PN.fromBufferAttribute(t, o), DN.fromBufferAttribute(i, o), n[a] = a === 0 ? 0 : n[a - 1], n[a + 1] = n[a] + PN.distanceTo(DN);
|
|
84969
84972
|
const r = new mw(n, 2, 1);
|
|
84970
|
-
return e.setAttribute("instanceDistanceStart", new
|
|
84973
|
+
return e.setAttribute("instanceDistanceStart", new To(r, 1, 0)), e.setAttribute("instanceDistanceEnd", new To(r, 1, 1)), this;
|
|
84971
84974
|
}
|
|
84972
84975
|
raycast(e, t) {
|
|
84973
84976
|
const i = this.material.worldUnits, n = e.camera;
|
|
@@ -85260,7 +85263,7 @@ const mpe = new C(0, 1, 0), X2 = class {
|
|
|
85260
85263
|
return this._quicklookButton;
|
|
85261
85264
|
const e = document.createElement("button");
|
|
85262
85265
|
return this._quicklookButton = e, e.dataset.needle = "quicklook-button", e.innerText = "Open in Quicklook", e.prepend(fa("view_in_ar")), e.addEventListener("click", () => {
|
|
85263
|
-
const t = re.findObjectOfType(
|
|
85266
|
+
const t = re.findObjectOfType(Xn);
|
|
85264
85267
|
t ? (e.classList.add("this-mode-is-requested"), t.exportAndOpen().then(() => {
|
|
85265
85268
|
e.classList.remove("this-mode-is-requested");
|
|
85266
85269
|
}).catch((i) => {
|
|
@@ -85402,7 +85405,7 @@ class ZS extends Be {
|
|
|
85402
85405
|
}
|
|
85403
85406
|
onEnable() {
|
|
85404
85407
|
var t, i;
|
|
85405
|
-
window.location.protocol !== "https:" && ji('<a href="https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API" target="_blank">WebXR</a> only works on secure connections (https).'), this.useQuicklookExport && (re.findObjectOfType(
|
|
85408
|
+
window.location.protocol !== "https:" && ji('<a href="https://developer.mozilla.org/en-US/docs/Web/API/WebXR_Device_API" target="_blank">WebXR</a> only works on secure connections (https).'), this.useQuicklookExport && (re.findObjectOfType(Xn) || (Y_ && console.log("WebXR: Adding USDZExporter"), this._usdzExporter = re.addComponent(this.gameObject, Xn), this._usdzExporter.objectToExport = this.context.scene, this._usdzExporter.autoExportAnimations = !0, this._usdzExporter.autoExportAudioSources = !0)), this.handleCreatingHTML(), this.handleOfferSession(), this.defaultAvatar && (this._playerSync = this.gameObject.getOrAddComponent(fv), this._playerSync.autoSync = !1), this._playerSync && (this._playerSync.asset = this.defaultAvatar, (t = this._playerSync.onPlayerSpawned) == null || t.removeEventListener(this.onAvatarSpawned), (i = this._playerSync.onPlayerSpawned) == null || i.addEventListener(this.onAvatarSpawned));
|
|
85406
85409
|
}
|
|
85407
85410
|
onDisable() {
|
|
85408
85411
|
var t;
|
|
@@ -85438,14 +85441,14 @@ class ZS extends Be {
|
|
|
85438
85441
|
Y_ && console.log("WebXR onEnterXR"), this._previousXRState = mr.Global.Mask;
|
|
85439
85442
|
const i = t.xr.isVR;
|
|
85440
85443
|
if (mr.Global.Set(i ? Vl.VR : Vl.AR), this.usePlacementReticle && t.xr.isAR) {
|
|
85441
|
-
let r = re.findObjectOfType(
|
|
85444
|
+
let r = re.findObjectOfType(Fo);
|
|
85442
85445
|
if (r)
|
|
85443
85446
|
Y_ && console.log("WebXR: WebARSessionRoot already exists, not creating a new one");
|
|
85444
85447
|
else {
|
|
85445
85448
|
const o = new Ae();
|
|
85446
85449
|
for (const a of this.context.scene.children)
|
|
85447
85450
|
o.add(a);
|
|
85448
|
-
this.context.scene.add(o), r = re.addNewComponent(o,
|
|
85451
|
+
this.context.scene.add(o), r = re.addNewComponent(o, Fo), this._createdComponentsInSession.push(r), r.arScale = this.arSceneScale, r.arTouchTransform = this.usePlacementAdjustment, r.useXRAnchor = this.useXRAnchor;
|
|
85449
85452
|
}
|
|
85450
85453
|
}
|
|
85451
85454
|
this.useDefaultControls && this.setDefaultMovementEnabled(!0), (this.showControllerModels || this.showHandModels) && this.setDefaultControllerRenderingEnabled(!0);
|
|
@@ -85485,8 +85488,11 @@ class ZS extends Be {
|
|
|
85485
85488
|
handleCreatingHTML() {
|
|
85486
85489
|
if (this.createARButton || this.createVRButton || this.useQuicklookExport) {
|
|
85487
85490
|
if ((J0() && Ay() || bpe) && this.useQuicklookExport) {
|
|
85488
|
-
const i =
|
|
85489
|
-
|
|
85491
|
+
const i = re.findObjectOfType(Xn);
|
|
85492
|
+
if (!i || i && i.allowCreateQuicklookButton) {
|
|
85493
|
+
const n = this.getButtonsFactory().createQuicklookButton();
|
|
85494
|
+
this.addButton(n, 50);
|
|
85495
|
+
}
|
|
85490
85496
|
}
|
|
85491
85497
|
if (this.createARButton) {
|
|
85492
85498
|
const i = this.getButtonsFactory().createARButton();
|
|
@@ -85573,7 +85579,7 @@ var _pe = Object.defineProperty, xpe = Object.getOwnPropertyDescriptor, Ah = (s,
|
|
|
85573
85579
|
return i && n && _pe(e, t, n), n;
|
|
85574
85580
|
};
|
|
85575
85581
|
const Ad = ne("debugtext");
|
|
85576
|
-
var
|
|
85582
|
+
var es = /* @__PURE__ */ ((s) => (s[s.UpperLeft = 0] = "UpperLeft", s[s.UpperCenter = 1] = "UpperCenter", s[s.UpperRight = 2] = "UpperRight", s[s.MiddleLeft = 3] = "MiddleLeft", s[s.MiddleCenter = 4] = "MiddleCenter", s[s.MiddleRight = 5] = "MiddleRight", s[s.LowerLeft = 6] = "LowerLeft", s[s.LowerCenter = 7] = "LowerCenter", s[s.LowerRight = 8] = "LowerRight", s))(es || {}), w5 = /* @__PURE__ */ ((s) => (s[s.Normal = 0] = "Normal", s[s.Bold = 1] = "Bold", s[s.Italic = 2] = "Italic", s[s.BoldAndItalic = 3] = "BoldAndItalic", s))(w5 || {});
|
|
85577
85583
|
class Xr extends Em {
|
|
85578
85584
|
constructor() {
|
|
85579
85585
|
super(...arguments);
|
|
@@ -86003,36 +86009,36 @@ class $S {
|
|
|
86003
86009
|
}
|
|
86004
86010
|
setTextAlignment(e, t) {
|
|
86005
86011
|
switch (t) {
|
|
86006
|
-
case
|
|
86007
|
-
case
|
|
86008
|
-
case
|
|
86012
|
+
case es.LowerLeft:
|
|
86013
|
+
case es.MiddleLeft:
|
|
86014
|
+
case es.UpperLeft:
|
|
86009
86015
|
e.horizontalAlignment = "left";
|
|
86010
86016
|
break;
|
|
86011
|
-
case
|
|
86012
|
-
case
|
|
86013
|
-
case
|
|
86017
|
+
case es.LowerCenter:
|
|
86018
|
+
case es.MiddleCenter:
|
|
86019
|
+
case es.UpperCenter:
|
|
86014
86020
|
e.horizontalAlignment = "center";
|
|
86015
86021
|
break;
|
|
86016
|
-
case
|
|
86017
|
-
case
|
|
86018
|
-
case
|
|
86022
|
+
case es.LowerRight:
|
|
86023
|
+
case es.MiddleRight:
|
|
86024
|
+
case es.UpperRight:
|
|
86019
86025
|
e.horizontalAlignment = "right";
|
|
86020
86026
|
break;
|
|
86021
86027
|
}
|
|
86022
86028
|
switch (t) {
|
|
86023
|
-
case
|
|
86024
|
-
case
|
|
86025
|
-
case
|
|
86029
|
+
case es.LowerLeft:
|
|
86030
|
+
case es.LowerCenter:
|
|
86031
|
+
case es.LowerRight:
|
|
86026
86032
|
e.verticalAlignment = "bottom";
|
|
86027
86033
|
break;
|
|
86028
|
-
case
|
|
86029
|
-
case
|
|
86030
|
-
case
|
|
86034
|
+
case es.MiddleLeft:
|
|
86035
|
+
case es.MiddleCenter:
|
|
86036
|
+
case es.MiddleRight:
|
|
86031
86037
|
e.verticalAlignment = "middle";
|
|
86032
86038
|
break;
|
|
86033
|
-
case
|
|
86034
|
-
case
|
|
86035
|
-
case
|
|
86039
|
+
case es.UpperLeft:
|
|
86040
|
+
case es.UpperCenter:
|
|
86041
|
+
case es.UpperRight:
|
|
86036
86042
|
e.verticalAlignment = "top";
|
|
86037
86043
|
break;
|
|
86038
86044
|
}
|
|
@@ -86198,7 +86204,7 @@ function Ipe(s, e) {
|
|
|
86198
86204
|
return r;
|
|
86199
86205
|
}
|
|
86200
86206
|
function Mpe(s) {
|
|
86201
|
-
return new
|
|
86207
|
+
return new rs(
|
|
86202
86208
|
"DisableAtStart",
|
|
86203
86209
|
Ws.sceneStartTrigger(),
|
|
86204
86210
|
fi.fadeAction(s, 0, !1)
|
|
@@ -86222,7 +86228,7 @@ var Tpe = Object.defineProperty, Bpe = Object.getOwnPropertyDescriptor, Sr = (s,
|
|
|
86222
86228
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
86223
86229
|
return i && n && Tpe(e, t, n), n;
|
|
86224
86230
|
};
|
|
86225
|
-
const
|
|
86231
|
+
const Jo = ne("debugusdz");
|
|
86226
86232
|
class Qf {
|
|
86227
86233
|
constructor() {
|
|
86228
86234
|
u(this, "callToAction");
|
|
@@ -86280,7 +86286,7 @@ const WB = (gx = class extends Be {
|
|
|
86280
86286
|
/** @internal */
|
|
86281
86287
|
start() {
|
|
86282
86288
|
var e, t, i;
|
|
86283
|
-
|
|
86289
|
+
Jo && (console.log("USDZExporter", this), console.log("Debug USDZ Mode. Press 'T' to export"), window.addEventListener("keydown", (n) => {
|
|
86284
86290
|
switch (n.key) {
|
|
86285
86291
|
case "t":
|
|
86286
86292
|
this.exportAsync();
|
|
@@ -86294,12 +86300,12 @@ const WB = (gx = class extends Be {
|
|
|
86294
86300
|
onEnable() {
|
|
86295
86301
|
var i;
|
|
86296
86302
|
const e = J0(), t = Ay();
|
|
86297
|
-
(
|
|
86303
|
+
(Jo || e && t) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = FN(this.context), this.link.addEventListener("message", this.lastCallback)), Jo && In("USDZ Exporter enabled: " + this.name), (i = document.getElementById("open-in-ar")) == null || i.addEventListener("click", this.onClickedOpenInARElement);
|
|
86298
86304
|
}
|
|
86299
86305
|
/** @internal */
|
|
86300
86306
|
onDisable() {
|
|
86301
86307
|
var e, t, i;
|
|
86302
|
-
(e = this.button) == null || e.remove(), (t = this.link) == null || t.removeEventListener("message", this.lastCallback),
|
|
86308
|
+
(e = this.button) == null || e.remove(), (t = this.link) == null || t.removeEventListener("message", this.lastCallback), Jo && In("USDZ Exporter disabled: " + this.name), (i = document.getElementById("open-in-ar")) == null || i.removeEventListener("click", this.onClickedOpenInARElement);
|
|
86303
86309
|
}
|
|
86304
86310
|
/**
|
|
86305
86311
|
* Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
|
|
@@ -86317,11 +86323,11 @@ const WB = (gx = class extends Be {
|
|
|
86317
86323
|
var i;
|
|
86318
86324
|
let e = this.exportFileName ?? ((i = this.objectToExport) == null ? void 0 : i.name) ?? this.name;
|
|
86319
86325
|
if (e += "-" + jse(), Kd() || (e !== "" && (e += "-"), e += "MadeWithNeedle"), this.link || (this.link = FN(this.context)), this.customUsdzFile)
|
|
86320
|
-
return
|
|
86326
|
+
return Jo && console.log("Exporting custom usdz", this.customUsdzFile), this.openInQuickLook(this.customUsdzFile, e), null;
|
|
86321
86327
|
if (!this.objectToExport)
|
|
86322
86328
|
return console.warn("No object to export", this), null;
|
|
86323
86329
|
const t = await this.export(this.objectToExport);
|
|
86324
|
-
return t ? (
|
|
86330
|
+
return t ? (Jo && console.log("USDZ generation done. Downloading as " + e), this.openInQuickLook(t, e), t) : (console.error("USDZ generation failed. Please report a bug", this), null);
|
|
86325
86331
|
}
|
|
86326
86332
|
/**
|
|
86327
86333
|
* Creates an USDZ file from the current scene or assigned objectToExport and opens it in QuickLook.
|
|
@@ -86345,7 +86351,7 @@ const WB = (gx = class extends Be {
|
|
|
86345
86351
|
const t = re.getComponentsInChildren(e, dc);
|
|
86346
86352
|
for (const b of t)
|
|
86347
86353
|
b && b.enabled && b.start && b.start();
|
|
86348
|
-
const i = re.getComponentsInChildren(e,
|
|
86354
|
+
const i = re.getComponentsInChildren(e, Yn), n = new Array();
|
|
86349
86355
|
let r = 0;
|
|
86350
86356
|
for (const b of i) {
|
|
86351
86357
|
for (const v of b.sharedMeshes)
|
|
@@ -86367,14 +86373,14 @@ const WB = (gx = class extends Be {
|
|
|
86367
86373
|
}));
|
|
86368
86374
|
}
|
|
86369
86375
|
}
|
|
86370
|
-
|
|
86376
|
+
Jo && In("Progressive Loading: " + n.length), await Promise.all(n), Jo && In("Progressive Loading: done"), ii.end("export-usdz-textures");
|
|
86371
86377
|
const o = mr.Global.Mask;
|
|
86372
86378
|
mr.Global.Set(Vl.AR);
|
|
86373
86379
|
const a = new Yse(), c = new kS(this.quickLookCompatible), l = [c, ...this.extensions], h = { self: this, exporter: a, extensions: l, object: e };
|
|
86374
86380
|
ii.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: h })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, ii.report("export-usdz", "auto export animations and audio sources");
|
|
86375
86381
|
const d = new Array();
|
|
86376
|
-
this.autoExportAnimations && d.push(...Epe(e, c)), this.extensions.find((b) => b.extensionName === "Audio") && this.autoExportAudioSources && d.push(...Ipe(e)), a.debug =
|
|
86377
|
-
const v = re.getComponent(b,
|
|
86382
|
+
this.autoExportAnimations && d.push(...Epe(e, c)), this.extensions.find((b) => b.extensionName === "Audio") && this.autoExportAudioSources && d.push(...Ipe(e)), a.debug = Jo, a.keepObject = (b) => {
|
|
86383
|
+
const v = re.getComponent(b, Yn);
|
|
86378
86384
|
return !(v && !v.enabled);
|
|
86379
86385
|
};
|
|
86380
86386
|
const p = new Array();
|
|
@@ -86382,7 +86388,7 @@ const WB = (gx = class extends Be {
|
|
|
86382
86388
|
b.visible || p.push(b);
|
|
86383
86389
|
});
|
|
86384
86390
|
const g = this.extensions.find((b) => b.extensionName === "Behaviour");
|
|
86385
|
-
this.interactive && g && g.addBehavior(Mpe(p));
|
|
86391
|
+
this.interactive && g && p.length > 0 && g.addBehavior(Mpe(p));
|
|
86386
86392
|
let y = !0;
|
|
86387
86393
|
this.quickLookCompatible && !this.interactive && (y = !1), this.anchoringType !== "plane" && this.anchoringType !== "none" && this.anchoringType !== "image" && this.anchoringType !== "face" && (this.anchoringType = "plane"), this.planeAnchoringAlignment !== "horizontal" && this.planeAnchoringAlignment !== "vertical" && this.planeAnchoringAlignment !== "any" && (this.planeAnchoringAlignment = "horizontal"), ii.report("export-usdz", "Invoking exporter.parse");
|
|
86388
86394
|
const m = await a.parse(this.objectToExport, {
|
|
@@ -86411,7 +86417,7 @@ const WB = (gx = class extends Be {
|
|
|
86411
86417
|
*/
|
|
86412
86418
|
openInQuickLook(e, t) {
|
|
86413
86419
|
const i = e instanceof Blob ? URL.createObjectURL(e) : e, n = this.buildQuicklookOverlay();
|
|
86414
|
-
|
|
86420
|
+
Jo && console.log("QuickLook Overlay", n);
|
|
86415
86421
|
const r = n.callToAction ? encodeURIComponent(n.callToAction) : "", o = n.checkoutTitle ? encodeURIComponent(n.checkoutTitle) : "", a = n.checkoutSubtitle ? encodeURIComponent(n.checkoutSubtitle) : "";
|
|
86416
86422
|
this.link.href = i + `#callToAction=${r}&checkoutTitle=${o}&checkoutSubtitle=${a}&callToActionURL=${n.callToActionURL}`, this.lastCallback || (this.lastCallback = this.quicklookCallback.bind(this), this.link.addEventListener("message", this.lastCallback)), this.link.download = t + ".usdz", this.link.click();
|
|
86417
86423
|
}
|
|
@@ -86428,13 +86434,13 @@ const WB = (gx = class extends Be {
|
|
|
86428
86434
|
}
|
|
86429
86435
|
quicklookCallback(e) {
|
|
86430
86436
|
if ((e == null ? void 0 : e.data) == "_apple_ar_quicklook_button_tapped") {
|
|
86431
|
-
|
|
86437
|
+
Jo && ji("Quicklook closed via call to action button");
|
|
86432
86438
|
var t = new CustomEvent("quicklook-button-tapped", { detail: this });
|
|
86433
86439
|
if (this.dispatchEvent(t), !t.defaultPrevented) {
|
|
86434
86440
|
const i = new URLSearchParams(this.link.href);
|
|
86435
86441
|
if (i) {
|
|
86436
86442
|
const n = i.get("callToActionURL");
|
|
86437
|
-
|
|
86443
|
+
Jo && In("Quicklook url: " + n), n && (Kd() ? globalThis.open(n, "_blank") : console.warn("Quicklook closed: custom redirects require a Needle Engine Pro license: https://needle.tools/pricing", n));
|
|
86438
86444
|
}
|
|
86439
86445
|
}
|
|
86440
86446
|
}
|
|
@@ -86447,8 +86453,8 @@ const WB = (gx = class extends Be {
|
|
|
86447
86453
|
getARScaleAndTarget() {
|
|
86448
86454
|
if (!this.objectToExport)
|
|
86449
86455
|
return { scale: 1, _invertForward: !1, target: this.gameObject, sessionRoot: null };
|
|
86450
|
-
let e = re.getComponentInParent(this.objectToExport,
|
|
86451
|
-
e || (e = re.getComponentInChildren(this.objectToExport,
|
|
86456
|
+
let e = re.getComponentInParent(this.objectToExport, Fo);
|
|
86457
|
+
e || (e = re.getComponentInChildren(this.objectToExport, Fo));
|
|
86452
86458
|
let t = 1, i = !1;
|
|
86453
86459
|
const n = this.objectToExport;
|
|
86454
86460
|
if (e)
|
|
@@ -86457,8 +86463,7 @@ const WB = (gx = class extends Be {
|
|
|
86457
86463
|
const a = re.findObjectOfType(ZS);
|
|
86458
86464
|
a && (t = a.arSceneScale);
|
|
86459
86465
|
}
|
|
86460
|
-
|
|
86461
|
-
return console.log("getARScaleAndTarget", o), o;
|
|
86466
|
+
return { scale: 1 / t, _invertForward: i, target: n, sessionRoot: (e == null ? void 0 : e.gameObject) ?? null };
|
|
86462
86467
|
}
|
|
86463
86468
|
applyWebARSessionRoot() {
|
|
86464
86469
|
if (!this.objectToExport)
|
|
@@ -86477,43 +86482,43 @@ const WB = (gx = class extends Be {
|
|
|
86477
86482
|
return t.parentNode || this.context.menu.appendChild(t), t;
|
|
86478
86483
|
}
|
|
86479
86484
|
}, u(gx, "invertForwardMatrix", new Ce().makeRotationY(Math.PI)), u(gx, "invertForwardQuaternion", new Ee().setFromEuler(new an(0, Math.PI, 0))), gx);
|
|
86480
|
-
let
|
|
86485
|
+
let Xn = WB;
|
|
86481
86486
|
Sr([
|
|
86482
86487
|
x(Ae)
|
|
86483
|
-
],
|
|
86488
|
+
], Xn.prototype, "objectToExport", 2);
|
|
86484
86489
|
Sr([
|
|
86485
86490
|
x()
|
|
86486
|
-
],
|
|
86491
|
+
], Xn.prototype, "autoExportAnimations", 2);
|
|
86487
86492
|
Sr([
|
|
86488
86493
|
x()
|
|
86489
|
-
],
|
|
86494
|
+
], Xn.prototype, "autoExportAudioSources", 2);
|
|
86490
86495
|
Sr([
|
|
86491
86496
|
x()
|
|
86492
|
-
],
|
|
86497
|
+
], Xn.prototype, "exportFileName", 2);
|
|
86493
86498
|
Sr([
|
|
86494
86499
|
x(URL)
|
|
86495
|
-
],
|
|
86500
|
+
], Xn.prototype, "customUsdzFile", 2);
|
|
86496
86501
|
Sr([
|
|
86497
86502
|
x(Qf)
|
|
86498
|
-
],
|
|
86503
|
+
], Xn.prototype, "customBranding", 2);
|
|
86499
86504
|
Sr([
|
|
86500
86505
|
x()
|
|
86501
|
-
],
|
|
86506
|
+
], Xn.prototype, "anchoringType", 2);
|
|
86502
86507
|
Sr([
|
|
86503
86508
|
x()
|
|
86504
|
-
],
|
|
86509
|
+
], Xn.prototype, "maxTextureSize", 2);
|
|
86505
86510
|
Sr([
|
|
86506
86511
|
x()
|
|
86507
|
-
],
|
|
86512
|
+
], Xn.prototype, "planeAnchoringAlignment", 2);
|
|
86508
86513
|
Sr([
|
|
86509
86514
|
x()
|
|
86510
|
-
],
|
|
86515
|
+
], Xn.prototype, "interactive", 2);
|
|
86511
86516
|
Sr([
|
|
86512
86517
|
x()
|
|
86513
|
-
],
|
|
86518
|
+
], Xn.prototype, "allowCreateQuicklookButton", 2);
|
|
86514
86519
|
Sr([
|
|
86515
86520
|
x()
|
|
86516
|
-
],
|
|
86521
|
+
], Xn.prototype, "quickLookCompatible", 2);
|
|
86517
86522
|
class eE extends Be {
|
|
86518
86523
|
constructor() {
|
|
86519
86524
|
super(...arguments);
|
|
@@ -87844,7 +87849,7 @@ m2([
|
|
|
87844
87849
|
], Mv.prototype, "color", 1);
|
|
87845
87850
|
let DA, lM, Qp, J_;
|
|
87846
87851
|
function hM(s, e = 1 / 0, t = null) {
|
|
87847
|
-
lM || (lM = new
|
|
87852
|
+
lM || (lM = new Jn(2, 2, 1, 1)), Qp || (Qp = new Pt({
|
|
87848
87853
|
uniforms: { blitTexture: new _e(s) },
|
|
87849
87854
|
vertexShader: `
|
|
87850
87855
|
varying vec2 vUv;
|
|
@@ -87985,16 +87990,16 @@ const oi = {
|
|
|
87985
87990
|
CLAMP_TO_EDGE: 33071,
|
|
87986
87991
|
MIRRORED_REPEAT: 33648,
|
|
87987
87992
|
REPEAT: 10497
|
|
87988
|
-
}, uM = "KHR_mesh_quantization",
|
|
87989
|
-
|
|
87990
|
-
|
|
87991
|
-
|
|
87992
|
-
|
|
87993
|
-
|
|
87994
|
-
|
|
87995
|
-
|
|
87996
|
-
|
|
87997
|
-
|
|
87993
|
+
}, uM = "KHR_mesh_quantization", Po = {};
|
|
87994
|
+
Po[Nt] = oi.NEAREST;
|
|
87995
|
+
Po[Ng] = oi.NEAREST_MIPMAP_NEAREST;
|
|
87996
|
+
Po[Fl] = oi.NEAREST_MIPMAP_LINEAR;
|
|
87997
|
+
Po[Tt] = oi.LINEAR;
|
|
87998
|
+
Po[Wd] = oi.LINEAR_MIPMAP_NEAREST;
|
|
87999
|
+
Po[Nr] = oi.LINEAR_MIPMAP_LINEAR;
|
|
88000
|
+
Po[_s] = oi.CLAMP_TO_EDGE;
|
|
88001
|
+
Po[ya] = oi.REPEAT;
|
|
88002
|
+
Po[pf] = oi.MIRRORED_REPEAT;
|
|
87998
88003
|
const zN = {
|
|
87999
88004
|
scale: "scale",
|
|
88000
88005
|
position: "translation",
|
|
@@ -88020,7 +88025,7 @@ function Age(s, e, t) {
|
|
|
88020
88025
|
for (let n = e; n < e + t; n++)
|
|
88021
88026
|
for (let r = 0; r < s.itemSize; r++) {
|
|
88022
88027
|
let o;
|
|
88023
|
-
s.itemSize > 4 ? o = s.array[n * s.itemSize + r] : (r === 0 ? o = s.getX(n) : r === 1 ? o = s.getY(n) : r === 2 ? o = s.getZ(n) : r === 3 && (o = s.getW(n)), s.normalized === !0 && (o =
|
|
88028
|
+
s.itemSize > 4 ? o = s.array[n * s.itemSize + r] : (r === 0 ? o = s.getX(n) : r === 1 ? o = s.getY(n) : r === 2 ? o = s.getZ(n) : r === 3 && (o = s.getW(n)), s.normalized === !0 && (o = os.normalize(o, s.array))), i.min[r] = Math.min(i.min[r], o), i.max[r] = Math.max(i.max[r], o);
|
|
88024
88029
|
}
|
|
88025
88030
|
return i;
|
|
88026
88031
|
}
|
|
@@ -88268,7 +88273,7 @@ class yge {
|
|
|
88268
88273
|
for (let p = i; p < i + n; p++)
|
|
88269
88274
|
for (let g = 0; g < e.itemSize; g++) {
|
|
88270
88275
|
let y;
|
|
88271
|
-
e.itemSize > 4 ? y = e.array[p * e.itemSize + g] : (g === 0 ? y = e.getX(p) : g === 1 ? y = e.getY(p) : g === 2 ? y = e.getZ(p) : g === 3 && (y = e.getW(p)), e.normalized === !0 && (y =
|
|
88276
|
+
e.itemSize > 4 ? y = e.array[p * e.itemSize + g] : (g === 0 ? y = e.getX(p) : g === 1 ? y = e.getY(p) : g === 2 ? y = e.getZ(p) : g === 3 && (y = e.getW(p)), e.normalized === !0 && (y = os.normalize(y, e.array))), t === oi.FLOAT ? l.setFloat32(h, y, !0) : t === oi.INT ? l.setInt32(h, y, !0) : t === oi.UNSIGNED_INT ? l.setUint32(h, y, !0) : t === oi.SHORT ? l.setInt16(h, y, !0) : t === oi.UNSIGNED_SHORT ? l.setUint16(h, y, !0) : t === oi.BYTE ? l.setInt8(h, y) : t === oi.UNSIGNED_BYTE && l.setUint8(h, y), h += a;
|
|
88272
88277
|
}
|
|
88273
88278
|
const d = {
|
|
88274
88279
|
buffer: this.processBuffer(l.buffer),
|
|
@@ -88401,10 +88406,10 @@ class yge {
|
|
|
88401
88406
|
const t = this.json;
|
|
88402
88407
|
t.samplers || (t.samplers = []);
|
|
88403
88408
|
const i = {
|
|
88404
|
-
magFilter:
|
|
88405
|
-
minFilter:
|
|
88406
|
-
wrapS:
|
|
88407
|
-
wrapT:
|
|
88409
|
+
magFilter: Po[e.magFilter],
|
|
88410
|
+
minFilter: Po[e.minFilter],
|
|
88411
|
+
wrapS: Po[e.wrapS],
|
|
88412
|
+
wrapT: Po[e.wrapT]
|
|
88408
88413
|
};
|
|
88409
88414
|
return t.samplers.push(i) - 1;
|
|
88410
88415
|
}
|
|
@@ -88648,7 +88653,7 @@ class yge {
|
|
|
88648
88653
|
znear: e.near < 0 ? 0 : e.near
|
|
88649
88654
|
} : n.perspective = {
|
|
88650
88655
|
aspectRatio: e.aspect,
|
|
88651
|
-
yfov:
|
|
88656
|
+
yfov: os.degToRad(e.fov),
|
|
88652
88657
|
zfar: e.far <= 0 ? 1e-3 : e.far,
|
|
88653
88658
|
znear: e.near < 0 ? 0 : e.near
|
|
88654
88659
|
}, e.name !== "" && (n.name = e.type), t.cameras.push(n) - 1;
|
|
@@ -89184,7 +89189,7 @@ const sg = class extends Be {
|
|
|
89184
89189
|
...t
|
|
89185
89190
|
}, r = new Ae();
|
|
89186
89191
|
t != null && t.pivot && r.position.sub(t.pivot), K_ && console.log("EXPORT", e), e.forEach((c) => {
|
|
89187
|
-
c && (r.children.push(c), c.matrixAutoUpdate = !1, c.matrix.copy(c.matrixWorld), re.getComponentsInChildren(c,
|
|
89192
|
+
c && (r.children.push(c), c.matrixAutoUpdate = !1, c.matrix.copy(c.matrixWorld), re.getComponentsInChildren(c, Yn).forEach((l) => {
|
|
89188
89193
|
re.isActiveInHierarchy(l.gameObject) && l.setInstancingEnabled(!1);
|
|
89189
89194
|
}));
|
|
89190
89195
|
});
|
|
@@ -89212,7 +89217,7 @@ const sg = class extends Be {
|
|
|
89212
89217
|
});
|
|
89213
89218
|
function a() {
|
|
89214
89219
|
e.forEach((c) => {
|
|
89215
|
-
c && (c.matrixAutoUpdate = !0, re.getComponentsInChildren(c,
|
|
89220
|
+
c && (c.matrixAutoUpdate = !0, re.getComponentsInChildren(c, Yn).forEach((l) => {
|
|
89216
89221
|
re.isActiveInHierarchy(l.gameObject) && l.setInstancingEnabled(!1);
|
|
89217
89222
|
}));
|
|
89218
89223
|
});
|
|
@@ -89552,7 +89557,7 @@ function fM(s) {
|
|
|
89552
89557
|
return s * Math.PI / 180;
|
|
89553
89558
|
}
|
|
89554
89559
|
const WN = 300, qh = ne("debuglights");
|
|
89555
|
-
class
|
|
89560
|
+
class Ho extends Be {
|
|
89556
89561
|
constructor() {
|
|
89557
89562
|
super(...arguments);
|
|
89558
89563
|
u(this, "type", 0);
|
|
@@ -89682,7 +89687,7 @@ class Vo extends Be {
|
|
|
89682
89687
|
qh && console.log("DISABLE LIGHT", this.name), this.light && (this.selfIsLight ? this.light.intensity = 0 : this.light.visible = !1);
|
|
89683
89688
|
}
|
|
89684
89689
|
onEnterXR(t) {
|
|
89685
|
-
this._webARRoot = re.getComponentInParent(this.gameObject,
|
|
89690
|
+
this._webARRoot = re.getComponentInParent(this.gameObject, Fo) ?? void 0;
|
|
89686
89691
|
}
|
|
89687
89692
|
// private *_updateLightIntensityInARRoutine() {
|
|
89688
89693
|
// while (this.context.isInAR) {
|
|
@@ -89755,37 +89760,37 @@ class Vo extends Be {
|
|
|
89755
89760
|
t.add(t.target), t.target.position.set(0, 0, -1);
|
|
89756
89761
|
}
|
|
89757
89762
|
}
|
|
89758
|
-
u(
|
|
89763
|
+
u(Ho, "allowChangingRendererShadowMapType", !0);
|
|
89759
89764
|
rl([
|
|
89760
89765
|
x()
|
|
89761
|
-
],
|
|
89766
|
+
], Ho.prototype, "type", 2);
|
|
89762
89767
|
rl([
|
|
89763
89768
|
x(we)
|
|
89764
|
-
],
|
|
89769
|
+
], Ho.prototype, "color", 1);
|
|
89765
89770
|
rl([
|
|
89766
89771
|
x()
|
|
89767
|
-
],
|
|
89772
|
+
], Ho.prototype, "shadowNearPlane", 1);
|
|
89768
89773
|
rl([
|
|
89769
89774
|
x()
|
|
89770
|
-
],
|
|
89775
|
+
], Ho.prototype, "shadowBias", 1);
|
|
89771
89776
|
rl([
|
|
89772
89777
|
x()
|
|
89773
|
-
],
|
|
89778
|
+
], Ho.prototype, "shadowNormalBias", 1);
|
|
89774
89779
|
rl([
|
|
89775
89780
|
x()
|
|
89776
|
-
],
|
|
89781
|
+
], Ho.prototype, "shadows", 1);
|
|
89777
89782
|
rl([
|
|
89778
89783
|
x()
|
|
89779
|
-
],
|
|
89784
|
+
], Ho.prototype, "lightmapBakeType", 2);
|
|
89780
89785
|
rl([
|
|
89781
89786
|
x()
|
|
89782
|
-
],
|
|
89787
|
+
], Ho.prototype, "intensity", 1);
|
|
89783
89788
|
rl([
|
|
89784
89789
|
x()
|
|
89785
|
-
],
|
|
89790
|
+
], Ho.prototype, "shadowDistance", 1);
|
|
89786
89791
|
rl([
|
|
89787
89792
|
x()
|
|
89788
|
-
],
|
|
89793
|
+
], Ho.prototype, "shadowResolution", 1);
|
|
89789
89794
|
new C(0, 0, 0);
|
|
89790
89795
|
var Vge = Object.defineProperty, jge = Object.getOwnPropertyDescriptor, Bv = (s, e, t, i) => {
|
|
89791
89796
|
for (var n = i > 1 ? void 0 : i ? jge(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
@@ -89807,7 +89812,7 @@ Bv([
|
|
|
89807
89812
|
x()
|
|
89808
89813
|
], Um.prototype, "distance", 2);
|
|
89809
89814
|
Bv([
|
|
89810
|
-
x(
|
|
89815
|
+
x(Yn)
|
|
89811
89816
|
], Um.prototype, "renderers", 2);
|
|
89812
89817
|
class qge {
|
|
89813
89818
|
constructor(e) {
|
|
@@ -89940,7 +89945,7 @@ const k5 = (LM = class extends Be {
|
|
|
89940
89945
|
const a = this.invertForward ? -1 : 1;
|
|
89941
89946
|
o.matrix.multiply(new Ce().makeRotationZ(Math.PI / 2 * a)), t.matrix.multiply(new Ce().makeRotationZ(-Math.PI / 2 * a));
|
|
89942
89947
|
}
|
|
89943
|
-
const r = new
|
|
89948
|
+
const r = new rs(
|
|
89944
89949
|
"lookat " + this.name,
|
|
89945
89950
|
Ws.sceneStartTrigger(),
|
|
89946
89951
|
fi.lookAtCameraAction(
|
|
@@ -90898,7 +90903,7 @@ var hme = /* @__PURE__ */ function(s) {
|
|
|
90898
90903
|
return Et(s, [{
|
|
90899
90904
|
key: "genValue",
|
|
90900
90905
|
value: function() {
|
|
90901
|
-
return
|
|
90906
|
+
return os.lerp(this.a, this.b, Math.random());
|
|
90902
90907
|
}
|
|
90903
90908
|
}, {
|
|
90904
90909
|
key: "toJSON",
|
|
@@ -92608,7 +92613,7 @@ var A3 = /* @__PURE__ */ function() {
|
|
|
92608
92613
|
return Et(s, [{
|
|
92609
92614
|
key: "initialize",
|
|
92610
92615
|
value: function(t) {
|
|
92611
|
-
var i = Math.random(), n =
|
|
92616
|
+
var i = Math.random(), n = os.lerp(1 - this.thickness, 1, Math.random()), r = i * this.arc, o = Math.sqrt(n), a = Math.sin(r), c = Math.cos(r);
|
|
92612
92617
|
t.position.x = o * c, t.position.y = o * a, t.position.z = 0;
|
|
92613
92618
|
var l = this.angle * o;
|
|
92614
92619
|
t.velocity.set(0, 0, Math.cos(l)).addScaledVector(t.position, Math.sin(l)).multiplyScalar(t.startSpeed), t.position.multiplyScalar(this.radius);
|
|
@@ -92648,7 +92653,7 @@ var A3 = /* @__PURE__ */ function() {
|
|
|
92648
92653
|
return Et(s, [{
|
|
92649
92654
|
key: "initialize",
|
|
92650
92655
|
value: function(t) {
|
|
92651
|
-
var i = Math.random(), n =
|
|
92656
|
+
var i = Math.random(), n = os.lerp(this.thickness, 1, Math.random()), r = i * this.arc, o = Math.sqrt(n), a = Math.sin(r), c = Math.cos(r);
|
|
92652
92657
|
t.position.x = o * c, t.position.y = o * a, t.position.z = 0;
|
|
92653
92658
|
var l = this.angle * o;
|
|
92654
92659
|
t.velocity.set(0, 0, Math.cos(l)).addScaledVector(t.position, Math.sin(l)).multiplyScalar(t.startSpeed), t.position.multiplyScalar(this.radius);
|
|
@@ -92716,7 +92721,7 @@ var A3 = /* @__PURE__ */ function() {
|
|
|
92716
92721
|
return Et(s, [{
|
|
92717
92722
|
key: "initialize",
|
|
92718
92723
|
value: function(t) {
|
|
92719
|
-
var i = Math.random(), n = Math.random(), r =
|
|
92724
|
+
var i = Math.random(), n = Math.random(), r = os.lerp(1 - this.thickness, 1, Math.random()), o = i * this.arc, a = Math.acos(2 * n - 1), c = Math.cbrt(r), l = Math.sin(o), h = Math.cos(o), d = Math.sin(a), f = Math.cos(a);
|
|
92720
92725
|
t.position.x = c * d * h, t.position.y = c * d * l, t.position.z = c * f, t.velocity.setScalar(0).addScaledVector(t.position, t.startSpeed), t.position.multiplyScalar(this.radius);
|
|
92721
92726
|
}
|
|
92722
92727
|
}, {
|
|
@@ -92914,7 +92919,7 @@ var ct = /* @__PURE__ */ function(s) {
|
|
|
92914
92919
|
}]), t;
|
|
92915
92920
|
}(ge), Pme = new C(0, 0, 1), AM = new Ee(), Dme = new C(), kme = new C();
|
|
92916
92921
|
new C();
|
|
92917
|
-
var x3 = 60, Ome = new
|
|
92922
|
+
var x3 = 60, Ome = new Jn(1, 1, 1, 1), Lme = /* @__PURE__ */ function() {
|
|
92918
92923
|
function s(e) {
|
|
92919
92924
|
var t, i, n, r, o, a, c, l, h, d, f, p, g, y, m, A, b, v, _, w, E;
|
|
92920
92925
|
St(this, s), ee(this, "autoDestroy", void 0), ee(this, "prewarm", void 0), ee(this, "looping", void 0), ee(this, "duration", void 0), ee(this, "startLife", void 0), ee(this, "startSpeed", void 0), ee(this, "startRotation", void 0), ee(this, "startSize", void 0), ee(this, "startColor", void 0), ee(this, "startTileIndex", void 0), ee(this, "rendererEmitterSettings", void 0), ee(this, "emissionOverTime", void 0), ee(this, "emissionOverDistance", void 0), ee(this, "emissionBursts", void 0), ee(this, "onlyUsedByOther", void 0), ee(this, "worldSpace", void 0), ee(this, "speedFactor", void 0), ee(this, "particleNum", void 0), ee(this, "paused", void 0), ee(this, "particles", void 0), ee(this, "emitterShape", void 0), ee(this, "emitter", void 0), ee(this, "rendererSettings", void 0), ee(this, "neededToUpdateRender", void 0), ee(this, "behaviors", void 0), ee(this, "prewarmed", void 0), ee(this, "emissionState", void 0), ee(this, "emitEnded", void 0), ee(this, "markForDestroy", void 0), ee(this, "previousWorldPos", void 0), ee(this, "temp", new C()), ee(this, "travelDistance", 0), ee(this, "normalMatrix", new Ft()), ee(this, "_renderer", void 0), this.autoDestroy = e.autoDestroy === void 0 ? !1 : e.autoDestroy, this.duration = (t = e.duration) !== null && t !== void 0 ? t : 1, this.looping = e.looping === void 0 ? !0 : e.looping, this.prewarm = e.prewarm === void 0 ? !1 : e.prewarm, this.startLife = (i = e.startLife) !== null && i !== void 0 ? i : new hr(5), this.startSpeed = (n = e.startSpeed) !== null && n !== void 0 ? n : new hr(0), this.startRotation = (r = e.startRotation) !== null && r !== void 0 ? r : new hr(0), this.startSize = (o = e.startSize) !== null && o !== void 0 ? o : new hr(1), this.startColor = (a = e.startColor) !== null && a !== void 0 ? a : new Kw(new et(1, 1, 1, 1)), this.emissionOverTime = (c = e.emissionOverTime) !== null && c !== void 0 ? c : new hr(10), this.emissionOverDistance = (l = e.emissionOverDistance) !== null && l !== void 0 ? l : new hr(0), this.emissionBursts = (h = e.emissionBursts) !== null && h !== void 0 ? h : [], this.onlyUsedByOther = (d = e.onlyUsedByOther) !== null && d !== void 0 ? d : !1, this.emitterShape = (f = e.shape) !== null && f !== void 0 ? f : new eR(), this.behaviors = (p = e.behaviors) !== null && p !== void 0 ? p : new Array(), this.worldSpace = (g = e.worldSpace) !== null && g !== void 0 ? g : !1, this.speedFactor = (y = e.speedFactor) !== null && y !== void 0 ? y : 0, this.rendererEmitterSettings = (m = e.rendererEmitterSettings) !== null && m !== void 0 ? m : {}, this.rendererSettings = {
|
|
@@ -93001,7 +93006,7 @@ var x3 = 60, Ome = new Yn(1, 1, 1, 1), Lme = /* @__PURE__ */ function() {
|
|
|
93001
93006
|
break;
|
|
93002
93007
|
case ct.Mesh:
|
|
93003
93008
|
this.rendererEmitterSettings = {
|
|
93004
|
-
geometry: new
|
|
93009
|
+
geometry: new Jn(1, 1)
|
|
93005
93010
|
}, this.startRotation = new F5(new C(0, 1, 0), new hr(0));
|
|
93006
93011
|
break;
|
|
93007
93012
|
case ct.BillBoard:
|
|
@@ -94716,12 +94721,12 @@ class fc extends Be {
|
|
|
94716
94721
|
}
|
|
94717
94722
|
getMaterial(t = !1) {
|
|
94718
94723
|
let i = t === !0 && this.trailMaterial ? this.trailMaterial : this.particleMaterial;
|
|
94719
|
-
return i && t && i.side ===
|
|
94724
|
+
return i && t && i.side === cs && (i = i.clone(), i.side = mn, t ? this.trailMaterial = i : this.particleMaterial = i), i && !wAe && i._didRequestTextureLOD === void 0 && (i._didRequestTextureLOD = 0, CAe && console.log("Load material LOD", i.name), yi.assignTextureLOD(i, 0)), i;
|
|
94720
94725
|
}
|
|
94721
94726
|
getMesh(t) {
|
|
94722
94727
|
let i = null;
|
|
94723
94728
|
if (!i && (this.particleMesh instanceof ge && (i = this.particleMesh.geometry), i === null)) {
|
|
94724
|
-
i = new
|
|
94729
|
+
i = new Jn(1, 1);
|
|
94725
94730
|
const r = i.attributes.uv;
|
|
94726
94731
|
for (let o = 0; o < r.count; o++)
|
|
94727
94732
|
r.setX(o, 1 - r.getX(o));
|
|
@@ -95842,12 +95847,12 @@ kv([
|
|
|
95842
95847
|
kv([
|
|
95843
95848
|
x()
|
|
95844
95849
|
], ch.prototype, "allowNetworking", 2);
|
|
95845
|
-
var VAe = Object.defineProperty, jAe = Object.getOwnPropertyDescriptor,
|
|
95850
|
+
var VAe = Object.defineProperty, jAe = Object.getOwnPropertyDescriptor, Vo = (s, e, t, i) => {
|
|
95846
95851
|
for (var n = i > 1 ? void 0 : i ? jAe(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
95847
95852
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
95848
95853
|
return i && n && VAe(e, t, n), n;
|
|
95849
95854
|
};
|
|
95850
|
-
const
|
|
95855
|
+
const So = ne("debugsceneswitcher"), Yx = "scene";
|
|
95851
95856
|
M2(Yx);
|
|
95852
95857
|
const Xh = Promise.resolve(!1);
|
|
95853
95858
|
class Yr extends Be {
|
|
@@ -95881,7 +95886,7 @@ class Yr extends Be {
|
|
|
95881
95886
|
const r = t == null ? void 0 : t.state;
|
|
95882
95887
|
if (r && r.startsWith(this.guid)) {
|
|
95883
95888
|
const o = r.substr(this.guid.length + 2);
|
|
95884
|
-
|
|
95889
|
+
So && console.log("PopState", o), await this.trySelectSceneFromValue(o);
|
|
95885
95890
|
}
|
|
95886
95891
|
}
|
|
95887
95892
|
} finally {
|
|
@@ -95956,7 +95961,7 @@ class Yr extends Be {
|
|
|
95956
95961
|
}
|
|
95957
95962
|
/** @internal */
|
|
95958
95963
|
awake() {
|
|
95959
|
-
this.scenes === void 0 && (this.scenes = []),
|
|
95964
|
+
this.scenes === void 0 && (this.scenes = []), So && console.log("SceneSwitcher", this);
|
|
95960
95965
|
}
|
|
95961
95966
|
/** @internal */
|
|
95962
95967
|
async onEnable() {
|
|
@@ -96025,7 +96030,7 @@ class Yr extends Be {
|
|
|
96025
96030
|
*/
|
|
96026
96031
|
select(t) {
|
|
96027
96032
|
var n, r, o;
|
|
96028
|
-
if (
|
|
96033
|
+
if (So && console.log("select", t), typeof t == "object" && console.warn('Switching to "' + t + '" might not work. Please either use an index or a AssetReference (not a scene reference)'), typeof t == "string") {
|
|
96029
96034
|
const a = (n = this.scenes) == null ? void 0 : n.find((c) => c.uri === t);
|
|
96030
96035
|
if (!a) {
|
|
96031
96036
|
const c = ti.getOrCreate(this.sourceId ?? "", t, this.context);
|
|
@@ -96074,7 +96079,7 @@ class Yr extends Be {
|
|
|
96074
96079
|
async __internalSwitchScene(t) {
|
|
96075
96080
|
var n, r;
|
|
96076
96081
|
if (this._currentScene) {
|
|
96077
|
-
|
|
96082
|
+
So && console.log("UNLOAD", t.uri);
|
|
96078
96083
|
const o = this.tryGetSceneEventListener(this._currentScene.asset);
|
|
96079
96084
|
if (o != null && o.sceneClosing) {
|
|
96080
96085
|
const a = o.sceneClosing();
|
|
@@ -96092,11 +96097,11 @@ class Yr extends Be {
|
|
|
96092
96097
|
}).catch(console.error), await this.onEndLoading();
|
|
96093
96098
|
const a = new CustomEvent("loadscene-finished", { detail: { scene: t, switcher: this, index: i } });
|
|
96094
96099
|
if (this.dispatchEvent(a), this._currentLoadingProgress = void 0, this._currentlyLoadingScene = void 0, a.defaultPrevented)
|
|
96095
|
-
return
|
|
96100
|
+
return So && console.warn("Adding loaded scene prevented:", t, a), !1;
|
|
96096
96101
|
if (!t.asset)
|
|
96097
|
-
return
|
|
96102
|
+
return So && console.warn("Failed loading scene:", t), !1;
|
|
96098
96103
|
if (this._currentIndex === i) {
|
|
96099
|
-
if (
|
|
96104
|
+
if (So && console.log("ADD", t.uri), this._currentScene = t, re.add(t.asset, this.gameObject), this.useSceneLighting && this.context.sceneLighting.enable(t), this.useHistory && i >= 0) {
|
|
96100
96105
|
let h = i.toString();
|
|
96101
96106
|
if (this.useSceneName && (h = D3(t.uri)), (r = this.queryParameterName) != null && r.length)
|
|
96102
96107
|
CT(this.queryParameterName, h, this.useHistory);
|
|
@@ -96154,7 +96159,7 @@ class Yr extends Be {
|
|
|
96154
96159
|
async onStartLoading() {
|
|
96155
96160
|
var t, i;
|
|
96156
96161
|
if (this._isCurrentlyLoading = !0, this.loadingScene && (this._lastLoadingScene !== this.loadingScene && (this._loadingScenePromise = void 0), this._lastLoadingScene = this.loadingScene, this._loadingScenePromise || (this._loadingScenePromise = (t = this.loadingScene) == null ? void 0 : t.loadAssetAsync()), await this._loadingScenePromise, this._isCurrentlyLoading && ((i = this.loadingScene) != null && i.asset))) {
|
|
96157
|
-
|
|
96162
|
+
So && console.log("Add loading scene", this.loadingScene.uri, this.loadingScene.asset);
|
|
96158
96163
|
const n = this.loadingScene.asset;
|
|
96159
96164
|
re.add(n, this.gameObject);
|
|
96160
96165
|
const r = this.tryGetSceneEventListener(n);
|
|
@@ -96174,7 +96179,7 @@ class Yr extends Be {
|
|
|
96174
96179
|
async onEndLoading() {
|
|
96175
96180
|
var t;
|
|
96176
96181
|
if (this._isCurrentlyLoading = !1, (t = this.loadingScene) != null && t.asset) {
|
|
96177
|
-
|
|
96182
|
+
So && console.log("Remove loading scene", this.loadingScene.uri);
|
|
96178
96183
|
const i = this.loadingScene.asset, n = this.tryGetSceneEventListener(i);
|
|
96179
96184
|
if (typeof (n == null ? void 0 : n.sceneClosing) == "function") {
|
|
96180
96185
|
const r = n.sceneClosing();
|
|
@@ -96201,43 +96206,43 @@ class Yr extends Be {
|
|
|
96201
96206
|
return n || null;
|
|
96202
96207
|
}
|
|
96203
96208
|
}
|
|
96204
|
-
|
|
96209
|
+
Vo([
|
|
96205
96210
|
x()
|
|
96206
96211
|
], Yr.prototype, "autoLoadFirstScene", 2);
|
|
96207
|
-
|
|
96212
|
+
Vo([
|
|
96208
96213
|
x(ti)
|
|
96209
96214
|
], Yr.prototype, "scenes", 2);
|
|
96210
|
-
|
|
96215
|
+
Vo([
|
|
96211
96216
|
x(ti)
|
|
96212
96217
|
], Yr.prototype, "loadingScene", 2);
|
|
96213
|
-
|
|
96218
|
+
Vo([
|
|
96214
96219
|
x()
|
|
96215
96220
|
], Yr.prototype, "queryParameterName", 2);
|
|
96216
|
-
|
|
96221
|
+
Vo([
|
|
96217
96222
|
x()
|
|
96218
96223
|
], Yr.prototype, "useSceneName", 2);
|
|
96219
|
-
|
|
96224
|
+
Vo([
|
|
96220
96225
|
x()
|
|
96221
96226
|
], Yr.prototype, "clamp", 2);
|
|
96222
|
-
|
|
96227
|
+
Vo([
|
|
96223
96228
|
x()
|
|
96224
96229
|
], Yr.prototype, "useHistory", 2);
|
|
96225
|
-
|
|
96230
|
+
Vo([
|
|
96226
96231
|
x()
|
|
96227
96232
|
], Yr.prototype, "useKeyboard", 2);
|
|
96228
|
-
|
|
96233
|
+
Vo([
|
|
96229
96234
|
x()
|
|
96230
96235
|
], Yr.prototype, "useSwipe", 2);
|
|
96231
|
-
|
|
96236
|
+
Vo([
|
|
96232
96237
|
x()
|
|
96233
96238
|
], Yr.prototype, "useSceneLighting", 2);
|
|
96234
|
-
|
|
96239
|
+
Vo([
|
|
96235
96240
|
x()
|
|
96236
96241
|
], Yr.prototype, "preloadNext", 2);
|
|
96237
|
-
|
|
96242
|
+
Vo([
|
|
96238
96243
|
x()
|
|
96239
96244
|
], Yr.prototype, "preloadPrevious", 2);
|
|
96240
|
-
|
|
96245
|
+
Vo([
|
|
96241
96246
|
x()
|
|
96242
96247
|
], Yr.prototype, "preloadConcurrent", 2);
|
|
96243
96248
|
function D3(s) {
|
|
@@ -96258,10 +96263,10 @@ class WAe {
|
|
|
96258
96263
|
begin() {
|
|
96259
96264
|
if (this._isRunning)
|
|
96260
96265
|
return;
|
|
96261
|
-
|
|
96266
|
+
So && console.log("Preload begin"), this._isRunning = !0;
|
|
96262
96267
|
let e = -1, t, i;
|
|
96263
96268
|
const n = this._switcher.scenes, r = setInterval(() => {
|
|
96264
|
-
if (this.allLoaded() && (
|
|
96269
|
+
if (this.allLoaded() && (So && console.log("All scenes loaded"), this.stop()), !this._isRunning) {
|
|
96265
96270
|
clearInterval(r);
|
|
96266
96271
|
return;
|
|
96267
96272
|
}
|
|
@@ -96303,7 +96308,7 @@ class qAe {
|
|
|
96303
96308
|
this.index = e, this.asset = t, this.tasks = i, i.push(this), this.awaitLoading();
|
|
96304
96309
|
}
|
|
96305
96310
|
async awaitLoading() {
|
|
96306
|
-
this.asset && !this.asset.isLoaded() && (
|
|
96311
|
+
this.asset && !this.asset.isLoaded() && (So && console.log("Preload start: " + this.asset.uri, this.index), await this.asset.preload(), So && console.log("Preload finished: " + this.asset.uri, this.index));
|
|
96307
96312
|
const e = this.tasks.indexOf(this);
|
|
96308
96313
|
e >= 0 && this.tasks.splice(e, 1);
|
|
96309
96314
|
}
|
|
@@ -96319,7 +96324,7 @@ function XAe() {
|
|
|
96319
96324
|
async function YAe(s) {
|
|
96320
96325
|
await XAe(), s();
|
|
96321
96326
|
}
|
|
96322
|
-
var JAe = Object.defineProperty, KAe = Object.getOwnPropertyDescriptor,
|
|
96327
|
+
var JAe = Object.defineProperty, KAe = Object.getOwnPropertyDescriptor, jo = (s, e, t, i) => {
|
|
96323
96328
|
for (var n = i > 1 ? void 0 : i ? KAe(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
|
96324
96329
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
96325
96330
|
return i && n && JAe(e, t, n), n;
|
|
@@ -96543,7 +96548,7 @@ class Cs extends Be {
|
|
|
96543
96548
|
let i = this.gameObject;
|
|
96544
96549
|
switch (this.renderMode) {
|
|
96545
96550
|
case 3:
|
|
96546
|
-
i = (r = this.targetMaterialRenderer) == null ? void 0 : r.gameObject, i || (i = (o = re.getComponent(this.gameObject,
|
|
96551
|
+
i = (r = this.targetMaterialRenderer) == null ? void 0 : r.gameObject, i || (i = (o = re.getComponent(this.gameObject, Yn)) == null ? void 0 : o.gameObject);
|
|
96547
96552
|
break;
|
|
96548
96553
|
case 2:
|
|
96549
96554
|
console.error("VideoPlayer renderTexture not implemented yet. Please use material override instead");
|
|
@@ -96635,43 +96640,43 @@ class Cs extends Be {
|
|
|
96635
96640
|
t ? globalThis.Hls ? this.onHlsAvailable() : t.addEventListener("load", this.onHlsAvailable) : (ys && console.log("HLS: load script"), t = document.createElement("script"), t.dataset.hls_library = "hls.js", t.src = "https://cdn.jsdelivr.net/npm/hls.js@1", t.addEventListener("load", this.onHlsAvailable), document.head.append(t));
|
|
96636
96641
|
}
|
|
96637
96642
|
}
|
|
96638
|
-
|
|
96643
|
+
jo([
|
|
96639
96644
|
x()
|
|
96640
96645
|
], Cs.prototype, "playOnAwake", 2);
|
|
96641
|
-
|
|
96646
|
+
jo([
|
|
96642
96647
|
x()
|
|
96643
96648
|
], Cs.prototype, "aspectMode", 2);
|
|
96644
|
-
|
|
96649
|
+
jo([
|
|
96645
96650
|
x(URL)
|
|
96646
96651
|
], Cs.prototype, "clip", 2);
|
|
96647
|
-
|
|
96652
|
+
jo([
|
|
96648
96653
|
x()
|
|
96649
96654
|
], Cs.prototype, "source", 2);
|
|
96650
|
-
|
|
96655
|
+
jo([
|
|
96651
96656
|
x(URL)
|
|
96652
96657
|
], Cs.prototype, "url", 1);
|
|
96653
|
-
|
|
96658
|
+
jo([
|
|
96654
96659
|
x()
|
|
96655
96660
|
], Cs.prototype, "renderMode", 2);
|
|
96656
|
-
|
|
96661
|
+
jo([
|
|
96657
96662
|
x()
|
|
96658
96663
|
], Cs.prototype, "targetMaterialProperty", 2);
|
|
96659
|
-
|
|
96660
|
-
x(
|
|
96664
|
+
jo([
|
|
96665
|
+
x(Yn)
|
|
96661
96666
|
], Cs.prototype, "targetMaterialRenderer", 2);
|
|
96662
|
-
|
|
96667
|
+
jo([
|
|
96663
96668
|
x(jt)
|
|
96664
96669
|
], Cs.prototype, "targetTexture", 2);
|
|
96665
|
-
|
|
96670
|
+
jo([
|
|
96666
96671
|
x()
|
|
96667
96672
|
], Cs.prototype, "time", 2);
|
|
96668
|
-
|
|
96673
|
+
jo([
|
|
96669
96674
|
x()
|
|
96670
96675
|
], Cs.prototype, "playbackSpeed", 1);
|
|
96671
|
-
|
|
96676
|
+
jo([
|
|
96672
96677
|
x()
|
|
96673
96678
|
], Cs.prototype, "isLooping", 1);
|
|
96674
|
-
|
|
96679
|
+
jo([
|
|
96675
96680
|
x()
|
|
96676
96681
|
], Cs.prototype, "audioOutputMode", 1);
|
|
96677
96682
|
class ZAe {
|
|
@@ -97466,7 +97471,7 @@ yE([
|
|
|
97466
97471
|
], Wf.prototype, "positionAxes", 2);
|
|
97467
97472
|
class uye extends ge {
|
|
97468
97473
|
constructor(e) {
|
|
97469
|
-
const t = new dye(e), i = new
|
|
97474
|
+
const t = new dye(e), i = new Jn(t.image.width * 1e-3, t.image.height * 1e-3), n = new $t({ map: t, toneMapped: !1, transparent: !0 });
|
|
97470
97475
|
super(i, n);
|
|
97471
97476
|
function r(o) {
|
|
97472
97477
|
n.map.dispatchDOMEvent(o);
|
|
@@ -97826,7 +97831,7 @@ var bye = Object.defineProperty, _ye = Object.getOwnPropertyDescriptor, xye = (s
|
|
|
97826
97831
|
(o = s[r]) && (n = (i ? o(e, t, n) : o(n)) || n);
|
|
97827
97832
|
return i && n && bye(e, t, n), n;
|
|
97828
97833
|
};
|
|
97829
|
-
const
|
|
97834
|
+
const Mo = ne("debugspectator");
|
|
97830
97835
|
class T2 extends Be {
|
|
97831
97836
|
constructor() {
|
|
97832
97837
|
super(...arguments);
|
|
@@ -97915,14 +97920,14 @@ class T2 extends Be {
|
|
|
97915
97920
|
this.isSupportedPlatform() && re.setActive(this.gameObject, !0);
|
|
97916
97921
|
}
|
|
97917
97922
|
onEnterXR(t) {
|
|
97918
|
-
this.isSupportedPlatform() && (
|
|
97923
|
+
this.isSupportedPlatform() && (Mo && console.log(this.context.mainCamera), this.context.mainCamera && this.followSelf());
|
|
97919
97924
|
}
|
|
97920
97925
|
onLeaveXR(t) {
|
|
97921
97926
|
var i, n;
|
|
97922
97927
|
this.context.removeCamera(this.cam), re.setActive(this.gameObject, !1), this.orbit && (this.orbit.enabled = !0), (i = this._handler) == null || i.set(void 0), (n = this._handler) == null || n.disable(), this.isSpectatingSelf && this.stopSpectating();
|
|
97923
97928
|
}
|
|
97924
97929
|
followSelf() {
|
|
97925
|
-
this.target = this.context.players.getPlayerView(this.context.connection.connectionId), this.target || (this.context.players.setPlayerView(this.localId, this.context.mainCamera, nf.Headset), this.target = this.context.players.getPlayerView(this.localId)),
|
|
97930
|
+
this.target = this.context.players.getPlayerView(this.context.connection.connectionId), this.target || (this.context.players.setPlayerView(this.localId, this.context.mainCamera, nf.Headset), this.target = this.context.players.getPlayerView(this.localId)), Mo && console.log("Follow self", this.target);
|
|
97926
97931
|
}
|
|
97927
97932
|
// TODO: only show Spectator cam for DesktopVR;
|
|
97928
97933
|
// don't show for AR, don't show on Quest
|
|
@@ -98004,10 +98009,10 @@ class wye {
|
|
|
98004
98009
|
this.spectator.stopSpectating();
|
|
98005
98010
|
return;
|
|
98006
98011
|
}
|
|
98007
|
-
t !== this.currentObject && (this.currentObject = t, this.view = e, this.follow || (this.follow = re.addNewComponent(this.cam.gameObject, Wf)), this.target || (this.target = new Ae()), t.add(this.target), this.follow.enabled = !0, this.follow.target = this.target,
|
|
98012
|
+
t !== this.currentObject && (this.currentObject = t, this.view = e, this.follow || (this.follow = re.addNewComponent(this.cam.gameObject, Wf)), this.target || (this.target = new Ae()), t.add(this.target), this.follow.enabled = !0, this.follow.target = this.target, Mo && console.log("FOLLOW", t), this.context.isInXR ? this.context.removeCamera(this.cam) : this.context.setCurrentCamera(this.cam));
|
|
98008
98013
|
}
|
|
98009
98014
|
disable() {
|
|
98010
|
-
|
|
98015
|
+
Mo && console.log("STOP FOLLOW", this.currentObject), this.view = void 0, this.currentObject = void 0, this.context.removeCamera(this.cam), this.follow && (this.follow.enabled = !1);
|
|
98011
98016
|
}
|
|
98012
98017
|
destroy() {
|
|
98013
98018
|
var e;
|
|
@@ -98016,10 +98021,10 @@ class wye {
|
|
|
98016
98021
|
update(e) {
|
|
98017
98022
|
var n, r, o, a, c, l;
|
|
98018
98023
|
if (((n = this.currentTarget) == null ? void 0 : n.isConnected) === !1 || ((r = this.currentTarget) == null ? void 0 : r.removed) === !0) {
|
|
98019
|
-
|
|
98024
|
+
Mo && console.log("Target disconnected or timeout", this.currentTarget), this.spectator.stopSpectating();
|
|
98020
98025
|
return;
|
|
98021
98026
|
}
|
|
98022
|
-
this.currentTarget && ((o = this.currentTarget) == null ? void 0 : o.currentObject) !== this.currentObject && (
|
|
98027
|
+
this.currentTarget && ((o = this.currentTarget) == null ? void 0 : o.currentObject) !== this.currentObject && (Mo && console.log("Target changed", this.currentObject, "to", this.currentTarget.currentObject), this.set(this.currentTarget));
|
|
98023
98028
|
const t = this.context.mainCamera;
|
|
98024
98029
|
t && (this.cam.cam.near !== t.near || this.cam.cam.far !== t.far) && (this.cam.cam.near = t.near, this.cam.cam.far = t.far, this.cam.cam.updateProjectionMatrix());
|
|
98025
98030
|
const i = (a = this.follow) == null ? void 0 : a.target;
|
|
@@ -98058,14 +98063,14 @@ class Sye {
|
|
|
98058
98063
|
const e = new ec();
|
|
98059
98064
|
e.setMask(16777215);
|
|
98060
98065
|
const t = this.context.physics.raycast(e);
|
|
98061
|
-
if (
|
|
98066
|
+
if (Mo && console.log(...t), t != null && t.length)
|
|
98062
98067
|
for (const i of t) {
|
|
98063
98068
|
if (i.distance < 0.2)
|
|
98064
98069
|
continue;
|
|
98065
98070
|
const n = i.object, r = re.getComponentInParent(n, xs), o = r == null ? void 0 : r.connectionId;
|
|
98066
98071
|
if (o) {
|
|
98067
98072
|
const a = this.context.players.getPlayerView(o);
|
|
98068
|
-
this.spectator.target = a,
|
|
98073
|
+
this.spectator.target = a, Mo && console.log("spectate", o, r);
|
|
98069
98074
|
break;
|
|
98070
98075
|
}
|
|
98071
98076
|
}
|
|
@@ -98110,13 +98115,13 @@ class Mye {
|
|
|
98110
98115
|
this.context.connection.stopListen("spectator-follower-changed", this._followerEventMethod), this.context.connection.stopListen("spectator-request-follow", this._requestFollowMethod), this.context.connection.stopListen(si.JoinedRoom, this._joinedRoomMethod);
|
|
98111
98116
|
}
|
|
98112
98117
|
onSpectatedObjectChanged(e, t) {
|
|
98113
|
-
if (
|
|
98118
|
+
if (Mo && console.log(this.context.connection.connectionId, "onSpectatedObjectChanged", e, t), this.context.connection.connectionId) {
|
|
98114
98119
|
const i = (e == null ? void 0 : e.userId) === void 0, n = i ? t : e == null ? void 0 : e.userId, r = new Eye(this.context.connection.connectionId, n, i);
|
|
98115
98120
|
this.context.connection.send("spectator-follower-changed", r);
|
|
98116
98121
|
}
|
|
98117
98122
|
}
|
|
98118
98123
|
onRequestFollowMe(e = !1) {
|
|
98119
|
-
if (
|
|
98124
|
+
if (Mo && console.log("Request follow", this.context.connection.connectionId), this.context.connection.connectionId) {
|
|
98120
98125
|
this.spectator.stopSpectating();
|
|
98121
98126
|
const t = e ? void 0 : this.context.connection.connectionId, i = new Iye(this.spectator, t);
|
|
98122
98127
|
this.context.connection.send("spectator-request-follow", i);
|
|
@@ -98127,7 +98132,7 @@ class Mye {
|
|
|
98127
98132
|
}
|
|
98128
98133
|
onFollowerEvent(e) {
|
|
98129
98134
|
const t = e.targetUserId, i = e.guid;
|
|
98130
|
-
if (
|
|
98135
|
+
if (Mo && console.log(e), t === this.context.connection.connectionId)
|
|
98131
98136
|
if (e.stoppedFollowing) {
|
|
98132
98137
|
const n = this.followers.indexOf(i);
|
|
98133
98138
|
n !== -1 && (this.followers.splice(n, 1), this.removeDisconnectedFollowers(), console.log(i, "unfollows you", this.followers.length));
|
|
@@ -98150,13 +98155,13 @@ class Mye {
|
|
|
98150
98155
|
if (t)
|
|
98151
98156
|
this.spectator.target = t;
|
|
98152
98157
|
else
|
|
98153
|
-
return
|
|
98158
|
+
return Mo && console.warn("Could not find view", e.userId), this.enforceFollow(), !1;
|
|
98154
98159
|
}
|
|
98155
98160
|
return !0;
|
|
98156
98161
|
}
|
|
98157
98162
|
enforceFollow() {
|
|
98158
98163
|
this._enforceFollowInterval || (this._enforceFollowInterval = setInterval(() => {
|
|
98159
|
-
this._lastRequestFollowUser === void 0 || this._lastRequestFollowUser.userId && this.spectator.isFollowedBy(this._lastRequestFollowUser.userId) ? (clearInterval(this._enforceFollowInterval), this._enforceFollowInterval = void 0) : (
|
|
98164
|
+
this._lastRequestFollowUser === void 0 || this._lastRequestFollowUser.userId && this.spectator.isFollowedBy(this._lastRequestFollowUser.userId) ? (clearInterval(this._enforceFollowInterval), this._enforceFollowInterval = void 0) : (Mo && console.log("REQUEST FOLLOW AGAIN", this._lastRequestFollowUser.userId), this.onRequestFollowEvent(this._lastRequestFollowUser));
|
|
98160
98165
|
}, 1e3));
|
|
98161
98166
|
}
|
|
98162
98167
|
}
|
|
@@ -98229,7 +98234,7 @@ var Tye = Object.defineProperty, Bye = Object.getOwnPropertyDescriptor, Rye = (s
|
|
|
98229
98234
|
};
|
|
98230
98235
|
const $w = "SCAM";
|
|
98231
98236
|
x8($w, Pc.getRootAsSyncedCameraModel);
|
|
98232
|
-
const
|
|
98237
|
+
const bo = new sv();
|
|
98233
98238
|
class Pye {
|
|
98234
98239
|
// dontSave: boolean = true;
|
|
98235
98240
|
// pos: { x: number, y: number, z: number } = { x: 0, y: 0, z: 0 };
|
|
@@ -98241,13 +98246,13 @@ class Pye {
|
|
|
98241
98246
|
}
|
|
98242
98247
|
send(e, t) {
|
|
98243
98248
|
if (e) {
|
|
98244
|
-
|
|
98245
|
-
const i =
|
|
98246
|
-
Pc.startSyncedCameraModel(
|
|
98249
|
+
bo.clear();
|
|
98250
|
+
const i = bo.createString(this.guid), n = bo.createString(this.userId);
|
|
98251
|
+
Pc.startSyncedCameraModel(bo), Pc.addGuid(bo, i), Pc.addUserId(bo, n);
|
|
98247
98252
|
const r = zt(e), o = rS(e);
|
|
98248
|
-
Pc.addPos(
|
|
98249
|
-
const a = Pc.endSyncedCameraModel(
|
|
98250
|
-
|
|
98253
|
+
Pc.addPos(bo, af.createVec3(bo, r.x, r.y, r.z)), Pc.addRot(bo, af.createVec3(bo, o.x, o.y, o.z));
|
|
98254
|
+
const a = Pc.endSyncedCameraModel(bo);
|
|
98255
|
+
bo.finish(a, $w), t.sendBinary(bo.asUint8Array());
|
|
98251
98256
|
}
|
|
98252
98257
|
}
|
|
98253
98258
|
}
|
|
@@ -98752,7 +98757,7 @@ class jm extends Be {
|
|
|
98752
98757
|
(t = this.control) == null || t.removeFromParent(), (i = this.control) == null || i.removeEventListener("dragging-changed", this.onControlChangedEvent), window.removeEventListener("keydown", this.windowKeyDownListener), window.removeEventListener("keyup", this.windowKeyUpListener);
|
|
98753
98758
|
}
|
|
98754
98759
|
enableSnapping() {
|
|
98755
|
-
this.control && (this.control.setTranslationSnap(this.translationSnap), this.control.setRotationSnap(
|
|
98760
|
+
this.control && (this.control.setTranslationSnap(this.translationSnap), this.control.setRotationSnap(os.degToRad(this.rotationSnapAngle)), this.control.setScaleSnap(this.scaleSnap));
|
|
98756
98761
|
}
|
|
98757
98762
|
disableSnapping() {
|
|
98758
98763
|
this.control && (this.control.setTranslationSnap(null), this.control.setRotationSnap(null), this.control.setScaleSnap(null));
|
|
@@ -98824,7 +98829,7 @@ class P2 extends Be {
|
|
|
98824
98829
|
u(this, "backgroundPlane");
|
|
98825
98830
|
u(this, "threeTexture");
|
|
98826
98831
|
u(this, "forceTextureInitialization", function() {
|
|
98827
|
-
const t = new $t(), i = new
|
|
98832
|
+
const t = new $t(), i = new Jn(), n = new yr();
|
|
98828
98833
|
n.add(new ge(i, t));
|
|
98829
98834
|
const r = new Qt();
|
|
98830
98835
|
return function(a, c) {
|
|
@@ -98914,7 +98919,7 @@ function Jye(s) {
|
|
|
98914
98919
|
const e = "vec4(" + s.r.toFixed(3) + "," + s.g.toFixed(3) + "," + s.b.toFixed(3) + "," + s.a.toFixed(3) + ")";
|
|
98915
98920
|
Zx && console.log(e);
|
|
98916
98921
|
const t = new ge(
|
|
98917
|
-
new
|
|
98922
|
+
new Jn(2, 2),
|
|
98918
98923
|
// @ts-ignore
|
|
98919
98924
|
new Pt({
|
|
98920
98925
|
name: "BackgroundMaterial",
|
|
@@ -99042,7 +99047,7 @@ class $ye {
|
|
|
99042
99047
|
if (!(!n || !n.trackedImages)) {
|
|
99043
99048
|
for (const o of n.trackedImages)
|
|
99044
99049
|
if (((r = o.object) == null ? void 0 : r.asset) === e) {
|
|
99045
|
-
const a = re.findObjectOfType(
|
|
99050
|
+
const a = re.findObjectOfType(Xn);
|
|
99046
99051
|
if (!a)
|
|
99047
99052
|
continue;
|
|
99048
99053
|
const { scale: c, target: l } = a.getARScaleAndTarget();
|
|
@@ -99078,7 +99083,7 @@ const hy = (QM = class extends Be {
|
|
|
99078
99083
|
o = { object: null, frames: 0, lastTrackingTime: Date.now() }, this.imageToObjectMap.set(n, o), n.object.loadAssetAsync().then((a) => {
|
|
99079
99084
|
if (n.createObjectInstance && a && (a = re.instantiate(a)), a) {
|
|
99080
99085
|
o.object = a;
|
|
99081
|
-
for (const c of a.getComponentsInChildren(
|
|
99086
|
+
for (const c of a.getComponentsInChildren(Yn))
|
|
99082
99087
|
c.setInstancingEnabled(!1);
|
|
99083
99088
|
t.rig ? (t.rig.gameObject.add(a), i.applyToObject(a), a.activeSelf || re.setActive(a, !0)) : console.warn("XRImageTracking: missing XRRig");
|
|
99084
99089
|
}
|
|
@@ -99103,7 +99108,7 @@ const hy = (QM = class extends Be {
|
|
|
99103
99108
|
hy._imageElements.set(t, n);
|
|
99104
99109
|
const r = await ere(n);
|
|
99105
99110
|
if (r) {
|
|
99106
|
-
const a = await (await r.convertToBlob({ type: "image/png" })).arrayBuffer(), c = re.findObjectOfType(
|
|
99111
|
+
const a = await (await r.convertToBlob({ type: "image/png" })).arrayBuffer(), c = re.findObjectOfType(Xn);
|
|
99107
99112
|
c && this.trackedImages && (c.extensions.push(
|
|
99108
99113
|
new $ye("marker.png", new Uint8Array(a), this.trackedImages[0].widthInMeters)
|
|
99109
99114
|
), c.anchoringType = "image");
|
|
@@ -99525,7 +99530,7 @@ const a0e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99525
99530
|
__proto__: null,
|
|
99526
99531
|
ActionBuilder: fi,
|
|
99527
99532
|
ActionCollection: kH,
|
|
99528
|
-
ActionModel:
|
|
99533
|
+
ActionModel: Eo,
|
|
99529
99534
|
AlignmentConstraint: MS,
|
|
99530
99535
|
Animation: jr,
|
|
99531
99536
|
AnimationCurve: ym,
|
|
@@ -99552,7 +99557,7 @@ const a0e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99552
99557
|
BaseUIComponent: tc,
|
|
99553
99558
|
BasicIKConstraint: VV,
|
|
99554
99559
|
BehaviorExtension: YD,
|
|
99555
|
-
BehaviorModel:
|
|
99560
|
+
BehaviorModel: rs,
|
|
99556
99561
|
Bloom: wm,
|
|
99557
99562
|
BoxCollider: Av,
|
|
99558
99563
|
BoxGizmo: Sm,
|
|
@@ -99588,7 +99593,7 @@ const a0e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99588
99593
|
EmphasizeOnClick: wv,
|
|
99589
99594
|
EventList: ws,
|
|
99590
99595
|
EventListEvent: FD,
|
|
99591
|
-
EventSystem:
|
|
99596
|
+
EventSystem: Ro,
|
|
99592
99597
|
EventTrigger: f2,
|
|
99593
99598
|
FieldWithDefault: g5,
|
|
99594
99599
|
FixedJoint: M5,
|
|
@@ -99615,7 +99620,7 @@ const a0e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99615
99620
|
Keyframe: lc,
|
|
99616
99621
|
LODGroup: aE,
|
|
99617
99622
|
LODModel: Um,
|
|
99618
|
-
Light:
|
|
99623
|
+
Light: Ho,
|
|
99619
99624
|
LimitVelocityOverLifetimeModule: ds,
|
|
99620
99625
|
LogStats: D5,
|
|
99621
99626
|
LookAt: Nm,
|
|
@@ -99625,7 +99630,7 @@ const a0e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99625
99630
|
MeshCollider: Cm,
|
|
99626
99631
|
MeshRenderer: XS,
|
|
99627
99632
|
MinMaxCurve: At,
|
|
99628
|
-
MinMaxGradient:
|
|
99633
|
+
MinMaxGradient: Go,
|
|
99629
99634
|
NeedleMenu: mh,
|
|
99630
99635
|
NestedGltf: v2,
|
|
99631
99636
|
Networking: km,
|
|
@@ -99657,7 +99662,7 @@ const a0e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99657
99662
|
ReflectionProbe: Ev,
|
|
99658
99663
|
RegisteredAnimationInfo: HD,
|
|
99659
99664
|
RemoteSkybox: ch,
|
|
99660
|
-
Renderer:
|
|
99665
|
+
Renderer: Yn,
|
|
99661
99666
|
RendererLightmap: qw,
|
|
99662
99667
|
Rigidbody: Ni,
|
|
99663
99668
|
RotationBySpeedModule: wa,
|
|
@@ -99703,13 +99708,13 @@ const a0e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99703
99708
|
TiltShiftEffect: yh,
|
|
99704
99709
|
ToneMapping: _E,
|
|
99705
99710
|
TrailModule: bn,
|
|
99706
|
-
TransformData:
|
|
99711
|
+
TransformData: ns,
|
|
99707
99712
|
TransformGizmo: jm,
|
|
99708
99713
|
TriggerBuilder: Ws,
|
|
99709
99714
|
TriggerModel: xu,
|
|
99710
99715
|
UIRaycastUtils: ND,
|
|
99711
99716
|
UIRootComponent: TS,
|
|
99712
|
-
USDZExporter:
|
|
99717
|
+
USDZExporter: Xn,
|
|
99713
99718
|
USDZText: Vd,
|
|
99714
99719
|
USDZUIExtension: o2,
|
|
99715
99720
|
UsageMarker: eE,
|
|
@@ -99724,7 +99729,7 @@ const a0e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99724
99729
|
VolumeParameter: Lt,
|
|
99725
99730
|
VolumeProfile: OS,
|
|
99726
99731
|
WebARCameraBackground: P2,
|
|
99727
|
-
WebARSessionRoot:
|
|
99732
|
+
WebARSessionRoot: Fo,
|
|
99728
99733
|
WebXR: ZS,
|
|
99729
99734
|
WebXRButtonFactory: uf,
|
|
99730
99735
|
WebXRImageTracking: L0,
|
|
@@ -99751,7 +99756,7 @@ class c0e extends Be {
|
|
|
99751
99756
|
K.add("__Ignore", t9);
|
|
99752
99757
|
K.add("ActionBuilder", fi);
|
|
99753
99758
|
K.add("ActionCollection", kH);
|
|
99754
|
-
K.add("ActionModel",
|
|
99759
|
+
K.add("ActionModel", Eo);
|
|
99755
99760
|
K.add("AlignmentConstraint", MS);
|
|
99756
99761
|
K.add("Animation", jr);
|
|
99757
99762
|
K.add("AnimationCurve", ym);
|
|
@@ -99778,7 +99783,7 @@ K.add("AxesHelper", gv);
|
|
|
99778
99783
|
K.add("BaseUIComponent", tc);
|
|
99779
99784
|
K.add("BasicIKConstraint", VV);
|
|
99780
99785
|
K.add("BehaviorExtension", YD);
|
|
99781
|
-
K.add("BehaviorModel",
|
|
99786
|
+
K.add("BehaviorModel", rs);
|
|
99782
99787
|
K.add("Bloom", wm);
|
|
99783
99788
|
K.add("BoxCollider", Av);
|
|
99784
99789
|
K.add("BoxGizmo", Sm);
|
|
@@ -99814,7 +99819,7 @@ K.add("EmissionModule", gh);
|
|
|
99814
99819
|
K.add("EmphasizeOnClick", wv);
|
|
99815
99820
|
K.add("EventList", ws);
|
|
99816
99821
|
K.add("EventListEvent", FD);
|
|
99817
|
-
K.add("EventSystem",
|
|
99822
|
+
K.add("EventSystem", Ro);
|
|
99818
99823
|
K.add("EventTrigger", f2);
|
|
99819
99824
|
K.add("FieldWithDefault", g5);
|
|
99820
99825
|
K.add("FixedJoint", M5);
|
|
@@ -99839,7 +99844,7 @@ K.add("InstanceHandle", Pg);
|
|
|
99839
99844
|
K.add("InstancingHandler", Rg);
|
|
99840
99845
|
K.add("Interactable", C5);
|
|
99841
99846
|
K.add("Keyframe", lc);
|
|
99842
|
-
K.add("Light",
|
|
99847
|
+
K.add("Light", Ho);
|
|
99843
99848
|
K.add("LimitVelocityOverLifetimeModule", ds);
|
|
99844
99849
|
K.add("LODGroup", aE);
|
|
99845
99850
|
K.add("LODModel", Um);
|
|
@@ -99851,7 +99856,7 @@ K.add("MaskableGraphic", zS);
|
|
|
99851
99856
|
K.add("MeshCollider", Cm);
|
|
99852
99857
|
K.add("MeshRenderer", XS);
|
|
99853
99858
|
K.add("MinMaxCurve", At);
|
|
99854
|
-
K.add("MinMaxGradient",
|
|
99859
|
+
K.add("MinMaxGradient", Go);
|
|
99855
99860
|
K.add("NeedleMenu", mh);
|
|
99856
99861
|
K.add("NestedGltf", v2);
|
|
99857
99862
|
K.add("Networking", km);
|
|
@@ -99885,7 +99890,7 @@ K.add("RectTransform", Wr);
|
|
|
99885
99890
|
K.add("ReflectionProbe", Ev);
|
|
99886
99891
|
K.add("RegisteredAnimationInfo", HD);
|
|
99887
99892
|
K.add("RemoteSkybox", ch);
|
|
99888
|
-
K.add("Renderer",
|
|
99893
|
+
K.add("Renderer", Yn);
|
|
99889
99894
|
K.add("RendererLightmap", qw);
|
|
99890
99895
|
K.add("RGBAColor", Ri);
|
|
99891
99896
|
K.add("Rigidbody", Ni);
|
|
@@ -99932,14 +99937,14 @@ K.add("TextureSheetAnimationModule", wr);
|
|
|
99932
99937
|
K.add("TiltShiftEffect", yh);
|
|
99933
99938
|
K.add("ToneMapping", _E);
|
|
99934
99939
|
K.add("TrailModule", bn);
|
|
99935
|
-
K.add("TransformData",
|
|
99940
|
+
K.add("TransformData", ns);
|
|
99936
99941
|
K.add("TransformGizmo", jm);
|
|
99937
99942
|
K.add("TriggerBuilder", Ws);
|
|
99938
99943
|
K.add("TriggerModel", xu);
|
|
99939
99944
|
K.add("UIRaycastUtils", ND);
|
|
99940
99945
|
K.add("UIRootComponent", TS);
|
|
99941
99946
|
K.add("UsageMarker", eE);
|
|
99942
|
-
K.add("USDZExporter",
|
|
99947
|
+
K.add("USDZExporter", Xn);
|
|
99943
99948
|
K.add("USDZText", Vd);
|
|
99944
99949
|
K.add("USDZUIExtension", o2);
|
|
99945
99950
|
K.add("VariantAction", DH);
|
|
@@ -99953,7 +99958,7 @@ K.add("Volume", WS);
|
|
|
99953
99958
|
K.add("VolumeParameter", Lt);
|
|
99954
99959
|
K.add("VolumeProfile", OS);
|
|
99955
99960
|
K.add("WebARCameraBackground", P2);
|
|
99956
|
-
K.add("WebARSessionRoot",
|
|
99961
|
+
K.add("WebARSessionRoot", Fo);
|
|
99957
99962
|
K.add("WebXR", ZS);
|
|
99958
99963
|
K.add("WebXRButtonFactory", uf);
|
|
99959
99964
|
K.add("WebXRImageTracking", L0);
|
|
@@ -100746,14 +100751,14 @@ let ax = null;
|
|
|
100746
100751
|
function S0e() {
|
|
100747
100752
|
return ax !== null && ax.byteLength !== 0 || (ax = new Uint32Array(Ue.memory.buffer)), ax;
|
|
100748
100753
|
}
|
|
100749
|
-
let
|
|
100754
|
+
let xo = 0;
|
|
100750
100755
|
function bd(s, e) {
|
|
100751
100756
|
const t = e(4 * s.length, 4) >>> 0;
|
|
100752
|
-
return C0e().set(s, t / 4),
|
|
100757
|
+
return C0e().set(s, t / 4), xo = s.length, t;
|
|
100753
100758
|
}
|
|
100754
100759
|
function cx(s, e) {
|
|
100755
100760
|
const t = e(4 * s.length, 4) >>> 0;
|
|
100756
|
-
return S0e().set(s, t / 4),
|
|
100761
|
+
return S0e().set(s, t / 4), xo = s.length, t;
|
|
100757
100762
|
}
|
|
100758
100763
|
const Ds = Object.freeze({ Ball: 0, 0: "Ball", Cuboid: 1, 1: "Cuboid", Capsule: 2, 2: "Capsule", Segment: 3, 3: "Segment", Polyline: 4, 4: "Polyline", Triangle: 5, 5: "Triangle", TriMesh: 6, 6: "TriMesh", HeightField: 7, 7: "HeightField", Compound: 8, 8: "Compound", ConvexPolyhedron: 9, 9: "ConvexPolyhedron", Cylinder: 10, 10: "Cylinder", Cone: 11, 11: "Cone", RoundCuboid: 12, 12: "RoundCuboid", RoundTriangle: 13, 13: "RoundTriangle", RoundCylinder: 14, 14: "RoundCylinder", RoundCone: 15, 15: "RoundCone", RoundConvexPolyhedron: 16, 16: "RoundConvexPolyhedron", HalfSpace: 17, 17: "HalfSpace" });
|
|
100759
100764
|
class E0e {
|
|
@@ -100981,15 +100986,15 @@ class qt {
|
|
|
100981
100986
|
return qt.__wrap(n);
|
|
100982
100987
|
}
|
|
100983
100988
|
static polyline(e, t) {
|
|
100984
|
-
const i = bd(e, Ue.__wbindgen_malloc), n =
|
|
100989
|
+
const i = bd(e, Ue.__wbindgen_malloc), n = xo, r = cx(t, Ue.__wbindgen_malloc), o = xo, a = Ue.rawshape_polyline(i, n, r, o);
|
|
100985
100990
|
return qt.__wrap(a);
|
|
100986
100991
|
}
|
|
100987
100992
|
static trimesh(e, t) {
|
|
100988
|
-
const i = bd(e, Ue.__wbindgen_malloc), n =
|
|
100993
|
+
const i = bd(e, Ue.__wbindgen_malloc), n = xo, r = cx(t, Ue.__wbindgen_malloc), o = xo, a = Ue.rawshape_trimesh(i, n, r, o);
|
|
100989
100994
|
return qt.__wrap(a);
|
|
100990
100995
|
}
|
|
100991
100996
|
static heightfield(e, t, i, n) {
|
|
100992
|
-
const r = bd(i, Ue.__wbindgen_malloc), o =
|
|
100997
|
+
const r = bd(i, Ue.__wbindgen_malloc), o = xo;
|
|
100993
100998
|
mt(n, at);
|
|
100994
100999
|
const a = Ue.rawshape_heightfield(e, t, r, o, n.__wbg_ptr);
|
|
100995
101000
|
return qt.__wrap(a);
|
|
@@ -101010,19 +101015,19 @@ class qt {
|
|
|
101010
101015
|
return qt.__wrap(r);
|
|
101011
101016
|
}
|
|
101012
101017
|
static convexHull(e) {
|
|
101013
|
-
const t = bd(e, Ue.__wbindgen_malloc), i =
|
|
101018
|
+
const t = bd(e, Ue.__wbindgen_malloc), i = xo, n = Ue.rawshape_convexHull(t, i);
|
|
101014
101019
|
return n === 0 ? void 0 : qt.__wrap(n);
|
|
101015
101020
|
}
|
|
101016
101021
|
static roundConvexHull(e, t) {
|
|
101017
|
-
const i = bd(e, Ue.__wbindgen_malloc), n =
|
|
101022
|
+
const i = bd(e, Ue.__wbindgen_malloc), n = xo, r = Ue.rawshape_roundConvexHull(i, n, t);
|
|
101018
101023
|
return r === 0 ? void 0 : qt.__wrap(r);
|
|
101019
101024
|
}
|
|
101020
101025
|
static convexMesh(e, t) {
|
|
101021
|
-
const i = bd(e, Ue.__wbindgen_malloc), n =
|
|
101026
|
+
const i = bd(e, Ue.__wbindgen_malloc), n = xo, r = cx(t, Ue.__wbindgen_malloc), o = xo, a = Ue.rawshape_convexMesh(i, n, r, o);
|
|
101022
101027
|
return a === 0 ? void 0 : qt.__wrap(a);
|
|
101023
101028
|
}
|
|
101024
101029
|
static roundConvexMesh(e, t, i) {
|
|
101025
|
-
const n = bd(e, Ue.__wbindgen_malloc), r =
|
|
101030
|
+
const n = bd(e, Ue.__wbindgen_malloc), r = xo, o = cx(t, Ue.__wbindgen_malloc), a = xo, c = Ue.rawshape_roundConvexMesh(n, r, o, a, i);
|
|
101026
101031
|
return c === 0 ? void 0 : qt.__wrap(c);
|
|
101027
101032
|
}
|
|
101028
101033
|
castShape(e, t, i, n, r, o, a, c, l) {
|
|
@@ -102873,7 +102878,7 @@ Error:`, a), null;
|
|
|
102873
102878
|
fog: !1
|
|
102874
102879
|
// vertexColors: VertexColors
|
|
102875
102880
|
}), c = new Mt();
|
|
102876
|
-
this.lines = new
|
|
102881
|
+
this.lines = new Uo(c, a), this.lines.layers.disableAll(), this.lines.layers.enable(2);
|
|
102877
102882
|
}
|
|
102878
102883
|
this.lines.parent !== ((t = this.context) == null ? void 0 : t.scene) && ((i = this.context) == null || i.scene.add(this.lines));
|
|
102879
102884
|
const o = e.debugRender();
|
|
@@ -104104,7 +104109,7 @@ class J0e {
|
|
|
104104
104109
|
var d = e.name !== void 0 && e.name !== null ? e.name : e.uuid;
|
|
104105
104110
|
if (l[2] = d, l[3] === "morphTargetInfluences" && e.type === "Group") {
|
|
104106
104111
|
for (const p of e.children)
|
|
104107
|
-
p instanceof
|
|
104112
|
+
p instanceof ko && p.morphTargetInfluences && (l[3] = p.name, l[4] = "morphTargetInfluences", f(this.parser));
|
|
104108
104113
|
return c;
|
|
104109
104114
|
}
|
|
104110
104115
|
f(this.parser);
|
|
@@ -104194,7 +104199,7 @@ export {
|
|
|
104194
104199
|
Rxe as $physicsKey,
|
|
104195
104200
|
fi as ActionBuilder,
|
|
104196
104201
|
kH as ActionCollection,
|
|
104197
|
-
|
|
104202
|
+
Eo as ActionModel,
|
|
104198
104203
|
sce as Addressables,
|
|
104199
104204
|
MS as AlignmentConstraint,
|
|
104200
104205
|
ky as AmbientMode,
|
|
@@ -104232,7 +104237,7 @@ export {
|
|
|
104232
104237
|
tc as BaseUIComponent,
|
|
104233
104238
|
VV as BasicIKConstraint,
|
|
104234
104239
|
YD as BehaviorExtension,
|
|
104235
|
-
|
|
104240
|
+
rs as BehaviorModel,
|
|
104236
104241
|
Be as Behaviour,
|
|
104237
104242
|
wm as Bloom,
|
|
104238
104243
|
Av as BoxCollider,
|
|
@@ -104290,7 +104295,7 @@ export {
|
|
|
104290
104295
|
Ix as EngineLoadingView,
|
|
104291
104296
|
ws as EventList,
|
|
104292
104297
|
FD as EventListEvent,
|
|
104293
|
-
|
|
104298
|
+
Ro as EventSystem,
|
|
104294
104299
|
f2 as EventTrigger,
|
|
104295
104300
|
g5 as FieldWithDefault,
|
|
104296
104301
|
By as FileReference,
|
|
@@ -104341,9 +104346,9 @@ export {
|
|
|
104341
104346
|
lc as Keyframe,
|
|
104342
104347
|
aE as LODGroup,
|
|
104343
104348
|
Um as LODModel,
|
|
104344
|
-
|
|
104349
|
+
Io as LODsManager,
|
|
104345
104350
|
Z_e as LeftRoomResponse,
|
|
104346
|
-
|
|
104351
|
+
Ho as Light,
|
|
104347
104352
|
zle as LightData,
|
|
104348
104353
|
ds as LimitVelocityOverLifetimeModule,
|
|
104349
104354
|
Gbe as LoadingElementOptions,
|
|
@@ -104358,7 +104363,7 @@ export {
|
|
|
104358
104363
|
Cm as MeshCollider,
|
|
104359
104364
|
XS as MeshRenderer,
|
|
104360
104365
|
At as MinMaxCurve,
|
|
104361
|
-
|
|
104366
|
+
Go as MinMaxGradient,
|
|
104362
104367
|
yi as NEEDLE_progressive,
|
|
104363
104368
|
v_ as NEKeyboardEvent,
|
|
104364
104369
|
Yh as NEPointerEvent,
|
|
@@ -104432,7 +104437,7 @@ export {
|
|
|
104432
104437
|
ch as RemoteSkybox,
|
|
104433
104438
|
of as RenderTexture,
|
|
104434
104439
|
Vhe as RenderTextureSerializer,
|
|
104435
|
-
|
|
104440
|
+
Yn as Renderer,
|
|
104436
104441
|
Qle as RendererData,
|
|
104437
104442
|
qw as RendererLightmap,
|
|
104438
104443
|
Ni as Rigidbody,
|
|
@@ -104492,7 +104497,7 @@ export {
|
|
|
104492
104497
|
PS as TrackHandler,
|
|
104493
104498
|
$o as TrackType,
|
|
104494
104499
|
bn as TrailModule,
|
|
104495
|
-
|
|
104500
|
+
ns as TransformData,
|
|
104496
104501
|
jm as TransformGizmo,
|
|
104497
104502
|
Ws as TriggerBuilder,
|
|
104498
104503
|
xu as TriggerModel,
|
|
@@ -104501,7 +104506,7 @@ export {
|
|
|
104501
104506
|
TS as UIRootComponent,
|
|
104502
104507
|
no as USDObject,
|
|
104503
104508
|
qse as USDWriter,
|
|
104504
|
-
|
|
104509
|
+
Xn as USDZExporter,
|
|
104505
104510
|
Vd as USDZText,
|
|
104506
104511
|
o2 as USDZUIExtension,
|
|
104507
104512
|
uU as Upload_Result,
|
|
@@ -104525,7 +104530,7 @@ export {
|
|
|
104525
104530
|
Cle as WaitForSeconds,
|
|
104526
104531
|
Au as Watch,
|
|
104527
104532
|
P2 as WebARCameraBackground,
|
|
104528
|
-
|
|
104533
|
+
Fo as WebARSessionRoot,
|
|
104529
104534
|
ZS as WebXR,
|
|
104530
104535
|
uf as WebXRButtonFactory,
|
|
104531
104536
|
L0 as WebXRImageTracking,
|