summaryrefslogtreecommitdiffstats
path: root/src/sugar.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar.js')
-rwxr-xr-xsrc/sugar.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sugar.js b/src/sugar.js
index 52f5697..cc01c00 100755
--- a/src/sugar.js
+++ b/src/sugar.js
@@ -34,8 +34,8 @@ SVG.extend(SVG.Element, SVG.FX, {
return this.transform({ rotation: d, cx: cx, cy: cy })
}
// Map skew to transform
-, skew: function(x, y) {
- return this.transform({ skewX: x, skewY: y })
+, skew: function(x, y, cx, cy) {
+ return this.transform({ skewX: x, skewY: y, cx: cx, cy: cy })
}
// Map scale to transform
, scale: function(x, y, cx, cy) {
@@ -47,6 +47,10 @@ SVG.extend(SVG.Element, SVG.FX, {
, translate: function(x, y) {
return this.transform({ x: x, y: y })
}
+ // Map flip to transform
+, flip: function(a, o) {
+ return this.transform({ flip: a, offset: o })
+ }
// Map matrix to transform
, matrix: function(m) {
return this.attr('transform', new SVG.Matrix(m))