unvt / sprite-one

MIT License
13 stars 6 forks source link

generate multiple ratios' sprite once #10

Closed JinIgarashi closed 2 years ago

JinIgarashi commented 2 years ago

fixed #5

If multiple ratios are specified in either CLI or Nodejs, the default file names when the ratio is more than one will be changed to the standard file name used by mapbox and maplibre (e.g., sprite.json for 1 ratio, sprite@2x.json for 2 ratio...). If only a ratio is specified, filename will be the same with output file name parameter even the ratio is more than one.