Debian Codegraph @

samples/tests/spec/linking/pointerEvents.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 interactive test validates that the pointer-events property -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
29 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
30
31 <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">
32 <title>Pointer Events Test</title>
33
34 <g id="content">
35
36 <text class="title" x="50%" y="40">'pointer-events' Test
37 <desc>Click in any of the links in the
38 table. You should see a smilley.</desc></text>
39
40 <defs>
41 <g id="smilley">
42 <g transform="scale(.8, .8) translate(-15,-15)">
43 <circle cx="15" cy="15" r="10"/>
44 <circle cx="12" cy="12" r="1.5" fill="black"/>
45 <circle cx="17" cy="12" r="1.5" fill="black"/>
46 <path d="M 10 19 A 8 8 0 0 0 20 19" stroke="black" stroke-width="1"/>
47 </g>
48 </g>
49
50 <g id="success" fill="rgb(0,255,0)">
51 <use xlink:href="#smilley" />
52 </g>
53 <g id="cell">
54 <rect x="20" y="60" width="120" height="20" style="fill:#eee; stroke:black"/>
55 <rect x="20" y="80" width="120" height="100" style="fill:none; stroke:black"/>
56
57 <g>
58 <g>
59 <rect x="90" y="90" width="40" height="20" style="fill:#aaa"/>
60 </g>
61
62 <g transform="translate(0 30)">
63 <rect x="90" y="90" width="40" height="20" style="fill:none; stroke:black; stroke-width:4"/>
64 </g>
65
66 <g transform="translate(0 60)">
67 <rect x="90" y="90" width="40" height="20" style="fill:#aaa; stroke:black; stroke-width:4"/>
68 </g>
69 </g>
70 </g>
71
72 </defs>
73
74 <g transform="translate(5, 5) scale(.2)">
75 <use xlink:href="#success"/>
76 <a xlink:href="#svgView(viewBox(0,0,450,500))">
77 <text y="-11" font-size="2" fill="blue" text-decoration="underline" text-anchor="middle">Return to test</text>
78 </a>
79 </g>
80
81 <!-- ######################################### -->
82
83
84 <g style="text-anchor:middle;">
85
86 <g transform="translate(0 0)">
87 <use xlink:href="#cell" />
88 <text x="80" y="74">visiblePainted</text>
89 </g>
90
91 <g transform="translate(140 0)">
92 <use xlink:href="#cell" />
93 <text x="80" y="74">visibleFill</text>
94 </g>
95
96 <g transform="translate(280 0)">
97 <use xlink:href="#cell" />
98 <text x="80" y="74">visibleStroke</text>
99 </g>
100
101 <g transform="translate(0 130)">
102 <use xlink:href="#cell" />
103 <text x="80" y="74">visible</text>
104 </g>
105
106 <g transform="translate(140 130)">
107 <use xlink:href="#cell" />
108 <text x="80" y="74">painted</text>
109 </g>
110
111 <g transform="translate(280 130)">
112 <use xlink:href="#cell" />
113 <text x="80" y="74">fill</text>
114 </g>
115
116 <g transform="translate(0 260)">
117 <use xlink:href="#cell" />
118 <text x="80" y="74">stroke</text>
119 </g>
120
121 <g transform="translate(140 260)">
122 <use xlink:href="#cell" />
123 <text x="80" y="74">all</text>
124 </g>
125
126 <g transform="translate(280 260)">
127 <use xlink:href="#cell" />
128 <text x="80" y="74">none</text>
129 </g>
130
131 <!-- ######################################### -->
132
133 <g transform="translate(0 0)" style="pointer-events:visiblePainted">
134 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
135 <g style="fill:crimson">
136 <rect x="30" y="90" width="40" height="20" />
137 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
138 </g>
139
140 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
141 <rect x="30" y="90" width="40" height="20" />
142 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
143 </g>
144
145 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
146 <rect x="30" y="90" width="40" height="20" />
147 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
148 </g>
149
150 </a>
151 </g>
152
153 <g transform="translate(140 0)" style="pointer-events:visibleFill">
154 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
155 <g style="fill:crimson">
156 <rect x="30" y="90" width="40" height="20" />
157 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
158 </g>
159
160 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
161 <rect x="30" y="90" width="40" height="20" />
162 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
163 </g>
164
165 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
166 <rect x="30" y="90" width="40" height="20" />
167 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
168 </g>
169
170 </a>
171 </g>
172
173 <g transform="translate(280 0)" style="pointer-events:visibleStroke">
174 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
175 <g style="fill:crimson">
176 <rect x="30" y="90" width="40" height="20" />
177 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
178 </g>
179
180 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
181 <rect x="30" y="90" width="40" height="20" />
182 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
183 </g>
184
185 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
186 <rect x="30" y="90" width="40" height="20" />
187 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
188 </g>
189
190 </a>
191 </g>
192
193 <g transform="translate(0 130)" style="pointer-events:visible">
194 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
195 <g style="fill:crimson">
196 <rect x="30" y="90" width="40" height="20" />
197 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
198 </g>
199
200 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
201 <rect x="30" y="90" width="40" height="20" />
202 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
203 </g>
204
205 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
206 <rect x="30" y="90" width="40" height="20" />
207 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
208 </g>
209
210 </a>
211 </g>
212
213 <g transform="translate(140 130)" style="pointer-events:painted">
214 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
215 <g style="fill:crimson">
216 <rect x="30" y="90" width="40" height="20" />
217 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
218 </g>
219
220 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
221 <rect x="30" y="90" width="40" height="20" />
222 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
223 </g>
224
225 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
226 <rect x="30" y="90" width="40" height="20" />
227 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
228 </g>
229
230 </a>
231 </g>
232
233 <g transform="translate(280 130)" style="pointer-events:fill">
234 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
235 <g style="fill:crimson">
236 <rect x="30" y="90" width="40" height="20" />
237 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
238 </g>
239
240 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
241 <rect x="30" y="90" width="40" height="20" />
242 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
243 </g>
244
245 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
246 <rect x="30" y="90" width="40" height="20" />
247 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
248 </g>
249
250 </a>
251 </g>
252
253 <g transform="translate(0 260)" style="pointer-events:stroke">
254 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
255 <g style="fill:crimson">
256 <rect x="30" y="90" width="40" height="20" />
257 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
258 </g>
259
260 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
261 <rect x="30" y="90" width="40" height="20" />
262 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
263 </g>
264
265 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
266 <rect x="30" y="90" width="40" height="20" />
267 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
268 </g>
269
270 </a>
271 </g>
272
273 <g transform="translate(140 260)" style="pointer-events:all">
274 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
275 <g style="fill:crimson">
276 <rect x="30" y="90" width="40" height="20" />
277 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
278 </g>
279
280 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
281 <rect x="30" y="90" width="40" height="20" />
282 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
283 </g>
284
285 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
286 <rect x="30" y="90" width="40" height="20" />
287 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
288 </g>
289
290 </a>
291 </g>
292
293 <g transform="translate(280 260)" style="pointer-events:none">
294 <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
295 <g style="fill:crimson">
296 <rect x="30" y="90" width="40" height="20" />
297 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
298 </g>
299
300 <g transform="translate(0 30)" style="fill:none; stroke:gold; stroke-width:4">
301 <rect x="30" y="90" width="40" height="20" />
302 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
303 </g>
304
305 <g transform="translate(0 60)" style="fill:crimson; stroke:gold; stroke-width:4">
306 <rect x="30" y="90" width="40" height="20" />
307 <rect x="90" y="90" width="40" height="20" style="visibility:hidden"/>
308 </g>
309
310 </a>
311 </g>
312
313 </g>
314
315
316
317
318 </g><!-- "content" -->
319
320 <!-- ============================================================= -->
321 <!-- Batik sample mark -->
322 <!-- ============================================================= -->
323 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
324
325 </svg>