From 21be7b26b443e0144719e87aafe424634fdb0bdc Mon Sep 17 00:00:00 2001 From: Ulrich-Matthias Schäfer Date: Tue, 29 Dec 2015 13:16:05 +0100 Subject: `matrixify()` will not apply the calculated matrix to the node anymore --- src/transform.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/transform.js') diff --git a/src/transform.js b/src/transform.js index db2c5c3..0e7a5a0 100644 --- a/src/transform.js +++ b/src/transform.js @@ -123,7 +123,7 @@ SVG.extend(SVG.Element, { untransform: function() { return this.attr('transform', null) }, - // merge the whole transformation chain into one matrix + // merge the whole transformation chain into one matrix and returns it matrixify: function() { var matrix = (this.attr('transform') || '') @@ -140,8 +140,6 @@ SVG.extend(SVG.Element, { return matrix[transform[0]].apply(matrix, transform[1]) }, new SVG.Matrix()) - // apply calculated matrix to element - this.attr('transform', matrix) return matrix }, -- cgit v1.2.3