diff options
Diffstat (limited to 'src/transform.js')
-rw-r--r-- | src/transform.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transform.js b/src/transform.js index 7886c05..1635152 100644 --- a/src/transform.js +++ b/src/transform.js @@ -182,7 +182,7 @@ SVG.extend(SVG.Element, { var matrix = (this.attr('transform') || '') // split transformations - .split(/\)\s*/).slice(0,-1).map(function(str){ + .split(/\)\s*,?\s*/).slice(0,-1).map(function(str){ // generate key => value pairs var kv = str.trim().split('(') return [kv[0], kv[1].split(SVG.regex.matrixElements).map(function(str){ return parseFloat(str) })] @@ -266,9 +266,9 @@ SVG.Transformation = SVG.invent({ for(var i = 0, len = this.arguments.length; i < len; ++i){ o[this.arguments[i]] = typeof this[this.arguments[i]] == 'undefined' ? 0 : o[this.arguments[i]] } - + this._undo = new SVG[capitalize(this.method)](o, true).at(1) - + return this } |