diff options
Diffstat (limited to 'src/wrap.js')
-rw-r--r-- | src/wrap.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/wrap.js b/src/wrap.js index 9fa10a2..1caaaad 100644 --- a/src/wrap.js +++ b/src/wrap.js @@ -11,12 +11,13 @@ SVG.Wrap = function(element) { SVG.Wrap.prototype = new SVG.Shape() SVG.extend(SVG.Wrap, { - // Move wrapper around - move: function(x, y) { - return this.transform({ - x: x - , y: y - }) + // Move over x-axis + x: function(x) { + return this.transform('x', x) + } + // Move over y-axis +, y: function(y) { + return this.transform('y', y) } // Set the actual size in pixels , size: function(width, height) { |