Skip to content

A Rust library for rendering SVG Graphics with WASM

License

Notifications You must be signed in to change notification settings

coastalwhite/WasmSVGGraphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WasmSVGGraphics

A Rust library for rendering SVG Graphics with WASM

This crate provides a fast and effective way to interact with SVG's using WebAssembly. It is able to:

  • Declare shapes and styles to use for these shapes
  • Render these shapes to the DOM using the SVG <def> tag
  • Automatically detect if two shapes are the same, so only a single SVG <def> will get added to the DOM
  • Declare named items/containers for later adjustments, such as hiding, reshowing and repositioning

Note

Version 1.0.1 is tested to be stable, and can be used in development.

This crate is still under development, but most API calls for 1.0.0 are complete. If any bugs are found please submit a issue or a pull request at: GitHub

Further notice

The -dev versions are purely for testing and should not serve as production or development versions.

Testing

When working on this crate, some testing was done of the documentation using the wasm_bindgen_test crate. These tests can be found in the github under /tests/web.rs and can be executed with wasm_pack using the command wasm-pack test --headless --firefox --chrome --safari

About

A Rust library for rendering SVG Graphics with WASM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages