diff options
Diffstat (limited to 'src/sugar.js')
-rw-r--r-- | src/sugar.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/sugar.js b/src/sugar.js index bd8454d..10a8716 100644 --- a/src/sugar.js +++ b/src/sugar.js @@ -41,6 +41,14 @@ SVG.extend(SVG.Element, { cx: x == null ? b.cx : x, cy: y == null ? b.cx : y }); + }, + + // skew + skew: function(x, y) { + return this.transform({ + skewX: x || 0, + skewY: y || 0 + }); } }); |