UNPKG

@flashport/flashport

Version:

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

46 lines (45 loc) 1.88 kB
/** * properties.TextShortcuts * Special properties for the Tweener class to handle MovieClip filters * 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 TextShortcuts { /** * 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; /** * Returns the current frame number from the movieclip timeline * * @param p_obj Object MovieClip object * @return Number The current frame */ static _text_get: (p_obj: any, p_parameters: any[], p_extra?: any) => number; /** * Sets the timeline frame * * @param p_obj Object MovieClip object * @param p_value Number New frame number */ static _text_set: (p_obj: any, p_value: number, p_parameters: any[], p_extra?: any) => void; static _text_preProcess: (p_obj: any, p_parameters: any[], p_originalValueComplete: any, p_extra: any) => number; /** * A generic color splitter - from 0xrrggbb to r, g, b with the name of the parameters passed * * @param p_value Number The original _color value * @return Array An array containing the .name and .value of all new properties */ static _generic_color_splitter: (p_value: number, p_parameters: any[]) => any[]; /** * Generic function for the textformat properties */ static _textFormat_property_get: (p_obj: any, p_parameters: any[], p_extra?: any) => number; static _textFormat_property_set: (p_obj: any, p_value: number, p_parameters: any[], p_extra?: any) => void; }