Hello fellow Rustacians! Here is a crate with SVG Definitions. This was mostly created to serve as a backend crate for wasmsvggraphics, but feel free to use it!

I am open to pull requests so please contribute!

Example

Creating a group with a triangle

``` use svg_definitions::prelude::*;

let triangle = SVGElem::new(Tag::SVGPath) .set(Attr::StrokeWidth, 1.into()) .set(Attr::StrokeColor, RGB::new(0,0,0).into()) .set(Attr::FillColor, RGBT::Transparent.into()) .set(Attr::PathDefinition, PathString::new() .moveto((0.0, 0.0)) .lineto((10.0, 0.0)) .lineto((0.0, 10.0)) .lineto((0.0, 0.0)) .close_path() .into() );

let group = SVGElem::new(Tag::Group) .append(triangle); ```