UNPKG

@flashport/flashport

Version:

FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library

74 lines (73 loc) 2.77 kB
/** * The tween list object. Stores all of the properties and information that pertain to individual tweens. * * @author Nate Chatellier, Zeh Fernando * @version 1.0.4 * @private */ export declare class TweenListObj { scope: any; properties: any; timeStart: number; timeComplete: number; useFrames: boolean; transition: Function; transitionParams: any; onStart: Function; onUpdate: Function; onComplete: Function; onOverwrite: Function; onError: Function; onStartParams: any[]; onUpdateParams: any[]; onCompleteParams: any[]; onOverwriteParams: any[]; onStartScope: any; onUpdateScope: any; onCompleteScope: any; onOverwriteScope: any; onErrorScope: any; rounded: boolean; isPaused: boolean; timePaused: number; isCaller: boolean; count: number; timesCalled: number; waitFrames: boolean; skipUpdates: number; updatesSkipped: number; hasStarted: boolean; isComplete: boolean; /** * Initializes the basic TweenListObj. * * @param p_scope Object Object affected by this tweening * @param p_timeStart Number Time when this tweening should start * @param p_timeComplete Number Time when this tweening should end * @param p_useFrames Boolean Whether or not to use frames instead of time * @param p_transition Function Equation to control the transition animation */ constructor(p_scope: any, p_timeStart: number, p_timeComplete: number, p_useFrames: boolean, p_transition: Function, p_transitionParams: any); /** * Clones this tweening and returns the new TweenListObj * * @param omitEvents Boolean Whether or not events such as onStart (and its parameters) should be omitted * @return TweenListObj A copy of this object */ clone: (omitEvents: boolean) => TweenListObj; /** * Returns this object described as a String. * * @return String The description of this object. */ toString: () => string; /** * Checks if p_obj "inherits" properties from other objects, as set by the "base" property. Will create a new object, leaving others intact. * o_bj.base can be an object or an array of objects. Properties are collected from the first to the last element of the "base" filed, with higher * indexes overwritting smaller ones. Does not modify any of the passed objects, but makes a shallow copy of all properties. * * @param p_obj Object Object that should be tweened: a movieclip, textfield, etc.. OR an array of objects * @return Object A new object with all properties from the p_obj and p_obj.base. */ static makePropertiesChain: (p_obj: any) => any; }