From a79177e05b9a5739996ec2f4f44fde7a99b6c58f Mon Sep 17 00:00:00 2001 From: Andrea Bogazzi Date: Wed, 9 Dec 2015 08:16:27 +0100 Subject: [PATCH] Update shadow.class.js --- src/shadow.class.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/shadow.class.js b/src/shadow.class.js index 78ecc1e7..f6ab9ab0 100644 --- a/src/shadow.class.js +++ b/src/shadow.class.js @@ -113,13 +113,13 @@ toSVG: function(object) { var fBoxX = 40, fBoxY = 40, NUM_FRACTION_DIGITS = fabric.Object.NUM_FRACTION_DIGITS, offset = fabric.util.rotateVector({x: this.offsetX, y: this.offsetY}, - fabric.util.degreesToRadians(-object.angle)); + fabric.util.degreesToRadians(-object.angle)), BLUR_BOX = 20; if (object.width && object.height) { //http://www.w3.org/TR/SVG/filters.html#FilterEffectsRegion // we add some extra space to filter box to contain the blur ( 20 ) - fBoxX = toFixed((Math.abs(offset.x) + this.blur) / object.width, NUM_FRACTION_DIGITS) * 100 + 20; - fBoxY = toFixed((Math.abs(offset.y) + this.blur) / object.height, NUM_FRACTION_DIGITS) * 100 + 20; + fBoxX = toFixed((Math.abs(offset.x) + this.blur) / object.width, NUM_FRACTION_DIGITS) * 100 + BLUR_BOX; + fBoxY = toFixed((Math.abs(offset.y) + this.blur) / object.height, NUM_FRACTION_DIGITS) * 100 + BLUR_BOX; } return (