79583169

Date: 2025-04-20 08:27:32
Score: 1
Natty:
Report link

It turned out that you have to pass the "path"-element not the "svg"-element:

const svgXmlShape = this.cache.xml.get(xmlKey) as XMLDocument;
[...svgXmlShape.documentElement.querySelectorAll("svg path")]
      .map((svgPath) => {
        const vertices = this.Svg.pathToVertices(svgPath, 1)...
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: NeoGER89