I'm using Raphaël for my SVG rendering needs. But I find the Path syntax a little low-level.
So does anyone know a nice wrapper/library for Javascript that allows something like this:
var pathStr = move (10, 10).draw (5, 5)
var path = paper.path(pathStr)
I strongly recommend d3.js.
Creating a path that represents an hexagon and moving it 10px in each direction is as simple as this:
It uses selectors that work closely to those found in jQuery.
Quoting the author:
It may not be 100% complete, but this looks sort of like what you're looking for:
https://github.com/DmitryBaranovskiy/raphael/blob/cuttingedge/plugins/raphael.path.methods.js