@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.
38 lines (37 loc) • 818 B
TypeScript
import { Vector3 } from 'three';
type CameraPosition = Vector3 | {
x: number;
y: number;
z: number;
} | [number, number, number];
export interface CameraProps {
/**
* Initial camera position.
*/
initialCameraPosition?: CameraPosition;
/**
* Field of view.
*/
fov?: number;
/**
* Aspect ratio.
*/
aspect?: number;
/**
* Near clipping plane.
*/
near?: number;
/**
* Near clipping plane.
*/
far?: number;
}
export declare const defaultCameraOptions: Required<CameraProps>;
/**
* Configures the Three.js camera using provided props.
*
* @param {CameraProps} props - Camera configuration.
* @returns {null} No rendered output.
*/
declare const SceneCamera: (props: CameraProps) => null;
export default SceneCamera;