I want to find the sum of the length of all paths for an svg paths. And I have the following( the paths are put in an array):
...
var totalPxl=0;
for (var i=0; i < this.pathArray.length; i++){
var totalPxl = this.pathArray[i].getTotalLength();
console.log(totalPxl);
}
This lists all the paths length individually, How can I add them up?
Any ideas would be appreciated