meerk40t / svgelements

SVG Parsing for Elements, Paths, and other SVG Objects.
MIT License
127 stars 28 forks source link

Cannot merge physical units matrix and default unit matrix. #185

Open tatarize opened 2 years ago

tatarize commented 2 years ago
<svg width="40mm" height="40mm" viewBox="-10 -10 120 120" xmlns="http://www.w3.org/2000/svg">
<g transform="rotate(-90) translate(-100 0)">
   <g style="cursor: pointer; user-select: none; transform: translate(-0.2mm, -1.6mm);">
      <g transform="translate(8.176098866310591 92.32958687475767)">
         <path transform="" d="M-15,2z" fill="black" stroke="none"/>
      </g>
    </g>
</g>
</svg>

Fails to parse because the combination of the mm and pure digit translations hit a value error in Length since adding these doesn't have a clear meaning without determining the value. See meerk40t/meerk40t#1004