/** * Created by Christophe on 01/02/2017. */ import { ImageDisplayElement } from "./image-display-element"; import { IDisplayable } from "../interfaces/IDisplayable.interface"; import { File } from "../files/file.class"; import { Actionable } from "../script/interfaces/actionable.interface"; export declare class Sprite extends ImageDisplayElement implements IDisplayable, Actionable { private visible; private visibilities; /** * The sprite is the basic display unit in Blip * @param file * @param x * @param y * @param scale * @param initVisibility */ constructor(file: File, x: number, y: number, scale?: number, initVisibility?: boolean); isVisible(): boolean; /** * Create a sprite from raw datas * @param data * @returns {Sprite} */ static fromData(data: Object): Sprite; /** * Displays the sprite in a DOM element * @param container - The DOM element where the sprite will be append * @returns {HTMLElement} */ displayInDOMElement(container: HTMLElement): HTMLElement; /** * Displays the sprite in a DOM element, selected by id * @param id */ displayInDocumentById(id: string): void; /** * Show or hide the sprite, according to the visibility boolean variable * @private */ private _setVisibility(); /** * Displays the sprite and sets its status to visible */ show(instanceNumber?: number): void; /** * Alias to Show() */ display(instanceNumber?: number): void; /** * Hides the sprites, and sets its status to hidden */ hide(instanceNumber?: number): void; /** * Toggles the sprite's visibility */ toggle(): void; executeAction(actionName: string, args: string[]): void; }