- added support for virtual units in SVG parser; warning: it may require the support for units which is not implemented yet

This commit is contained in:
Marius Stanciu
2020-09-23 11:50:00 +03:00
parent c6a552d25a
commit 09aafe5601
5 changed files with 134 additions and 102 deletions

View File

@@ -429,7 +429,9 @@ class QRCode(AppTool):
h = svgparselength(svg_root.get('height'))[0] # TODO: No units support yet
units = self.app.defaults['units'] if units is None else units
res = self.app.defaults['geometry_circle_steps']
geos = getsvggeo(svg_root, object_type, units=units, res=res)
factor = svgparse_viewbox(svg_root)
geos = getsvggeo(svg_root, object_type, units=units, res=res, factor=factor)
if flip:
geos = [translate(scale(g, 1.0, -1.0, origin=(0, 0)), yoff=h) for g in geos]