Reads the width and the height of an SVG, in pixels, from its root element.
Value
The width and the height, two numbers, such as 900 and 490 for the statistics card; 900 and 490 too if the root element lacks them.
Examples
rghcard:::svg_size(stats_card(example_stats(), file = NULL))
#> [1] 900 490