diff options
author | Rémi Tétreault <tetreault.remi@gmail.com> | 2016-11-09 21:32:48 -0500 |
---|---|---|
committer | Rémi Tétreault <tetreault.remi@gmail.com> | 2016-11-09 21:32:48 -0500 |
commit | 1a32907588436496d70ffd4b19d55e1325cdf5ba (patch) | |
tree | 47f23aacc47d8825298fd1f9ff9ae7381166322a /src/transform.js | |
parent | e3a9343891a11118e93e1a34c5ea49d65850fb6d (diff) | |
download | svg.js-1a32907588436496d70ffd4b19d55e1325cdf5ba.tar.gz svg.js-1a32907588436496d70ffd4b19d55e1325cdf5ba.zip |
Fix the bug where relative matrix transforms are not animated
Also, add the possibility to make uniform skew transform.
Diffstat (limited to 'src/transform.js')
-rw-r--r-- | src/transform.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transform.js b/src/transform.js index 7ab4d21..33f5019 100644 --- a/src/transform.js +++ b/src/transform.js @@ -58,13 +58,13 @@ SVG.extend(SVG.Element, { matrix = matrix.scale(o.scaleX, o.scaleY, o.cx, o.cy) // act on skew - } else if (o.skewX != null || o.skewY != null) { + } else if (o.skew != null || o.skewX != null || o.skewY != null) { // ensure centre point ensureCentre(o, target) // ensure skew values on both axes - o.skewX = o.skewX != null ? o.skewX : 0 - o.skewY = o.skewY != null ? o.skewY : 0 + o.skewX = o.skew != null ? o.skew : o.skewX != null ? o.skewX : 0 + o.skewY = o.skew != null ? o.skew : o.skewY != null ? o.skewY : 0 if (!relative) { // absolute; reset skew values |