UNPKG

starling-framework

Version:

A fast, productive library for 2D cross-platform development.

23 lines 765 B
import Event from "./Event"; declare namespace starling.events { /** * An EnterFrameEvent is triggered once per frame and is dispatched to all objects in the * * display tree. * * * * It contains information about the time that has passed since the last frame. That way, you * * can easily make animations that are independent of the frame rate, taking the passed time * * into account. * */ export class EnterFrameEvent extends Event { /** * Creates an enter frame event with the passed time. */ constructor(type: string, passedTime: number, bubbles?: boolean); /** * The time that has passed since the last frame (in seconds). */ get passedTime(): number; } } export default starling.events.EnterFrameEvent;