diff options
author | wout <wout@impinc.co.uk> | 2013-06-25 15:27:40 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2013-06-25 15:27:40 +0100 |
commit | 46909dc19338e649702b6ea852120af5132bc086 (patch) | |
tree | ec1c1bb99dbdb231e68519ce30fbc642d6c0882d /dist/svg.js | |
parent | b1669697a9c05401673e87e84b6713af15be9e05 (diff) | |
download | svg.js-46909dc19338e649702b6ea852120af5132bc086.tar.gz svg.js-46909dc19338e649702b6ea852120af5132bc086.zip |
Fix in rotation transform0.21
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 4 |
1 files changed, 2 insertions, 2 deletions
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) |