UNPKG

diginext-pixi

Version:
27 lines (26 loc) 922 B
import InteractItem from '../core/InteractItem'; export default class SvgSprite extends InteractItem { #private; constructor(props?: any); type: string; url: string; baseContent: string; currentContent: string; tone: Array<string> | undefined; props: any; setupByUrl(url: string): Promise<unknown>; addSpriteBySvgContent(content: string, opt?: { maxSize: number; }): Promise<boolean>; changeTextureByContent(content: string, opt?: { maxSize: number; }): Promise<boolean>; getTextureByContentSvg(content: string, opt?: { maxSize: number; }): Promise<unknown>; changeColorByIndex(index: number, hex: string, updateImg?: boolean): Promise<boolean>; changeColorByTone(colors: Array<string>): Promise<void>; shuffleColor(): Promise<void>; getAllBaseColors(): string[]; getAllColors(): string[]; }