@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
package/dist/needle-engine.js
CHANGED
|
@@ -27,7 +27,7 @@ function Cj() {
|
|
|
27
27
|
* Copyright 2010-2023 Three.js Authors
|
|
28
28
|
* SPDX-License-Identifier: MIT
|
|
29
29
|
*/
|
|
30
|
-
const Or = "162", HB = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, YB = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, LY = 0, eU = 1, _Y = 2, aj = 3, rj = 0, SN = 1, mN = 2, Tn = 3,
|
|
30
|
+
const Or = "162", HB = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, YB = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, LY = 0, eU = 1, _Y = 2, aj = 3, rj = 0, SN = 1, mN = 2, Tn = 3, pg = 0, yi = 1, pt = 2, Qi = 0, br = 1, FQ = 2, tU = 3, iU = 4, kN = 5, Dr = 100, TY = 101, HY = 102, gU = 103, Ly = 104, YY = 200, OY = 201, PY = 202, WY = 203, _y = 204, Ty = 205, jY = 206, ZY = 207, zY = 208, VY = 209, XY = 210, $Y = 211, A2 = 212, e2 = 213, t2 = 214, GN = 0, i0 = 1, Nu = 2, NQ = 3, Ih = 4, g0 = 5, I0 = 6, kp = 7, Gp = 0, i2 = 1, g2 = 2, Eo = 0, oh = 1, I2 = 2, o2 = 3, o0 = 4, s2 = 5, MN = 6, s0 = 7, IU = "attached", n2 = "detached", n0 = 300, da = 301, Pr = 302, ms = 303, sh = 304, bh = 306, Gs = 1e3, Kg = 1001, bQ = 1002, _e = 1003, nh = 1004, Bj = 1004, XC = 1005, Qj = 1005, Re = 1006, QQ = 1007, Ej = 1007, ZI = 1008, cj = 1008, ut = 1009, C2 = 1010, a2 = 1011, C0 = 1012, RN = 1013, tn = 1014, ti = 1015, Si = 1016, UN = 1017, FN = 1018, Ba = 1020, r2 = 1021, mt = 1023, a0 = 1024, B2 = 1025, Kr = 1026, Wr = 1027, gn = 1028, NN = 1029, mr = 1030, bN = 1031, KN = 1033, Zd = 33776, iy = 33777, gy = 33778, zd = 33779, Hy = 35840, oU = 35841, Yy = 35842, sU = 35843, r0 = 36196, Oy = 37492, Py = 37496, Wy = 37808, nU = 37809, CU = 37810, aU = 37811, bu = 37812, rU = 37813, BU = 37814, QU = 37815, EU = 37816, cU = 37817, hU = 37818, lU = 37819, dU = 37820, uU = 37821, Vd = 36492, pU = 36494, fU = 36495, Q2 = 36283, DU = 36284, wU = 36285, yU = 36286, Ku = 2200, JN = 2201, E2 = 2202, jr = 2300, CC = 2301, Iy = 2302, tQ = 2400, iQ = 2401, Ju = 2402, B0 = 2500, xN = 2501, c2 = 0, vN = 1, jy = 2, h2 = 3e3, SU = 3001, oI = 3200, Q0 = 3201, AB = 0, l2 = 1, yI = "", ue = "srgb", kt = "srgb-linear", Mp = "display-p3", Kh = "display-p3-linear", xu = "linear", jt = "srgb", vu = "rec709", qu = "p3", d2 = 0, lr = 7680, u2 = 7681, p2 = 7682, f2 = 7683, D2 = 34055, w2 = 34056, y2 = 5386, mU = 512, S2 = 513, m2 = 514, k2 = 515, G2 = 516, M2 = 517, R2 = 518, Zy = 519, U2 = 512, F2 = 513, N2 = 514, qN = 515, b2 = 516, K2 = 517, J2 = 518, x2 = 519, Lu = 35044, fI = 35048, hj = 35040, lj = 35045, dj = 35049, uj = 35041, pj = 35046, fj = 35050, Dj = 35042, wj = "100", zy = "300 es", Vy = 1035, $n = 2e3, _u = 2001;
|
|
31
31
|
let qg = class {
|
|
32
32
|
addEventListener(A, e) {
|
|
33
33
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -65,7 +65,7 @@ let qg = class {
|
|
|
65
65
|
const BI = ["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 Hx = 1234567;
|
|
67
67
|
const EQ = Math.PI / 180, Ch = 180 / Math.PI;
|
|
68
|
-
function
|
|
68
|
+
function Ho() {
|
|
69
69
|
const g = Math.random() * 4294967295 | 0, A = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0;
|
|
70
70
|
return (BI[g & 255] + BI[g >> 8 & 255] + BI[g >> 16 & 255] + BI[g >> 24 & 255] + "-" + BI[A & 255] + BI[A >> 8 & 255] + "-" + BI[A >> 16 & 15 | 64] + BI[A >> 24 & 255] + "-" + BI[e & 63 | 128] + BI[e >> 8 & 255] + "-" + BI[e >> 16 & 255] + BI[e >> 24 & 255] + BI[t & 255] + BI[t >> 8 & 255] + BI[t >> 16 & 255] + BI[t >> 24 & 255]).toLowerCase();
|
|
71
71
|
}
|
|
@@ -190,10 +190,10 @@ function ze(g, A) {
|
|
|
190
190
|
throw new Error("Invalid component type.");
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
const
|
|
193
|
+
const dg = {
|
|
194
194
|
DEG2RAD: EQ,
|
|
195
195
|
RAD2DEG: Ch,
|
|
196
|
-
generateUUID:
|
|
196
|
+
generateUUID: Ho,
|
|
197
197
|
clamp: vi,
|
|
198
198
|
euclideanModulo: LN,
|
|
199
199
|
mapLinear: yj,
|
|
@@ -746,7 +746,7 @@ let pE, _N = class {
|
|
|
746
746
|
}
|
|
747
747
|
}, Lj = 0, oa = class {
|
|
748
748
|
constructor(A = null) {
|
|
749
|
-
this.isSource = !0, Object.defineProperty(this, "id", { value: Lj++ }), this.uuid =
|
|
749
|
+
this.isSource = !0, Object.defineProperty(this, "id", { value: Lj++ }), this.uuid = Ho(), this.data = A, this.dataReady = !0, this.version = 0;
|
|
750
750
|
}
|
|
751
751
|
set needsUpdate(A) {
|
|
752
752
|
A === !0 && this.version++;
|
|
@@ -782,7 +782,7 @@ function Tk(g) {
|
|
|
782
782
|
}
|
|
783
783
|
let _j = 0, je = class oy extends qg {
|
|
784
784
|
constructor(A = oy.DEFAULT_IMAGE, e = oy.DEFAULT_MAPPING, t = Kg, i = Kg, I = Re, o = ZI, s = mt, n = ut, C = oy.DEFAULT_ANISOTROPY, a = yI) {
|
|
785
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: _j++ }), this.uuid =
|
|
785
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: _j++ }), this.uuid = Ho(), this.name = "", this.source = new oa(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = I, this.minFilter = o, this.anisotropy = C, this.format = s, this.internalFormat = null, this.type = n, this.offset = new iA(0, 0), this.repeat = new iA(1, 1), this.center = new iA(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new qe(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = a, 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 mI = class {
|
|
|
2508
2508
|
const zx = /* @__PURE__ */ new y(), SE = /* @__PURE__ */ new RA(), SC = /* @__PURE__ */ new GA(), xf = /* @__PURE__ */ new y(), Ml = /* @__PURE__ */ new y(), jj = /* @__PURE__ */ new y(), Zj = /* @__PURE__ */ new RA(), Vx = /* @__PURE__ */ new y(1, 0, 0), Xx = /* @__PURE__ */ new y(0, 1, 0), $x = /* @__PURE__ */ new y(0, 0, 1), zj = { type: "added" }, Vj = { type: "removed" }, Zk = { type: "childadded", child: null }, zk = { type: "childremoved", child: null };
|
|
2509
2509
|
let fA = class sy extends qg {
|
|
2510
2510
|
constructor() {
|
|
2511
|
-
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Wj++ }), this.uuid =
|
|
2511
|
+
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Wj++ }), this.uuid = Ho(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = sy.DEFAULT_UP.clone();
|
|
2512
2512
|
const A = new y(), e = new Ei(), t = new RA(), i = new y(1, 1, 1);
|
|
2513
2513
|
function I() {
|
|
2514
2514
|
t.setFromEuler(e, !1);
|
|
@@ -3274,7 +3274,7 @@ const QI = /* @__PURE__ */ new kA();
|
|
|
3274
3274
|
kA.NAMES = W2;
|
|
3275
3275
|
let Xj = 0, Le = class extends qg {
|
|
3276
3276
|
constructor() {
|
|
3277
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Xj++ }), this.uuid =
|
|
3277
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: Xj++ }), this.uuid = Ho(), this.name = "", this.type = "Material", this.blending = br, this.side = pg, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = _y, this.blendDst = Ty, this.blendEquation = Dr, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new kA(0, 0, 0), this.blendAlpha = 0, this.depthFunc = NQ, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Zy, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = lr, this.stencilZFail = lr, this.stencilZPass = lr, 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 Xj = 0, Le = class extends qg {
|
|
|
3320
3320
|
generator: "Material.toJSON"
|
|
3321
3321
|
}
|
|
3322
3322
|
};
|
|
3323
|
-
t.uuid = this.uuid, t.type = this.type, this.name !== "" && (t.name = this.name), this.color && this.color.isColor && (t.color = this.color.getHex()), this.roughness !== void 0 && (t.roughness = this.roughness), this.metalness !== void 0 && (t.metalness = this.metalness), this.sheen !== void 0 && (t.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (t.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (t.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (t.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (t.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (t.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (t.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (t.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (t.shininess = this.shininess), this.clearcoat !== void 0 && (t.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (t.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (t.clearcoatMap = this.clearcoatMap.toJSON(A).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (t.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(A).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (t.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(A).uuid, t.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (t.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (t.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (t.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (t.iridescenceMap = this.iridescenceMap.toJSON(A).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (t.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(A).uuid), this.anisotropy !== void 0 && (t.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (t.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (t.anisotropyMap = this.anisotropyMap.toJSON(A).uuid), this.map && this.map.isTexture && (t.map = this.map.toJSON(A).uuid), this.matcap && this.matcap.isTexture && (t.matcap = this.matcap.toJSON(A).uuid), this.alphaMap && this.alphaMap.isTexture && (t.alphaMap = this.alphaMap.toJSON(A).uuid), this.lightMap && this.lightMap.isTexture && (t.lightMap = this.lightMap.toJSON(A).uuid, t.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (t.aoMap = this.aoMap.toJSON(A).uuid, t.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (t.bumpMap = this.bumpMap.toJSON(A).uuid, t.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (t.normalMap = this.normalMap.toJSON(A).uuid, t.normalMapType = this.normalMapType, t.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (t.displacementMap = this.displacementMap.toJSON(A).uuid, t.displacementScale = this.displacementScale, t.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (t.roughnessMap = this.roughnessMap.toJSON(A).uuid), this.metalnessMap && this.metalnessMap.isTexture && (t.metalnessMap = this.metalnessMap.toJSON(A).uuid), this.emissiveMap && this.emissiveMap.isTexture && (t.emissiveMap = this.emissiveMap.toJSON(A).uuid), this.specularMap && this.specularMap.isTexture && (t.specularMap = this.specularMap.toJSON(A).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (t.specularIntensityMap = this.specularIntensityMap.toJSON(A).uuid), this.specularColorMap && this.specularColorMap.isTexture && (t.specularColorMap = this.specularColorMap.toJSON(A).uuid), this.envMap && this.envMap.isTexture && (t.envMap = this.envMap.toJSON(A).uuid, this.combine !== void 0 && (t.combine = this.combine)), this.envMapRotation !== void 0 && (t.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (t.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (t.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (t.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (t.gradientMap = this.gradientMap.toJSON(A).uuid), this.transmission !== void 0 && (t.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (t.transmissionMap = this.transmissionMap.toJSON(A).uuid), this.thickness !== void 0 && (t.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (t.thicknessMap = this.thicknessMap.toJSON(A).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (t.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (t.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (t.size = this.size), this.shadowSide !== null && (t.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (t.sizeAttenuation = this.sizeAttenuation), this.blending !== br && (t.blending = this.blending), this.side !==
|
|
3323
|
+
t.uuid = this.uuid, t.type = this.type, this.name !== "" && (t.name = this.name), this.color && this.color.isColor && (t.color = this.color.getHex()), this.roughness !== void 0 && (t.roughness = this.roughness), this.metalness !== void 0 && (t.metalness = this.metalness), this.sheen !== void 0 && (t.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (t.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (t.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (t.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (t.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (t.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (t.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (t.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (t.shininess = this.shininess), this.clearcoat !== void 0 && (t.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (t.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (t.clearcoatMap = this.clearcoatMap.toJSON(A).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (t.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(A).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (t.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(A).uuid, t.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (t.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (t.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (t.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (t.iridescenceMap = this.iridescenceMap.toJSON(A).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (t.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(A).uuid), this.anisotropy !== void 0 && (t.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (t.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (t.anisotropyMap = this.anisotropyMap.toJSON(A).uuid), this.map && this.map.isTexture && (t.map = this.map.toJSON(A).uuid), this.matcap && this.matcap.isTexture && (t.matcap = this.matcap.toJSON(A).uuid), this.alphaMap && this.alphaMap.isTexture && (t.alphaMap = this.alphaMap.toJSON(A).uuid), this.lightMap && this.lightMap.isTexture && (t.lightMap = this.lightMap.toJSON(A).uuid, t.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (t.aoMap = this.aoMap.toJSON(A).uuid, t.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (t.bumpMap = this.bumpMap.toJSON(A).uuid, t.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (t.normalMap = this.normalMap.toJSON(A).uuid, t.normalMapType = this.normalMapType, t.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (t.displacementMap = this.displacementMap.toJSON(A).uuid, t.displacementScale = this.displacementScale, t.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (t.roughnessMap = this.roughnessMap.toJSON(A).uuid), this.metalnessMap && this.metalnessMap.isTexture && (t.metalnessMap = this.metalnessMap.toJSON(A).uuid), this.emissiveMap && this.emissiveMap.isTexture && (t.emissiveMap = this.emissiveMap.toJSON(A).uuid), this.specularMap && this.specularMap.isTexture && (t.specularMap = this.specularMap.toJSON(A).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (t.specularIntensityMap = this.specularIntensityMap.toJSON(A).uuid), this.specularColorMap && this.specularColorMap.isTexture && (t.specularColorMap = this.specularColorMap.toJSON(A).uuid), this.envMap && this.envMap.isTexture && (t.envMap = this.envMap.toJSON(A).uuid, this.combine !== void 0 && (t.combine = this.combine)), this.envMapRotation !== void 0 && (t.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (t.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (t.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (t.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (t.gradientMap = this.gradientMap.toJSON(A).uuid), this.transmission !== void 0 && (t.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (t.transmissionMap = this.transmissionMap.toJSON(A).uuid), this.thickness !== void 0 && (t.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (t.thicknessMap = this.thicknessMap.toJSON(A).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (t.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (t.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (t.size = this.size), this.shadowSide !== null && (t.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (t.sizeAttenuation = this.sizeAttenuation), this.blending !== br && (t.blending = this.blending), this.side !== pg && (t.side = this.side), this.vertexColors === !0 && (t.vertexColors = !0), this.opacity < 1 && (t.opacity = this.opacity), this.transparent === !0 && (t.transparent = !0), this.blendSrc !== _y && (t.blendSrc = this.blendSrc), this.blendDst !== Ty && (t.blendDst = this.blendDst), this.blendEquation !== Dr && (t.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (t.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (t.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (t.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (t.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (t.blendAlpha = this.blendAlpha), this.depthFunc !== NQ && (t.depthFunc = this.depthFunc), this.depthTest === !1 && (t.depthTest = this.depthTest), this.depthWrite === !1 && (t.depthWrite = this.depthWrite), this.colorWrite === !1 && (t.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (t.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Zy && (t.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (t.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (t.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== lr && (t.stencilFail = this.stencilFail), this.stencilZFail !== lr && (t.stencilZFail = this.stencilZFail), this.stencilZPass !== lr && (t.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (t.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (t.rotation = this.rotation), this.polygonOffset === !0 && (t.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (t.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (t.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (t.linewidth = this.linewidth), this.dashSize !== void 0 && (t.dashSize = this.dashSize), this.gapSize !== void 0 && (t.gapSize = this.gapSize), this.scale !== void 0 && (t.scale = this.scale), this.dithering === !0 && (t.dithering = !0), this.alphaTest > 0 && (t.alphaTest = this.alphaTest), this.alphaHash === !0 && (t.alphaHash = !0), this.alphaToCoverage === !0 && (t.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (t.premultipliedAlpha = !0), this.forceSinglePass === !0 && (t.forceSinglePass = !0), this.wireframe === !0 && (t.wireframe = !0), this.wireframeLinewidth > 1 && (t.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (t.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (t.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (t.flatShading = !0), this.visible === !1 && (t.visible = !1), this.toneMapped === !1 && (t.toneMapped = !1), this.fog === !1 && (t.fog = !1), Object.keys(this.userData).length > 0 && (t.userData = this.userData);
|
|
3324
3324
|
function i(I) {
|
|
3325
3325
|
const o = [];
|
|
3326
3326
|
for (const s in I) {
|
|
@@ -3615,10 +3615,10 @@ let ce = class extends ie {
|
|
|
3615
3615
|
super(new Float32Array(A), e, t);
|
|
3616
3616
|
}
|
|
3617
3617
|
}, oZ = 0;
|
|
3618
|
-
const
|
|
3618
|
+
const ts = /* @__PURE__ */ new GA(), tG = /* @__PURE__ */ new fA(), GE = /* @__PURE__ */ new y(), ko = /* @__PURE__ */ new Ft(), Rl = /* @__PURE__ */ new Ft(), Sg = /* @__PURE__ */ new y();
|
|
3619
3619
|
let Me = class j2 extends qg {
|
|
3620
3620
|
constructor() {
|
|
3621
|
-
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: oZ++ }), this.uuid =
|
|
3621
|
+
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: oZ++ }), this.uuid = Ho(), 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 Me = class j2 extends qg {
|
|
|
3663
3663
|
return i !== void 0 && (i.transformDirection(A), i.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
3664
3664
|
}
|
|
3665
3665
|
applyQuaternion(A) {
|
|
3666
|
-
return
|
|
3666
|
+
return ts.makeRotationFromQuaternion(A), this.applyMatrix4(ts), this;
|
|
3667
3667
|
}
|
|
3668
3668
|
rotateX(A) {
|
|
3669
|
-
return
|
|
3669
|
+
return ts.makeRotationX(A), this.applyMatrix4(ts), this;
|
|
3670
3670
|
}
|
|
3671
3671
|
rotateY(A) {
|
|
3672
|
-
return
|
|
3672
|
+
return ts.makeRotationY(A), this.applyMatrix4(ts), this;
|
|
3673
3673
|
}
|
|
3674
3674
|
rotateZ(A) {
|
|
3675
|
-
return
|
|
3675
|
+
return ts.makeRotationZ(A), this.applyMatrix4(ts), this;
|
|
3676
3676
|
}
|
|
3677
3677
|
translate(A, e, t) {
|
|
3678
|
-
return
|
|
3678
|
+
return ts.makeTranslation(A, e, t), this.applyMatrix4(ts), this;
|
|
3679
3679
|
}
|
|
3680
3680
|
scale(A, e, t) {
|
|
3681
|
-
return
|
|
3681
|
+
return ts.makeScale(A, e, t), this.applyMatrix4(ts), this;
|
|
3682
3682
|
}
|
|
3683
3683
|
lookAt(A) {
|
|
3684
3684
|
return tG.lookAt(A), tG.updateMatrix(), this.applyMatrix4(tG.matrix), this;
|
|
@@ -4005,7 +4005,7 @@ let uA = class extends fA {
|
|
|
4005
4005
|
};
|
|
4006
4006
|
function sZ(g, A, e, t, i, I, o, s) {
|
|
4007
4007
|
let n;
|
|
4008
|
-
if (A.side === yi ? n = t.intersectTriangle(o, I, i, !0, s) : n = t.intersectTriangle(i, I, o, A.side ===
|
|
4008
|
+
if (A.side === yi ? n = t.intersectTriangle(o, I, i, !0, s) : n = t.intersectTriangle(i, I, o, A.side === pg, s), n === null)
|
|
4009
4009
|
return null;
|
|
4010
4010
|
Pf.copy(s), Pf.applyMatrix4(g.matrixWorld);
|
|
4011
4011
|
const C = e.ray.origin.distanceTo(Pf);
|
|
@@ -4689,7 +4689,7 @@ function QZ(g, A) {
|
|
|
4689
4689
|
update: n
|
|
4690
4690
|
};
|
|
4691
4691
|
}
|
|
4692
|
-
class
|
|
4692
|
+
class sg extends Me {
|
|
4693
4693
|
constructor(A = 1, e = 1, t = 1, i = 1) {
|
|
4694
4694
|
super(), this.type = "PlaneGeometry", this.parameters = {
|
|
4695
4695
|
width: A,
|
|
@@ -4716,7 +4716,7 @@ class og extends Me {
|
|
|
4716
4716
|
return super.copy(A), this.parameters = Object.assign({}, A.parameters), this;
|
|
4717
4717
|
}
|
|
4718
4718
|
static fromJSON(A) {
|
|
4719
|
-
return new
|
|
4719
|
+
return new sg(A.width, A.height, A.widthSegments, A.heightSegments);
|
|
4720
4720
|
}
|
|
4721
4721
|
}
|
|
4722
4722
|
var EZ = `#ifdef USE_ALPHAHASH
|
|
@@ -8840,13 +8840,13 @@ function ZV(g, A, e, t, i, I, o) {
|
|
|
8840
8840
|
return this.uniforms.envMap.value;
|
|
8841
8841
|
}
|
|
8842
8842
|
}), i.update(a)), pB.copy(l.backgroundRotation), pB.x *= -1, pB.y *= -1, pB.z *= -1, u.isCubeTexture && u.isRenderTargetTexture === !1 && (pB.y *= -1, pB.z *= -1), a.material.uniforms.envMap.value = u, a.material.uniforms.flipEnvMap.value = u.isCubeTexture && u.isRenderTargetTexture === !1 ? -1 : 1, a.material.uniforms.backgroundBlurriness.value = l.backgroundBlurriness, a.material.uniforms.backgroundIntensity.value = l.backgroundIntensity, a.material.uniforms.backgroundRotation.value.setFromMatrix4(jV.makeRotationFromEuler(pB)), a.material.toneMapped = St.getTransfer(u.colorSpace) !== jt, (r !== u || Q !== u.version || E !== g.toneMapping) && (a.material.needsUpdate = !0, r = u, Q = u.version, E = g.toneMapping), a.layers.enableAll(), h.unshift(a, a.geometry, a.material, 0, 0, null)) : u && u.isTexture && (C === void 0 && (C = new uA(
|
|
8843
|
-
new
|
|
8843
|
+
new sg(2, 2),
|
|
8844
8844
|
new be({
|
|
8845
8845
|
name: "BackgroundMaterial",
|
|
8846
8846
|
uniforms: ah(tI.background.uniforms),
|
|
8847
8847
|
vertexShader: tI.background.vertexShader,
|
|
8848
8848
|
fragmentShader: tI.background.fragmentShader,
|
|
8849
|
-
side:
|
|
8849
|
+
side: pg,
|
|
8850
8850
|
depthTest: !1,
|
|
8851
8851
|
depthWrite: !1,
|
|
8852
8852
|
fog: !1
|
|
@@ -10136,7 +10136,7 @@ function vh(g, A, e) {
|
|
|
10136
10136
|
}
|
|
10137
10137
|
return I;
|
|
10138
10138
|
}
|
|
10139
|
-
function
|
|
10139
|
+
function fg(g, A) {
|
|
10140
10140
|
if (g.length !== A.length)
|
|
10141
10141
|
return !1;
|
|
10142
10142
|
for (let e = 0, t = g.length; e < t; e++)
|
|
@@ -10144,7 +10144,7 @@ function pg(g, A) {
|
|
|
10144
10144
|
return !1;
|
|
10145
10145
|
return !0;
|
|
10146
10146
|
}
|
|
10147
|
-
function
|
|
10147
|
+
function Dg(g, A) {
|
|
10148
10148
|
for (let e = 0, t = A.length; e < t; e++)
|
|
10149
10149
|
g[e] = A[e];
|
|
10150
10150
|
}
|
|
@@ -10164,9 +10164,9 @@ function B5(g, A) {
|
|
|
10164
10164
|
if (A.x !== void 0)
|
|
10165
10165
|
(e[0] !== A.x || e[1] !== A.y) && (g.uniform2f(this.addr, A.x, A.y), e[0] = A.x, e[1] = A.y);
|
|
10166
10166
|
else {
|
|
10167
|
-
if (
|
|
10167
|
+
if (fg(e, A))
|
|
10168
10168
|
return;
|
|
10169
|
-
g.uniform2fv(this.addr, A),
|
|
10169
|
+
g.uniform2fv(this.addr, A), Dg(e, A);
|
|
10170
10170
|
}
|
|
10171
10171
|
}
|
|
10172
10172
|
function Q5(g, A) {
|
|
@@ -10176,9 +10176,9 @@ function Q5(g, A) {
|
|
|
10176
10176
|
else if (A.r !== void 0)
|
|
10177
10177
|
(e[0] !== A.r || e[1] !== A.g || e[2] !== A.b) && (g.uniform3f(this.addr, A.r, A.g, A.b), e[0] = A.r, e[1] = A.g, e[2] = A.b);
|
|
10178
10178
|
else {
|
|
10179
|
-
if (
|
|
10179
|
+
if (fg(e, A))
|
|
10180
10180
|
return;
|
|
10181
|
-
g.uniform3fv(this.addr, A),
|
|
10181
|
+
g.uniform3fv(this.addr, A), Dg(e, A);
|
|
10182
10182
|
}
|
|
10183
10183
|
}
|
|
10184
10184
|
function E5(g, A) {
|
|
@@ -10186,45 +10186,45 @@ function E5(g, A) {
|
|
|
10186
10186
|
if (A.x !== void 0)
|
|
10187
10187
|
(e[0] !== A.x || e[1] !== A.y || e[2] !== A.z || e[3] !== A.w) && (g.uniform4f(this.addr, A.x, A.y, A.z, A.w), e[0] = A.x, e[1] = A.y, e[2] = A.z, e[3] = A.w);
|
|
10188
10188
|
else {
|
|
10189
|
-
if (
|
|
10189
|
+
if (fg(e, A))
|
|
10190
10190
|
return;
|
|
10191
|
-
g.uniform4fv(this.addr, A),
|
|
10191
|
+
g.uniform4fv(this.addr, A), Dg(e, A);
|
|
10192
10192
|
}
|
|
10193
10193
|
}
|
|
10194
10194
|
function c5(g, A) {
|
|
10195
10195
|
const e = this.cache, t = A.elements;
|
|
10196
10196
|
if (t === void 0) {
|
|
10197
|
-
if (
|
|
10197
|
+
if (fg(e, A))
|
|
10198
10198
|
return;
|
|
10199
|
-
g.uniformMatrix2fv(this.addr, !1, A),
|
|
10199
|
+
g.uniformMatrix2fv(this.addr, !1, A), Dg(e, A);
|
|
10200
10200
|
} else {
|
|
10201
|
-
if (
|
|
10201
|
+
if (fg(e, t))
|
|
10202
10202
|
return;
|
|
10203
|
-
uv.set(t), g.uniformMatrix2fv(this.addr, !1, uv),
|
|
10203
|
+
uv.set(t), g.uniformMatrix2fv(this.addr, !1, uv), Dg(e, t);
|
|
10204
10204
|
}
|
|
10205
10205
|
}
|
|
10206
10206
|
function h5(g, A) {
|
|
10207
10207
|
const e = this.cache, t = A.elements;
|
|
10208
10208
|
if (t === void 0) {
|
|
10209
|
-
if (
|
|
10209
|
+
if (fg(e, A))
|
|
10210
10210
|
return;
|
|
10211
|
-
g.uniformMatrix3fv(this.addr, !1, A),
|
|
10211
|
+
g.uniformMatrix3fv(this.addr, !1, A), Dg(e, A);
|
|
10212
10212
|
} else {
|
|
10213
|
-
if (
|
|
10213
|
+
if (fg(e, t))
|
|
10214
10214
|
return;
|
|
10215
|
-
dv.set(t), g.uniformMatrix3fv(this.addr, !1, dv),
|
|
10215
|
+
dv.set(t), g.uniformMatrix3fv(this.addr, !1, dv), Dg(e, t);
|
|
10216
10216
|
}
|
|
10217
10217
|
}
|
|
10218
10218
|
function l5(g, A) {
|
|
10219
10219
|
const e = this.cache, t = A.elements;
|
|
10220
10220
|
if (t === void 0) {
|
|
10221
|
-
if (
|
|
10221
|
+
if (fg(e, A))
|
|
10222
10222
|
return;
|
|
10223
|
-
g.uniformMatrix4fv(this.addr, !1, A),
|
|
10223
|
+
g.uniformMatrix4fv(this.addr, !1, A), Dg(e, A);
|
|
10224
10224
|
} else {
|
|
10225
|
-
if (
|
|
10225
|
+
if (fg(e, t))
|
|
10226
10226
|
return;
|
|
10227
|
-
lv.set(t), g.uniformMatrix4fv(this.addr, !1, lv),
|
|
10227
|
+
lv.set(t), g.uniformMatrix4fv(this.addr, !1, lv), Dg(e, t);
|
|
10228
10228
|
}
|
|
10229
10229
|
}
|
|
10230
10230
|
function d5(g, A) {
|
|
@@ -10236,9 +10236,9 @@ function u5(g, A) {
|
|
|
10236
10236
|
if (A.x !== void 0)
|
|
10237
10237
|
(e[0] !== A.x || e[1] !== A.y) && (g.uniform2i(this.addr, A.x, A.y), e[0] = A.x, e[1] = A.y);
|
|
10238
10238
|
else {
|
|
10239
|
-
if (
|
|
10239
|
+
if (fg(e, A))
|
|
10240
10240
|
return;
|
|
10241
|
-
g.uniform2iv(this.addr, A),
|
|
10241
|
+
g.uniform2iv(this.addr, A), Dg(e, A);
|
|
10242
10242
|
}
|
|
10243
10243
|
}
|
|
10244
10244
|
function p5(g, A) {
|
|
@@ -10246,9 +10246,9 @@ function p5(g, A) {
|
|
|
10246
10246
|
if (A.x !== void 0)
|
|
10247
10247
|
(e[0] !== A.x || e[1] !== A.y || e[2] !== A.z) && (g.uniform3i(this.addr, A.x, A.y, A.z), e[0] = A.x, e[1] = A.y, e[2] = A.z);
|
|
10248
10248
|
else {
|
|
10249
|
-
if (
|
|
10249
|
+
if (fg(e, A))
|
|
10250
10250
|
return;
|
|
10251
|
-
g.uniform3iv(this.addr, A),
|
|
10251
|
+
g.uniform3iv(this.addr, A), Dg(e, A);
|
|
10252
10252
|
}
|
|
10253
10253
|
}
|
|
10254
10254
|
function f5(g, A) {
|
|
@@ -10256,9 +10256,9 @@ function f5(g, A) {
|
|
|
10256
10256
|
if (A.x !== void 0)
|
|
10257
10257
|
(e[0] !== A.x || e[1] !== A.y || e[2] !== A.z || e[3] !== A.w) && (g.uniform4i(this.addr, A.x, A.y, A.z, A.w), e[0] = A.x, e[1] = A.y, e[2] = A.z, e[3] = A.w);
|
|
10258
10258
|
else {
|
|
10259
|
-
if (
|
|
10259
|
+
if (fg(e, A))
|
|
10260
10260
|
return;
|
|
10261
|
-
g.uniform4iv(this.addr, A),
|
|
10261
|
+
g.uniform4iv(this.addr, A), Dg(e, A);
|
|
10262
10262
|
}
|
|
10263
10263
|
}
|
|
10264
10264
|
function D5(g, A) {
|
|
@@ -10270,9 +10270,9 @@ function w5(g, A) {
|
|
|
10270
10270
|
if (A.x !== void 0)
|
|
10271
10271
|
(e[0] !== A.x || e[1] !== A.y) && (g.uniform2ui(this.addr, A.x, A.y), e[0] = A.x, e[1] = A.y);
|
|
10272
10272
|
else {
|
|
10273
|
-
if (
|
|
10273
|
+
if (fg(e, A))
|
|
10274
10274
|
return;
|
|
10275
|
-
g.uniform2uiv(this.addr, A),
|
|
10275
|
+
g.uniform2uiv(this.addr, A), Dg(e, A);
|
|
10276
10276
|
}
|
|
10277
10277
|
}
|
|
10278
10278
|
function y5(g, A) {
|
|
@@ -10280,9 +10280,9 @@ function y5(g, A) {
|
|
|
10280
10280
|
if (A.x !== void 0)
|
|
10281
10281
|
(e[0] !== A.x || e[1] !== A.y || e[2] !== A.z) && (g.uniform3ui(this.addr, A.x, A.y, A.z), e[0] = A.x, e[1] = A.y, e[2] = A.z);
|
|
10282
10282
|
else {
|
|
10283
|
-
if (
|
|
10283
|
+
if (fg(e, A))
|
|
10284
10284
|
return;
|
|
10285
|
-
g.uniform3uiv(this.addr, A),
|
|
10285
|
+
g.uniform3uiv(this.addr, A), Dg(e, A);
|
|
10286
10286
|
}
|
|
10287
10287
|
}
|
|
10288
10288
|
function S5(g, A) {
|
|
@@ -10290,9 +10290,9 @@ function S5(g, A) {
|
|
|
10290
10290
|
if (A.x !== void 0)
|
|
10291
10291
|
(e[0] !== A.x || e[1] !== A.y || e[2] !== A.z || e[3] !== A.w) && (g.uniform4ui(this.addr, A.x, A.y, A.z, A.w), e[0] = A.x, e[1] = A.y, e[2] = A.z, e[3] = A.w);
|
|
10292
10292
|
else {
|
|
10293
|
-
if (
|
|
10293
|
+
if (fg(e, A))
|
|
10294
10294
|
return;
|
|
10295
|
-
g.uniform4uiv(this.addr, A),
|
|
10295
|
+
g.uniform4uiv(this.addr, A), Dg(e, A);
|
|
10296
10296
|
}
|
|
10297
10297
|
}
|
|
10298
10298
|
function m5(g, A, e) {
|
|
@@ -10424,25 +10424,25 @@ function O5(g, A) {
|
|
|
10424
10424
|
}
|
|
10425
10425
|
function P5(g, A, e) {
|
|
10426
10426
|
const t = this.cache, i = A.length, I = h0(e, i);
|
|
10427
|
-
|
|
10427
|
+
fg(t, I) || (g.uniform1iv(this.addr, I), Dg(t, I));
|
|
10428
10428
|
for (let o = 0; o !== i; ++o)
|
|
10429
10429
|
e.setTexture2D(A[o] || V2, I[o]);
|
|
10430
10430
|
}
|
|
10431
10431
|
function W5(g, A, e) {
|
|
10432
10432
|
const t = this.cache, i = A.length, I = h0(e, i);
|
|
10433
|
-
|
|
10433
|
+
fg(t, I) || (g.uniform1iv(this.addr, I), Dg(t, I));
|
|
10434
10434
|
for (let o = 0; o !== i; ++o)
|
|
10435
10435
|
e.setTexture3D(A[o] || AO, I[o]);
|
|
10436
10436
|
}
|
|
10437
10437
|
function j5(g, A, e) {
|
|
10438
10438
|
const t = this.cache, i = A.length, I = h0(e, i);
|
|
10439
|
-
|
|
10439
|
+
fg(t, I) || (g.uniform1iv(this.addr, I), Dg(t, I));
|
|
10440
10440
|
for (let o = 0; o !== i; ++o)
|
|
10441
10441
|
e.setTextureCube(A[o] || eO, I[o]);
|
|
10442
10442
|
}
|
|
10443
10443
|
function Z5(g, A, e) {
|
|
10444
10444
|
const t = this.cache, i = A.length, I = h0(e, i);
|
|
10445
|
-
|
|
10445
|
+
fg(t, I) || (g.uniform1iv(this.addr, I), Dg(t, I));
|
|
10446
10446
|
for (let o = 0; o !== i; ++o)
|
|
10447
10447
|
e.setTexture2DArray(A[o] || $2, I[o]);
|
|
10448
10448
|
}
|
|
@@ -11820,7 +11820,7 @@ void main() {
|
|
|
11820
11820
|
}`;
|
|
11821
11821
|
function x9(g, A, e) {
|
|
11822
11822
|
let t = new KQ();
|
|
11823
|
-
const i = new iA(), I = new iA(), o = new te(), s = new Fp({ depthPacking: Q0 }), n = new WN(), C = {}, a = e.maxTextureSize, r = { [
|
|
11823
|
+
const i = new iA(), I = new iA(), o = new te(), s = new Fp({ depthPacking: Q0 }), n = new WN(), C = {}, a = e.maxTextureSize, r = { [pg]: yi, [yi]: pg, [pt]: pt }, Q = new be({
|
|
11824
11824
|
defines: {
|
|
11825
11825
|
VSM_SAMPLES: 8
|
|
11826
11826
|
},
|
|
@@ -13118,7 +13118,7 @@ class H9 {
|
|
|
13118
13118
|
depthHeight: { value: t.w }
|
|
13119
13119
|
}
|
|
13120
13120
|
});
|
|
13121
|
-
this.mesh = new uA(new
|
|
13121
|
+
this.mesh = new uA(new sg(20, 20), i);
|
|
13122
13122
|
}
|
|
13123
13123
|
A.render(this.mesh, e);
|
|
13124
13124
|
}
|
|
@@ -13716,7 +13716,7 @@ class Ma {
|
|
|
13716
13716
|
Pe.render(Ae, ye);
|
|
13717
13717
|
};
|
|
13718
13718
|
function et(U, T, O) {
|
|
13719
|
-
U.transparent === !0 && U.side === pt && U.forceSinglePass === !1 ? (U.side = yi, U.needsUpdate = !0, $e(U, T, O), U.side =
|
|
13719
|
+
U.transparent === !0 && U.side === pt && U.forceSinglePass === !1 ? (U.side = yi, U.needsUpdate = !0, $e(U, T, O), U.side = pg, U.needsUpdate = !0, $e(U, T, O), U.side = pt) : $e(U, T, O);
|
|
13720
13720
|
}
|
|
13721
13721
|
this.compile = function(U, T, O = null) {
|
|
13722
13722
|
O === null && (O = U), h = ae.get(O), h.init(), p.push(h), O.traverseVisible(function(V) {
|
|
@@ -13851,7 +13851,7 @@ class Ma {
|
|
|
13851
13851
|
}
|
|
13852
13852
|
}
|
|
13853
13853
|
function La(U, T, O, z, V, lA) {
|
|
13854
|
-
U.onBeforeRender(u, T, O, z, V, lA), U.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse, U.matrixWorld), U.normalMatrix.getNormalMatrix(U.modelViewMatrix), V.onBeforeRender(u, T, O, z, U, lA), V.transparent === !0 && V.side === pt && V.forceSinglePass === !1 ? (V.side = yi, V.needsUpdate = !0, u.renderBufferDirect(O, T, z, V, U, lA), V.side =
|
|
13854
|
+
U.onBeforeRender(u, T, O, z, V, lA), U.modelViewMatrix.multiplyMatrices(O.matrixWorldInverse, U.matrixWorld), U.normalMatrix.getNormalMatrix(U.modelViewMatrix), V.onBeforeRender(u, T, O, z, U, lA), V.transparent === !0 && V.side === pt && V.forceSinglePass === !1 ? (V.side = yi, V.needsUpdate = !0, u.renderBufferDirect(O, T, z, V, U, lA), V.side = pg, V.needsUpdate = !0, u.renderBufferDirect(O, T, z, V, U, lA), V.side = pt) : u.renderBufferDirect(O, T, z, V, U, lA), U.onAfterRender(u, T, O, z, V, lA);
|
|
13855
13855
|
}
|
|
13856
13856
|
function $e(U, T, O) {
|
|
13857
13857
|
T.isScene !== !0 && (T = he);
|
|
@@ -14091,7 +14091,7 @@ class kI extends fA {
|
|
|
14091
14091
|
}
|
|
14092
14092
|
let Np = class {
|
|
14093
14093
|
constructor(A, e) {
|
|
14094
|
-
this.isInterleavedBuffer = !0, this.array = A, this.stride = e, this.count = A !== void 0 ? A.length / e : 0, this.usage = Lu, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.version = 0, this.uuid =
|
|
14094
|
+
this.isInterleavedBuffer = !0, this.array = A, this.stride = e, this.count = A !== void 0 ? A.length / e : 0, this.usage = Lu, this._updateRange = { offset: 0, count: -1 }, this.updateRanges = [], this.version = 0, this.uuid = Ho();
|
|
14095
14095
|
}
|
|
14096
14096
|
onUploadCallback() {
|
|
14097
14097
|
}
|
|
@@ -14123,7 +14123,7 @@ let Np = class {
|
|
|
14123
14123
|
return this.array.set(A, e), this;
|
|
14124
14124
|
}
|
|
14125
14125
|
clone(A) {
|
|
14126
|
-
A.arrayBuffers === void 0 && (A.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid =
|
|
14126
|
+
A.arrayBuffers === void 0 && (A.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Ho()), A.arrayBuffers[this.array.buffer._uuid] === void 0 && (A.arrayBuffers[this.array.buffer._uuid] = this.array.slice(0).buffer);
|
|
14127
14127
|
const e = new this.array.constructor(A.arrayBuffers[this.array.buffer._uuid]), t = new this.constructor(e, this.stride);
|
|
14128
14128
|
return t.setUsage(this.usage), t;
|
|
14129
14129
|
}
|
|
@@ -14131,7 +14131,7 @@ let Np = class {
|
|
|
14131
14131
|
return this.onUploadCallback = A, this;
|
|
14132
14132
|
}
|
|
14133
14133
|
toJSON(A) {
|
|
14134
|
-
return A.arrayBuffers === void 0 && (A.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid =
|
|
14134
|
+
return A.arrayBuffers === void 0 && (A.arrayBuffers = {}), this.array.buffer._uuid === void 0 && (this.array.buffer._uuid = Ho()), A.arrayBuffers[this.array.buffer._uuid] === void 0 && (A.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 Np = class {
|
|
|
14140
14140
|
}
|
|
14141
14141
|
};
|
|
14142
14142
|
const JI = /* @__PURE__ */ new y();
|
|
14143
|
-
let
|
|
14143
|
+
let qo = class IO {
|
|
14144
14144
|
constructor(A, e, t, i = !1) {
|
|
14145
14145
|
this.isInterleavedBufferAttribute = !0, this.name = "", this.data = A, this.itemSize = e, this.offset = t, this.normalized = i;
|
|
14146
14146
|
}
|
|
@@ -14286,7 +14286,7 @@ let ZN = class extends fA {
|
|
|
14286
14286
|
0,
|
|
14287
14287
|
1
|
|
14288
14288
|
]), t = new Np(e, 5);
|
|
14289
|
-
KE.setIndex([0, 1, 2, 0, 2, 3]), KE.setAttribute("position", new
|
|
14289
|
+
KE.setIndex([0, 1, 2, 0, 2, 3]), KE.setAttribute("position", new qo(t, 3, 0, !1)), KE.setAttribute("uv", new qo(t, 2, 3, !1));
|
|
14290
14290
|
}
|
|
14291
14291
|
this.geometry = KE, this.material = A, this.center = new iA(0.5, 0.5);
|
|
14292
14292
|
}
|
|
@@ -14403,7 +14403,7 @@ let zN = class extends fA {
|
|
|
14403
14403
|
}
|
|
14404
14404
|
};
|
|
14405
14405
|
const Nv = /* @__PURE__ */ new y(), bv = /* @__PURE__ */ new te(), Kv = /* @__PURE__ */ new te(), j9 = /* @__PURE__ */ new y(), Jv = /* @__PURE__ */ new GA(), eD = /* @__PURE__ */ new y(), BG = /* @__PURE__ */ new Li(), xv = /* @__PURE__ */ new GA(), QG = /* @__PURE__ */ new po();
|
|
14406
|
-
let
|
|
14406
|
+
let Yo = class extends uA {
|
|
14407
14407
|
constructor(A, e) {
|
|
14408
14408
|
super(A, e), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = IU, this.bindMatrix = new GA(), this.bindMatrixInverse = new GA(), this.boundingBox = null, this.boundingSphere = null;
|
|
14409
14409
|
}
|
|
@@ -14472,7 +14472,7 @@ let Oo = class extends uA {
|
|
|
14472
14472
|
const vv = /* @__PURE__ */ new GA(), Z9 = /* @__PURE__ */ new GA();
|
|
14473
14473
|
let p0 = class sO {
|
|
14474
14474
|
constructor(A = [], e = []) {
|
|
14475
|
-
this.uuid =
|
|
14475
|
+
this.uuid = Ho(), this.bones = A.slice(0), this.boneInverses = e, this.boneMatrices = null, this.boneTexture = null, this.init();
|
|
14476
14476
|
}
|
|
14477
14477
|
init() {
|
|
14478
14478
|
const A = this.bones, e = this.boneInverses;
|
|
@@ -15011,7 +15011,7 @@ let Wi = class extends fA {
|
|
|
15011
15011
|
}
|
|
15012
15012
|
};
|
|
15013
15013
|
const Pv = /* @__PURE__ */ new y(), Wv = /* @__PURE__ */ new y();
|
|
15014
|
-
let
|
|
15014
|
+
let jo = class extends Wi {
|
|
15015
15015
|
constructor(A, e) {
|
|
15016
15016
|
super(A, e), this.isLineSegments = !0, this.type = "LineSegments";
|
|
15017
15017
|
}
|
|
@@ -16249,7 +16249,7 @@ class sb extends Me {
|
|
|
16249
16249
|
}
|
|
16250
16250
|
class cQ extends Hu {
|
|
16251
16251
|
constructor(A) {
|
|
16252
|
-
super(A), this.uuid =
|
|
16252
|
+
super(A), this.uuid = Ho(), this.type = "Shape", this.holes = [];
|
|
16253
16253
|
}
|
|
16254
16254
|
getPointsHoles(A) {
|
|
16255
16255
|
const e = [];
|
|
@@ -17320,7 +17320,7 @@ var eq = /* @__PURE__ */ Object.freeze({
|
|
|
17320
17320
|
IcosahedronGeometry: M0,
|
|
17321
17321
|
LatheGeometry: Kp,
|
|
17322
17322
|
OctahedronGeometry: na,
|
|
17323
|
-
PlaneGeometry:
|
|
17323
|
+
PlaneGeometry: sg,
|
|
17324
17324
|
PolyhedronGeometry: eB,
|
|
17325
17325
|
RingGeometry: xQ,
|
|
17326
17326
|
ShapeGeometry: R0,
|
|
@@ -17937,7 +17937,7 @@ let ua = class extends fn {
|
|
|
17937
17937
|
ua.prototype.ValueTypeName = "vector";
|
|
17938
17938
|
let XI = class {
|
|
17939
17939
|
constructor(A, e = -1, t, i = B0) {
|
|
17940
|
-
this.name = A, this.tracks = t, this.duration = e, this.blendMode = i, this.uuid =
|
|
17940
|
+
this.name = A, this.tracks = t, this.duration = e, this.blendMode = i, this.uuid = Ho(), this.duration < 0 && this.resetDuration();
|
|
17941
17941
|
}
|
|
17942
17942
|
static parse(A) {
|
|
17943
17943
|
const e = [], t = A.tracks, i = 1 / (A.fps || 1);
|
|
@@ -18214,7 +18214,7 @@ let KX = class extends Error {
|
|
|
18214
18214
|
constructor(A, e) {
|
|
18215
18215
|
super(A), this.response = e;
|
|
18216
18216
|
}
|
|
18217
|
-
},
|
|
18217
|
+
}, ug = class extends nI {
|
|
18218
18218
|
constructor(A) {
|
|
18219
18219
|
super(A);
|
|
18220
18220
|
}
|
|
@@ -18324,7 +18324,7 @@ class JX extends nI {
|
|
|
18324
18324
|
super(A);
|
|
18325
18325
|
}
|
|
18326
18326
|
load(A, e, t, i) {
|
|
18327
|
-
const I = this, o = new
|
|
18327
|
+
const I = this, o = new ug(this.manager);
|
|
18328
18328
|
o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(A, function(s) {
|
|
18329
18329
|
try {
|
|
18330
18330
|
e(I.parse(JSON.parse(s)));
|
|
@@ -18347,7 +18347,7 @@ class xX extends nI {
|
|
|
18347
18347
|
super(A);
|
|
18348
18348
|
}
|
|
18349
18349
|
load(A, e, t, i) {
|
|
18350
|
-
const I = this, o = [], s = new IC(), n = new
|
|
18350
|
+
const I = this, o = [], s = new IC(), n = new ug(this.manager);
|
|
18351
18351
|
n.setPath(this.path), n.setResponseType("arraybuffer"), n.setRequestHeader(this.requestHeader), n.setWithCredentials(I.withCredentials);
|
|
18352
18352
|
let C = 0;
|
|
18353
18353
|
function a(r) {
|
|
@@ -18431,7 +18431,7 @@ class rb extends nI {
|
|
|
18431
18431
|
super(A);
|
|
18432
18432
|
}
|
|
18433
18433
|
load(A, e, t, i) {
|
|
18434
|
-
const I = this, o = new co(), s = new
|
|
18434
|
+
const I = this, o = new co(), s = new ug(this.manager);
|
|
18435
18435
|
return s.setResponseType("arraybuffer"), s.setRequestHeader(this.requestHeader), s.setPath(this.path), s.setWithCredentials(I.withCredentials), s.load(A, function(n) {
|
|
18436
18436
|
let C;
|
|
18437
18437
|
try {
|
|
@@ -18763,7 +18763,7 @@ class L0 extends nI {
|
|
|
18763
18763
|
super(A), this.textures = {};
|
|
18764
18764
|
}
|
|
18765
18765
|
load(A, e, t, i) {
|
|
18766
|
-
const I = this, o = new
|
|
18766
|
+
const I = this, o = new ug(I.manager);
|
|
18767
18767
|
o.setPath(I.path), o.setRequestHeader(I.requestHeader), o.setWithCredentials(I.withCredentials), o.load(A, function(s) {
|
|
18768
18768
|
try {
|
|
18769
18769
|
e(I.parse(JSON.parse(s)));
|
|
@@ -18881,7 +18881,7 @@ class NO extends nI {
|
|
|
18881
18881
|
super(A);
|
|
18882
18882
|
}
|
|
18883
18883
|
load(A, e, t, i) {
|
|
18884
|
-
const I = this, o = new
|
|
18884
|
+
const I = this, o = new ug(I.manager);
|
|
18885
18885
|
o.setPath(I.path), o.setRequestHeader(I.requestHeader), o.setWithCredentials(I.withCredentials), o.load(A, function(s) {
|
|
18886
18886
|
try {
|
|
18887
18887
|
e(I.parse(JSON.parse(s)));
|
|
@@ -18915,7 +18915,7 @@ class NO extends nI {
|
|
|
18915
18915
|
let d;
|
|
18916
18916
|
if (c.isInterleavedBufferAttribute) {
|
|
18917
18917
|
const h = i(A.data, c.data);
|
|
18918
|
-
d = new
|
|
18918
|
+
d = new qo(h, c.itemSize, c.offset, c.normalized);
|
|
18919
18919
|
} else {
|
|
18920
18920
|
const h = Mc(c.type, c.array), l = c.isInstancedBufferAttribute ? ro : ie;
|
|
18921
18921
|
d = new l(h, c.itemSize, c.normalized);
|
|
@@ -18931,7 +18931,7 @@ class NO extends nI {
|
|
|
18931
18931
|
let u;
|
|
18932
18932
|
if (p.isInterleavedBufferAttribute) {
|
|
18933
18933
|
const f = i(A.data, p.data);
|
|
18934
|
-
u = new
|
|
18934
|
+
u = new qo(f, p.itemSize, p.offset, p.normalized);
|
|
18935
18935
|
} else {
|
|
18936
18936
|
const f = Mc(p.type, p.array);
|
|
18937
18937
|
u = new ie(f, p.itemSize, p.normalized);
|
|
@@ -18962,7 +18962,7 @@ class TX extends nI {
|
|
|
18962
18962
|
load(A, e, t, i) {
|
|
18963
18963
|
const I = this, o = this.path === "" ? Jr.extractUrlBase(A) : this.path;
|
|
18964
18964
|
this.resourcePath = this.resourcePath || o;
|
|
18965
|
-
const s = new
|
|
18965
|
+
const s = new ug(this.manager);
|
|
18966
18966
|
s.setPath(this.path), s.setRequestHeader(this.requestHeader), s.setWithCredentials(this.withCredentials), s.load(A, function(n) {
|
|
18967
18967
|
let C = null;
|
|
18968
18968
|
try {
|
|
@@ -18982,7 +18982,7 @@ class TX extends nI {
|
|
|
18982
18982
|
async loadAsync(A, e) {
|
|
18983
18983
|
const t = this, i = this.path === "" ? Jr.extractUrlBase(A) : this.path;
|
|
18984
18984
|
this.resourcePath = this.resourcePath || i;
|
|
18985
|
-
const I = new
|
|
18985
|
+
const I = new ug(this.manager);
|
|
18986
18986
|
I.setPath(this.path), I.setRequestHeader(this.requestHeader), I.setWithCredentials(this.withCredentials);
|
|
18987
18987
|
const o = await I.loadAsync(A, e), s = JSON.parse(o), n = s.metadata;
|
|
18988
18988
|
if (n === void 0 || n.type === void 0 || n.type.toLowerCase() === "geometry")
|
|
@@ -19212,7 +19212,7 @@ class TX extends nI {
|
|
|
19212
19212
|
o = new FO().fromJSON(A);
|
|
19213
19213
|
break;
|
|
19214
19214
|
case "SkinnedMesh":
|
|
19215
|
-
a = s(A.geometry), r = n(A.material), o = new
|
|
19215
|
+
a = s(A.geometry), r = n(A.material), o = new Yo(a, r), A.bindMode !== void 0 && (o.bindMode = A.bindMode), A.bindMatrix !== void 0 && o.bindMatrix.fromArray(A.bindMatrix), A.skeleton !== void 0 && (o.skeleton = A.skeleton);
|
|
19216
19216
|
break;
|
|
19217
19217
|
case "Mesh":
|
|
19218
19218
|
a = s(A.geometry), r = n(A.material), o = new uA(a, r);
|
|
@@ -19245,7 +19245,7 @@ class TX extends nI {
|
|
|
19245
19245
|
o = new XN(s(A.geometry), n(A.material));
|
|
19246
19246
|
break;
|
|
19247
19247
|
case "LineSegments":
|
|
19248
|
-
o = new
|
|
19248
|
+
o = new jo(s(A.geometry), n(A.material));
|
|
19249
19249
|
break;
|
|
19250
19250
|
case "PointCloud":
|
|
19251
19251
|
case "Points":
|
|
@@ -19363,7 +19363,7 @@ class eS extends nI {
|
|
|
19363
19363
|
super(A);
|
|
19364
19364
|
}
|
|
19365
19365
|
load(A, e, t, i) {
|
|
19366
|
-
const I = this, o = new
|
|
19366
|
+
const I = this, o = new ug(this.manager);
|
|
19367
19367
|
o.setResponseType("arraybuffer"), o.setPath(this.path), o.setRequestHeader(this.requestHeader), o.setWithCredentials(this.withCredentials), o.load(A, function(n) {
|
|
19368
19368
|
try {
|
|
19369
19369
|
const C = n.slice(0);
|
|
@@ -20069,7 +20069,7 @@ rt.prototype.SetterByBindingTypeAndVersioning = [
|
|
|
20069
20069
|
];
|
|
20070
20070
|
class i6 {
|
|
20071
20071
|
constructor() {
|
|
20072
|
-
this.isAnimationObjectGroup = !0, this.uuid =
|
|
20072
|
+
this.isAnimationObjectGroup = !0, this.uuid = Ho(), this._objects = Array.prototype.slice.call(arguments), this.nCachedObjects_ = 0;
|
|
20073
20073
|
const A = {};
|
|
20074
20074
|
this._indicesByUUID = A;
|
|
20075
20075
|
for (let t = 0, i = arguments.length; t !== i; ++t)
|
|
@@ -20988,7 +20988,7 @@ class a6 extends fA {
|
|
|
20988
20988
|
}
|
|
20989
20989
|
t.setAttribute("position", new ce(i, 3));
|
|
20990
20990
|
const I = new zi({ fog: !1, toneMapped: !1 });
|
|
20991
|
-
this.cone = new
|
|
20991
|
+
this.cone = new jo(t, I), 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 a6 extends fA {
|
|
|
21000
21000
|
}
|
|
21001
21001
|
}
|
|
21002
21002
|
const Za = /* @__PURE__ */ new y(), hD = /* @__PURE__ */ new GA(), wG = /* @__PURE__ */ new GA();
|
|
21003
|
-
class r6 extends
|
|
21003
|
+
class r6 extends jo {
|
|
21004
21004
|
constructor(A) {
|
|
21005
21005
|
const e = qO(A), t = new Me(), i = [], I = [], o = new kA(0, 0, 1), s = new kA(0, 1, 0);
|
|
21006
21006
|
for (let C = 0; C < e.length; C++) {
|
|
@@ -21071,7 +21071,7 @@ class E6 extends fA {
|
|
|
21071
21071
|
this.light.updateWorldMatrix(!0, !1), A.lookAt(Q6.setFromMatrixPosition(this.light.matrixWorld).negate());
|
|
21072
21072
|
}
|
|
21073
21073
|
}
|
|
21074
|
-
let Y0 = class extends
|
|
21074
|
+
let Y0 = class extends jo {
|
|
21075
21075
|
constructor(A = 10, e = 10, t = 4473924, i = 8947848) {
|
|
21076
21076
|
t = new kA(t), i = new kA(i);
|
|
21077
21077
|
const I = e / 2, o = A / e, s = A / 2, n = [], C = [];
|
|
@@ -21089,7 +21089,7 @@ let Y0 = class extends Zo {
|
|
|
21089
21089
|
this.geometry.dispose(), this.material.dispose();
|
|
21090
21090
|
}
|
|
21091
21091
|
};
|
|
21092
|
-
class c6 extends
|
|
21092
|
+
class c6 extends jo {
|
|
21093
21093
|
constructor(A = 10, e = 16, t = 8, i = 64, I = 4473924, o = 8947848) {
|
|
21094
21094
|
I = new kA(I), o = new kA(o);
|
|
21095
21095
|
const s = [], n = [];
|
|
@@ -21149,7 +21149,7 @@ class LO extends fA {
|
|
|
21149
21149
|
}
|
|
21150
21150
|
}
|
|
21151
21151
|
const dD = /* @__PURE__ */ new y(), Fi = /* @__PURE__ */ new Rp();
|
|
21152
|
-
class _O extends
|
|
21152
|
+
class _O extends jo {
|
|
21153
21153
|
constructor(A) {
|
|
21154
21154
|
const e = new Me(), t = new zi({ color: 16777215, vertexColors: !0, toneMapped: !1 }), i = [], I = [], o = {};
|
|
21155
21155
|
s("n1", "n2"), s("n2", "n4"), s("n4", "n3"), s("n3", "n1"), s("f1", "f2"), s("f2", "f4"), s("f4", "f3"), s("f3", "f1"), s("n1", "f1"), s("n2", "f2"), s("n3", "f3"), s("n4", "f4"), s("p", "n1"), s("p", "n2"), s("p", "n3"), s("p", "n4"), s("u1", "u2"), s("u2", "u3"), s("u3", "u1"), s("c", "t"), s("p", "c"), s("cn1", "cn2"), s("cn3", "cn4"), s("cf1", "cf2"), s("cf3", "cf4");
|
|
@@ -21185,7 +21185,7 @@ function Hi(g, A, e, t, i, I, o) {
|
|
|
21185
21185
|
}
|
|
21186
21186
|
}
|
|
21187
21187
|
const uD = /* @__PURE__ */ new Ft();
|
|
21188
|
-
class pb extends
|
|
21188
|
+
class pb extends jo {
|
|
21189
21189
|
constructor(A, e = 16776960) {
|
|
21190
21190
|
const t = 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]), i = new Float32Array(8 * 3), I = new Me();
|
|
21191
21191
|
I.setIndex(new ie(t, 1)), I.setAttribute("position", new ie(i, 3)), super(I, new zi({ color: e, toneMapped: !1 })), this.object = A, this.type = "BoxHelper", this.matrixAutoUpdate = !1, this.update();
|
|
@@ -21206,7 +21206,7 @@ class pb extends Zo {
|
|
|
21206
21206
|
this.geometry.dispose(), this.material.dispose();
|
|
21207
21207
|
}
|
|
21208
21208
|
}
|
|
21209
|
-
class fb extends
|
|
21209
|
+
class fb extends jo {
|
|
21210
21210
|
constructor(A, e = 16776960) {
|
|
21211
21211
|
const t = 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]), i = [1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1], I = new Me();
|
|
21212
21212
|
I.setIndex(new ie(t, 1)), I.setAttribute("position", new ce(i, 3)), super(I, new zi({ color: e, toneMapped: !1 })), this.box = A, this.type = "Box3Helper", this.geometry.computeBoundingSphere();
|
|
@@ -21264,7 +21264,7 @@ class l6 extends fA {
|
|
|
21264
21264
|
this.line.geometry.dispose(), this.line.material.dispose(), this.cone.geometry.dispose(), this.cone.material.dispose();
|
|
21265
21265
|
}
|
|
21266
21266
|
}
|
|
21267
|
-
let Ms = class extends
|
|
21267
|
+
let Ms = class extends jo {
|
|
21268
21268
|
constructor(A = 1) {
|
|
21269
21269
|
const e = [
|
|
21270
21270
|
0,
|
|
@@ -21543,14 +21543,14 @@ const u6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21543
21543
|
Euler: Ei,
|
|
21544
21544
|
EventDispatcher: qg,
|
|
21545
21545
|
ExtrudeGeometry: G0,
|
|
21546
|
-
FileLoader:
|
|
21546
|
+
FileLoader: ug,
|
|
21547
21547
|
Float16BufferAttribute: IZ,
|
|
21548
21548
|
Float32BufferAttribute: ce,
|
|
21549
21549
|
FloatType: ti,
|
|
21550
21550
|
Fog: d0,
|
|
21551
21551
|
FogExp2: l0,
|
|
21552
21552
|
FramebufferTexture: tX,
|
|
21553
|
-
FrontSide:
|
|
21553
|
+
FrontSide: pg,
|
|
21554
21554
|
Frustum: KQ,
|
|
21555
21555
|
GLBufferAttribute: s6,
|
|
21556
21556
|
GLSL1: wj,
|
|
@@ -21581,7 +21581,7 @@ const u6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21581
21581
|
Int8BufferAttribute: AZ,
|
|
21582
21582
|
IntType: RN,
|
|
21583
21583
|
InterleavedBuffer: Np,
|
|
21584
|
-
InterleavedBufferAttribute:
|
|
21584
|
+
InterleavedBufferAttribute: qo,
|
|
21585
21585
|
Interpolant: qh,
|
|
21586
21586
|
InterpolateDiscrete: jr,
|
|
21587
21587
|
InterpolateLinear: CC,
|
|
@@ -21607,7 +21607,7 @@ const u6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21607
21607
|
LineCurve3: EO,
|
|
21608
21608
|
LineDashedMaterial: wO,
|
|
21609
21609
|
LineLoop: XN,
|
|
21610
|
-
LineSegments:
|
|
21610
|
+
LineSegments: jo,
|
|
21611
21611
|
LinearDisplayP3ColorSpace: Kh,
|
|
21612
21612
|
LinearEncoding: h2,
|
|
21613
21613
|
LinearFilter: Re,
|
|
@@ -21630,7 +21630,7 @@ const u6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21630
21630
|
MOUSE: HB,
|
|
21631
21631
|
Material: Le,
|
|
21632
21632
|
MaterialLoader: L0,
|
|
21633
|
-
MathUtils:
|
|
21633
|
+
MathUtils: dg,
|
|
21634
21634
|
Matrix3: qe,
|
|
21635
21635
|
Matrix4: GA,
|
|
21636
21636
|
MaxEquation: Ly,
|
|
@@ -21687,7 +21687,7 @@ const u6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21687
21687
|
Path: Hu,
|
|
21688
21688
|
PerspectiveCamera: Te,
|
|
21689
21689
|
Plane: WI,
|
|
21690
|
-
PlaneGeometry:
|
|
21690
|
+
PlaneGeometry: sg,
|
|
21691
21691
|
PlaneHelper: h6,
|
|
21692
21692
|
PointLight: Jp,
|
|
21693
21693
|
PointLightHelper: B6,
|
|
@@ -21768,7 +21768,7 @@ const u6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21768
21768
|
ShortType: a2,
|
|
21769
21769
|
Skeleton: p0,
|
|
21770
21770
|
SkeletonHelper: r6,
|
|
21771
|
-
SkinnedMesh:
|
|
21771
|
+
SkinnedMesh: Yo,
|
|
21772
21772
|
Source: oa,
|
|
21773
21773
|
Sphere: Li,
|
|
21774
21774
|
SphereGeometry: pn,
|
|
@@ -22492,7 +22492,7 @@ function _6(g, A) {
|
|
|
22492
22492
|
}
|
|
22493
22493
|
return e.title = "Open the browser console (F12) for more information", e.innerHTML = A, e;
|
|
22494
22494
|
}
|
|
22495
|
-
let
|
|
22495
|
+
let Lo = null, bo = null, eC = null, kG = !1, Gq = null;
|
|
22496
22496
|
const VO = "terminal", Dd = IA("console"), T6 = IA("noerrors") || IA("noconsole");
|
|
22497
22497
|
Dd && XO();
|
|
22498
22498
|
if (!T6 && (Dd || ho())) {
|
|
@@ -22505,7 +22505,7 @@ Open this page to get the console: ` + A.toString());
|
|
|
22505
22505
|
if ((g || Dd) && (J6(), $O(), A1(!0), g)) {
|
|
22506
22506
|
const A = document.querySelector("needle-engine");
|
|
22507
22507
|
A == null || A.addEventListener("enter-ar", () => {
|
|
22508
|
-
(Dd ||
|
|
22508
|
+
(Dd || Lo || mb() > 0) && IA("noerrors");
|
|
22509
22509
|
}), A == null || A.addEventListener("exit-ar", () => {
|
|
22510
22510
|
W6();
|
|
22511
22511
|
});
|
|
@@ -22513,14 +22513,14 @@ Open this page to get the console: ` + A.toString());
|
|
|
22513
22513
|
}
|
|
22514
22514
|
const _U = Symbol("consoleParent");
|
|
22515
22515
|
function XO() {
|
|
22516
|
-
if (
|
|
22517
|
-
|
|
22516
|
+
if (Lo !== null) {
|
|
22517
|
+
Lo.showSwitch();
|
|
22518
22518
|
return;
|
|
22519
22519
|
}
|
|
22520
22520
|
A1();
|
|
22521
22521
|
}
|
|
22522
22522
|
function H6() {
|
|
22523
|
-
|
|
22523
|
+
Lo !== null && (Lo.hide(), Lo.hideSwitch());
|
|
22524
22524
|
}
|
|
22525
22525
|
function $O() {
|
|
22526
22526
|
Gq || (Gq = setInterval(Y6, 500));
|
|
@@ -22537,20 +22537,20 @@ function P6() {
|
|
|
22537
22537
|
eC && (eC.removeAttribute("error"), eC.innerText = VO);
|
|
22538
22538
|
}
|
|
22539
22539
|
function W6() {
|
|
22540
|
-
|
|
22540
|
+
bo && bo[_U] && bo[_U].appendChild(bo);
|
|
22541
22541
|
}
|
|
22542
22542
|
function A1(g = !1) {
|
|
22543
|
-
if (
|
|
22543
|
+
if (Lo || kG)
|
|
22544
22544
|
return;
|
|
22545
22545
|
kG = !0;
|
|
22546
22546
|
const A = document.createElement("script");
|
|
22547
22547
|
A.onload = () => {
|
|
22548
|
-
kG = !1, $O(),
|
|
22548
|
+
kG = !1, $O(), Lo = new VConsole({
|
|
22549
22549
|
// defaultPlugins: ['system', 'network'],
|
|
22550
22550
|
pluginOrder: ["default", "needle-console"]
|
|
22551
22551
|
});
|
|
22552
22552
|
const e = globalThis["needle:codegen_files"];
|
|
22553
|
-
if (e && e.length > 0 &&
|
|
22553
|
+
if (e && e.length > 0 && Lo.addPlugin(j6()), bo = z6(), bo && (bo[_U] = bo.parentElement, bo.style.position = "absolute", bo.style.zIndex = Number.MAX_SAFE_INTEGER.toString()), Lo.setSwitchPosition(20, 30), eC = Z6(), eC) {
|
|
22554
22554
|
eC.innerText = VO, eC.addEventListener("click", P6);
|
|
22555
22555
|
const t = document.createElement("style"), i = 40;
|
|
22556
22556
|
t.innerHTML = `
|
|
@@ -22611,7 +22611,7 @@ function A1(g = !1) {
|
|
|
22611
22611
|
#__vconsole .vc-mask {
|
|
22612
22612
|
overflow: hidden;
|
|
22613
22613
|
}
|
|
22614
|
-
`,
|
|
22614
|
+
`, bo == null || bo.prepend(t), g === !0 && mb() <= 0 && H6(), console.log("🌵 Debug console has loaded");
|
|
22615
22615
|
}
|
|
22616
22616
|
}, A.src = "https://unpkg.com/vconsole@latest/dist/vconsole.min.js", document.body.appendChild(A);
|
|
22617
22617
|
}
|
|
@@ -22639,7 +22639,7 @@ function j6() {
|
|
|
22639
22639
|
t.push({
|
|
22640
22640
|
name: "Open in new window ↗",
|
|
22641
22641
|
onClick: function(i) {
|
|
22642
|
-
window.open(g.fullUrl, "_blank"),
|
|
22642
|
+
window.open(g.fullUrl, "_blank"), Lo == null || Lo.hide();
|
|
22643
22643
|
}
|
|
22644
22644
|
}), t.push({
|
|
22645
22645
|
name: "Reload",
|
|
@@ -22673,8 +22673,8 @@ nn.o = (g, A) => Object.prototype.hasOwnProperty.call(g, A);
|
|
|
22673
22673
|
nn.r = (g) => {
|
|
22674
22674
|
typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(g, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(g, "__esModule", { value: !0 });
|
|
22675
22675
|
};
|
|
22676
|
-
var
|
|
22677
|
-
nn.d(
|
|
22676
|
+
var ng = {};
|
|
22677
|
+
nn.d(ng, {
|
|
22678
22678
|
ti: () => (
|
|
22679
22679
|
/* reexport */
|
|
22680
22680
|
Nt
|
|
@@ -23016,7 +23016,7 @@ var i7 = (g) => {
|
|
|
23016
23016
|
var A = {};
|
|
23017
23017
|
return nn.d(A, g), A;
|
|
23018
23018
|
};
|
|
23019
|
-
const ZA = i7({ BackSide: () => yi, BufferAttribute: () => ie, BufferGeometry: () => Me, Color: () => kA, DoubleSide: () => pt, EventDispatcher: () => qg, FileLoader: () =>
|
|
23019
|
+
const ZA = i7({ BackSide: () => yi, BufferAttribute: () => ie, BufferGeometry: () => Me, Color: () => kA, DoubleSide: () => pt, EventDispatcher: () => qg, FileLoader: () => ug, FrontSide: () => pg, LinearFilter: () => Re, Mesh: () => uA, MeshBasicMaterial: () => tt, Object3D: () => fA, Plane: () => WI, PlaneGeometry: () => sg, ShaderMaterial: () => be, Texture: () => je, TextureLoader: () => Qa, Vector2: () => iA, Vector3: () => y, Vector4: () => te });
|
|
23020
23020
|
class hi extends Nt {
|
|
23021
23021
|
/**
|
|
23022
23022
|
*
|
|
@@ -28814,7 +28814,7 @@ const L1 = () => oS.update(), _1 = {
|
|
|
28814
28814
|
};
|
|
28815
28815
|
typeof global < "u" && (global.ThreeMeshUI = _1);
|
|
28816
28816
|
const reA = _1;
|
|
28817
|
-
var BeA =
|
|
28817
|
+
var BeA = ng.ti, T1 = ng.nS, Zb = ng.eB, QeA = ng.Yp, YU = ng.VB, EeA = ng.BC, ceA = ng.zN, ay = ng.cV, heA = ng.hW, leA = ng.k2, deA = ng.K6, ueA = ng.M7, peA = ng.ls, feA = ng.Hi, zb = ng.EY, DeA = ng.MR, weA = ng.zf, Ot = ng.Ay, H1 = ng.yo;
|
|
28818
28818
|
const vq = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
28819
28819
|
__proto__: null,
|
|
28820
28820
|
BaseProperty: BeA,
|
|
@@ -29192,7 +29192,7 @@ class Hn {
|
|
|
29192
29192
|
return null;
|
|
29193
29193
|
}
|
|
29194
29194
|
}
|
|
29195
|
-
B(Hn, "planeGeometry", new
|
|
29195
|
+
B(Hn, "planeGeometry", new sg(2, 2, 1, 1)), B(Hn, "renderer"), B(Hn, "perspectiveCam", new Te()), B(Hn, "scene", new kI()), B(Hn, "vertex", `
|
|
29196
29196
|
varying vec2 vUv;
|
|
29197
29197
|
void main(){
|
|
29198
29198
|
vUv = uv;
|
|
@@ -29529,13 +29529,13 @@ function lwA(g) {
|
|
|
29529
29529
|
WU = g;
|
|
29530
29530
|
}
|
|
29531
29531
|
const AP = IA("debugdefines");
|
|
29532
|
-
Lh('if(!globalThis[""3.38.0-alpha.
|
|
29532
|
+
Lh('if(!globalThis[""3.38.0-alpha.3""]) globalThis[""3.38.0-alpha.3""] = "0.0.0";');
|
|
29533
29533
|
Lh('if(!globalThis[""undefined""]) globalThis[""undefined""] = "unknown";');
|
|
29534
|
-
Lh('if(!globalThis[""
|
|
29535
|
-
Lh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.38.0-alpha.
|
|
29534
|
+
Lh('if(!globalThis[""Thu May 30 2024 10:17:01 GMT+0200 (Central European Summer Time)""]) globalThis[""Thu May 30 2024 10:17:01 GMT+0200 (Central European Summer Time)""] = "unknown";');
|
|
29535
|
+
Lh('globalThis["__NEEDLE_ENGINE_VERSION__"] = "3.38.0-alpha.3";');
|
|
29536
29536
|
Lh('globalThis["__NEEDLE_ENGINE_GENERATOR__"] = "undefined";');
|
|
29537
|
-
Lh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "
|
|
29538
|
-
const In = "3.38.0-alpha.
|
|
29537
|
+
Lh('globalThis["__NEEDLE_PROJECT_BUILD_TIME__"] = "Thu May 30 2024 10:17:01 GMT+0200 (Central European Summer Time)";');
|
|
29538
|
+
const In = "3.38.0-alpha.3", Xb = "undefined", eP = "Thu May 30 2024 10:17:01 GMT+0200 (Central European Summer Time)";
|
|
29539
29539
|
AP && console.log(`Engine version: ${In} (generator: ${Xb})
|
|
29540
29540
|
Project built at ${eP}`);
|
|
29541
29541
|
const vr = "needle_isActiveInHierarchy", uc = "builtin_components", By = "needle_editor_guid";
|
|
@@ -30687,7 +30687,7 @@ const QL = /* @__PURE__ */ new Ra().set(
|
|
|
30687
30687
|
toReference: (g) => g.convertSRGBToLinear().applyMatrix3(EL),
|
|
30688
30688
|
fromReference: (g) => g.applyMatrix3(QL).convertLinearToSRGB()
|
|
30689
30689
|
}
|
|
30690
|
-
}, ZtA = /* @__PURE__ */ new Set([uo, $b]),
|
|
30690
|
+
}, ZtA = /* @__PURE__ */ new Set([uo, $b]), Uo = {
|
|
30691
30691
|
enabled: !0,
|
|
30692
30692
|
_workingColorSpace: uo,
|
|
30693
30693
|
get workingColorSpace() {
|
|
@@ -30799,8 +30799,8 @@ function _G(g) {
|
|
|
30799
30799
|
} : (console.warn("THREE.Texture: Unable to serialize Texture."), {});
|
|
30800
30800
|
}
|
|
30801
30801
|
let $tA = 0;
|
|
30802
|
-
class
|
|
30803
|
-
constructor(A =
|
|
30802
|
+
class hg extends em {
|
|
30803
|
+
constructor(A = hg.DEFAULT_IMAGE, e = hg.DEFAULT_MAPPING, t = oQ, i = oQ, I = ip, o = Am, s = Gr, n = ds, C = hg.DEFAULT_ANISOTROPY, a = rS) {
|
|
30804
30804
|
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: $tA++ }), this.uuid = Cn(), this.name = "", this.source = new XtA(A), this.mipmaps = [], this.mapping = e, this.channel = 0, this.wrapS = t, this.wrapT = i, this.magFilter = I, this.minFilter = o, this.anisotropy = C, this.format = s, this.internalFormat = null, this.type = n, this.offset = new mi(0, 0), this.repeat = new mi(1, 1), this.center = new mi(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Ra(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, this.colorSpace = a, 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 cg extends em {
|
|
|
30888
30888
|
A === !0 && (this.version++, this.source.needsUpdate = !0);
|
|
30889
30889
|
}
|
|
30890
30890
|
}
|
|
30891
|
-
|
|
30892
|
-
|
|
30893
|
-
|
|
30891
|
+
hg.DEFAULT_IMAGE = null;
|
|
30892
|
+
hg.DEFAULT_MAPPING = oP;
|
|
30893
|
+
hg.DEFAULT_ANISOTROPY = 1;
|
|
30894
30894
|
class ps {
|
|
30895
30895
|
constructor(A = 0, e = 0, t = 0, i = 1) {
|
|
30896
30896
|
ps.prototype.isVector4 = !0, this.x = A, this.y = e, this.z = t, this.w = i;
|
|
@@ -31090,7 +31090,7 @@ class ps {
|
|
|
31090
31090
|
yield this.x, yield this.y, yield this.z, yield this.w;
|
|
31091
31091
|
}
|
|
31092
31092
|
}
|
|
31093
|
-
class AiA extends
|
|
31093
|
+
class AiA extends hg {
|
|
31094
31094
|
constructor(A = null, e = 1, t = 1, i = 1) {
|
|
31095
31095
|
super(null), this.isData3DTexture = !0, this.image = { data: A, width: e, height: t, depth: i }, this.magFilter = qQ, this.minFilter = qQ, this.wrapR = oQ, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
31096
31096
|
}
|
|
@@ -33035,19 +33035,19 @@ class gg {
|
|
|
33035
33035
|
return this.r = A, this.g = A, this.b = A, this;
|
|
33036
33036
|
}
|
|
33037
33037
|
setHex(A, e = DI) {
|
|
33038
|
-
return A = Math.floor(A), this.r = (A >> 16 & 255) / 255, this.g = (A >> 8 & 255) / 255, this.b = (A & 255) / 255,
|
|
33038
|
+
return A = Math.floor(A), this.r = (A >> 16 & 255) / 255, this.g = (A >> 8 & 255) / 255, this.b = (A & 255) / 255, Uo.toWorkingColorSpace(this, e), this;
|
|
33039
33039
|
}
|
|
33040
|
-
setRGB(A, e, t, i =
|
|
33041
|
-
return this.r = A, this.g = e, this.b = t,
|
|
33040
|
+
setRGB(A, e, t, i = Uo.workingColorSpace) {
|
|
33041
|
+
return this.r = A, this.g = e, this.b = t, Uo.toWorkingColorSpace(this, i), this;
|
|
33042
33042
|
}
|
|
33043
|
-
setHSL(A, e, t, i =
|
|
33043
|
+
setHSL(A, e, t, i = Uo.workingColorSpace) {
|
|
33044
33044
|
if (A = AK(A, 1), e = wI(e, 0, 1), t = wI(t, 0, 1), e === 0)
|
|
33045
33045
|
this.r = this.g = this.b = t;
|
|
33046
33046
|
else {
|
|
33047
33047
|
const I = t <= 0.5 ? t * (1 + e) : t + e - t * e, o = 2 * t - I;
|
|
33048
33048
|
this.r = AM(o, I, A + 1 / 3), this.g = AM(o, I, A), this.b = AM(o, I, A - 1 / 3);
|
|
33049
33049
|
}
|
|
33050
|
-
return
|
|
33050
|
+
return Uo.toWorkingColorSpace(this, i), this;
|
|
33051
33051
|
}
|
|
33052
33052
|
setStyle(A, e = DI) {
|
|
33053
33053
|
function t(I) {
|
|
@@ -33127,13 +33127,13 @@ class gg {
|
|
|
33127
33127
|
return this.copyLinearToSRGB(this), this;
|
|
33128
33128
|
}
|
|
33129
33129
|
getHex(A = DI) {
|
|
33130
|
-
return
|
|
33130
|
+
return Uo.fromWorkingColorSpace(hI.copy(this), A), Math.round(wI(hI.r * 255, 0, 255)) * 65536 + Math.round(wI(hI.g * 255, 0, 255)) * 256 + Math.round(wI(hI.b * 255, 0, 255));
|
|
33131
33131
|
}
|
|
33132
33132
|
getHexString(A = DI) {
|
|
33133
33133
|
return ("000000" + this.getHex(A).toString(16)).slice(-6);
|
|
33134
33134
|
}
|
|
33135
|
-
getHSL(A, e =
|
|
33136
|
-
|
|
33135
|
+
getHSL(A, e = Uo.workingColorSpace) {
|
|
33136
|
+
Uo.fromWorkingColorSpace(hI.copy(this), e);
|
|
33137
33137
|
const t = hI.r, i = hI.g, I = hI.b, o = Math.max(t, i, I), s = Math.min(t, i, I);
|
|
33138
33138
|
let n, C;
|
|
33139
33139
|
const a = (s + o) / 2;
|
|
@@ -33156,11 +33156,11 @@ class gg {
|
|
|
33156
33156
|
}
|
|
33157
33157
|
return A.h = n, A.s = C, A.l = a, A;
|
|
33158
33158
|
}
|
|
33159
|
-
getRGB(A, e =
|
|
33160
|
-
return
|
|
33159
|
+
getRGB(A, e = Uo.workingColorSpace) {
|
|
33160
|
+
return Uo.fromWorkingColorSpace(hI.copy(this), e), A.r = hI.r, A.g = hI.g, A.b = hI.b, A;
|
|
33161
33161
|
}
|
|
33162
33162
|
getStyle(A = DI) {
|
|
33163
|
-
|
|
33163
|
+
Uo.fromWorkingColorSpace(hI.copy(this), A);
|
|
33164
33164
|
const e = hI.r, t = hI.g, i = hI.b;
|
|
33165
33165
|
return A !== DI ? `color(${A} ${e.toFixed(3)} ${t.toFixed(3)} ${i.toFixed(3)})` : `rgb(${Math.round(e * 255)},${Math.round(t * 255)},${Math.round(i * 255)})`;
|
|
33166
33166
|
}
|
|
@@ -33319,7 +33319,7 @@ class Kc extends _r {
|
|
|
33319
33319
|
}
|
|
33320
33320
|
}
|
|
33321
33321
|
const $i = /* @__PURE__ */ new cA(), JD = /* @__PURE__ */ new mi();
|
|
33322
|
-
class
|
|
33322
|
+
class Oo {
|
|
33323
33323
|
constructor(A, e, t = !1) {
|
|
33324
33324
|
if (Array.isArray(A))
|
|
33325
33325
|
throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");
|
|
@@ -33441,23 +33441,23 @@ class Po {
|
|
|
33441
33441
|
return this.name !== "" && (A.name = this.name), this.usage !== $U && (A.usage = this.usage), A;
|
|
33442
33442
|
}
|
|
33443
33443
|
}
|
|
33444
|
-
class riA extends
|
|
33444
|
+
class riA extends Oo {
|
|
33445
33445
|
constructor(A, e, t) {
|
|
33446
33446
|
super(new Uint16Array(A), e, t);
|
|
33447
33447
|
}
|
|
33448
33448
|
}
|
|
33449
|
-
class BiA extends
|
|
33449
|
+
class BiA extends Oo {
|
|
33450
33450
|
constructor(A, e, t) {
|
|
33451
33451
|
super(new Uint32Array(A), e, t);
|
|
33452
33452
|
}
|
|
33453
33453
|
}
|
|
33454
|
-
class eK extends
|
|
33454
|
+
class eK extends Oo {
|
|
33455
33455
|
constructor(A, e, t) {
|
|
33456
33456
|
super(new Float32Array(A), e, t);
|
|
33457
33457
|
}
|
|
33458
33458
|
}
|
|
33459
33459
|
let QiA = 0;
|
|
33460
|
-
const
|
|
33460
|
+
const is = /* @__PURE__ */ new Ct(), eM = /* @__PURE__ */ new Zi(), zE = /* @__PURE__ */ new cA(), Mo = /* @__PURE__ */ new En(), Ol = /* @__PURE__ */ new En(), mg = /* @__PURE__ */ new cA();
|
|
33461
33461
|
class an extends em {
|
|
33462
33462
|
constructor() {
|
|
33463
33463
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: QiA++ }), this.uuid = Cn(), 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 an extends em {
|
|
|
33505
33505
|
return i !== void 0 && (i.transformDirection(A), i.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
33506
33506
|
}
|
|
33507
33507
|
applyQuaternion(A) {
|
|
33508
|
-
return
|
|
33508
|
+
return is.makeRotationFromQuaternion(A), this.applyMatrix4(is), this;
|
|
33509
33509
|
}
|
|
33510
33510
|
rotateX(A) {
|
|
33511
|
-
return
|
|
33511
|
+
return is.makeRotationX(A), this.applyMatrix4(is), this;
|
|
33512
33512
|
}
|
|
33513
33513
|
rotateY(A) {
|
|
33514
|
-
return
|
|
33514
|
+
return is.makeRotationY(A), this.applyMatrix4(is), this;
|
|
33515
33515
|
}
|
|
33516
33516
|
rotateZ(A) {
|
|
33517
|
-
return
|
|
33517
|
+
return is.makeRotationZ(A), this.applyMatrix4(is), this;
|
|
33518
33518
|
}
|
|
33519
33519
|
translate(A, e, t) {
|
|
33520
|
-
return
|
|
33520
|
+
return is.makeTranslation(A, e, t), this.applyMatrix4(is), this;
|
|
33521
33521
|
}
|
|
33522
33522
|
scale(A, e, t) {
|
|
33523
|
-
return
|
|
33523
|
+
return is.makeScale(A, e, t), this.applyMatrix4(is), this;
|
|
33524
33524
|
}
|
|
33525
33525
|
lookAt(A) {
|
|
33526
33526
|
return eM.lookAt(A), eM.updateMatrix(), this.applyMatrix4(eM.matrix), this;
|
|
@@ -33590,7 +33590,7 @@ class an extends em {
|
|
|
33590
33590
|
return;
|
|
33591
33591
|
}
|
|
33592
33592
|
const t = e.position, i = e.normal, I = e.uv;
|
|
33593
|
-
this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new
|
|
33593
|
+
this.hasAttribute("tangent") === !1 && this.setAttribute("tangent", new Oo(new Float32Array(4 * t.count), 4));
|
|
33594
33594
|
const o = this.getAttribute("tangent"), s = [], n = [];
|
|
33595
33595
|
for (let G = 0; G < t.count; G++)
|
|
33596
33596
|
s[G] = new cA(), n[G] = new cA();
|
|
@@ -33633,7 +33633,7 @@ class an extends em {
|
|
|
33633
33633
|
if (e !== void 0) {
|
|
33634
33634
|
let t = this.getAttribute("normal");
|
|
33635
33635
|
if (t === void 0)
|
|
33636
|
-
t = new
|
|
33636
|
+
t = new Oo(new Float32Array(e.count * 3), 3), this.setAttribute("normal", t);
|
|
33637
33637
|
else
|
|
33638
33638
|
for (let Q = 0, E = t.count; Q < E; Q++)
|
|
33639
33639
|
t.setXYZ(Q, 0, 0, 0);
|
|
@@ -33663,7 +33663,7 @@ class an extends em {
|
|
|
33663
33663
|
for (let l = 0; l < a; l++)
|
|
33664
33664
|
Q[c++] = C[E++];
|
|
33665
33665
|
}
|
|
33666
|
-
return new
|
|
33666
|
+
return new Oo(Q, a, r);
|
|
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 QP extends rP {
|
|
|
34180
34180
|
return e.object.zoom = this.zoom, e.object.left = this.left, e.object.right = this.right, e.object.top = this.top, e.object.bottom = this.bottom, e.object.near = this.near, e.object.far = this.far, this.view !== null && (e.object.view = Object.assign({}, this.view)), e;
|
|
34181
34181
|
}
|
|
34182
34182
|
}
|
|
34183
|
-
class liA extends
|
|
34183
|
+
class liA extends hg {
|
|
34184
34184
|
constructor(A, e, t, i, I, o, s, n, C, a) {
|
|
34185
34185
|
if (a = a !== void 0 ? a : xG, a !== xG && a !== tL)
|
|
34186
34186
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
@@ -34333,7 +34333,7 @@ class iK {
|
|
|
34333
34333
|
for (let I = 0; I < this.itemSize; I++)
|
|
34334
34334
|
e.push(this.data.array[i + I]);
|
|
34335
34335
|
}
|
|
34336
|
-
return new
|
|
34336
|
+
return new Oo(new this.array.constructor(e), this.itemSize, this.normalized);
|
|
34337
34337
|
} else
|
|
34338
34338
|
return A.interleavedBuffers === void 0 && (A.interleavedBuffers = {}), A.interleavedBuffers[this.data.uuid] === void 0 && (A.interleavedBuffers[this.data.uuid] = this.data.clone(A)), new iK(A.interleavedBuffers[this.data.uuid], this.itemSize, this.offset, this.normalized);
|
|
34339
34339
|
}
|
|
@@ -34426,7 +34426,7 @@ class EP extends Zi {
|
|
|
34426
34426
|
super(), this.isBone = !0, this.type = "Bone";
|
|
34427
34427
|
}
|
|
34428
34428
|
}
|
|
34429
|
-
class gK extends
|
|
34429
|
+
class gK extends hg {
|
|
34430
34430
|
constructor(A = null, e = 1, t = 1, i, I, o, s, n, C = qQ, a = qQ, r, Q) {
|
|
34431
34431
|
super(null, o, s, n, C, a, i, I, r, Q), this.isDataTexture = !0, this.image = { data: A, width: e, height: t }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
34432
34432
|
}
|
|
@@ -34522,7 +34522,7 @@ class IK {
|
|
|
34522
34522
|
return A;
|
|
34523
34523
|
}
|
|
34524
34524
|
}
|
|
34525
|
-
class tF extends
|
|
34525
|
+
class tF extends Oo {
|
|
34526
34526
|
constructor(A, e, t, i = 1) {
|
|
34527
34527
|
super(A, e, t), this.isInstancedBufferAttribute = !0, this.meshPerAttribute = i;
|
|
34528
34528
|
}
|
|
@@ -34775,7 +34775,7 @@ function YL(g, A, e, t, i, I, o) {
|
|
|
34775
34775
|
});
|
|
34776
34776
|
}
|
|
34777
34777
|
}
|
|
34778
|
-
class im extends
|
|
34778
|
+
class im extends hg {
|
|
34779
34779
|
constructor(A, e, t, i, I, o, s, n, C, a, r, Q) {
|
|
34780
34780
|
super(null, o, s, n, C, a, i, I, r, Q), this.isCompressedTexture = !0, this.image = { width: e, height: t }, this.mipmaps = A, this.flipY = !1, this.generateMipmaps = !1;
|
|
34781
34781
|
}
|
|
@@ -35668,7 +35668,7 @@ class uP extends gB {
|
|
|
35668
35668
|
super(A);
|
|
35669
35669
|
}
|
|
35670
35670
|
load(A, e, t, i) {
|
|
35671
|
-
const I = new
|
|
35671
|
+
const I = new hg(), o = new TiA(this.manager);
|
|
35672
35672
|
return o.setCrossOrigin(this.crossOrigin), o.setPath(this.path), o.load(A, function(s) {
|
|
35673
35673
|
I.image = s, I.needsUpdate = !0, e !== void 0 && e(I);
|
|
35674
35674
|
}, t, i), I;
|
|
@@ -36288,9 +36288,9 @@ let IgA = class extends gB {
|
|
|
36288
36288
|
}
|
|
36289
36289
|
_createGeometry(A) {
|
|
36290
36290
|
const e = new an();
|
|
36291
|
-
A.index && e.setIndex(new
|
|
36291
|
+
A.index && e.setIndex(new Oo(A.index.array, 1));
|
|
36292
36292
|
for (let t = 0; t < A.attributes.length; t++) {
|
|
36293
|
-
const i = A.attributes[t], I = i.name, o = i.array, s = i.itemSize, n = new
|
|
36293
|
+
const i = A.attributes[t], I = i.name, o = i.array, s = i.itemSize, n = new Oo(o, s);
|
|
36294
36294
|
I === "color" && (this._assignVertexColorSpace(n, i.vertexColorSpace), n.normalized = !(o instanceof Float32Array)), e.setAttribute(I, n);
|
|
36295
36295
|
}
|
|
36296
36296
|
return e;
|
|
@@ -38045,7 +38045,7 @@ let $gA = class {
|
|
|
38045
38045
|
const e = this, t = this.json, i = this.json.accessors[A];
|
|
38046
38046
|
if (i.bufferView === void 0 && i.sparse === void 0) {
|
|
38047
38047
|
const o = dM[i.type], s = Zc[i.componentType], n = i.normalized === !0, C = new s(i.count * o);
|
|
38048
|
-
return Promise.resolve(new
|
|
38048
|
+
return Promise.resolve(new Oo(C, o, n));
|
|
38049
38049
|
}
|
|
38050
38050
|
const I = [];
|
|
38051
38051
|
return i.bufferView !== void 0 ? I.push(this.getDependency("bufferView", i.bufferView)) : I.push(null), i.sparse !== void 0 && (I.push(this.getDependency("bufferView", i.sparse.indices.bufferView)), I.push(this.getDependency("bufferView", i.sparse.values.bufferView))), Promise.all(I).then(function(o) {
|
|
@@ -38056,10 +38056,10 @@ let $gA = class {
|
|
|
38056
38056
|
let u = e.cache.get(p);
|
|
38057
38057
|
u || (d = new C(s, l * E, i.count * E / a), u = new uiA(d, E / a), e.cache.add(p, u)), h = new iK(u, n, Q % E / a, c);
|
|
38058
38058
|
} else
|
|
38059
|
-
s === null ? d = new C(i.count * n) : d = new C(s, Q, i.count * n), h = new
|
|
38059
|
+
s === null ? d = new C(i.count * n) : d = new C(s, Q, i.count * n), h = new Oo(d, n, c);
|
|
38060
38060
|
if (i.sparse !== void 0) {
|
|
38061
38061
|
const l = dM.SCALAR, p = Zc[i.sparse.indices.componentType], u = i.sparse.indices.byteOffset || 0, f = i.sparse.values.byteOffset || 0, w = new p(o[1], u, i.sparse.count * l), m = new C(o[2], f, i.sparse.count * n);
|
|
38062
|
-
s !== null && (h = new
|
|
38062
|
+
s !== null && (h = new Oo(h.array.slice(), h.itemSize, h.normalized));
|
|
38063
38063
|
for (let M = 0, G = w.length; M < G; M++) {
|
|
38064
38064
|
const F = w[M];
|
|
38065
38065
|
if (h.setX(F, m[M * n]), n >= 2 && h.setY(F, m[M * n + 1]), n >= 3 && h.setZ(F, m[M * n + 2]), n >= 4 && h.setW(F, m[M * n + 3]), n >= 5)
|
|
@@ -38114,7 +38114,7 @@ let $gA = class {
|
|
|
38114
38114
|
return new Promise(function(Q, E) {
|
|
38115
38115
|
let c = Q;
|
|
38116
38116
|
e.isImageBitmapLoader === !0 && (c = function(d) {
|
|
38117
|
-
const h = new
|
|
38117
|
+
const h = new hg(d);
|
|
38118
38118
|
h.needsUpdate = !0, Q(h);
|
|
38119
38119
|
}), e.load(ou.resolveURL(r, I.path), c, void 0, E);
|
|
38120
38120
|
});
|
|
@@ -38445,7 +38445,7 @@ let $gA = class {
|
|
|
38445
38445
|
const C = (a) => {
|
|
38446
38446
|
const r = /* @__PURE__ */ new Map();
|
|
38447
38447
|
for (const [Q, E] of i.associations)
|
|
38448
|
-
(Q instanceof _r || Q instanceof
|
|
38448
|
+
(Q instanceof _r || Q instanceof hg) && r.set(Q, E);
|
|
38449
38449
|
return a.traverse((Q) => {
|
|
38450
38450
|
const E = i.associations.get(Q);
|
|
38451
38451
|
E != null && r.set(Q, E);
|
|
@@ -38571,7 +38571,7 @@ function i_(g, A, e) {
|
|
|
38571
38571
|
});
|
|
38572
38572
|
i.push(o);
|
|
38573
38573
|
}
|
|
38574
|
-
return
|
|
38574
|
+
return Uo.workingColorSpace !== uo && "COLOR_0" in t && console.warn(`THREE.GLTFLoader: Converting vertex colors from "srgb-linear" to "${Uo.workingColorSpace}" not supported.`), dr(g, A), AIA(g, A, e), Promise.all(i).then(function() {
|
|
38575
38575
|
return A.targets !== void 0 ? jgA(g, A.targets, e) : g;
|
|
38576
38576
|
});
|
|
38577
38577
|
}
|
|
@@ -38742,7 +38742,7 @@ const AI = class {
|
|
|
38742
38742
|
return o;
|
|
38743
38743
|
});
|
|
38744
38744
|
}
|
|
38745
|
-
if (g instanceof
|
|
38745
|
+
if (g instanceof hg || g.isTexture === !0) {
|
|
38746
38746
|
const e = g;
|
|
38747
38747
|
return this.assignTextureLODForSlot(e, A, null, null);
|
|
38748
38748
|
}
|
|
@@ -38823,7 +38823,7 @@ const AI = class {
|
|
|
38823
38823
|
e && console.log(`LOD ${A} was already loading/loaded: ${r}`);
|
|
38824
38824
|
let h = await Q.catch((p) => (console.error(`Error loading LOD ${A} from ${a}
|
|
38825
38825
|
`, p), null)), l = !1;
|
|
38826
|
-
if (h == null || (h instanceof
|
|
38826
|
+
if (h == null || (h instanceof hg && g instanceof hg ? (o = h.image) != null && o.data || (s = h.source) != null && s.data ? h = this.copySettings(g, h) : (l = !0, this.previouslyLoaded.delete(r)) : h instanceof an && g instanceof an && ((n = h.attributes.position) != null && n.array || (l = !0, this.previouslyLoaded.delete(r)))), !l)
|
|
38827
38827
|
return h;
|
|
38828
38828
|
}
|
|
38829
38829
|
const E = I, c = new Promise(async (h, l) => {
|
|
@@ -38855,7 +38855,7 @@ const AI = class {
|
|
|
38855
38855
|
}
|
|
38856
38856
|
if (M) {
|
|
38857
38857
|
let G = await w.getDependency("texture", m);
|
|
38858
|
-
return G && AI.assignLODInformation(t.url, G, i, A, void 0, void 0), e && console.log('change "' + g.name + '" → "' + G.name + '"', a, m, G, r), g instanceof
|
|
38858
|
+
return G && AI.assignLODInformation(t.url, G, i, A, void 0, void 0), e && console.log('change "' + g.name + '" → "' + G.name + '"', a, m, G, r), g instanceof hg && (G = this.copySettings(g, G)), G && (G.guid = E.guid), h(G);
|
|
38859
38859
|
} else
|
|
38860
38860
|
zg && console.warn("Could not find texture with guid", E.guid);
|
|
38861
38861
|
}
|
|
@@ -38892,7 +38892,7 @@ const AI = class {
|
|
|
38892
38892
|
return h(null);
|
|
38893
38893
|
});
|
|
38894
38894
|
return this.previouslyLoaded.set(r, c), await c;
|
|
38895
|
-
} else if (g instanceof
|
|
38895
|
+
} else if (g instanceof hg) {
|
|
38896
38896
|
e && console.log("Load texture from uri: " + a);
|
|
38897
38897
|
const Q = await new uP().loadAsync(a);
|
|
38898
38898
|
return Q ? (Q.guid = I.guid, Q.flipY = !1, Q.needsUpdate = !0, Q.colorSpace = g.colorSpace, e && console.log(I, Q)) : zg && console.warn("failed loading", a), Q;
|
|
@@ -39136,12 +39136,12 @@ const fM = QK("debugprogressive"), gIA = QK("noprogressive"), I_ = Symbol("Needl
|
|
|
39136
39136
|
return I;
|
|
39137
39137
|
}
|
|
39138
39138
|
};
|
|
39139
|
-
let
|
|
39140
|
-
|
|
39141
|
-
|
|
39142
|
-
|
|
39143
|
-
|
|
39144
|
-
|
|
39139
|
+
let xo = ns;
|
|
39140
|
+
xo.corner0 = new cA();
|
|
39141
|
+
xo.corner1 = new cA();
|
|
39142
|
+
xo.corner2 = new cA();
|
|
39143
|
+
xo.corner3 = new cA();
|
|
39144
|
+
xo._tempPtInside = new cA();
|
|
39145
39145
|
class IIA {
|
|
39146
39146
|
constructor() {
|
|
39147
39147
|
this.lastLodLevel = 0, this.lastScreenCoverage = 0, this.lastScreenspaceVolume = new cA(), this.lastCentrality = 0;
|
|
@@ -39158,8 +39158,8 @@ function oIA(g) {
|
|
|
39158
39158
|
}
|
|
39159
39159
|
if (A) {
|
|
39160
39160
|
console.log("Adding Needle LODs to modelviewer");
|
|
39161
|
-
const t =
|
|
39162
|
-
if (
|
|
39161
|
+
const t = xo.get(A);
|
|
39162
|
+
if (xo.addPlugin(new sIA(g)), t.enable(), e) {
|
|
39163
39163
|
const i = e.camera || e.traverse((I) => I.type == "PerspectiveCamera")[0];
|
|
39164
39164
|
i && A.render(e, i);
|
|
39165
39165
|
}
|
|
@@ -39235,7 +39235,7 @@ class sIA {
|
|
|
39235
39235
|
}
|
|
39236
39236
|
function VwA(g, A, e, t) {
|
|
39237
39237
|
KP(A), JP(e), e.register((I) => new wt(I, g));
|
|
39238
|
-
const i =
|
|
39238
|
+
const i = xo.get(A);
|
|
39239
39239
|
return (t == null ? void 0 : t.enableLODsManager) !== !1 && i.enable(), i;
|
|
39240
39240
|
}
|
|
39241
39241
|
document.addEventListener("DOMContentLoaded", () => {
|
|
@@ -39362,7 +39362,7 @@ class cK extends nI {
|
|
|
39362
39362
|
return this.workerLimit = A, this;
|
|
39363
39363
|
}
|
|
39364
39364
|
load(A, e, t, i) {
|
|
39365
|
-
const I = new
|
|
39365
|
+
const I = new ug(this.manager);
|
|
39366
39366
|
I.setPath(this.path), I.setResponseType("arraybuffer"), I.setRequestHeader(this.requestHeader), I.setWithCredentials(this.withCredentials), I.load(A, (o) => {
|
|
39367
39367
|
this.parse(o, e, i);
|
|
39368
39368
|
}, t, i);
|
|
@@ -39420,7 +39420,7 @@ class cK extends nI {
|
|
|
39420
39420
|
t.fromBufferAttribute(A, i).convertSRGBToLinear(), A.setXYZ(i, t.r, t.g, t.b);
|
|
39421
39421
|
}
|
|
39422
39422
|
_loadLibrary(A, e) {
|
|
39423
|
-
const t = new
|
|
39423
|
+
const t = new ug(this.manager);
|
|
39424
39424
|
return t.setPath(this.decoderPath), t.setResponseType(e), t.setWithCredentials(this.withCredentials), new Promise((i, I) => {
|
|
39425
39425
|
t.load(A, i, void 0, I);
|
|
39426
39426
|
});
|
|
@@ -39752,9 +39752,9 @@ class on extends nI {
|
|
|
39752
39752
|
}
|
|
39753
39753
|
init() {
|
|
39754
39754
|
if (!this.transcoderPending) {
|
|
39755
|
-
const A = new
|
|
39755
|
+
const A = new ug(this.manager);
|
|
39756
39756
|
A.setPath(this.transcoderPath), A.setWithCredentials(this.withCredentials);
|
|
39757
|
-
const e = A.loadAsync("basis_transcoder.js"), t = new
|
|
39757
|
+
const e = A.loadAsync("basis_transcoder.js"), t = new ug(this.manager);
|
|
39758
39758
|
t.setPath(this.transcoderPath), t.setResponseType("arraybuffer"), t.setWithCredentials(this.withCredentials);
|
|
39759
39759
|
const i = t.loadAsync("basis_transcoder.wasm");
|
|
39760
39760
|
this.transcoderPending = Promise.all([e, i]).then(([I, o]) => {
|
|
@@ -39782,7 +39782,7 @@ class on extends nI {
|
|
|
39782
39782
|
load(A, e, t, i) {
|
|
39783
39783
|
if (this.workerConfig === null)
|
|
39784
39784
|
throw new Error("THREE.KTX2Loader: Missing initialization with `.detectSupport( renderer )`.");
|
|
39785
|
-
const I = new
|
|
39785
|
+
const I = new ug(this.manager);
|
|
39786
39786
|
I.setResponseType("arraybuffer"), I.setWithCredentials(this.withCredentials), I.load(A, (o) => {
|
|
39787
39787
|
if (SM.has(o))
|
|
39788
39788
|
return SM.get(o).promise.then(e).catch(i);
|
|
@@ -40241,7 +40241,7 @@ class Tp extends nI {
|
|
|
40241
40241
|
this.manager.itemStart(A);
|
|
40242
40242
|
const s = function(C) {
|
|
40243
40243
|
i ? i(C) : console.error(C), I.manager.itemError(A), I.manager.itemEnd(A);
|
|
40244
|
-
}, n = new
|
|
40244
|
+
}, n = new ug(this.manager);
|
|
40245
40245
|
n.setPath(this.path), n.setResponseType("arraybuffer"), n.setRequestHeader(this.requestHeader), n.setWithCredentials(this.withCredentials), n.load(A, function(C) {
|
|
40246
40246
|
try {
|
|
40247
40247
|
I.parse(C, o, function(a) {
|
|
@@ -40926,7 +40926,7 @@ function jIA(g) {
|
|
|
40926
40926
|
roughness: 1,
|
|
40927
40927
|
transparent: !1,
|
|
40928
40928
|
depthTest: !0,
|
|
40929
|
-
side:
|
|
40929
|
+
side: pg
|
|
40930
40930
|
})), g.DefaultMaterial;
|
|
40931
40931
|
}
|
|
40932
40932
|
function FB(g, A, e) {
|
|
@@ -41021,7 +41021,7 @@ class AoA {
|
|
|
41021
41021
|
constructor(A = {}, e = {}) {
|
|
41022
41022
|
this.json = A, this.extensions = {}, this.plugins = {}, this.options = e, this.cache = new wIA(), 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 t = !1, i = !1, I = -1;
|
|
41024
|
-
typeof navigator < "u" && (t = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) === !0, i = navigator.userAgent.indexOf("Firefox") > -1, I = i ? navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1] : -1), typeof createImageBitmap > "u" || t || i && I < 98 ? this.textureLoader = new Qa(this.options.manager) : this.textureLoader = new bO(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new
|
|
41024
|
+
typeof navigator < "u" && (t = /^((?!chrome|android).)*safari/i.test(navigator.userAgent) === !0, i = navigator.userAgent.indexOf("Firefox") > -1, I = i ? navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1] : -1), typeof createImageBitmap > "u" || t || i && I < 98 ? this.textureLoader = new Qa(this.options.manager) : this.textureLoader = new bO(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.textureLoader.setRequestHeader(this.options.requestHeader), this.fileLoader = new ug(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
|
|
41025
41025
|
}
|
|
41026
41026
|
setExtensions(A) {
|
|
41027
41027
|
this.extensions = A;
|
|
@@ -41247,7 +41247,7 @@ class AoA {
|
|
|
41247
41247
|
if (E && E !== r) {
|
|
41248
41248
|
const l = Math.floor(Q / E), p = "InterleavedBuffer:" + i.bufferView + ":" + i.componentType + ":" + l + ":" + i.count;
|
|
41249
41249
|
let u = e.cache.get(p);
|
|
41250
|
-
u || (d = new C(s, l * E, i.count * E / a), u = new Np(d, E / a), e.cache.add(p, u)), h = new
|
|
41250
|
+
u || (d = new C(s, l * E, i.count * E / a), u = new Np(d, E / a), e.cache.add(p, u)), h = new qo(u, n, Q % E / a, c);
|
|
41251
41251
|
} else
|
|
41252
41252
|
s === null ? d = new C(i.count * n) : d = new C(s, Q, i.count * n), h = new ie(d, n, c);
|
|
41253
41253
|
if (i.sparse !== void 0) {
|
|
@@ -41461,9 +41461,9 @@ class AoA {
|
|
|
41461
41461
|
let l;
|
|
41462
41462
|
const p = C[E];
|
|
41463
41463
|
if (h.mode === cs.TRIANGLES || h.mode === cs.TRIANGLE_STRIP || h.mode === cs.TRIANGLE_FAN || h.mode === void 0)
|
|
41464
|
-
l = I.isSkinnedMesh === !0 ? new
|
|
41464
|
+
l = I.isSkinnedMesh === !0 ? new Yo(d, p) : new uA(d, p), l.isSkinnedMesh === !0 && l.normalizeSkinWeights(), h.mode === cs.TRIANGLE_STRIP ? l.geometry = E_(l.geometry, vN) : h.mode === cs.TRIANGLE_FAN && (l.geometry = E_(l.geometry, jy));
|
|
41465
41465
|
else if (h.mode === cs.LINES)
|
|
41466
|
-
l = new
|
|
41466
|
+
l = new jo(d, p);
|
|
41467
41467
|
else if (h.mode === cs.LINE_STRIP)
|
|
41468
41468
|
l = new Wi(d, p);
|
|
41469
41469
|
else if (h.mode === cs.LINE_LOOP)
|
|
@@ -41500,7 +41500,7 @@ class AoA {
|
|
|
41500
41500
|
console.warn("THREE.GLTFLoader: Missing camera parameters.");
|
|
41501
41501
|
return;
|
|
41502
41502
|
}
|
|
41503
|
-
return t.type === "perspective" ? e = new Te(
|
|
41503
|
+
return t.type === "perspective" ? e = new Te(dg.radToDeg(i.yfov), i.aspectRatio || 1, i.znear || 1, i.zfar || 2e6) : t.type === "orthographic" && (e = new Ga(-i.xmag, i.xmag, i.ymag, -i.ymag, i.znear, i.zfar)), t.name && (e.name = this.createUniqueName(t.name)), ur(e, t), Promise.resolve(e);
|
|
41504
41504
|
}
|
|
41505
41505
|
/**
|
|
41506
41506
|
* Specification: https://github.com/KhronosGroup/glTF/tree/master/specification/2.0#skins
|
|
@@ -42530,11 +42530,11 @@ const $B = class {
|
|
|
42530
42530
|
this._isDynamic = A;
|
|
42531
42531
|
}
|
|
42532
42532
|
static createEmptyParent(A) {
|
|
42533
|
-
const e = new $B(
|
|
42533
|
+
const e = new $B(dg.generateUUID(), A.name + "_empty_" + $B.USDObject_export_id++, A.matrix), t = A.parent;
|
|
42534
42534
|
return t && t.add(e), e.add(A), e.isDynamic = !0, A.matrix = new GA().identity(), e;
|
|
42535
42535
|
}
|
|
42536
42536
|
static createEmpty() {
|
|
42537
|
-
const A = new $B(
|
|
42537
|
+
const A = new $B(dg.generateUUID(), "Empty_" + $B.USDObject_export_id++, new GA());
|
|
42538
42538
|
return A.isDynamic = !0, A;
|
|
42539
42539
|
}
|
|
42540
42540
|
is(A) {
|
|
@@ -42544,7 +42544,7 @@ const $B = class {
|
|
|
42544
42544
|
return !this.geometry;
|
|
42545
42545
|
}
|
|
42546
42546
|
clone() {
|
|
42547
|
-
const A = new $B(
|
|
42547
|
+
const A = new $B(dg.generateUUID(), this.name, this.matrix, this.geometry, this.material);
|
|
42548
42548
|
return A.isDynamic = this.isDynamic, A;
|
|
42549
42549
|
}
|
|
42550
42550
|
deepClone() {
|
|
@@ -42731,7 +42731,7 @@ let moA = class {
|
|
|
42731
42731
|
It.report("export-usdz", "Invoking onBeforeBuildDocument"), await hy(t, "onBeforeBuildDocument"), It.report("export-usdz", "Done onBeforeBuildDocument"), It.report("export-usdz", "Reparent bones to common ancestor");
|
|
42732
42732
|
const n = [];
|
|
42733
42733
|
A == null || A.traverse((d) => {
|
|
42734
|
-
if (!(!e.exportInvisible && !d.visible) && d instanceof
|
|
42734
|
+
if (!(!e.exportInvisible && !d.visible) && d instanceof Yo) {
|
|
42735
42735
|
const h = d.skeleton.bones, l = n4(h);
|
|
42736
42736
|
l && n.push({ object: d, originalParent: d.parent, newParent: l });
|
|
42737
42737
|
}
|
|
@@ -42794,8 +42794,8 @@ function r4(g, A, e, t) {
|
|
|
42794
42794
|
if (!e.exportInvisible && !g.visible)
|
|
42795
42795
|
return;
|
|
42796
42796
|
let i, I, o;
|
|
42797
|
-
if ((g instanceof uA || g instanceof
|
|
42798
|
-
const s = tw(g), n = g instanceof
|
|
42797
|
+
if ((g instanceof uA || g instanceof Yo) && (I = g.geometry, o = g.material), t && !t(g) && (I = void 0, o = void 0), (g instanceof uA || g instanceof Yo) && o && (o instanceof VI || o instanceof tt)) {
|
|
42798
|
+
const s = tw(g), n = g instanceof Yo ? g : null;
|
|
42799
42799
|
i = new Qo(g.uuid, s, g.matrix, I, o, void 0, n, g.animations);
|
|
42800
42800
|
} else if (g instanceof Te || g instanceof Ga) {
|
|
42801
42801
|
const s = tw(g);
|
|
@@ -42875,7 +42875,7 @@ async function hy(g, A, e = null) {
|
|
|
42875
42875
|
}
|
|
42876
42876
|
let Aw = null, LI = null, qM, ic, ew;
|
|
42877
42877
|
async function GoA(g, A = 1 / 0, e = null, t = void 0) {
|
|
42878
|
-
qM || (qM = new
|
|
42878
|
+
qM || (qM = new sg(2, 2, 1, 1)), ic || (ic = new be({
|
|
42879
42879
|
uniforms: {
|
|
42880
42880
|
blitTexture: new SA(g),
|
|
42881
42881
|
flipY: new SA(!1),
|
|
@@ -43356,8 +43356,8 @@ const Fx = class {
|
|
|
43356
43356
|
t.appendLine(), this.action.writeTo(e, t), t.closeBlock();
|
|
43357
43357
|
}
|
|
43358
43358
|
};
|
|
43359
|
-
let
|
|
43360
|
-
B(
|
|
43359
|
+
let lg = Fx;
|
|
43360
|
+
B(lg, "global_id", 0);
|
|
43361
43361
|
const gc = /* @__PURE__ */ new Set();
|
|
43362
43362
|
function pF(g, A) {
|
|
43363
43363
|
var t, i;
|
|
@@ -43431,6 +43431,7 @@ class nQ {
|
|
|
43431
43431
|
B(this, "loops", 0);
|
|
43432
43432
|
B(this, "performCount", 1);
|
|
43433
43433
|
B(this, "type", "serial");
|
|
43434
|
+
B(this, "multiplePerformOperation");
|
|
43434
43435
|
this.id = A, this.actions = e;
|
|
43435
43436
|
}
|
|
43436
43437
|
static getId() {
|
|
@@ -43459,7 +43460,7 @@ class nQ {
|
|
|
43459
43460
|
const i = t === this.actions[this.actions.length - 1];
|
|
43460
43461
|
e.appendLine("<" + t.id + ">" + (i ? "" : ", "));
|
|
43461
43462
|
}
|
|
43462
|
-
e.closeArray(), e.appendLine(), e.appendLine('token info:id = "Group"'), e.appendLine(`bool loops = ${this.loops}`), e.appendLine(`int performCount = ${this.loops > 0 ? 0 : Math.max(0, this.performCount)}`), e.appendLine(`token type = "${this.type}"`), e.appendLine();
|
|
43463
|
+
e.closeArray(), e.appendLine(), e.appendLine('token info:id = "Group"'), e.appendLine(`bool loops = ${this.loops}`), e.appendLine(`int performCount = ${this.loops > 0 ? 0 : Math.max(0, this.performCount)}`), e.appendLine(`token type = "${this.type}"`), typeof this.multiplePerformOperation == "string" && e.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), e.appendLine();
|
|
43463
43464
|
for (const t of this.actions)
|
|
43464
43465
|
t && (t.writeTo(A, e), e.appendLine());
|
|
43465
43466
|
e.closeBlock();
|
|
@@ -43500,8 +43501,8 @@ const VS = class {
|
|
|
43500
43501
|
e.beginBlock(`def Preliminary_Action "${this.id}"`), this.affectedObjects && (typeof this.affectedObjects != "string" && (this.affectedObjects = pF(this.affectedObjects, A)), e.appendLine("rel affectedObjects = " + this.affectedObjects)), typeof this.duration == "number" && (typeof this.animationSpeed == "number" && this.animationSpeed !== 1 ? e.appendLine(`double duration = ${this.duration / this.animationSpeed} `) : e.appendLine(`double duration = ${this.duration} `)), this.easeType && e.appendLine(`token easeType = "${this.easeType}"`), this.tokenId && e.appendLine(`token info:id = "${this.tokenId}"`), this.tokenId === "ChangeScene" && e.appendLine("rel scene = </StageRoot/Scenes/Scene>"), this.motionType !== void 0 && e.appendLine(`token motionType = "${this.motionType}"`), typeof this.moveDistance == "number" && e.appendLine(`double moveDistance = ${this.moveDistance} `), this.style && e.appendLine(`token style = "${this.style}"`), this.type && e.appendLine(`token type = "${this.type}"`), this.front && e.appendLine(`vector3d front = (${this.front.x}, ${this.front.y}, ${this.front.z})`), this.up && e.appendLine(`vector3d upVector = (${this.up.x}, ${this.up.y}, ${this.up.z})`), typeof this.start == "number" && e.appendLine(`double start = ${this.start} `), typeof this.animationSpeed == "number" && e.appendLine(`double animationSpeed = ${this.animationSpeed.toFixed(2)} `), typeof this.reversed == "boolean" && e.appendLine(`bool reversed = ${this.reversed}`), typeof this.pingPong == "boolean" && e.appendLine(`bool reverses = ${this.pingPong}`), this.xFormTarget && (typeof this.xFormTarget != "string" && (this.xFormTarget = pF(this.xFormTarget, A)), e.appendLine(`rel xformTarget = ${this.xFormTarget}`)), typeof this.audio == "string" && e.appendLine(`asset audio = @${this.audio}@`), typeof this.gain == "number" && e.appendLine(`double gain = ${this.gain}`), typeof this.auralMode == "string" && e.appendLine(`token auralMode = "${this.auralMode}"`), typeof this.multiplePerformOperation == "string" && e.appendLine(`token multiplePerformOperation = "${this.multiplePerformOperation}"`), typeof this.velocity == "object" && e.appendLine(`vector3d velocity = (${this.velocity.x}, ${this.velocity.y}, ${this.velocity.z})`), e.closeBlock();
|
|
43501
43502
|
}
|
|
43502
43503
|
};
|
|
43503
|
-
let
|
|
43504
|
-
B(
|
|
43504
|
+
let Jo = VS;
|
|
43505
|
+
B(Jo, "global_id", 0);
|
|
43505
43506
|
let xc = class pc {
|
|
43506
43507
|
constructor(A, e, t) {
|
|
43507
43508
|
B(this, "x", 0);
|
|
@@ -43533,7 +43534,7 @@ class dt {
|
|
|
43533
43534
|
return new nQ("Group_" + nQ.getId(), A).makeParallel();
|
|
43534
43535
|
}
|
|
43535
43536
|
static fadeAction(A, e, t) {
|
|
43536
|
-
const i = new
|
|
43537
|
+
const i = new Jo(A);
|
|
43537
43538
|
return i.tokenId = "Visibility", i.type = t ? "show" : "hide", i.duration = e, i.style = "basic", i.motionType = "none", i.moveDistance = 0, i.easeType = "none", i;
|
|
43538
43539
|
}
|
|
43539
43540
|
/**
|
|
@@ -43542,7 +43543,7 @@ class dt {
|
|
|
43542
43543
|
* @param duration in seconds! 0 means play to end
|
|
43543
43544
|
*/
|
|
43544
43545
|
static startAnimationAction(A, e, t = 0, i = 1, I = !1, o = !1) {
|
|
43545
|
-
const s = new
|
|
43546
|
+
const s = new Jo(A);
|
|
43546
43547
|
if (s.tokenId = "StartAnimation", s.start = e, s.duration = t, s.animationSpeed = i, s.reversed = I, s.pingPong = o, s.multiplePerformOperation = "allow", I && (s.start -= t), o) {
|
|
43547
43548
|
s.pingPong = !1;
|
|
43548
43549
|
const n = s.clone();
|
|
@@ -43551,28 +43552,28 @@ class dt {
|
|
|
43551
43552
|
return s;
|
|
43552
43553
|
}
|
|
43553
43554
|
static waitAction(A) {
|
|
43554
|
-
const e = new
|
|
43555
|
+
const e = new Jo();
|
|
43555
43556
|
return e.tokenId = "Wait", e.duration = A, e.motionType = void 0, e;
|
|
43556
43557
|
}
|
|
43557
43558
|
static lookAtCameraAction(A, e, t, i) {
|
|
43558
|
-
const I = new
|
|
43559
|
+
const I = new Jo(A);
|
|
43559
43560
|
return I.tokenId = "LookAtCamera", I.duration = e === void 0 ? 9999999999999 : e, I.front = t ?? xc.forward, I.up = i ?? xc.up, I;
|
|
43560
43561
|
}
|
|
43561
43562
|
static emphasize(A, e, t = "bounce", i = 1, I = "basic") {
|
|
43562
|
-
const o = new
|
|
43563
|
+
const o = new Jo(A);
|
|
43563
43564
|
return o.tokenId = "Emphasize", o.duration = e, o.style = I ?? "basic", o.motionType = t, o.moveDistance = i, o;
|
|
43564
43565
|
}
|
|
43565
43566
|
static transformAction(A, e, t, i, I = "inout") {
|
|
43566
|
-
const o = new
|
|
43567
|
+
const o = new Jo(A);
|
|
43567
43568
|
return o.tokenId = "Transform", o.duration = t, o.duration = Math.max(1e-6, t), o.type = i, o.easeType = t > 0 ? I : "none", Array.isArray(e) && console.error("Transform target must not be an array", e), o.xFormTarget = e, o;
|
|
43568
43569
|
}
|
|
43569
43570
|
static playAudioAction(A, e, t = "play", i = 1, I = "spatial") {
|
|
43570
|
-
const o = new
|
|
43571
|
+
const o = new Jo(A);
|
|
43571
43572
|
return o.tokenId = "Audio", o.type = t, o.audio = e, o.gain = i, o.auralMode = I, o.multiplePerformOperation = "allow", o;
|
|
43572
43573
|
}
|
|
43573
43574
|
// Supported only on VisionOS, Preliminary Behaviours can affect RealityKit physics as well
|
|
43574
43575
|
static impulseAction(A, e) {
|
|
43575
|
-
const t = new
|
|
43576
|
+
const t = new Jo(A);
|
|
43576
43577
|
return t.tokenId = "Impulse", t.velocity = e, t;
|
|
43577
43578
|
}
|
|
43578
43579
|
// Currently doesn't work on VisionOS, see FB13761990
|
|
@@ -44095,7 +44096,7 @@ class pK extends fA {
|
|
|
44095
44096
|
class OoA extends uA {
|
|
44096
44097
|
constructor() {
|
|
44097
44098
|
super(
|
|
44098
|
-
new
|
|
44099
|
+
new sg(1e5, 1e5, 2, 2),
|
|
44099
44100
|
new tt({ visible: !1, wireframe: !0, side: pt, transparent: !0, opacity: 0.1, toneMapped: !1 })
|
|
44100
44101
|
), this.isTransformControlsPlane = !0, this.type = "TransformControlsPlane";
|
|
44101
44102
|
}
|
|
@@ -44302,7 +44303,7 @@ function Ai(g) {
|
|
|
44302
44303
|
}
|
|
44303
44304
|
if (g[D4] = !0, g instanceof kI)
|
|
44304
44305
|
Ai(g.environment), Ai(g.background), Ai(g.customDepthMaterial), Ai(g.customDistanceMaterial);
|
|
44305
|
-
else if (g instanceof
|
|
44306
|
+
else if (g instanceof Yo)
|
|
44306
44307
|
Ai(g.geometry), Ai(g.material), Ai(g.skeleton), Ai(g.bindMatrix), Ai(g.bindMatrixInverse), Ai(g.customDepthMaterial), Ai(g.customDistanceMaterial), g.geometry = null, g.material = null;
|
|
44307
44308
|
else if (g instanceof uA)
|
|
44308
44309
|
Ai(g.geometry), Ai(g.material), Ai(g.customDepthMaterial), Ai(g.customDistanceMaterial), g.geometry = null, g.material = null;
|
|
@@ -44312,7 +44313,7 @@ function Ai(g) {
|
|
|
44312
44313
|
const t = g.attributes[e];
|
|
44313
44314
|
Ai(t);
|
|
44314
44315
|
}
|
|
44315
|
-
} else if (g instanceof ie || g instanceof
|
|
44316
|
+
} else if (g instanceof ie || g instanceof qo)
|
|
44316
44317
|
fQ && console.warn("BufferAttribute dispose not supported", g.count);
|
|
44317
44318
|
else if (g instanceof Array)
|
|
44318
44319
|
for (const e of g)
|
|
@@ -44337,7 +44338,7 @@ function Ic(g) {
|
|
|
44337
44338
|
g && ((fQ || u4() || sm) && console.warn("🧨 FREE", g), g instanceof ImageBitmap ? g.close() : g instanceof oa ? g.data = null : g.dispose());
|
|
44338
44339
|
}
|
|
44339
44340
|
function VoA(g) {
|
|
44340
|
-
(g instanceof uA || g instanceof
|
|
44341
|
+
(g instanceof uA || g instanceof Yo) && (g.material = null, g.geometry = null);
|
|
44341
44342
|
}
|
|
44342
44343
|
const XoA = /* @__PURE__ */ new Set();
|
|
44343
44344
|
function w4(g, A, e = null, t) {
|
|
@@ -44555,9 +44556,9 @@ function wK(g, A) {
|
|
|
44555
44556
|
A.scripts.indexOf(g) === -1 && (A.scripts.push(g), g.earlyUpdate && A.scripts_earlyUpdate.push(g), g.update && A.scripts_update.push(g), g.lateUpdate && A.scripts_lateUpdate.push(g), g.onBeforeRender && A.scripts_onBeforeRender.push(g), g.onAfterRender && A.scripts_onAfterRender.push(g), g.onPausedChanged && A.scripts_pausedChanged.push(g), OM(g, null) && A.new_scripts_xr.push(g), OM(g, "immersive-vr") && A.scripts_immersive_vr.push(g), OM(g, "immersive-ar") && A.scripts_immersive_ar.push(g));
|
|
44556
44557
|
}
|
|
44557
44558
|
function ea(g, A) {
|
|
44558
|
-
|
|
44559
|
+
gs(g, A.new_scripts), gs(g, A.new_script_start), gs(g, A.scripts), gs(g, A.scripts_earlyUpdate), gs(g, A.scripts_update), gs(g, A.scripts_lateUpdate), gs(g, A.scripts_onBeforeRender), gs(g, A.scripts_onAfterRender), gs(g, A.scripts_pausedChanged), gs(g, A.new_scripts_xr), gs(g, A.scripts_immersive_vr), gs(g, A.scripts_immersive_ar), A.stopAllCoroutinesFrom(g);
|
|
44559
44560
|
}
|
|
44560
|
-
function
|
|
44561
|
+
function gs(g, A) {
|
|
44561
44562
|
const e = A.indexOf(g);
|
|
44562
44563
|
e >= 0 && A.splice(e, 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
|
+
}, Po = {
|
|
45358
45359
|
NONE: 0,
|
|
45359
45360
|
DEPTH: 1,
|
|
45360
45361
|
CONVOLUTION: 2
|
|
@@ -48839,7 +48840,7 @@ function anA(g, A, e) {
|
|
|
48839
48840
|
const I = t !== void 0 && /mainImage/.test(t), o = t !== void 0 && /mainUv/.test(t);
|
|
48840
48841
|
if (e.attributes |= A.getAttributes(), t === void 0)
|
|
48841
48842
|
throw new Error(`Missing fragment shader (${A.name})`);
|
|
48842
|
-
if (o && e.attributes &
|
|
48843
|
+
if (o && e.attributes & Po.CONVOLUTION)
|
|
48843
48844
|
throw new Error(`Effects that transform UVs are incompatible with convolution effects (${A.name})`);
|
|
48844
48845
|
if (!I && !o)
|
|
48845
48846
|
throw new Error(`Could not find mainImage or mainUv function (${A.name})`);
|
|
@@ -48874,7 +48875,7 @@ function anA(g, A, e) {
|
|
|
48874
48875
|
` : `color0 = sRGBToLinear(color0);
|
|
48875
48876
|
`), A.outputColorSpace !== yI ? e.colorSpace = A.outputColorSpace : A.inputColorSpace !== null && (e.colorSpace = A.inputColorSpace);
|
|
48876
48877
|
const p = /MainImage *\([\w\s,]*?depth[\w\s,]*?\)/;
|
|
48877
|
-
r += `${g}MainImage(color0, UV, `, e.attributes &
|
|
48878
|
+
r += `${g}MainImage(color0, UV, `, e.attributes & Po.DEPTH && p.test(t) && (r += "depth, ", e.readDepth = !0), r += `color1);
|
|
48878
48879
|
`;
|
|
48879
48880
|
const u = g + "BlendOpacity";
|
|
48880
48881
|
e.uniforms.set(u, l.opacity), r += `color0 = blend${l.blendFunction}(color0, color1, ${u});
|
|
@@ -48956,9 +48957,9 @@ var j_ = class extends CI {
|
|
|
48956
48957
|
let A = 0;
|
|
48957
48958
|
for (const o of this.effects)
|
|
48958
48959
|
if (o.blendMode.blendFunction === We.DST)
|
|
48959
|
-
g.attributes |= o.getAttributes() &
|
|
48960
|
+
g.attributes |= o.getAttributes() & Po.DEPTH;
|
|
48960
48961
|
else {
|
|
48961
|
-
if (g.attributes & o.getAttributes() &
|
|
48962
|
+
if (g.attributes & o.getAttributes() & Po.CONVOLUTION)
|
|
48962
48963
|
throw new Error(`Convolution effects cannot be merged (${o.name})`);
|
|
48963
48964
|
anA("e" + A++, o, g);
|
|
48964
48965
|
}
|
|
@@ -48967,7 +48968,7 @@ var j_ = class extends CI {
|
|
|
48967
48968
|
for (const o of g.blendModes.values())
|
|
48968
48969
|
e += o.getShaderCode().replace(I, `blend${o.blendFunction}`) + `
|
|
48969
48970
|
`;
|
|
48970
|
-
g.attributes &
|
|
48971
|
+
g.attributes & Po.DEPTH ? (g.readDepth && (t = `float depth = readDepth(UV);
|
|
48971
48972
|
|
|
48972
48973
|
` + t), this.needsDepthTexture = this.getDepthTexture() === null) : this.needsDepthTexture = !1, g.colorSpace === ue && (t += `color0 = sRGBToLinear(color0);
|
|
48973
48974
|
`), g.uvTransformation ? (i = `vec2 transformedUv = vUv;
|
|
@@ -49988,7 +49989,7 @@ var j_ = class extends CI {
|
|
|
49988
49989
|
[Dt.FRAGMENT_MAIN_IMAGE, null],
|
|
49989
49990
|
[Dt.VERTEX_HEAD, null],
|
|
49990
49991
|
[Dt.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 = Po.NONE, this.varyings = /* @__PURE__ */ new Set(), this.uvTransformation = !1, this.readDepth = !1, this.colorSpace = kt;
|
|
49992
49993
|
}
|
|
49993
49994
|
}, jM = !1, Z_ = class {
|
|
49994
49995
|
/**
|
|
@@ -50061,7 +50062,7 @@ var j_ = class extends CI {
|
|
|
50061
50062
|
this.cloneMaterial(g)
|
|
50062
50063
|
];
|
|
50063
50064
|
for (const e of A)
|
|
50064
|
-
e.uniforms = Object.assign({}, g.uniforms), e.side =
|
|
50065
|
+
e.uniforms = Object.assign({}, g.uniforms), e.side = pg;
|
|
50065
50066
|
A[2].skinning = !0, this.materialsBackSide = A.map((e) => {
|
|
50066
50067
|
const t = this.cloneMaterial(e);
|
|
50067
50068
|
return t.uniforms = Object.assign({}, g.uniforms), t.side = yi, t;
|
|
@@ -50647,7 +50648,7 @@ var j_ = class extends CI {
|
|
|
50647
50648
|
* @param {String} [options.vertexShader=null] - The vertex shader. Most effects don't need one.
|
|
50648
50649
|
*/
|
|
50649
50650
|
constructor(g, A, {
|
|
50650
|
-
attributes: e =
|
|
50651
|
+
attributes: e = Po.NONE,
|
|
50651
50652
|
blendFunction: t = We.NORMAL,
|
|
50652
50653
|
defines: i = /* @__PURE__ */ new Map(),
|
|
50653
50654
|
uniforms: I = /* @__PURE__ */ new Map(),
|
|
@@ -51232,7 +51233,7 @@ outputColor=vec4(ra.x,inputColor.g,ba.x,max(max(ra.y,ba.y),inputColor.a));}`, $n
|
|
|
51232
51233
|
} = {}) {
|
|
51233
51234
|
super("ChromaticAberrationEffect", XnA, {
|
|
51234
51235
|
vertexShader: $nA,
|
|
51235
|
-
attributes:
|
|
51236
|
+
attributes: Po.CONVOLUTION,
|
|
51236
51237
|
uniforms: /* @__PURE__ */ new Map([
|
|
51237
51238
|
["offset", new SA(g)],
|
|
51238
51239
|
["modulationOffset", new SA(e)]
|
|
@@ -51338,7 +51339,7 @@ vec4 result=inputColor*(1.0-cocNearFar.y)+colorFar;result=mix(result,colorNear,c
|
|
|
51338
51339
|
} = {}) {
|
|
51339
51340
|
super("DepthOfFieldEffect", ACA, {
|
|
51340
51341
|
blendFunction: A,
|
|
51341
|
-
attributes:
|
|
51342
|
+
attributes: Po.DEPTH,
|
|
51342
51343
|
uniforms: /* @__PURE__ */ new Map([
|
|
51343
51344
|
["nearColorBuffer", new SA(null)],
|
|
51344
51345
|
["farColorBuffer", new SA(null)],
|
|
@@ -51707,7 +51708,7 @@ var tCA = class extends co {
|
|
|
51707
51708
|
* @param {Object} [options] - The options. See {@link BloomEffect} for details.
|
|
51708
51709
|
*/
|
|
51709
51710
|
constructor(g, A, e) {
|
|
51710
|
-
super(e), this.setAttributes(this.getAttributes() |
|
|
51711
|
+
super(e), this.setAttributes(this.getAttributes() | Po.DEPTH), this.camera = A, this.depthPass = new CnA(g, A), this.clearPass = new am(!0, !1, !1), this.clearPass.overrideClearColor = new kA(0), this.depthMaskPass = new On(new NsA());
|
|
51711
51712
|
const t = this.depthMaskMaterial;
|
|
51712
51713
|
t.copyCameraSettings(A), t.depthBuffer1 = this.depthPass.texture, t.depthPacking1 = Q0, t.depthMode = Ih, this.renderTargetMasked = new Xe(1, 1, { depthBuffer: !1 }), this.renderTargetMasked.texture.name = "Bloom.Masked", this.selection = new cnA(), this.selection.layer = 11, this._inverted = !1, this._ignoreBackground = !1;
|
|
51713
51714
|
}
|
|
@@ -51856,7 +51857,7 @@ var tCA = class extends co {
|
|
|
51856
51857
|
super("SMAAEffect", ICA, {
|
|
51857
51858
|
vertexShader: oCA,
|
|
51858
51859
|
blendFunction: g,
|
|
51859
|
-
attributes:
|
|
51860
|
+
attributes: Po.CONVOLUTION | Po.DEPTH,
|
|
51860
51861
|
uniforms: /* @__PURE__ */ new Map([
|
|
51861
51862
|
["weightMap", new SA(null)]
|
|
51862
51863
|
])
|
|
@@ -52132,7 +52133,7 @@ outputColor=vec4(vec3(1.0-ao),inputColor.a);
|
|
|
52132
52133
|
} = {}) {
|
|
52133
52134
|
super("SSAOEffect", sCA, {
|
|
52134
52135
|
blendFunction: e,
|
|
52135
|
-
attributes:
|
|
52136
|
+
attributes: Po.DEPTH,
|
|
52136
52137
|
defines: /* @__PURE__ */ new Map([
|
|
52137
52138
|
["THRESHOLD", "0.997"]
|
|
52138
52139
|
]),
|
|
@@ -54358,7 +54359,7 @@ B(Se, "enabled", !0), B(Se, "_up", new y(0, 1, 0));
|
|
|
54358
54359
|
const zCA = new zt(1, 1, 1);
|
|
54359
54360
|
function UK(g = null) {
|
|
54360
54361
|
const A = new kA(g ?? 14540253), e = new sb(zCA);
|
|
54361
|
-
return new
|
|
54362
|
+
return new jo(e, new zi({ color: A }));
|
|
54362
54363
|
}
|
|
54363
54364
|
const FF = Symbol("GizmoCache");
|
|
54364
54365
|
class Ki {
|
|
@@ -54480,7 +54481,7 @@ class Ki {
|
|
|
54480
54481
|
}
|
|
54481
54482
|
// private static createdLines: number = 0;
|
|
54482
54483
|
B(Ki, "familyName", "needle-gizmos"), B(Ki, "linesCache", []), B(Ki, "spheresCache", []), B(Ki, "boxesCache", []), B(Ki, "arrowHeadsCache", []), B(Ki, "mesh", []), B(Ki, "textLabelCache", []), B(Ki, "timedObjectsBuffer", new Array()), B(Ki, "timesBuffer", new Array()), B(Ki, "contextPostRenderCallbacks", /* @__PURE__ */ new Map()), B(Ki, "contextBeforeRenderCallbacks", /* @__PURE__ */ new Map()), B(Ki, "tmuiNeedsUpdate", !1);
|
|
54483
|
-
const
|
|
54484
|
+
const rg = IA("debuginput");
|
|
54484
54485
|
var FK = /* @__PURE__ */ ((g) => (g.Mouse = "mouse", g.Touch = "touch", g.Controller = "controller", g.Hand = "hand", g))(FK || {}), Di = /* @__PURE__ */ ((g) => (g.PointerDown = "pointerdown", g.PointerUp = "pointerup", g.PointerMove = "pointermove", g.KeyDown = "keydown", g.KeyUp = "keyup", g.KeyPressed = "keypress", g))(Di || {});
|
|
54485
54486
|
class Er extends PointerEvent {
|
|
54486
54487
|
constructor(e, t, i) {
|
|
@@ -54562,7 +54563,7 @@ class Er extends PointerEvent {
|
|
|
54562
54563
|
}
|
|
54563
54564
|
stopPropagation() {
|
|
54564
54565
|
var e;
|
|
54565
|
-
this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(),
|
|
54566
|
+
this._propagationStopped = !0, super.stopPropagation(), (e = this.source) == null || e.stopPropagation(), rg && console.warn("Stop propagation...", this.pointerId, this.pointerType);
|
|
54566
54567
|
}
|
|
54567
54568
|
}
|
|
54568
54569
|
class nw extends KeyboardEvent {
|
|
@@ -54646,7 +54647,7 @@ class VCA {
|
|
|
54646
54647
|
});
|
|
54647
54648
|
B(this, "keysPressed", {});
|
|
54648
54649
|
B(this, "onKeyDown", (A) => {
|
|
54649
|
-
if (
|
|
54650
|
+
if (rg && console.log(`key down ${A.code}, ${this.context.application.hasFocus}`, A), !this.context.application.hasFocus)
|
|
54650
54651
|
return;
|
|
54651
54652
|
const e = this.keysPressed[A.code];
|
|
54652
54653
|
if (e && e.pressed)
|
|
@@ -54689,7 +54690,7 @@ class VCA {
|
|
|
54689
54690
|
if (this.context.isInAR || this.canReceiveInput(A) === !1)
|
|
54690
54691
|
return;
|
|
54691
54692
|
const e = this.getPointerId(A);
|
|
54692
|
-
|
|
54693
|
+
rg && qi(`pointer down #${e}, identifier:${A.pointerId}`);
|
|
54693
54694
|
const t = this.getAndUpdateSpatialObjectForScreenPosition(e, A.clientX, A.clientY), i = new Er("pointerdown", A, { origin: this, mode: "screen", deviceIndex: 0, pointerId: e, button: A.button, clientX: A.clientX, clientY: A.clientY, pointerType: A.pointerType, buttonName: this.getButtonName(A), device: t, pressure: A.pressure });
|
|
54694
54695
|
this.onDown(i);
|
|
54695
54696
|
});
|
|
@@ -54707,10 +54708,10 @@ class VCA {
|
|
|
54707
54708
|
if (this.context.isInAR)
|
|
54708
54709
|
return;
|
|
54709
54710
|
const e = this.getPointerId(A), t = new Er("pointerup", A, { origin: this, mode: "screen", deviceIndex: 0, pointerId: e, button: A.button, clientX: A.clientX, clientY: A.clientY, pointerType: A.pointerType, buttonName: this.getButtonName(A), device: this.getAndUpdateSpatialObjectForScreenPosition(e, A.clientX, A.clientY), pressure: A.pressure });
|
|
54710
|
-
this.onUp(t), this._pointerIds[e] = -1,
|
|
54711
|
+
this.onUp(t), this._pointerIds[e] = -1, rg && console.log("ID=" + e, "PointerId=" + A.pointerId, "ALL:", [...this._pointerIds]);
|
|
54711
54712
|
});
|
|
54712
54713
|
B(this, "onPointerCancel", (A) => {
|
|
54713
|
-
this.context.isInAR || (
|
|
54714
|
+
this.context.isInAR || (rg && console.log("Pointer cancel", A), this.onPointerUp(A));
|
|
54714
54715
|
});
|
|
54715
54716
|
// the touch events are currently only used for AR support on android
|
|
54716
54717
|
B(this, "onTouchStart", (A) => {
|
|
@@ -54805,10 +54806,10 @@ class VCA {
|
|
|
54805
54806
|
continue;
|
|
54806
54807
|
}
|
|
54807
54808
|
if (A.immediatePropagationStopped) {
|
|
54808
|
-
e = !0,
|
|
54809
|
+
e = !0, rg && console.log("immediatePropagationStopped", A.type);
|
|
54809
54810
|
break;
|
|
54810
54811
|
} else
|
|
54811
|
-
A.propagationStopped && (e = !0,
|
|
54812
|
+
A.propagationStopped && (e = !0, rg && console.log("propagationStopped", A.type));
|
|
54812
54813
|
a.options.once && (n.listeners.splice(C, 1), C--), a.callback(A);
|
|
54813
54814
|
}
|
|
54814
54815
|
}
|
|
@@ -55052,13 +55053,13 @@ class VCA {
|
|
|
55052
55053
|
createInputEvent(A) {
|
|
55053
55054
|
switch (A.type) {
|
|
55054
55055
|
case "pointerdown":
|
|
55055
|
-
|
|
55056
|
+
rg && qi("Create Pointer down"), this.onDownButton(A.deviceIndex, A.button), this.onDown(A);
|
|
55056
55057
|
break;
|
|
55057
55058
|
case "pointermove":
|
|
55058
|
-
|
|
55059
|
+
rg && qi("Create Pointer move"), this.onMove(A);
|
|
55059
55060
|
break;
|
|
55060
55061
|
case "pointerup":
|
|
55061
|
-
|
|
55062
|
+
rg && qi("Create Pointer up"), this.onUp(A), this.onReleaseButton(A.deviceIndex, A.button);
|
|
55062
55063
|
break;
|
|
55063
55064
|
}
|
|
55064
55065
|
}
|
|
@@ -55078,7 +55079,7 @@ class VCA {
|
|
|
55078
55079
|
}
|
|
55079
55080
|
canReceiveInput(A) {
|
|
55080
55081
|
var e;
|
|
55081
|
-
return A.target === ((e = this.context.renderer) == null ? void 0 : e.domElement) || A.target === this.context.domElement || this.context.isInAR || this.context.isInAR && A.target === document.body && Wc() ? !0 : (
|
|
55082
|
+
return A.target === ((e = this.context.renderer) == null ? void 0 : e.domElement) || A.target === this.context.domElement || this.context.isInAR || this.context.isInAR && A.target === document.body && Wc() ? !0 : (rg && console.warn("CanReceiveInput:False for", A.target), !1);
|
|
55082
55083
|
}
|
|
55083
55084
|
getPointerId(A, e) {
|
|
55084
55085
|
return A.pointerType === "mouse" ? 0 + (e ?? A.button) : this.getPointerIndex(A.pointerId);
|
|
@@ -55119,11 +55120,11 @@ class VCA {
|
|
|
55119
55120
|
if (this.context.isInXR)
|
|
55120
55121
|
return !0;
|
|
55121
55122
|
const e = this.context.domElement.getBoundingClientRect(), t = A.clientX, i = A.clientY, I = t >= e.x && t <= e.right && i >= e.y && i <= e.bottom;
|
|
55122
|
-
return
|
|
55123
|
+
return rg && !I && console.log("Not in rect", e, t, i), I;
|
|
55123
55124
|
}
|
|
55124
55125
|
onDown(A) {
|
|
55125
55126
|
const e = A.pointerId;
|
|
55126
|
-
if (this.getPointerPressed(e) && console.warn(`pointerId is already pressed: ${e}`,
|
|
55127
|
+
if (this.getPointerPressed(e) && console.warn(`pointerId is already pressed: ${e}`, rg ? A : ""), rg && console.log(A.pointerType, "DOWN", e), !!this.isInRect(A)) {
|
|
55127
55128
|
for (this.setPointerState(e, this._pointerPressed, !0), this.setPointerState(e, this._pointerDown, !0), this.setPointerStateT(e, this._pointerEvent, A.source); e >= this._pointerTypes.length; )
|
|
55128
55129
|
this._pointerTypes.push(A.pointerType);
|
|
55129
55130
|
for (this._pointerTypes[e] = A.pointerType; e >= this._pointerPositionDown.length; )
|
|
@@ -55141,18 +55142,18 @@ class VCA {
|
|
|
55141
55142
|
onUp(A) {
|
|
55142
55143
|
const e = A.pointerId;
|
|
55143
55144
|
if (!this.getPointerPressed(e)) {
|
|
55144
|
-
|
|
55145
|
+
rg && console.log(A.pointerType, "UP", e, "was not down");
|
|
55145
55146
|
return;
|
|
55146
55147
|
}
|
|
55147
|
-
for (
|
|
55148
|
+
for (rg && console.log(A.pointerType, "UP", e), this.setPointerState(e, this._pointerPressed, !1), this.setPointerStateT(e, this._pointerEvent, A.source), this.setPointerState(e, this._pointerUp, !0); e >= this._pointerUsed.length; )
|
|
55148
55149
|
this._pointerUsed.push(!1);
|
|
55149
55150
|
if (this.setPointerState(e, this._pointerUsed, !1), this.updatePointerPosition(A), !this._pointerPositionDown[e]) {
|
|
55150
|
-
|
|
55151
|
+
rg && Xt("Received pointer up event without matching down event for button: " + e), console.warn("Received pointer up event without matching down event for button: " + e);
|
|
55151
55152
|
return;
|
|
55152
55153
|
}
|
|
55153
55154
|
const i = A.clientX - this._pointerPositionDown[e].x, I = A.clientY - this._pointerPositionDown[e].y;
|
|
55154
55155
|
if (e >= this._pointerUpTime.length && this._pointerUpTime.push(-99), Math.abs(i) < 5 && Math.abs(I) < 5) {
|
|
55155
|
-
|
|
55156
|
+
rg && console.log("CLICK", e), this.setPointerState(e, this._pointerClick, !0), A.isClick = !0;
|
|
55156
55157
|
const o = this._pointerUpTime[e], s = this.context.time.time - o;
|
|
55157
55158
|
s < this._doubleClickTimeThreshold && s > 0 && (this.setPointerState(e, this._pointerDoubleClick, !0), A.isDoubleClick = !0);
|
|
55158
55159
|
}
|
|
@@ -55189,7 +55190,7 @@ class VCA {
|
|
|
55189
55190
|
return t;
|
|
55190
55191
|
e === -1 && this._pointerIds[t] === -1 && (e = t);
|
|
55191
55192
|
}
|
|
55192
|
-
return e !== -1 ? (this._pointerIds[e] = A, e) : (
|
|
55193
|
+
return e !== -1 ? (this._pointerIds[e] = A, e) : (rg && console.log("PUSH pointerId:", A), this._pointerIds.push(A), this._pointerIds.length - 1);
|
|
55193
55194
|
}
|
|
55194
55195
|
setPointerState(A, e, t) {
|
|
55195
55196
|
e[A] = t;
|
|
@@ -62001,7 +62002,7 @@ class JT {
|
|
|
62001
62002
|
depthTest: !1,
|
|
62002
62003
|
fog: !1,
|
|
62003
62004
|
side: pt
|
|
62004
|
-
}), this._fadeToColorQuad = new uA(new
|
|
62005
|
+
}), this._fadeToColorQuad = new uA(new sg(10, 10), this._fadeToColorMaterial);
|
|
62005
62006
|
}
|
|
62006
62007
|
dispose() {
|
|
62007
62008
|
this._fadeToColorQuad.geometry.dispose(), this._fadeToColorMaterial.dispose();
|
|
@@ -62043,7 +62044,7 @@ class Em {
|
|
|
62043
62044
|
case "Quad":
|
|
62044
62045
|
case 0:
|
|
62045
62046
|
{
|
|
62046
|
-
const I = new
|
|
62047
|
+
const I = new sg(1, 1, 1, 1), o = (e == null ? void 0 : e.material) ?? new VI({ color: 16777215 });
|
|
62047
62048
|
e != null && e.texture && "map" in o && (o.map = e.texture), t = new uA(I, o);
|
|
62048
62049
|
}
|
|
62049
62050
|
break;
|
|
@@ -64197,7 +64198,7 @@ class IrA {
|
|
|
64197
64198
|
/** @internal */
|
|
64198
64199
|
setRenderer(A) {
|
|
64199
64200
|
var e;
|
|
64200
|
-
(e = this._lodsManager) == null || e.disable(),
|
|
64201
|
+
(e = this._lodsManager) == null || e.disable(), xo.removePlugin(this), xo.addPlugin(this), xo.debugDrawLine = Se.DrawLine, this._lodsManager = xo.get(A), this._lodsManager.enable();
|
|
64201
64202
|
}
|
|
64202
64203
|
/** @internal */
|
|
64203
64204
|
onAfterUpdatedLOD(A, e, t, i, I) {
|
|
@@ -64207,7 +64208,7 @@ class IrA {
|
|
|
64207
64208
|
var o, s, n;
|
|
64208
64209
|
if (!e.geometry || !wt.hasLODLevelAvailable(e.geometry))
|
|
64209
64210
|
return;
|
|
64210
|
-
const i =
|
|
64211
|
+
const i = xo.getObjectLODState(e);
|
|
64211
64212
|
if (!i)
|
|
64212
64213
|
return;
|
|
64213
64214
|
const I = t != i.lastLodLevel;
|
|
@@ -64446,7 +64447,7 @@ class arA {
|
|
|
64446
64447
|
(t == null ? void 0 : t.viewDevice) === e && (nrA && console.log("REMOVE", A), t.removed = !0, this.playerViews.delete(A));
|
|
64447
64448
|
}
|
|
64448
64449
|
}
|
|
64449
|
-
new
|
|
64450
|
+
new ug();
|
|
64450
64451
|
const Wp = new Uint8Array(4);
|
|
64451
64452
|
Wp[0] = 255;
|
|
64452
64453
|
Wp[1] = 255;
|
|
@@ -64522,7 +64523,7 @@ async function _T(g) {
|
|
|
64522
64523
|
const A = g.uri;
|
|
64523
64524
|
if (A)
|
|
64524
64525
|
if (A.endsWith(".glsl")) {
|
|
64525
|
-
const t = await new
|
|
64526
|
+
const t = await new ug().loadAsync(A);
|
|
64526
64527
|
g.code = t.toString();
|
|
64527
64528
|
} else
|
|
64528
64529
|
g.code = hrA(g.uri);
|
|
@@ -65482,6 +65483,7 @@ class cm 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 cm extends HTMLElement {
|
|
|
65816
65818
|
}
|
|
65817
65819
|
}
|
|
65818
65820
|
customElements.get(Lc) || customElements.define(Lc, cm);
|
|
65819
|
-
const
|
|
65821
|
+
const Qg = IA("debugcontext"), yrA = IA("stats"), SrA = IA("debugactive"), mrA = IA("debugframerate"), krA = IA("debugcoroutine"), NyA = {};
|
|
65820
65822
|
class byA {
|
|
65821
65823
|
constructor() {
|
|
65822
65824
|
B(this, "name");
|
|
@@ -65841,12 +65843,12 @@ function LK(g, A) {
|
|
|
65841
65843
|
if (!g)
|
|
65842
65844
|
return;
|
|
65843
65845
|
if (!g.isComponent) {
|
|
65844
|
-
(Qe() ||
|
|
65846
|
+
(Qe() || Qg) && 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
|
`, g);
|
|
65847
65849
|
return;
|
|
65848
65850
|
}
|
|
65849
|
-
A || (A = Je.Current,
|
|
65851
|
+
A || (A = Je.Current, Qg && console.warn("> Registering component without context"));
|
|
65850
65852
|
const e = A == null ? void 0 : A.new_scripts;
|
|
65851
65853
|
e.includes(g) || e.push(g);
|
|
65852
65854
|
}
|
|
@@ -66124,9 +66126,9 @@ const Wt = class {
|
|
|
66124
66126
|
var e, t, i;
|
|
66125
66127
|
if ((e = this.renderer) == null || e.dispose(), A = { ...Wt.DefaultWebGLRendererParameters, ...A }, !A.canvas) {
|
|
66126
66128
|
const I = (i = (t = this.domElement) == null ? void 0 : t.shadowRoot) == null ? void 0 : i.querySelector("canvas");
|
|
66127
|
-
I && (A.canvas = I,
|
|
66129
|
+
I && (A.canvas = I, Qg && console.log("Using canvas from shadow root", I));
|
|
66128
66130
|
}
|
|
66129
|
-
|
|
66131
|
+
Qg && console.log("Using Renderer Parameters:", A, this.domElement), this.renderer = new Ma(A), this.renderer.debug.checkShaderErrors = Qe() || IA("checkshadererrors") === !0, this.renderer.toneMappingExposure = 1, this.renderer.toneMapping = Eo, this.renderer.setClearColor(new kA("lightgrey"), 0), this.renderer.shadowMap.enabled = !0, this.renderer.shadowMap.type = mN, this.renderer.setSize(this.domWidth, this.domHeight), this.renderer.outputColorSpace = ue, this.lodsManager.setRenderer(this.renderer), this.input.bindEvents();
|
|
66130
66132
|
}
|
|
66131
66133
|
internalOnUpdateVisible() {
|
|
66132
66134
|
var A, e;
|
|
@@ -66189,7 +66191,7 @@ const Wt = class {
|
|
|
66189
66191
|
}
|
|
66190
66192
|
internalOnDestroy() {
|
|
66191
66193
|
var A, e;
|
|
66192
|
-
Wt.Current = this, ht.dispatchCallback(xt.ContextDestroying, this), Fn(this, xt.ContextDestroying), this.clear(), (A = this.renderer) == null || A.setAnimationLoop(null), this.renderer && (this.renderer.setClearAlpha(0), this.renderer.clear(), this.isManagedExternally || (
|
|
66194
|
+
Wt.Current = this, ht.dispatchCallback(xt.ContextDestroying, this), Fn(this, xt.ContextDestroying), this.clear(), (A = this.renderer) == null || A.setAnimationLoop(null), this.renderer && (this.renderer.setClearAlpha(0), this.renderer.clear(), this.isManagedExternally || (Qg && console.log("Disposing renderer"), this.renderer.dispose())), this.scene = null, this.renderer = null, this.input.dispose(), this.menu.onDestroy();
|
|
66193
66195
|
for (const t of this._disposeCallbacks)
|
|
66194
66196
|
try {
|
|
66195
66197
|
t();
|
|
@@ -66298,12 +66300,12 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66298
66300
|
async internalOnCreate(A) {
|
|
66299
66301
|
var s, n, C, a, r, Q, E, c;
|
|
66300
66302
|
const e = ++this._createId;
|
|
66301
|
-
|
|
66303
|
+
Qg && console.log("Creating context", this.name, A);
|
|
66302
66304
|
const t = globalThis["needle:dependencies:ready"];
|
|
66303
|
-
t instanceof Promise && (
|
|
66304
|
-
(
|
|
66305
|
+
t instanceof Promise && (Qg && console.log("Waiting for dependencies to be ready"), await t.catch((d) => {
|
|
66306
|
+
(Qg || Qe()) && console.error("Needle Engine dependencies failed to load", d);
|
|
66305
66307
|
}).then(() => {
|
|
66306
|
-
|
|
66308
|
+
Qg && console.log("Needle Engine dependencies are ready");
|
|
66307
66309
|
})), this.clear(), this.isManagedExternally === !1 && (this.createNewRenderer(), (s = this.renderer) == null || s.setAnimationLoop(null)), await pa(1), Wt.Current = this, await ht.dispatchCallback(xt.ContextCreationStart, this);
|
|
66308
66310
|
let i = !0, I;
|
|
66309
66311
|
try {
|
|
@@ -66314,7 +66316,7 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66314
66316
|
if (!i || e !== this._createId || (n = A == null ? void 0 : A.abortSignal) != null && n.aborted)
|
|
66315
66317
|
return !1;
|
|
66316
66318
|
if (this.internalOnUpdateVisible(), !this.renderer)
|
|
66317
|
-
return
|
|
66319
|
+
return Qg && 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), Wt.Current = this, Wt.Current = this;
|
|
66319
66321
|
for (let d = 0; d < this.new_scripts.length; d++) {
|
|
66320
66322
|
const h = this.new_scripts[d];
|
|
@@ -66345,9 +66347,9 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66345
66347
|
const d = new rm(this.scene, this.mainCamera);
|
|
66346
66348
|
this.renderer.setSize(this.domWidth, this.domHeight), this.composer.addPass(d), this.composer.setSize(this.domWidth, this.domHeight);
|
|
66347
66349
|
}
|
|
66348
|
-
this._sizeChanged = !0, this._stats && (this._stats.showPanel(0), (r = this.domElement.shadowRoot) == null || r.appendChild(this._stats.dom)),
|
|
66350
|
+
this._sizeChanged = !0, this._stats && (this._stats.showPanel(0), (r = this.domElement.shadowRoot) == null || r.appendChild(this._stats.dom)), Qg && PU(this.scene, !0), this.targetFrameRate === void 0 ? (Qg && console.warn("No target framerate set, using default", Wt.DefaultTargetFrameRate), this.targetFrameRate = Wt._defaultTargetFramerate) : Qg && console.log("Target framerate set to", this.targetFrameRate), this._dispatchReadyAfterFrame = !0;
|
|
66349
66351
|
const o = ht.dispatchCallback(xt.ContextCreated, this, { files: I });
|
|
66350
|
-
return o && ("internalSetLoadingMessage" in this.domElement && typeof this.domElement.internalSetLoadingMessage == "function" && ((Q = this.domElement) == null || Q.internalSetLoadingMessage("finish loading")), await o), (E = A == null ? void 0 : A.abortSignal) != null && E.aborted ? !1 : (Fn(this, xt.ContextCreated),
|
|
66352
|
+
return o && ("internalSetLoadingMessage" in this.domElement && typeof this.domElement.internalSetLoadingMessage == "function" && ((Q = this.domElement) == null || Q.internalSetLoadingMessage("finish loading")), await o), (E = A == null ? void 0 : A.abortSignal) != null && E.aborted ? !1 : (Fn(this, xt.ContextCreated), Qg && console.log("Context Created...", this.renderer, this.renderer.domElement), this._isCreating = !1, !this.isManagedExternally && !((c = A == null ? void 0 : A.abortSignal) != null && c.aborted) && this.restartRenderLoop(), o);
|
|
66351
66353
|
}
|
|
66352
66354
|
async internalLoadInitialContent(A, e) {
|
|
66353
66355
|
var n, C, a, r;
|
|
@@ -66362,15 +66364,15 @@ Start a coroutine from a component by calling "this.startCoroutine(myCoroutine()
|
|
|
66362
66364
|
}, o = nC(), s = 0;
|
|
66363
66365
|
for (let Q = 0; Q < i.length; Q++) {
|
|
66364
66366
|
if ((n = e.abortSignal) != null && n.aborted) {
|
|
66365
|
-
|
|
66367
|
+
Qg && console.log("Aborting loading because of abort signal");
|
|
66366
66368
|
break;
|
|
66367
66369
|
}
|
|
66368
66370
|
if (A !== this._createId) {
|
|
66369
|
-
|
|
66371
|
+
Qg && console.log("Aborting loading because create id changed", A, this._createId);
|
|
66370
66372
|
break;
|
|
66371
66373
|
}
|
|
66372
66374
|
const E = i[Q];
|
|
66373
|
-
(C = e == null ? void 0 : e.onLoadingStart) == null || C.call(this, Q, E),
|
|
66375
|
+
(C = e == null ? void 0 : e.onLoadingStart) == null || C.call(this, Q, E), Qg && console.log("Context Load " + E);
|
|
66374
66376
|
const c = await o.loadSync(this, E, E, s, (d) => {
|
|
66375
66377
|
var h, l;
|
|
66376
66378
|
(h = e.abortSignal) != null && h.aborted || (I.name = E, I.progress = d, I.index = Q, I.count = i.length, (l = e.onLoadingProgress) == null || l.call(this, I));
|
|
@@ -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(A, e) {
|
|
66403
|
-
if (e === void 0 && (e = null), Qe() ||
|
|
66405
|
+
if (e === void 0 && (e = null), Qe() || Qg || esA())
|
|
66404
66406
|
try {
|
|
66405
66407
|
this.internalStep(A, e), this._renderlooperrors = 0;
|
|
66406
66408
|
} catch (t) {
|
|
66407
|
-
this._renderlooperrors += 1, (Qe() ||
|
|
66409
|
+
this._renderlooperrors += 1, (Qe() || Qg) && (t instanceof Error || t instanceof TypeError) && qi("Caught unhandled exception during render-loop - see console for details.", Ss.Error), console.error("Frame #" + this.time.frame + `
|
|
66408
66410
|
`, t), this._renderlooperrors >= 3 && (console.warn("Stopping render loop due to error"), this.renderer.setAnimationLoop(null)), this.domElement.dispatchEvent(new CustomEvent("error", { detail: t }));
|
|
66409
66411
|
}
|
|
66410
66412
|
else
|
|
@@ -68216,7 +68218,7 @@ class vt extends kA {
|
|
|
68216
68218
|
return this.alpha = e[t + 3], super.fromArray(e, t);
|
|
68217
68219
|
}
|
|
68218
68220
|
}
|
|
68219
|
-
const XT = { type: "change" }, IR = { type: "start" }, $T = { type: "end" }, pw = new po(), AH = new WI(), gBA = Math.cos(70 *
|
|
68221
|
+
const XT = { type: "change" }, IR = { type: "start" }, $T = { type: "end" }, pw = new po(), AH = new WI(), gBA = Math.cos(70 * dg.DEG2RAD);
|
|
68220
68222
|
let IBA = class extends qg {
|
|
68221
68223
|
constructor(A, e) {
|
|
68222
68224
|
super(), this.object = A, this.domElement = e, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new y(), this.cursor = new y(), 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: HB.ROTATE, MIDDLE: HB.DOLLY, RIGHT: HB.PAN }, this.touches = { ONE: YB.ROTATE, TWO: YB.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 IBA = class extends qg {
|
|
|
68244
68246
|
if (t.zoomToCursor && M || t.object.isOrthographicCamera)
|
|
68245
68247
|
s.radius = oA(s.radius);
|
|
68246
68248
|
else {
|
|
68247
|
-
t.enableDamping ? a =
|
|
68249
|
+
t.enableDamping ? a = dg.lerp(a, C, t.dampingFactor) : a = C, s.radius = oA(s.radius * a);
|
|
68248
68250
|
const Ui = s.radius;
|
|
68249
68251
|
s.radius = oA(s.radius * C), di = Ui != s.radius;
|
|
68250
68252
|
}
|
|
@@ -68878,7 +68880,7 @@ const YyA = function(g) {
|
|
|
68878
68880
|
});
|
|
68879
68881
|
};
|
|
68880
68882
|
};
|
|
68881
|
-
var aBA = Object.defineProperty, rBA = Object.getOwnPropertyDescriptor,
|
|
68883
|
+
var aBA = Object.defineProperty, rBA = Object.getOwnPropertyDescriptor, Zo = (g, A, e, t) => {
|
|
68882
68884
|
for (var i = t > 1 ? void 0 : t ? rBA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
68883
68885
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
68884
68886
|
return t && i && aBA(A, e, i), i;
|
|
@@ -69177,51 +69179,51 @@ const XF = (YR = class extends NA {
|
|
|
69177
69179
|
}
|
|
69178
69180
|
}, B(YR, "tempPosition", new y()), YR);
|
|
69179
69181
|
let Pt = XF;
|
|
69180
|
-
|
|
69182
|
+
Zo([
|
|
69181
69183
|
RI()
|
|
69182
69184
|
], Pt.prototype, "autoMass", 2);
|
|
69183
|
-
|
|
69185
|
+
Zo([
|
|
69184
69186
|
D()
|
|
69185
69187
|
], Pt.prototype, "mass", 1);
|
|
69186
|
-
|
|
69188
|
+
Zo([
|
|
69187
69189
|
RI(),
|
|
69188
69190
|
D()
|
|
69189
69191
|
], Pt.prototype, "useGravity", 2);
|
|
69190
|
-
|
|
69192
|
+
Zo([
|
|
69191
69193
|
D(y)
|
|
69192
69194
|
], Pt.prototype, "centerOfMass", 2);
|
|
69193
|
-
|
|
69195
|
+
Zo([
|
|
69194
69196
|
RI(),
|
|
69195
69197
|
D()
|
|
69196
69198
|
], Pt.prototype, "constraints", 2);
|
|
69197
|
-
|
|
69199
|
+
Zo([
|
|
69198
69200
|
RI(),
|
|
69199
69201
|
D()
|
|
69200
69202
|
], Pt.prototype, "isKinematic", 2);
|
|
69201
|
-
|
|
69203
|
+
Zo([
|
|
69202
69204
|
RI(),
|
|
69203
69205
|
D()
|
|
69204
69206
|
], Pt.prototype, "drag", 2);
|
|
69205
|
-
|
|
69207
|
+
Zo([
|
|
69206
69208
|
RI(),
|
|
69207
69209
|
D()
|
|
69208
69210
|
], Pt.prototype, "angularDrag", 2);
|
|
69209
|
-
|
|
69211
|
+
Zo([
|
|
69210
69212
|
RI(),
|
|
69211
69213
|
D()
|
|
69212
69214
|
], Pt.prototype, "detectCollisions", 2);
|
|
69213
|
-
|
|
69215
|
+
Zo([
|
|
69214
69216
|
RI(),
|
|
69215
69217
|
D()
|
|
69216
69218
|
], Pt.prototype, "sleepThreshold", 2);
|
|
69217
|
-
|
|
69219
|
+
Zo([
|
|
69218
69220
|
RI(),
|
|
69219
69221
|
D()
|
|
69220
69222
|
], Pt.prototype, "collisionDetectionMode", 2);
|
|
69221
|
-
|
|
69223
|
+
Zo([
|
|
69222
69224
|
RI()
|
|
69223
69225
|
], Pt.prototype, "_gravityScale", 2);
|
|
69224
|
-
|
|
69226
|
+
Zo([
|
|
69225
69227
|
RI()
|
|
69226
69228
|
], Pt.prototype, "dominanceGroup", 2);
|
|
69227
69229
|
const cr = IA("debugsync"), rp = "STRS";
|
|
@@ -69410,7 +69412,7 @@ class hn extends NA {
|
|
|
69410
69412
|
}
|
|
69411
69413
|
/** Mark the UI dirty which will trigger an THREE-Mesh-UI update */
|
|
69412
69414
|
markDirty() {
|
|
69413
|
-
|
|
69415
|
+
_o.markUIDirty(this.context);
|
|
69414
69416
|
}
|
|
69415
69417
|
/** the underlying three-mesh-ui */
|
|
69416
69418
|
get shadowComponent() {
|
|
@@ -69918,15 +69920,15 @@ var wBA = Object.defineProperty, yBA = Object.getOwnPropertyDescriptor, SBA = (g
|
|
|
69918
69920
|
};
|
|
69919
69921
|
class Vp extends NA {
|
|
69920
69922
|
awake() {
|
|
69921
|
-
|
|
69923
|
+
_o.createIfNoneExists(this.context);
|
|
69922
69924
|
}
|
|
69923
69925
|
onEnable() {
|
|
69924
69926
|
var A;
|
|
69925
|
-
(A =
|
|
69927
|
+
(A = _o.get(this.context)) == null || A.register(this);
|
|
69926
69928
|
}
|
|
69927
69929
|
onDisable() {
|
|
69928
69930
|
var A;
|
|
69929
|
-
(A =
|
|
69931
|
+
(A = _o.get(this.context)) == null || A.unregister(this);
|
|
69930
69932
|
}
|
|
69931
69933
|
}
|
|
69932
69934
|
class Rs extends Vp {
|
|
@@ -69944,7 +69946,7 @@ class Rs extends Vp {
|
|
|
69944
69946
|
return null;
|
|
69945
69947
|
e ?? (e = new cn()), e.targets = this.targets, e.results = this.raycastHits;
|
|
69946
69948
|
const t = e.testObject;
|
|
69947
|
-
this.ignoreSkinnedMeshes && (e.testObject = (I) => I instanceof
|
|
69949
|
+
this.ignoreSkinnedMeshes && (e.testObject = (I) => I instanceof Yo ? "continue in children" : t ? t(I) : !0);
|
|
69948
69950
|
const i = this.context.physics.raycast(e);
|
|
69949
69951
|
return e.testObject = t, i;
|
|
69950
69952
|
}
|
|
@@ -70010,7 +70012,7 @@ function GS(g, A) {
|
|
|
70010
70012
|
const e = g.material;
|
|
70011
70013
|
if ((e == null ? void 0 : e.isMaterial) === !0) {
|
|
70012
70014
|
const t = g.parent;
|
|
70013
|
-
t && t.isText, e.side = A.doubleSided ?? !0 ? pt :
|
|
70015
|
+
t && t.isText, e.side = A.doubleSided ?? !0 ? pt : pg, e.shadowSide = A.doubleSided ? pt : pg, g.castShadow = A.castShadows ? A.castShadows : !1, g.receiveShadow = A.receiveShadows ? A.receiveShadows : !1;
|
|
70014
70016
|
}
|
|
70015
70017
|
for (const t of g.children)
|
|
70016
70018
|
GS(t, A);
|
|
@@ -70410,8 +70412,8 @@ const Yn = class extends NA {
|
|
|
70410
70412
|
return e ? sA.isActiveSelf(e) ? this.testIsVisible(e.parent) : !1 : !0;
|
|
70411
70413
|
}
|
|
70412
70414
|
};
|
|
70413
|
-
let
|
|
70414
|
-
B(
|
|
70415
|
+
let _o = Yn;
|
|
70416
|
+
B(_o, "_eventSystemMap", /* @__PURE__ */ new Map()), B(_o, "didSearchEventSystem", !1);
|
|
70415
70417
|
class Sr {
|
|
70416
70418
|
static markDirty() {
|
|
70417
70419
|
this.needsUpdate = !0;
|
|
@@ -70589,7 +70591,7 @@ class Gt extends NA {
|
|
|
70589
70591
|
}
|
|
70590
70592
|
/** @internal */
|
|
70591
70593
|
start() {
|
|
70592
|
-
this._didStart = !0, this._eventSystem =
|
|
70594
|
+
this._didStart = !0, this._eventSystem = _o.get(this.context) ?? void 0, this._eventSystem && (this._afterHandleInputFn = this.afterHandleInput.bind(this), this._eventSystem.addEventListener(AN.AfterHandleInput, this._afterHandleInputFn));
|
|
70593
70595
|
}
|
|
70594
70596
|
/** @internal */
|
|
70595
70597
|
onDestroy() {
|
|
@@ -71228,7 +71230,7 @@ class KBA extends Wi {
|
|
|
71228
71230
|
super(I, [C, n]), this.audio = A, this.range = e, this.divisionsInnerAngle = t, this.divisionsOuterAngle = i, this.type = "PositionalAudioHelper", this.update();
|
|
71229
71231
|
}
|
|
71230
71232
|
update() {
|
|
71231
|
-
const A = this.audio, e = this.range, t = this.divisionsInnerAngle, i = this.divisionsOuterAngle, I =
|
|
71233
|
+
const A = this.audio, e = this.range, t = this.divisionsInnerAngle, i = this.divisionsOuterAngle, I = dg.degToRad(A.panner.coneInnerAngle), o = dg.degToRad(A.panner.coneOuterAngle), s = I / 2, n = o / 2;
|
|
71232
71234
|
let C = 0, a = 0, r, Q;
|
|
71233
71235
|
const E = this.geometry, c = E.attributes.position;
|
|
71234
71236
|
E.clearGroups();
|
|
@@ -72607,7 +72609,7 @@ function OBA(g, A) {
|
|
|
72607
72609
|
return {
|
|
72608
72610
|
name: "Empty",
|
|
72609
72611
|
isLooping: !1,
|
|
72610
|
-
guid: (A == null ? void 0 : A.generateUUID()) ??
|
|
72612
|
+
guid: (A == null ? void 0 : A.generateUUID()) ?? dg.generateUUID(),
|
|
72611
72613
|
index: -1,
|
|
72612
72614
|
clip: new XI(g, 0, [])
|
|
72613
72615
|
};
|
|
@@ -73071,7 +73073,7 @@ class oH {
|
|
|
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 Eg = class {
|
|
73075
73077
|
constructor(A, e, t, i, I) {
|
|
73076
73078
|
B(this, "_action");
|
|
73077
73079
|
B(this, "root");
|
|
@@ -73082,11 +73084,11 @@ const Qg = class {
|
|
|
73082
73084
|
B(this, "positionChange", new y());
|
|
73083
73085
|
B(this, "rotationChange", new RA());
|
|
73084
73086
|
B(this, "_prevTime", 0);
|
|
73085
|
-
if (this.context = A, this.root = e, this.clip = t,
|
|
73087
|
+
if (this.context = A, this.root = e, this.clip = t, Eg.firstKeyframeRotation[this.cacheId] || (Eg.firstKeyframeRotation[this.cacheId] = new RA()), I) {
|
|
73086
73088
|
const o = I.values;
|
|
73087
|
-
|
|
73089
|
+
Eg.firstKeyframeRotation[this.cacheId].set(o[0], o[1], o[2], o[3]);
|
|
73088
73090
|
}
|
|
73089
|
-
|
|
73091
|
+
Eg.spaceRotation[this.cacheId] || (Eg.spaceRotation[this.cacheId] = new RA()), Eg.effectiveSpaceRotation[this.cacheId] || (Eg.effectiveSpaceRotation[this.cacheId] = new RA()), Eg.clipOffsetRotation[this.cacheId] = new RA(), I && Eg.clipOffsetRotation[this.cacheId].set(I.values[0], I.values[1], I.values[2], I.values[3]).invert(), this.handlePosition(t, i), this.handleRotation(t, I);
|
|
73090
73092
|
}
|
|
73091
73093
|
set action(A) {
|
|
73092
73094
|
this._action = A;
|
|
@@ -73100,20 +73102,20 @@ const Qg = class {
|
|
|
73100
73102
|
onStart(A) {
|
|
73101
73103
|
if (A.getClip() !== this.clip)
|
|
73102
73104
|
return;
|
|
73103
|
-
|
|
73104
|
-
const e =
|
|
73105
|
-
if (
|
|
73105
|
+
Eg.lastObjRotation[this.cacheId] || (Eg.lastObjRotation[this.cacheId] = this.root.quaternion.clone());
|
|
73106
|
+
const e = Eg.lastObjRotation[this.cacheId];
|
|
73107
|
+
if (Eg.spaceRotation[this.cacheId].copy(e), Sw) {
|
|
73106
73108
|
const t = new Ei().setFromQuaternion(e);
|
|
73107
73109
|
console.log("START", this.clip.name, ge.toDegrees(t.y), this.root.position.z);
|
|
73108
73110
|
}
|
|
73109
73111
|
}
|
|
73110
73112
|
getClipRotationOffset() {
|
|
73111
|
-
return
|
|
73113
|
+
return Eg.clipOffsetRotation[this.cacheId];
|
|
73112
73114
|
}
|
|
73113
73115
|
handlePosition(A, e) {
|
|
73114
73116
|
if (e) {
|
|
73115
73117
|
const t = this.root;
|
|
73116
|
-
Sw && t.add(new Ms()),
|
|
73118
|
+
Sw && t.add(new Ms()), Eg.lastObjPosition[this.cacheId] || (Eg.lastObjPosition[this.cacheId] = this.root.position.clone());
|
|
73117
73119
|
const i = new y(), I = new y();
|
|
73118
73120
|
this.positionWrapper = new oH(e, (o, s) => {
|
|
73119
73121
|
const n = this.action.getEffectiveWeight();
|
|
@@ -73139,10 +73141,10 @@ const Qg = class {
|
|
|
73139
73141
|
this.positionChange.set(0, 0, 0), this.rotationChange.set(0, 0, 0, 1);
|
|
73140
73142
|
}
|
|
73141
73143
|
onAfterUpdate(A) {
|
|
73142
|
-
return !this.action || (A *= this.action.getEffectiveWeight(), A <= 0) ? !1 : (this.positionChange.multiplyScalar(A), this.rotationChange.slerp(
|
|
73144
|
+
return !this.action || (A *= this.action.getEffectiveWeight(), A <= 0) ? !1 : (this.positionChange.multiplyScalar(A), this.rotationChange.slerp(Eg.identityQuaternion, 1 - A), !0);
|
|
73143
73145
|
}
|
|
73144
73146
|
};
|
|
73145
|
-
let vn =
|
|
73147
|
+
let vn = Eg;
|
|
73146
73148
|
B(vn, "lastObjPosition", {}), B(vn, "lastObjRotation", {}), // we remove the first keyframe rotation from the space rotation when updating
|
|
73147
73149
|
B(vn, "firstKeyframeRotation", {}), // this is used to rotate the space on clip end / start (so the transform direction is correct)
|
|
73148
73150
|
B(vn, "spaceRotation", {}), B(vn, "effectiveSpaceRotation", {}), B(vn, "clipOffsetRotation", {}), B(vn, "identityQuaternion", new RA());
|
|
@@ -73206,7 +73208,7 @@ var jBA = Object.defineProperty, ZBA = Object.getOwnPropertyDescriptor, mm = (g,
|
|
|
73206
73208
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
73207
73209
|
return t && i && jBA(A, e, i), i;
|
|
73208
73210
|
};
|
|
73209
|
-
const
|
|
73211
|
+
const Is = IA("debuganimator");
|
|
73210
73212
|
class sI extends NA {
|
|
73211
73213
|
constructor() {
|
|
73212
73214
|
super(...arguments);
|
|
@@ -73226,7 +73228,7 @@ class sI extends NA {
|
|
|
73226
73228
|
}
|
|
73227
73229
|
set runtimeAnimatorController(e) {
|
|
73228
73230
|
var t;
|
|
73229
|
-
this._animatorController && this._animatorController.model === e || (e ? e instanceof ks ? (e.animator && e.animator !== this && (console.warn("AnimatorController can not be bound to multiple animators", (t = e.model) == null ? void 0 : t.name), e.model || console.error("AnimatorController has no model"), e = new ks(e.model)), this._animatorController = e, this._animatorController.bind(this)) : (
|
|
73231
|
+
this._animatorController && this._animatorController.model === e || (e ? e instanceof ks ? (e.animator && e.animator !== this && (console.warn("AnimatorController can not be bound to multiple animators", (t = e.model) == null ? void 0 : t.name), e.model || console.error("AnimatorController has no model"), e = new ks(e.model)), this._animatorController = e, this._animatorController.bind(this)) : (Is && console.log("Assign animator controller", e, this), this._animatorController = new ks(e), 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 sI extends NA {
|
|
|
73284
73286
|
}
|
|
73285
73287
|
setBool(e, t) {
|
|
73286
73288
|
var i, I;
|
|
73287
|
-
|
|
73289
|
+
Is && console.log("setBool", e, t), ((i = this.runtimeAnimatorController) == null ? void 0 : i.getBool(e)) !== t && (this._parametersAreDirty = !0), (I = this.runtimeAnimatorController) == null || I.setBool(e, t);
|
|
73288
73290
|
}
|
|
73289
73291
|
/**@deprecated use getBool */
|
|
73290
73292
|
GetBool(e) {
|
|
@@ -73293,7 +73295,7 @@ class sI extends NA {
|
|
|
73293
73295
|
getBool(e) {
|
|
73294
73296
|
var i;
|
|
73295
73297
|
const t = ((i = this.runtimeAnimatorController) == null ? void 0 : i.getBool(e)) ?? !1;
|
|
73296
|
-
return
|
|
73298
|
+
return Is && console.log("getBool", e, t), t;
|
|
73297
73299
|
}
|
|
73298
73300
|
toggleBool(e) {
|
|
73299
73301
|
this.setBool(e, !this.getBool(e));
|
|
@@ -73304,7 +73306,7 @@ class sI extends NA {
|
|
|
73304
73306
|
}
|
|
73305
73307
|
setFloat(e, t) {
|
|
73306
73308
|
var i, I;
|
|
73307
|
-
((i = this.runtimeAnimatorController) == null ? void 0 : i.getFloat(e)) !== t && (this._parametersAreDirty = !0),
|
|
73309
|
+
((i = this.runtimeAnimatorController) == null ? void 0 : i.getFloat(e)) !== t && (this._parametersAreDirty = !0), Is && console.log("setFloat", e, t), (I = this.runtimeAnimatorController) == null || I.setFloat(e, t);
|
|
73308
73310
|
}
|
|
73309
73311
|
/**@deprecated use getFloat */
|
|
73310
73312
|
GetFloat(e) {
|
|
@@ -73313,7 +73315,7 @@ class sI extends NA {
|
|
|
73313
73315
|
getFloat(e) {
|
|
73314
73316
|
var i;
|
|
73315
73317
|
const t = ((i = this.runtimeAnimatorController) == null ? void 0 : i.getFloat(e)) ?? -1;
|
|
73316
|
-
return
|
|
73318
|
+
return Is && console.log("getFloat", e, t), t;
|
|
73317
73319
|
}
|
|
73318
73320
|
/**@deprecated use setInteger */
|
|
73319
73321
|
SetInteger(e, t) {
|
|
@@ -73321,7 +73323,7 @@ class sI extends NA {
|
|
|
73321
73323
|
}
|
|
73322
73324
|
setInteger(e, t) {
|
|
73323
73325
|
var i, I;
|
|
73324
|
-
((i = this.runtimeAnimatorController) == null ? void 0 : i.getInteger(e)) !== t && (this._parametersAreDirty = !0),
|
|
73326
|
+
((i = this.runtimeAnimatorController) == null ? void 0 : i.getInteger(e)) !== t && (this._parametersAreDirty = !0), Is && console.log("setInteger", e, t), (I = this.runtimeAnimatorController) == null || I.setInteger(e, t);
|
|
73325
73327
|
}
|
|
73326
73328
|
/**@deprecated use getInteger */
|
|
73327
73329
|
GetInteger(e) {
|
|
@@ -73330,7 +73332,7 @@ class sI extends NA {
|
|
|
73330
73332
|
getInteger(e) {
|
|
73331
73333
|
var i;
|
|
73332
73334
|
const t = ((i = this.runtimeAnimatorController) == null ? void 0 : i.getInteger(e)) ?? -1;
|
|
73333
|
-
return
|
|
73335
|
+
return Is && console.log("getInteger", e, t), t;
|
|
73334
73336
|
}
|
|
73335
73337
|
/**@deprecated use setTrigger */
|
|
73336
73338
|
SetTrigger(e) {
|
|
@@ -73338,7 +73340,7 @@ class sI extends NA {
|
|
|
73338
73340
|
}
|
|
73339
73341
|
setTrigger(e) {
|
|
73340
73342
|
var t;
|
|
73341
|
-
this._parametersAreDirty = !0,
|
|
73343
|
+
this._parametersAreDirty = !0, Is && console.log("setTrigger", e), (t = this.runtimeAnimatorController) == null || t.setTrigger(e);
|
|
73342
73344
|
}
|
|
73343
73345
|
/**@deprecated use resetTrigger */
|
|
73344
73346
|
ResetTrigger(e) {
|
|
@@ -73346,7 +73348,7 @@ class sI extends NA {
|
|
|
73346
73348
|
}
|
|
73347
73349
|
resetTrigger(e) {
|
|
73348
73350
|
var t;
|
|
73349
|
-
this._parametersAreDirty = !0,
|
|
73351
|
+
this._parametersAreDirty = !0, Is && console.log("resetTrigger", e), (t = this.runtimeAnimatorController) == null || t.resetTrigger(e);
|
|
73350
73352
|
}
|
|
73351
73353
|
/**@deprecated use getTrigger */
|
|
73352
73354
|
GetTrigger(e) {
|
|
@@ -73355,7 +73357,7 @@ class sI extends NA {
|
|
|
73355
73357
|
getTrigger(e) {
|
|
73356
73358
|
var i;
|
|
73357
73359
|
const t = (i = this.runtimeAnimatorController) == null ? void 0 : i.getTrigger(e);
|
|
73358
|
-
return
|
|
73360
|
+
return Is && console.log("getTrigger", e, t), t;
|
|
73359
73361
|
}
|
|
73360
73362
|
/**@deprecated use isInTransition */
|
|
73361
73363
|
IsInTransition() {
|
|
@@ -73372,7 +73374,7 @@ class sI extends NA {
|
|
|
73372
73374
|
}
|
|
73373
73375
|
setSpeed(e) {
|
|
73374
73376
|
var t;
|
|
73375
|
-
e !== this._speed && (
|
|
73377
|
+
e !== this._speed && (Is && console.log("setSpeed", e), this._speed = e, ((t = this._animatorController) == null ? void 0 : t.animator) == this && this._animatorController.setSpeed(e));
|
|
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(e) {
|
|
@@ -73384,7 +73386,7 @@ class sI extends NA {
|
|
|
73384
73386
|
this._normalizedStartOffset = ge.lerp(e.x, e.y, Math.random()), ((t = this.runtimeAnimatorController) == null ? void 0 : t.animator) == this && (this.runtimeAnimatorController.normalizedStartOffset = this._normalizedStartOffset);
|
|
73385
73387
|
}
|
|
73386
73388
|
awake() {
|
|
73387
|
-
|
|
73389
|
+
Is && console.log("ANIMATOR", this.name, this), this.gameObject && this.initializeRuntimeAnimatorController();
|
|
73388
73390
|
}
|
|
73389
73391
|
initializeRuntimeAnimatorController(e = !1) {
|
|
73390
73392
|
const t = e || this.runtimeAnimatorController !== this._initializeWithRuntimeAnimatorController;
|
|
@@ -73429,7 +73431,7 @@ class AJ {
|
|
|
73429
73431
|
}
|
|
73430
73432
|
get duration() {
|
|
73431
73433
|
var A;
|
|
73432
|
-
return ((A = this.clip) == null ? void 0 : A.duration) ??
|
|
73434
|
+
return ((A = this.clip) == null ? void 0 : A.duration) ?? cg.restPoseClipDuration;
|
|
73433
73435
|
}
|
|
73434
73436
|
}
|
|
73435
73437
|
const Jx = class {
|
|
@@ -73515,11 +73517,11 @@ const Jx = class {
|
|
|
73515
73517
|
}
|
|
73516
73518
|
}
|
|
73517
73519
|
};
|
|
73518
|
-
let
|
|
73520
|
+
let cg = Jx;
|
|
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
|
-
B(
|
|
73524
|
+
B(cg, "animationDurationPadding", 1 / 60), B(cg, "restPoseClipDuration", 1 / 60);
|
|
73523
73525
|
class km {
|
|
73524
73526
|
constructor(A) {
|
|
73525
73527
|
/** For each animated object, contains time/pos/rot/scale samples in the format that USD needs,
|
|
@@ -73545,7 +73547,7 @@ class km {
|
|
|
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 : (cg.restPoseClipDuration + cg.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 km {
|
|
|
73574
73576
|
return console.error("Trying to get start time for root that has no animation data", A, e, ...this.dict), 0;
|
|
73575
73577
|
let I = 0;
|
|
73576
73578
|
for (let o = 0; o < i.length && i[o].clip !== e; o++)
|
|
73577
|
-
I += i[o].getDuration() +
|
|
73579
|
+
I += i[o].getDuration() + cg.animationDurationPadding;
|
|
73578
73580
|
return I;
|
|
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 km {
|
|
|
73625
73627
|
console.warn("no transform data found for target ", Q, "at slot " + I + ", this is likely a bug");
|
|
73626
73628
|
continue;
|
|
73627
73629
|
}
|
|
73628
|
-
s.delete(Q), this.injectRestPoses && !E[0] && (E[0] = new
|
|
73630
|
+
s.delete(Q), this.injectRestPoses && !E[0] && (E[0] = new cg(null, Q, null));
|
|
73629
73631
|
let c = E[I];
|
|
73630
|
-
c || (c = new
|
|
73632
|
+
c || (c = new cg(A, Q, e), E[I] = c), c.addTrack(a), o != null && o.includes(Q) || o == null || o.push(Q);
|
|
73631
73633
|
}
|
|
73632
73634
|
Pn && console.log("Unregistered nodes for this clip", s, "clip", e, "at slot", I, "for root", A, "targets", o);
|
|
73633
73635
|
for (const a of s) {
|
|
@@ -73636,11 +73638,11 @@ class km {
|
|
|
73636
73638
|
continue;
|
|
73637
73639
|
if (this.injectRestPoses && !r[0]) {
|
|
73638
73640
|
console.warn("Adding rest pose for ", a, e, "at slot", I, "This is likely a bug, should have been added earlier.");
|
|
73639
|
-
const E = new
|
|
73641
|
+
const E = new cg(null, a, null);
|
|
73640
73642
|
r[0] = E;
|
|
73641
73643
|
}
|
|
73642
73644
|
let Q = r[I];
|
|
73643
|
-
Q || (Pn && console.log("Adding padding clip for ", a, e, "at slot", I), Q = new
|
|
73645
|
+
Q || (Pn && console.log("Adding padding clip for ", a, e, "at slot", I), Q = new cg(A, a, e), r[I] = Q);
|
|
73644
73646
|
}
|
|
73645
73647
|
const n = new AJ(this, A, e);
|
|
73646
73648
|
if (this.rootAndClipToRegisteredAnimationMap.set(t, n), Pn && console.log({ root: A, clip: e, info: n }), e) {
|
|
@@ -73671,13 +73673,14 @@ class km {
|
|
|
73671
73673
|
for (let a = 0; a < C.length; a++) {
|
|
73672
73674
|
let r = C[a];
|
|
73673
73675
|
if (!r) {
|
|
73674
|
-
const
|
|
73675
|
-
C[a] = new
|
|
73676
|
+
const E = a - (this.injectRestPoses ? 1 : 0);
|
|
73677
|
+
C[a] = new cg(null, n, this.rootToRegisteredClip.get(i)[E]), r = C[a];
|
|
73676
73678
|
}
|
|
73677
|
-
|
|
73678
|
-
|
|
73679
|
-
|
|
73680
|
-
|
|
73679
|
+
const Q = r.getDuration();
|
|
73680
|
+
if (s[a] === void 0)
|
|
73681
|
+
s[a] = Q;
|
|
73682
|
+
else if (s[a] !== Q) {
|
|
73683
|
+
console.error("Error during UDSZ export: Encountered different animation durations for animated targets. Please report a bug!", { datas: C, target: n }), s[a] = Q;
|
|
73681
73684
|
continue;
|
|
73682
73685
|
}
|
|
73683
73686
|
}
|
|
@@ -73747,7 +73750,7 @@ class zBA {
|
|
|
73747
73750
|
const _ = new Array();
|
|
73748
73751
|
let j = 0;
|
|
73749
73752
|
for (let Z = 0; Z < x.length; Z++)
|
|
73750
|
-
_.push(j), j += x[Z].getDuration() +
|
|
73753
|
+
_.push(j), j += x[Z].getDuration() + cg.animationDurationPadding;
|
|
73751
73754
|
for (let Z = 0; Z < x.length; Z++) {
|
|
73752
73755
|
const oA = x[Z], BA = _[Z];
|
|
73753
73756
|
H.length <= Z && H.push({ pos: [], rot: [], scale: [], timeOffset: BA });
|
|
@@ -73763,7 +73766,7 @@ class zBA {
|
|
|
73763
73766
|
for (const _ of v) {
|
|
73764
73767
|
const j = R.get(_);
|
|
73765
73768
|
let Z;
|
|
73766
|
-
j ? console.assert(j.length === x, "We should have the same number of TransformData entries for each bone", j, q) : Z = new
|
|
73769
|
+
j ? console.assert(j.length === x, "We should have the same number of TransformData entries for each bone", j, q) : Z = new cg(null, _, null);
|
|
73767
73770
|
for (let oA = 0; oA < x; oA++) {
|
|
73768
73771
|
const BA = j ? j[oA] : Z, UA = q[oA];
|
|
73769
73772
|
for (const { time: gA, translation: pA } of BA.getValues(UA.pos, !0, !1, !1)) {
|
|
@@ -73887,7 +73890,7 @@ class zBA {
|
|
|
73887
73890
|
const t = this.dict.get(this.object);
|
|
73888
73891
|
if (t)
|
|
73889
73892
|
for (let r = 0; r < t.length; r++)
|
|
73890
|
-
t[r] === void 0 && (t[r] = new
|
|
73893
|
+
t[r] === void 0 && (t[r] = new cg(null, this.object, null));
|
|
73891
73894
|
this.skinnedMeshExport(A, e);
|
|
73892
73895
|
const i = this.object, I = this.dict.get(i);
|
|
73893
73896
|
if (!I || i.isSkinnedMesh)
|
|
@@ -73902,7 +73905,7 @@ class zBA {
|
|
|
73902
73905
|
console.error("Got an undefined transform data, this is likely a bug.", i, I);
|
|
73903
73906
|
continue;
|
|
73904
73907
|
}
|
|
73905
|
-
n += I[r].getDuration() +
|
|
73908
|
+
n += I[r].getDuration() + cg.animationDurationPadding;
|
|
73906
73909
|
}
|
|
73907
73910
|
const C = Intl.NumberFormat("en-US", {
|
|
73908
73911
|
maximumFractionDigits: 3,
|
|
@@ -74347,7 +74350,7 @@ var lQA = Object.defineProperty, dQA = Object.getOwnPropertyDescriptor, Rm = (g,
|
|
|
74347
74350
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
74348
74351
|
return t && i && lQA(A, e, i), i;
|
|
74349
74352
|
};
|
|
74350
|
-
const
|
|
74353
|
+
const No = IA("debugplayersync");
|
|
74351
74354
|
class Af extends NA {
|
|
74352
74355
|
constructor() {
|
|
74353
74356
|
super(...arguments);
|
|
@@ -74356,7 +74359,7 @@ class Af extends NA {
|
|
|
74356
74359
|
B(this, "onPlayerSpawned");
|
|
74357
74360
|
B(this, "_localInstance");
|
|
74358
74361
|
B(this, "onJoinedRoom", () => {
|
|
74359
|
-
|
|
74362
|
+
No && 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 Af extends NA {
|
|
|
74372
74375
|
var t, i, I, o, s, n;
|
|
74373
74376
|
if (this._localInstance)
|
|
74374
74377
|
return this._localInstance;
|
|
74375
|
-
if (
|
|
74378
|
+
if (No && console.log("PlayerSync.createInstance", (t = this.asset) == null ? void 0 : t.uri), !((i = this.asset) != null && i.asset) && !((I = this.asset) != null && I.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 e = await this._localInstance;
|
|
@@ -74385,7 +74388,7 @@ class Af extends NA {
|
|
|
74385
74388
|
}
|
|
74386
74389
|
destroyInstance() {
|
|
74387
74390
|
var e;
|
|
74388
|
-
(e = this._localInstance) == null || e.then((t) => (
|
|
74391
|
+
(e = this._localInstance) == null || e.then((t) => (No && console.log("PlayerSync.destroyInstance", t), sA.destroySynced(t))), this._localInstance = void 0;
|
|
74389
74392
|
}
|
|
74390
74393
|
watchTabVisible() {
|
|
74391
74394
|
window.addEventListener("visibilitychange", (e) => {
|
|
@@ -74418,7 +74421,7 @@ const Zg = (dd = class extends NA {
|
|
|
74418
74421
|
B(this, "dontDestroy", !1);
|
|
74419
74422
|
B(this, "onUserLeftRoom", (A) => {
|
|
74420
74423
|
if (A.userId === this.owner) {
|
|
74421
|
-
|
|
74424
|
+
No && console.log("PLAYERSYNC LEFT", this.owner), this.doDestroy();
|
|
74422
74425
|
return;
|
|
74423
74426
|
}
|
|
74424
74427
|
});
|
|
@@ -74464,7 +74467,7 @@ const Zg = (dd = class extends NA {
|
|
|
74464
74467
|
}
|
|
74465
74468
|
onOwnerChange(A, e) {
|
|
74466
74469
|
var o, s;
|
|
74467
|
-
|
|
74470
|
+
No && console.log("PlayerSync.onOwnerChange", this, "newOwner", A, "oldOwner", e);
|
|
74468
74471
|
const t = Zg._local.indexOf(this);
|
|
74469
74472
|
t >= 0 && Zg._local.splice(t, 1);
|
|
74470
74473
|
const i = {
|
|
@@ -74481,11 +74484,11 @@ const Zg = (dd = class extends NA {
|
|
|
74481
74484
|
this.dispatchEvent(I), Zg.dispatchEvent("ownerChanged", I);
|
|
74482
74485
|
}
|
|
74483
74486
|
awake() {
|
|
74484
|
-
Zg.all.push(this),
|
|
74487
|
+
Zg.all.push(this), No && console.log("Registered new PlayerState", this.guid, Zg.all.length - 1, Zg.all), this.context.connection.beginListen(nt.UserLeftRoom, this.onUserLeftRoom);
|
|
74485
74488
|
}
|
|
74486
74489
|
async start() {
|
|
74487
|
-
|
|
74488
|
-
!this.destroyed && !this.owner ? this.dontDestroy ?
|
|
74490
|
+
No && console.log("PLAYERSTATE.START, owner: " + this.owner, this.context.connection.usersInRoom([])), this.owner ? (this.context.connection.isInRoom || await pa(300), this.context.connection.userIsInRoom(this.owner) == !1 && (No && 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 || (No && console.warn("PlayerState.start → owner is undefined!", this.name), setTimeout(() => {
|
|
74491
|
+
!this.destroyed && !this.owner ? this.dontDestroy ? No && console.warn("PlayerState.start → owner is still undefined but dontDestroy is set to true", this.name) : (No && console.warn(`PlayerState.start → owner is still undefined: destroying "${this.name}" instance now`), this.doDestroy()) : No && console.log("PlayerState.start → owner is assigned", this.owner);
|
|
74489
74492
|
}, 2e3));
|
|
74490
74493
|
}
|
|
74491
74494
|
// onEnable() {
|
|
@@ -74499,7 +74502,7 @@ const Zg = (dd = class extends NA {
|
|
|
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
|
+
No && console.log("PlayerSync.doDestroy → syncDestroy", this.name), _K(this.gameObject, this.context.connection);
|
|
74503
74506
|
}
|
|
74504
74507
|
onDestroy() {
|
|
74505
74508
|
if (this.context.connection.stopListen(nt.UserLeftRoom, this.onUserLeftRoom), Zg.all.splice(Zg.all.indexOf(this), 1), this.isLocalPlayer) {
|
|
@@ -76514,7 +76517,7 @@ class aJ extends bm {
|
|
|
76514
76517
|
Km([
|
|
76515
76518
|
D(je)
|
|
76516
76519
|
], aJ.prototype, "mainTexture", 1);
|
|
76517
|
-
var nEA = Object.defineProperty, CEA = Object.getOwnPropertyDescriptor,
|
|
76520
|
+
var nEA = Object.defineProperty, CEA = Object.getOwnPropertyDescriptor, zo = (g, A, e, t) => {
|
|
76518
76521
|
for (var i = t > 1 ? void 0 : t ? CEA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
76519
76522
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
76520
76523
|
return t && i && nEA(A, e, i), i;
|
|
@@ -76531,25 +76534,25 @@ class nB {
|
|
|
76531
76534
|
B(this, "selectedColor");
|
|
76532
76535
|
}
|
|
76533
76536
|
}
|
|
76534
|
-
|
|
76537
|
+
zo([
|
|
76535
76538
|
D()
|
|
76536
76539
|
], nB.prototype, "colorMultiplier", 2);
|
|
76537
|
-
|
|
76540
|
+
zo([
|
|
76538
76541
|
D(vt)
|
|
76539
76542
|
], nB.prototype, "disabledColor", 2);
|
|
76540
|
-
|
|
76543
|
+
zo([
|
|
76541
76544
|
D()
|
|
76542
76545
|
], nB.prototype, "fadeDuration", 2);
|
|
76543
|
-
|
|
76546
|
+
zo([
|
|
76544
76547
|
D(vt)
|
|
76545
76548
|
], nB.prototype, "highlightedColor", 2);
|
|
76546
|
-
|
|
76549
|
+
zo([
|
|
76547
76550
|
D(vt)
|
|
76548
76551
|
], nB.prototype, "normalColor", 2);
|
|
76549
|
-
|
|
76552
|
+
zo([
|
|
76550
76553
|
D(vt)
|
|
76551
76554
|
], nB.prototype, "pressedColor", 2);
|
|
76552
|
-
|
|
76555
|
+
zo([
|
|
76553
76556
|
D(vt)
|
|
76554
76557
|
], nB.prototype, "selectedColor", 2);
|
|
76555
76558
|
class aEA {
|
|
@@ -76676,25 +76679,25 @@ class CB extends NA {
|
|
|
76676
76679
|
return t ? e.clone().multiply(t).convertLinearToSRGB() : e.clone().convertLinearToSRGB();
|
|
76677
76680
|
}
|
|
76678
76681
|
}
|
|
76679
|
-
|
|
76682
|
+
zo([
|
|
76680
76683
|
D(xg)
|
|
76681
76684
|
], CB.prototype, "onClick", 2);
|
|
76682
|
-
|
|
76685
|
+
zo([
|
|
76683
76686
|
D(nB)
|
|
76684
76687
|
], CB.prototype, "colors", 2);
|
|
76685
|
-
|
|
76688
|
+
zo([
|
|
76686
76689
|
D()
|
|
76687
76690
|
], CB.prototype, "transition", 2);
|
|
76688
|
-
|
|
76691
|
+
zo([
|
|
76689
76692
|
D(aEA)
|
|
76690
76693
|
], CB.prototype, "animationTriggers", 2);
|
|
76691
|
-
|
|
76694
|
+
zo([
|
|
76692
76695
|
D(sI)
|
|
76693
76696
|
], CB.prototype, "animator", 2);
|
|
76694
|
-
|
|
76697
|
+
zo([
|
|
76695
76698
|
D()
|
|
76696
76699
|
], CB.prototype, "interactable", 1);
|
|
76697
|
-
var rEA = Object.defineProperty, BEA = Object.getOwnPropertyDescriptor,
|
|
76700
|
+
var rEA = Object.defineProperty, BEA = Object.getOwnPropertyDescriptor, Cg = (g, A, e, t) => {
|
|
76698
76701
|
for (var i = t > 1 ? void 0 : t ? BEA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
76699
76702
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
76700
76703
|
return t && i && rEA(A, e, i), i;
|
|
@@ -76714,19 +76717,19 @@ class gE {
|
|
|
76714
76717
|
return this.left + this.right;
|
|
76715
76718
|
}
|
|
76716
76719
|
}
|
|
76717
|
-
|
|
76720
|
+
Cg([
|
|
76718
76721
|
D()
|
|
76719
76722
|
], gE.prototype, "left", 2);
|
|
76720
|
-
|
|
76723
|
+
Cg([
|
|
76721
76724
|
D()
|
|
76722
76725
|
], gE.prototype, "right", 2);
|
|
76723
|
-
|
|
76726
|
+
Cg([
|
|
76724
76727
|
D()
|
|
76725
76728
|
], gE.prototype, "top", 2);
|
|
76726
|
-
|
|
76729
|
+
Cg([
|
|
76727
76730
|
D()
|
|
76728
76731
|
], gE.prototype, "bottom", 2);
|
|
76729
|
-
class
|
|
76732
|
+
class Vo extends NA {
|
|
76730
76733
|
constructor() {
|
|
76731
76734
|
super(...arguments);
|
|
76732
76735
|
B(this, "_rectTransform", null);
|
|
@@ -76777,37 +76780,37 @@ class Xo extends NA {
|
|
|
76777
76780
|
return this.spacing;
|
|
76778
76781
|
}
|
|
76779
76782
|
}
|
|
76780
|
-
|
|
76783
|
+
Cg([
|
|
76781
76784
|
D()
|
|
76782
|
-
],
|
|
76783
|
-
|
|
76785
|
+
], Vo.prototype, "childAlignment", 2);
|
|
76786
|
+
Cg([
|
|
76784
76787
|
D()
|
|
76785
|
-
],
|
|
76786
|
-
|
|
76788
|
+
], Vo.prototype, "reverseArrangement", 2);
|
|
76789
|
+
Cg([
|
|
76787
76790
|
D()
|
|
76788
|
-
],
|
|
76789
|
-
|
|
76791
|
+
], Vo.prototype, "spacing", 2);
|
|
76792
|
+
Cg([
|
|
76790
76793
|
D(gE)
|
|
76791
|
-
],
|
|
76792
|
-
|
|
76794
|
+
], Vo.prototype, "padding", 2);
|
|
76795
|
+
Cg([
|
|
76793
76796
|
D()
|
|
76794
|
-
],
|
|
76795
|
-
|
|
76797
|
+
], Vo.prototype, "minWidth", 2);
|
|
76798
|
+
Cg([
|
|
76796
76799
|
D()
|
|
76797
|
-
],
|
|
76798
|
-
|
|
76800
|
+
], Vo.prototype, "minHeight", 2);
|
|
76801
|
+
Cg([
|
|
76799
76802
|
D()
|
|
76800
|
-
],
|
|
76801
|
-
|
|
76803
|
+
], Vo.prototype, "flexibleHeight", 2);
|
|
76804
|
+
Cg([
|
|
76802
76805
|
D()
|
|
76803
|
-
],
|
|
76804
|
-
|
|
76806
|
+
], Vo.prototype, "flexibleWidth", 2);
|
|
76807
|
+
Cg([
|
|
76805
76808
|
D()
|
|
76806
|
-
],
|
|
76807
|
-
|
|
76809
|
+
], Vo.prototype, "preferredHeight", 2);
|
|
76810
|
+
Cg([
|
|
76808
76811
|
D()
|
|
76809
|
-
],
|
|
76810
|
-
class aB extends
|
|
76812
|
+
], Vo.prototype, "preferredWidth", 2);
|
|
76813
|
+
class aB extends Vo {
|
|
76811
76814
|
constructor() {
|
|
76812
76815
|
super(...arguments);
|
|
76813
76816
|
B(this, "childControlHeight", !0);
|
|
@@ -76860,22 +76863,22 @@ class aB extends Xo {
|
|
|
76860
76863
|
}
|
|
76861
76864
|
}
|
|
76862
76865
|
}
|
|
76863
|
-
|
|
76866
|
+
Cg([
|
|
76864
76867
|
D()
|
|
76865
76868
|
], aB.prototype, "childControlHeight", 2);
|
|
76866
|
-
|
|
76869
|
+
Cg([
|
|
76867
76870
|
D()
|
|
76868
76871
|
], aB.prototype, "childControlWidth", 2);
|
|
76869
|
-
|
|
76872
|
+
Cg([
|
|
76870
76873
|
D()
|
|
76871
76874
|
], aB.prototype, "childForceExpandHeight", 2);
|
|
76872
|
-
|
|
76875
|
+
Cg([
|
|
76873
76876
|
D()
|
|
76874
76877
|
], aB.prototype, "childForceExpandWidth", 2);
|
|
76875
|
-
|
|
76878
|
+
Cg([
|
|
76876
76879
|
D()
|
|
76877
76880
|
], aB.prototype, "childScaleHeight", 2);
|
|
76878
|
-
|
|
76881
|
+
Cg([
|
|
76879
76882
|
D()
|
|
76880
76883
|
], aB.prototype, "childScaleWidth", 2);
|
|
76881
76884
|
class N8 extends aB {
|
|
@@ -76888,7 +76891,7 @@ class b8 extends aB {
|
|
|
76888
76891
|
return "x";
|
|
76889
76892
|
}
|
|
76890
76893
|
}
|
|
76891
|
-
class K8 extends
|
|
76894
|
+
class K8 extends Vo {
|
|
76892
76895
|
onCalculateLayout() {
|
|
76893
76896
|
}
|
|
76894
76897
|
}
|
|
@@ -76922,7 +76925,7 @@ const BR = IA("debuguilayout"), x8 = class extends Dm {
|
|
|
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(), (t = this.shadowComponent) == null || t.updateMatrixWorld(!0), (i = this.shadowComponent) == null || i.updateWorldMatrix(!0, !0), this.invokeBeforeRenderEvents(),
|
|
76928
|
+
this.renderOnTop || this.screenspace ? this.gameObject.removeFromParent() : (this.onUpdateRenderMode(), this.handleLayoutUpdates(), (t = this.shadowComponent) == null || t.updateMatrixWorld(!0), (i = this.shadowComponent) == null || i.updateWorldMatrix(!0, !0), this.invokeBeforeRenderEvents(), _o.ensureUpdateMeshUI(vq, this.context));
|
|
76926
76929
|
});
|
|
76927
76930
|
B(this, "onAfterRenderRoutine", () => {
|
|
76928
76931
|
var A, e, t, i, I;
|
|
@@ -76937,7 +76940,7 @@ const BR = IA("debuguilayout"), x8 = class extends Dm {
|
|
|
76937
76940
|
} else
|
|
76938
76941
|
this.previousParent.add(this.gameObject);
|
|
76939
76942
|
const o = this.context.renderer.autoClear, s = this.context.renderer.autoClearColor;
|
|
76940
|
-
this.context.renderer.autoClear = !1, this.context.renderer.autoClearColor = !1, this.context.renderer.clearDepth(), this.onUpdateRenderMode(!0), this.handleLayoutUpdates(), (i = this.shadowComponent) == null || i.updateMatrixWorld(!0), this.invokeBeforeRenderEvents(),
|
|
76943
|
+
this.context.renderer.autoClear = !1, this.context.renderer.autoClearColor = !1, this.context.renderer.clearDepth(), this.onUpdateRenderMode(!0), this.handleLayoutUpdates(), (i = this.shadowComponent) == null || i.updateMatrixWorld(!0), this.invokeBeforeRenderEvents(), _o.ensureUpdateMeshUI(vq, this.context, !0), this.context.renderer.render(this.gameObject, this.context.mainCamera), this.context.renderer.autoClear = o, this.context.renderer.autoClearColor = s, this.previousParent.add(this.gameObject);
|
|
76941
76944
|
}
|
|
76942
76945
|
(I = this._lastMatrixWorld) == null || I.copy(this.gameObject.matrixWorld);
|
|
76943
76946
|
});
|
|
@@ -77060,7 +77063,7 @@ const BR = IA("debuguilayout"), x8 = class extends Dm {
|
|
|
77060
77063
|
for (const t of this._rectTransforms) {
|
|
77061
77064
|
A && t.markDirty();
|
|
77062
77065
|
let i = this._layoutGroups.get(t.gameObject);
|
|
77063
|
-
t.isDirty && !i && (i = t.gameObject.getComponentInParent(
|
|
77066
|
+
t.isDirty && !i && (i = t.gameObject.getComponentInParent(Vo)), (t.isDirty || i != null && i.isDirty) && (BR && !e && console.log("CANVAS UPDATE ### " + t.name + " ##################################### " + this.context.time.frame), i == null || i.updateLayout(), t.updateTransform());
|
|
77064
77067
|
}
|
|
77065
77068
|
}
|
|
77066
77069
|
applyRenderSettings() {
|
|
@@ -77230,7 +77233,7 @@ class tl extends NA {
|
|
|
77230
77233
|
beforeCreateDocument(e) {
|
|
77231
77234
|
var t;
|
|
77232
77235
|
if (this.target && this.object && this.gameObject) {
|
|
77233
|
-
const i = new
|
|
77236
|
+
const i = new lg(
|
|
77234
77237
|
"Move to " + ((t = this.target) == null ? void 0 : t.name),
|
|
77235
77238
|
iI.tapTrigger(this.gameObject),
|
|
77236
77239
|
dt.transformAction(this.object, this.target, this.duration, this.relativeMotion ? "relative" : "absolute")
|
|
@@ -77314,13 +77317,13 @@ const qn = (zw = class extends NA {
|
|
|
77314
77317
|
createAndAttachBehaviors(A, e, t) {
|
|
77315
77318
|
const i = [], I = [], o = Math.max(0, this.fadeDuration);
|
|
77316
77319
|
I.push(dt.fadeAction([...this.targetModels, ...t], o, !1)), i.push(dt.fadeAction(e, o, !1)), I.push(dt.fadeAction(e, o, !0)), A.addBehavior(
|
|
77317
|
-
new
|
|
77320
|
+
new lg(
|
|
77318
77321
|
"Select_" + this.selfModel.name,
|
|
77319
77322
|
iI.tapTrigger(this.selfModel),
|
|
77320
77323
|
dt.parallel(...I)
|
|
77321
77324
|
)
|
|
77322
77325
|
), A.addBehavior(
|
|
77323
|
-
new
|
|
77326
|
+
new lg(
|
|
77324
77327
|
"StartHidden_" + this.selfModel.name,
|
|
77325
77328
|
iI.sceneStartTrigger(),
|
|
77326
77329
|
dt.parallel(...i)
|
|
@@ -77403,13 +77406,13 @@ const pi = (cc = class extends NA {
|
|
|
77403
77406
|
if (this.toggleModel) {
|
|
77404
77407
|
if (this.toggleOnClick) {
|
|
77405
77408
|
const n = [];
|
|
77406
|
-
n.push(dt.fadeAction(i, 0, !1)), n.push(dt.fadeAction(this.toggleModel, 0, !0)), n.push(dt.fadeAction(this.targetModel, 0, I)), A.addBehavior(new
|
|
77409
|
+
n.push(dt.fadeAction(i, 0, !1)), n.push(dt.fadeAction(this.toggleModel, 0, !0)), n.push(dt.fadeAction(this.targetModel, 0, I)), A.addBehavior(new lg(
|
|
77407
77410
|
"Toggle_" + i.name + "_toggleTo" + (I ? "On" : "Off"),
|
|
77408
77411
|
iI.tapTrigger(i),
|
|
77409
77412
|
dt.parallel(...n)
|
|
77410
77413
|
));
|
|
77411
77414
|
const C = [];
|
|
77412
|
-
C.push(dt.fadeAction(this.toggleModel, 0, !1)), C.push(dt.fadeAction(i, 0, !0)), C.push(dt.fadeAction(this.targetModel, 0, !I)), A.addBehavior(new
|
|
77415
|
+
C.push(dt.fadeAction(this.toggleModel, 0, !1)), C.push(dt.fadeAction(i, 0, !0)), C.push(dt.fadeAction(this.targetModel, 0, !I)), A.addBehavior(new lg(
|
|
77413
77416
|
"Toggle_" + i.name + "_toggleTo" + (I ? "Off" : "On"),
|
|
77414
77417
|
iI.tapTrigger(this.toggleModel),
|
|
77415
77418
|
dt.parallel(...C)
|
|
@@ -77417,7 +77420,7 @@ const pi = (cc = class extends NA {
|
|
|
77417
77420
|
}
|
|
77418
77421
|
} else {
|
|
77419
77422
|
const n = [];
|
|
77420
|
-
this.hideSelf && n.push(dt.fadeAction(i, 0, !1)), n.push(dt.fadeAction(this.targetModel, 0, I)), A.addBehavior(new
|
|
77423
|
+
this.hideSelf && n.push(dt.fadeAction(i, 0, !1)), n.push(dt.fadeAction(this.targetModel, 0, I)), A.addBehavior(new lg(
|
|
77421
77424
|
"Toggle_" + i.name + "_toggleTo" + (I ? "On" : "Off"),
|
|
77422
77425
|
iI.tapTrigger(i),
|
|
77423
77426
|
dt.parallel(...n)
|
|
@@ -77431,7 +77434,7 @@ const pi = (cc = class extends NA {
|
|
|
77431
77434
|
};
|
|
77432
77435
|
o(i), this.toggleModel && o(this.toggleModel);
|
|
77433
77436
|
const s = new Array();
|
|
77434
|
-
this.targetStateBeforeCreatingDocument || s.push(this.targetModel), this.stateBeforeCreatingDocument || s.push(t), this.toggleModel && s.push(this.toggleModel), A.addBehavior(new
|
|
77437
|
+
this.targetStateBeforeCreatingDocument || s.push(this.targetModel), this.stateBeforeCreatingDocument || s.push(t), this.toggleModel && s.push(this.toggleModel), A.addBehavior(new lg(
|
|
77435
77438
|
"HideOnStart_" + this.gameObject.name,
|
|
77436
77439
|
iI.sceneStartTrigger(),
|
|
77437
77440
|
dt.fadeAction(s, 0, !1)
|
|
@@ -77464,7 +77467,7 @@ class v8 extends NA {
|
|
|
77464
77467
|
sA.setActive(this.gameObject, !1);
|
|
77465
77468
|
}
|
|
77466
77469
|
createBehaviours(e, t, i) {
|
|
77467
|
-
t.uuid === this.gameObject.uuid && (this.wasVisible || e.addBehavior(new
|
|
77470
|
+
t.uuid === this.gameObject.uuid && (this.wasVisible || e.addBehavior(new lg(
|
|
77468
77471
|
"HideOnStart_" + this.gameObject.name,
|
|
77469
77472
|
iI.sceneStartTrigger(),
|
|
77470
77473
|
dt.fadeAction(t, 0, !1)
|
|
@@ -77485,7 +77488,7 @@ class rf extends NA {
|
|
|
77485
77488
|
}
|
|
77486
77489
|
createBehaviours(e, t, i) {
|
|
77487
77490
|
if (this.target && t.uuid === this.gameObject.uuid) {
|
|
77488
|
-
const I = new
|
|
77491
|
+
const I = new lg(
|
|
77489
77492
|
"emphasize " + this.name,
|
|
77490
77493
|
iI.tapTrigger(this.gameObject),
|
|
77491
77494
|
dt.emphasize(this.target, this.duration, this.motionType, void 0, "basic")
|
|
@@ -77545,7 +77548,7 @@ class HQ extends NA {
|
|
|
77545
77548
|
const Q = this.name ? "_" + this.name : "";
|
|
77546
77549
|
if (C && this.trigger === "tap") {
|
|
77547
77550
|
this.toggleOnClick && (r.multiplePerformOperation = "stop");
|
|
77548
|
-
const E = new
|
|
77551
|
+
const E = new lg(
|
|
77549
77552
|
"playAudio" + Q,
|
|
77550
77553
|
iI.tapTrigger(this.gameObject),
|
|
77551
77554
|
r
|
|
@@ -77556,7 +77559,7 @@ class HQ extends NA {
|
|
|
77556
77559
|
if (C && 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 E = new
|
|
77562
|
+
const E = new lg(
|
|
77560
77563
|
"playAudioOnStart" + Q,
|
|
77561
77564
|
iI.sceneStartTrigger(),
|
|
77562
77565
|
r
|
|
@@ -77630,7 +77633,7 @@ const Ln = (Vw = class extends NA {
|
|
|
77630
77633
|
s,
|
|
77631
77634
|
this.animationSequence,
|
|
77632
77635
|
this.animationLoopAfterSequence
|
|
77633
|
-
), r = new
|
|
77636
|
+
), r = new lg(
|
|
77634
77637
|
this.trigger + "_" + o + "_toPlayAnimation_" + this.stateName + "_on_" + ((C = this.target) == null ? void 0 : C.name),
|
|
77635
77638
|
this.trigger == "tap" ? iI.tapTrigger(this.selfModel) : iI.sceneStartTrigger(),
|
|
77636
77639
|
a
|
|
@@ -77667,7 +77670,7 @@ const Ln = (Vw = class extends NA {
|
|
|
77667
77670
|
let o = [], s = [];
|
|
77668
77671
|
if (I) {
|
|
77669
77672
|
const p = A.registerAnimation(e, I.clip);
|
|
77670
|
-
return p && s.push(p), {
|
|
77673
|
+
return p && (I.loop ? s.push(p) : o.push(p)), {
|
|
77671
77674
|
animationSequence: o,
|
|
77672
77675
|
animationLoopAfterSequence: s
|
|
77673
77676
|
};
|
|
@@ -80586,10 +80589,10 @@ class ecA {
|
|
|
80586
80589
|
c.side = yi;
|
|
80587
80590
|
break;
|
|
80588
80591
|
case 2:
|
|
80589
|
-
c.side =
|
|
80592
|
+
c.side = pg;
|
|
80590
80593
|
break;
|
|
80591
80594
|
default:
|
|
80592
|
-
c.side =
|
|
80595
|
+
c.side = pg;
|
|
80593
80596
|
break;
|
|
80594
80597
|
}
|
|
80595
80598
|
switch ((p = r._ZTest) == null ? void 0 : p.value) {
|
|
@@ -81547,35 +81550,35 @@ const Fy = class extends NA {
|
|
|
81547
81550
|
return A.type === "Mesh" || A.type === "SkinnedMesh";
|
|
81548
81551
|
}
|
|
81549
81552
|
};
|
|
81550
|
-
let
|
|
81553
|
+
let og = Fy;
|
|
81551
81554
|
Na([
|
|
81552
81555
|
D()
|
|
81553
|
-
],
|
|
81556
|
+
], og.prototype, "receiveShadows", 2);
|
|
81554
81557
|
Na([
|
|
81555
81558
|
D()
|
|
81556
|
-
],
|
|
81559
|
+
], og.prototype, "shadowCastingMode", 2);
|
|
81557
81560
|
Na([
|
|
81558
81561
|
D()
|
|
81559
|
-
],
|
|
81562
|
+
], og.prototype, "lightmapIndex", 2);
|
|
81560
81563
|
Na([
|
|
81561
81564
|
D(te)
|
|
81562
|
-
],
|
|
81565
|
+
], og.prototype, "lightmapScaleOffset", 2);
|
|
81563
81566
|
Na([
|
|
81564
81567
|
D()
|
|
81565
|
-
],
|
|
81568
|
+
], og.prototype, "enableInstancing", 2);
|
|
81566
81569
|
Na([
|
|
81567
81570
|
D()
|
|
81568
|
-
],
|
|
81571
|
+
], og.prototype, "renderOrder", 2);
|
|
81569
81572
|
Na([
|
|
81570
81573
|
D()
|
|
81571
|
-
],
|
|
81574
|
+
], og.prototype, "allowOcclusionWhenDynamic", 2);
|
|
81572
81575
|
Na([
|
|
81573
81576
|
D(fA)
|
|
81574
|
-
],
|
|
81577
|
+
], og.prototype, "probeAnchor", 2);
|
|
81575
81578
|
Na([
|
|
81576
81579
|
D()
|
|
81577
|
-
],
|
|
81578
|
-
class _m extends
|
|
81580
|
+
], og.prototype, "reflectionProbeUsage", 2);
|
|
81581
|
+
class _m extends og {
|
|
81579
81582
|
}
|
|
81580
81583
|
class X8 extends _m {
|
|
81581
81584
|
constructor() {
|
|
@@ -81592,7 +81595,7 @@ class X8 extends _m {
|
|
|
81592
81595
|
onAfterRender() {
|
|
81593
81596
|
if (super.onAfterRender(), this._needUpdateBoundingSphere) {
|
|
81594
81597
|
for (const e of this.sharedMeshes)
|
|
81595
|
-
if (e instanceof
|
|
81598
|
+
if (e instanceof Yo) {
|
|
81596
81599
|
this._needUpdateBoundingSphere = !1;
|
|
81597
81600
|
const t = e.geometry, i = EK(e);
|
|
81598
81601
|
i && (e.geometry = i), e.computeBoundingSphere(), e.geometry = t;
|
|
@@ -81600,7 +81603,7 @@ class X8 extends _m {
|
|
|
81600
81603
|
}
|
|
81601
81604
|
if (dH) {
|
|
81602
81605
|
for (const e of this.sharedMeshes)
|
|
81603
|
-
if (e instanceof
|
|
81606
|
+
if (e instanceof Yo && e.boundingSphere) {
|
|
81604
81607
|
const t = Pi(e.boundingSphere.center).applyMatrix4(e.matrixWorld);
|
|
81605
81608
|
Se.DrawWireSphere(t, e.boundingSphere.radius, "red");
|
|
81606
81609
|
}
|
|
@@ -81767,25 +81770,25 @@ const Os = ($w = class {
|
|
|
81767
81770
|
return Os._temp.set(16711935), Os._temp.alpha = 1, Os._temp;
|
|
81768
81771
|
}
|
|
81769
81772
|
}, B($w, "_temp", new vt(0, 0, 0, 1)), B($w, "_temp2", new vt(0, 0, 0, 1)), $w);
|
|
81770
|
-
let
|
|
81773
|
+
let Xo = Os;
|
|
81771
81774
|
nA([
|
|
81772
81775
|
D(vt)
|
|
81773
|
-
],
|
|
81776
|
+
], Xo.prototype, "color", 2);
|
|
81774
81777
|
nA([
|
|
81775
81778
|
D(vt)
|
|
81776
|
-
],
|
|
81779
|
+
], Xo.prototype, "colorMin", 2);
|
|
81777
81780
|
nA([
|
|
81778
81781
|
D(vt)
|
|
81779
|
-
],
|
|
81782
|
+
], Xo.prototype, "colorMax", 2);
|
|
81780
81783
|
nA([
|
|
81781
81784
|
D(oE)
|
|
81782
|
-
],
|
|
81785
|
+
], Xo.prototype, "gradient", 2);
|
|
81783
81786
|
nA([
|
|
81784
81787
|
D(oE)
|
|
81785
|
-
],
|
|
81788
|
+
], Xo.prototype, "gradientMin", 2);
|
|
81786
81789
|
nA([
|
|
81787
81790
|
D(oE)
|
|
81788
|
-
],
|
|
81791
|
+
], Xo.prototype, "gradientMax", 2);
|
|
81789
81792
|
var IN = /* @__PURE__ */ ((g) => (g[g.Hierarchy = 0] = "Hierarchy", g[g.Local = 1] = "Local", g[g.Shape = 2] = "Shape", g))(IN || {});
|
|
81790
81793
|
class UI {
|
|
81791
81794
|
constructor() {
|
|
@@ -81837,7 +81840,7 @@ nA([
|
|
|
81837
81840
|
D(le)
|
|
81838
81841
|
], UI.prototype, "gravityModifier", 2);
|
|
81839
81842
|
nA([
|
|
81840
|
-
D(
|
|
81843
|
+
D(Xo)
|
|
81841
81844
|
], UI.prototype, "startColor", 2);
|
|
81842
81845
|
nA([
|
|
81843
81846
|
D(le)
|
|
@@ -81966,7 +81969,7 @@ class Tm {
|
|
|
81966
81969
|
}
|
|
81967
81970
|
}
|
|
81968
81971
|
nA([
|
|
81969
|
-
D(
|
|
81972
|
+
D(Xo)
|
|
81970
81973
|
], Tm.prototype, "color", 2);
|
|
81971
81974
|
class sE {
|
|
81972
81975
|
constructor() {
|
|
@@ -82444,10 +82447,10 @@ nA([
|
|
|
82444
82447
|
D()
|
|
82445
82448
|
], Mi.prototype, "attachRibbonToTransform", 2);
|
|
82446
82449
|
nA([
|
|
82447
|
-
D(
|
|
82450
|
+
D(Xo)
|
|
82448
82451
|
], Mi.prototype, "colorOverLifetime", 2);
|
|
82449
82452
|
nA([
|
|
82450
|
-
D(
|
|
82453
|
+
D(Xo)
|
|
82451
82454
|
], Mi.prototype, "colorOverTrail", 2);
|
|
82452
82455
|
nA([
|
|
82453
82456
|
D()
|
|
@@ -82978,7 +82981,7 @@ nA([
|
|
|
82978
82981
|
D(iA)
|
|
82979
82982
|
], Il.prototype, "range", 2);
|
|
82980
82983
|
nA([
|
|
82981
|
-
D(
|
|
82984
|
+
D(Xo)
|
|
82982
82985
|
], Il.prototype, "color", 2);
|
|
82983
82986
|
const BcA = {
|
|
82984
82987
|
name: "HorizontalBlurShader",
|
|
@@ -83136,7 +83139,7 @@ const eW = (ZR = class extends NA {
|
|
|
83136
83139
|
/** @internal */
|
|
83137
83140
|
start() {
|
|
83138
83141
|
bw && console.log("Create ContactShadows on " + this.gameObject.name, this), this.shadowGroup = new Bo(), this.gameObject.add(this.shadowGroup), this.renderTarget = new Xe(this.textureSize, this.textureSize), this.renderTarget.texture.generateMipmaps = !1, this.renderTargetBlur = new Xe(this.textureSize, this.textureSize), this.renderTargetBlur.texture.generateMipmaps = !1;
|
|
83139
|
-
const A = new
|
|
83142
|
+
const A = new sg(1, 1).rotateX(Math.PI / 2);
|
|
83140
83143
|
this.gameObject instanceof uA && (console.warn("ContactShadows can not be added to a Mesh. Please add it to a Group or an empty Object"), XB(this.gameObject, !1));
|
|
83141
83144
|
const e = new tt({
|
|
83142
83145
|
map: this.renderTarget.texture,
|
|
@@ -83144,7 +83147,7 @@ const eW = (ZR = class extends NA {
|
|
|
83144
83147
|
color: 0,
|
|
83145
83148
|
transparent: !0,
|
|
83146
83149
|
depthWrite: !1,
|
|
83147
|
-
side:
|
|
83150
|
+
side: pg
|
|
83148
83151
|
});
|
|
83149
83152
|
this.plane = new uA(A, e), this.plane.scale.y = -1, this.gameObject.add(this.plane), this.plane && (this.plane.renderOrder = 1), this.occluderMesh = new uA(this.plane.geometry, new tt({
|
|
83150
83153
|
depthWrite: !0,
|
|
@@ -83179,7 +83182,7 @@ const eW = (ZR = class extends NA {
|
|
|
83179
83182
|
const I = this.plane.visible;
|
|
83180
83183
|
this.plane.visible = !1, this.gameObject instanceof uA && XB(this.gameObject, !1);
|
|
83181
83184
|
const o = e.background;
|
|
83182
|
-
e.background = null, e.overrideMaterial = this.depthMaterial, this.backfaceShadows ? this.depthMaterial.side = pt : this.depthMaterial.side =
|
|
83185
|
+
e.background = null, e.overrideMaterial = this.depthMaterial, this.backfaceShadows ? this.depthMaterial.side = pt : this.depthMaterial.side = pg;
|
|
83183
83186
|
const s = t.getClearAlpha();
|
|
83184
83187
|
t.setClearAlpha(0);
|
|
83185
83188
|
const n = t.xr.enabled;
|
|
@@ -83447,7 +83450,7 @@ var pcA = Object.defineProperty, fcA = Object.getOwnPropertyDescriptor, sl = (g,
|
|
|
83447
83450
|
return t && i && pcA(A, e, i), i;
|
|
83448
83451
|
};
|
|
83449
83452
|
const pH = IA("debugwebxr"), DcA = new GA().makeRotationY(Math.PI);
|
|
83450
|
-
class
|
|
83453
|
+
class Wo extends NA {
|
|
83451
83454
|
constructor() {
|
|
83452
83455
|
super(...arguments);
|
|
83453
83456
|
B(this, "_arScale", 1);
|
|
@@ -83642,22 +83645,22 @@ class jo extends NA {
|
|
|
83642
83645
|
}
|
|
83643
83646
|
sl([
|
|
83644
83647
|
D()
|
|
83645
|
-
],
|
|
83648
|
+
], Wo.prototype, "arScale", 1);
|
|
83646
83649
|
sl([
|
|
83647
83650
|
D()
|
|
83648
|
-
],
|
|
83651
|
+
], Wo.prototype, "invertForward", 2);
|
|
83649
83652
|
sl([
|
|
83650
83653
|
D(gt)
|
|
83651
|
-
],
|
|
83654
|
+
], Wo.prototype, "customReticle", 2);
|
|
83652
83655
|
sl([
|
|
83653
83656
|
D()
|
|
83654
|
-
],
|
|
83657
|
+
], Wo.prototype, "useXRAnchor", 2);
|
|
83655
83658
|
sl([
|
|
83656
83659
|
D()
|
|
83657
|
-
],
|
|
83660
|
+
], Wo.prototype, "arTouchTransform", 2);
|
|
83658
83661
|
sl([
|
|
83659
83662
|
D()
|
|
83660
|
-
],
|
|
83663
|
+
], Wo.prototype, "autoPlace", 2);
|
|
83661
83664
|
const e0 = class {
|
|
83662
83665
|
// readonly translate: Vector3 = new Vector3();
|
|
83663
83666
|
// readonly rotation: Quaternion = new Quaternion();
|
|
@@ -84385,13 +84388,13 @@ class iW extends _0 {
|
|
|
84385
84388
|
let e;
|
|
84386
84389
|
A instanceof Float32Array ? e = A : Array.isArray(A) && (e = new Float32Array(A));
|
|
84387
84390
|
const t = new tS(e, 6, 1);
|
|
84388
|
-
return this.setAttribute("instanceStart", new
|
|
84391
|
+
return this.setAttribute("instanceStart", new qo(t, 3, 0)), this.setAttribute("instanceEnd", new qo(t, 3, 3)), this.computeBoundingBox(), this.computeBoundingSphere(), this;
|
|
84389
84392
|
}
|
|
84390
84393
|
setColors(A) {
|
|
84391
84394
|
let e;
|
|
84392
84395
|
A instanceof Float32Array ? e = A : Array.isArray(A) && (e = new Float32Array(A));
|
|
84393
84396
|
const t = new tS(e, 6, 1);
|
|
84394
|
-
return this.setAttribute("instanceColorStart", new
|
|
84397
|
+
return this.setAttribute("instanceColorStart", new qo(t, 3, 0)), this.setAttribute("instanceColorEnd", new qo(t, 3, 3)), this;
|
|
84395
84398
|
}
|
|
84396
84399
|
fromWireframeGeometry(A) {
|
|
84397
84400
|
return this.setPositions(A.attributes.position.array), this;
|
|
@@ -84940,7 +84943,7 @@ function TcA(g, A, e) {
|
|
|
84940
84943
|
Tg.applyMatrix4(t), Hg.applyMatrix4(t), Tg.multiplyScalar(1 / Tg.w), Hg.multiplyScalar(1 / Hg.w), Tg.x *= I.x / 2, Tg.y *= I.y / 2, Hg.x *= I.x / 2, Hg.y *= I.y / 2, $g.start.copy(Tg), $g.start.z = 0, $g.end.copy(Hg), $g.end.z = 0;
|
|
84941
84944
|
const d = $g.closestPointToPointParameter(uR, !0);
|
|
84942
84945
|
$g.at(d, SH);
|
|
84943
|
-
const h =
|
|
84946
|
+
const h = dg.lerp(Tg.z, Hg.z, d), l = h >= -1 && h <= 1, p = uR.distanceTo(SH) < RQ * 0.5;
|
|
84944
84947
|
if (l && p) {
|
|
84945
84948
|
$g.start.fromBufferAttribute(n, Q), $g.end.fromBufferAttribute(C, Q), $g.start.applyMatrix4(o), $g.end.applyMatrix4(o);
|
|
84946
84949
|
const u = new y(), f = new y();
|
|
@@ -84967,7 +84970,7 @@ class HcA extends uA {
|
|
|
84967
84970
|
for (let o = 0, s = 0, n = e.count; o < n; o++, s += 2)
|
|
84968
84971
|
wH.fromBufferAttribute(e, o), yH.fromBufferAttribute(t, o), i[s] = s === 0 ? 0 : i[s - 1], i[s + 1] = i[s] + wH.distanceTo(yH);
|
|
84969
84972
|
const I = new tS(i, 2, 1);
|
|
84970
|
-
return A.setAttribute("instanceDistanceStart", new
|
|
84973
|
+
return A.setAttribute("instanceDistanceStart", new qo(I, 1, 0)), A.setAttribute("instanceDistanceEnd", new qo(I, 1, 1)), this;
|
|
84971
84974
|
}
|
|
84972
84975
|
raycast(A, e) {
|
|
84973
84976
|
const t = this.material.worldUnits, i = A.camera;
|
|
@@ -85260,7 +85263,7 @@ const WcA = new y(0, 1, 0), qx = class {
|
|
|
85260
85263
|
return this._quicklookButton;
|
|
85261
85264
|
const A = document.createElement("button");
|
|
85262
85265
|
return this._quicklookButton = A, A.dataset.needle = "quicklook-button", A.innerText = "Open in Quicklook", A.prepend(ws("view_in_ar")), A.addEventListener("click", () => {
|
|
85263
|
-
const e = sA.findObjectOfType(
|
|
85266
|
+
const e = sA.findObjectOfType(Ig);
|
|
85264
85267
|
e ? (A.classList.add("this-mode-is-requested"), e.exportAndOpen().then(() => {
|
|
85265
85268
|
A.classList.remove("this-mode-is-requested");
|
|
85266
85269
|
}).catch((t) => {
|
|
@@ -85402,7 +85405,7 @@ class Om extends NA {
|
|
|
85402
85405
|
}
|
|
85403
85406
|
onEnable() {
|
|
85404
85407
|
var e, t;
|
|
85405
|
-
window.location.protocol !== "https:" && Xt('<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 && (sA.findObjectOfType(
|
|
85408
|
+
window.location.protocol !== "https:" && Xt('<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 && (sA.findObjectOfType(Ig) || (vw && console.log("WebXR: Adding USDZExporter"), this._usdzExporter = sA.addComponent(this.gameObject, Ig), 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(Af), this._playerSync.autoSync = !1), this._playerSync && (this._playerSync.asset = this.defaultAvatar, (e = this._playerSync.onPlayerSpawned) == null || e.removeEventListener(this.onAvatarSpawned), (t = this._playerSync.onPlayerSpawned) == null || t.addEventListener(this.onAvatarSpawned));
|
|
85406
85409
|
}
|
|
85407
85410
|
onDisable() {
|
|
85408
85411
|
var e;
|
|
@@ -85438,14 +85441,14 @@ class Om extends NA {
|
|
|
85438
85441
|
vw && console.log("WebXR onEnterXR"), this._previousXRState = SI.Global.Mask;
|
|
85439
85442
|
const t = e.xr.isVR;
|
|
85440
85443
|
if (SI.Global.Set(t ? Ia.VR : Ia.AR), this.usePlacementReticle && e.xr.isAR) {
|
|
85441
|
-
let I = sA.findObjectOfType(
|
|
85444
|
+
let I = sA.findObjectOfType(Wo);
|
|
85442
85445
|
if (I)
|
|
85443
85446
|
vw && console.log("WebXR: WebARSessionRoot already exists, not creating a new one");
|
|
85444
85447
|
else {
|
|
85445
85448
|
const o = new fA();
|
|
85446
85449
|
for (const s of this.context.scene.children)
|
|
85447
85450
|
o.add(s);
|
|
85448
|
-
this.context.scene.add(o), I = sA.addNewComponent(o,
|
|
85451
|
+
this.context.scene.add(o), I = sA.addNewComponent(o, Wo), this._createdComponentsInSession.push(I), I.arScale = this.arSceneScale, I.arTouchTransform = this.usePlacementAdjustment, I.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 Om extends NA {
|
|
|
85485
85488
|
handleCreatingHTML() {
|
|
85486
85489
|
if (this.createARButton || this.createVRButton || this.useQuicklookExport) {
|
|
85487
85490
|
if ((xp() && eu() || VcA) && this.useQuicklookExport) {
|
|
85488
|
-
const t =
|
|
85489
|
-
|
|
85491
|
+
const t = sA.findObjectOfType(Ig);
|
|
85492
|
+
if (!t || t && t.allowCreateQuicklookButton) {
|
|
85493
|
+
const i = this.getButtonsFactory().createQuicklookButton();
|
|
85494
|
+
this.addButton(i, 50);
|
|
85495
|
+
}
|
|
85490
85496
|
}
|
|
85491
85497
|
if (this.createARButton) {
|
|
85492
85498
|
const t = this.getButtonsFactory().createARButton();
|
|
@@ -85573,7 +85579,7 @@ var XcA = Object.defineProperty, $cA = Object.getOwnPropertyDescriptor, Ja = (g,
|
|
|
85573
85579
|
return t && i && XcA(A, e, i), i;
|
|
85574
85580
|
};
|
|
85575
85581
|
const vB = IA("debugtext");
|
|
85576
|
-
var
|
|
85582
|
+
var Bg = /* @__PURE__ */ ((g) => (g[g.UpperLeft = 0] = "UpperLeft", g[g.UpperCenter = 1] = "UpperCenter", g[g.UpperRight = 2] = "UpperRight", g[g.MiddleLeft = 3] = "MiddleLeft", g[g.MiddleCenter = 4] = "MiddleCenter", g[g.MiddleRight = 5] = "MiddleRight", g[g.LowerLeft = 6] = "LowerLeft", g[g.LowerCenter = 7] = "LowerCenter", g[g.LowerRight = 8] = "LowerRight", g))(Bg || {}), IW = /* @__PURE__ */ ((g) => (g[g.Normal = 0] = "Normal", g[g.Bold = 1] = "Bold", g[g.Italic = 2] = "Italic", g[g.BoldAndItalic = 3] = "BoldAndItalic", g))(IW || {});
|
|
85577
85583
|
class go extends el {
|
|
85578
85584
|
constructor() {
|
|
85579
85585
|
super(...arguments);
|
|
@@ -86003,36 +86009,36 @@ class Pm {
|
|
|
86003
86009
|
}
|
|
86004
86010
|
setTextAlignment(A, e) {
|
|
86005
86011
|
switch (e) {
|
|
86006
|
-
case
|
|
86007
|
-
case
|
|
86008
|
-
case
|
|
86012
|
+
case Bg.LowerLeft:
|
|
86013
|
+
case Bg.MiddleLeft:
|
|
86014
|
+
case Bg.UpperLeft:
|
|
86009
86015
|
A.horizontalAlignment = "left";
|
|
86010
86016
|
break;
|
|
86011
|
-
case
|
|
86012
|
-
case
|
|
86013
|
-
case
|
|
86017
|
+
case Bg.LowerCenter:
|
|
86018
|
+
case Bg.MiddleCenter:
|
|
86019
|
+
case Bg.UpperCenter:
|
|
86014
86020
|
A.horizontalAlignment = "center";
|
|
86015
86021
|
break;
|
|
86016
|
-
case
|
|
86017
|
-
case
|
|
86018
|
-
case
|
|
86022
|
+
case Bg.LowerRight:
|
|
86023
|
+
case Bg.MiddleRight:
|
|
86024
|
+
case Bg.UpperRight:
|
|
86019
86025
|
A.horizontalAlignment = "right";
|
|
86020
86026
|
break;
|
|
86021
86027
|
}
|
|
86022
86028
|
switch (e) {
|
|
86023
|
-
case
|
|
86024
|
-
case
|
|
86025
|
-
case
|
|
86029
|
+
case Bg.LowerLeft:
|
|
86030
|
+
case Bg.LowerCenter:
|
|
86031
|
+
case Bg.LowerRight:
|
|
86026
86032
|
A.verticalAlignment = "bottom";
|
|
86027
86033
|
break;
|
|
86028
|
-
case
|
|
86029
|
-
case
|
|
86030
|
-
case
|
|
86034
|
+
case Bg.MiddleLeft:
|
|
86035
|
+
case Bg.MiddleCenter:
|
|
86036
|
+
case Bg.MiddleRight:
|
|
86031
86037
|
A.verticalAlignment = "middle";
|
|
86032
86038
|
break;
|
|
86033
|
-
case
|
|
86034
|
-
case
|
|
86035
|
-
case
|
|
86039
|
+
case Bg.UpperLeft:
|
|
86040
|
+
case Bg.UpperCenter:
|
|
86041
|
+
case Bg.UpperRight:
|
|
86036
86042
|
A.verticalAlignment = "top";
|
|
86037
86043
|
break;
|
|
86038
86044
|
}
|
|
@@ -86198,7 +86204,7 @@ function ghA(g, A) {
|
|
|
86198
86204
|
return I;
|
|
86199
86205
|
}
|
|
86200
86206
|
function IhA(g) {
|
|
86201
|
-
return new
|
|
86207
|
+
return new lg(
|
|
86202
86208
|
"DisableAtStart",
|
|
86203
86209
|
iI.sceneStartTrigger(),
|
|
86204
86210
|
dt.fadeAction(g, 0, !1)
|
|
@@ -86222,7 +86228,7 @@ var ohA = Object.defineProperty, shA = Object.getOwnPropertyDescriptor, bI = (g,
|
|
|
86222
86228
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
86223
86229
|
return t && i && ohA(A, e, i), i;
|
|
86224
86230
|
};
|
|
86225
|
-
const
|
|
86231
|
+
const os = IA("debugusdz");
|
|
86226
86232
|
class aE {
|
|
86227
86233
|
constructor() {
|
|
86228
86234
|
B(this, "callToAction");
|
|
@@ -86280,7 +86286,7 @@ const oN = (ey = class extends NA {
|
|
|
86280
86286
|
/** @internal */
|
|
86281
86287
|
start() {
|
|
86282
86288
|
var A, e, t;
|
|
86283
|
-
|
|
86289
|
+
os && (console.log("USDZExporter", this), console.log("Debug USDZ Mode. Press 'T' to export"), window.addEventListener("keydown", (i) => {
|
|
86284
86290
|
switch (i.key) {
|
|
86285
86291
|
case "t":
|
|
86286
86292
|
this.exportAsync();
|
|
@@ -86294,12 +86300,12 @@ const oN = (ey = class extends NA {
|
|
|
86294
86300
|
onEnable() {
|
|
86295
86301
|
var t;
|
|
86296
86302
|
const A = xp(), e = eu();
|
|
86297
|
-
(
|
|
86303
|
+
(os || A && e) && (this.allowCreateQuicklookButton && (this.button = this.createQuicklookButton()), this.lastCallback = this.quicklookCallback.bind(this), this.link = GH(this.context), this.link.addEventListener("message", this.lastCallback)), os && qi("USDZ Exporter enabled: " + this.name), (t = document.getElementById("open-in-ar")) == null || t.addEventListener("click", this.onClickedOpenInARElement);
|
|
86298
86304
|
}
|
|
86299
86305
|
/** @internal */
|
|
86300
86306
|
onDisable() {
|
|
86301
86307
|
var A, e, t;
|
|
86302
|
-
(A = this.button) == null || A.remove(), (e = this.link) == null || e.removeEventListener("message", this.lastCallback),
|
|
86308
|
+
(A = this.button) == null || A.remove(), (e = this.link) == null || e.removeEventListener("message", this.lastCallback), os && qi("USDZ Exporter disabled: " + this.name), (t = document.getElementById("open-in-ar")) == null || t.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 oN = (ey = class extends NA {
|
|
|
86317
86323
|
var t;
|
|
86318
86324
|
let A = this.exportFileName ?? ((t = this.objectToExport) == null ? void 0 : t.name) ?? this.name;
|
|
86319
86325
|
if (A += "-" + DoA(), dQ() || (A !== "" && (A += "-"), A += "MadeWithNeedle"), this.link || (this.link = GH(this.context)), this.customUsdzFile)
|
|
86320
|
-
return
|
|
86326
|
+
return os && console.log("Exporting custom usdz", this.customUsdzFile), this.openInQuickLook(this.customUsdzFile, A), null;
|
|
86321
86327
|
if (!this.objectToExport)
|
|
86322
86328
|
return console.warn("No object to export", this), null;
|
|
86323
86329
|
const e = await this.export(this.objectToExport);
|
|
86324
|
-
return e ? (
|
|
86330
|
+
return e ? (os && console.log("USDZ generation done. Downloading as " + A), this.openInQuickLook(e, A), e) : (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 oN = (ey = class extends NA {
|
|
|
86345
86351
|
const e = sA.getComponentsInChildren(A, kn);
|
|
86346
86352
|
for (const p of e)
|
|
86347
86353
|
p && p.enabled && p.start && p.start();
|
|
86348
|
-
const t = sA.getComponentsInChildren(A,
|
|
86354
|
+
const t = sA.getComponentsInChildren(A, og), i = new Array();
|
|
86349
86355
|
let I = 0;
|
|
86350
86356
|
for (const p of t) {
|
|
86351
86357
|
for (const u of p.sharedMeshes)
|
|
@@ -86367,14 +86373,14 @@ const oN = (ey = class extends NA {
|
|
|
86367
86373
|
}));
|
|
86368
86374
|
}
|
|
86369
86375
|
}
|
|
86370
|
-
|
|
86376
|
+
os && qi("Progressive Loading: " + i.length), await Promise.all(i), os && qi("Progressive Loading: done"), It.end("export-usdz-textures");
|
|
86371
86377
|
const o = SI.Global.Mask;
|
|
86372
86378
|
SI.Global.Set(Ia.AR);
|
|
86373
86379
|
const s = new moA(), n = new km(this.quickLookCompatible), C = [n, ...this.extensions], a = { self: this, exporter: s, extensions: C, object: A };
|
|
86374
86380
|
It.report("export-usdz", "Invoking before-export"), this.dispatchEvent(new CustomEvent("before-export", { detail: a })), this.applyWebARSessionRoot(), this._previousTimeScale = this.context.time.timeScale, this.context.time.timeScale = 0, It.report("export-usdz", "auto export animations and audio sources");
|
|
86375
86381
|
const r = new Array();
|
|
86376
|
-
this.autoExportAnimations && r.push(...ihA(A, n)), this.extensions.find((p) => p.extensionName === "Audio") && this.autoExportAudioSources && r.push(...ghA(A)), s.debug =
|
|
86377
|
-
const u = sA.getComponent(p,
|
|
86382
|
+
this.autoExportAnimations && r.push(...ihA(A, n)), this.extensions.find((p) => p.extensionName === "Audio") && this.autoExportAudioSources && r.push(...ghA(A)), s.debug = os, s.keepObject = (p) => {
|
|
86383
|
+
const u = sA.getComponent(p, og);
|
|
86378
86384
|
return !(u && !u.enabled);
|
|
86379
86385
|
};
|
|
86380
86386
|
const E = new Array();
|
|
@@ -86382,7 +86388,7 @@ const oN = (ey = class extends NA {
|
|
|
86382
86388
|
p.visible || E.push(p);
|
|
86383
86389
|
});
|
|
86384
86390
|
const c = this.extensions.find((p) => p.extensionName === "Behaviour");
|
|
86385
|
-
this.interactive && c && c.addBehavior(IhA(E));
|
|
86391
|
+
this.interactive && c && E.length > 0 && c.addBehavior(IhA(E));
|
|
86386
86392
|
let d = !0;
|
|
86387
86393
|
this.quickLookCompatible && !this.interactive && (d = !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"), It.report("export-usdz", "Invoking exporter.parse");
|
|
86388
86394
|
const h = await s.parse(this.objectToExport, {
|
|
@@ -86411,7 +86417,7 @@ const oN = (ey = class extends NA {
|
|
|
86411
86417
|
*/
|
|
86412
86418
|
openInQuickLook(A, e) {
|
|
86413
86419
|
const t = A instanceof Blob ? URL.createObjectURL(A) : A, i = this.buildQuicklookOverlay();
|
|
86414
|
-
|
|
86420
|
+
os && console.log("QuickLook Overlay", i);
|
|
86415
86421
|
const I = i.callToAction ? encodeURIComponent(i.callToAction) : "", o = i.checkoutTitle ? encodeURIComponent(i.checkoutTitle) : "", s = i.checkoutSubtitle ? encodeURIComponent(i.checkoutSubtitle) : "";
|
|
86416
86422
|
this.link.href = t + `#callToAction=${I}&checkoutTitle=${o}&checkoutSubtitle=${s}&callToActionURL=${i.callToActionURL}`, this.lastCallback || (this.lastCallback = this.quicklookCallback.bind(this), this.link.addEventListener("message", this.lastCallback)), this.link.download = e + ".usdz", this.link.click();
|
|
86417
86423
|
}
|
|
@@ -86428,13 +86434,13 @@ const oN = (ey = class extends NA {
|
|
|
86428
86434
|
}
|
|
86429
86435
|
quicklookCallback(A) {
|
|
86430
86436
|
if ((A == null ? void 0 : A.data) == "_apple_ar_quicklook_button_tapped") {
|
|
86431
|
-
|
|
86437
|
+
os && Xt("Quicklook closed via call to action button");
|
|
86432
86438
|
var e = new CustomEvent("quicklook-button-tapped", { detail: this });
|
|
86433
86439
|
if (this.dispatchEvent(e), !e.defaultPrevented) {
|
|
86434
86440
|
const t = new URLSearchParams(this.link.href);
|
|
86435
86441
|
if (t) {
|
|
86436
86442
|
const i = t.get("callToActionURL");
|
|
86437
|
-
|
|
86443
|
+
os && qi("Quicklook url: " + i), i && (dQ() ? globalThis.open(i, "_blank") : console.warn("Quicklook closed: custom redirects require a Needle Engine Pro license: https://needle.tools/pricing", i));
|
|
86438
86444
|
}
|
|
86439
86445
|
}
|
|
86440
86446
|
}
|
|
@@ -86447,8 +86453,8 @@ const oN = (ey = class extends NA {
|
|
|
86447
86453
|
getARScaleAndTarget() {
|
|
86448
86454
|
if (!this.objectToExport)
|
|
86449
86455
|
return { scale: 1, _invertForward: !1, target: this.gameObject, sessionRoot: null };
|
|
86450
|
-
let A = sA.getComponentInParent(this.objectToExport,
|
|
86451
|
-
A || (A = sA.getComponentInChildren(this.objectToExport,
|
|
86456
|
+
let A = sA.getComponentInParent(this.objectToExport, Wo);
|
|
86457
|
+
A || (A = sA.getComponentInChildren(this.objectToExport, Wo));
|
|
86452
86458
|
let e = 1, t = !1;
|
|
86453
86459
|
const i = this.objectToExport;
|
|
86454
86460
|
if (A)
|
|
@@ -86457,8 +86463,7 @@ const oN = (ey = class extends NA {
|
|
|
86457
86463
|
const s = sA.findObjectOfType(Om);
|
|
86458
86464
|
s && (e = s.arSceneScale);
|
|
86459
86465
|
}
|
|
86460
|
-
|
|
86461
|
-
return console.log("getARScaleAndTarget", o), o;
|
|
86466
|
+
return { scale: 1 / e, _invertForward: t, target: i, sessionRoot: (A == null ? void 0 : A.gameObject) ?? null };
|
|
86462
86467
|
}
|
|
86463
86468
|
applyWebARSessionRoot() {
|
|
86464
86469
|
if (!this.objectToExport)
|
|
@@ -86477,43 +86482,43 @@ const oN = (ey = class extends NA {
|
|
|
86477
86482
|
return e.parentNode || this.context.menu.appendChild(e), e;
|
|
86478
86483
|
}
|
|
86479
86484
|
}, B(ey, "invertForwardMatrix", new GA().makeRotationY(Math.PI)), B(ey, "invertForwardQuaternion", new RA().setFromEuler(new Ei(0, Math.PI, 0))), ey);
|
|
86480
|
-
let
|
|
86485
|
+
let Ig = oN;
|
|
86481
86486
|
bI([
|
|
86482
86487
|
D(fA)
|
|
86483
|
-
],
|
|
86488
|
+
], Ig.prototype, "objectToExport", 2);
|
|
86484
86489
|
bI([
|
|
86485
86490
|
D()
|
|
86486
|
-
],
|
|
86491
|
+
], Ig.prototype, "autoExportAnimations", 2);
|
|
86487
86492
|
bI([
|
|
86488
86493
|
D()
|
|
86489
|
-
],
|
|
86494
|
+
], Ig.prototype, "autoExportAudioSources", 2);
|
|
86490
86495
|
bI([
|
|
86491
86496
|
D()
|
|
86492
|
-
],
|
|
86497
|
+
], Ig.prototype, "exportFileName", 2);
|
|
86493
86498
|
bI([
|
|
86494
86499
|
D(URL)
|
|
86495
|
-
],
|
|
86500
|
+
], Ig.prototype, "customUsdzFile", 2);
|
|
86496
86501
|
bI([
|
|
86497
86502
|
D(aE)
|
|
86498
|
-
],
|
|
86503
|
+
], Ig.prototype, "customBranding", 2);
|
|
86499
86504
|
bI([
|
|
86500
86505
|
D()
|
|
86501
|
-
],
|
|
86506
|
+
], Ig.prototype, "anchoringType", 2);
|
|
86502
86507
|
bI([
|
|
86503
86508
|
D()
|
|
86504
|
-
],
|
|
86509
|
+
], Ig.prototype, "maxTextureSize", 2);
|
|
86505
86510
|
bI([
|
|
86506
86511
|
D()
|
|
86507
|
-
],
|
|
86512
|
+
], Ig.prototype, "planeAnchoringAlignment", 2);
|
|
86508
86513
|
bI([
|
|
86509
86514
|
D()
|
|
86510
|
-
],
|
|
86515
|
+
], Ig.prototype, "interactive", 2);
|
|
86511
86516
|
bI([
|
|
86512
86517
|
D()
|
|
86513
|
-
],
|
|
86518
|
+
], Ig.prototype, "allowCreateQuicklookButton", 2);
|
|
86514
86519
|
bI([
|
|
86515
86520
|
D()
|
|
86516
|
-
],
|
|
86521
|
+
], Ig.prototype, "quickLookCompatible", 2);
|
|
86517
86522
|
class Wm extends NA {
|
|
86518
86523
|
constructor() {
|
|
86519
86524
|
super(...arguments);
|
|
@@ -87844,7 +87849,7 @@ kJ([
|
|
|
87844
87849
|
], hf.prototype, "color", 1);
|
|
87845
87850
|
let Bd, DR, rc, qw;
|
|
87846
87851
|
function wR(g, A = 1 / 0, e = null) {
|
|
87847
|
-
DR || (DR = new
|
|
87852
|
+
DR || (DR = new sg(2, 2, 1, 1)), rc || (rc = new be({
|
|
87848
87853
|
uniforms: { blitTexture: new SA(g) },
|
|
87849
87854
|
vertexShader: `
|
|
87850
87855
|
varying vec2 vUv;
|
|
@@ -87985,16 +87990,16 @@ const at = {
|
|
|
87985
87990
|
CLAMP_TO_EDGE: 33071,
|
|
87986
87991
|
MIRRORED_REPEAT: 33648,
|
|
87987
87992
|
REPEAT: 10497
|
|
87988
|
-
}, yR = "KHR_mesh_quantization",
|
|
87989
|
-
|
|
87990
|
-
|
|
87991
|
-
|
|
87992
|
-
|
|
87993
|
-
|
|
87994
|
-
|
|
87995
|
-
|
|
87996
|
-
|
|
87997
|
-
|
|
87993
|
+
}, yR = "KHR_mesh_quantization", To = {};
|
|
87994
|
+
To[_e] = at.NEAREST;
|
|
87995
|
+
To[nh] = at.NEAREST_MIPMAP_NEAREST;
|
|
87996
|
+
To[XC] = at.NEAREST_MIPMAP_LINEAR;
|
|
87997
|
+
To[Re] = at.LINEAR;
|
|
87998
|
+
To[QQ] = at.LINEAR_MIPMAP_NEAREST;
|
|
87999
|
+
To[ZI] = at.LINEAR_MIPMAP_LINEAR;
|
|
88000
|
+
To[Kg] = at.CLAMP_TO_EDGE;
|
|
88001
|
+
To[Gs] = at.REPEAT;
|
|
88002
|
+
To[bQ] = at.MIRRORED_REPEAT;
|
|
87998
88003
|
const FH = {
|
|
87999
88004
|
scale: "scale",
|
|
88000
88005
|
position: "translation",
|
|
@@ -88020,7 +88025,7 @@ function jhA(g, A, e) {
|
|
|
88020
88025
|
for (let i = A; i < A + e; i++)
|
|
88021
88026
|
for (let I = 0; I < g.itemSize; I++) {
|
|
88022
88027
|
let o;
|
|
88023
|
-
g.itemSize > 4 ? o = g.array[i * g.itemSize + I] : (I === 0 ? o = g.getX(i) : I === 1 ? o = g.getY(i) : I === 2 ? o = g.getZ(i) : I === 3 && (o = g.getW(i)), g.normalized === !0 && (o =
|
|
88028
|
+
g.itemSize > 4 ? o = g.array[i * g.itemSize + I] : (I === 0 ? o = g.getX(i) : I === 1 ? o = g.getY(i) : I === 2 ? o = g.getZ(i) : I === 3 && (o = g.getW(i)), g.normalized === !0 && (o = dg.normalize(o, g.array))), t.min[I] = Math.min(t.min[I], o), t.max[I] = Math.max(t.max[I], o);
|
|
88024
88029
|
}
|
|
88025
88030
|
return t;
|
|
88026
88031
|
}
|
|
@@ -88268,7 +88273,7 @@ class ZhA {
|
|
|
88268
88273
|
for (let E = t; E < t + i; E++)
|
|
88269
88274
|
for (let c = 0; c < A.itemSize; c++) {
|
|
88270
88275
|
let d;
|
|
88271
|
-
A.itemSize > 4 ? d = A.array[E * A.itemSize + c] : (c === 0 ? d = A.getX(E) : c === 1 ? d = A.getY(E) : c === 2 ? d = A.getZ(E) : c === 3 && (d = A.getW(E)), A.normalized === !0 && (d =
|
|
88276
|
+
A.itemSize > 4 ? d = A.array[E * A.itemSize + c] : (c === 0 ? d = A.getX(E) : c === 1 ? d = A.getY(E) : c === 2 ? d = A.getZ(E) : c === 3 && (d = A.getW(E)), A.normalized === !0 && (d = dg.normalize(d, A.array))), e === at.FLOAT ? C.setFloat32(a, d, !0) : e === at.INT ? C.setInt32(a, d, !0) : e === at.UNSIGNED_INT ? C.setUint32(a, d, !0) : e === at.SHORT ? C.setInt16(a, d, !0) : e === at.UNSIGNED_SHORT ? C.setUint16(a, d, !0) : e === at.BYTE ? C.setInt8(a, d) : e === at.UNSIGNED_BYTE && C.setUint8(a, d), a += s;
|
|
88272
88277
|
}
|
|
88273
88278
|
const r = {
|
|
88274
88279
|
buffer: this.processBuffer(C.buffer),
|
|
@@ -88401,10 +88406,10 @@ class ZhA {
|
|
|
88401
88406
|
const e = this.json;
|
|
88402
88407
|
e.samplers || (e.samplers = []);
|
|
88403
88408
|
const t = {
|
|
88404
|
-
magFilter:
|
|
88405
|
-
minFilter:
|
|
88406
|
-
wrapS:
|
|
88407
|
-
wrapT:
|
|
88409
|
+
magFilter: To[A.magFilter],
|
|
88410
|
+
minFilter: To[A.minFilter],
|
|
88411
|
+
wrapS: To[A.wrapS],
|
|
88412
|
+
wrapT: To[A.wrapT]
|
|
88408
88413
|
};
|
|
88409
88414
|
return e.samplers.push(t) - 1;
|
|
88410
88415
|
}
|
|
@@ -88648,7 +88653,7 @@ class ZhA {
|
|
|
88648
88653
|
znear: A.near < 0 ? 0 : A.near
|
|
88649
88654
|
} : i.perspective = {
|
|
88650
88655
|
aspectRatio: A.aspect,
|
|
88651
|
-
yfov:
|
|
88656
|
+
yfov: dg.degToRad(A.fov),
|
|
88652
88657
|
zfar: A.far <= 0 ? 1e-3 : A.far,
|
|
88653
88658
|
znear: A.near < 0 ? 0 : A.near
|
|
88654
88659
|
}, A.name !== "" && (i.name = A.type), e.cameras.push(i) - 1;
|
|
@@ -89184,7 +89189,7 @@ const Gc = class extends NA {
|
|
|
89184
89189
|
...e
|
|
89185
89190
|
}, I = new fA();
|
|
89186
89191
|
e != null && e.pivot && I.position.sub(e.pivot), Lw && console.log("EXPORT", A), A.forEach((n) => {
|
|
89187
|
-
n && (I.children.push(n), n.matrixAutoUpdate = !1, n.matrix.copy(n.matrixWorld), sA.getComponentsInChildren(n,
|
|
89192
|
+
n && (I.children.push(n), n.matrixAutoUpdate = !1, n.matrix.copy(n.matrixWorld), sA.getComponentsInChildren(n, og).forEach((C) => {
|
|
89188
89193
|
sA.isActiveInHierarchy(C.gameObject) && C.setInstancingEnabled(!1);
|
|
89189
89194
|
}));
|
|
89190
89195
|
});
|
|
@@ -89212,7 +89217,7 @@ const Gc = class extends NA {
|
|
|
89212
89217
|
});
|
|
89213
89218
|
function s() {
|
|
89214
89219
|
A.forEach((n) => {
|
|
89215
|
-
n && (n.matrixAutoUpdate = !0, sA.getComponentsInChildren(n,
|
|
89220
|
+
n && (n.matrixAutoUpdate = !0, sA.getComponentsInChildren(n, og).forEach((C) => {
|
|
89216
89221
|
sA.isActiveInHierarchy(C.gameObject) && C.setInstancingEnabled(!1);
|
|
89217
89222
|
}));
|
|
89218
89223
|
});
|
|
@@ -89552,7 +89557,7 @@ function mR(g) {
|
|
|
89552
89557
|
return g * Math.PI / 180;
|
|
89553
89558
|
}
|
|
89554
89559
|
const xH = 300, Br = IA("debuglights");
|
|
89555
|
-
class
|
|
89560
|
+
class $o extends NA {
|
|
89556
89561
|
constructor() {
|
|
89557
89562
|
super(...arguments);
|
|
89558
89563
|
B(this, "type", 0);
|
|
@@ -89682,7 +89687,7 @@ class As extends NA {
|
|
|
89682
89687
|
Br && console.log("DISABLE LIGHT", this.name), this.light && (this.selfIsLight ? this.light.intensity = 0 : this.light.visible = !1);
|
|
89683
89688
|
}
|
|
89684
89689
|
onEnterXR(e) {
|
|
89685
|
-
this._webARRoot = sA.getComponentInParent(this.gameObject,
|
|
89690
|
+
this._webARRoot = sA.getComponentInParent(this.gameObject, Wo) ?? void 0;
|
|
89686
89691
|
}
|
|
89687
89692
|
// private *_updateLightIntensityInARRoutine() {
|
|
89688
89693
|
// while (this.context.isInAR) {
|
|
@@ -89755,37 +89760,37 @@ class As extends NA {
|
|
|
89755
89760
|
e.add(e.target), e.target.position.set(0, 0, -1);
|
|
89756
89761
|
}
|
|
89757
89762
|
}
|
|
89758
|
-
B(
|
|
89763
|
+
B($o, "allowChangingRendererShadowMapType", !0);
|
|
89759
89764
|
pC([
|
|
89760
89765
|
D()
|
|
89761
|
-
],
|
|
89766
|
+
], $o.prototype, "type", 2);
|
|
89762
89767
|
pC([
|
|
89763
89768
|
D(kA)
|
|
89764
|
-
],
|
|
89769
|
+
], $o.prototype, "color", 1);
|
|
89765
89770
|
pC([
|
|
89766
89771
|
D()
|
|
89767
|
-
],
|
|
89772
|
+
], $o.prototype, "shadowNearPlane", 1);
|
|
89768
89773
|
pC([
|
|
89769
89774
|
D()
|
|
89770
|
-
],
|
|
89775
|
+
], $o.prototype, "shadowBias", 1);
|
|
89771
89776
|
pC([
|
|
89772
89777
|
D()
|
|
89773
|
-
],
|
|
89778
|
+
], $o.prototype, "shadowNormalBias", 1);
|
|
89774
89779
|
pC([
|
|
89775
89780
|
D()
|
|
89776
|
-
],
|
|
89781
|
+
], $o.prototype, "shadows", 1);
|
|
89777
89782
|
pC([
|
|
89778
89783
|
D()
|
|
89779
|
-
],
|
|
89784
|
+
], $o.prototype, "lightmapBakeType", 2);
|
|
89780
89785
|
pC([
|
|
89781
89786
|
D()
|
|
89782
|
-
],
|
|
89787
|
+
], $o.prototype, "intensity", 1);
|
|
89783
89788
|
pC([
|
|
89784
89789
|
D()
|
|
89785
|
-
],
|
|
89790
|
+
], $o.prototype, "shadowDistance", 1);
|
|
89786
89791
|
pC([
|
|
89787
89792
|
D()
|
|
89788
|
-
],
|
|
89793
|
+
], $o.prototype, "shadowResolution", 1);
|
|
89789
89794
|
new y(0, 0, 0);
|
|
89790
89795
|
var flA = Object.defineProperty, DlA = Object.getOwnPropertyDescriptor, df = (g, A, e, t) => {
|
|
89791
89796
|
for (var i = t > 1 ? void 0 : t ? DlA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
@@ -89807,7 +89812,7 @@ df([
|
|
|
89807
89812
|
D()
|
|
89808
89813
|
], Ql.prototype, "distance", 2);
|
|
89809
89814
|
df([
|
|
89810
|
-
D(
|
|
89815
|
+
D(og)
|
|
89811
89816
|
], Ql.prototype, "renderers", 2);
|
|
89812
89817
|
class ylA {
|
|
89813
89818
|
constructor(A) {
|
|
@@ -89940,7 +89945,7 @@ const hW = (zR = class extends NA {
|
|
|
89940
89945
|
const s = this.invertForward ? -1 : 1;
|
|
89941
89946
|
o.matrix.multiply(new GA().makeRotationZ(Math.PI / 2 * s)), e.matrix.multiply(new GA().makeRotationZ(-Math.PI / 2 * s));
|
|
89942
89947
|
}
|
|
89943
|
-
const I = new
|
|
89948
|
+
const I = new lg(
|
|
89944
89949
|
"lookat " + this.name,
|
|
89945
89950
|
iI.sceneStartTrigger(),
|
|
89946
89951
|
dt.lookAtCameraAction(
|
|
@@ -90898,7 +90903,7 @@ var _lA = /* @__PURE__ */ function(g) {
|
|
|
90898
90903
|
return ke(g, [{
|
|
90899
90904
|
key: "genValue",
|
|
90900
90905
|
value: function() {
|
|
90901
|
-
return
|
|
90906
|
+
return dg.lerp(this.a, this.b, Math.random());
|
|
90902
90907
|
}
|
|
90903
90908
|
}, {
|
|
90904
90909
|
key: "toJSON",
|
|
@@ -92608,7 +92613,7 @@ var nY = /* @__PURE__ */ function() {
|
|
|
92608
92613
|
return ke(g, [{
|
|
92609
92614
|
key: "initialize",
|
|
92610
92615
|
value: function(e) {
|
|
92611
|
-
var t = Math.random(), i =
|
|
92616
|
+
var t = Math.random(), i = dg.lerp(1 - this.thickness, 1, Math.random()), I = t * this.arc, o = Math.sqrt(i), s = Math.sin(I), n = Math.cos(I);
|
|
92612
92617
|
e.position.x = o * n, e.position.y = o * s, e.position.z = 0;
|
|
92613
92618
|
var C = this.angle * o;
|
|
92614
92619
|
e.velocity.set(0, 0, Math.cos(C)).addScaledVector(e.position, Math.sin(C)).multiplyScalar(e.startSpeed), e.position.multiplyScalar(this.radius);
|
|
@@ -92648,7 +92653,7 @@ var nY = /* @__PURE__ */ function() {
|
|
|
92648
92653
|
return ke(g, [{
|
|
92649
92654
|
key: "initialize",
|
|
92650
92655
|
value: function(e) {
|
|
92651
|
-
var t = Math.random(), i =
|
|
92656
|
+
var t = Math.random(), i = dg.lerp(this.thickness, 1, Math.random()), I = t * this.arc, o = Math.sqrt(i), s = Math.sin(I), n = Math.cos(I);
|
|
92652
92657
|
e.position.x = o * n, e.position.y = o * s, e.position.z = 0;
|
|
92653
92658
|
var C = this.angle * o;
|
|
92654
92659
|
e.velocity.set(0, 0, Math.cos(C)).addScaledVector(e.position, Math.sin(C)).multiplyScalar(e.startSpeed), e.position.multiplyScalar(this.radius);
|
|
@@ -92716,7 +92721,7 @@ var nY = /* @__PURE__ */ function() {
|
|
|
92716
92721
|
return ke(g, [{
|
|
92717
92722
|
key: "initialize",
|
|
92718
92723
|
value: function(e) {
|
|
92719
|
-
var t = Math.random(), i = Math.random(), I =
|
|
92724
|
+
var t = Math.random(), i = Math.random(), I = dg.lerp(1 - this.thickness, 1, Math.random()), o = t * this.arc, s = Math.acos(2 * i - 1), n = Math.cbrt(I), C = Math.sin(o), a = Math.cos(o), r = Math.sin(s), Q = Math.cos(s);
|
|
92720
92725
|
e.position.x = n * r * a, e.position.y = n * r * C, e.position.z = n * Q, e.velocity.setScalar(0).addScaledVector(e.position, e.startSpeed), e.position.multiplyScalar(this.radius);
|
|
92721
92726
|
}
|
|
92722
92727
|
}, {
|
|
@@ -92914,7 +92919,7 @@ var Ce = /* @__PURE__ */ function(g) {
|
|
|
92914
92919
|
}]), e;
|
|
92915
92920
|
}(uA), CdA = new y(0, 0, 1), RR = new RA(), adA = new y(), rdA = new y();
|
|
92916
92921
|
new y();
|
|
92917
|
-
var QY = 60, BdA = new
|
|
92922
|
+
var QY = 60, BdA = new sg(1, 1, 1, 1), QdA = /* @__PURE__ */ function() {
|
|
92918
92923
|
function g(A) {
|
|
92919
92924
|
var e, t, i, I, o, s, n, C, a, r, Q, E, c, d, h, l, p, u, f, w, m;
|
|
92920
92925
|
me(this, g), tA(this, "autoDestroy", void 0), tA(this, "prewarm", void 0), tA(this, "looping", void 0), tA(this, "duration", void 0), tA(this, "startLife", void 0), tA(this, "startSpeed", void 0), tA(this, "startRotation", void 0), tA(this, "startSize", void 0), tA(this, "startColor", void 0), tA(this, "startTileIndex", void 0), tA(this, "rendererEmitterSettings", void 0), tA(this, "emissionOverTime", void 0), tA(this, "emissionOverDistance", void 0), tA(this, "emissionBursts", void 0), tA(this, "onlyUsedByOther", void 0), tA(this, "worldSpace", void 0), tA(this, "speedFactor", void 0), tA(this, "particleNum", void 0), tA(this, "paused", void 0), tA(this, "particles", void 0), tA(this, "emitterShape", void 0), tA(this, "emitter", void 0), tA(this, "rendererSettings", void 0), tA(this, "neededToUpdateRender", void 0), tA(this, "behaviors", void 0), tA(this, "prewarmed", void 0), tA(this, "emissionState", void 0), tA(this, "emitEnded", void 0), tA(this, "markForDestroy", void 0), tA(this, "previousWorldPos", void 0), tA(this, "temp", new y()), tA(this, "travelDistance", 0), tA(this, "normalMatrix", new qe()), tA(this, "_renderer", void 0), this.autoDestroy = A.autoDestroy === void 0 ? !1 : A.autoDestroy, this.duration = (e = A.duration) !== null && e !== void 0 ? e : 1, this.looping = A.looping === void 0 ? !0 : A.looping, this.prewarm = A.prewarm === void 0 ? !1 : A.prewarm, this.startLife = (t = A.startLife) !== null && t !== void 0 ? t : new pI(5), this.startSpeed = (i = A.startSpeed) !== null && i !== void 0 ? i : new pI(0), this.startRotation = (I = A.startRotation) !== null && I !== void 0 ? I : new pI(0), this.startSize = (o = A.startSize) !== null && o !== void 0 ? o : new pI(1), this.startColor = (s = A.startColor) !== null && s !== void 0 ? s : new xS(new te(1, 1, 1, 1)), this.emissionOverTime = (n = A.emissionOverTime) !== null && n !== void 0 ? n : new pI(10), this.emissionOverDistance = (C = A.emissionOverDistance) !== null && C !== void 0 ? C : new pI(0), this.emissionBursts = (a = A.emissionBursts) !== null && a !== void 0 ? a : [], this.onlyUsedByOther = (r = A.onlyUsedByOther) !== null && r !== void 0 ? r : !1, this.emitterShape = (Q = A.shape) !== null && Q !== void 0 ? Q : new EN(), this.behaviors = (E = A.behaviors) !== null && E !== void 0 ? E : new Array(), this.worldSpace = (c = A.worldSpace) !== null && c !== void 0 ? c : !1, this.speedFactor = (d = A.speedFactor) !== null && d !== void 0 ? d : 0, this.rendererEmitterSettings = (h = A.rendererEmitterSettings) !== null && h !== void 0 ? h : {}, this.rendererSettings = {
|
|
@@ -93001,7 +93006,7 @@ var QY = 60, BdA = new og(1, 1, 1, 1), QdA = /* @__PURE__ */ function() {
|
|
|
93001
93006
|
break;
|
|
93002
93007
|
case Ce.Mesh:
|
|
93003
93008
|
this.rendererEmitterSettings = {
|
|
93004
|
-
geometry: new
|
|
93009
|
+
geometry: new sg(1, 1)
|
|
93005
93010
|
}, this.startRotation = new uW(new y(0, 1, 0), new pI(0));
|
|
93006
93011
|
break;
|
|
93007
93012
|
case Ce.BillBoard:
|
|
@@ -94716,12 +94721,12 @@ class Gn extends NA {
|
|
|
94716
94721
|
}
|
|
94717
94722
|
getMaterial(e = !1) {
|
|
94718
94723
|
let t = e === !0 && this.trailMaterial ? this.trailMaterial : this.particleMaterial;
|
|
94719
|
-
return t && e && t.side ===
|
|
94724
|
+
return t && e && t.side === pg && (t = t.clone(), t.side = yi, e ? this.trailMaterial = t : this.particleMaterial = t), t && !AuA && t._didRequestTextureLOD === void 0 && (t._didRequestTextureLOD = 0, euA && console.log("Load material LOD", t.name), wt.assignTextureLOD(t, 0)), t;
|
|
94720
94725
|
}
|
|
94721
94726
|
getMesh(e) {
|
|
94722
94727
|
let t = null;
|
|
94723
94728
|
if (!t && (this.particleMesh instanceof uA && (t = this.particleMesh.geometry), t === null)) {
|
|
94724
|
-
t = new
|
|
94729
|
+
t = new sg(1, 1);
|
|
94725
94730
|
const I = t.attributes.uv;
|
|
94726
94731
|
for (let o = 0; o < I.count; o++)
|
|
94727
94732
|
I.setX(o, 1 - I.getX(o));
|
|
@@ -95842,12 +95847,12 @@ Df([
|
|
|
95842
95847
|
Df([
|
|
95843
95848
|
D()
|
|
95844
95849
|
], wa.prototype, "allowNetworking", 2);
|
|
95845
|
-
var fuA = Object.defineProperty, DuA = Object.getOwnPropertyDescriptor,
|
|
95850
|
+
var fuA = Object.defineProperty, DuA = Object.getOwnPropertyDescriptor, As = (g, A, e, t) => {
|
|
95846
95851
|
for (var i = t > 1 ? void 0 : t ? DuA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
95847
95852
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
95848
95853
|
return t && i && fuA(A, e, i), i;
|
|
95849
95854
|
};
|
|
95850
|
-
const
|
|
95855
|
+
const Ko = IA("debugsceneswitcher"), Ky = "scene";
|
|
95851
95856
|
qJ(Ky);
|
|
95852
95857
|
const Qr = Promise.resolve(!1);
|
|
95853
95858
|
class Io extends NA {
|
|
@@ -95881,7 +95886,7 @@ class Io extends NA {
|
|
|
95881
95886
|
const I = e == null ? void 0 : e.state;
|
|
95882
95887
|
if (I && I.startsWith(this.guid)) {
|
|
95883
95888
|
const o = I.substr(this.guid.length + 2);
|
|
95884
|
-
|
|
95889
|
+
Ko && console.log("PopState", o), await this.trySelectSceneFromValue(o);
|
|
95885
95890
|
}
|
|
95886
95891
|
}
|
|
95887
95892
|
} finally {
|
|
@@ -95956,7 +95961,7 @@ class Io extends NA {
|
|
|
95956
95961
|
}
|
|
95957
95962
|
/** @internal */
|
|
95958
95963
|
awake() {
|
|
95959
|
-
this.scenes === void 0 && (this.scenes = []),
|
|
95964
|
+
this.scenes === void 0 && (this.scenes = []), Ko && console.log("SceneSwitcher", this);
|
|
95960
95965
|
}
|
|
95961
95966
|
/** @internal */
|
|
95962
95967
|
async onEnable() {
|
|
@@ -96025,7 +96030,7 @@ class Io extends NA {
|
|
|
96025
96030
|
*/
|
|
96026
96031
|
select(e) {
|
|
96027
96032
|
var i, I, o;
|
|
96028
|
-
if (
|
|
96033
|
+
if (Ko && console.log("select", e), typeof e == "object" && console.warn('Switching to "' + e + '" might not work. Please either use an index or a AssetReference (not a scene reference)'), typeof e == "string") {
|
|
96029
96034
|
const s = (i = this.scenes) == null ? void 0 : i.find((n) => n.uri === e);
|
|
96030
96035
|
if (!s) {
|
|
96031
96036
|
const n = gt.getOrCreate(this.sourceId ?? "", e, this.context);
|
|
@@ -96074,7 +96079,7 @@ class Io extends NA {
|
|
|
96074
96079
|
async __internalSwitchScene(e) {
|
|
96075
96080
|
var i, I;
|
|
96076
96081
|
if (this._currentScene) {
|
|
96077
|
-
|
|
96082
|
+
Ko && console.log("UNLOAD", e.uri);
|
|
96078
96083
|
const o = this.tryGetSceneEventListener(this._currentScene.asset);
|
|
96079
96084
|
if (o != null && o.sceneClosing) {
|
|
96080
96085
|
const s = o.sceneClosing();
|
|
@@ -96092,11 +96097,11 @@ class Io extends NA {
|
|
|
96092
96097
|
}).catch(console.error), await this.onEndLoading();
|
|
96093
96098
|
const s = new CustomEvent("loadscene-finished", { detail: { scene: e, switcher: this, index: t } });
|
|
96094
96099
|
if (this.dispatchEvent(s), this._currentLoadingProgress = void 0, this._currentlyLoadingScene = void 0, s.defaultPrevented)
|
|
96095
|
-
return
|
|
96100
|
+
return Ko && console.warn("Adding loaded scene prevented:", e, s), !1;
|
|
96096
96101
|
if (!e.asset)
|
|
96097
|
-
return
|
|
96102
|
+
return Ko && console.warn("Failed loading scene:", e), !1;
|
|
96098
96103
|
if (this._currentIndex === t) {
|
|
96099
|
-
if (
|
|
96104
|
+
if (Ko && console.log("ADD", e.uri), this._currentScene = e, sA.add(e.asset, this.gameObject), this.useSceneLighting && this.context.sceneLighting.enable(e), this.useHistory && t >= 0) {
|
|
96100
96105
|
let a = t.toString();
|
|
96101
96106
|
if (this.useSceneName && (a = yY(e.uri)), (I = this.queryParameterName) != null && I.length)
|
|
96102
96107
|
vU(this.queryParameterName, a, this.useHistory);
|
|
@@ -96154,7 +96159,7 @@ class Io extends NA {
|
|
|
96154
96159
|
async onStartLoading() {
|
|
96155
96160
|
var e, t;
|
|
96156
96161
|
if (this._isCurrentlyLoading = !0, this.loadingScene && (this._lastLoadingScene !== this.loadingScene && (this._loadingScenePromise = void 0), this._lastLoadingScene = this.loadingScene, this._loadingScenePromise || (this._loadingScenePromise = (e = this.loadingScene) == null ? void 0 : e.loadAssetAsync()), await this._loadingScenePromise, this._isCurrentlyLoading && ((t = this.loadingScene) != null && t.asset))) {
|
|
96157
|
-
|
|
96162
|
+
Ko && console.log("Add loading scene", this.loadingScene.uri, this.loadingScene.asset);
|
|
96158
96163
|
const i = this.loadingScene.asset;
|
|
96159
96164
|
sA.add(i, this.gameObject);
|
|
96160
96165
|
const I = this.tryGetSceneEventListener(i);
|
|
@@ -96174,7 +96179,7 @@ class Io extends NA {
|
|
|
96174
96179
|
async onEndLoading() {
|
|
96175
96180
|
var e;
|
|
96176
96181
|
if (this._isCurrentlyLoading = !1, (e = this.loadingScene) != null && e.asset) {
|
|
96177
|
-
|
|
96182
|
+
Ko && console.log("Remove loading scene", this.loadingScene.uri);
|
|
96178
96183
|
const t = this.loadingScene.asset, i = this.tryGetSceneEventListener(t);
|
|
96179
96184
|
if (typeof (i == null ? void 0 : i.sceneClosing) == "function") {
|
|
96180
96185
|
const I = i.sceneClosing();
|
|
@@ -96201,43 +96206,43 @@ class Io extends NA {
|
|
|
96201
96206
|
return i || null;
|
|
96202
96207
|
}
|
|
96203
96208
|
}
|
|
96204
|
-
|
|
96209
|
+
As([
|
|
96205
96210
|
D()
|
|
96206
96211
|
], Io.prototype, "autoLoadFirstScene", 2);
|
|
96207
|
-
|
|
96212
|
+
As([
|
|
96208
96213
|
D(gt)
|
|
96209
96214
|
], Io.prototype, "scenes", 2);
|
|
96210
|
-
|
|
96215
|
+
As([
|
|
96211
96216
|
D(gt)
|
|
96212
96217
|
], Io.prototype, "loadingScene", 2);
|
|
96213
|
-
|
|
96218
|
+
As([
|
|
96214
96219
|
D()
|
|
96215
96220
|
], Io.prototype, "queryParameterName", 2);
|
|
96216
|
-
|
|
96221
|
+
As([
|
|
96217
96222
|
D()
|
|
96218
96223
|
], Io.prototype, "useSceneName", 2);
|
|
96219
|
-
|
|
96224
|
+
As([
|
|
96220
96225
|
D()
|
|
96221
96226
|
], Io.prototype, "clamp", 2);
|
|
96222
|
-
|
|
96227
|
+
As([
|
|
96223
96228
|
D()
|
|
96224
96229
|
], Io.prototype, "useHistory", 2);
|
|
96225
|
-
|
|
96230
|
+
As([
|
|
96226
96231
|
D()
|
|
96227
96232
|
], Io.prototype, "useKeyboard", 2);
|
|
96228
|
-
|
|
96233
|
+
As([
|
|
96229
96234
|
D()
|
|
96230
96235
|
], Io.prototype, "useSwipe", 2);
|
|
96231
|
-
|
|
96236
|
+
As([
|
|
96232
96237
|
D()
|
|
96233
96238
|
], Io.prototype, "useSceneLighting", 2);
|
|
96234
|
-
|
|
96239
|
+
As([
|
|
96235
96240
|
D()
|
|
96236
96241
|
], Io.prototype, "preloadNext", 2);
|
|
96237
|
-
|
|
96242
|
+
As([
|
|
96238
96243
|
D()
|
|
96239
96244
|
], Io.prototype, "preloadPrevious", 2);
|
|
96240
|
-
|
|
96245
|
+
As([
|
|
96241
96246
|
D()
|
|
96242
96247
|
], Io.prototype, "preloadConcurrent", 2);
|
|
96243
96248
|
function yY(g) {
|
|
@@ -96258,10 +96263,10 @@ class wuA {
|
|
|
96258
96263
|
begin() {
|
|
96259
96264
|
if (this._isRunning)
|
|
96260
96265
|
return;
|
|
96261
|
-
|
|
96266
|
+
Ko && console.log("Preload begin"), this._isRunning = !0;
|
|
96262
96267
|
let A = -1, e, t;
|
|
96263
96268
|
const i = this._switcher.scenes, I = setInterval(() => {
|
|
96264
|
-
if (this.allLoaded() && (
|
|
96269
|
+
if (this.allLoaded() && (Ko && console.log("All scenes loaded"), this.stop()), !this._isRunning) {
|
|
96265
96270
|
clearInterval(I);
|
|
96266
96271
|
return;
|
|
96267
96272
|
}
|
|
@@ -96303,7 +96308,7 @@ class yuA {
|
|
|
96303
96308
|
this.index = A, this.asset = e, this.tasks = t, t.push(this), this.awaitLoading();
|
|
96304
96309
|
}
|
|
96305
96310
|
async awaitLoading() {
|
|
96306
|
-
this.asset && !this.asset.isLoaded() && (
|
|
96311
|
+
this.asset && !this.asset.isLoaded() && (Ko && console.log("Preload start: " + this.asset.uri, this.index), await this.asset.preload(), Ko && console.log("Preload finished: " + this.asset.uri, this.index));
|
|
96307
96312
|
const A = this.tasks.indexOf(this);
|
|
96308
96313
|
A >= 0 && this.tasks.splice(A, 1);
|
|
96309
96314
|
}
|
|
@@ -96319,7 +96324,7 @@ function SuA() {
|
|
|
96319
96324
|
async function muA(g) {
|
|
96320
96325
|
await SuA(), g();
|
|
96321
96326
|
}
|
|
96322
|
-
var kuA = Object.defineProperty, GuA = Object.getOwnPropertyDescriptor,
|
|
96327
|
+
var kuA = Object.defineProperty, GuA = Object.getOwnPropertyDescriptor, es = (g, A, e, t) => {
|
|
96323
96328
|
for (var i = t > 1 ? void 0 : t ? GuA(A, e) : A, I = g.length - 1, o; I >= 0; I--)
|
|
96324
96329
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
96325
96330
|
return t && i && kuA(A, e, i), i;
|
|
@@ -96543,7 +96548,7 @@ class vg extends NA {
|
|
|
96543
96548
|
let t = this.gameObject;
|
|
96544
96549
|
switch (this.renderMode) {
|
|
96545
96550
|
case 3:
|
|
96546
|
-
t = (I = this.targetMaterialRenderer) == null ? void 0 : I.gameObject, t || (t = (o = sA.getComponent(this.gameObject,
|
|
96551
|
+
t = (I = this.targetMaterialRenderer) == null ? void 0 : I.gameObject, t || (t = (o = sA.getComponent(this.gameObject, og)) == 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 vg extends NA {
|
|
|
96635
96640
|
e ? globalThis.Hls ? this.onHlsAvailable() : e.addEventListener("load", this.onHlsAvailable) : (Rg && console.log("HLS: load script"), e = document.createElement("script"), e.dataset.hls_library = "hls.js", e.src = "https://cdn.jsdelivr.net/npm/hls.js@1", e.addEventListener("load", this.onHlsAvailable), document.head.append(e));
|
|
96636
96641
|
}
|
|
96637
96642
|
}
|
|
96638
|
-
|
|
96643
|
+
es([
|
|
96639
96644
|
D()
|
|
96640
96645
|
], vg.prototype, "playOnAwake", 2);
|
|
96641
|
-
|
|
96646
|
+
es([
|
|
96642
96647
|
D()
|
|
96643
96648
|
], vg.prototype, "aspectMode", 2);
|
|
96644
|
-
|
|
96649
|
+
es([
|
|
96645
96650
|
D(URL)
|
|
96646
96651
|
], vg.prototype, "clip", 2);
|
|
96647
|
-
|
|
96652
|
+
es([
|
|
96648
96653
|
D()
|
|
96649
96654
|
], vg.prototype, "source", 2);
|
|
96650
|
-
|
|
96655
|
+
es([
|
|
96651
96656
|
D(URL)
|
|
96652
96657
|
], vg.prototype, "url", 1);
|
|
96653
|
-
|
|
96658
|
+
es([
|
|
96654
96659
|
D()
|
|
96655
96660
|
], vg.prototype, "renderMode", 2);
|
|
96656
|
-
|
|
96661
|
+
es([
|
|
96657
96662
|
D()
|
|
96658
96663
|
], vg.prototype, "targetMaterialProperty", 2);
|
|
96659
|
-
|
|
96660
|
-
D(
|
|
96664
|
+
es([
|
|
96665
|
+
D(og)
|
|
96661
96666
|
], vg.prototype, "targetMaterialRenderer", 2);
|
|
96662
|
-
|
|
96667
|
+
es([
|
|
96663
96668
|
D(je)
|
|
96664
96669
|
], vg.prototype, "targetTexture", 2);
|
|
96665
|
-
|
|
96670
|
+
es([
|
|
96666
96671
|
D()
|
|
96667
96672
|
], vg.prototype, "time", 2);
|
|
96668
|
-
|
|
96673
|
+
es([
|
|
96669
96674
|
D()
|
|
96670
96675
|
], vg.prototype, "playbackSpeed", 1);
|
|
96671
|
-
|
|
96676
|
+
es([
|
|
96672
96677
|
D()
|
|
96673
96678
|
], vg.prototype, "isLooping", 1);
|
|
96674
|
-
|
|
96679
|
+
es([
|
|
96675
96680
|
D()
|
|
96676
96681
|
], vg.prototype, "audioOutputMode", 1);
|
|
96677
96682
|
class MuA {
|
|
@@ -97466,7 +97471,7 @@ rk([
|
|
|
97466
97471
|
], hE.prototype, "positionAxes", 2);
|
|
97467
97472
|
class TuA extends uA {
|
|
97468
97473
|
constructor(A) {
|
|
97469
|
-
const e = new HuA(A), t = new
|
|
97474
|
+
const e = new HuA(A), t = new sg(e.image.width * 1e-3, e.image.height * 1e-3), i = new tt({ map: e, toneMapped: !1, transparent: !0 });
|
|
97470
97475
|
super(t, i);
|
|
97471
97476
|
function I(o) {
|
|
97472
97477
|
i.map.dispatchDOMEvent(o);
|
|
@@ -97826,7 +97831,7 @@ var VuA = Object.defineProperty, XuA = Object.getOwnPropertyDescriptor, $uA = (g
|
|
|
97826
97831
|
(o = g[I]) && (i = (t ? o(A, e, i) : o(i)) || i);
|
|
97827
97832
|
return t && i && VuA(A, e, i), i;
|
|
97828
97833
|
};
|
|
97829
|
-
const
|
|
97834
|
+
const vo = IA("debugspectator");
|
|
97830
97835
|
class LJ extends NA {
|
|
97831
97836
|
constructor() {
|
|
97832
97837
|
super(...arguments);
|
|
@@ -97915,14 +97920,14 @@ class LJ extends NA {
|
|
|
97915
97920
|
this.isSupportedPlatform() && sA.setActive(this.gameObject, !0);
|
|
97916
97921
|
}
|
|
97917
97922
|
onEnterXR(e) {
|
|
97918
|
-
this.isSupportedPlatform() && (
|
|
97923
|
+
this.isSupportedPlatform() && (vo && console.log(this.context.mainCamera), this.context.mainCamera && this.followSelf());
|
|
97919
97924
|
}
|
|
97920
97925
|
onLeaveXR(e) {
|
|
97921
97926
|
var t, i;
|
|
97922
97927
|
this.context.removeCamera(this.cam), sA.setActive(this.gameObject, !1), this.orbit && (this.orbit.enabled = !0), (t = this._handler) == null || t.set(void 0), (i = this._handler) == null || i.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, wQ.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, wQ.Headset), this.target = this.context.players.getPlayerView(this.localId)), vo && 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 ApA {
|
|
|
98004
98009
|
this.spectator.stopSpectating();
|
|
98005
98010
|
return;
|
|
98006
98011
|
}
|
|
98007
|
-
e !== this.currentObject && (this.currentObject = e, this.view = A, this.follow || (this.follow = sA.addNewComponent(this.cam.gameObject, hE)), this.target || (this.target = new fA()), e.add(this.target), this.follow.enabled = !0, this.follow.target = this.target,
|
|
98012
|
+
e !== this.currentObject && (this.currentObject = e, this.view = A, this.follow || (this.follow = sA.addNewComponent(this.cam.gameObject, hE)), this.target || (this.target = new fA()), e.add(this.target), this.follow.enabled = !0, this.follow.target = this.target, vo && console.log("FOLLOW", e), this.context.isInXR ? this.context.removeCamera(this.cam) : this.context.setCurrentCamera(this.cam));
|
|
98008
98013
|
}
|
|
98009
98014
|
disable() {
|
|
98010
|
-
|
|
98015
|
+
vo && 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 A;
|
|
@@ -98016,10 +98021,10 @@ class ApA {
|
|
|
98016
98021
|
update(A) {
|
|
98017
98022
|
var i, I, o, s, n, C;
|
|
98018
98023
|
if (((i = this.currentTarget) == null ? void 0 : i.isConnected) === !1 || ((I = this.currentTarget) == null ? void 0 : I.removed) === !0) {
|
|
98019
|
-
|
|
98024
|
+
vo && 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 && (vo && console.log("Target changed", this.currentObject, "to", this.currentTarget.currentObject), this.set(this.currentTarget));
|
|
98023
98028
|
const e = this.context.mainCamera;
|
|
98024
98029
|
e && (this.cam.cam.near !== e.near || this.cam.cam.far !== e.far) && (this.cam.cam.near = e.near, this.cam.cam.far = e.far, this.cam.cam.updateProjectionMatrix());
|
|
98025
98030
|
const t = (s = this.follow) == null ? void 0 : s.target;
|
|
@@ -98058,14 +98063,14 @@ class tpA {
|
|
|
98058
98063
|
const A = new cn();
|
|
98059
98064
|
A.setMask(16777215);
|
|
98060
98065
|
const e = this.context.physics.raycast(A);
|
|
98061
|
-
if (
|
|
98066
|
+
if (vo && console.log(...e), e != null && e.length)
|
|
98062
98067
|
for (const t of e) {
|
|
98063
98068
|
if (t.distance < 0.2)
|
|
98064
98069
|
continue;
|
|
98065
98070
|
const i = t.object, I = sA.getComponentInParent(i, Jg), o = I == null ? void 0 : I.connectionId;
|
|
98066
98071
|
if (o) {
|
|
98067
98072
|
const s = this.context.players.getPlayerView(o);
|
|
98068
|
-
this.spectator.target = s,
|
|
98073
|
+
this.spectator.target = s, vo && console.log("spectate", o, I);
|
|
98069
98074
|
break;
|
|
98070
98075
|
}
|
|
98071
98076
|
}
|
|
@@ -98110,13 +98115,13 @@ class IpA {
|
|
|
98110
98115
|
this.context.connection.stopListen("spectator-follower-changed", this._followerEventMethod), this.context.connection.stopListen("spectator-request-follow", this._requestFollowMethod), this.context.connection.stopListen(nt.JoinedRoom, this._joinedRoomMethod);
|
|
98111
98116
|
}
|
|
98112
98117
|
onSpectatedObjectChanged(A, e) {
|
|
98113
|
-
if (
|
|
98118
|
+
if (vo && console.log(this.context.connection.connectionId, "onSpectatedObjectChanged", A, e), this.context.connection.connectionId) {
|
|
98114
98119
|
const t = (A == null ? void 0 : A.userId) === void 0, i = t ? e : A == null ? void 0 : A.userId, I = new ipA(this.context.connection.connectionId, i, t);
|
|
98115
98120
|
this.context.connection.send("spectator-follower-changed", I);
|
|
98116
98121
|
}
|
|
98117
98122
|
}
|
|
98118
98123
|
onRequestFollowMe(A = !1) {
|
|
98119
|
-
if (
|
|
98124
|
+
if (vo && console.log("Request follow", this.context.connection.connectionId), this.context.connection.connectionId) {
|
|
98120
98125
|
this.spectator.stopSpectating();
|
|
98121
98126
|
const e = A ? void 0 : this.context.connection.connectionId, t = new gpA(this.spectator, e);
|
|
98122
98127
|
this.context.connection.send("spectator-request-follow", t);
|
|
@@ -98127,7 +98132,7 @@ class IpA {
|
|
|
98127
98132
|
}
|
|
98128
98133
|
onFollowerEvent(A) {
|
|
98129
98134
|
const e = A.targetUserId, t = A.guid;
|
|
98130
|
-
if (
|
|
98135
|
+
if (vo && console.log(A), e === this.context.connection.connectionId)
|
|
98131
98136
|
if (A.stoppedFollowing) {
|
|
98132
98137
|
const i = this.followers.indexOf(t);
|
|
98133
98138
|
i !== -1 && (this.followers.splice(i, 1), this.removeDisconnectedFollowers(), console.log(t, "unfollows you", this.followers.length));
|
|
@@ -98150,13 +98155,13 @@ class IpA {
|
|
|
98150
98155
|
if (e)
|
|
98151
98156
|
this.spectator.target = e;
|
|
98152
98157
|
else
|
|
98153
|
-
return
|
|
98158
|
+
return vo && console.warn("Could not find view", A.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) : (vo && console.log("REQUEST FOLLOW AGAIN", this._lastRequestFollowUser.userId), this.onRequestFollowEvent(this._lastRequestFollowUser));
|
|
98160
98165
|
}, 1e3));
|
|
98161
98166
|
}
|
|
98162
98167
|
}
|
|
@@ -98229,7 +98234,7 @@ var opA = Object.defineProperty, spA = Object.getOwnPropertyDescriptor, npA = (g
|
|
|
98229
98234
|
};
|
|
98230
98235
|
const qS = "SCAM";
|
|
98231
98236
|
g3(qS, Wn.getRootAsSyncedCameraModel);
|
|
98232
|
-
const
|
|
98237
|
+
const Ro = new Op();
|
|
98233
98238
|
class CpA {
|
|
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 CpA {
|
|
|
98241
98246
|
}
|
|
98242
98247
|
send(A, e) {
|
|
98243
98248
|
if (A) {
|
|
98244
|
-
|
|
98245
|
-
const t =
|
|
98246
|
-
Wn.startSyncedCameraModel(
|
|
98249
|
+
Ro.clear();
|
|
98250
|
+
const t = Ro.createString(this.guid), i = Ro.createString(this.userId);
|
|
98251
|
+
Wn.startSyncedCameraModel(Ro), Wn.addGuid(Ro, t), Wn.addUserId(Ro, i);
|
|
98247
98252
|
const I = He(A), o = X0(A);
|
|
98248
|
-
Wn.addPos(
|
|
98249
|
-
const s = Wn.endSyncedCameraModel(
|
|
98250
|
-
|
|
98253
|
+
Wn.addPos(Ro, kQ.createVec3(Ro, I.x, I.y, I.z)), Wn.addRot(Ro, kQ.createVec3(Ro, o.x, o.y, o.z));
|
|
98254
|
+
const s = Wn.endSyncedCameraModel(Ro);
|
|
98255
|
+
Ro.finish(s, qS), e.sendBinary(Ro.asUint8Array());
|
|
98251
98256
|
}
|
|
98252
98257
|
}
|
|
98253
98258
|
}
|
|
@@ -98752,7 +98757,7 @@ class pl extends NA {
|
|
|
98752
98757
|
(e = this.control) == null || e.removeFromParent(), (t = this.control) == null || t.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(dg.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 HJ extends NA {
|
|
|
98824
98829
|
B(this, "backgroundPlane");
|
|
98825
98830
|
B(this, "threeTexture");
|
|
98826
98831
|
B(this, "forceTextureInitialization", function() {
|
|
98827
|
-
const e = new tt(), t = new
|
|
98832
|
+
const e = new tt(), t = new sg(), i = new kI();
|
|
98828
98833
|
i.add(new uA(t, e));
|
|
98829
98834
|
const I = new Te();
|
|
98830
98835
|
return function(s, n) {
|
|
@@ -98914,7 +98919,7 @@ function kpA(g) {
|
|
|
98914
98919
|
const A = "vec4(" + g.r.toFixed(3) + "," + g.g.toFixed(3) + "," + g.b.toFixed(3) + "," + g.a.toFixed(3) + ")";
|
|
98915
98920
|
vy && console.log(A);
|
|
98916
98921
|
const e = new uA(
|
|
98917
|
-
new
|
|
98922
|
+
new sg(2, 2),
|
|
98918
98923
|
// @ts-ignore
|
|
98919
98924
|
new be({
|
|
98920
98925
|
name: "BackgroundMaterial",
|
|
@@ -99042,7 +99047,7 @@ class RpA {
|
|
|
99042
99047
|
if (!(!i || !i.trackedImages)) {
|
|
99043
99048
|
for (const o of i.trackedImages)
|
|
99044
99049
|
if (((I = o.object) == null ? void 0 : I.asset) === A) {
|
|
99045
|
-
const s = sA.findObjectOfType(
|
|
99050
|
+
const s = sA.findObjectOfType(Ig);
|
|
99046
99051
|
if (!s)
|
|
99047
99052
|
continue;
|
|
99048
99053
|
const { scale: n, target: C } = s.getARScaleAndTarget();
|
|
@@ -99078,7 +99083,7 @@ const Hd = (AU = class extends NA {
|
|
|
99078
99083
|
o = { object: null, frames: 0, lastTrackingTime: Date.now() }, this.imageToObjectMap.set(i, o), i.object.loadAssetAsync().then((s) => {
|
|
99079
99084
|
if (i.createObjectInstance && s && (s = sA.instantiate(s)), s) {
|
|
99080
99085
|
o.object = s;
|
|
99081
|
-
for (const n of s.getComponentsInChildren(
|
|
99086
|
+
for (const n of s.getComponentsInChildren(og))
|
|
99082
99087
|
n.setInstancingEnabled(!1);
|
|
99083
99088
|
e.rig ? (e.rig.gameObject.add(s), t.applyToObject(s), s.activeSelf || sA.setActive(s, !0)) : console.warn("XRImageTracking: missing XRRig");
|
|
99084
99089
|
}
|
|
@@ -99103,7 +99108,7 @@ const Hd = (AU = class extends NA {
|
|
|
99103
99108
|
Hd._imageElements.set(e, i);
|
|
99104
99109
|
const I = await UoA(i);
|
|
99105
99110
|
if (I) {
|
|
99106
|
-
const s = await (await I.convertToBlob({ type: "image/png" })).arrayBuffer(), n = sA.findObjectOfType(
|
|
99111
|
+
const s = await (await I.convertToBlob({ type: "image/png" })).arrayBuffer(), n = sA.findObjectOfType(Ig);
|
|
99107
99112
|
n && this.trackedImages && (n.extensions.push(
|
|
99108
99113
|
new RpA("marker.png", new Uint8Array(s), this.trackedImages[0].widthInMeters)
|
|
99109
99114
|
), n.anchoringType = "image");
|
|
@@ -99525,7 +99530,7 @@ const vpA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99525
99530
|
__proto__: null,
|
|
99526
99531
|
ActionBuilder: dt,
|
|
99527
99532
|
ActionCollection: h4,
|
|
99528
|
-
ActionModel:
|
|
99533
|
+
ActionModel: Jo,
|
|
99529
99534
|
AlignmentConstraint: fm,
|
|
99530
99535
|
Animation: eo,
|
|
99531
99536
|
AnimationCurve: Wh,
|
|
@@ -99552,7 +99557,7 @@ const vpA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99552
99557
|
BaseUIComponent: hn,
|
|
99553
99558
|
BasicIKConstraint: m8,
|
|
99554
99559
|
BehaviorExtension: oJ,
|
|
99555
|
-
BehaviorModel:
|
|
99560
|
+
BehaviorModel: lg,
|
|
99556
99561
|
Bloom: Xh,
|
|
99557
99562
|
BoxCollider: If,
|
|
99558
99563
|
BoxGizmo: Al,
|
|
@@ -99588,7 +99593,7 @@ const vpA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99588
99593
|
EmphasizeOnClick: rf,
|
|
99589
99594
|
EventList: xg,
|
|
99590
99595
|
EventListEvent: jK,
|
|
99591
|
-
EventSystem:
|
|
99596
|
+
EventSystem: _o,
|
|
99592
99597
|
EventTrigger: yJ,
|
|
99593
99598
|
FieldWithDefault: V8,
|
|
99594
99599
|
FixedJoint: aW,
|
|
@@ -99615,7 +99620,7 @@ const vpA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99615
99620
|
Keyframe: yn,
|
|
99616
99621
|
LODGroup: Ak,
|
|
99617
99622
|
LODModel: Ql,
|
|
99618
|
-
Light:
|
|
99623
|
+
Light: $o,
|
|
99619
99624
|
LimitVelocityOverLifetimeModule: yg,
|
|
99620
99625
|
LogStats: cW,
|
|
99621
99626
|
LookAt: El,
|
|
@@ -99625,7 +99630,7 @@ const vpA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99625
99630
|
MeshCollider: $h,
|
|
99626
99631
|
MeshRenderer: _m,
|
|
99627
99632
|
MinMaxCurve: le,
|
|
99628
|
-
MinMaxGradient:
|
|
99633
|
+
MinMaxGradient: Xo,
|
|
99629
99634
|
NeedleMenu: Ka,
|
|
99630
99635
|
NestedGltf: RJ,
|
|
99631
99636
|
Networking: Cl,
|
|
@@ -99657,7 +99662,7 @@ const vpA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99657
99662
|
ReflectionProbe: Ef,
|
|
99658
99663
|
RegisteredAnimationInfo: AJ,
|
|
99659
99664
|
RemoteSkybox: wa,
|
|
99660
|
-
Renderer:
|
|
99665
|
+
Renderer: og,
|
|
99661
99666
|
RendererLightmap: NS,
|
|
99662
99667
|
Rigidbody: Pt,
|
|
99663
99668
|
RotationBySpeedModule: bs,
|
|
@@ -99703,13 +99708,13 @@ const vpA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99703
99708
|
TiltShiftEffect: xa,
|
|
99704
99709
|
ToneMapping: Ek,
|
|
99705
99710
|
TrailModule: Mi,
|
|
99706
|
-
TransformData:
|
|
99711
|
+
TransformData: cg,
|
|
99707
99712
|
TransformGizmo: pl,
|
|
99708
99713
|
TriggerBuilder: iI,
|
|
99709
99714
|
TriggerModel: Tr,
|
|
99710
99715
|
UIRaycastUtils: zK,
|
|
99711
99716
|
UIRootComponent: Dm,
|
|
99712
|
-
USDZExporter:
|
|
99717
|
+
USDZExporter: Ig,
|
|
99713
99718
|
USDZText: rQ,
|
|
99714
99719
|
USDZUIExtension: lJ,
|
|
99715
99720
|
UsageMarker: Wm,
|
|
@@ -99724,7 +99729,7 @@ const vpA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
99724
99729
|
VolumeParameter: ve,
|
|
99725
99730
|
VolumeProfile: Gm,
|
|
99726
99731
|
WebARCameraBackground: HJ,
|
|
99727
|
-
WebARSessionRoot:
|
|
99732
|
+
WebARSessionRoot: Wo,
|
|
99728
99733
|
WebXR: Om,
|
|
99729
99734
|
WebXRButtonFactory: UQ,
|
|
99730
99735
|
WebXRImageTracking: up,
|
|
@@ -99751,7 +99756,7 @@ class qpA extends NA {
|
|
|
99751
99756
|
X.add("__Ignore", xW);
|
|
99752
99757
|
X.add("ActionBuilder", dt);
|
|
99753
99758
|
X.add("ActionCollection", h4);
|
|
99754
|
-
X.add("ActionModel",
|
|
99759
|
+
X.add("ActionModel", Jo);
|
|
99755
99760
|
X.add("AlignmentConstraint", fm);
|
|
99756
99761
|
X.add("Animation", eo);
|
|
99757
99762
|
X.add("AnimationCurve", Wh);
|
|
@@ -99778,7 +99783,7 @@ X.add("AxesHelper", tf);
|
|
|
99778
99783
|
X.add("BaseUIComponent", hn);
|
|
99779
99784
|
X.add("BasicIKConstraint", m8);
|
|
99780
99785
|
X.add("BehaviorExtension", oJ);
|
|
99781
|
-
X.add("BehaviorModel",
|
|
99786
|
+
X.add("BehaviorModel", lg);
|
|
99782
99787
|
X.add("Bloom", Xh);
|
|
99783
99788
|
X.add("BoxCollider", If);
|
|
99784
99789
|
X.add("BoxGizmo", Al);
|
|
@@ -99814,7 +99819,7 @@ X.add("EmissionModule", ba);
|
|
|
99814
99819
|
X.add("EmphasizeOnClick", rf);
|
|
99815
99820
|
X.add("EventList", xg);
|
|
99816
99821
|
X.add("EventListEvent", jK);
|
|
99817
|
-
X.add("EventSystem",
|
|
99822
|
+
X.add("EventSystem", _o);
|
|
99818
99823
|
X.add("EventTrigger", yJ);
|
|
99819
99824
|
X.add("FieldWithDefault", V8);
|
|
99820
99825
|
X.add("FixedJoint", aW);
|
|
@@ -99839,7 +99844,7 @@ X.add("InstanceHandle", eh);
|
|
|
99839
99844
|
X.add("InstancingHandler", Ah);
|
|
99840
99845
|
X.add("Interactable", oW);
|
|
99841
99846
|
X.add("Keyframe", yn);
|
|
99842
|
-
X.add("Light",
|
|
99847
|
+
X.add("Light", $o);
|
|
99843
99848
|
X.add("LimitVelocityOverLifetimeModule", yg);
|
|
99844
99849
|
X.add("LODGroup", Ak);
|
|
99845
99850
|
X.add("LODModel", Ql);
|
|
@@ -99851,7 +99856,7 @@ X.add("MaskableGraphic", bm);
|
|
|
99851
99856
|
X.add("MeshCollider", $h);
|
|
99852
99857
|
X.add("MeshRenderer", _m);
|
|
99853
99858
|
X.add("MinMaxCurve", le);
|
|
99854
|
-
X.add("MinMaxGradient",
|
|
99859
|
+
X.add("MinMaxGradient", Xo);
|
|
99855
99860
|
X.add("NeedleMenu", Ka);
|
|
99856
99861
|
X.add("NestedGltf", RJ);
|
|
99857
99862
|
X.add("Networking", Cl);
|
|
@@ -99885,7 +99890,7 @@ X.add("RectTransform", to);
|
|
|
99885
99890
|
X.add("ReflectionProbe", Ef);
|
|
99886
99891
|
X.add("RegisteredAnimationInfo", AJ);
|
|
99887
99892
|
X.add("RemoteSkybox", wa);
|
|
99888
|
-
X.add("Renderer",
|
|
99893
|
+
X.add("Renderer", og);
|
|
99889
99894
|
X.add("RendererLightmap", NS);
|
|
99890
99895
|
X.add("RGBAColor", vt);
|
|
99891
99896
|
X.add("Rigidbody", Pt);
|
|
@@ -99932,14 +99937,14 @@ X.add("TextureSheetAnimationModule", FI);
|
|
|
99932
99937
|
X.add("TiltShiftEffect", xa);
|
|
99933
99938
|
X.add("ToneMapping", Ek);
|
|
99934
99939
|
X.add("TrailModule", Mi);
|
|
99935
|
-
X.add("TransformData",
|
|
99940
|
+
X.add("TransformData", cg);
|
|
99936
99941
|
X.add("TransformGizmo", pl);
|
|
99937
99942
|
X.add("TriggerBuilder", iI);
|
|
99938
99943
|
X.add("TriggerModel", Tr);
|
|
99939
99944
|
X.add("UIRaycastUtils", zK);
|
|
99940
99945
|
X.add("UIRootComponent", Dm);
|
|
99941
99946
|
X.add("UsageMarker", Wm);
|
|
99942
|
-
X.add("USDZExporter",
|
|
99947
|
+
X.add("USDZExporter", Ig);
|
|
99943
99948
|
X.add("USDZText", rQ);
|
|
99944
99949
|
X.add("USDZUIExtension", lJ);
|
|
99945
99950
|
X.add("VariantAction", c4);
|
|
@@ -99953,7 +99958,7 @@ X.add("Volume", qm);
|
|
|
99953
99958
|
X.add("VolumeParameter", ve);
|
|
99954
99959
|
X.add("VolumeProfile", Gm);
|
|
99955
99960
|
X.add("WebARCameraBackground", HJ);
|
|
99956
|
-
X.add("WebARSessionRoot",
|
|
99961
|
+
X.add("WebARSessionRoot", Wo);
|
|
99957
99962
|
X.add("WebXR", Om);
|
|
99958
99963
|
X.add("WebXRButtonFactory", UQ);
|
|
99959
99964
|
X.add("WebXRImageTracking", up);
|
|
@@ -100774,14 +100779,14 @@ let jd = null;
|
|
|
100774
100779
|
function VW() {
|
|
100775
100780
|
return jd !== null && jd.byteLength !== 0 || (jd = new Uint32Array(k.memory.buffer)), jd;
|
|
100776
100781
|
}
|
|
100777
|
-
let
|
|
100782
|
+
let Fo = 0;
|
|
100778
100783
|
function _B(g, A) {
|
|
100779
100784
|
const e = A(4 * g.length, 4) >>> 0;
|
|
100780
|
-
return ei().set(g, e / 4),
|
|
100785
|
+
return ei().set(g, e / 4), Fo = g.length, e;
|
|
100781
100786
|
}
|
|
100782
100787
|
function jw(g, A) {
|
|
100783
100788
|
const e = A(4 * g.length, 4) >>> 0;
|
|
100784
|
-
return VW().set(g, e / 4),
|
|
100789
|
+
return VW().set(g, e / 4), Fo = g.length, e;
|
|
100785
100790
|
}
|
|
100786
100791
|
function vR(g, A) {
|
|
100787
100792
|
try {
|
|
@@ -102872,15 +102877,15 @@ class Ne {
|
|
|
102872
102877
|
return Ne.__wrap(i);
|
|
102873
102878
|
}
|
|
102874
102879
|
static polyline(A, e) {
|
|
102875
|
-
const t = _B(A, k.__wbindgen_malloc), i =
|
|
102880
|
+
const t = _B(A, k.__wbindgen_malloc), i = Fo, I = jw(e, k.__wbindgen_malloc), o = Fo, s = k.rawshape_polyline(t, i, I, o);
|
|
102876
102881
|
return Ne.__wrap(s);
|
|
102877
102882
|
}
|
|
102878
102883
|
static trimesh(A, e) {
|
|
102879
|
-
const t = _B(A, k.__wbindgen_malloc), i =
|
|
102884
|
+
const t = _B(A, k.__wbindgen_malloc), i = Fo, I = jw(e, k.__wbindgen_malloc), o = Fo, s = k.rawshape_trimesh(t, i, I, o);
|
|
102880
102885
|
return Ne.__wrap(s);
|
|
102881
102886
|
}
|
|
102882
102887
|
static heightfield(A, e, t, i) {
|
|
102883
|
-
const I = _B(t, k.__wbindgen_malloc), o =
|
|
102888
|
+
const I = _B(t, k.__wbindgen_malloc), o = Fo;
|
|
102884
102889
|
eA(i, aA);
|
|
102885
102890
|
const s = k.rawshape_heightfield(A, e, I, o, i.__wbg_ptr);
|
|
102886
102891
|
return Ne.__wrap(s);
|
|
@@ -102901,19 +102906,19 @@ class Ne {
|
|
|
102901
102906
|
return Ne.__wrap(I);
|
|
102902
102907
|
}
|
|
102903
102908
|
static convexHull(A) {
|
|
102904
|
-
const e = _B(A, k.__wbindgen_malloc), t =
|
|
102909
|
+
const e = _B(A, k.__wbindgen_malloc), t = Fo, i = k.rawshape_convexHull(e, t);
|
|
102905
102910
|
return i === 0 ? void 0 : Ne.__wrap(i);
|
|
102906
102911
|
}
|
|
102907
102912
|
static roundConvexHull(A, e) {
|
|
102908
|
-
const t = _B(A, k.__wbindgen_malloc), i =
|
|
102913
|
+
const t = _B(A, k.__wbindgen_malloc), i = Fo, I = k.rawshape_roundConvexHull(t, i, e);
|
|
102909
102914
|
return I === 0 ? void 0 : Ne.__wrap(I);
|
|
102910
102915
|
}
|
|
102911
102916
|
static convexMesh(A, e) {
|
|
102912
|
-
const t = _B(A, k.__wbindgen_malloc), i =
|
|
102917
|
+
const t = _B(A, k.__wbindgen_malloc), i = Fo, I = jw(e, k.__wbindgen_malloc), o = Fo, s = k.rawshape_convexMesh(t, i, I, o);
|
|
102913
102918
|
return s === 0 ? void 0 : Ne.__wrap(s);
|
|
102914
102919
|
}
|
|
102915
102920
|
static roundConvexMesh(A, e, t) {
|
|
102916
|
-
const i = _B(A, k.__wbindgen_malloc), I =
|
|
102921
|
+
const i = _B(A, k.__wbindgen_malloc), I = Fo, o = jw(e, k.__wbindgen_malloc), s = Fo, n = k.rawshape_roundConvexMesh(i, I, o, s, t);
|
|
102917
102922
|
return n === 0 ? void 0 : Ne.__wrap(n);
|
|
102918
102923
|
}
|
|
102919
102924
|
castShape(A, e, t, i, I, o, s, n, C) {
|
|
@@ -104284,7 +104289,7 @@ class yl extends uE {
|
|
|
104284
104289
|
return e.free(), t;
|
|
104285
104290
|
}
|
|
104286
104291
|
}
|
|
104287
|
-
class
|
|
104292
|
+
class ag {
|
|
104288
104293
|
static fromRaw(A, e) {
|
|
104289
104294
|
const t = A.coShapeType(e);
|
|
104290
104295
|
let i, I, o, s, n, C, a;
|
|
@@ -104364,7 +104369,7 @@ class Cg {
|
|
|
104364
104369
|
(function(g) {
|
|
104365
104370
|
g[g.Ball = 0] = "Ball", g[g.Cuboid = 1] = "Cuboid", g[g.Capsule = 2] = "Capsule", g[g.Segment = 3] = "Segment", g[g.Polyline = 4] = "Polyline", g[g.Triangle = 5] = "Triangle", g[g.TriMesh = 6] = "TriMesh", g[g.HeightField = 7] = "HeightField", g[g.ConvexPolyhedron = 9] = "ConvexPolyhedron", g[g.Cylinder = 10] = "Cylinder", g[g.Cone = 11] = "Cone", g[g.RoundCuboid = 12] = "RoundCuboid", g[g.RoundTriangle = 13] = "RoundTriangle", g[g.RoundCylinder = 14] = "RoundCylinder", g[g.RoundCone = 15] = "RoundCone", g[g.RoundConvexPolyhedron = 16] = "RoundConvexPolyhedron", g[g.HalfSpace = 17] = "HalfSpace";
|
|
104366
104371
|
})(ki || (ki = {}));
|
|
104367
|
-
class Gf extends
|
|
104372
|
+
class Gf extends ag {
|
|
104368
104373
|
constructor(A) {
|
|
104369
104374
|
super(), this.type = ki.Ball, this.radius = A;
|
|
104370
104375
|
}
|
|
@@ -104372,7 +104377,7 @@ class Gf extends Cg {
|
|
|
104372
104377
|
return Ne.ball(this.radius);
|
|
104373
104378
|
}
|
|
104374
104379
|
}
|
|
104375
|
-
class px extends
|
|
104380
|
+
class px extends ag {
|
|
104376
104381
|
constructor(A) {
|
|
104377
104382
|
super(), this.type = ki.HalfSpace, this.normal = A;
|
|
104378
104383
|
}
|
|
@@ -104381,7 +104386,7 @@ class px extends Cg {
|
|
|
104381
104386
|
return A.free(), e;
|
|
104382
104387
|
}
|
|
104383
104388
|
}
|
|
104384
|
-
class mk extends
|
|
104389
|
+
class mk extends ag {
|
|
104385
104390
|
constructor(A, e, t) {
|
|
104386
104391
|
super(), this.type = ki.Cuboid, this.halfExtents = CA.new(A, e, t);
|
|
104387
104392
|
}
|
|
@@ -104389,7 +104394,7 @@ class mk extends Cg {
|
|
|
104389
104394
|
return Ne.cuboid(this.halfExtents.x, this.halfExtents.y, this.halfExtents.z);
|
|
104390
104395
|
}
|
|
104391
104396
|
}
|
|
104392
|
-
class kk extends
|
|
104397
|
+
class kk extends ag {
|
|
104393
104398
|
constructor(A, e, t, i) {
|
|
104394
104399
|
super(), this.type = ki.RoundCuboid, this.halfExtents = CA.new(A, e, t), this.borderRadius = i;
|
|
104395
104400
|
}
|
|
@@ -104397,7 +104402,7 @@ class kk extends Cg {
|
|
|
104397
104402
|
return Ne.roundCuboid(this.halfExtents.x, this.halfExtents.y, this.halfExtents.z, this.borderRadius);
|
|
104398
104403
|
}
|
|
104399
104404
|
}
|
|
104400
|
-
class Gk extends
|
|
104405
|
+
class Gk extends ag {
|
|
104401
104406
|
constructor(A, e) {
|
|
104402
104407
|
super(), this.type = ki.Capsule, this.halfHeight = A, this.radius = e;
|
|
104403
104408
|
}
|
|
@@ -104405,7 +104410,7 @@ class Gk extends Cg {
|
|
|
104405
104410
|
return Ne.capsule(this.halfHeight, this.radius);
|
|
104406
104411
|
}
|
|
104407
104412
|
}
|
|
104408
|
-
class Mk extends
|
|
104413
|
+
class Mk extends ag {
|
|
104409
104414
|
constructor(A, e) {
|
|
104410
104415
|
super(), this.type = ki.Segment, this.a = A, this.b = e;
|
|
104411
104416
|
}
|
|
@@ -104414,7 +104419,7 @@ class Mk extends Cg {
|
|
|
104414
104419
|
return A.free(), e.free(), t;
|
|
104415
104420
|
}
|
|
104416
104421
|
}
|
|
104417
|
-
class Rk extends
|
|
104422
|
+
class Rk extends ag {
|
|
104418
104423
|
constructor(A, e, t) {
|
|
104419
104424
|
super(), this.type = ki.Triangle, this.a = A, this.b = e, this.c = t;
|
|
104420
104425
|
}
|
|
@@ -104423,7 +104428,7 @@ class Rk extends Cg {
|
|
|
104423
104428
|
return A.free(), e.free(), t.free(), i;
|
|
104424
104429
|
}
|
|
104425
104430
|
}
|
|
104426
|
-
class Uk extends
|
|
104431
|
+
class Uk extends ag {
|
|
104427
104432
|
constructor(A, e, t, i) {
|
|
104428
104433
|
super(), this.type = ki.RoundTriangle, this.a = A, this.b = e, this.c = t, this.borderRadius = i;
|
|
104429
104434
|
}
|
|
@@ -104432,7 +104437,7 @@ class Uk extends Cg {
|
|
|
104432
104437
|
return A.free(), e.free(), t.free(), i;
|
|
104433
104438
|
}
|
|
104434
104439
|
}
|
|
104435
|
-
class Fk extends
|
|
104440
|
+
class Fk extends ag {
|
|
104436
104441
|
constructor(A, e) {
|
|
104437
104442
|
super(), this.type = ki.Polyline, this.vertices = A, this.indices = e ?? new Uint32Array(0);
|
|
104438
104443
|
}
|
|
@@ -104440,7 +104445,7 @@ class Fk extends Cg {
|
|
|
104440
104445
|
return Ne.polyline(this.vertices, this.indices);
|
|
104441
104446
|
}
|
|
104442
104447
|
}
|
|
104443
|
-
class Nk extends
|
|
104448
|
+
class Nk extends ag {
|
|
104444
104449
|
constructor(A, e) {
|
|
104445
104450
|
super(), this.type = ki.TriMesh, this.vertices = A, this.indices = e;
|
|
104446
104451
|
}
|
|
@@ -104448,7 +104453,7 @@ class Nk extends Cg {
|
|
|
104448
104453
|
return Ne.trimesh(this.vertices, this.indices);
|
|
104449
104454
|
}
|
|
104450
104455
|
}
|
|
104451
|
-
class Sp extends
|
|
104456
|
+
class Sp extends ag {
|
|
104452
104457
|
constructor(A, e) {
|
|
104453
104458
|
super(), this.type = ki.ConvexPolyhedron, this.vertices = A, this.indices = e;
|
|
104454
104459
|
}
|
|
@@ -104456,7 +104461,7 @@ class Sp extends Cg {
|
|
|
104456
104461
|
return this.indices ? Ne.convexMesh(this.vertices, this.indices) : Ne.convexHull(this.vertices);
|
|
104457
104462
|
}
|
|
104458
104463
|
}
|
|
104459
|
-
class mp extends
|
|
104464
|
+
class mp extends ag {
|
|
104460
104465
|
constructor(A, e, t) {
|
|
104461
104466
|
super(), this.type = ki.RoundConvexPolyhedron, this.vertices = A, this.indices = e, this.borderRadius = t;
|
|
104462
104467
|
}
|
|
@@ -104464,7 +104469,7 @@ class mp extends Cg {
|
|
|
104464
104469
|
return this.indices ? Ne.roundConvexMesh(this.vertices, this.indices, this.borderRadius) : Ne.roundConvexHull(this.vertices, this.borderRadius);
|
|
104465
104470
|
}
|
|
104466
104471
|
}
|
|
104467
|
-
class bk extends
|
|
104472
|
+
class bk extends ag {
|
|
104468
104473
|
constructor(A, e, t, i) {
|
|
104469
104474
|
super(), this.type = ki.HeightField, this.nrows = A, this.ncols = e, this.heights = t, this.scale = i;
|
|
104470
104475
|
}
|
|
@@ -104473,7 +104478,7 @@ class bk extends Cg {
|
|
|
104473
104478
|
return A.free(), e;
|
|
104474
104479
|
}
|
|
104475
104480
|
}
|
|
104476
|
-
class Kk extends
|
|
104481
|
+
class Kk extends ag {
|
|
104477
104482
|
constructor(A, e) {
|
|
104478
104483
|
super(), this.type = ki.Cylinder, this.halfHeight = A, this.radius = e;
|
|
104479
104484
|
}
|
|
@@ -104481,7 +104486,7 @@ class Kk extends Cg {
|
|
|
104481
104486
|
return Ne.cylinder(this.halfHeight, this.radius);
|
|
104482
104487
|
}
|
|
104483
104488
|
}
|
|
104484
|
-
class Jk extends
|
|
104489
|
+
class Jk extends ag {
|
|
104485
104490
|
constructor(A, e, t) {
|
|
104486
104491
|
super(), this.type = ki.RoundCylinder, this.borderRadius = t, this.halfHeight = A, this.radius = e;
|
|
104487
104492
|
}
|
|
@@ -104489,7 +104494,7 @@ class Jk extends Cg {
|
|
|
104489
104494
|
return Ne.roundCylinder(this.halfHeight, this.radius, this.borderRadius);
|
|
104490
104495
|
}
|
|
104491
104496
|
}
|
|
104492
|
-
class xk extends
|
|
104497
|
+
class xk extends ag {
|
|
104493
104498
|
constructor(A, e) {
|
|
104494
104499
|
super(), this.type = ki.Cone, this.halfHeight = A, this.radius = e;
|
|
104495
104500
|
}
|
|
@@ -104497,7 +104502,7 @@ class xk extends Cg {
|
|
|
104497
104502
|
return Ne.cone(this.halfHeight, this.radius);
|
|
104498
104503
|
}
|
|
104499
104504
|
}
|
|
104500
|
-
class vk extends
|
|
104505
|
+
class vk extends ag {
|
|
104501
104506
|
constructor(A, e, t) {
|
|
104502
104507
|
super(), this.type = ki.RoundCone, this.halfHeight = A, this.radius = e, this.borderRadius = t;
|
|
104503
104508
|
}
|
|
@@ -105088,7 +105093,7 @@ class Nh {
|
|
|
105088
105093
|
this.handle != null && (this._parent = A.get(this.colliderSet.raw.coParent(this.handle)));
|
|
105089
105094
|
}
|
|
105090
105095
|
ensureShapeIsCached() {
|
|
105091
|
-
this._shape || (this._shape =
|
|
105096
|
+
this._shape || (this._shape = ag.fromRaw(this.colliderSet.raw, this.handle));
|
|
105092
105097
|
}
|
|
105093
105098
|
get shape() {
|
|
105094
105099
|
return this.ensureShapeIsCached(), this._shape;
|
|
@@ -105560,7 +105565,7 @@ var afA = Object.freeze({ __proto__: null, version: tj, Vector3: VJ, VectorOps:
|
|
|
105560
105565
|
return OS;
|
|
105561
105566
|
}, ImpulseJoint: Us, UnitImpulseJoint: yk, FixedImpulseJoint: ex, RopeImpulseJoint: tx, SpringImpulseJoint: ix, PrismaticImpulseJoint: gx, RevoluteImpulseJoint: Ix, GenericImpulseJoint: ox, SphericalImpulseJoint: sx, JointData: Vs, ImpulseJointSet: nx, MultibodyJoint: ka, UnitMultibodyJoint: Sk, FixedMultibodyJoint: Cx, PrismaticMultibodyJoint: ax, RevoluteMultibodyJoint: rx, SphericalMultibodyJoint: Bx, MultibodyJointSet: Qx, get CoefficientCombineRule() {
|
|
105562
105567
|
return bi;
|
|
105563
|
-
}, CCDSolver: Ex, IslandManager: cx, BroadPhase: hx, NarrowPhase: lx, TempContactManifold: dx, Shape:
|
|
105568
|
+
}, CCDSolver: Ex, IslandManager: cx, BroadPhase: hx, NarrowPhase: lx, TempContactManifold: dx, Shape: ag, get ShapeType() {
|
|
105564
105569
|
return ki;
|
|
105565
105570
|
}, Ball: Gf, HalfSpace: px, Cuboid: mk, RoundCuboid: kk, Capsule: Gk, Segment: Mk, Triangle: Rk, RoundTriangle: Uk, Polyline: Fk, TriMesh: Nk, ConvexPolyhedron: Sp, RoundConvexPolyhedron: mp, Heightfield: bk, Cylinder: Kk, RoundCylinder: Jk, Cone: xk, RoundCone: vk, get ActiveCollisionTypes() {
|
|
105566
105571
|
return Mh;
|
|
@@ -105670,7 +105675,7 @@ const rfA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
105670
105675
|
SdpMatrix3Ops: HS,
|
|
105671
105676
|
Segment: Mk,
|
|
105672
105677
|
SerializationPipeline: jS,
|
|
105673
|
-
Shape:
|
|
105678
|
+
Shape: ag,
|
|
105674
105679
|
ShapeColliderTOI: yl,
|
|
105675
105680
|
ShapeContact: jQ,
|
|
105676
105681
|
ShapeTOI: uE,
|
|
@@ -106289,7 +106294,7 @@ Error:`, s), null;
|
|
|
106289
106294
|
fog: !1
|
|
106290
106295
|
// vertexColors: VertexColors
|
|
106291
106296
|
}), n = new Me();
|
|
106292
|
-
this.lines = new
|
|
106297
|
+
this.lines = new jo(n, s), this.lines.layers.disableAll(), this.lines.layers.enable(2);
|
|
106293
106298
|
}
|
|
106294
106299
|
this.lines.parent !== ((e = this.context) == null ? void 0 : e.scene) && ((t = this.context) == null || t.scene.add(this.lines));
|
|
106295
106300
|
const o = A.debugRender();
|
|
@@ -107520,7 +107525,7 @@ class mfA {
|
|
|
107520
107525
|
var r = A.name !== void 0 && A.name !== null ? A.name : A.uuid;
|
|
107521
107526
|
if (C[2] = r, C[3] === "morphTargetInfluences" && A.type === "Group") {
|
|
107522
107527
|
for (const E of A.children)
|
|
107523
|
-
E instanceof
|
|
107528
|
+
E instanceof Yo && E.morphTargetInfluences && (C[3] = E.name, C[4] = "morphTargetInfluences", Q(this.parser));
|
|
107524
107529
|
return n;
|
|
107525
107530
|
}
|
|
107526
107531
|
Q(this.parser);
|
|
@@ -107610,7 +107615,7 @@ export {
|
|
|
107610
107615
|
sSA as $physicsKey,
|
|
107611
107616
|
dt as ActionBuilder,
|
|
107612
107617
|
h4 as ActionCollection,
|
|
107613
|
-
|
|
107618
|
+
Jo as ActionModel,
|
|
107614
107619
|
KCA as Addressables,
|
|
107615
107620
|
fm as AlignmentConstraint,
|
|
107616
107621
|
du as AmbientMode,
|
|
@@ -107648,7 +107653,7 @@ export {
|
|
|
107648
107653
|
hn as BaseUIComponent,
|
|
107649
107654
|
m8 as BasicIKConstraint,
|
|
107650
107655
|
oJ as BehaviorExtension,
|
|
107651
|
-
|
|
107656
|
+
lg as BehaviorModel,
|
|
107652
107657
|
NA as Behaviour,
|
|
107653
107658
|
Xh as Bloom,
|
|
107654
107659
|
If as BoxCollider,
|
|
@@ -107706,7 +107711,7 @@ export {
|
|
|
107706
107711
|
Qy as EngineLoadingView,
|
|
107707
107712
|
xg as EventList,
|
|
107708
107713
|
jK as EventListEvent,
|
|
107709
|
-
|
|
107714
|
+
_o as EventSystem,
|
|
107710
107715
|
yJ as EventTrigger,
|
|
107711
107716
|
V8 as FieldWithDefault,
|
|
107712
107717
|
Eu as FileReference,
|
|
@@ -107757,9 +107762,9 @@ export {
|
|
|
107757
107762
|
yn as Keyframe,
|
|
107758
107763
|
Ak as LODGroup,
|
|
107759
107764
|
Ql as LODModel,
|
|
107760
|
-
|
|
107765
|
+
xo as LODsManager,
|
|
107761
107766
|
MyA as LeftRoomResponse,
|
|
107762
|
-
|
|
107767
|
+
$o as Light,
|
|
107763
107768
|
drA as LightData,
|
|
107764
107769
|
yg as LimitVelocityOverLifetimeModule,
|
|
107765
107770
|
dwA as LoadingElementOptions,
|
|
@@ -107774,7 +107779,7 @@ export {
|
|
|
107774
107779
|
$h as MeshCollider,
|
|
107775
107780
|
_m as MeshRenderer,
|
|
107776
107781
|
le as MinMaxCurve,
|
|
107777
|
-
|
|
107782
|
+
Xo as MinMaxGradient,
|
|
107778
107783
|
wt as NEEDLE_progressive,
|
|
107779
107784
|
nw as NEKeyboardEvent,
|
|
107780
107785
|
Er as NEPointerEvent,
|
|
@@ -107848,7 +107853,7 @@ export {
|
|
|
107848
107853
|
wa as RemoteSkybox,
|
|
107849
107854
|
mQ as RenderTexture,
|
|
107850
107855
|
fBA as RenderTextureSerializer,
|
|
107851
|
-
|
|
107856
|
+
og as Renderer,
|
|
107852
107857
|
lrA as RendererData,
|
|
107853
107858
|
NS as RendererLightmap,
|
|
107854
107859
|
Pt as Rigidbody,
|
|
@@ -107908,7 +107913,7 @@ export {
|
|
|
107908
107913
|
Sm as TrackHandler,
|
|
107909
107914
|
Cs as TrackType,
|
|
107910
107915
|
Mi as TrailModule,
|
|
107911
|
-
|
|
107916
|
+
cg as TransformData,
|
|
107912
107917
|
pl as TransformGizmo,
|
|
107913
107918
|
iI as TriggerBuilder,
|
|
107914
107919
|
Tr as TriggerModel,
|
|
@@ -107917,7 +107922,7 @@ export {
|
|
|
107917
107922
|
Dm as UIRootComponent,
|
|
107918
107923
|
Qo as USDObject,
|
|
107919
107924
|
yoA as USDWriter,
|
|
107920
|
-
|
|
107925
|
+
Ig as USDZExporter,
|
|
107921
107926
|
rQ as USDZText,
|
|
107922
107927
|
lJ as USDZUIExtension,
|
|
107923
107928
|
tT as Upload_Result,
|
|
@@ -107941,7 +107946,7 @@ export {
|
|
|
107941
107946
|
erA as WaitForSeconds,
|
|
107942
107947
|
xr as Watch,
|
|
107943
107948
|
HJ as WebARCameraBackground,
|
|
107944
|
-
|
|
107949
|
+
Wo as WebARSessionRoot,
|
|
107945
107950
|
Om as WebXR,
|
|
107946
107951
|
UQ as WebXRButtonFactory,
|
|
107947
107952
|
up as WebXRImageTracking,
|