| 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 |
<!-- Drill down test on feImage --> |
| 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>feImage Test</title> |
| 34 |
|
| 35 |
<!-- ============================================================= --> |
| 36 |
<!-- Test content --> |
| 37 |
<!-- ============================================================= --> |
| 38 |
<g id="testContent"> |
| 39 |
|
| 40 |
<text x="225" y="40" class="title"> |
| 41 |
feImage Test |
| 42 |
</text> |
| 43 |
|
| 44 |
<defs> |
| 45 |
|
| 46 |
<symbol id="symbol" viewBox="0 0 1 1"> |
| 47 |
<circle cx="0.5" cy="0.5" r="0.5" fill="orange" /> |
| 48 |
</symbol> |
| 49 |
|
| 50 |
<svg id="svg" viewBox="0 0 1 1"> |
| 51 |
<circle cx="0.5" cy="0.5" r="0.5" fill="crimson" /> |
| 52 |
</svg> |
| 53 |
|
| 54 |
<g id="common"> |
| 55 |
<circle cx="20" cy="20" r="20" fill="gold" /> |
| 56 |
</g> |
| 57 |
|
| 58 |
<g id="commonBB"> |
| 59 |
<circle cx="0.5" cy="0.5" r="0.5" fill="gold" /> |
| 60 |
</g> |
| 61 |
|
| 62 |
<filter id="symbolFilter" filterUnits="userSpaceOnUse" x="40" y="40" width="40" height="40"> |
| 63 |
<feImage xlink:href="#symbol" result="image"/> |
| 64 |
</filter> |
| 65 |
|
| 66 |
<filter id="svgFilter" filterUnits="userSpaceOnUse" x="40" y="40" width="40" height="40"> |
| 67 |
<feImage xlink:href="#svg" result="image"/> |
| 68 |
</filter> |
| 69 |
|
| 70 |
<filter id="commonFilter" filterUnits="userSpaceOnUse" x="0" y="0" width="40" height="40"> |
| 71 |
<feImage xlink:href="#common" result="image"/> |
| 72 |
</filter> |
| 73 |
|
| 74 |
<filter id="symbolFilterBB" primitiveUnits="objectBoundingBox" |
| 75 |
filterUnits="userSpaceOnUse" x="40" y="40" width="40" height="40"> |
| 76 |
<feImage xlink:href="#symbol" result="image" x="1" y="1" width="1" height="1"/> |
| 77 |
</filter> |
| 78 |
|
| 79 |
<filter id="svgFilterBB" primitiveUnits="objectBoundingBox" |
| 80 |
filterUnits="userSpaceOnUse" x="40" y="40" width="40" height="40"> |
| 81 |
<feImage xlink:href="#svg" result="image" x="1" y="1" width="1" height="1"/> |
| 82 |
</filter> |
| 83 |
|
| 84 |
<filter id="commonFilterBB" primitiveUnits="objectBoundingBox" |
| 85 |
filterUnits="userSpaceOnUse" x="0" y="0" width="40" height="40"> |
| 86 |
<feImage xlink:href="#commonBB" result="image" x="0" y="0" width="1" height="1"/> |
| 87 |
</filter> |
| 88 |
|
| 89 |
</defs> |
| 90 |
|
| 91 |
<g transform="translate(0,50)"> |
| 92 |
<g transform="translate(50, 50)"> |
| 93 |
<use id="useSymbol" xlink:href="#symbol" x="40" y="40" width="40" height="40" /> |
| 94 |
<text x="60" y="30" text-anchor="middle"><symbol></text> |
| 95 |
</g> |
| 96 |
|
| 97 |
<g transform="translate(150, 50)"> |
| 98 |
<use id="useSvg" xlink:href="#svg" x="40" y="40" width="40" height="40" /> |
| 99 |
<text x="60" y="30" text-anchor="middle"><svg></text> |
| 100 |
</g> |
| 101 |
|
| 102 |
<g transform="translate(250, 50)"> |
| 103 |
<use xlink:href="#common" x="40" y="40"/> |
| 104 |
<text x="60" y="30" text-anchor="middle"><g></text> |
| 105 |
</g> |
| 106 |
</g> |
| 107 |
|
| 108 |
<g transform="translate(0, 150)"> |
| 109 |
<g transform="translate(50, 50)"> |
| 110 |
<g filter="url(#symbolFilter)" /> |
| 111 |
<text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage</tspan> |
| 112 |
<tspan x="60" y="30"><symbol></tspan></text> |
| 113 |
</g> |
| 114 |
<g transform="translate(150, 50)"> |
| 115 |
<g filter="url(#svgFilter)" /> |
| 116 |
<text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage</tspan> |
| 117 |
<tspan x="60" y="30"><svg></tspan></text> |
| 118 |
</g> |
| 119 |
<g transform="translate(250, 50)"> |
| 120 |
<g transform="translate(40, 40)" filter="url(#commonFilter)" /> |
| 121 |
<text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage</tspan> |
| 122 |
<tspan x="60" y="30"><g></tspan></text> |
| 123 |
</g> |
| 124 |
</g> |
| 125 |
|
| 126 |
<g transform="translate(0, 250)"> |
| 127 |
<g transform="translate(50, 50)"> |
| 128 |
<g filter="url(#symbolFilterBB)"> |
| 129 |
<rect width="40" height="40" /> |
| 130 |
</g> |
| 131 |
<text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage ObjBBox</tspan> |
| 132 |
<tspan x="60" y="30"><symbol></tspan></text> |
| 133 |
</g> |
| 134 |
|
| 135 |
<g transform="translate(150, 50)"> |
| 136 |
<g filter="url(#svgFilterBB)"> |
| 137 |
<rect width="40" height="40" /> |
| 138 |
</g> |
| 139 |
<text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage ObjBBox</tspan> |
| 140 |
<tspan x="60" y="30"><svg></tspan></text> |
| 141 |
</g> |
| 142 |
|
| 143 |
<g transform="translate(250, 50)"> |
| 144 |
<g transform="translate(40, 40)" filter="url(#commonFilterBB)"> |
| 145 |
<rect width="40" height="40" /> |
| 146 |
</g> |
| 147 |
<text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage ObjBBox</tspan> |
| 148 |
<tspan x="60" y="30"><g></tspan></text> |
| 149 |
</g> |
| 150 |
|
| 151 |
</g> |
| 152 |
|
| 153 |
</g> |
| 154 |
|
| 155 |
<!-- ============================================================= --> |
| 156 |
<!-- Batik sample mark --> |
| 157 |
<!-- ============================================================= --> |
| 158 |
<use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| 159 |
|
| 160 |
</svg> |