UNPKG

@luma.gl/engine

Version:

3D Engine Components for luma.gl

34 lines (27 loc) 782 B
// luma.gl // SPDX-License-Identifier: MIT // Copyright (c) vis.gl contributors import {CanvasContext, Device} from '@luma.gl/core'; import {Timeline} from '../animation/timeline'; import type {AnimationLoop} from './animation-loop'; /** Properties passed to every render frame */ export type AnimationProps = { animationLoop: AnimationLoop; device: Device; canvasContext: CanvasContext; canvas: HTMLCanvasElement | OffscreenCanvas; width: number; height: number; aspect: number; // Animation props time: number; startTime: number; engineTime: number; tick: number; tock: number; // Initial values needsRedraw?: string | false; timeline: Timeline | null; // Experimental _mousePosition?: [number, number] | null; // [offsetX, offsetY], };