This is very cool. I've been wanting an alternative for Raphael in projects that don't require old IE support because of some compromises Raphael does in order to support VML.
I am a bit worried that I can't find a way of changing multiple elements at once, in d3 for example I'd do...
d3.selectAll("rect").attr("fill", "red");
In Raphael I'd do... var set = paper.set(//insert rects here);
set.attr({"fill": "red});
But in Bonsai I'd do... var set = [//insert rects here];
set.forEach(function(el){
el.fill("red");
})
So it doesn't abstract the iteration for you.