summaryrefslogtreecommitdiff
path: root/tests/samples/test-nested-transform.svg
diff options
context:
space:
mode:
authorEmmanuel Pacaud <emmanuel@src.gnome.org>2007-06-22 16:39:42 +0000
committerEmmanuel Pacaud <emmanuel@src.gnome.org>2007-06-22 16:39:42 +0000
commit3a2f65fc41f823377150e6de8c2a7f0cddd83c09 (patch)
tree3f819360885e8438ce77d253e21b66372c95815f /tests/samples/test-nested-transform.svg
parent2e1e06855c9cb585eeda75c8d8171ea9b3883a1f (diff)
downloadlibrsvg-3a2f65fc41f823377150e6de8c2a7f0cddd83c09.tar.gz
Move sample files to tests/samples.
svn path=/trunk/; revision=1122
Diffstat (limited to 'tests/samples/test-nested-transform.svg')
-rw-r--r--tests/samples/test-nested-transform.svg43
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/samples/test-nested-transform.svg b/tests/samples/test-nested-transform.svg
new file mode 100644
index 00000000..eae4dd8f
--- /dev/null
+++ b/tests/samples/test-nested-transform.svg
@@ -0,0 +1,43 @@
+<?xml version="1.0" standalone="no"?>
+<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000303 Stylable//EN"
+ "http://www.w3.org/TR/2000/03/WD-SVG-20000303/DTD/svg-20000303-stylable.dtd">
+<svg width="400" height="150">
+ <!-- Adapted from the example given in section 7.5 of the 3 Mar 2000
+ SVG draft -->
+ <desc>Example Nested - Nested transformations</desc>
+ <g style="fill:none; stroke:black; stroke-width:3">
+ <!-- Draw the axes of the original coordinate system -->
+ <path d="M0 1.5 L400 1.5"/>
+ <path d="M1.5 0 L1.5 150"/>
+ </g>
+ <!-- First, a translate -->
+ <g transform="translate(50,90)">
+ <g style="fill:none; stroke:red; stroke-width:3">
+ <path d="M0 0 L50 0"/>
+ <path d="M0 0 L0 50"/>
+ </g>
+ <text x="0" y="0" style="font-size:16; font-family:Helvetica">
+ ....Translate(1)
+ </text>
+ <!-- Second, a rotate -->
+ <g transform="rotate(-45)">
+ <g style="fill:none; stroke:green; stroke-width:3">
+ <path d="M0 0 L50 0"/>
+ <path d="M0 0 L0 50"/>
+ </g>
+ <text x="0" y="0" style="font-size:16; font-family:Helvetica">
+ ....Rotate(2)
+ </text>
+ <!-- Third, another translate -->
+ <g transform="translate(130,160)">
+ <g style="fill:none; stroke:blue; stroke-width:3">
+ <path d="M0 0 L50 0"/>
+ <path d="M0 0 L0 50"/>
+ </g>
+ <text x="0" y="0" style="font-size:16; font-family:Helvetica">
+ ....Translate(3)
+ </text>
+ </g>
+ </g>
+ </g>
+</svg>