UNPKG

@tresjs/core

Version:

Declarative ThreeJS using Vue Components

15 lines (14 loc) 650 B
import { RafLoopContext } from '../useCreateRafLoop'; import { TresPartialContext } from '../useTres'; export type LoopContext = RafLoopContext & TresPartialContext; /** * Composable that provides control over the render loop and animation lifecycle. */ export declare const useLoop: () => { stop: () => void; start: () => void; isActive: Readonly<import('vue').ShallowRef<boolean>>; onBeforeRender: import('../../utils/createPriorityEventHook').PriorityEventHookOn<LoopContext>; onRender: import('../../utils/createPriorityEventHook').PriorityEventHookOn<LoopContext>; render: (fn: import('..').RenderFunction) => void; };