←
^
→
SVG and Canvas
Basics
Everything within an
svg
element.
It sets up the coordinate system with the
width
and
height
attributes. Top left is (0,0).
The
viewBox
attribute tells user agent to map full image onto view canvas.
preserveAspectRatio
controls the mapping.
The
g
element is used for grouping
José M. Vidal
.
15 of 24