getTotalLength  
  The getTotalLength() method of the SVGPathElement interface returns the user agent's computed value for the total length of the path in user units.
The getTotalLength() method of the SVGPathElement interface returns the user agent's computed value for the total length of the path in user units.