Michael Ferguson
Michael Ferguson
As described here: https://bugzilla.mozilla.org/show_bug.cgi?id=874811, Firefox will always return `0` for `clientWidth` and `clientHeight`. This PR will fall back on `this.element.getBoundingClientRect()` should `clientWidth` or `clientHeight` return falsey values. This PR also:...
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....
**Situation:** I am using Vue JS and am dynamically rendering an SVG contained inside a modal. After rendering the SVG, I call the `D3SeatingChart.attach` function to attach my new SVG....
As described here: https://bugzilla.mozilla.org/show_bug.cgi?id=874811, Firefox will always return `0` for `clientWidth` and `clientHeight`. This results in the `zoom` function scaling by 0, essentially hiding the SVG. A solution would be...