micah-williamson / d3-seating-chart

A simple but pleasant seating chart solution written with d3js
51 stars 13 forks source link

Allow Custom SVG Margins #5

Open mtferg opened 5 years ago

mtferg commented 5 years ago

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.