0
|
1 |
<?xml version="1.0" encoding="UTF-8"?>
|
|
2 |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
|
|
3 |
|
|
4 |
<!--======================================================================-->
|
|
5 |
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
|
|
6 |
<!--= Institute of Technology, Institut National de Recherche en =-->
|
|
7 |
<!--= Informatique et en Automatique, Keio University). All Rights =-->
|
|
8 |
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
|
|
9 |
<!--======================================================================-->
|
|
10 |
<!-- ===================================================================== -->
|
|
11 |
<!-- -->
|
|
12 |
<!-- coords-transforms-BE-02.svg -->
|
|
13 |
<!-- Author : Vincent Hardy -->
|
|
14 |
<!-- renamed for 1.1 suite to coords-trans-03-t.svg -->
|
|
15 |
<!-- Modified for svg 1.1 by Ola Andersson, 07-Mar-2002 -->
|
|
16 |
<!-- -->
|
|
17 |
<!-- History: -->
|
|
18 |
<!-- 24-Feb-2000, VH: created -->
|
|
19 |
<!-- 27-Feb-2000, LH: minor adjustments to TC name, ser#3. -->
|
|
20 |
<!-- 02-Mar-2000, LH: fix names, legend, ser#4. -->
|
|
21 |
<!-- 09-Mar-2000, LH: fix framing rect, ser#5. -->
|
|
22 |
<!-- 30-Apr-2000, VH=" fix stroke properties bug" ser#5. -->
|
|
23 |
<!-- 12-May-2000, LH: rmv text-anchor and integrate, ser#6. -->
|
|
24 |
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
|
|
25 |
<!-- 16-Aug-2000, LH="rename" ser#7. -->
|
|
26 |
<!-- -->
|
|
27 |
<!-- ===================================================================== -->
|
|
28 |
<!--======================================================================-->
|
|
29 |
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
|
|
30 |
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
|
|
31 |
<!--======================================================================-->
|
|
32 |
<svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
|
|
33 |
|
|
34 |
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
|
|
35 |
<OperatorScript version="$Revision: 1.5 $" testname="coords-trans-01-t-b.svg">
|
|
36 |
<Paragraph>
|
|
37 |
This test verifies the implementation of transforms. It tests elementary transforms
|
|
38 |
and transform nesting.
|
|
39 |
Note that for layout purposes, this test uses nesting of translation with the elementary transforms.
|
|
40 |
</Paragraph>
|
|
41 |
<Paragraph>
|
|
42 |
The rendered picture should match the reference image exactly except for variations in the labeling text.
|
|
43 |
</Paragraph>
|
|
44 |
<Paragraph>
|
|
45 |
The test uses the rect element, the fill color (solid primary colors) and transforms.
|
|
46 |
</Paragraph>
|
|
47 |
</OperatorScript>
|
|
48 |
</SVGTestCase>
|
|
49 |
|
|
50 |
<title id="test-title">coords-trans-03-t</title>
|
|
51 |
<desc id="test-desc">Validates elementary transforms and transformation nesting</desc>
|
|
52 |
<!--======================================================================-->
|
|
53 |
<!--Content of Test Case follows... =====================-->
|
|
54 |
<!--======================================================================-->
|
|
55 |
<g id="test-body-content" transform="translate(0, 30)">
|
|
56 |
<!-- ====================================================================== -->
|
|
57 |
<!-- Now, test elementary transforms. For each transform, 3 markers are -->
|
|
58 |
<!-- placed where the user space is expected after transformations for the -->
|
|
59 |
<!-- origin (black) and the points in (20, 0) (blue) and (0, 20) (red). -->
|
|
60 |
<!-- Then, a blue line going from (0, 0) to (20, 0) is drawn and a red line -->
|
|
61 |
<!-- going from (0, 0) to (0, 20), after applying the elementary -->
|
|
62 |
<!-- transformation. If the test succeeds, the red line should join the -->
|
|
63 |
<!-- black marker to the red marker and the blue line the black marker to -->
|
|
64 |
<!-- the blue marker. -->
|
|
65 |
<!-- ====================================================================== -->
|
|
66 |
<g id="elementary-transforms-test" transform="translate(0, 10)">
|
|
67 |
<g id="elementary-transforms" transform="translate(-560, 0) scale(2.5, 2.5)">
|
|
68 |
<!-- Skew X -->
|
|
69 |
<g transform="translate(250, 50) skewX(45)">
|
|
70 |
<rect x="0" y="0" width="20" height="2" fill="blue" />
|
|
71 |
<rect x="0" y="0" width="2" height="20" fill="red" />
|
|
72 |
</g>
|
|
73 |
<!-- Skew Y -->
|
|
74 |
<g transform="translate(350, 50) skewY(45)">
|
|
75 |
<rect x="0" y="0" width="20" height="2" fill="blue" />
|
|
76 |
<rect x="0" y="0" width="2" height="20" fill="red" />
|
|
77 |
</g>
|
|
78 |
</g>
|
|
79 |
<!-- elementary-transforms -->
|
|
80 |
<!-- Draw all the markers -->
|
|
81 |
<g id="elementary-transforms-test-markers" transform="translate(-560, 0) scale(2.5, 2.5)">
|
|
82 |
<!-- Skew X -->
|
|
83 |
<text x="240" y="40">skew x (45)</text>
|
|
84 |
<rect x="248" y="48" width="5" height="5" fill="black" />
|
|
85 |
<rect x="268" y="48" width="5" height="5" fill="blue" />
|
|
86 |
<rect x="268" y="68" width="5" height="5" fill="red" />
|
|
87 |
<!-- Skew Y -->
|
|
88 |
<text x="340" y="40">skew y (45)</text>
|
|
89 |
<rect x="348" y="48" width="5" height="5" fill="black" />
|
|
90 |
<rect x="368" y="68" width="5" height="5" fill="blue" />
|
|
91 |
<rect x="348" y="68" width="5" height="5" fill="red" />
|
|
92 |
</g>
|
|
93 |
<!-- elementary-transforms-test-markers -->
|
|
94 |
</g>
|
|
95 |
<!-- nested-transforms test -->
|
|
96 |
</g>
|
|
97 |
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text>
|
|
98 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
|
|
99 |
</svg>
|
|
100 |
|