summaryrefslogtreecommitdiffstats
path: root/src/transform.js
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-09-15 23:22:03 +0200
committerUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2015-09-15 23:22:03 +0200
commit30b433264fd4ed51d7a2db56c6f291652b9ca01a (patch)
tree3e2941b476aa75f7debc52ffbc3e260fefbd3fec /src/transform.js
parent4ebc6aa1b03e83d3c256399715e453f14f5b0aec (diff)
downloadsvg.js-30b433264fd4ed51d7a2db56c6f291652b9ca01a.tar.gz
svg.js-30b433264fd4ed51d7a2db56c6f291652b9ca01a.zip
added transform to pattern and gradient (fix #383)
added skewX and skewY
Diffstat (limited to 'src/transform.js')
-rw-r--r--src/transform.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transform.js b/src/transform.js
index c1afd73..d4e450f 100644
--- a/src/transform.js
+++ b/src/transform.js
@@ -114,7 +114,7 @@ SVG.extend(SVG.Element, SVG.FX, {
}
}
- return this.attr('transform', matrix)
+ return this.attr(this instanceof SVG.Pattern ? 'patternTransform' : this instanceof SVG.Gradient ? 'gradientTransform' : 'transform', matrix)
}
})