3 ms·
When working with DOM elements (SVG elements are also part of the DOM) it get messy pretty quickly. Think of it as syntactic sugar, because you can always opt f
by duopixel 14y ago
When working with DOM elements (SVG elements are also part of the DOM) it get messy pretty quickly. Think of it as syntactic sugar, because you can always opt for using standard arrays instead of using Raphael sets...
var rects = [//insert rects here]
rects.forEach(function(rect){
rect.attr({fill: "red"});
})
- deleted 14y ago[deleted]