diff options
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/dist/svg.js b/dist/svg.js index e1ae95d..52a3384 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -197,12 +197,12 @@ }, // transformations - transform: function(t, a) { + transform: function(t, r) { var n = [], s = this.attr('transform') || '', l = s.match(/([a-z]+\([^\)]+\))/g) || []; - if (a === true) { + if (r !== true) { var v = t.match(/^([A-Za-z\-]+)/)[1], r = new RegExp('^' + v); @@ -531,9 +531,6 @@ 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; } @@ -549,7 +546,7 @@ 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); } }); @@ -559,7 +556,7 @@ // move using translate move: function(x, y) { - return this.transform('translate(' + x + ' ' + y + ')', true); + return this.transform('translate(' + x + ' ' + y + ')'); } }); |