From 6f347c98b3690dceacf5c9379a35ba0f10f2d8d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 8 May 2013 20:29:37 -0700 Subject: [PATCH] Fix formatting. --- src/svg/SVGExport.js | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/svg/SVGExport.js b/src/svg/SVGExport.js index 8390ca1c..96fbd9b9 100644 --- a/src/svg/SVGExport.js +++ b/src/svg/SVGExport.js @@ -347,26 +347,26 @@ new function() { origin = color.getOrigin().transform(matrix), destination = color.getDestination().transform(matrix), attrs; - if (radial) { - attrs = { - cx: origin.x, - cy: origin.y, - r: origin.getDistance(destination) - }; - var highlight = color.getHighlight(); - if (highlight) { - highlight = highlight.transform(matrix); - attrs.fx = highlight.x; - attrs.fy = highlight.y; - } - } else { - attrs = { - x1: origin.x, - y1: origin.y, - x2: destination.x, - y2: destination.y - }; + if (radial) { + attrs = { + cx: origin.x, + cy: origin.y, + r: origin.getDistance(destination) + }; + var highlight = color.getHighlight(); + if (highlight) { + highlight = highlight.transform(matrix); + attrs.fx = highlight.x; + attrs.fy = highlight.y; } + } else { + attrs = { + x1: origin.x, + y1: origin.y, + x2: destination.x, + y2: destination.y + }; + } attrs.gradientUnits = 'userSpaceOnUse'; gradientNode = createElement( (radial ? 'radial' : 'linear') + 'Gradient', attrs);