summaryrefslogtreecommitdiffstats
path: root/src/transform.js
diff options
context:
space:
mode:
authorRémi Tétreault <tetreault.remi@gmail.com>2016-11-09 21:32:48 -0500
committerRémi Tétreault <tetreault.remi@gmail.com>2016-11-09 21:32:48 -0500
commit1a32907588436496d70ffd4b19d55e1325cdf5ba (patch)
tree47f23aacc47d8825298fd1f9ff9ae7381166322a /src/transform.js
parente3a9343891a11118e93e1a34c5ea49d65850fb6d (diff)
downloadsvg.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.js6
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