When the
viewBox
attribute is specified, the SVG output is scaled
to be rendered in the viewport and the current coordinate system is
updated to be the dimensions that are specified by the
viewBox
attribute. If it is not specified, the
viewBox
attribute on the outermost
<svg>
element sets the height and width arguments of the viewBox attribute
to the paper height and paper width as defined by the PAPERSIZE= system
option.
The coordinates, width,
and height of the
viewBox
attribute should
be mapped to the coordinates, width, and height of the viewport, taking
into account the values of the
preserveAspectRatio
attribute.
The value for the SVGVIEWBOX=
option must be enclosed in single or double quotation marks, or enclosed
in parentheses.
You can use a negative
value for
min-x and
min-y to place the SVG document in the output.
A negative value of
min-x shifts
the output to the right. A negative value of
min-y shifts the placement of the output downward.