@bloopjs/toodle / textures/types / PixiRegion
Type Alias: PixiRegion
PixiRegion =
object
Defined in: textures/types.ts:175
A region specification from a pixi.js spritesheet or atlas paced with assetPack
Properties
frame
frame:
object
Defined in: textures/types.ts:177
the position and size of the cropped region in the atlas, measured in texels
h
h:
number
w
w:
number
x
x:
number
y
y:
number
rotated
rotated:
boolean
Defined in: textures/types.ts:178
sourceSize
sourceSize:
object
Defined in: textures/types.ts:181
the original size of the texture in texels
h
h:
number
w
w:
number
spriteSourceSize
spriteSourceSize:
object
Defined in: textures/types.ts:183
the position and size of the cropped region of the texture prior to packing in the atlas, measured in texels
h
h:
number
w
w:
number
x
x:
number
y
y:
number
trimmed
trimmed:
boolean
Defined in: textures/types.ts:179