Debian Codegraph @

test_non_regression/svg/Nested.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg width="400px" height="150px" version="1.1"
5 xmlns="http://www.w3.org/2000/svg">
6 <desc>Example Nested - Nested transformations</desc>
7 <g fill="none" stroke="black" stroke-width="3" >
8 <!-- Draw the axes of the original coordinate system -->
9 <line x1="0" y1="1.5" x2="400" y2="1.5" />
10 <line x1="1.5" y1="0" x2="1.5" y2="150" />
11 </g>
12 <!-- First, a translate -->
13 <g transform="translate(50,90)">
14 <g fill="none" stroke="red" stroke-width="3" >
15 <line x1="0" y1="0" x2="50" y2="0" />
16 <line x1="0" y1="0" x2="0" y2="50" />
17 </g>
18 <text x="0" y="0" font-size="16" font-family="Liberation Sans" >
19 ....Translate(1)
20 </text>
21 <!-- Second, a rotate -->
22 <g transform="rotate(-45)">
23 <g fill="none" stroke="green" stroke-width="3" >
24 <line x1="0" y1="0" x2="50" y2="0" />
25 <line x1="0" y1="0" x2="0" y2="50" />
26 </g>
27 <text x="0" y="0" font-size="16" font-family="Liberation Sans" >
28 ....Rotate(2)
29 </text>
30 <!-- Third, another translate -->
31 <g transform="translate(130,160)">
32 <g fill="none" stroke="blue" stroke-width="3" >
33 <line x1="0" y1="0" x2="50" y2="0" />
34 <line x1="0" y1="0" x2="0" y2="50" />
35 </g>
36 <text x="0" y="0" font-size="16" font-family="Liberation Sans" >
37 ....Translate(3)
38 </text>
39 </g>
40 </g>
41 </g>
42 </svg>
43