| 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 |
<!-- use targets --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ====================================================================== --> |
| 29 |
|
| 30 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 31 |
|
| 32 |
<svg width="450" height="500" viewBox="0 0 450 500" |
| 33 |
xmlns="http://www.w3.org/2000/svg" |
| 34 |
xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 35 |
|
| 36 |
<title><use> Targets2</title> |
| 37 |
|
| 38 |
<!-- ============================================================= --> |
| 39 |
<!-- Test content --> |
| 40 |
<!-- ============================================================= --> |
| 41 |
<text x="225" y="25" class="title"><use> Targets 2</text> |
| 42 |
<g id="testContent" transform="translate(0 0)"> |
| 43 |
|
| 44 |
<defs> |
| 45 |
<symbol id="symbol" viewBox="-100 -100 200 200" |
| 46 |
style="stroke:crimson; stroke-width:8"> |
| 47 |
<rect x="-100" y="-100" width="100%" height="100%" |
| 48 |
style="fill:crimson; stroke:none"/> |
| 49 |
<circle cx="0" cy="0" r="25%" style="fill:orange; stroke:gold"/> |
| 50 |
</symbol> |
| 51 |
|
| 52 |
<svg id="svg" viewBox="-100 -100 200 200" |
| 53 |
style="stroke:crimson; stroke-width:8"> |
| 54 |
<rect x="-100" y="-100" width="100%" height="100%" |
| 55 |
style="fill:crimson; stroke:none"/> |
| 56 |
<circle cx="0" cy="0" r="25%" style="fill:orange; stroke:gold"/> |
| 57 |
</svg> |
| 58 |
</defs> |
| 59 |
|
| 60 |
<g id="board"> |
| 61 |
<rect x="10" y="60" width="430" height="20" |
| 62 |
style="fill:#aaa; stroke:black" /> |
| 63 |
<rect x="10" y="80" width="430" height="100" |
| 64 |
style="fill:#eee; stroke:black" /> |
| 65 |
<text x="20" y="74"><use> references a <symbol></text> |
| 66 |
|
| 67 |
<g transform="translate(0 140)"> |
| 68 |
<rect x="10" y="60" width="430" height="20" |
| 69 |
style="fill:#aaa; stroke:black" /> |
| 70 |
<rect x="10" y="80" width="430" height="100" |
| 71 |
style="fill:#eee; stroke:black" /> |
| 72 |
<text x="20" y="74"><use> references a <svg></text> |
| 73 |
</g> |
| 74 |
<g transform="translate(0 280)"> |
| 75 |
<rect x="10" y="60" width="430" height="20" |
| 76 |
style="fill:#aaa; stroke:black" /> |
| 77 |
<rect x="10" y="80" width="430" height="100" |
| 78 |
style="fill:#eee; stroke:black" /> |
| 79 |
<text x="20" y="74"><use> references with percentages</text> |
| 80 |
</g> |
| 81 |
</g> |
| 82 |
|
| 83 |
<!-- ################################################### --> |
| 84 |
<!-- use references symbol --> |
| 85 |
<!-- ################################################### --> |
| 86 |
|
| 87 |
<!-- svg width x,y and transform --> |
| 88 |
<use x="1000" y="1000" width="100" height="100" xlink:href="#symbol" |
| 89 |
transform="translate(50 100) scale(.5) translate(-1000 -1000)"/> |
| 90 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 91 |
<text x="75" y="162" style="text-anchor:middle" |
| 92 |
>x, y, w, h,<tspan x="75" dy="1.0em">transform</tspan></text> |
| 93 |
|
| 94 |
<!-- svg width transform --> |
| 95 |
<g transform="translate(150 0)"> |
| 96 |
<use width="100" height="100" xlink:href="#symbol" |
| 97 |
transform="translate(50 100) scale(.5)"/> |
| 98 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 99 |
<text x="75" y="170" style="text-anchor:middle">w, h, transform</text> |
| 100 |
</g> |
| 101 |
|
| 102 |
<!-- equivalent svg --> |
| 103 |
<g transform="translate(300 0)"> |
| 104 |
<g transform="translate(50 100) scale(.5) translate(-1000 -1000) translate(1000 1000)"> |
| 105 |
<svg width="100" height="100" viewBox="-100 -100 200 200" |
| 106 |
style="stroke:crimson; stroke-width:8"> |
| 107 |
<rect x="-100" y="-100" width="100%" height="100%" |
| 108 |
style="fill:crimson; stroke:none"/> |
| 109 |
<circle cx="0" cy="0" r="25%" style="fill:orange; stroke:gold"/> |
| 110 |
</svg> |
| 111 |
</g> |
| 112 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 113 |
<text x="75" y="170" style="text-anchor:middle">equivalent svg</text> |
| 114 |
</g> |
| 115 |
|
| 116 |
<!-- ################################################### --> |
| 117 |
<!-- use references svg --> |
| 118 |
<!-- ################################################### --> |
| 119 |
|
| 120 |
<!-- svg width x,y and transform --> |
| 121 |
<g transform="translate(0 140)"> |
| 122 |
<use x="1000" y="1000" width="100" height="100" xlink:href="#svg" |
| 123 |
transform="translate(50 100) scale(.5) translate(-1000 -1000)"/> |
| 124 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 125 |
<text x="75" y="162" style="text-anchor:middle" |
| 126 |
>x, y, w, h,<tspan x="75" dy="1.0em">transform</tspan></text> |
| 127 |
</g> |
| 128 |
|
| 129 |
<!-- svg width transform --> |
| 130 |
<g transform="translate(150 140)"> |
| 131 |
<use width="100" height="100" xlink:href="#svg" |
| 132 |
transform="translate(50 100) scale(.5)"/> |
| 133 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 134 |
<text x="75" y="170" style="text-anchor:middle">w, h, transform</text> |
| 135 |
</g> |
| 136 |
|
| 137 |
<!-- equivalent svg --> |
| 138 |
<g transform="translate(300 140)"> |
| 139 |
<g transform="translate(50 100) scale(.5) translate(-1000 -1000) translate(1000 1000)"> |
| 140 |
<svg width="100" height="100" viewBox="-100 -100 200 200" |
| 141 |
style="stroke:crimson; stroke-width:8"> |
| 142 |
<rect x="-100" y="-100" width="100%" height="100%" |
| 143 |
style="fill:crimson; stroke:none"/> |
| 144 |
<circle cx="0" cy="0" r="25%" style="fill:orange; stroke:gold"/> |
| 145 |
</svg> |
| 146 |
</g> |
| 147 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 148 |
<text x="75" y="170" style="text-anchor:middle">equivalent svg</text> |
| 149 |
</g> |
| 150 |
|
| 151 |
<!-- ################################################### --> |
| 152 |
<!-- use references with percentages --> |
| 153 |
<!-- ################################################### --> |
| 154 |
|
| 155 |
<!-- svg width, height, x,y percentages --> |
| 156 |
<g transform="translate(-10 280)"> |
| 157 |
<use x="11.1111%" y="20%" width="11.1111%" height="10%" |
| 158 |
xlink:href="#svg"/> |
| 159 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 160 |
<text x="75" y="162" style="text-anchor:middle" |
| 161 |
>referencing svg<tspan x="75" dy="1.0em">x, y, w, h%</tspan></text> |
| 162 |
</g> |
| 163 |
|
| 164 |
<!-- svg width transform --> |
| 165 |
<g transform="translate(95 280)"> |
| 166 |
<use x="50" y="100" width="11.1111%" height="10%" xlink:href="#svg" /> |
| 167 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 168 |
<text x="75" y="162" style="text-anchor:middle" |
| 169 |
>referencing svg<tspan x="75" dy="1.0em">w, h%</tspan></text> |
| 170 |
</g> |
| 171 |
|
| 172 |
<!-- symbol width, height, x, y, percentages --> |
| 173 |
<g transform="translate(200 280)"> |
| 174 |
<use x="11.1111%" y="20%" width="11.1111%" height="10%" |
| 175 |
xlink:href="#symbol" /> |
| 176 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 177 |
<text x="75" y="162" style="text-anchor:middle" |
| 178 |
>referencing symbol<tspan x="75" dy="1.0em">w, h%</tspan></text> |
| 179 |
</g> |
| 180 |
|
| 181 |
<!-- symbol width, height, percentages --> |
| 182 |
<g transform="translate(305 280)"> |
| 183 |
<use x="50" y="100" width="11.1111%" height="10%" xlink:href="#symbol" /> |
| 184 |
<rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| 185 |
<text x="75" y="162" style="text-anchor:middle" |
| 186 |
>referencing symbol<tspan x="75" dy="1.0em">w, h%</tspan></text> |
| 187 |
</g> |
| 188 |
|
| 189 |
</g> |
| 190 |
|
| 191 |
<!-- ============================================================= --> |
| 192 |
<!-- Batik sample mark --> |
| 193 |
<!-- ============================================================= --> |
| 194 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 195 |
|
| 196 |
</svg> |