I am looking for a function that can convert something like:
var points="270,328 270,376 342,376 342,368 358,368 358,320 314,320 298,336 278,336"
into the SVG format for paths, I have seen this question / answer, but I get an error :Uncaught TypeError: Cannot read property 'ownerSVGElement' of undefined. This is because I am putting my var points into that function, which is not designed for that, I think it needs the full xml or something.
Any suggestions are great, especially to force illustrator to export paths instead of polygons!
Thanks!