Giter VIP home page Giter VIP logo

wasmsvggraphics's Introduction

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

Changelog

1.0.3

  • Small bug fixes

1.0.2

  • Added support for svg_definitions 0.3.0, which introduces a feature to parse files and pure strings into svg elements.
  • Added new_from_svg, which lets you create a svg from SVGElem.

1.0.1

  • Added support for svg_definitions 0.2.0, which introduces more svg elements and attributes.

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

wasmsvggraphics's People

Contributors

coastalwhite avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.