| 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 |
<!-- dynamic update for image --> |
| 25 |
<!-- --> |
| 26 |
<!-- @author [email protected] --> |
| 27 |
<!-- @version $Id$ --> |
| 28 |
<!-- ========================================================================= --> |
| 29 |
<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| 30 |
|
| 31 |
<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"> |
| 32 |
<title>update on <image></title> |
| 33 |
|
| 34 |
<style type="text/css"><![CDATA[ |
| 35 |
|
| 36 |
]]></style> |
| 37 |
<script type="text/ecmascript" > |
| 38 |
function setPAR(evt,par){ |
| 39 |
var e = evt.target; |
| 40 |
e.setAttribute('preserveAspectRatio',par); |
| 41 |
} |
| 42 |
</script> |
| 43 |
|
| 44 |
<g id="content"> |
| 45 |
|
| 46 |
<text class="title" x="50%" y="40"><image> tests <tspan font-size="12">(preserveAspectRatio)</tspan></text> |
| 47 |
|
| 48 |
<defs> |
| 49 |
<rect id="Rect1" x="40" y="0" width="50" height="20" /> |
| 50 |
<rect id="Rect2" x="60" y="-10" width="20" height="50" /> |
| 51 |
</defs> |
| 52 |
|
| 53 |
<g transform="translate(0,70)"> |
| 54 |
<use xlink:href="#Rect1" style="fill:none; stroke:blue; stroke-width:2"/> |
| 55 |
<image x="40" y="0" width="50" height="20" xlink:href="../../resources/images/svg.png" |
| 56 |
onload="setPAR(evt,'xMinYMin meet')"/> |
| 57 |
<text font-size="10" x="35" y="60">xMin* meet</text> |
| 58 |
</g> |
| 59 |
|
| 60 |
|
| 61 |
<g transform="translate(150,70)"> |
| 62 |
<use xlink:href="#Rect1" style="fill:none; stroke:blue; stroke-width:2"/> |
| 63 |
<image x="40" y="0" width="50" height="20" xlink:href="../../resources/images/svg.png" |
| 64 |
onload="setPAR(evt,'xMidYMin meet')"/> |
| 65 |
<text font-size="10" x="35" y="60">xMid* meet</text> |
| 66 |
</g> |
| 67 |
|
| 68 |
<g transform="translate(300,70)"> |
| 69 |
<use xlink:href="#Rect1" style="fill:none; stroke:blue; stroke-width:2"/> |
| 70 |
<image x="40" y="0" width="50" height="20" xlink:href="../../resources/images/svg.png" |
| 71 |
onload="setPAR(evt,'xMaxYMin meet')"/> |
| 72 |
<text font-size="10" x="35" y="60">xMax* meet</text> |
| 73 |
</g> |
| 74 |
|
| 75 |
|
| 76 |
<g transform="translate(0,170)"> |
| 77 |
<use xlink:href="#Rect2" style="fill:none; stroke:blue; stroke-width:2"/> |
| 78 |
<image x="60" y="-10" width="20" height="50" xlink:href="../../resources/images/svg.png" |
| 79 |
onload="setPAR(evt,'xMinYMin meet')"/> |
| 80 |
<text font-size="10" x="35" y="60">*YMin meet</text> |
| 81 |
</g> |
| 82 |
|
| 83 |
|
| 84 |
<g transform="translate(150,170)"> |
| 85 |
<use xlink:href="#Rect2" style="fill:none; stroke:blue; stroke-width:2"/> |
| 86 |
<image x="60" y="-10" width="20" height="50" xlink:href="../../resources/images/svg.png" |
| 87 |
onload="setPAR(evt,'xMinYMid meet')"/> |
| 88 |
<text font-size="10" x="35" y="60">*YMid meet</text> |
| 89 |
</g> |
| 90 |
|
| 91 |
<g transform="translate(300,170)"> |
| 92 |
<use xlink:href="#Rect2" style="fill:none; stroke:blue; stroke-width:2"/> |
| 93 |
<image x="60" y="-10" width="20" height="50" xlink:href="../../resources/images/svg.png" |
| 94 |
onload="setPAR(evt,'xMinYMax meet')"/> |
| 95 |
<text font-size="10" x="35" y="60">*YMax meet</text> |
| 96 |
</g> |
| 97 |
|
| 98 |
|
| 99 |
<g transform="translate(0,270)"> |
| 100 |
<use xlink:href="#Rect2" style="fill:none; stroke:blue; stroke-width:2"/> |
| 101 |
<image x="60" y="-10" width="20" height="50" xlink:href="../../resources/images/svg.png" |
| 102 |
onload="setPAR(evt,'xMinYMin slice')"/> |
| 103 |
<text font-size="10" x="35" y="60">xMin* slice</text> |
| 104 |
</g> |
| 105 |
|
| 106 |
|
| 107 |
<g transform="translate(150,270)"> |
| 108 |
<use xlink:href="#Rect2" style="fill:none; stroke:blue; stroke-width:2"/> |
| 109 |
<image x="60" y="-10" width="20" height="50" xlink:href="../../resources/images/svg.png" |
| 110 |
onload="setPAR(evt,'xMidYMin slice')"/> |
| 111 |
<text font-size="10" x="35" y="60">xMid* slice</text> |
| 112 |
</g> |
| 113 |
|
| 114 |
<g transform="translate(300,270)"> |
| 115 |
<use xlink:href="#Rect2" style="fill:none; stroke:blue; stroke-width:2"/> |
| 116 |
<image x="60" y="-10" width="20" height="50" xlink:href="../../resources/images/svg.png" |
| 117 |
onload="setPAR(evt,'xMaxYMin slice')"/> |
| 118 |
<text font-size="10" x="35" y="60">xMax* slice</text> |
| 119 |
</g> |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
<g transform="translate(0,370)"> |
| 124 |
<use xlink:href="#Rect1" style="fill:none; stroke:blue; stroke-width:2"/> |
| 125 |
<image x="40" y="0" width="50" height="20" xlink:href="../../resources/images/svg.png" |
| 126 |
onload="setPAR(evt,'xMinYMin slice')"/> |
| 127 |
<text font-size="10" x="35" y="60">*YMin slice</text> |
| 128 |
</g> |
| 129 |
|
| 130 |
|
| 131 |
<g transform="translate(150,370)"> |
| 132 |
<use xlink:href="#Rect1" style="fill:none; stroke:blue; stroke-width:2"/> |
| 133 |
<image x="40" y="0" width="50" height="20" xlink:href="../../resources/images/svg.png" |
| 134 |
onload="setPAR(evt,'xMinYMid slice')"/> |
| 135 |
<text font-size="10" x="35" y="60">*YMid slice</text> |
| 136 |
</g> |
| 137 |
|
| 138 |
<g transform="translate(300,370)"> |
| 139 |
<use xlink:href="#Rect1" style="fill:none; stroke:blue; stroke-width:2"/> |
| 140 |
<image x="40" y="0" width="50" height="20" xlink:href="../../resources/images/svg.png" |
| 141 |
onload="setPAR(evt,'xMinYMax slice')"/> |
| 142 |
<text font-size="10" x="35" y="60">*YMax slice</text> |
| 143 |
</g> |
| 144 |
|
| 145 |
</g> |
| 146 |
|
| 147 |
<!-- ============================================================= --> |
| 148 |
<!-- Batik sample mark --> |
| 149 |
<!-- ============================================================= --> |
| 150 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 151 |
|
| 152 |
</svg> |
| 153 |
|