Debian Codegraph @

samples/tests/spec/painting/markersOrientB.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
3 "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
4
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <!-- ========================================================================= -->
24 <!-- This test validates handling of the orient property on maker-start and -->
25 <!-- marker-end. -->
26 <!-- -->
27 <!-- @author [email protected] -->
28 <!-- @version $Id$ -->
29 <!-- ========================================================================= -->
30 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
31
32 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500">
33 <title>Marker Test</title>
34
35 <style type="text/css"><![CDATA[
36 .markedPath { fill:none; stroke:black; stroke-width:.5; }
37 ]]></style>
38
39 <g id="content">
40
41 <text class="title" x="50%" y="40">Markers, Orient 2/2</text>
42
43 <g transform="translate(110, 120)">
44
45 <use xlink:href="markersOrientA.svg#grid" />
46
47 <g class="legend" stroke="none" fill="black" text-anchor="middle" >
48 <text x="20" y="-30">Middle w/quadTo</text>
49 <text x="120" y="-30">Middle w/ cubicTo</text>
50 <text x="220" y="-30">Middle w/ close</text>
51 </g>
52
53 <!-- ==================================== -->
54 <!-- The following 5 paths have two -->
55 <!-- points, validating the various -->
56 <!-- possibilities for middle orientation -->
57 <!-- when the segment ending on the -->
58 <!-- middle point is a qadTo -->
59 <!-- -->
60 <!-- in : quadTo -->
61 <!-- ==================================== -->
62 <g marker-mid="url(markersOrientA.svg#midMarker)"
63 transform="translate(0, 0)" >
64
65
66 <!-- Out is a moveTo -->
67 <path d="M 0 20 Q 40 40 20 0 M 50 10" class="markedPath"/>
68 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
69
70 <!-- Out is a lineTo -->
71 <g transform="translate(0, 70)">
72 <path d="M 0 20 Q 20 20 20 0 L 50 10" class="markedPath" />
73 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
74 </g>
75
76 <!-- Out is a quadTo -->
77 <g transform="translate(0, 140)">
78 <path d="M 0 20 Q 20 20 20 0 Q 50 0 50 10" class="markedPath" />
79 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
80 </g>
81
82 <!-- Out is a cubicTo -->
83 <g transform="translate(0, 210)">
84 <path d="M 0 20 Q 20 20 20 0 C 40 -10 80 -20 50 10" class="markedPath" />
85 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
86 </g>
87
88 <!-- Out is a close -->
89 <g transform="translate(0, 280)">
90 <path d="M 0 20 Q 20 20 20 0 Z" class="markedPath" />
91 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
92 </g>
93
94 </g>
95
96 <!-- ==================================== -->
97 <!-- The following 5 paths have three -->
98 <!-- points, validating the various -->
99 <!-- possibilities for middle orientation -->
100 <!-- when the segment ending on the -->
101 <!-- middle point is a cubicTo -->
102 <!-- -->
103 <!-- in : cubicTo -->
104 <!-- ==================================== -->
105 <g marker-mid="url(markersOrientA.svg#midMarker)"
106 transform="translate(100, 0)" >
107
108
109 <!-- Out is a moveTo -->
110 <path d="M 0 20 C 20 40 40 20 20 0 M 50 10" class="markedPath"/>
111 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
112
113 <!-- Out is a lineTo -->
114 <g transform="translate(0, 70)">
115 <path d="M 0 20 C 20 40 40 20 20 0 L 50 10" class="markedPath" />
116 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
117 </g>
118
119 <!-- Out is a quadTo -->
120 <g transform="translate(0, 140)">
121 <path d="M 0 20 C 20 40 40 20 20 0 Q 50 0 50 10" class="markedPath" />
122 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
123 </g>
124
125 <!-- Out is a cubicTo -->
126 <g transform="translate(0, 210)">
127 <path d="M 0 20 C 20 40 40 20 20 0 C 40 -10 80 -20 50 10" class="markedPath" />
128 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
129 </g>
130
131 <!-- Out is a close -->
132 <g transform="translate(0, 280)">
133 <path d="M 0 20 C 20 40 40 20 20 0 Z" class="markedPath" />
134 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
135 </g>
136
137 </g>
138
139 <!-- ==================================== -->
140 <!-- The following 5 paths have three -->
141 <!-- points, validating the various -->
142 <!-- possibilities for middle orientation -->
143 <!-- when the segment ending on the -->
144 <!-- middle point is a close -->
145 <!-- -->
146 <!-- in : close -->
147 <!-- ==================================== -->
148 <g marker-mid="url(markersOrientA.svg#midMarker)"
149 transform="translate(200, 0)" >
150
151
152 <!-- Out is a moveTo -->
153 <path d="M 0 20 Z M 50 10" class="markedPath"/>
154 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
155
156 <!-- Out is a lineTo -->
157 <g transform="translate(0, 70)">
158 <path d="M 0 20 Z L 50 10" class="markedPath" />
159 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
160 </g>
161
162 <!-- Out is a quadTo -->
163 <g transform="translate(0, 140)">
164 <path d="M 0 20 Z Q 70 -30 50 10" class="markedPath" />
165 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
166 </g>
167
168 <!-- Out is a cubicTo -->
169 <g transform="translate(0, 210)">
170 <path d="M 0 20 Z C 40 -10 80 -20 50 10" class="markedPath" />
171 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
172 </g>
173
174 <!-- Out is a close : NA -->
175 <!--
176 <g transform="translate(0, 280)">
177 <path d="M 0 20 Z Z" class="markedPath" />
178 <use xlink:href="markersOrientA.svg#startMidEndCrossHairs" />
179 </g>
180 -->
181 </g>
182 </g>
183 </g>
184
185 <!-- ============================================================= -->
186 <!-- Batik sample mark -->
187 <!-- ============================================================= -->
188 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
189
190 </svg>