svg-centre (npm): Resize and centre an svg element to its contents. Eliminates whitespace, and enables correct rescaling regarding width and height (provided ratio is constant)
Keywords: svg|reshape|rescale|remove|contents|scale|box|viewbox