(tileset)
| 122 | */ |
| 123 | |
| 124 | export function getTileFormat(tileset) { |
| 125 | if (tileset.tileFormat) { |
| 126 | const format = tileset.tileFormat.toLowerCase(); |
| 127 | if (['jpg_png', 'default', 'png8'].includes(format)) { |
| 128 | return 'png'; |
| 129 | } |
| 130 | return format; |
| 131 | } |
| 132 | return 'png'; |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * @private |
no outgoing calls
no test coverage detected