I trying to use snapsvg to extract the path and the points of the path from a svg file.
Snap.load("../svg/music.svg", function(loadedFragment : Snap.Fragment){
let svg = loadedFragment.select('svg');
let paths = svg.selectAll('path');
paths.forEach(function(element : Snap.Element, idx : number){
console.log(element)
}) });
I can't find anything usefull in snapsvg API doc.