@esotericsoftware/spine-core
Advanced tools
Comparing version
@@ -36,9 +36,7 @@ /****************************************************************************** | ||
private downloader; | ||
private assets; | ||
private assetsRefCount; | ||
private assetsLoaded; | ||
private cache; | ||
private errors; | ||
private toLoad; | ||
private loaded; | ||
constructor(textureLoader: (image: HTMLImageElement | ImageBitmap) => Texture, pathPrefix?: string, downloader?: Downloader); | ||
constructor(textureLoader: (image: HTMLImageElement | ImageBitmap) => Texture, pathPrefix?: string, downloader?: Downloader, cache?: AssetCache); | ||
private start; | ||
@@ -65,2 +63,3 @@ private success; | ||
loadTextureAtlasButNoTexturesAsync(path: string): Promise<TextureAtlas>; | ||
setCache(cache: AssetCache): void; | ||
get(path: string): any; | ||
@@ -78,2 +77,10 @@ require(path: string): any; | ||
} | ||
export declare class AssetCache { | ||
assets: StringMap<any>; | ||
assetsRefCount: StringMap<number>; | ||
assetsLoaded: StringMap<Promise<any>>; | ||
static AVAILABLE_CACHES: Map<string, AssetCache>; | ||
static getCache(id: string): AssetCache; | ||
addAsset(path: string, asset: any): Promise<void>; | ||
} | ||
export declare class Downloader { | ||
@@ -80,0 +87,0 @@ private callbacks; |
{ | ||
"name": "@esotericsoftware/spine-core", | ||
"version": "4.2.84", | ||
"version": "4.2.85", | ||
"description": "The official Spine Runtimes for the web.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 2 instances in 1 package
4989728
0.22%40402
0.21%