Debian Codegraph @

samples/tests/spec12/filters/filterRegion.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 <!-- Filter extension attributes -->
25 <!-- -->
26 <!-- @author -->
27 <!-- @version $Id$ -->
28 <!-- ====================================================================== -->
29
30 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
31
32 <svg id="body" width="450" height="500" viewBox="0 0 450 500"
33 xml:space="preserve"
34 xmlns="http://www.w3.org/2000/svg" version="1.2"
35 xmlns:xlink="http://www.w3.org/1999/xlink" >
36
37 <title>Filter Extension Attributes</title>
38 <defs>
39 <filter id="DropShadow" x="-20%" y="-20%" width="250%" height="250%">
40 <feGaussianBlur in="SourceAlpha" stdDeviation="3" result="blurredAlpha"/>
41 <feOffset in="blurredAlpha" dx="3" dy="3" result="offsetBlurredAlpha"/>
42 <feFlood result="flooded" style="flood-color:rgb(0,0,0);flood-opacity:0.65"/>
43 <feComposite in="flooded" operator="in" in2="offsetBlurredAlpha"
44 result="coloredShadow"/>
45 <feComposite in="SourceGraphic" in2="coloredShadow" operator="over"/>
46 </filter>
47 <filter id="DropShadowExtended" mx="-12" my="-12" mw="24" mh="24">
48 <feGaussianBlur in="SourceAlpha" stdDeviation="3" result="blurredAlpha"/>
49 <feOffset in="blurredAlpha" dx="3" dy="3" result="offsetBlurredAlpha"/>
50 <feFlood result="flooded" style="flood-color:rgb(0,0,0);flood-opacity:0.65"/>
51 <feComposite in="flooded" operator="in" in2="offsetBlurredAlpha"
52 result="coloredShadow"/>
53 <feComposite in="SourceGraphic" in2="coloredShadow" operator="over"/>
54 </filter>
55 </defs>
56
57 <!-- ============================================================= -->
58 <!-- Test content -->
59 <!-- ============================================================= -->
60 <g id="testContent" class="legend" style="text-anchor:middle">
61 <text x="220" y="40" class="title">
62 Filter Extension Attributes
63 </text>
64 <g transform="translate(150 40)">
65 <g style="fill:#DAA;stroke:black">
66 <rect x="0" y="40" width="48" height="58" filter="url(#DropShadow)"/>
67 <rect x="0" y="110" width="48" height="2" filter="url(#DropShadow)"/>
68 <line x1="0" y1="130" x2="48" y2="130" filter="url(#DropShadow)"/>
69 <line x1="20" y1="140" x2="20" y2="170" filter="url(#DropShadow)"/>
70 </g>
71 <text x="20" y="195" text-anchor="middle">Without</text>
72 </g>
73 <g transform="translate(250 40)">
74 <g style="fill:#ADA;stroke:black;">
75 <rect x="0" y="40" width="48" height="58" filter="url(#DropShadowExtended)"/>
76 <rect x="0" y="110" width="48" height="2" filter="url(#DropShadowExtended)"/>
77 <line x1="0" y1="130" x2="48" y2="130" filter="url(#DropShadowExtended)"/>
78 <line x1="20" y1="140" x2="20" y2="170" filter="url(#DropShadowExtended)"/>
79 </g>
80 <text x="20" y="195" text-anchor="middle">With</text>
81 </g>
82 </g>
83
84 <!-- ============================================================= -->
85 <!-- Batik sample mark -->
86 <!-- ============================================================= -->
87 <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
88 </svg>
89