NaN on path value
myalban opened this issue · comments
Bug
reports.svg with data
Path M9 21h6m-6 0v-5m0 5H3.6a.6.6 0 01-.6-.6v-3.8a.6.6 0 01.6-.6H9m6 5V9m0 12h5.4a.6.6 0 00.6-.6V3.6a.6.6 0 00-.6-.6h-4.8a.6.6 0 00-.6.6V9m0 0H9.6a.6.6 0 00-.6.6V16
become
reportsout.svg with data
M 9.75 20.25 L 20.4 20.25 A 0.75 0.75 0 0 1 20.4 21.75 L 3.6 21.75 A 0.75 0.75 0 0 1 3.6 20.25 L 8.25 20.25 L 8.25 16 A 0.75 0.75 0 0 1 9.75 16 L 9.75 20.25 Z M 15 21 m -0.75 0 a 0.75 0.75 0 0 0 1.5 0 a 0.75 0.75 0 0 0 -1.5 0 z M 4.2 NaN L NaN NaN L 4.2 NaN Z M NaN NaN L NaN NaN L NaN NaN L 15 NaN L NaN NaN L NaN NaN L NaN NaN L NaN NaN L NaN NaN L NaN NaN L NaN NaN L NaN NaN L NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN A 0.75 0.75 0 0 0 NaN NaN M NaN 8.25 L NaN 8.25 A 0.75 0.75 0 0 0 NaN 9.75 L NaN 9.75 A 0.75 0.75 0 0 1 NaN 8.25 M 15 NaN A 0.75 0.75 0 0 1 15 NaN
after conversion.
Why there is NaN ?
Best regards
Steps to reproduce the behaviour:
- Put the file reports.svg on a folder and do outliner reports.svg reportsout.svg --autosize
- The generated file contain NaN inside path data
Expected behavior:
A clear and concise description of what you expected to happen.
Additional info
Environment:
- OS: [Mac, Windows, Unix] Mac
- Node version [node -v] node 16 & 17
Add any other context about the problem here.
If applicable, add screenshots to help explain your problem.