Debian Codegraph @

samples/tests/spec/structure/useTargets.svg

raw
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 <!-- Alternate stylesheets -->
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" width="450" height="500" viewBox="0 0 450 500">
33 <title>&lt;use> targets</title>
34
35 <!-- ============================================================= -->
36 <!-- Test content -->
37 <!-- ============================================================= -->
38 <g id="testContent">
39 <text x="225" y="50" class="title">&lt;use> targets</text>
40 <text x="225" y="70" style="text-anchor:middle; font-size:12; font-style:italic">This file is using the defs.svg file to get the external resources</text>
41
42 <!-- ############################### -->
43 <g id="board" style="fill:none; stroke:black;">
44
45 <rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
46 <rect x="225" y="100" width="150" height="20" style="fill:#eee"/>
47
48 <rect x="55" y="120" width="20" height="100" style="fill:#eee"/>
49 <rect x="55" y="220" width="20" height="100" style="fill:#eee"/>
50 <rect x="55" y="320" width="20" height="100" style="fill:#eee"/>
51
52 <rect x="75" y="120" width="150" height="300"/>
53 <rect x="225" y="120" width="150" height="300"/>
54
55 <line x1="75" y1="220" x2="375" y2="220" />
56 <line x1="75" y1="320" x2="375" y2="320" />
57
58 <g style="font-size:12; text-anchor:middle; fill:black; stroke:none">
59 <text x="150" y="114">&lt;use></text>
60 <text x="300" y="114">External &lt;use></text>
61
62 <text x="0" y="0" transform="translate(70 170) rotate(-90)">Symbol</text>
63 <text x="0" y="0" transform="translate(70 270) rotate(-90)">SVG</text>
64 <text x="0" y="0" transform="translate(70 370) rotate(-90)">Other</text>
65 </g>
66 </g>
67
68 <defs>
69
70 <symbol id="symbol" viewBox="-50 -50 100 100" style="stroke:crimson; stroke-width:4">
71 <rect x="-50" y="-50" width="100%" height="100%" style="fill:gold; stroke:none"/>
72 <circle cx="0" cy="0" r="25%"/>
73 </symbol>
74
75 <svg id="svg" width="50" height="50" viewBox="-50 -50 100 100" style="stroke:crimson; stroke-width:4">
76 <rect x="-50" y="-50" width="100%" height="100%" style="fill:gold; stroke:none"/>
77 <circle cx="0" cy="0" r="25%"/>
78 </svg>
79
80 <g id="other" style="stroke:crimson; stroke-width:4">
81 <rect x="-50" y="-50" width="100" height="100" style="fill:gold; stroke:none"/>
82 <circle cx="0" cy="0" r="25"/>
83 </g>
84
85 </defs>
86
87 <!-- ### use ### -->
88 <use xlink:href="#symbol" x="115" y="130" width="75" height="75" style="fill:orange" />
89 <rect x="115" y="130" width="75" height="75" style="stroke:black; fill:none;" />
90
91 <use xlink:href="#svg" x="115" y="230" width="75" height="75" style="fill:orange" />
92 <rect x="115" y="230" width="75" height="75" style="stroke:black; fill:none;" />
93
94 <use xlink:href="#other" x="115" y="330" style="fill:orange"
95 transform="translate(152.5, 367.5) scale(.75) translate(-115 -330)"/>
96 <rect x="115" y="330" width="75" height="75" style="stroke:black; fill:none;" />
97
98
99 <!-- ### external use ### -->
100 <use xlink:href="../../resources/svg/defs.svg#extSymbol" x="265" y="130" width="75" height="75" style="fill:orange" />
101 <rect x="265" y="130" width="75" height="75" style="stroke:black; fill:none;" />
102
103 <use xlink:href="../../resources/svg/defs.svg#extSvg" x="265" y="230" width="75" height="75" style="fill:orange" />
104 <rect x="265" y="230" width="75" height="75" style="stroke:black; fill:none;" />
105
106 <use xlink:href="../../resources/svg/defs.svg#extOther" x="265" y="330" style="fill:orange"
107 transform="translate(302.5, 367.5) scale(.75) translate(-265, -330)"/>
108 <rect x="265" y="330" width="75" height="75" style="stroke:black; fill:none;" />
109
110 </g>
111
112 <!-- ============================================================= -->
113 <!-- Batik sample mark -->
114 <!-- ============================================================= -->
115 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
116
117 </svg>