├── .github ├── dependabot.yml └── workflows │ ├── ci.yml │ ├── create-draft-release.yml │ └── publish-release-to-crates-io.yml ├── .gitignore ├── CHANGELOG.md ├── Cargo.lock ├── Cargo.toml ├── Dockerfile ├── LICENCE ├── README.md ├── RELEASE.md ├── src ├── bin │ └── spreet │ │ ├── cli.rs │ │ └── main.rs ├── error.rs ├── fs.rs ├── lib.rs └── sprite │ ├── mod.rs │ └── serialize.rs └── tests ├── cli.rs ├── fixtures ├── output │ ├── default@1x.json │ ├── default@1x.png │ ├── default@2x.json │ ├── default@2x.png │ ├── minify@1x.json │ ├── minify@1x.png │ ├── minify_unique@1x.json │ ├── minify_unique@1x.png │ ├── pngs@2x.json │ ├── pngs@2x.png │ ├── recursive@1x.json │ ├── recursive@1x.png │ ├── sdf@2x.json │ ├── sdf@2x.png │ ├── spacing1@2x.png │ ├── spacing2@1x.json │ ├── spacing2@1x.png │ ├── spacing2@2x.json │ ├── spacing@1x.json │ ├── spacing@1x.png │ ├── spacing@2x.json │ ├── spacing@2x.png │ ├── spacing_unique@1x.json │ ├── spacing_unique@1x.png │ ├── stretchable@2x.json │ ├── stretchable@2x.png │ ├── unique@1x.json │ ├── unique@1x.png │ ├── unique@2x.json │ └── unique@2x.png ├── pngs │ ├── iceland_flag.png │ ├── iceland_flag.svg │ ├── sweden_flag.png │ └── sweden_flag.svg ├── stretchable │ ├── README.md │ ├── ae-national-3-affinity.svg │ ├── cn-nths-expy-2-affinity.svg │ ├── cn-nths-expy-2-inkscape-plain.svg │ ├── shield-illustrator-rotated-reversed.svg │ ├── shield-illustrator-rotated-translated.svg │ ├── shield-illustrator-rotated.svg │ ├── shield-illustrator.svg │ └── shield-rotated.svg └── svgs │ ├── another_bicycle.svg │ ├── bicycle.svg │ ├── circle.svg │ └── recursive │ └── bear.svg ├── fs.rs └── sprite.rs /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.github/workflows/create-draft-release.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/.github/workflows/create-draft-release.yml -------------------------------------------------------------------------------- /.github/workflows/publish-release-to-crates-io.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/.github/workflows/publish-release-to-crates-io.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /Cargo.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/Cargo.lock -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/Cargo.toml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENCE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/LICENCE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/README.md -------------------------------------------------------------------------------- /RELEASE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/RELEASE.md -------------------------------------------------------------------------------- /src/bin/spreet/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/src/bin/spreet/cli.rs -------------------------------------------------------------------------------- /src/bin/spreet/main.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/src/bin/spreet/main.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/fs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/src/fs.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/sprite/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/src/sprite/mod.rs -------------------------------------------------------------------------------- /src/sprite/serialize.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/src/sprite/serialize.rs -------------------------------------------------------------------------------- /tests/cli.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/cli.rs -------------------------------------------------------------------------------- /tests/fixtures/output/default@1x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/default@1x.json -------------------------------------------------------------------------------- /tests/fixtures/output/default@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/default@1x.png -------------------------------------------------------------------------------- /tests/fixtures/output/default@2x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/default@2x.json -------------------------------------------------------------------------------- /tests/fixtures/output/default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/default@2x.png -------------------------------------------------------------------------------- /tests/fixtures/output/minify@1x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/minify@1x.json -------------------------------------------------------------------------------- /tests/fixtures/output/minify@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/minify@1x.png -------------------------------------------------------------------------------- /tests/fixtures/output/minify_unique@1x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/minify_unique@1x.json -------------------------------------------------------------------------------- /tests/fixtures/output/minify_unique@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/minify_unique@1x.png -------------------------------------------------------------------------------- /tests/fixtures/output/pngs@2x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/pngs@2x.json -------------------------------------------------------------------------------- /tests/fixtures/output/pngs@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/pngs@2x.png -------------------------------------------------------------------------------- /tests/fixtures/output/recursive@1x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/recursive@1x.json -------------------------------------------------------------------------------- /tests/fixtures/output/recursive@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/recursive@1x.png -------------------------------------------------------------------------------- /tests/fixtures/output/sdf@2x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/sdf@2x.json -------------------------------------------------------------------------------- /tests/fixtures/output/sdf@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/sdf@2x.png -------------------------------------------------------------------------------- /tests/fixtures/output/spacing1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing1@2x.png -------------------------------------------------------------------------------- /tests/fixtures/output/spacing2@1x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing2@1x.json -------------------------------------------------------------------------------- /tests/fixtures/output/spacing2@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing2@1x.png -------------------------------------------------------------------------------- /tests/fixtures/output/spacing2@2x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing2@2x.json -------------------------------------------------------------------------------- /tests/fixtures/output/spacing@1x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing@1x.json -------------------------------------------------------------------------------- /tests/fixtures/output/spacing@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing@1x.png -------------------------------------------------------------------------------- /tests/fixtures/output/spacing@2x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing@2x.json -------------------------------------------------------------------------------- /tests/fixtures/output/spacing@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing@2x.png -------------------------------------------------------------------------------- /tests/fixtures/output/spacing_unique@1x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing_unique@1x.json -------------------------------------------------------------------------------- /tests/fixtures/output/spacing_unique@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/spacing_unique@1x.png -------------------------------------------------------------------------------- /tests/fixtures/output/stretchable@2x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/stretchable@2x.json -------------------------------------------------------------------------------- /tests/fixtures/output/stretchable@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/stretchable@2x.png -------------------------------------------------------------------------------- /tests/fixtures/output/unique@1x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/unique@1x.json -------------------------------------------------------------------------------- /tests/fixtures/output/unique@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/unique@1x.png -------------------------------------------------------------------------------- /tests/fixtures/output/unique@2x.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/unique@2x.json -------------------------------------------------------------------------------- /tests/fixtures/output/unique@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/output/unique@2x.png -------------------------------------------------------------------------------- /tests/fixtures/pngs/iceland_flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/pngs/iceland_flag.png -------------------------------------------------------------------------------- /tests/fixtures/pngs/iceland_flag.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/pngs/iceland_flag.svg -------------------------------------------------------------------------------- /tests/fixtures/pngs/sweden_flag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/pngs/sweden_flag.png -------------------------------------------------------------------------------- /tests/fixtures/pngs/sweden_flag.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/pngs/sweden_flag.svg -------------------------------------------------------------------------------- /tests/fixtures/stretchable/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/README.md -------------------------------------------------------------------------------- /tests/fixtures/stretchable/ae-national-3-affinity.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/ae-national-3-affinity.svg -------------------------------------------------------------------------------- /tests/fixtures/stretchable/cn-nths-expy-2-affinity.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/cn-nths-expy-2-affinity.svg -------------------------------------------------------------------------------- /tests/fixtures/stretchable/cn-nths-expy-2-inkscape-plain.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/cn-nths-expy-2-inkscape-plain.svg -------------------------------------------------------------------------------- /tests/fixtures/stretchable/shield-illustrator-rotated-reversed.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/shield-illustrator-rotated-reversed.svg -------------------------------------------------------------------------------- /tests/fixtures/stretchable/shield-illustrator-rotated-translated.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/shield-illustrator-rotated-translated.svg -------------------------------------------------------------------------------- /tests/fixtures/stretchable/shield-illustrator-rotated.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/shield-illustrator-rotated.svg -------------------------------------------------------------------------------- /tests/fixtures/stretchable/shield-illustrator.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/shield-illustrator.svg -------------------------------------------------------------------------------- /tests/fixtures/stretchable/shield-rotated.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/stretchable/shield-rotated.svg -------------------------------------------------------------------------------- /tests/fixtures/svgs/another_bicycle.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/svgs/another_bicycle.svg -------------------------------------------------------------------------------- /tests/fixtures/svgs/bicycle.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/svgs/bicycle.svg -------------------------------------------------------------------------------- /tests/fixtures/svgs/circle.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/svgs/circle.svg -------------------------------------------------------------------------------- /tests/fixtures/svgs/recursive/bear.svg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fixtures/svgs/recursive/bear.svg -------------------------------------------------------------------------------- /tests/fs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/fs.rs -------------------------------------------------------------------------------- /tests/sprite.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flother/spreet/HEAD/tests/sprite.rs --------------------------------------------------------------------------------