Is it possible to add a feature that shrinks the canvas so that it's just big enough to hold the objects in it?
I was thinking of a workflow of something like this:
d = draw.Drawing(200, 100, origin='center', displayInline=False)
d.append(some stuff)
d.append(some more stuff)
d.shrink_to_fit()
svg_data = d.to_svg()
The ability to initialize the drawing's width and height to None and have the canvas size be autocalculated on output would be cool:
d = draw.Drawing(None, None, origin='center', displayInline=False)
Is it possible to add a feature that shrinks the canvas so that it's just big enough to hold the objects in it?
I was thinking of a workflow of something like this:
The ability to initialize the drawing's width and height to None and have the canvas size be autocalculated on output would be cool:
d = draw.Drawing(None, None, origin='center', displayInline=False)