Closed EoinTravers closed 3 years ago
Some sources, including svglite for R, don't set the width and height attributes (see https://github.com/r-lib/svglite/issues/12). In at least some of these cases, we can extract these properties from the viewBox attribute instead.
Apologies for my delay. I haven't tested this myself but I guess it works. Thanks!
Some sources, including svglite for R, don't set the width and height attributes (see https://github.com/r-lib/svglite/issues/12). In at least some of these cases, we can extract these properties from the viewBox attribute instead.