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