fix: types and versions

This commit is contained in:
TrèsAbhi committed 2024-10-30 10:42:52 -05:00
1 parent e05f02099d
commit 5deafff3ab
3 files changed
+13 -12

No files matched your search

BIN
View File
Binary file not shown.
+11 -11
View File
@@ -16,10 +16,10 @@
"@nivo/bar": "^0.87.0", "@nivo/bar": "^0.87.0",
"@radix-ui/colors": "^3.0.0", "@radix-ui/colors": "^3.0.0",
"@radix-ui/react-icons": "^1.3.0", "@radix-ui/react-icons": "^1.3.0",
"@radix-ui/themes": "^3.1.3", "@radix-ui/themes": "^3.1.4",
"@react-three/drei": "^9.111.5", "@react-three/drei": "^9.115.0",
"@react-three/fiber": "^8.17.6", "@react-three/fiber": "^8.17.10",
"@vanilla-extract/css": "^1.15.5", "@vanilla-extract/css": "^1.16.0",
"@vanilla-extract/dynamic": "^2.1.2", "@vanilla-extract/dynamic": "^2.1.2",
"compare-versions": "^6.1.1", "compare-versions": "^6.1.1",
"echarts": "^5.5.1", "echarts": "^5.5.1",
@@ -30,19 +30,19 @@
"react": "^18.3.1", "react": "^18.3.1",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-promise-suspense": "^0.3.4", "react-promise-suspense": "^0.3.4",
"three": "0.159.0", "three": "^0.169.0",
"urlon": "^3.1.0", "urlon": "^3.1.0",
"zustand": "^4.5.5" "zustand": "^4.5.5"
}, },
"devDependencies": { "devDependencies": {
"@astrojs/check": "^0.9.3", "@astrojs/check": "^0.9.4",
"@astrojs/react": "^3.6.2", "@astrojs/react": "^3.6.2",
"@astrojs/sitemap": "^3.2.0", "@astrojs/sitemap": "^3.2.1",
"@types/js-cookie": "^3.0.6", "@types/js-cookie": "^3.0.6",
"@types/react": "^18.3.5", "@types/react": "^18.3.12",
"@types/react-dom": "^18", "@types/react-dom": "^18.3.1",
"@types/three": "^0.160.0", "@types/three": "^0.160.0",
"@vanilla-extract/vite-plugin": "^4.0.15", "@vanilla-extract/vite-plugin": "^4.0.17",
"astro": "^4.15.6" "astro": "^4.16.7"
} }
} }
+2 -1
View File
@@ -2,7 +2,7 @@ import { asset } from '@blitzkit/core';
import { type ObjectMap, useLoader } from '@react-three/fiber'; import { type ObjectMap, useLoader } from '@react-three/fiber';
import { Mesh, MeshStandardMaterial } from 'three'; import { Mesh, MeshStandardMaterial } from 'three';
import { type GLTF, GLTFLoader } from 'three-stdlib'; import { type GLTF, GLTFLoader } from 'three-stdlib';
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader'; import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
const cache: Record< const cache: Record<
number, number,
@@ -19,6 +19,7 @@ export function useModel(id: number) {
(loader) => { (loader) => {
const dracoLoader = new DRACOLoader(); const dracoLoader = new DRACOLoader();
dracoLoader.setDecoderPath('https://www.gstatic.com/draco/v1/decoders/'); dracoLoader.setDecoderPath('https://www.gstatic.com/draco/v1/decoders/');
// @ts-ignore
loader.setDRACOLoader(dracoLoader); loader.setDRACOLoader(dracoLoader);
}, },
); );