summaryrefslogtreecommitdiffstats
path: root/dist/svg.js
diff options
context:
space:
mode:
authorwout <wout@impinc.co.uk>2014-02-03 21:44:34 +0100
committerwout <wout@impinc.co.uk>2014-02-03 21:44:34 +0100
commit8dcb37d3406a85ef639e31b256823cf24fd7b7c6 (patch)
tree3c926ea927e63c7b4e4eb1dbd5befd9f06fa8e54 /dist/svg.js
parent78bbbfebcf6a2b2e17e46f395cf665c932957f36 (diff)
downloadsvg.js-8dcb37d3406a85ef639e31b256823cf24fd7b7c6.tar.gz
svg.js-8dcb37d3406a85ef639e31b256823cf24fd7b7c6.zip
Added `length()`method to path
Diffstat (limited to 'dist/svg.js')
-rw-r--r--dist/svg.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/dist/svg.js b/dist/svg.js
index 4a4f9db..0ae4acd 100644
--- a/dist/svg.js
+++ b/dist/svg.js
@@ -1,4 +1,4 @@
-/* svg.js v1.0rc3 - svg inventor regex default color array pointarray patharray number viewbox bbox rbox element parent container fx relative event defs group arrange mask clip gradient doc shape use rect ellipse line poly path image text textpath nested hyperlink sugar set data memory loader - svgjs.com/license */
+/* svg.js v1.0rc3-2-g78bbbfe - svg inventor regex default color array pointarray patharray number viewbox bbox rbox element parent container fx relative event defs group arrange mask clip gradient doc shape use rect ellipse line poly path image text textpath nested hyperlink sugar set data memory loader - svgjs.com/license */
;(function() {
this.SVG = function(element) {
@@ -2910,6 +2910,10 @@
, 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