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

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

@@ -0,0 +1,33 @@
import _extends from '@babel/runtime/helpers/esm/extends';
import * as React from 'react';
import { useFrame } from '@react-three/fiber';
const Detailed = /* @__PURE__ */React.forwardRef(({
children,
hysteresis = 0,
distances,
...props
}, ref) => {
const lodRef = React.useRef(null);
React.useImperativeHandle(ref, () => lodRef.current, []);
React.useLayoutEffect(() => {
const {
current: lod
} = lodRef;
lod.levels.length = 0;
lod.children.forEach((object, index) => lod.levels.push({
object,
hysteresis,
distance: distances[index]
}));
});
useFrame(state => {
var _lodRef$current;
return (_lodRef$current = lodRef.current) == null ? void 0 : _lodRef$current.update(state.camera);
});
return /*#__PURE__*/React.createElement("lOD", _extends({
ref: lodRef
}, props), children);
});
export { Detailed };