@antha/asset 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asset-loader.d.ts +4 -4
- package/package.json +2 -2
package/dist/asset-loader.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type AnthaLogger } from '@antha/engine';
|
|
1
|
+
import { type AnthaLogger, type EngineTime } from '@antha/engine';
|
|
2
2
|
import { type MaybePromise, type PartialWithUndefined } from '@augment-vir/common';
|
|
3
3
|
import { ListenTarget } from 'typed-event-target';
|
|
4
4
|
/**
|
|
@@ -102,7 +102,7 @@ export type AssetLoadProgress = {
|
|
|
102
102
|
};
|
|
103
103
|
/** State of the active asset load. */
|
|
104
104
|
export type AssetLoadState = AssetLoadProgress & {
|
|
105
|
-
completedAt:
|
|
105
|
+
completedAt: EngineTime | undefined;
|
|
106
106
|
isLoading: boolean;
|
|
107
107
|
};
|
|
108
108
|
declare const AssetLoadSessionUpdateEvent_base: (new (eventInitDict: {
|
|
@@ -166,7 +166,7 @@ export declare class AssetLoadSessionController {
|
|
|
166
166
|
/** Advances asset-load completion after an engine render. */
|
|
167
167
|
advance({ currentTick, totalMs, }: Readonly<{
|
|
168
168
|
currentTick: number;
|
|
169
|
-
totalMs:
|
|
169
|
+
totalMs: EngineTime;
|
|
170
170
|
}>): void;
|
|
171
171
|
/** Stops tracking the active load session. */
|
|
172
172
|
destroy(): void;
|
|
@@ -193,7 +193,7 @@ export declare class AssetLoader {
|
|
|
193
193
|
/** Advances asset-load completion after an engine render. */
|
|
194
194
|
advanceLoadState({ currentTick, totalMs, }: Readonly<{
|
|
195
195
|
currentTick: number;
|
|
196
|
-
totalMs:
|
|
196
|
+
totalMs: EngineTime;
|
|
197
197
|
}>): void;
|
|
198
198
|
/** Loads a single asset, returning its cached value if already loaded. */
|
|
199
199
|
loadIndividualAsset<ThisAsset extends Asset>({ asset, incrementProgressCallback, loadSession, }: Readonly<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antha/asset",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "An Antha mod for handling asset loading.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vir",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"typedoc": "^0.28.20"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@antha/engine": "^0.6.
|
|
53
|
+
"@antha/engine": "^0.6.1",
|
|
54
54
|
"element-vir": ">=26"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|