UNPKG

@threlte/core

Version:

A 3D framework for the web, built on top of Svelte and Three.js

14 lines (13 loc) 390 B
import type { Key } from './DAG'; import type { Stage } from './Stage'; export type TaskCallback = (delta: number) => void; export declare class Task { readonly key: Key; readonly stage: Stage; private callback; private runTask; stop(): void; start(): void; constructor(stage: Stage, key: Key, callback: (delta: number) => void); run(delta: number): void; }