UNPKG

diginext-pixi

Version:
53 lines (52 loc) 1.67 kB
import { Container, Text, TextStyle } from 'pixi.js'; import * as PIXI from 'pixi.js'; import InteractItem from '../../core/InteractItem'; declare const PrintText_base: { new (...args: any[]): { width: number; height: number; lock: boolean; doLock: Function; addChild: any; backgroundHolder: Container<PIXI.DisplayObject>; scale: any; on: any; data: any; _role: string; readonly role: string; setRole(name: string): string; PIXEL_PER_CM: number; readonly WIDTH_VIA_CM: number; readonly HEIGHT_VIA_CM: number; readonly AREA_VIA_CM: number; "__#9@#hasBackground": boolean; readonly hasBackground: boolean; "__#9@#__onchange"(): void; addBackground(data?: { color?: number | undefined; } | undefined): void; removeBackground(): void; toJSON(external?: any): any; fromJSON(data: any): void; }; } & typeof InteractItem; export default class PrintText extends PrintText_base { #private; constructor(props?: any); holder: Container<PIXI.DisplayObject>; type: string; isResized: boolean; textObject: Text; DEFAULT_SIZE: number; props: any; get text(): string; changeFontSize(data: number): void; changeText(text: string): void; changeStyle(style: TextStyle): void; changeColor(color: string): void; viewAsWeb(): Promise<void>; prepairPrint(): Promise<void>; toJSON(external?: any): any; fromJSON(data: string | any): Promise<void>; } export {};