Constructors
constructor
- new default(): default
-
Properties
Static
Readonly
CACHE
Static
Readonly
CACHE_COMMON_COLORS
CACHE_
COMMON_
COLORS
: default<IRGB> = ...
Methods
clearCache
- clearCache(): Promise<void>
-
Returns Promise<void>
releaseGenerationImageDataCache
- releaseGenerationImageDataCache(): void
-
Returns void
render
- render(path: string, filters?: ISpriteEditorFilters, signal?: AbortSignal): Promise<string>
-
Parameters
-
path: string
-
-
Optional
signal: AbortSignal
Returns Promise<string>
Static
getMostCommonColor
- getMostCommonColor(path: string): Promise<undefined | IRGB>
-
Returns Promise<undefined | IRGB>
Static
getMostCommonItemColor
- getMostCommonItemColor(item: ItemType | ItemTypeExtra): Promise<undefined | IRGB>
-
Returns Promise<undefined | IRGB>
Static
save
- save(): Promise<void>
-
Returns Promise<void>
Clears the cache of sprites from the user's database.