From 46909dc19338e649702b6ea852120af5132bc086 Mon Sep 17 00:00:00 2001 From: wout Date: Tue, 25 Jun 2013 15:27:40 +0100 Subject: Fix in rotation transform --- dist/svg.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dist/svg.js') diff --git a/dist/svg.js b/dist/svg.js index bd5fefd..6dc6595 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,4 +1,4 @@ -/* svg.js v0.20-3-g65f915f - svg regex default color number viewbox bbox rbox element container fx event group arrange defs mask clip pattern gradient doc shape rect ellipse line poly path plotable image text nested sugar - svgjs.com/license */ +/* svg.js v0.20-4-gb166969 - svg regex default color number viewbox bbox rbox element container fx event group arrange defs mask clip pattern gradient doc shape rect ellipse line poly path plotable image text nested sugar - svgjs.com/license */ ;(function() { this.SVG = function(element) { @@ -720,7 +720,7 @@ /* add rotation */ if (o.rotation != 0) - transform.push('rotate(' + o.rotation + ',' + (o.cx || this.bbox().cx) + ',' + (o.cy || this.bbox().cy) + ')') + transform.push('rotate(' + o.rotation + ',' + (o.cx == null ? this.bbox().cx : o.cx) + ',' + (o.cy == null ? this.bbox().cy : o.cy) + ')') /* add scale */ if (o.scaleX != 1 || o.scaleY != 1) -- cgit v1.2.3