Pure SVG Javascript Library

I am looking for a library that speeds up writing HTML5 SVG and manipulates objects. I want something that can take full advantage of SVG.

I used Raphael, but it is annoying that it (severely) limits functionality compared to VML. I don't care about cross-browser compatibility, I just want the full SVG abstraction to be javascript. I don't care about converting to flash, I'm not interested in converting to 2d Canvas, ... you get an image!

What are the options? Or should I just get used to raw SVG declarations and manipulation?

thanks

+4
source share
2 answers

If your graphic somehow generates data, I would give D3.js a try.

Even if the weight of the data of your needs is low, I think it can be very useful to give him a look.

On the plus side is that it generates a completely standard svg style with standard css, so you can easily check what happens. You can even use it to generate svg, and then copy / paste your SVG into another project without D3.js.

Another plus is the support for transitions, this is very good imho.

link

+2
source

There appeared a new compact library called svg.js , which offers easier svg manipulation and which has no outdated VML code / restrictions, for example Raphael has.

+4
source

All Articles