Interface ISpritesheetFrameData

Represents the JSON data for a spritesheet atlas.

PIXI

interface ISpritesheetFrameData {
    anchor?: IPointData;
    borders?: ITextureBorders;
    frame: { h: number; w: number; x: number; y: number };
    rotated?: boolean;
    sourceSize?: { h: number; w: number };
    spriteSourceSize?: { h?: number; w?: number; x: number; y: number };
    trimmed?: boolean;
}

Properties

anchor?: IPointData
borders?: ITextureBorders
frame: { h: number; w: number; x: number; y: number }
rotated?: boolean
sourceSize?: { h: number; w: number }
spriteSourceSize?: { h?: number; w?: number; x: number; y: number }
trimmed?: boolean