UNPKG

diginext-pixi

Version:
52 lines (51 loc) 1.62 kB
import * as PIXI from 'pixi.js'; import InteractItem from '../../core/InteractItem'; interface IPrintSprite { sizeView?: number; } declare const PrintSprite_base: { new (...args: any[]): { width: number; height: number; lock: boolean; doLock: Function; addChild: any; backgroundHolder: PIXI.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 PrintSprite extends PrintSprite_base { #private; constructor(props?: IPrintSprite); type: string; isResized: boolean; original: string; resize: string; sprite: PIXI.Sprite; sizeView: number; changeTextureByUrl(url: string, resize?: string): Promise<void>; setup(original: string, resize: string): Promise<void>; viewAsWeb(): Promise<void>; prepairPrint(): Promise<void>; toJSON(external?: any): any; fromJSON(data: string | any): Promise<void>; } export {};