Crate bevy_svg_map

Source

Structs§

SvgStyle
Translater from SVG style (&str slice) to bevy The string slice is parsed into a HashMap. Lazy accession to its values. Chief struct to implement the user-provided strategy to associate components/materials given the style of the path.

Traits§

StyleStrategy
This trait is implemented by the user as the Strategy to add functionaly to the paths based on its properties (stored in SvgStyle).

Functions§

load_svg_map
For each of the paths in a SVG file, apply a StyleStrategy to translate them into entities with functionality added to them, dependent of the SVG properties of the path (stroke, fill…)