Fix for bug #16

master
Dmitry Baranovskiy 2013-09-19 09:39:15 +10:00
parent d4182d9318
commit 38ce178bb1
1 changed files with 5 additions and 0 deletions

View File

@ -127,6 +127,10 @@ Savage.plugin(function (Savage, Element, Paper, glob) {
if (blur == null) {
blur = 4;
}
if (typeof blur == "string") {
color = blur;
blur = 4;
}
if (dx == null) {
dx = 0;
dy = 2;
@ -134,6 +138,7 @@ Savage.plugin(function (Savage, Element, Paper, glob) {
if (dy == null) {
dy = dx;
}
color = Savage.color(color);
return Savage.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>', {
color: color,
dx: dx,