aboutsummaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorRémi Tétreault <tetreault.remi@gmail.com>2016-11-01 17:23:06 -0400
committerRémi Tétreault <tetreault.remi@gmail.com>2016-11-01 17:23:06 -0400
commit158fe9e5a415fe9fe89871a71254efef503a8b02 (patch)
tree7ec6bdea2b26785be0adc5f709009efaa111fe5c /dist/svg.js
parent0e4ccbcecb421fd5cae5de5437ae8a5e488d7810 (diff)
downloadsvg.js-158fe9e5a415fe9fe89871a71254efef503a8b02.tar.gz
svg.js-158fe9e5a415fe9fe89871a71254efef503a8b02.zip
Make matrixify work with transformation chain separated by commas
According to the SVG spec, transformation chain can be separated by whitespace and/or commas. The method matrixify was not working with transformation chain separated by commas. This commit should fix that bug.
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dist/svg.js b/dist/svg.js
index f3d3bc6..dd5cb64 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,12 +1,12 @@
/*!
* svg.js - A lightweight library for manipulating and animating SVG.
-* @version 2.3.5
+* @version 2.3.6
* http://www.svgjs.com
*
-* @copyright Wout Fierens <wout@woutfierens.com>
+* @copyright Wout Fierens <wout@mick-wout.com.com>
* @license MIT
*
-* BUILT: Fri Oct 21 2016 13:38:14 GMT-0200 (WGST)
+* BUILT: Tue Nov 01 2016 17:15:59 GMT-0400 (EDT)
*/;
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
@@ -2756,7 +2756,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) })]