konfeti - v0.6.0
    Preparing search index...

    Type Alias SpriteAtlas

    Sprite Atlas JSON. The frame list a sprite packer exports next to the sheet image (TexturePacker, Aseprite, Free Texture Packer, Phaser). Both layouts are accepted: "JSON Hash" (frames keyed by frame name) and "JSON Array" (frames as a list with a filename each). Other fields (meta, sourceSize, duration …) are ignored.

    { "frames": { "coin_0.png": { "frame": { "x": 0, "y": 0, "w": 32, "h": 32 } } }, "meta": { "image": "coins.png" } }
    
    type SpriteAtlas = {
        frames:
            | Readonly<Record<string, SpriteAtlasFrame>>
            | readonly SpriteAtlasFrame[];
    }
    Index
    frames: Readonly<Record<string, SpriteAtlasFrame>> | readonly SpriteAtlasFrame[]

    Frames, Keyed by Name or Listed.