viewBox

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

Creates a viewBox string from coordinates.

The viewBox defines the position and dimensions of the SVG viewport. Commonly used when setting the viewBox attribute on svg/symbol builders.

Return

The viewBox string.

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.