Open maria-korosteleva opened 1 year ago
I'm trying to save my list of paths to svg using 'cm' as units. I call disvg with viewport and baseunit parameters set (but not dimentions). The baseunit value is ignored and svg is created in px instead of cm.
viewport
baseunit
dimentions
It seems like the bug is in this expression, which needs to include baseunit parameter into the dimensions definition: https://github.com/mathandy/svgpathtools/blob/fcb648b9bb9591d925876d3b51649fa175b40524/svgpathtools/paths2svg.py#L266
I'm trying to save my list of paths to svg using 'cm' as units. I call disvg with
viewport
andbaseunit
parameters set (but notdimentions
). Thebaseunit
value is ignored and svg is created in px instead of cm.It seems like the bug is in this expression, which needs to include
baseunit
parameter into the dimensions definition: https://github.com/mathandy/svgpathtools/blob/fcb648b9bb9591d925876d3b51649fa175b40524/svgpathtools/paths2svg.py#L266