diff options
Diffstat (limited to 'src')
-rwxr-xr-x | src/path.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/path.js b/src/path.js index 4ce57f6..76ef1ba 100755 --- a/src/path.js +++ b/src/path.js @@ -37,6 +37,10 @@ SVG.Path = SVG.invent({ , height: function(height) { return height == null ? this.bbox().height : this.size(this.bbox().width, height) } + // Get path length + , length: function() { + return this.node.getTotalLength() + } } // Add parent method |