| 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 |
Licensed to the Apache Software Foundation (ASF) under one or more |
| 7 |
contributor license agreements. See the NOTICE file distributed with |
| 8 |
this work for additional information regarding copyright ownership. |
| 9 |
The ASF licenses this file to You under the Apache License, Version 2.0 |
| 10 |
(the "License"); you may not use this file except in compliance with |
| 11 |
the License. You may obtain a copy of the License at |
| 12 |
|
| 13 |
http://www.apache.org/licenses/LICENSE-2.0 |
| 14 |
|
| 15 |
Unless required by applicable law or agreed to in writing, software |
| 16 |
distributed under the License is distributed on an "AS IS" BASIS, |
| 17 |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 18 |
See the License for the specific language governing permissions and |
| 19 |
limitations under the License. |
| 20 |
--> |
| 21 |
|
| 22 |
<!-- ========================================================================= --> |
| 23 |
<!-- This interactive test validates that the pointer-events property --> |
| 24 |
<!-- --> |
| 25 |
<!-- @author [email protected] --> |
| 26 |
<!-- @version $Id$ --> |
| 27 |
<!-- ========================================================================= --> |
| 28 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 29 |
|
| 30 |
<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"> |
| 31 |
<title>Pointer Events Test</title> |
| 32 |
|
| 33 |
<g id="content"> |
| 34 |
|
| 35 |
<text class="title" x="50%" y="40">'pointer-events' Test |
| 36 |
<desc>Click in any of the links in the |
| 37 |
table. You should see a smilley.</desc></text> |
| 38 |
|
| 39 |
<defs> |
| 40 |
<g id="smilley"> |
| 41 |
<g transform="scale(.8, .8) translate(-15,-15)"> |
| 42 |
<circle cx="15" cy="15" r="10"/> |
| 43 |
<circle cx="12" cy="12" r="1.5" fill="black"/> |
| 44 |
<circle cx="17" cy="12" r="1.5" fill="black"/> |
| 45 |
<path d="M 10 19 A 8 8 0 0 0 20 19" stroke="black" stroke-width="1"/> |
| 46 |
</g> |
| 47 |
</g> |
| 48 |
|
| 49 |
<g id="success" fill="rgb(0,255,0)"> |
| 50 |
<use xlink:href="#smilley" /> |
| 51 |
</g> |
| 52 |
<g id="cell"> |
| 53 |
<rect x="20" y="60" width="120" height="20" style="fill:#eee; stroke:black"/> |
| 54 |
<rect x="20" y="80" width="120" height="100" style="fill:none; stroke:black"/> |
| 55 |
|
| 56 |
<g style="fill:#aaa"> |
| 57 |
<rect x="35" y="90" width="35" height="14.5" /> |
| 58 |
<rect x="90" y="90" width="35" height="14.5" /> |
| 59 |
<rect x="25" y="120" width="50" height="28" /> |
| 60 |
<rect x="80" y="120" width="50" height="28" /> |
| 61 |
<rect x="35" y="158" width="30" height="16" /> |
| 62 |
<rect x="90" y="158" width="30" height="16" /> |
| 63 |
</g> |
| 64 |
</g> |
| 65 |
|
| 66 |
</defs> |
| 67 |
|
| 68 |
<g transform="translate(5, 5) scale(.2)"> |
| 69 |
<use xlink:href="#success"/> |
| 70 |
<a xlink:href="#svgView(viewBox(0,0,450,500))"> |
| 71 |
<text y="-11" font-size="2" fill="blue" text-decoration="underline" text-anchor="middle">Return to test</text> |
| 72 |
</a> |
| 73 |
</g> |
| 74 |
|
| 75 |
<!-- ######################################### --> |
| 76 |
|
| 77 |
|
| 78 |
<g style="text-anchor:middle;"> |
| 79 |
|
| 80 |
<g transform="translate(0 0)"> |
| 81 |
<use xlink:href="#cell" /> |
| 82 |
<text x="80" y="74">visiblePainted</text> |
| 83 |
</g> |
| 84 |
|
| 85 |
<g transform="translate(140 0)"> |
| 86 |
<use xlink:href="#cell" /> |
| 87 |
<text x="80" y="74">visibleFill</text> |
| 88 |
</g> |
| 89 |
|
| 90 |
<g transform="translate(280 0)"> |
| 91 |
<use xlink:href="#cell" /> |
| 92 |
<text x="80" y="74">visibleStroke</text> |
| 93 |
</g> |
| 94 |
|
| 95 |
<g transform="translate(0 130)"> |
| 96 |
<use xlink:href="#cell" /> |
| 97 |
<text x="80" y="74">visible</text> |
| 98 |
</g> |
| 99 |
|
| 100 |
<g transform="translate(140 130)"> |
| 101 |
<use xlink:href="#cell" /> |
| 102 |
<text x="80" y="74">painted</text> |
| 103 |
</g> |
| 104 |
|
| 105 |
<g transform="translate(280 130)"> |
| 106 |
<use xlink:href="#cell" /> |
| 107 |
<text x="80" y="74">fill</text> |
| 108 |
</g> |
| 109 |
|
| 110 |
<g transform="translate(0 260)"> |
| 111 |
<use xlink:href="#cell" /> |
| 112 |
<text x="80" y="74">stroke</text> |
| 113 |
</g> |
| 114 |
|
| 115 |
<g transform="translate(140 260)"> |
| 116 |
<use xlink:href="#cell" /> |
| 117 |
<text x="80" y="74">all</text> |
| 118 |
</g> |
| 119 |
|
| 120 |
<g transform="translate(280 260)"> |
| 121 |
<use xlink:href="#cell" /> |
| 122 |
<text x="80" y="74">none</text> |
| 123 |
</g> |
| 124 |
|
| 125 |
<!-- ######################################### --> |
| 126 |
|
| 127 |
<g transform="translate(0 0)" style="pointer-events:visiblePainted"> |
| 128 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 129 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 130 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 131 |
|
| 132 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 133 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 134 |
|
| 135 |
<text x="50" y="170">Batik</text> |
| 136 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 137 |
</a> |
| 138 |
</g> |
| 139 |
|
| 140 |
<g transform="translate(140 0)" style="pointer-events:visibleFill"> |
| 141 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 142 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 143 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 144 |
|
| 145 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 146 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 147 |
|
| 148 |
<text x="50" y="170">Batik</text> |
| 149 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 150 |
</a> |
| 151 |
</g> |
| 152 |
|
| 153 |
<g transform="translate(280 0)" style="pointer-events:visibleStroke"> |
| 154 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 155 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 156 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 157 |
|
| 158 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 159 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 160 |
|
| 161 |
<text x="50" y="170">Batik</text> |
| 162 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 163 |
</a> |
| 164 |
</g> |
| 165 |
|
| 166 |
<g transform="translate(0 130)" style="pointer-events:visible"> |
| 167 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 168 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 169 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 170 |
|
| 171 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 172 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 173 |
|
| 174 |
<text x="50" y="170">Batik</text> |
| 175 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 176 |
</a> |
| 177 |
</g> |
| 178 |
|
| 179 |
<g transform="translate(140 130)" style="pointer-events:painted"> |
| 180 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 181 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 182 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 183 |
|
| 184 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 185 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 186 |
|
| 187 |
<text x="50" y="170">Batik</text> |
| 188 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 189 |
</a> |
| 190 |
</g> |
| 191 |
|
| 192 |
<g transform="translate(280 130)" style="pointer-events:fill"> |
| 193 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 194 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 195 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 196 |
|
| 197 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 198 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 199 |
|
| 200 |
<text x="50" y="170">Batik</text> |
| 201 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 202 |
</a> |
| 203 |
</g> |
| 204 |
|
| 205 |
<g transform="translate(0 260)" style="pointer-events:stroke"> |
| 206 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 207 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 208 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 209 |
|
| 210 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 211 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 212 |
|
| 213 |
<text x="50" y="170">Batik</text> |
| 214 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 215 |
</a> |
| 216 |
</g> |
| 217 |
|
| 218 |
<g transform="translate(140 260)" style="pointer-events:all"> |
| 219 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 220 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 221 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 222 |
|
| 223 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 224 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 225 |
|
| 226 |
<text x="50" y="170">Batik</text> |
| 227 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 228 |
</a> |
| 229 |
</g> |
| 230 |
|
| 231 |
<g transform="translate(280 260)" style="pointer-events:none"> |
| 232 |
<a xlink:href="#svgView(viewBox(3,2.5,4,4))"> |
| 233 |
<image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" /> |
| 234 |
<image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/> |
| 235 |
|
| 236 |
<image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" /> |
| 237 |
<image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/> |
| 238 |
|
| 239 |
<text x="50" y="170">Batik</text> |
| 240 |
<text x="105" y="170" style="visibility:hidden">Batik</text> |
| 241 |
</a> |
| 242 |
</g> |
| 243 |
|
| 244 |
</g> |
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
|
| 249 |
</g><!-- "content" --> |
| 250 |
|
| 251 |
<!-- ============================================================= --> |
| 252 |
<!-- Batik sample mark --> |
| 253 |
<!-- ============================================================= --> |
| 254 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 255 |
|
| 256 |
</svg> |