parent
f72987d69b
commit
88185419f5
|
@ -278,8 +278,8 @@ def disvg(paths=None, colors=None,
|
||||||
|
|
||||||
# Create an SVG file
|
# Create an SVG file
|
||||||
if svg_attributes:
|
if svg_attributes:
|
||||||
szx = svg_attributes.get("height", "100%")
|
szx = svg_attributes.get("width", "100%")
|
||||||
szy = svg_attributes.get("width", "100%")
|
szy = svg_attributes.get("height", "100%")
|
||||||
dwg = Drawing(filename=filename, size=(szx, szy), **svg_attributes)
|
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