viewBox

fun viewBox(minX: Number, minY: Number, width: Number, height: Number)

Sets the viewBox attribute of the SVG element.

Parameters

minX

The x-coordinate of the viewBox's starting point.

minY

The y-coordinate of the viewBox's starting point.

width

The width of the viewBox.

height

The height of the viewBox.