summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sugar.js11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/sugar.js b/src/sugar.js
index d063207..9630b3d 100644
--- a/src/sugar.js
+++ b/src/sugar.js
@@ -50,8 +50,15 @@ SVG.extend(SVG.Element, SVG.FX, {
// Scale
, scale: function(x, y) {
return this.transform({
- scaleX: x,
- scaleY: y == null ? x : y
+ scaleX: x
+ , scaleY: y == null ? x : y
+ })
+ }
+ // Translate
+, translate: function(x, y) {
+ return this.transform({
+ x: x
+ , y: y
})
}
// Matrix