UNPKG

studiocms

Version:

Astro Native CMS for AstroDB. Built from the ground up by the Astro community.

11 lines (10 loc) 466 B
/** * Takes in a GLTF model and fits it into a camera's viewport. * Optimized to work with dependency injection pattern. * @param model The model to fit * @param camera The camera to fit the model into * @param threeModules Optional Three.js modules (for dependency injection) */ declare function fitModelToViewport(model: any, // Using any to support both bundled and injected Three.js camera: any, threeModules?: any): number; export { fitModelToViewport };