Interface: SpritesheetFrameData

SpritesheetFrameData

Represents the JSON data for a spritesheet atlas.

Properties:
Name Type Description
anchor PointData

The anchor point of the texture.

borders TextureBorders

The 9-slice borders of the texture.

frame { x : number, y : number, w : number, h : number }

The frame rectangle of the texture.

rotated boolean

Whether the texture is rotated.

sourceSize { w : number, h : number }

The source size of the texture.

spriteSourceSize { h? : number, w? : number, x : number, y : number }

The sprite source size.

trimmed boolean

Whether the texture is trimmed.

Members

anchor PointData

The anchor point of the texture.

borders TextureBorders

The 9-slice borders of the texture.

frame { x : number, y : number, w : number, h : number }

The frame rectangle of the texture.

rotated boolean

Whether the texture is rotated.

sourceSize { w : number, h : number }

The source size of the texture.

spriteSourceSize { h? : number, w? : number, x : number, y : number }

The sprite source size.

trimmed boolean

Whether the texture is trimmed.