PackAsset
Extends:
Pack asset loader. It serves also as fetch engine (it's subassets container).
Static Method Summary
| Static Public Methods | ||
| public static |
Asset factory. |
|
Constructor Summary
| Public Constructor | ||
| public |
|
|
Member Summary
| Public Members | ||
| public |
data: {"descriptor": *, "raw": *} |
|
Method Summary
| Public Methods | ||
| public |
dispose() |
|
| public |
Gets text representation of given subasset. |
|
| public |
Gets Array buffer view of given subasset. |
|
| public |
fetchSubAsset(path: *, options: *, fallbackEngine: *): * |
|
| public |
Tells if pack has subasset of given path. |
|
| public |
load(): * |
|
Inherited Summary
| From class Asset | ||
| public get |
data: * |
|
| public set |
data: * |
|
| public get |
|
|
| public get |
options: * |
|
| public get |
|
|
| public get |
|
|
| public |
dispose() Destructor (disposes internal resources). |
|
| public |
fetchSubAsset(path: string, options: *): Promise Use this asset as fetch engine and load part of it's content as asset. |
|
| public abstract |
Load asset. |
|
| public |
makeFetchEngine(fallbackEngine: *): *: Function |
|
| public |
onReady() Called when asset is loaded and ready to use. |
|
Static Public Methods
Public Constructors
Public Members
Public Methods
public entryText(path: string, noThrow: boolean): string source
Gets text representation of given subasset.
public entryView(path: string, noThrow: boolean): ArrayBufferView | null source
Gets Array buffer view of given subasset.
public fetchSubAsset(path: *, options: *, fallbackEngine: *): * source
Use this asset as fetch engine and load part of it's content as asset.
Override:
Asset#fetchSubAssetParams:
| Name | Type | Attribute | Description |
| path | * | ||
| options | * | ||
| fallbackEngine | * |
Return:
| * |
