You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by vh...@apache.org on 2001/09/05 11:29:54 UTC
cvs commit: xml-batik/samples/tests symbolViewBoxOverflow.svg symbolViewBoxClip.svg symbolViewBox.svg
vhardy 01/09/05 02:29:54
Modified: samples/tests symbolViewBox.svg
Added: samples/tests symbolViewBoxOverflow.svg
symbolViewBoxClip.svg
Log:
Refined test on viewBox/preserverAspectRatio/clip. Uncovered bug on clip
which has been corrected (by Thierry).
Revision Changes Path
1.2 +189 -94 xml-batik/samples/tests/symbolViewBox.svg
Index: symbolViewBox.svg
===================================================================
RCS file: /home/cvs/xml-batik/samples/tests/symbolViewBox.svg,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- symbolViewBox.svg 2001/08/16 14:54:29 1.1
+++ symbolViewBox.svg 2001/09/05 09:29:54 1.2
@@ -15,7 +15,7 @@
<!-- for <symbol> elements. -->
<!-- -->
<!-- @author vhardy@apache.org -->
-<!-- @version $Id: symbolViewBox.svg,v 1.1 2001/08/16 14:54:29 vhardy Exp $ -->
+<!-- @version $Id: symbolViewBox.svg,v 1.2 2001/09/05 09:29:54 vhardy Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
@@ -125,15 +125,20 @@
<text x="-15" y="400" transform="rotate(-90, -15, 400)">none</text>
<use xlink:href="#row" class="oddRow" transform="translate(0,360)" />
+ <line x1="55" y1="20" x2="55" y2="420" stroke="black" />
+ <line x1="165" y1="20" x2="165" y2="420" stroke="black" />
+ <line x1="275" y1="20" x2="275" y2="420" stroke="black" />
</g>
<g id="testCases" transform="translate(80, 80)">
<defs>
- <rect id="viewBox" x="20" y="2" width="70" height="36" stroke="red" fill="none"/>
+ <rect id="hViewBox" x="5" y="5" width="45" height="30" stroke="red" fill="none"/>
+ <rect id="vViewBox" x="70" y="5" width="25" height="30" stroke="red" fill="none"/>
<g id="smilley">
<g transform="translate(-15,-15)" >
- <circle cx="10" cy="25" r="4" fill="crimson" />
- <circle cx="20" cy="25" r="4" fill="crimson" />
+ <rect x="5" y="5" width="20" height="20" fill="black" />
+ <!-- <circle cx="10" cy="25" r="4" fill="crimson" />
+ <circle cx="20" cy="25" r="4" fill="crimson" /> -->
<circle cx="15" cy="15" r="10" fill="yellow"/>
<circle cx="12" cy="12" r="1.5" fill="black"/>
<circle cx="17" cy="12" r="1.5" fill="black"/>
@@ -147,81 +152,108 @@
<!-- ... YMin XXX -->
<g>
<g>
- <symbol id="xMinYMinMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMin meet">
+ <symbol id="xMinYMinMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMin meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMinMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMinMeet" x="5" y="5" width="40" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMinMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMinYMinSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMin slice">
+ <symbol id="xMinYMinSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMin slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMinSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMinSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMinSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMinYMinUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMin">
+ <symbol id="xMinYMinUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMin">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMinUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMinUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMinUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
- <symbol id="xMinYMidMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMid meet">
+ <symbol id="xMinYMidMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMidMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMidMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMidMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMinYMidSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMid slice">
+ <symbol id="xMinYMidSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMidSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMidSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMidSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMinYMidUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMid">
+ <symbol id="xMinYMidUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMidUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMidUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMidUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
- <symbol id="xMinYMaxMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMax meet">
+ <symbol id="xMinYMaxMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMaxMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMaxMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMaxMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMinYMaxSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMax slice">
+ <symbol id="xMinYMaxSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMaxSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMaxSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMaxSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMinYMaxUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMinYMax">
+ <symbol id="xMinYMaxUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMinYMaxUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMinYMaxUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMinYMaxUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
</g>
@@ -232,81 +264,108 @@
<!-- ... YMin XXX -->
<g>
<g>
- <symbol id="xMidYMinMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMin meet">
+ <symbol id="xMidYMinMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMinMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMinMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMinMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMidYMinSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMin slice">
+ <symbol id="xMidYMinSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMinSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMinSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMinSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMidYMinUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMin">
+ <symbol id="xMidYMinUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMinUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMinUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMinUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
- <symbol id="xMidYMidMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMid meet">
+ <symbol id="xMidYMidMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMidMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMidMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMidMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMidYMidSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMid slice">
+ <symbol id="xMidYMidSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMidSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMidSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMidSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMidYMidUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMid">
+ <symbol id="xMidYMidUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMidUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMidUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMidUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
- <symbol id="xMidYMaxMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMax meet">
+ <symbol id="xMidYMaxMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMaxMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMaxMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMaxMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMidYMaxSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMax slice">
+ <symbol id="xMidYMaxSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMaxSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMaxSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMaxSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMidYMaxUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMidYMax">
+ <symbol id="xMidYMaxUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMidYMaxUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMidYMaxUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMidYMaxUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
</g>
@@ -316,81 +375,108 @@
<!-- ... YMin XXX -->
<g>
<g>
- <symbol id="xMaxYMinMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMin meet">
+ <symbol id="xMaxYMinMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMinMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMinMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMinMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMaxYMinSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMin slice">
+ <symbol id="xMaxYMinSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMinSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMinSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMinSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMaxYMinUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMin">
+ <symbol id="xMaxYMinUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMinUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMinUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMinUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
- <symbol id="xMaxYMidMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMid meet">
+ <symbol id="xMaxYMidMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMidMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMidMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMidMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMaxYMidSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMid slice">
+ <symbol id="xMaxYMidSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMidSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMidSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMidSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMaxYMidUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMid">
+ <symbol id="xMaxYMidUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMidUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMidUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMidUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
- <symbol id="xMaxYMaxMeet" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMax meet">
+ <symbol id="xMaxYMaxMeet" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMaxMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMaxMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMaxMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="xMaxYMaxSlice" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMax slice">
+ <symbol id="xMaxYMaxSlice" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMaxSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMaxSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMaxSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="xMaxYMaxUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="xMaxYMax">
+ <symbol id="xMaxYMaxUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#xMaxYMaxUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#xMaxYMaxUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#xMaxYMaxUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
</g>
@@ -400,27 +486,36 @@
<g transform="translate(0,360)">
<g>
<g>
- <symbol id="noneMeet" viewBox="-10 -10 20 23" preserveAspectRatio="none meet">
+ <symbol id="noneMeet" viewBox="-10 -10 20 20" preserveAspectRatio="none meet">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#noneMeet" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#noneMeet" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#noneMeet" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
- <symbol id="noneSlice" viewBox="-10 -10 20 23" preserveAspectRatio="none slice">
+ <symbol id="noneSlice" viewBox="-10 -10 20 20" preserveAspectRatio="none slice">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#noneSlice" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#noneSlice" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#noneSlice" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
- <symbol id="noneUnspecified" viewBox="-10 -10 20 23" preserveAspectRatio="none">
+ <symbol id="noneUnspecified" viewBox="-10 -10 20 20" preserveAspectRatio="none">
<use xlink:href="#smilley" />
</symbol>
- <use xlink:href="#noneUnspecified" x="20" y="2" width="70" height="36" />
- <use xlink:href="#viewBox" />
+ <use xlink:href="#noneUnspecified" x="5" y="5" width="45" height="30" />
+ <use xlink:href="#hViewBox" />
+
+ <use xlink:href="#noneUnspecified" x="70" y="5" width="25" height="30" />
+ <use xlink:href="#vViewBox" />
</g>
</g>
1.1 xml-batik/samples/tests/symbolViewBoxOverflow.svg
Index: symbolViewBoxOverflow.svg
===================================================================
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
<!-- ========================================================================= -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved. -->
<!-- -->
<!-- This software is published under the terms of the Apache Software License -->
<!-- version 1.1, a copy of which has been included with this distribution in -->
<!-- the LICENSE file. -->
<!-- ========================================================================= -->
<!-- ========================================================================= -->
<!-- This example validates the handling of viewBox and preserveAspectRatio -->
<!-- for <symbol> elements with overflow set to visible. <symbol> elements -->
<!-- establish a new viewport and therefore, the overflow property applies. -->
<!-- -->
<!-- @author vhardy@apache.org -->
<!-- @version $Id: symbolViewBoxOverflow.svg,v 1.1 2001/09/05 09:29:54 vhardy Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
<svg id="body" width="450" height="500" viewBox="0 0 450 500">
<title><symbol> and viewBox & preserveAspectRatio</title>
<style type="text/css"><![CDATA[
.label { text-anchor: middle; }
.oddRow { fill:white; stroke:black; }
.evenRow { fill:#eeeeee; stroke:black; }
]]></style>
<g id="content">
<text class="title" x="50%" y="40">viewBox & preserveAspectRatio on <symbol>
<title>viewBox & preserveAspectRatio on <symbol></title>
<desc>This test validates the processing of viewBox and preserveAspectRatio
on <symbol> elements in conjunction with the overflow property.
In this test, there should be no clipping around the viewBox boundaries
and the smilley's ears and feet should show.</desc></text>
<g id="table" class="label" transform="translate(80, 60)">
<rect width="110" height="20" class="oddRow" />
<text x="55" y="15">meet</text>
<rect width="110" height="20" class="oddRow" transform="translate(110,0)"/>
<text x="55" y="15" transform="translate(110, 0)">slice</text>
<rect width="110" height="20" class="oddRow" transform="translate(220,0)"/>
<text x="55" y="15" transform="translate(220, 0)">unspecified</text>
<g id="yMXX">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMin</text>
<g transform="translate(0,40)">
<rect x="-20" y="20" width="20" height="40" class="evenRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMid</text>
</g>
<g transform="translate(0,80)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMax</text>
</g>
</g>
<g transform="translate(0,120)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMin</text>
<g transform="translate(0,40)">
<rect x="-20" y="20" width="20" height="40" class="evenRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMid</text>
</g>
<g transform="translate(0,80)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMax</text>
</g>
</g>
<g transform="translate(0,240)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMin</text>
<g transform="translate(0,40)">
<rect x="-20" y="20" width="20" height="40" class="evenRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMid</text>
</g>
<g transform="translate(0,80)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMax</text>
</g>
</g>
<rect x="-40" y="20" width="20" height="120" class="evenRow" />
<text x="-25" y="80" transform="rotate(-90,-25,80)">xMin</text>
<g transform="translate(0,120)">
<rect x="-40" y="20" width="20" height="120" class="oddRow" />
<text x="-25" y="80" transform="rotate(-90,-25,80)">xMid</text>
</g>
<g transform="translate(0,240)">
<rect x="-40" y="20" width="20" height="120" class="evenRow" />
<text x="-25" y="80" transform="rotate(-90,-25,80)">xMax</text>
</g>
<defs>
<g id="row">
<rect width="110" height="40" transform="translate(0 ,20)"/>
<rect width="110" height="40" transform="translate(110,20)"/>
<rect width="110" height="40" transform="translate(220,20)"/>
</g>
</defs>
<g id="evenRowBlock">
<use xlink:href="#row" class="evenRow" transform="translate(0,0)"/>
<use xlink:href="#row" class="oddRow" transform="translate(0,40)"/>
<use xlink:href="#row" class="evenRow" transform="translate(0,80)"/>
</g>
<g id="oddRowBlock" transform="translate(0,120)">
<use xlink:href="#row" class="oddRow" transform="translate(0,0)"/>
<use xlink:href="#row" class="evenRow" transform="translate(0,40)"/>
<use xlink:href="#row" class="oddRow" transform="translate(0,80)"/>
</g>
<use xlink:href="#evenRowBlock" transform="translate(0,240)"/>
<rect x="-40" y="380" width="40" height="40" fill="white" stroke="black" />
<text x="-15" y="400" transform="rotate(-90, -15, 400)">none</text>
<use xlink:href="#row" class="oddRow" transform="translate(0,360)" />
<line x1="55" y1="20" x2="55" y2="420" stroke="black" />
<line x1="165" y1="20" x2="165" y2="420" stroke="black" />
<line x1="275" y1="20" x2="275" y2="420" stroke="black" />
</g>
<g id="testCases" transform="translate(80, 80)">
<defs>
<rect id="hViewBox" x="12.5" y="7.5" width="30" height="25" stroke="red" fill="none"/>
<rect id="vViewBox" x="72.5" y="7.5" width="20" height="25" stroke="red" fill="none"/>
<g id="smilley">
<g transform="translate(-15,-15)" >
<circle cx="10" cy="25" r="4" fill="crimson" />
<circle cx="20" cy="25" r="4" fill="crimson" />
<circle cx="7" cy="15" r="4" fill="crimson" />
<circle cx="23" cy="15" r="4" fill="crimson" />
<circle cx="15" cy="15" r="10" fill="yellow"/>
<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" fill="none"/>
</g>
</g>
</defs>
<!-- xMinYXXX XXX -->
<g>
<!-- ... YMin XXX -->
<g>
<g>
<symbol id="xMinYMinMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMin meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMinMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMinMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMinYMinSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMin slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMinSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMinSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMinYMinUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMin">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMinUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMinUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
<symbol id="xMinYMidMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMidMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMidMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMinYMidSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMidSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMidSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMinYMidUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMidUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMidUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
<symbol id="xMinYMaxMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMaxMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMaxMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMinYMaxSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMaxSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMaxSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMinYMaxUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMaxUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMinYMaxUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
</g>
<!-- xMidYXXX XXX -->
<g transform="translate(0, 120)">
<!-- ... YMin XXX -->
<g>
<g>
<symbol id="xMidYMinMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMinMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMinMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMidYMinSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMinSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMinSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMidYMinUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMinUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMinUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
<symbol id="xMidYMidMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMidMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMidMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMidYMidSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMidSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMidSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMidYMidUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMidUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMidUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
<symbol id="xMidYMaxMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMaxMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMaxMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMidYMaxSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMaxSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMaxSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMidYMaxUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMaxUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMidYMaxUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
</g>
<!-- xMaxYXXX XXX -->
<g transform="translate(0, 240)">
<!-- ... YMin XXX -->
<g>
<g>
<symbol id="xMaxYMinMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMinMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMinMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMaxYMinSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMinSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMinSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMaxYMinUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMinUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMinUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
<symbol id="xMaxYMidMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMidMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMidMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMaxYMidSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMidSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMidSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMaxYMidUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMidUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMidUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
<symbol id="xMaxYMaxMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMaxMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMaxMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMaxYMaxSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMaxSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMaxSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMaxYMaxUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMaxUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#xMaxYMaxUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
</g>
<!-- none XXX -->
<g transform="translate(0,360)">
<g>
<g>
<symbol id="noneMeet" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="none meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#noneMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#noneMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="noneSlice" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="none slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#noneSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#noneSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="noneUnspecified" overflow="visible" viewBox="-10 -10 20 20" preserveAspectRatio="none">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#noneUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#noneUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
</g>
</g>
</g>
</g>
</g><!-- "content" -->
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
</svg>
1.1 xml-batik/samples/tests/symbolViewBoxClip.svg
Index: symbolViewBoxClip.svg
===================================================================
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
<!-- ========================================================================= -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved. -->
<!-- -->
<!-- This software is published under the terms of the Apache Software License -->
<!-- version 1.1, a copy of which has been included with this distribution in -->
<!-- the LICENSE file. -->
<!-- ========================================================================= -->
<!-- ========================================================================= -->
<!-- This example validates the handling of viewBox and preserveAspectRatio -->
<!-- for <symbol> elements with overflow set to hidden and a clip specified. -->
<!-- <symbol> elements establish a new viewport and therefore, the overflow -->
<!-- property applies. -->
<!-- -->
<!-- @author vhardy@apache.org -->
<!-- @version $Id: symbolViewBoxClip.svg,v 1.1 2001/09/05 09:29:54 vhardy Exp $ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
<svg id="body" width="450" height="500" viewBox="0 0 450 500">
<title><symbol> and viewBox & preserveAspectRatio</title>
<style type="text/css"><![CDATA[
.label { text-anchor: middle; }
.oddRow { fill:white; stroke:black; }
.evenRow { fill:#eeeeee; stroke:black; }
]]></style>
<g id="content">
<text class="title" x="50%" y="40">viewBox & preserveAspectRatio on <symbol>
<title>viewBox & preserveAspectRatio on <symbol></title>
<desc>This test validates the processing of viewBox and preserveAspectRatio
on <symbol> elements in conjunction with the overflow property.
In this test, there should be a clipping beyond the viewBox boundaries
and the smilley's ears and feet should show partially.</desc></text>
<g id="table" class="label" transform="translate(80, 60)">
<rect width="110" height="20" class="oddRow" />
<text x="55" y="15">meet</text>
<rect width="110" height="20" class="oddRow" transform="translate(110,0)"/>
<text x="55" y="15" transform="translate(110, 0)">slice</text>
<rect width="110" height="20" class="oddRow" transform="translate(220,0)"/>
<text x="55" y="15" transform="translate(220, 0)">unspecified</text>
<g id="yMXX">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMin</text>
<g transform="translate(0,40)">
<rect x="-20" y="20" width="20" height="40" class="evenRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMid</text>
</g>
<g transform="translate(0,80)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMax</text>
</g>
</g>
<g transform="translate(0,120)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMin</text>
<g transform="translate(0,40)">
<rect x="-20" y="20" width="20" height="40" class="evenRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMid</text>
</g>
<g transform="translate(0,80)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMax</text>
</g>
</g>
<g transform="translate(0,240)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMin</text>
<g transform="translate(0,40)">
<rect x="-20" y="20" width="20" height="40" class="evenRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMid</text>
</g>
<g transform="translate(0,80)">
<rect x="-20" y="20" width="20" height="40" class="oddRow" />
<text x="-5" y="40" transform="rotate(-90,-5,40)">yMax</text>
</g>
</g>
<rect x="-40" y="20" width="20" height="120" class="evenRow" />
<text x="-25" y="80" transform="rotate(-90,-25,80)">xMin</text>
<g transform="translate(0,120)">
<rect x="-40" y="20" width="20" height="120" class="oddRow" />
<text x="-25" y="80" transform="rotate(-90,-25,80)">xMid</text>
</g>
<g transform="translate(0,240)">
<rect x="-40" y="20" width="20" height="120" class="evenRow" />
<text x="-25" y="80" transform="rotate(-90,-25,80)">xMax</text>
</g>
<defs>
<g id="row">
<rect width="110" height="40" transform="translate(0 ,20)"/>
<rect width="110" height="40" transform="translate(110,20)"/>
<rect width="110" height="40" transform="translate(220,20)"/>
</g>
</defs>
<g id="evenRowBlock">
<use xlink:href="#row" class="evenRow" transform="translate(0,0)"/>
<use xlink:href="#row" class="oddRow" transform="translate(0,40)"/>
<use xlink:href="#row" class="evenRow" transform="translate(0,80)"/>
</g>
<g id="oddRowBlock" transform="translate(0,120)">
<use xlink:href="#row" class="oddRow" transform="translate(0,0)"/>
<use xlink:href="#row" class="evenRow" transform="translate(0,40)"/>
<use xlink:href="#row" class="oddRow" transform="translate(0,80)"/>
</g>
<use xlink:href="#evenRowBlock" transform="translate(0,240)"/>
<rect x="-40" y="380" width="40" height="40" fill="white" stroke="black" />
<text x="-15" y="400" transform="rotate(-90, -15, 400)">none</text>
<use xlink:href="#row" class="oddRow" transform="translate(0,360)" />
<line x1="55" y1="20" x2="55" y2="420" stroke="black" />
<line x1="165" y1="20" x2="165" y2="420" stroke="black" />
<line x1="275" y1="20" x2="275" y2="420" stroke="black" />
</g>
<g id="testCases" transform="translate(80, 80)">
<defs>
<rect id="hViewBox" x="12.5" y="7.5" width="30" height="25" stroke="red" fill="none"/>
<rect id="vViewBox" x="72.5" y="7.5" width="20" height="25" stroke="red" fill="none"/>
<rect id="hClipBox" x="14.5" y="12.5" width="24" height="17" stroke="#0A0" fill="none"/>
<rect id="vClipBox" x="74.5" y="12.5" width="14" height="17" stroke="#0A0" fill="none"/>
<g id="smilley">
<g transform="translate(-15,-15)" >
<circle cx="10" cy="25" r="4" fill="crimson" />
<circle cx="20" cy="25" r="4" fill="crimson" />
<circle cx="7" cy="15" r="4" fill="crimson" />
<circle cx="23" cy="15" r="4" fill="crimson" />
<circle cx="15" cy="15" r="10" fill="yellow"/>
<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" fill="none"/>
</g>
</g>
</defs>
<!-- xMinYXXX XXX -->
<g>
<!-- ... YMin XXX -->
<g>
<g>
<symbol id="xMinYMinMeet" overflow="hidden" viewBox="-10 -10 20 20" clip="rect(5,4,3,2)" preserveAspectRatio="xMinYMin meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMinMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMinMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMinYMinSlice" overflow="hidden" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMin slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMinSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMinSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMinYMinUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMin">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMinUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMinUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
<symbol id="xMinYMidMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMidMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMidMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMinYMidSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMidSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMidSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMinYMidUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMid">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMidUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMidUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
<symbol id="xMinYMaxMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMaxMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMaxMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMinYMaxSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMaxSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMaxSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMinYMaxUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMinYMax">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMinYMaxUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMinYMaxUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
</g>
<!-- xMidYXXX XXX -->
<g transform="translate(0, 120)">
<!-- ... YMin XXX -->
<g>
<g>
<symbol id="xMidYMinMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMinMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMinMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMidYMinSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMinSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMinSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMidYMinUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMin">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMinUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMinUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
<symbol id="xMidYMidMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMidMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMidMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMidYMidSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMidSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMidSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMidYMidUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMid">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMidUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMidUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
<symbol id="xMidYMaxMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMaxMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMaxMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMidYMaxSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMaxSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMaxSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMidYMaxUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMidYMax">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMidYMaxUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMidYMaxUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
</g>
<!-- xMaxYXXX XXX -->
<g transform="translate(0, 240)">
<!-- ... YMin XXX -->
<g>
<g>
<symbol id="xMaxYMinMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMinMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMinMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMaxYMinSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMinSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMinSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMaxYMinUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMin">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMinUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMinUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
<!-- ... YMid XXX -->
<g transform="translate(0, 40)">
<g>
<symbol id="xMaxYMidMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMidMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMidMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMaxYMidSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMidSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMidSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMaxYMidUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMid">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMidUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMidUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
<!-- ... YMax XXX -->
<g transform="translate(0, 80)">
<g>
<symbol id="xMaxYMaxMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMaxMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMaxMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="xMaxYMaxSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMaxSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMaxSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="xMaxYMaxUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="xMaxYMax">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#xMaxYMaxUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#xMaxYMaxUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
</g>
<!-- none XXX -->
<g transform="translate(0,360)">
<g>
<g>
<symbol id="noneMeet" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="none meet">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#noneMeet" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#noneMeet" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(110, 0)">
<symbol id="noneSlice" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="none slice">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#noneSlice" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#noneSlice" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
<g transform="translate(220, 0)">
<symbol id="noneUnspecified" overflow="hidden" clip="rect(5,4,3,2)" viewBox="-10 -10 20 20" preserveAspectRatio="none">
<use xlink:href="#smilley" />
</symbol>
<use xlink:href="#noneUnspecified" x="12.5" y="7.5" width="30" height="25" />
<use xlink:href="#hViewBox" />
<use xlink:href="#hClipBox" />
<use xlink:href="#noneUnspecified" x="72.5" y="7.5" width="20" height="25" />
<use xlink:href="#vViewBox" />
<use xlink:href="#vClipBox" />
</g>
</g>
</g>
</g>
</g><!-- "content" -->
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="../batikLogo.svg#Batik_Tag_Box" />
</svg>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org