Initial project import

This commit is contained in:
drjones
2026-06-13 17:36:44 -07:00
commit ad2a18cc8d
18471 changed files with 4497570 additions and 0 deletions

10
node_modules/@react-three/drei/core/useAspect.js generated vendored Normal file
View File

@@ -0,0 +1,10 @@
import { useThree } from '@react-three/fiber';
function useAspect(width, height, factor = 1) {
const v = useThree(state => state.viewport);
const adaptedHeight = height * (v.aspect > width / height ? v.width / width : v.height / height);
const adaptedWidth = width * (v.aspect > width / height ? v.width / width : v.height / height);
return [adaptedWidth * factor, adaptedHeight * factor, 1];
}
export { useAspect };