summaryrefslogtreecommitdiffstats
path: root/src/transform.js
diff options
context:
space:
mode:
authorRay Glover <Ray@NAUSICA>2015-08-14 16:59:01 +0100
committerRay Glover <Ray@NAUSICA>2015-08-14 16:59:01 +0100
commit65f9900d5e98272a1c0c0d9ca922666603110804 (patch)
treee2224ccc1f00080a475ccbaee296327052c20a9d /src/transform.js
parent32b8e6c0ebab0409586fa91ab3b11918aa4bfc96 (diff)
downloadsvg.js-65f9900d5e98272a1c0c0d9ca922666603110804.tar.gz
svg.js-65f9900d5e98272a1c0c0d9ca922666603110804.zip
Make parsing a <transform-list> more robust in the face of IE11
which doesn't use commas (',') to delimit matrix elements. see also: http://www.w3.org/TR/SVG11/coords.html#SVGGlobalTransformAttribute
Diffstat (limited to 'src/transform.js')
-rw-r--r--src/transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transform.js b/src/transform.js
index 2023439..c1afd73 100644
--- a/src/transform.js
+++ b/src/transform.js
@@ -130,7 +130,7 @@ SVG.extend(SVG.Element, {
.split(/\)\s*/).slice(0,-1).map(function(str){
// generate key => value pairs
var kv = str.trim().split('(')
- return [kv[0], kv[1].split(',').map(function(str){ return parseFloat(str) })]
+ return [kv[0], kv[1].split(SVG.regex.matrixElements).map(function(str){ return parseFloat(str) })]
})
// calculate every transformation into one matrix
.reduce(function(matrix, transform){