1681-engine / index / PackedFrame
Interface: PackedFrame ​
Defined in: src/core/TextureRegistry.ts:4
A frame packed on an atlas page (TexturePacker and the like), as assets/textureAtlas.ts parses it.
Properties ​
anchor? ​
optional anchor?: object;Defined in: src/core/TextureRegistry.ts:19
The frame's pivot, 0–1, when the packer wrote one.
x ​
x: number;y ​
y: number;h ​
h: number;Defined in: src/core/TextureRegistry.ts:10
name ​
name: string;Defined in: src/core/TextureRegistry.ts:5
rotated ​
rotated: boolean;Defined in: src/core/TextureRegistry.ts:12
Stored turned 90° clockwise on the page (Pixi's rotate: 2).
sourceH ​
sourceH: number;Defined in: src/core/TextureRegistry.ts:15
sourceW ​
sourceW: number;Defined in: src/core/TextureRegistry.ts:14
The untrimmed size of the sprite.
trim? ​
optional trim?: object;Defined in: src/core/TextureRegistry.ts:17
Where the trimmed pixels sit inside the untrimmed sprite; absent when the frame was not trimmed.
h ​
h: number;w ​
w: number;x ​
x: number;y ​
y: number;w ​
w: number;Defined in: src/core/TextureRegistry.ts:9
x ​
x: number;Defined in: src/core/TextureRegistry.ts:7
The rect on the page (already swapped to its on-page size when rotated).
y ​
y: number;Defined in: src/core/TextureRegistry.ts:8