| <?xml version="1.0" standalone="no"?> |
| <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" |
| "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> |
| |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| --> |
| <!-- ====================================================================== --> |
| <!-- use targets --> |
| <!-- --> |
| <!-- @author tkormann@ilog.fr --> |
| <!-- @version $Id$ --> |
| <!-- ====================================================================== --> |
| |
| <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> |
| |
| <svg width="450" height="500" viewBox="0 0 450 500" |
| xmlns="http://www.w3.org/2000/svg" |
| xmlns:xlink="http://www.w3.org/1999/xlink"> |
| |
| <title><use> Targets2</title> |
| |
| <!-- ============================================================= --> |
| <!-- Test content --> |
| <!-- ============================================================= --> |
| <text x="225" y="25" class="title"><use> Targets 2</text> |
| <g id="testContent" transform="translate(0 0)"> |
| |
| <defs> |
| <symbol id="symbol" viewBox="-100 -100 200 200" |
| style="stroke:crimson; stroke-width:8"> |
| <rect x="-100" y="-100" width="100%" height="100%" |
| style="fill:crimson; stroke:none"/> |
| <circle cx="0" cy="0" r="25%" style="fill:orange; stroke:gold"/> |
| </symbol> |
| |
| <svg id="svg" viewBox="-100 -100 200 200" |
| style="stroke:crimson; stroke-width:8"> |
| <rect x="-100" y="-100" width="100%" height="100%" |
| style="fill:crimson; stroke:none"/> |
| <circle cx="0" cy="0" r="25%" style="fill:orange; stroke:gold"/> |
| </svg> |
| </defs> |
| |
| <g id="board"> |
| <rect x="10" y="60" width="430" height="20" |
| style="fill:#aaa; stroke:black" /> |
| <rect x="10" y="80" width="430" height="100" |
| style="fill:#eee; stroke:black" /> |
| <text x="20" y="74"><use> references a <symbol></text> |
| |
| <g transform="translate(0 140)"> |
| <rect x="10" y="60" width="430" height="20" |
| style="fill:#aaa; stroke:black" /> |
| <rect x="10" y="80" width="430" height="100" |
| style="fill:#eee; stroke:black" /> |
| <text x="20" y="74"><use> references a <svg></text> |
| </g> |
| <g transform="translate(0 280)"> |
| <rect x="10" y="60" width="430" height="20" |
| style="fill:#aaa; stroke:black" /> |
| <rect x="10" y="80" width="430" height="100" |
| style="fill:#eee; stroke:black" /> |
| <text x="20" y="74"><use> references with percentages</text> |
| </g> |
| </g> |
| |
| <!-- ################################################### --> |
| <!-- use references symbol --> |
| <!-- ################################################### --> |
| |
| <!-- svg width x,y and transform --> |
| <use x="1000" y="1000" width="100" height="100" xlink:href="#symbol" |
| transform="translate(50 100) scale(.5) translate(-1000 -1000)"/> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="162" style="text-anchor:middle" |
| >x, y, w, h,<tspan x="75" dy="1.0em">transform</tspan></text> |
| |
| <!-- svg width transform --> |
| <g transform="translate(150 0)"> |
| <use width="100" height="100" xlink:href="#symbol" |
| transform="translate(50 100) scale(.5)"/> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="170" style="text-anchor:middle">w, h, transform</text> |
| </g> |
| |
| <!-- equivalent svg --> |
| <g transform="translate(300 0)"> |
| <g transform="translate(50 100) scale(.5) translate(-1000 -1000) translate(1000 1000)"> |
| <svg width="100" height="100" viewBox="-100 -100 200 200" |
| style="stroke:crimson; stroke-width:8"> |
| <rect x="-100" y="-100" width="100%" height="100%" |
| style="fill:crimson; stroke:none"/> |
| <circle cx="0" cy="0" r="25%" style="fill:orange; stroke:gold"/> |
| </svg> |
| </g> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="170" style="text-anchor:middle">equivalent svg</text> |
| </g> |
| |
| <!-- ################################################### --> |
| <!-- use references svg --> |
| <!-- ################################################### --> |
| |
| <!-- svg width x,y and transform --> |
| <g transform="translate(0 140)"> |
| <use x="1000" y="1000" width="100" height="100" xlink:href="#svg" |
| transform="translate(50 100) scale(.5) translate(-1000 -1000)"/> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="162" style="text-anchor:middle" |
| >x, y, w, h,<tspan x="75" dy="1.0em">transform</tspan></text> |
| </g> |
| |
| <!-- svg width transform --> |
| <g transform="translate(150 140)"> |
| <use width="100" height="100" xlink:href="#svg" |
| transform="translate(50 100) scale(.5)"/> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="170" style="text-anchor:middle">w, h, transform</text> |
| </g> |
| |
| <!-- equivalent svg --> |
| <g transform="translate(300 140)"> |
| <g transform="translate(50 100) scale(.5) translate(-1000 -1000) translate(1000 1000)"> |
| <svg width="100" height="100" viewBox="-100 -100 200 200" |
| style="stroke:crimson; stroke-width:8"> |
| <rect x="-100" y="-100" width="100%" height="100%" |
| style="fill:crimson; stroke:none"/> |
| <circle cx="0" cy="0" r="25%" style="fill:orange; stroke:gold"/> |
| </svg> |
| </g> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="170" style="text-anchor:middle">equivalent svg</text> |
| </g> |
| |
| <!-- ################################################### --> |
| <!-- use references with percentages --> |
| <!-- ################################################### --> |
| |
| <!-- svg width, height, x,y percentages --> |
| <g transform="translate(-10 280)"> |
| <use x="11.1111%" y="20%" width="11.1111%" height="10%" |
| xlink:href="#svg"/> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="162" style="text-anchor:middle" |
| >referencing svg<tspan x="75" dy="1.0em">x, y, w, h%</tspan></text> |
| </g> |
| |
| <!-- svg width transform --> |
| <g transform="translate(95 280)"> |
| <use x="50" y="100" width="11.1111%" height="10%" xlink:href="#svg" /> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="162" style="text-anchor:middle" |
| >referencing svg<tspan x="75" dy="1.0em">w, h%</tspan></text> |
| </g> |
| |
| <!-- symbol width, height, x, y, percentages --> |
| <g transform="translate(200 280)"> |
| <use x="11.1111%" y="20%" width="11.1111%" height="10%" |
| xlink:href="#symbol" /> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="162" style="text-anchor:middle" |
| >referencing symbol<tspan x="75" dy="1.0em">w, h%</tspan></text> |
| </g> |
| |
| <!-- symbol width, height, percentages --> |
| <g transform="translate(305 280)"> |
| <use x="50" y="100" width="11.1111%" height="10%" xlink:href="#symbol" /> |
| <rect x="48" y="98" width="4" height="4" style="fill:blue" /> |
| <text x="75" y="162" style="text-anchor:middle" |
| >referencing symbol<tspan x="75" dy="1.0em">w, h%</tspan></text> |
| </g> |
| |
| </g> |
| |
| <!-- ============================================================= --> |
| <!-- Batik sample mark --> |
| <!-- ============================================================= --> |
| <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> |
| |
| </svg> |