Capítulo 234 de 411
Static helper returning an SVG element's total stroke length (path/rect/circle/ellipse/line/polyline/polygon).
function getPercentage(element) {
return Math.floor(
DrawSVGPlugin.getPosition(element)[1] / (DrawSVGPlugin.getLength(element) / 100)
);
}
getLength() with getPosition() to compute how much of the stroke is currently drawn, as a percentage.