How can i get the path points of the uploaded svg file?

423 Views Asked by At

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.

0

There are 0 best solutions below