Function calculate_svg_bbox

Source
fn calculate_svg_bbox(tree: &mut Tree)
Expand description

Calculates SVG’s size and viewBox in case there were not set.

Simply iterates over all nodes and calculates a bounding box.