From 158fe9e5a415fe9fe89871a71254efef503a8b02 Mon Sep 17 00:00:00 2001 From: Rémi Tétreault Date: Tue, 1 Nov 2016 17:23:06 -0400 Subject: 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. --- dist/svg.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'dist/svg.js') 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 +* @copyright Wout Fierens * @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) })] -- cgit v1.2.3