Adjusting the SVG size

Sometimes you want the SVG to adapt to the contents, instead of the other way around. In that case the allowResize option of the Svg class is for you. It will automatically adjust the viewBox of the SVG to fit all your contents.

Result

Return to the list of examples