Debian Codegraph @

samples/tests/spec/masking/clip.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 <!-- Test description here -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ========================================================================= -->
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>Clip Test</title>
34
35 <!-- ============================================================= -->
36 <!-- Test content -->
37 <!-- ============================================================= -->
38 <g id="testContent">
39
40 <text x="225" y="40" class="title">
41 Clip Test
42 </text>
43
44 <defs>
45 <!-- ============================================== -->
46 <!-- clipPathUnits : default (userSpaceOnUse) -->
47 <!-- ============================================== -->
48 <clipPath id="clip_1_1">
49 <circle cx="36" cy="60" r="36"/>
50 <circle cx="84" cy="60" r="36"/>
51 </clipPath>
52 <!-- ============================================== -->
53 <!-- clipPathUnits : objectBoundingBox -->
54 <!-- ============================================== -->
55 <clipPath id="clip_1_2" clipPathUnits="objectBoundingBox">
56 <circle cx=".3" cy=".5" r=".3"/>
57 <circle cx=".7" cy=".5" r=".3"/>
58 </clipPath>
59 <!-- ============================================== -->
60 <!-- clipPathUnits : userSpaceOnUse -->
61 <!-- ============================================== -->
62 <clipPath id="clip_1_3" clipPathUnits="userSpaceOnUse">
63 <circle cx="36" cy="60" r="36"/>
64 <circle cx="84" cy="60" r="36"/>
65 </clipPath>
66
67 <clipPath id="clip00" clipPathUnits="objectBoundingBox">
68 <circle cx=".5" cy=".5" r=".16"/>
69 </clipPath>
70
71 <clipPath id="clip0" clipPathUnits="objectBoundingBox">
72 <circle cx=".5" cy=".5" r=".16" style="clip-path:url(#clip00)"/>
73 </clipPath>
74
75 <clipPath id="clip" clipPathUnits="objectBoundingBox" style="clip-path:url(#clip0)">
76 <circle cx=".5" cy=".5" r=".16"/>
77 </clipPath>
78
79 <!-- ============================================== -->
80 <!-- clipPathUnits : default (userSpaceOnUse) -->
81 <!-- clip-path on the clipPath element -->
82 <!-- ============================================== -->
83 <clipPath id="clip_2_1" style="clip-path:url(#clip)">
84 <circle cx="36" cy="60" r="36"/>
85 <circle cx="84" cy="60" r="36"/>
86 </clipPath>
87 <!-- ============================================== -->
88 <!-- clipPathUnits : objectBoundingBox -->
89 <!-- clip-path on the clipPath element -->
90 <!-- ============================================== -->
91 <clipPath id="clip_2_2" clipPathUnits="objectBoundingBox" style="clip-path:url(#clip)">
92 <circle cx=".3" cy=".5" r=".3"/>
93 <circle cx=".7" cy=".5" r=".3"/>
94 </clipPath>
95 <!-- ============================================== -->
96 <!-- clipPathUnits : userSpaceOnUse -->
97 <!-- clip-path on the clipPath element -->
98 <!-- ============================================== -->
99 <clipPath id="clip_2_3" clipPathUnits="userSpaceOnUse" style="clip-path:url(#clip)">
100 <circle cx="36" cy="60" r="36"/>
101 <circle cx="84" cy="60" r="36"/>
102 </clipPath>
103
104 <!-- ============================================== -->
105 <!-- clipPathUnits : default (userSpaceOnUse) -->
106 <!-- clip-path on the clipPath children elements -->
107 <!-- ============================================== -->
108 <clipPath id="clip_3_1">
109 <circle cx="36" cy="60" r="36" style="clip-path:url(#clip)"/>
110 <circle cx="84" cy="60" r="36" style="clip-path:url(#clip)"/>
111 </clipPath>
112 <!-- ============================================== -->
113 <!-- clipPathUnits : objectBoundingBox -->
114 <!-- clip-path on the clipPath children elements -->
115 <!-- ============================================== -->
116 <clipPath id="clip_3_2" clipPathUnits="objectBoundingBox">
117 <circle cx=".3" cy=".5" r=".3" style="clip-path:url(#clip)"/>
118 <circle cx=".7" cy=".5" r=".3" style="clip-path:url(#clip)"/>
119 </clipPath>
120 <!-- ============================================== -->
121 <!-- clipPathUnits : userSpaceOnUse -->
122 <!-- clip-path on the clipPath children elements -->
123 <!-- ============================================== -->
124 <clipPath id="clip_3_3" clipPathUnits="userSpaceOnUse">
125 <circle cx="36" cy="60" r="36" style="clip-path:url(#clip)"/>
126 <circle cx="84" cy="60" r="36" style="clip-path:url(#clip)"/>
127 </clipPath>
128
129 </defs>
130
131 <!-- ============================================== -->
132 <!-- clip_1_* -->
133 <!-- ============================================== -->
134 <g transform="translate(0 40)" class="legend">
135 <g id="c1" transform="translate(20 20)">
136 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
137 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_1_1)"/>
138 <g transform="translate(60, 130)">
139 <text x="0" y="0" style="text-anchor:middle">clip_1_1</text>
140 </g>
141 </g>
142
143 <g id="c2" transform="translate(20 160)">
144 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
145 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_1_2)"/>
146 <g transform="translate(60, 130)">
147 <text x="0" y="0" style="text-anchor:middle">clip_1_2</text>
148 </g>
149 </g>
150
151 <g id="c3" transform="translate(20 300)">
152 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
153 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_1_3)"/>
154 <g transform="translate(60, 130)">
155 <text x="0" y="0" style="text-anchor:middle">clip_1_2</text>
156 </g>
157 </g>
158
159 <!-- ============================================== -->
160 <!-- clip_2_* -->
161 <!-- ============================================== -->
162
163 <g id="c4" transform="translate(160 20)">
164 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
165 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_2_1)"/>
166 <g transform="translate(60, 130)">
167 <text x="0" y="0" style="text-anchor:middle">clip_2_1</text>
168 </g>
169 </g>
170
171 <g id="c5" transform="translate(160 160)">
172 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
173 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_2_2)"/>
174 <g transform="translate(60, 130)">
175 <text x="0" y="0" style="text-anchor:middle">clip_2_2</text>
176 </g>
177 </g>
178
179 <g id="c6" transform="translate(160 300)">
180 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
181 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_2_3)"/>
182 <g transform="translate(60, 130)">
183 <text x="0" y="0" style="text-anchor:middle">clip_2_3</text>
184 </g>
185 </g>
186
187 <!-- ============================================== -->
188 <!-- clip_3_* -->
189 <!-- ============================================== -->
190
191 <g id="c7" transform="translate(300 20)">
192 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
193 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_3_1)"/>
194 <g transform="translate(60, 130)">
195 <text x="0" y="0" style="text-anchor:middle">clip_3_1</text>
196 </g>
197 </g>
198
199 <g id="c8" transform="translate(300 160)">
200 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
201 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_3_2)"/>
202 <g transform="translate(60, 130)">
203 <text x="0" y="0" style="text-anchor:middle">clip_3_2</text>
204 </g>
205 </g>
206
207 <g id="c9" transform="translate(300 300)">
208 <rect x="0" y="0" width="120" height="120" style="fill:FireBrick;"/>
209 <rect x="0" y="0" width="120" height="120" style="fill:PaleVioletRed; clip-path:url(#clip_3_3)"/>
210 <g transform="translate(60, 130)">
211 <text x="0" y="0" style="text-anchor:middle">clip_3_2</text>
212 </g>
213 </g>
214 </g>
215
216 </g>
217
218 <!-- ============================================================= -->
219 <!-- Batik sample mark -->
220 <!-- ============================================================= -->
221 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
222
223 </svg>