Crate spreet

Source

Re-exports§

pub use resvg;

Structs§

Sprite
A single icon within a spritesheet.
SpriteDescription
A description of a sprite image within a spritesheet. Used for the JSON output required by a Mapbox Style Specification index file.
Spritesheet
SpritesheetBuilder
Builder pattern for Spritesheet: construct a Spritesheet object using calls to a builder helper.

Enums§

SpreetError
Errors encountered during execution.

Functions§

get_svg_input_paths
Returns a vector of file paths matching all SVGs within the given directory.
load_svg
Load an SVG image from a file path.
sprite_name
Returns the name (unique id within a spritesheet) taken from a file.

Type Aliases§

SpreetResult