File: pointerEvents2.svg

package info (click to toggle)
batik 1.18%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 28,972 kB
  • sloc: java: 192,233; xml: 19,449; javascript: 1,276; sh: 85; makefile: 5
file content (256 lines) | stat: -rw-r--r-- 11,125 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">

<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at
   
        http://www.apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<!-- ========================================================================= -->
<!-- This interactive test validates that the pointer-events property          -->
<!--                                                                           -->
<!-- @author tkormann@ilog.fr                                                  -->
<!-- @version $Id$ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  

<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">
<title>Pointer Events Test</title>

    <g id="content">

        <text class="title" x="50%" y="40">'pointer-events' Test
        <desc>Click in any of the links in the 
              table. You should see a smilley.</desc></text>

        <defs>
            <g id="smilley">
                <g  transform="scale(.8, .8) translate(-15,-15)">
                    <circle cx="15" cy="15" r="10"/>
                    <circle cx="12" cy="12" r="1.5" fill="black"/>
                    <circle cx="17" cy="12" r="1.5" fill="black"/>
                    <path d="M 10 19 A 8 8 0 0 0 20 19" stroke="black" stroke-width="1"/>
                </g>
            </g>

            <g id="success" fill="rgb(0,255,0)">
                <use xlink:href="#smilley" />
            </g>
            <g id="cell">
                <rect x="20" y="60" width="120" height="20" style="fill:#eee; stroke:black"/>
                <rect x="20" y="80" width="120" height="100" style="fill:none; stroke:black"/>

                <g style="fill:#aaa">
                    <rect x="35" y="90" width="35" height="14.5" />
                    <rect x="90" y="90" width="35" height="14.5" />
                    <rect x="25" y="120" width="50" height="28" />
                    <rect x="80" y="120" width="50" height="28" />
                    <rect x="35" y="158" width="30" height="16" />
                    <rect x="90" y="158" width="30" height="16" />
                </g>
            </g>

        </defs>

        <g transform="translate(5, 5) scale(.2)">
            <use xlink:href="#success"/>
            <a xlink:href="#svgView(viewBox(0,0,450,500))">
                <text y="-11" font-size="2" fill="blue" text-decoration="underline" text-anchor="middle">Return to test</text>
            </a>
        </g>

<!-- ######################################### -->


<g style="text-anchor:middle;">

<g transform="translate(0 0)">
    <use xlink:href="#cell" />
    <text x="80" y="74">visiblePainted</text>
</g>

<g transform="translate(140 0)">
    <use xlink:href="#cell" />
    <text x="80" y="74">visibleFill</text>
</g>

<g transform="translate(280 0)">
    <use xlink:href="#cell" />
    <text x="80" y="74">visibleStroke</text>
</g>

<g transform="translate(0 130)">
    <use xlink:href="#cell" />
    <text x="80" y="74">visible</text>
</g>

<g transform="translate(140 130)">
    <use xlink:href="#cell" />
    <text x="80" y="74">painted</text>
</g>

<g transform="translate(280 130)">
    <use xlink:href="#cell" />
    <text x="80" y="74">fill</text>
</g>

<g transform="translate(0 260)">
    <use xlink:href="#cell" />
    <text x="80" y="74">stroke</text>
</g>

<g transform="translate(140 260)">
    <use xlink:href="#cell" />
    <text x="80" y="74">all</text>
</g>

<g transform="translate(280 260)">
    <use xlink:href="#cell" />
    <text x="80" y="74">none</text>
</g>

<!-- ######################################### -->

<g transform="translate(0 0)" style="pointer-events:visiblePainted">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

<g transform="translate(140 0)" style="pointer-events:visibleFill">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

<g transform="translate(280 0)" style="pointer-events:visibleStroke">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

<g transform="translate(0 130)" style="pointer-events:visible">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

<g transform="translate(140 130)" style="pointer-events:painted">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

<g transform="translate(280 130)" style="pointer-events:fill">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

<g transform="translate(0 260)" style="pointer-events:stroke">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

<g transform="translate(140 260)" style="pointer-events:all">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

<g transform="translate(280 260)" style="pointer-events:none">
    <a xlink:href="#svgView(viewBox(3,2.5,4,4))">
        <image xlink:href="../../resources/images/tde.jpg" x="35" y="90" width="35" height="14.5" />
        <image xlink:href="../../resources/images/tde.jpg" x="90" y="90" width="35" height="14.5" style="visibility:hidden"/>

        <image xlink:href="../../resources/images/svg.svg" x="25" y="120" width="50" height="28" />
        <image xlink:href="../../resources/images/svg.svg" x="80" y="120" width="50" height="28" style="visibility:hidden"/>

        <text x="50" y="170">Batik</text>
        <text x="105" y="170" style="visibility:hidden">Batik</text>
    </a>
</g>

</g>




    </g><!-- "content" -->

    <!-- ============================================================= -->
    <!-- Batik sample mark                                             -->
    <!-- ============================================================= -->
    <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />

</svg>