UNPKG

@threlte/extras

Version:

Utilities, abstractions and plugins for your Threlte apps

8 lines (7 loc) 313 B
import { Group } from 'three'; export interface BoundsContext { reset(): void; fit(): void; } export declare const provideBounds: (ref: () => Group, margin: () => number, animate: () => boolean, onFit: () => (() => void) | undefined) => BoundsContext; export declare const useBounds: () => BoundsContext;