summaryrefslogtreecommitdiffstats
path: root/src/matrix.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/matrix.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/matrix.js')
-rw-r--r--src/matrix.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/matrix.js b/src/matrix.js
index c715a8c..0773910 100644
--- a/src/matrix.js
+++ b/src/matrix.js
@@ -129,6 +129,14 @@ SVG.Matrix = SVG.invent({
, skew: function(x, y, cx, cy) {
return this.around(cx, cy, this.native().skewX(x || 0).skewY(y || 0))
}
+ // SkewX
+ , skewX: function(x, cx, cy) {
+ return this.around(cx, cy, this.native().skewX(x || 0))
+ }
+ // SkewY
+ , skewY: function(y, cx, cy) {
+ return this.around(cx, cy, this.native().skewY(y || 0))
+ }
// Transform around a center point
, around: function(cx, cy, matrix) {
return this