@flashport/flashport
Version:
FlashPort is a TypeScript 2D graphics library that largely replicates the Flash ActionScript 3.0 library
36 lines (35 loc) • 1.56 kB
TypeScript
/**
* properties.CurveModifiers
* List of default special properties modifiers for the Tweener class
* The function names are strange/inverted because it makes for easier debugging (alphabetic order). They're only for internal use (on this class) anyways.
*
* @author Zeh Fernando, Nate Chatellier, Arthur Debert
* @version 1.0.0
*/
export declare class CurveModifiers {
/**
* There's no constructor.
*/
constructor();
/**
* Registers all the special properties to the Tweener class, so the Tweener knows what to do with them.
*/
static init: () => void;
/**
* Given the parameter object passed to this special property, return an array listing the properties that should be modified, and their parameters
*
* @param p_obj Object Parameter passed to this property
* @return Array Array listing name and parameter of each property
*/
static _bezier_modifier: (p_obj: any) => any[];
/**
* Given tweening specifications (beging, end, t), applies the property parameter to it, returning new t
*
* @param b Number Beginning value of the property
* @param e Number Ending (desired) value of the property
* @param t Number Current t of this tweening (0-1), after applying the easing equation
* @param p Array Array of parameters passed to this specific property
* @return Number New t, with the p parameters applied to it
*/
static _bezier_get: (b: number, e: number, t: number, p: any[]) => number;
}