konfeti - v0.6.0
    Preparing search index...

    Type Alias SpriteAtlasFrame

    One Frame of a Sprite Atlas JSON. The shape TexturePacker, Aseprite, Free Texture Packer and Phaser write: the frame's rectangle in the sheet, and flags for frames the packer rotated or trimmed.

    type SpriteAtlasFrame = {
        filename?: string;
        frame: { h: number; w: number; x: number; y: number };
        rotated?: boolean;
        trimmed?: boolean;
    }
    Index
    filename?: string

    Frame Name (the "JSON Array" layout; the "JSON Hash" layout keys frames by name instead).

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

    Frame Rectangle in the Sheet (source pixels).

    Type Declaration

    • Readonlyh: number

      Height.

    • Readonlyw: number

      Width.

    • Readonlyx: number

      Left Edge.

    • Readonlyy: number

      Top Edge.

    rotated?: boolean

    Rotated by the Packer (not supported: export the sheet without rotation).

    trimmed?: boolean

    Trimmed by the Packer (frames of different sizes are each stretched to the particle size).