diff options
author | wout <wout@impinc.co.uk> | 2012-12-26 12:48:46 +0100 |
---|---|---|
committer | wout <wout@impinc.co.uk> | 2012-12-26 12:48:46 +0100 |
commit | f301d239c399ee4ee9c5656c5565ee2208294b14 (patch) | |
tree | a6e8e9520ab7693258034e6c692208ae41ca418a /src/path.js | |
parent | a2f2323f3d03a0c79232647f9716bb9d5d4c9d54 (diff) | |
download | svg.js-f301d239c399ee4ee9c5656c5565ee2208294b14.tar.gz svg.js-f301d239c399ee4ee9c5656c5565ee2208294b14.zip |
Fix in path
Diffstat (limited to 'src/path.js')
-rw-r--r-- | src/path.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/path.js b/src/path.js index 5c8ca46..4faf174 100644 --- a/src/path.js +++ b/src/path.js @@ -12,6 +12,11 @@ SVG.extend(SVG.Path, { // set path data plot: function(d) { return this.attr('d', d); + }, + + // move path using translate + move: function(x, y) { + return this.transform('translate(' + x + ',' + y + ')'); } });
\ No newline at end of file |