1681-engine / index / PackedAtlasPage
Interface: PackedAtlasPage ​
Defined in: src/assets/textureAtlas.ts:14
One page of an atlas: its image and its frames.
Properties ​
animations ​
ts
animations: Record<string, string[]>;Defined in: src/assets/textureAtlas.ts:19
Animations by name, each a list of frame names (animations in Pixi-flavoured JSON).
frames ​
ts
frames: PackedFrame[];Defined in: src/assets/textureAtlas.ts:17
image ​
ts
image: string;Defined in: src/assets/textureAtlas.ts:16
The page image as named in meta.image, relative to the JSON file.
related ​
ts
related: string[];Defined in: src/assets/textureAtlas.ts:21
Further pages' JSON files (meta.related_multi_packs), relative to this one.
scale ​
ts
scale: number;Defined in: src/assets/textureAtlas.ts:23
Pixels per unit the page was exported at (meta.scale, default 1).