(app)
| 43 | * @ignore |
| 44 | */ |
| 45 | export function identifyFormat(app) { |
| 46 | if (app.includes("texturepacker") || app.includes("free-tex-packer")) { |
| 47 | return "texturepacker"; |
| 48 | } else if (app.includes("shoebox")) { |
| 49 | return "shoebox"; |
| 50 | } else if (app.includes("aseprite")) { |
| 51 | return "aseprite"; |
| 52 | } else if (app.includes("melonJS")) { |
| 53 | return "melonJS"; |
| 54 | } else { |
| 55 | throw new Error("Unknown texture atlas format: " + app); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | /** |
| 60 | * A Texture atlas class, currently supports : <br> |