Some label fixes

This commit is contained in:
2026-06-25 19:56:14 -05:00
parent d85737cc08
commit 722fe2ccfb
30 changed files with 290 additions and 105 deletions
+4 -4
View File
@@ -8,11 +8,11 @@
/**
* Descriptor for one entry in an `AssetBatch`.
*
* `format` texture format constant (`Texture.FORMAT_*`). Alias for `input`
* `format` - texture format constant (`Texture.FORMAT_*`). Alias for `input`
* when the type is `Asset.TYPE_TEXTURE`.
* `axis` mesh axis constant (`Asset.MESH_AXIS_*`). Alias for `input`
* `axis` - mesh axis constant (`Asset.MESH_AXIS_*`). Alias for `input`
* when the type is `Asset.TYPE_MESH`.
* `input` generic numeric input for all other loader types.
* `input` - generic numeric input for all other loader types.
*/
interface AssetBatchDescriptor {
path: string;
@@ -48,7 +48,7 @@ interface AssetBatch {
lock(): this;
/**
* Releases all locks and clears the batch.
* After this call the object is invalid do not use it again.
* After this call the object is invalid - do not use it again.
*/
unlock(): void;
/**
+7 -7
View File
@@ -13,24 +13,24 @@
interface AssetEntry {
/** Archive-relative path used as the cache key. */
readonly name: string;
/** Current loading state compare against `AssetEntry.*` state constants. */
/** Current loading state - compare against `AssetEntry.*` state constants. */
readonly state: number;
/** Loader type one of the `AssetEntry.TYPE_*` constants. */
/** Loader type - one of the `AssetEntry.TYPE_*` constants. */
readonly type: number;
/** `true` when the entry has fully loaded (`state === AssetEntry.LOADED`). */
readonly isLoaded: boolean;
/**
* Returns a `Texture` for this entry when it is a loaded texture asset.
* The `Texture` holds its own asset lock independent of this `AssetEntry`.
* The `Texture` holds its own asset lock - independent of this `AssetEntry`.
* Returns `undefined` if the entry is not of type `Asset.TYPE_TEXTURE` or
* is not yet loaded.
*/
readonly texture: Texture | undefined;
/** Event proxy subscribe up to 4 callbacks for when loading completes. */
/** Event proxy - subscribe up to 4 callbacks for when loading completes. */
readonly onLoaded: AssetEventProxy;
/** Event proxy subscribe up to 4 callbacks for when the entry is disposed. */
/** Event proxy - subscribe up to 4 callbacks for when the entry is disposed. */
readonly onUnloaded: AssetEventProxy;
/** Event proxy subscribe up to 4 callbacks for when loading fails. */
/** Event proxy - subscribe up to 4 callbacks for when loading fails. */
readonly onError: AssetEventProxy;
/**
* Returns a Promise that resolves when the entry is loaded, or rejects on
@@ -45,7 +45,7 @@ interface AssetEntry {
requireLoaded(): this;
/**
* Releases the lock immediately.
* After this call the object is invalid do not use it again.
* After this call the object is invalid - do not use it again.
*/
unlock(): void;
toString(): string;