Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/coastalwhite/wasmsvggraphics
A Rust library for rendering SVG Graphics with WASM
https://github.com/coastalwhite/wasmsvggraphics
dom rust-library shapes svg wasm
Last synced: 3 months ago
JSON representation
A Rust library for rendering SVG Graphics with WASM
- Host: GitHub
- URL: https://github.com/coastalwhite/wasmsvggraphics
- Owner: coastalwhite
- License: mit
- Created: 2020-01-23T13:43:14.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-12T15:59:18.000Z (about 3 years ago)
- Last Synced: 2024-10-14T03:04:58.581Z (4 months ago)
- Topics: dom, rust-library, shapes, svg, wasm
- Language: Rust
- Size: 157 KB
- Stars: 48
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 _\_ tag
- Automatically detect if two shapes are the same, so only a single SVG _\_ 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](https://github.com/coastalwhite/WasmSVGGraphics)# 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](https://crates.io/crates/wasm-bindgen-test) crate. These tests can be found in the github under _/tests/web.rs_ and can be executed with [wasm_pack](https://github.com/rustwasm/wasm-pack) using the command `wasm-pack test --headless --firefox --chrome --safari`