XML technologies / SVG / The coordinate system of SVG graphics / Summary, questions and exercises
(Excerpt from “Das Einsteigerseminar SVG — Webgrafiken mit XML” by Helma Spona)
Summary
Every SVG graphic has at least one coordinate system.
The graphic’s visible area can also be restricted. This area is called the viewport.
The
transformattribute creates new coordinate systems in which individual elements or entire groups can be arranged and positioned.Individual commands of the
transformattribute also rotate, scale or skew elements and groups.The tags
<title>and<desc>describe elements.To name an element, use the
idattribute.
Questions and exercises
How can new coordinate systems be created?
Exercises 2 to 6 form a single unit.
Create an SVG file containing a small square 7 pixels wide and high.
Insert text beside the square.
Group both elements and name the group “Zeile1”.
Position the groups at 30/70.
Also rotate the group by 30°.
Copyright © verlag moderne industrie GmbH 2001
You may print the online version for your private use.
Otherwise, this chapter from “Das Einsteigerseminar SVG — Webgrafiken mit XML” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
verlag moderne industrie GmbH, Justus-von-Liebig-Straße 1, D-86899 Landsberg/Lech, fon ++49 (0) 81 91 / 125 – 0, leserservice(at)mi-verlag.de