@vctrl/viewer
Version:
vctrl/viewer is a React component library for rendering and interacting with 3D models. It's part of the vectreal ecosystem and is designed to work seamlessly with the vctrl/hooks package for model loading and management.
25 lines (24 loc) • 786 B
TypeScript
import { GridProps as ThreeGridProps } from '@react-three/drei';
/**
* Props for the SceneGrid component, extending ThreeGridProps from '@react-three/drei'.
*/
export interface GridProps extends ThreeGridProps {
/**
* Whether to show the grid.
*/
showGrid?: boolean;
/**
* Snap grid position to bottom of scene bounding box (y axis).
*/
snapToBottom?: boolean;
}
/**
* Default grid options.
*/
export declare const defaultGridOptions: GridProps;
/**
* SceneGrid component that renders a grid based on the size of the scene's content.
* The grid adjusts its position and size according to the bounding box of the scene.
*/
declare const SceneGrid: (props: GridProps) => import("react/jsx-runtime").JSX.Element | null;
export default SceneGrid;