view
Description
The view element for SVG specifies a view.
<!doctype html> <html> <body> <img alt="mysvg" src="mysvg.svg#myid"> </body> </html>
Syntax
Attributes
preserveAspectRatio
Specifies whether or not to force uniform scaling.
Value
<align> <meetOrSlice>?
Default
xMidYMid meet
viewBox
Specifies a rectangle in user space.
A list of four numbers: min-x, min-y, width, and height that should be mapped to the bounds of the SVG viewport established by the given element, taking into account the preserveAspectRatio attribute. The presence of the viewBox attribute results in a transformation being applied to the viewport coordinate system.
Value
[ <min-x>,? <min-y>,? <width>,? <height> ]
Default
(none)