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 disvg
pull/114/head
Matthew Carruth 2020-06-19 19:39:38 -07:00 committed by GitHub
parent 90f8f76185
commit 5ae88df6d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 16 deletions

View File

@ -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,