diff options
author | wout <wout@impinc.co.uk> | 2012-12-19 16:45:31 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-19 16:45:31 +0100 |
commit | b398d7bb450098fe5f1ed296e0b1a19876760ce0 (patch) | |
tree | 870310ada1345444e83b78d075847df3ffb0e9e8 /src/sugar.js | |
parent | dfa324f1cb9c562a198ad2f9909bbb8d44807936 (diff) | |
download | svg.js-b398d7bb450098fe5f1ed296e0b1a19876760ce0.tar.gz svg.js-b398d7bb450098fe5f1ed296e0b1a19876760ce0.zip |
Made absolute transformations default
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/sugar.js b/src/sugar.js index dda1aa3..18f422e 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -24,9 +24,6 @@ SVG.extend(SVG.Shape, { if (s[a[i]] != null) this.attr('stroke-' + a[i], s[a[i]]); - //-D if (this.attrs['fill-opacity'] == null) - //-D this.fill({ opacity: 0 }); - return this; } @@ -42,7 +39,7 @@ SVG.extend(SVG.Element, { if (o.x == null) o.x = b.cx; if (o.y == null) o.y = b.cy; - return this.transform('rotate(' + (o.deg || 0) + ' ' + o.x + ' ' + o.y + ')', o.absolute); + return this.transform('rotate(' + (o.deg || 0) + ' ' + o.x + ' ' + o.y + ')', o.relative); } }); @@ -52,7 +49,7 @@ SVG.extend(SVG.G, { // move using translate move: function(x, y) { - return this.transform('translate(' + x + ' ' + y + ')', true); + return this.transform('translate(' + x + ' ' + y + ')'); } }); |