Adds a drop shadow filter to the svg document.
Based on Raphael Blur Plugin
#Usage example:
Use raphael.dropshadow.js
el.dropShadow(2, 3, 3, 0.5); // dropShadow(size, offsetX, offsetY, opacity = 1)
Use raphael.dropshadow.js
set.dropShadow(2, 3, 3, 0.5);
Use raphael.dropshadow.filter.js
Code:
paper.addDropShadowFilter(2, 3, 3, 0.5);
...
el.node.setAttribute("class", "dropshadow");
CSS:
.dropshadow {
filter: url(#dropshadow);
}