diff --git a/package.json b/package.json index 43f161ea5..22c660200 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "dependencies": { "@vueuse/core": "^12.3.0", "camera-controls": "^2.9.0", - "stats-gl": "^2.0.1", + "stats-gl": "^3.6.0", "stats.js": "^0.17.0", "three-custom-shader-material": "^5.4.0", "three-stdlib": "^2.35.2" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d40caea6..b7caecf28 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^2.9.0 version: 2.9.0(three@0.172.0) stats-gl: - specifier: ^2.0.1 - version: 2.4.2(@types/three@0.171.0)(three@0.172.0) + specifier: ^3.6.0 + version: 3.6.0(three@0.172.0) stats.js: specifier: ^0.17.0 version: 0.17.0 @@ -4128,11 +4128,13 @@ packages: stable-hash@0.0.4: resolution: {integrity: sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==} - stats-gl@2.4.2: - resolution: {integrity: sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ==} + stats-gl@3.6.0: + resolution: {integrity: sha512-Bpi5nwvC2pls9lcI5sGqAcUqB/2kMYfsR4KoAglXFtY3YUdm7lJFg8FqS7eKKNgg3ruDMNCuwU+uRwPOwJiGnw==} peerDependencies: - '@types/three': '*' three: '*' + peerDependenciesMeta: + three: + optional: true stats.js@0.17.0: resolution: {integrity: sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==} @@ -9222,9 +9224,8 @@ snapshots: stable-hash@0.0.4: {} - stats-gl@2.4.2(@types/three@0.171.0)(three@0.172.0): - dependencies: - '@types/three': 0.171.0 + stats-gl@3.6.0(three@0.172.0): + optionalDependencies: three: 0.172.0 stats.js@0.17.0: {} diff --git a/src/core/misc/StatsGl.ts b/src/core/misc/StatsGl.ts index cb62ab662..f14269fcf 100644 --- a/src/core/misc/StatsGl.ts +++ b/src/core/misc/StatsGl.ts @@ -93,6 +93,7 @@ export const StatsGl = defineComponent({ expose({ instance: statsGl }) const node = document.body + // @ts-expect-error waiting for stats-gl update https://github.com/RenaudRohlinger/stats-gl/issues/16 const statContainer = statsGl.dom || statsGl.container node?.appendChild(statContainer)