Module export

Module export 

Source

Functionsยง

to_json_array
Serialize the whole Atlas as a JSON object { pages, meta } (array-of-pages style). Suitable for generic tooling and simple consumption.
to_json_hash
Flatten frames keyed by name, include page id/size hints. Shape: { frames: { name: { frame, rotated, trimmed, spriteSourceSize, sourceSize, pivot, page, pageSize } }, meta }. Compatible with many engine pipelines expecting TexturePacker-like JSON hash.