astraw / svg_stack

concatenate SVG files
163 stars 45 forks source link

Handle missing width and height attributes. #14

Closed EoinTravers closed 3 years ago

EoinTravers commented 5 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.

astraw commented 3 years ago

Apologies for my delay. I haven't tested this myself but I guess it works. Thanks!