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 /dist/svg.js | |
parent | a2f2323f3d03a0c79232647f9716bb9d5d4c9d54 (diff) | |
download | svg.js-f301d239c399ee4ee9c5656c5565ee2208294b14.tar.gz svg.js-f301d239c399ee4ee9c5656c5565ee2208294b14.zip |
Fix in path
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/dist/svg.js b/dist/svg.js index 54a2346..c810fa0 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -1,9 +1,9 @@ -/* svg.js v0.1-23-g1831089 - svg container element group arrange defs clip gradient doc shape rect circle ellipse path image text sugar - svgjs.com/license */ +/* svg.js v0.1-25-ga2f2323 - svg container element group arrange defs clip gradient doc shape rect circle ellipse path image text sugar - svgjs.com/license */ (function() { this.SVG = { - ns: 'http://www.w3.org/2000/svg', - xlink: 'http://www.w3.org/1999/xlink', + ns: 'http://www.w3.org/2000/svg', + xlink: 'http://www.w3.org/1999/xlink', create: function(e) { return document.createElementNS(this.ns, e); @@ -13,6 +13,7 @@ for (var k in m) o.prototype[k] = m[k]; } + }; SVG.Container = { @@ -623,6 +624,11 @@ // 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 + ')'); } }); |