Interface ISpritesheetFrameData

Represents the JSON data for a spritesheet atlas.

Memberof

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;
}

Type declaration

  • h: number
  • w: number
  • x: number
  • y: number
rotated?: boolean
sourceSize?: {
    h: number;
    w: number;
}

Type declaration

  • h: number
  • w: number
spriteSourceSize?: {
    h?: number;
    w?: number;
    x: number;
    y: number;
}

Type declaration

  • Optional h?: number
  • Optional w?: number
  • x: number
  • y: number
trimmed?: boolean

Generated using TypeDoc