d3-seating-chart icon indicating copy to clipboard operation
d3-seating-chart copied to clipboard

Allow Custom SVG Margins

Open mtferg opened this issue 6 years ago • 0 comments

Currently, this library will attempt to apply a margin of 20px to each side of the attached SVG and scale accordingly. This is fine when your SVG is rather large. However, when attempting to render an SVG that was only 75px in height, this resulted in a rather drastic ratio change:

Expected: image

Result After Ratio Change: image

It would be nice to have the ability to customize that margin size in order to avoid scaling issues such as this one.

mtferg avatar Nov 07 '18 17:11 mtferg