• Set the svg viewbox to the content boundings.

    Parameters

    • svg: Svg

      The SVG element to adjust.

    • padding: number

      The padding to add around the content bounds. Note that this amount gets added to each side of the svg.

    Returns Box