summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorRémi Tétreault <tetreault.remi@gmail.com>2016-11-02 23:56:03 -0400
committerRémi Tétreault <tetreault.remi@gmail.com>2016-11-08 02:00:33 -0500
commite3a9343891a11118e93e1a34c5ea49d65850fb6d (patch)
tree17479d28c4d0d09c68daf01fb5cd1c9f473c754e /dist/svg.js
parent8b24eb02ded49b77f04cb7b5214c224569fc841b (diff)
downloadsvg.js-e3a9343891a11118e93e1a34c5ea49d65850fb6d.tar.gz
svg.js-e3a9343891a11118e93e1a34c5ea49d65850fb6d.zip
Fix a bug with the animation of a scale transform
Fix the bug where animating a scale transform also caused a translation when there was already a transform in place.
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 764599e..78f0fb8 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -6,7 +6,7 @@
* @copyright Wout Fierens <wout@mick-wout.com.com>
* @license MIT
*
-* BUILT: Thu Nov 03 2016 18:30:19 GMT-0400 (EDT)
+* BUILT: Tue Nov 08 2016 01:59:42 GMT-0500 (EST)
*/;
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
@@ -2899,6 +2899,12 @@ SVG.Transformation = SVG.invent({
o[this.arguments[i]] = typeof this[this.arguments[i]] == 'undefined' ? 0 : o[this.arguments[i]]
}
+ // The method SVG.Matrix.extract which was used before calling this
+ // method to obtain a value for the parameter o doesn't return a cx and
+ // a cy so we use the ones that were provided to this object at its creation
+ o.cx = this.cx
+ o.cy = this.cy
+
this._undo = new SVG[capitalize(this.method)](o, true).at(1)
return this