Skip to content

Documentation / @debuffjp/assets / AssetEntry

Interface: AssetEntry ​

Defined in: ../debuff/packages/assets/src/index.ts:5

Properties ​

bytes? ​

optional bytes?: number

Defined in: ../debuff/packages/assets/src/index.ts:15


compressed? ​

optional compressed?: Partial<Record<string, string>>

Defined in: ../debuff/packages/assets/src/index.ts:19

GPU-compressed copies of src by format ("bc7", "etc2", "astc4x4"), when the build wrote them. Since 0.35.


grid? ​

optional grid?: object

Defined in: ../debuff/packages/assets/src/index.ts:12

Optional sprite-sheet grid for images.

frameHeight ​

frameHeight: number

frameWidth ​

frameWidth: number


group? ​

optional group?: string

Defined in: ../debuff/packages/assets/src/index.ts:10

Preload group; defaults to "default".


hash? ​

optional hash?: string

Defined in: ../debuff/packages/assets/src/index.ts:17

Content hash from the build; appended as ?v= so a redeploy never mixes cached files.


rect? ​

optional rect?: object

Defined in: ../debuff/packages/assets/src/index.ts:14

Region of src holding this image when it was packed into an atlas.

h ​

h: number

w ​

w: number

x ​

x: number

y ​

y: number


src ​

src: string

Defined in: ../debuff/packages/assets/src/index.ts:8

URL relative to the manifest's base.


type ​

type: AssetType

Defined in: ../debuff/packages/assets/src/index.ts:6