I have a string of numbers when i do svg.getAttribute("d") in the console:
"-0.05990783410138251,0.13594470046082952,-0.06912442396313362,0.14976958525345618,-0.07603686635944701,0.15668202764976957,-0.08755760368663595,0.16589861751152069,-0.09677419354838718,0.16820276497695852,-0.10599078341013829,0.16820276497695852,-0.12211981566820279,0.16820276497695852,-0.13594470046082957,0.16820276497695852,-0.14055299539170513,0.16820276497695852,-0.14516129032258068,0.16589861751152069,-0.1474654377880184"
I want this to be converted to a float so i did parseFloat(svg.getAttribute("d")) but all i get is the first number back:
-0.05990783410138251
How can i get all the numbers?
Thanks