diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-10-10 17:16:12 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2015-10-10 17:16:12 +0200 |
commit | 412b37652b6695a6df4c214d7048275f2912dad7 (patch) | |
tree | 6a2feb84b212d3623a72798988f1bee19946b2c7 /src/attr.js | |
parent | 2fbeec1225b5431e8c7779eee1396c86e890ab00 (diff) | |
download | svg.js-412b37652b6695a6df4c214d7048275f2912dad7.tar.gz svg.js-412b37652b6695a6df4c214d7048275f2912dad7.zip |
fixes pattern animation (#385)
Diffstat (limited to 'src/attr.js')
-rw-r--r-- | src/attr.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/attr.js b/src/attr.js index 9340981..2d9e8f9 100644 --- a/src/attr.js +++ b/src/attr.js @@ -1,6 +1,13 @@ SVG.extend(SVG.Element, { // Set svg element attribute attr: function(a, v, n) { + // ensure right tranform attribute + if (a == 'transform') + if(this instanceof SVG.Pattern) + a = 'patternTransform' + else if(this instanceof SVG.Gradient) + a = 'gradientTransform' + // act as full getter if (a == null) { // get an object of attributes |