aboutsummaryrefslogtreecommitdiffstats
path: root/src/path.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2013-01-01 21:39:25 +0100
committerwout <wout@impinc.co.uk>2013-01-01 21:39:25 +0100
commit88987d60c456f1e686edd226f4ccb45e35142cd7 (patch)
tree719bd1c6ea1e18bae81ea9a8083742184eb422e9 /src/path.js
parent5e7c26e9423f3c543e04bc9a11656125ec7bf8ca (diff)
downloadsvg.js-88987d60c456f1e686edd226f4ccb45e35142cd7.tar.gz
svg.js-88987d60c456f1e686edd226f4ccb45e35142cd7.zip
Replaced clip() in favor of mask()
Some browsers had issues with clipping, masking was a better option.
Diffstat (limited to 'src/path.js')
-rw-r--r--src/path.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/path.js b/src/path.js
index 5b71e50..6a6ee49 100644
--- a/src/path.js
+++ b/src/path.js
@@ -9,14 +9,14 @@ SVG.Path.prototype = new SVG.Shape();
// Add path-specific functions
SVG.extend(SVG.Path, {
+ // move using transform
+ move: function(x, y) {
+ this.transform({ x: x, y: y });
+ },
+
// set path data
plot: function(d) {
return this.attr('d', d || 'M0,0');
- },
-
- // move path using translate, path's don't take x and y
- move: function(x, y) {
- return this.transform({ x: x, y: y });
}
}); \ No newline at end of file