Open bockoblur opened 4 years ago
On closer inspection of source code, I found what the error is:
should read:
geo.coordinates.debugId = (el.$ && el.$.id) ? `${el.$.id.value}` : fallback;
instead of
geo.coordinates.debugId = (el.$ && el.$.id) ? `#${el.$.id}` : fallback;
Note the added .value property of id object, which is the actual string containing the svg elements' id attribute.
Hi @Phrogz, Thank you for this nice lib! Do you think this issue could be solved any time soon? It seems to be a very easy fix :) Thank you!
Hi. I have svg file with path ids (like id="some_string")
and running your tool with -d option gives me the following output:
Note that path ids are #[object Object] instead of string ids. Bug? Or am I doing something wrong?