UNPKG

@mai3/phaser-sdk

Version:

A UI component library based on the Phaser game engine

18 lines 650 B
import { Container, Text } from "."; import { BaseScene } from "../game"; import { ImageConfig } from "../types"; export declare class Image extends Container<ImageConfig> { protected _config: ImageConfig; image?: Phaser.GameObjects.Image; protected maskShape?: Phaser.GameObjects.Graphics; protected text?: Text; constructor(scene: BaseScene, config: ImageConfig); reDraw(config: ImageConfig): void; private reDrawImage; private reDrawMaskShape; reDrawText(config: ImageConfig): void; updateMaskShapePos(): void; clear(): void; destroy(fromScene?: boolean): void; } //# sourceMappingURL=Image.d.ts.map