<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://commons.oreilly.com/wiki/skins/common/feed.css?97"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;action=history&amp;feed=atom</id>
		<title>SVG Essentials/Coordinates - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;action=history&amp;feed=atom"/>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;action=history"/>
		<updated>2013-05-20T13:11:40Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.11.0</generator>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=7368&amp;oldid=prev</id>
		<title>Docbook2Wiki: Initial conversion from Docbook</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=7368&amp;oldid=prev"/>
				<updated>2008-03-07T13:40:50Z</updated>
		
		<summary type="html">&lt;p&gt;Initial conversion from Docbook&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:40, 7 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;</summary>
		<author><name>Docbook2Wiki</name></author>	</entry>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=6033&amp;oldid=prev</id>
		<title>Docbook2Wiki: Initial conversion from Docbook</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=6033&amp;oldid=prev"/>
				<updated>2008-03-07T12:51:41Z</updated>
		
		<summary type="html">&lt;p&gt;Initial conversion from Docbook&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:51, 7 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;</summary>
		<author><name>Docbook2Wiki</name></author>	</entry>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=3696&amp;oldid=prev</id>
		<title>Evanlenz: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=3696&amp;oldid=prev"/>
				<updated>2008-03-06T23:40:31Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:40, 6 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;</summary>
		<author><name>Evanlenz</name></author>	</entry>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=3695&amp;oldid=prev</id>
		<title>Docbook2Wiki: Initial conversion from Docbook</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=3695&amp;oldid=prev"/>
				<updated>2008-03-06T23:33:32Z</updated>
		
		<summary type="html">&lt;p&gt;Initial conversion from Docbook&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 23:33, 6 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;</summary>
		<author><name>Docbook2Wiki</name></author>	</entry>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=3237&amp;oldid=prev</id>
		<title>Evanlenz: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=3237&amp;oldid=prev"/>
				<updated>2008-03-06T22:52:39Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:52, 6 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;</summary>
		<author><name>Evanlenz</name></author>	</entry>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=3236&amp;oldid=prev</id>
		<title>Docbook2Wiki: Initial conversion from Docbook</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=3236&amp;oldid=prev"/>
				<updated>2008-03-06T22:38:57Z</updated>
		
		<summary type="html">&lt;p&gt;Initial conversion from Docbook&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:38, 6 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;</summary>
		<author><name>Docbook2Wiki</name></author>	</entry>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=2651&amp;oldid=prev</id>
		<title>Evanlenz: 1 revision(s)</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=2651&amp;oldid=prev"/>
				<updated>2008-03-06T22:21:59Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision(s)&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:21, 6 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;</summary>
		<author><name>Evanlenz</name></author>	</entry>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=2650&amp;oldid=prev</id>
		<title>Docbook2Wiki: Initial conversion from Docbook</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=2650&amp;oldid=prev"/>
				<updated>2008-03-06T22:21:01Z</updated>
		
		<summary type="html">&lt;p&gt;Initial conversion from Docbook&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 22:21, 6 March 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 52:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-1. Rectangle using default coordinates'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-1. Rectangle using default coordinates'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt22&lt;/del&gt;.png|Rectangle using default coordinates]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt22&lt;/ins&gt;.png|Rectangle using default coordinates]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 80:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-2. Rectangle using explicit units'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-2. Rectangle using explicit units'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt23&lt;/del&gt;.png|Rectangle using explicit units]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt23&lt;/ins&gt;.png|Rectangle using explicit units]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 86:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-3. Viewport with units; rectangle without units'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-3. Viewport with units; rectangle without units'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt24&lt;/del&gt;.png|Viewport with units; rectangle without units]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt24&lt;/ins&gt;.png|Viewport with units; rectangle without units]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 121:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 121:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-4. New user coordinates'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-4. New user coordinates'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt26&lt;/del&gt;.png|New user coordinates]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt26&lt;/ins&gt;.png|New user coordinates]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 230:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 230:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-5. meet -- viewBox fits in viewport'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-5. meet -- viewBox fits in viewport'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt29&lt;/del&gt;.png|meet -- viewBox fits in viewport]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt29&lt;/ins&gt;.png|meet -- viewBox fits in viewport]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 264:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 264:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-6. slice -- graphic fills viewport'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-6. slice -- graphic fills viewport'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt30&lt;/del&gt;.png|slice -- graphic fills viewport]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt30&lt;/ins&gt;.png|slice -- graphic fills viewport]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 286:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 286:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-7. Aspect ratio not preserved'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-7. Aspect ratio not preserved'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt31&lt;/del&gt;.png|Aspect ratio not preserved]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt31&lt;/ins&gt;.png|Aspect ratio not preserved]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 302:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 302:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-8. Nested viewport example'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-8. Nested viewport example'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt32&lt;/del&gt;.png|Nested viewport example]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt32&lt;/ins&gt;.png|Nested viewport example]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 316:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 316:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-9. Circle in main viewport'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-9. Circle in main viewport'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt34&lt;/del&gt;.png|Circle in main viewport]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt34&lt;/ins&gt;.png|Circle in main viewport]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 332:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 332:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-10. Circle and boundary box in main viewport'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Figure 2-10. Circle and boundary box in main viewport'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials/I_2_tt36&lt;/del&gt;.png|Circle and boundary box in main viewport]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Image:SVG &lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Essentials_I_2_tt36&lt;/ins&gt;.png|Circle and boundary box in main viewport]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;/div&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikicontent:diff:version:1.11a:oldid:2416:newid:2650 --&gt;
&lt;/table&gt;</summary>
		<author><name>Docbook2Wiki</name></author>	</entry>

	<entry>
		<id>http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=2416&amp;oldid=prev</id>
		<title>Docbook2Wiki: Initial conversion from Docbook</title>
		<link rel="alternate" type="text/html" href="http://commons.oreilly.com/wiki/index.php?title=SVG_Essentials/Coordinates&amp;diff=2416&amp;oldid=prev"/>
				<updated>2008-03-04T22:37:00Z</updated>
		
		<summary type="html">&lt;p&gt;Initial conversion from Docbook&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{SVG Essentials/TOC}}&lt;br /&gt;
The world of SVG is an infinite canvas. In this chapter, we'll discuss how you tell a viewer program which part of this canvas you're interested in, what its dimensions are, and how you locate points within that area.&lt;br /&gt;
&lt;br /&gt;
== The Viewport ==&lt;br /&gt;
&lt;br /&gt;
The area of the canvas that your document intends to use is called the viewport. You establish the size of this viewport with the &amp;lt;tt&amp;gt;width&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;height&amp;lt;/tt&amp;gt; attributes on the &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element. The values of these attributes can be simply a number, which is presumed to be in pixels; this is said to be specified in user coordinates. You may also specify &amp;lt;tt&amp;gt;width&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;height&amp;lt;/tt&amp;gt; as a number followed by a unit identifier, which can be one of the following:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;em&amp;lt;/tt&amp;gt;&lt;br /&gt;
: The font size of the default font, usually equivalent to the height of a character&lt;br /&gt;
;&amp;lt;tt&amp;gt;ex&amp;lt;/tt&amp;gt;&lt;br /&gt;
: The height of the letter ''x''&lt;br /&gt;
;&amp;lt;tt&amp;gt;px&amp;lt;/tt&amp;gt;&lt;br /&gt;
: Pixels&lt;br /&gt;
;&amp;lt;tt&amp;gt;pt&amp;lt;/tt&amp;gt;&lt;br /&gt;
: Points (&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;/&amp;lt;sub&amp;gt;72&amp;lt;/sub&amp;gt; of an inch)&lt;br /&gt;
;&amp;lt;tt&amp;gt;pc&amp;lt;/tt&amp;gt;&lt;br /&gt;
: Picas (&amp;lt;sup&amp;gt;1&amp;lt;/sup&amp;gt;/&amp;lt;sub&amp;gt;6&amp;lt;/sub&amp;gt; of an inch)&lt;br /&gt;
;&amp;lt;tt&amp;gt;cm&amp;lt;/tt&amp;gt;&lt;br /&gt;
: Centimeters&lt;br /&gt;
;&amp;lt;tt&amp;gt;mm&amp;lt;/tt&amp;gt;&lt;br /&gt;
: Millimeters&lt;br /&gt;
;&amp;lt;tt&amp;gt;in&amp;lt;/tt&amp;gt;&lt;br /&gt;
: Inches&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
&lt;br /&gt;
;&amp;lt;tt&amp;gt;&amp;lt;svg width=&amp;quot;200&amp;quot; height=&amp;quot;150&amp;quot;&amp;gt;&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;&amp;lt;svg width=&amp;quot;200px&amp;quot; height=&amp;quot;200px&amp;quot;&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: Both of these specify an area 200 pixels wide and 150 pixels tall.&lt;br /&gt;
;&amp;lt;tt&amp;gt;&amp;lt;svg width=&amp;quot;2cm&amp;quot; height=&amp;quot;3cm&amp;quot;&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: Specifies an area two centimeters wide and three centimeters high.&lt;br /&gt;
;&amp;lt;tt&amp;gt;&amp;lt;svg width=&amp;quot;2cm&amp;quot; height=&amp;quot;36pt&amp;quot;&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
: It is possible, though unusual, to mix units; this element specifies an area two centimeters wide and thirty-six points high.&lt;br /&gt;
&lt;br /&gt;
If you have one &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element nested within another &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element, the nested tag may also specify its &amp;lt;tt&amp;gt;width&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;height&amp;lt;/tt&amp;gt; as a percentage, measured in terms of the enclosing element. We will see nested &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; elements in [[SVG Essentials/Coordinates#Nested Systems of Coordinates|Section 2.5]].&lt;br /&gt;
&lt;br /&gt;
== Using Default User Coordinates ==&lt;br /&gt;
&lt;br /&gt;
When you do not use unit specifiers on your &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element, the viewer sets up a coordinate system where the horizontal, or ''x''-coordinate, increases as you go to the right, and the vertical, or ''y''-coordinate, increases as you move vertically downward. The upper left corner of the viewport is defined to have an ''x''- and ''y''-coordinate of zero.&amp;lt;ref&amp;gt;In this book, we will specify a pair of ''x''- and ''y''-coordinates in parentheses, with the ''x''-coordinate first. Thus, (10, 30) represents an ''x''-coordinate of 10 and a ''y''-coordinate of 30.&amp;lt;/ref&amp;gt; This point, written as (0, 0) is also called the origin. The coordinate system is a pure geometric system; points have neither width nor height, and the grid lines are considered infinitely thin. We'll return to this subject in [[SVG Essentials/Basic Shapes|Chapter 3]].&lt;br /&gt;
&lt;br /&gt;
[[SVG Essentials/Coordinates#svgess-CHP-2-EX-1|Example 2-1]] establishes a viewport two hundred pixels wide and two hundred pixels high, then draws a rectangle whose upper left corner is at coordinate (10, 10) with a width of 50 pixels and a height of 30 pixels.&amp;lt;ref&amp;gt;To save space, we are leaving out the &amp;lt;tt&amp;gt;&amp;lt;?xml ...?&amp;gt;&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;&amp;lt;!DOCTYPE ...&amp;gt;&amp;lt;/tt&amp;gt; lines. These are set in stone, so you can take them for granite.&amp;lt;/ref&amp;gt; [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-1|Figure 2-1]] shows the result, with rulers and a grid to show the coordinate system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-EX-1&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 2-1. Using default coordinates'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;200&amp;quot; height=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;rect x=&amp;quot;10&amp;quot; y=&amp;quot;10&amp;quot; width=&amp;quot;50&amp;quot; height=&amp;quot;30&amp;quot;&lt;br /&gt;
         style=&amp;quot;stroke: black; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/svg&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-1&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-1. Rectangle using default coordinates'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt22.png|Rectangle using default coordinates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Even if you don't specify units in the viewport, you may still use them in some SVG shape elements, as we do in [[SVG Essentials/Coordinates#svgess-CHP-2-EX-2|Example 2-2]]. [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-2|Figure 2-2]] shows the result, with rulers and a grid to show the coordinate system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-EX-2&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 2-2. Explicit use of units'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;200&amp;quot; height=&amp;quot;200&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;rect x=&amp;quot;10mm&amp;quot; y=&amp;quot;10mm&amp;quot; width=&amp;quot;15mm&amp;quot; height=&amp;quot;10mm&amp;quot;&lt;br /&gt;
         style=&amp;quot;stroke:black; fill:none;&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/svg&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specifying units in the &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element does not affect coordinates given without units in other elements. [[SVG Essentials/Coordinates#svgess-CHP-2-EX-3|Example 2-3]] shows a viewport set up in millimeters, but the rectangle is still drawn at pixel (user) coordinates, as you see in [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-3|Figure 2-3]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-EX-3&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 2-3. Units on the svg element'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;70mm&amp;quot; height=&amp;quot;70mm&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;rect x=&amp;quot;10&amp;quot; y=&amp;quot;10&amp;quot; width=&amp;quot;50&amp;quot; height=&amp;quot;30&amp;quot;&lt;br /&gt;
        style=&amp;quot;fill: none; stroke: black;&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/svg&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-2&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-2. Rectangle using explicit units'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt23.png|Rectangle using explicit units]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-3&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-3. Viewport with units; rectangle without units'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt24.png|Viewport with units; rectangle without units]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Specifying User Coordinates for a Viewport ==&lt;br /&gt;
&lt;br /&gt;
In the examples so far, numbers without units have been considered to be pixels. Sometimes this is not what you want. For example, you might want to set up a system where each user coordinate represents one-sixteenth of a centimeter. (We're using this coordinate system to prove a point, not to show a paragon of good design.) In this system, a square that is 40 units by 40 units will display as 2.5 centimeters on a side.&lt;br /&gt;
&lt;br /&gt;
To accomplish this effect, you set the &amp;lt;tt&amp;gt;viewBox&amp;lt;/tt&amp;gt; attribute on the &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element. The value of this attribute consists of four numbers that represent the minimum ''x''-coordinate, minimum ''y''-coordinate, width, and height of the user coordinate system that you want to superimpose on the viewport.&lt;br /&gt;
&lt;br /&gt;
So, to set up the sixteen-units-per-centimeter coordinate system for a four centimeter by five centimeter drawing, you'd use this starting tag:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;4cm&amp;quot; height=&amp;quot;5cm&amp;quot; viewBox=&amp;quot;0 0 64 80&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[SVG Essentials/Coordinates#svgess-CHP-2-EX-4|Example 2-4]] lists the SVG for a picture of a house, displayed using the new coordinate system.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-EX-4&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 2-4. Using a viewBox'''&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;4cm&amp;quot; height=&amp;quot;5cm&amp;quot; viewBox=&amp;quot;0 0 64 80&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;rect x=&amp;quot;10&amp;quot; y=&amp;quot;35&amp;quot; width=&amp;quot;40&amp;quot; height=&amp;quot;40&amp;quot;&lt;br /&gt;
       style=&amp;quot;stroke: black; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;amp;lt;!-- roof --&amp;gt;&lt;br /&gt;
    &amp;lt;polyline points=&amp;quot;10 35, 30 7.68, 50 35&amp;quot; &lt;br /&gt;
       style=&amp;quot;stroke:black; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;amp;lt;!-- door --&amp;gt;&lt;br /&gt;
    &amp;lt;polyline points=&amp;quot;30 75, 30 55, 40 55, 40 75&amp;quot;&lt;br /&gt;
       style=&amp;quot;stroke:black; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;/svg&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[SVG Essentials/Coordinates#svgess-CHP-2-FIG-4|Figure 2-4]] shows the result. The grid and darker numbers show the new user coordinate system; the lighter numbers are positioned at one-centimeter intervals.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-4&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-4. New user coordinates'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt26.png|New user coordinates]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The numbers you specify for the value of the &amp;lt;tt&amp;gt;viewBox&amp;lt;/tt&amp;gt; attribute may be separated by commas or whitespace. If either the width or height is zero, none of your graphic will display. It is an error to specify a negative value for the &amp;lt;tt&amp;gt;viewBox&amp;lt;/tt&amp;gt; width or height.&lt;br /&gt;
&lt;br /&gt;
== Preserving Aspect Ratio ==&lt;br /&gt;
&lt;br /&gt;
In the previous example, the aspect ratio, or ratio of width to height, of the viewport and the &amp;lt;tt&amp;gt;viewBox&amp;lt;/tt&amp;gt; were identical (4/5 = 64/80). What happens, though, if the aspect ratio of the viewport and the viewBox are not the same, as in this example, where &amp;lt;tt&amp;gt;viewBox&amp;lt;/tt&amp;gt; has an aspect ratio of one to one, but the viewport has an aspect ratio of one to three?&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;45px&amp;quot; height=&amp;quot;135px&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are three things that SVG can do in this situation:&lt;br /&gt;
&lt;br /&gt;
* Scale the graphic uniformly according to the smaller dimension so the graphic will fit entirely into the viewport. In the example, the picture would become half its original width and height. We'll show you examples of this in [[SVG Essentials/Coordinates#Using the meet Specifier|Section 2.4.2]].&lt;br /&gt;
* Scale the graphic uniformly according to the larger dimension and cut off the parts that lie outside the viewport. In the example, the picture would become one and a half times its original width and height. We'll show you examples in [[SVG Essentials/Coordinates#Using the slice Specifier|Section 2.4.3]].&lt;br /&gt;
* Stretch and squash the drawing so that it fits precisely into the new viewport. (That is, don't preserve the aspect ratio at all.) We will cover this in [[SVG Essentials/Coordinates#Using the none Specifier|Section 2.4.4]].&lt;br /&gt;
&lt;br /&gt;
In the first case, since the image will be smaller than the viewport in one dimension, you must specify where to position it. In the example, the picture will be scaled uniformly to a width and height of 45 pixels. The width of the reduced graphic fits the width of the viewport perfectly, but you must now decide whether the image meets (is aligned with) the top, middle, or bottom of the 135-pixel viewport height.&lt;br /&gt;
&lt;br /&gt;
In the second case, since the image will be larger than the viewport in one dimension, you must specify which area is to be sliced away. In the example, the picture will be scaled uniformly to a width and height of 135 pixels. Now the height of the graphic fits the viewport perfectly, but you must decide whether to slice off the right side, left side, or both edges of the picture to fit within the 45-pixel viewport width.&lt;br /&gt;
&lt;br /&gt;
=== Specifying Alignment for preserveAspectRatio ===&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;preserveAspectRatio&amp;lt;/tt&amp;gt; attribute lets you specify the alignment of the scaled image with respect to the viewport, and whether you want it to meet the edges or be sliced off. The model for this attribute is:&lt;br /&gt;
&lt;br /&gt;
 preserveAspectRatio=&amp;quot;''alignment'' [meet | slice]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;tt&amp;gt;''alignment''&amp;lt;/tt&amp;gt; specifies the axis and location, and is one of &amp;lt;tt&amp;gt;xMinYMin&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;xMinYMid&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;xMinYMax&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;xMidYMin&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;xMidYMid&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;xMidYMax&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;xMaxYMin&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;xMaxYMid&amp;lt;/tt&amp;gt;, or &amp;lt;tt&amp;gt;xMaxYMax&amp;lt;/tt&amp;gt;. This alignment specifier is formed by concatenating an ''x''-alignment and a ''y''-alignment as shown in [[SVG Essentials/Coordinates#svgess-CHP-2-TABLE-1|Table 2-1]]. The default value for &amp;lt;tt&amp;gt;preserveAspectRatio&amp;lt;/tt&amp;gt; is &amp;lt;tt&amp;gt;xMidYMid meet&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;note&amp;quot;&amp;gt;&lt;br /&gt;
'''Note'''&lt;br /&gt;
&lt;br /&gt;
The ''y''-alignment begins with a capital letter, since the ''x''- and ''y''-alignments are concatenated into a single word.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-TABLE-1&amp;quot;&amp;gt;&lt;br /&gt;
'''Table 2-1. Values for alignment portion of preserveAspectRatio'''&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; &lt;br /&gt;
|-&lt;br /&gt;
! colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | X alignment&lt;br /&gt;
|-&lt;br /&gt;
| '''Value''' || '''Action'''&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;xMin&amp;lt;/tt&amp;gt; || Align minimum ''x'' of viewBox with left corner of viewport.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;xMid&amp;lt;/tt&amp;gt; || Align midpoint ''x'' value of viewBox with midpoint ''x'' value of viewport.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;xMax&amp;lt;/tt&amp;gt; || Align maximum ''x'' value of viewBox with right corner of viewport.&lt;br /&gt;
|-&lt;br /&gt;
| colspan=&amp;quot;2&amp;quot; align=&amp;quot;center&amp;quot; | '''Y alignment'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Value''' || '''Action'''&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;YMin&amp;lt;/tt&amp;gt; || Align minimum ''y'' of viewBox with top edge of viewport.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;YMid&amp;lt;/tt&amp;gt; || Align midpoint ''y'' value of viewBox with midpoint ''y'' value of viewport.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;tt&amp;gt;YMax&amp;lt;/tt&amp;gt; || Align maximum ''y'' value of viewBox with bottom edge of viewport.&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
So, if you want to have the picture with a &amp;lt;tt&amp;gt;viewBox=&amp;quot;0 0 90 90&amp;quot;&amp;lt;/tt&amp;gt; fit entirely within a viewport that is 45 pixels wide and 135 pixels high, aligned at the top of the viewport, you would write:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;45px&amp;quot; height=&amp;quot;135px&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
    preserveAspectRatio=&amp;quot;xMinYMin meet&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div class=&amp;quot;tip&amp;quot;&amp;gt;&lt;br /&gt;
'''Tip'''&lt;br /&gt;
&lt;br /&gt;
In this case, since the width fits precisely, the ''x''-alignment is irrelevant; you could equally well use &amp;lt;tt&amp;gt;xMidYmin&amp;lt;/tt&amp;gt; or &amp;lt;tt&amp;gt;xMaxYMin&amp;lt;/tt&amp;gt;. However, in the interests of consistency, it's usually best to make both specifiers the same when only one axis is affected.&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This is all fairly abstract; here are some concrete examples that show you how the combinations of alignment and &amp;lt;tt&amp;gt;meet&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;slice&amp;lt;/tt&amp;gt; interact with one another.&lt;br /&gt;
&lt;br /&gt;
=== Using the meet Specifier ===&lt;br /&gt;
&lt;br /&gt;
The starting &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; tags in [[SVG Essentials/Coordinates#svgess-CHP-2-EX-5|Example 2-5]] all use the &amp;lt;tt&amp;gt;meet&amp;lt;/tt&amp;gt; specifier.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-EX-5&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 2-5. Use of meet specifier'''&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;!-- tall viewports --&amp;gt;&lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMinYMin meet&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;45&amp;quot; height=&amp;quot;135&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMidYMid meet&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;45&amp;quot; height=&amp;quot;135&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMaxYMax meet&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;45&amp;quot; height=&amp;quot;135&amp;quot;&amp;gt;&lt;br /&gt;
         &lt;br /&gt;
 &amp;amp;lt;!-- wide viewports --&amp;gt;&lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMinYMin meet&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;135&amp;quot; height=&amp;quot;45&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMidYMid meet&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;135&amp;quot; height=&amp;quot;45&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMaxYMax meet&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;135&amp;quot; height=&amp;quot;45&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[SVG Essentials/Coordinates#svgess-CHP-2-FIG-5|Figure 2-5]] shows where the reduced image fits into the enclosing &amp;lt;tt&amp;gt;viewBox&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-5&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-5. meet -- viewBox fits in viewport'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt29.png|meet -- viewBox fits in viewport]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using the slice Specifier ===&lt;br /&gt;
&lt;br /&gt;
[[SVG Essentials/Coordinates#svgess-CHP-2-FIG-6|Figure 2-6]] shows the use of the &amp;lt;tt&amp;gt;slice&amp;lt;/tt&amp;gt; specifier to eliminate parts of the picture that do not fit in the viewport. They were created with the &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; tags in [[SVG Essentials/Coordinates#svgess-CHP-2-EX-6|Example 2-6]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-EX-6&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 2-6. Use of slice specifier'''&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;!-- tall viewports --&amp;gt;&lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMinYMin slice&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;45&amp;quot; height=&amp;quot;135&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMidYMid slice&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;45&amp;quot; height=&amp;quot;135&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMaxYMax slice&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;45&amp;quot; height=&amp;quot;135&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;lt;!-- wide viewports --&amp;gt;&lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMinYMin slice&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;135&amp;quot; height=&amp;quot;45&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMidYMid slice&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;135&amp;quot; height=&amp;quot;45&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;xMaxYMax slice&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
     width=&amp;quot;135&amp;quot; height=&amp;quot;45&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-6&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-6. slice -- graphic fills viewport'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt30.png|slice -- graphic fills viewport]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Using the none Specifier ===&lt;br /&gt;
&lt;br /&gt;
Finally, there is the third option for scaling a graphic when the &amp;lt;tt&amp;gt;viewBox&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;viewPort&amp;lt;/tt&amp;gt; don't have the same aspect ratio. If you specify &amp;lt;tt&amp;gt;preserve&amp;lt;/tt&amp;gt;- &amp;lt;tt&amp;gt;AspectRatio=&amp;quot;none&amp;quot;&amp;lt;/tt&amp;gt;, then the graphic will be scaled non-uniformly so that its user coordinates fit the viewport. [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-7|Figure 2-7]] shows such a &amp;quot;fun-house mirror&amp;quot; effect produced with the &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; tags in [[SVG Essentials/Coordinates#svgess-CHP-2-EX-7|Example 2-7]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-EX-7&amp;quot;&amp;gt;&lt;br /&gt;
'''Example 2-7. Aspect ratio not preserved'''&lt;br /&gt;
&lt;br /&gt;
 &amp;amp;lt;!-- tall viewport --&amp;gt;&lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;none&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
    width=&amp;quot;45&amp;quot; height=&amp;quot;135&amp;quot;&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &amp;amp;lt;!-- wide viewport --&amp;gt;&lt;br /&gt;
 &amp;lt;svg preserveAspectRatio=&amp;quot;none&amp;quot; viewBox=&amp;quot;0 0 90 90&amp;quot;&lt;br /&gt;
   width=&amp;quot;135&amp;quot; height=&amp;quot;45&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-7&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-7. Aspect ratio not preserved'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt31.png|Aspect ratio not preserved]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Nested Systems of Coordinates ==&lt;br /&gt;
&lt;br /&gt;
You can establish a new viewport and system of coordinates at any time by putting another &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element into your document. The effect is to create a &amp;quot;mini-canvas&amp;quot; upon which you can draw. We used this technique to create illustrations such as [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-5|Figure 2-5]]. Rather than drawing the rectangles, then rescaling and positioning the cat inside each one (the brute force approach), we took these steps:&lt;br /&gt;
&lt;br /&gt;
* Draw the blue rectangles on the main canvas&lt;br /&gt;
* For each rectangle, define a new &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element with the appropriate &amp;lt;tt&amp;gt;preserveAspectRatio&amp;lt;/tt&amp;gt; attribute&lt;br /&gt;
* Draw the cat into that new canvas (with &amp;lt;tt&amp;gt;&amp;lt;use&amp;gt;&amp;lt;/tt&amp;gt;), and let SVG do the heavy lifting&lt;br /&gt;
&lt;br /&gt;
Here's a simplified example that shows a circle on the main canvas, then inside a new canvas that's outlined by a blue rectangle that's also on the main canvas. [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-8|Figure 2-8]] is the result we wish to achieve.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-8&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-8. Nested viewport example'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt32.png|Nested viewport example]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First, generate the SVG for the main coordinate system and the circle. Note that we've established the user coordinates to coincide exactly with the viewport in this document.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg '''width=&amp;quot;200px&amp;quot; height=&amp;quot;200px&amp;quot; viewBox=&amp;quot;0 0 200 200&amp;quot;'''&amp;gt;&lt;br /&gt;
     &amp;lt;circle cx=&amp;quot;25&amp;quot; cy=&amp;quot;25&amp;quot; r=&amp;quot;25&amp;quot; style=&amp;quot;stroke: black; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
 &amp;lt;/svg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The result is in [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-9|Figure 2-9]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-9&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-9. Circle in main viewport'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt34.png|Circle in main viewport]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, draw the boundary of the box showing where we want the new viewport to be:&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;200px&amp;quot; height=&amp;quot;200px&amp;quot; viewBox=&amp;quot;0 0 200 200&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;circle cx=&amp;quot;25&amp;quot; cy=&amp;quot;25&amp;quot; r=&amp;quot;25&amp;quot; style=&amp;quot;stroke: black; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
     '''&amp;lt;rect x=&amp;quot;100&amp;quot; y=&amp;quot;5&amp;quot; width=&amp;quot;30&amp;quot; height=&amp;quot;80&amp;quot;'''&lt;br /&gt;
 '''       style=&amp;quot;stroke: blue; fill: none;&amp;quot;/&amp;gt;'''&lt;br /&gt;
 &amp;lt;/svg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This produces [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-10|Figure 2-10]].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div id=&amp;quot;svgess-CHP-2-FIG-10&amp;quot;&amp;gt;&lt;br /&gt;
'''Figure 2-10. Circle and boundary box in main viewport'''&lt;br /&gt;
&lt;br /&gt;
[[Image:SVG Essentials/I_2_tt36.png|Circle and boundary box in main viewport]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, add another &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element for the new viewport. In addition to specifying the &amp;lt;tt&amp;gt;viewBox&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;width&amp;lt;/tt&amp;gt;, &amp;lt;tt&amp;gt;height&amp;lt;/tt&amp;gt;, and &amp;lt;tt&amp;gt;preserveAspectRatio&amp;lt;/tt&amp;gt; specification, you may also specify the &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;y&amp;lt;/tt&amp;gt; attributes — in terms of the enclosing &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element — where the new viewport is to be established. (If you don't give values for &amp;lt;tt&amp;gt;x&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;y&amp;lt;/tt&amp;gt;, they are presumed to be zero.)&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svgwidth=&amp;quot;200px&amp;quot; height=&amp;quot;200px&amp;quot; viewBox=&amp;quot;0 0 200 200&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;circle cx=&amp;quot;25&amp;quot; cy=&amp;quot;25&amp;quot; r=&amp;quot;25&amp;quot; style=&amp;quot;stroke: black; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;rect x=&amp;quot;100&amp;quot; y=&amp;quot;5&amp;quot; width=&amp;quot;30&amp;quot; height=&amp;quot;80&amp;quot; &lt;br /&gt;
         style=&amp;quot;stroke: blue; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
         &lt;br /&gt;
     '''&amp;lt;svg x=&amp;quot;100px&amp;quot; y=&amp;quot;5px&amp;quot; width=&amp;quot;30px&amp;quot; height=&amp;quot;80px&amp;quot; viewBox=&amp;quot;0 0 50 50&amp;quot;'''&lt;br /&gt;
 '''        preserveAspectRatio=&amp;quot;xMaxYMax meet&amp;quot;&amp;gt; '''&lt;br /&gt;
 '''    &amp;lt;/svg&amp;gt;'''&lt;br /&gt;
 &amp;lt;/svg&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Setting up the new coordinates with this nested &amp;lt;tt&amp;gt;&amp;lt;svg&amp;gt;&amp;lt;/tt&amp;gt; element doesn't change the visual display, but it does permit you to add the circle in that new system, producing the result shown in [[SVG Essentials/Coordinates#svgess-CHP-2-FIG-8|Figure 2-8]].&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;svg width=&amp;quot;200px&amp;quot; height=&amp;quot;200px&amp;quot; viewBox=&amp;quot;0 0 200 200&amp;quot;&amp;gt;&lt;br /&gt;
     &amp;lt;circle cx=&amp;quot;25&amp;quot; cy=&amp;quot;25&amp;quot; r=&amp;quot;25&amp;quot; style=&amp;quot;stroke: black; fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
     &amp;lt;rect x=&amp;quot;100&amp;quot; y=&amp;quot;5&amp;quot; width=&amp;quot;30&amp;quot; height=&amp;quot;80&amp;quot; style=&amp;quot;stroke: blue; &lt;br /&gt;
         fill: none;&amp;quot;/&amp;gt;&lt;br /&gt;
         &lt;br /&gt;
     &amp;lt;svg x=&amp;quot;100px&amp;quot; y=&amp;quot;5px&amp;quot; width=&amp;quot;30px&amp;quot; height=&amp;quot;80px&amp;quot; viewBox=&amp;quot;0 0 50 50&amp;quot;&lt;br /&gt;
         preserveAspectRatio=&amp;quot;xMaxYMax meet&amp;quot;&amp;gt;&lt;br /&gt;
         '''&amp;lt;circle cx=&amp;quot;25&amp;quot; cy=&amp;quot;25&amp;quot; r=&amp;quot;25&amp;quot; style=&amp;quot;stroke: black; '''&lt;br /&gt;
 '''            fill: none;&amp;quot;/&amp;gt;'''&lt;br /&gt;
     &amp;lt;/svg&amp;gt;&lt;br /&gt;
 &amp;lt;/svg&amp;gt;&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;/div&gt;</summary>
		<author><name>Docbook2Wiki</name></author>	</entry>

	</feed>