Merge pull request #18 from derVedro/patch-5
fixed ignored height and width arguments (specified using svg_attributes argument in disvg/wsvg)pull/20/merge
commit
977914528c
|
@ -278,7 +278,9 @@ def disvg(paths=None, colors=None,
|
||||||
|
|
||||||
# Create an SVG file
|
# Create an SVG file
|
||||||
if svg_attributes:
|
if svg_attributes:
|
||||||
dwg = Drawing(filename=filename, **svg_attributes)
|
szx = svg_attributes.get("width", szx)
|
||||||
|
szy = svg_attributes.get("height", szy)
|
||||||
|
dwg = Drawing(filename=filename, size=(szx, szy), **svg_attributes)
|
||||||
else:
|
else:
|
||||||
dwg = Drawing(filename=filename, size=(szx, szy), viewBox=viewbox)
|
dwg = Drawing(filename=filename, size=(szx, szy), viewBox=viewbox)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue