rich-iannone / DiagrammeRsvg

A utility package for providing SVG export to DiagrammeR graph diagrams
Other
29 stars 1 forks source link

export_svg crops node labels #6

Open alcooj opened 6 years ago

alcooj commented 6 years ago

Hi, Rich.

Thanks for creating this package.

Would it be possible to add an argument to export_svg to increment the svg width? Some of my node labels are longer than the node shape (by intention); it seems that the function only considers the nodes when it tries to figure out the size of the canvas. In effect, long labels on nodes near the image's borders get cropped.

My current workaround is to grab the svg xml text and manually edit the svg width in an svg editor prior to rendering.