actually return svgwrite.Drawing if requested (#102)
no use having the option if the wsvg and paths2Drawing entry points do not return `dwg` back from disvgpull/114/head
parent
90f8f76185
commit
5ae88df6d5
|
@ -414,7 +414,7 @@ def wsvg(paths=None, colors=None,
|
||||||
attributes=None, svg_attributes=None, svgwrite_debug=False, paths2Drawing=False):
|
attributes=None, svg_attributes=None, svgwrite_debug=False, paths2Drawing=False):
|
||||||
"""Convenience function; identical to disvg() except that
|
"""Convenience function; identical to disvg() except that
|
||||||
openinbrowser=False by default. See disvg() docstring for more info."""
|
openinbrowser=False by default. See disvg() docstring for more info."""
|
||||||
disvg(paths, colors=colors, filename=filename,
|
return disvg(paths, colors=colors, filename=filename,
|
||||||
stroke_widths=stroke_widths, nodes=nodes,
|
stroke_widths=stroke_widths, nodes=nodes,
|
||||||
node_colors=node_colors, node_radii=node_radii,
|
node_colors=node_colors, node_radii=node_radii,
|
||||||
openinbrowser=openinbrowser, timestamp=timestamp,
|
openinbrowser=openinbrowser, timestamp=timestamp,
|
||||||
|
@ -433,7 +433,7 @@ def paths2Drawing(paths=None, colors=None,
|
||||||
attributes=None, svg_attributes=None, svgwrite_debug=False, paths2Drawing=True):
|
attributes=None, svg_attributes=None, svgwrite_debug=False, paths2Drawing=True):
|
||||||
"""Convenience function; identical to disvg() except that
|
"""Convenience function; identical to disvg() except that
|
||||||
paths2Drawing=True by default. See disvg() docstring for more info."""
|
paths2Drawing=True by default. See disvg() docstring for more info."""
|
||||||
disvg(paths, colors=colors, filename=filename,
|
return disvg(paths, colors=colors, filename=filename,
|
||||||
stroke_widths=stroke_widths, nodes=nodes,
|
stroke_widths=stroke_widths, nodes=nodes,
|
||||||
node_colors=node_colors, node_radii=node_radii,
|
node_colors=node_colors, node_radii=node_radii,
|
||||||
openinbrowser=openinbrowser, timestamp=timestamp,
|
openinbrowser=openinbrowser, timestamp=timestamp,
|
||||||
|
|
Loading…
Reference in New Issue