diff options
Diffstat (limited to 'extraplugins/diagram-definition/org.eclipse.papyrus.dd.editor/batik-1.7/samples/tests/spec/filters/feImage2.svg')
-rw-r--r-- | extraplugins/diagram-definition/org.eclipse.papyrus.dd.editor/batik-1.7/samples/tests/spec/filters/feImage2.svg | 160 |
1 files changed, 160 insertions, 0 deletions
diff --git a/extraplugins/diagram-definition/org.eclipse.papyrus.dd.editor/batik-1.7/samples/tests/spec/filters/feImage2.svg b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.editor/batik-1.7/samples/tests/spec/filters/feImage2.svg new file mode 100644 index 00000000000..d73541176f7 --- /dev/null +++ b/extraplugins/diagram-definition/org.eclipse.papyrus.dd.editor/batik-1.7/samples/tests/spec/filters/feImage2.svg @@ -0,0 +1,160 @@ +<?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. + +--> +<!-- ========================================================================= --> +<!-- Drill down test on feImage --> +<!-- --> +<!-- @author vincent.hardy@sun.com --> +<!-- @version $Id $ --> +<!-- ========================================================================= --> + +<?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?> + +<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"> +<title>feImage Test</title> + + <!-- ============================================================= --> + <!-- Test content --> + <!-- ============================================================= --> + <g id="testContent"> + + <text x="225" y="40" class="title"> + feImage Test + </text> + + <defs> + + <symbol id="symbol" viewBox="0 0 1 1"> + <circle cx="0.5" cy="0.5" r="0.5" fill="orange" /> + </symbol> + + <svg id="svg" viewBox="0 0 1 1"> + <circle cx="0.5" cy="0.5" r="0.5" fill="crimson" /> + </svg> + + <g id="common"> + <circle cx="20" cy="20" r="20" fill="gold" /> + </g> + + <g id="commonBB"> + <circle cx="0.5" cy="0.5" r="0.5" fill="gold" /> + </g> + + <filter id="symbolFilter" filterUnits="userSpaceOnUse" x="40" y="40" width="40" height="40"> + <feImage xlink:href="#symbol" result="image"/> + </filter> + + <filter id="svgFilter" filterUnits="userSpaceOnUse" x="40" y="40" width="40" height="40"> + <feImage xlink:href="#svg" result="image"/> + </filter> + + <filter id="commonFilter" filterUnits="userSpaceOnUse" x="0" y="0" width="40" height="40"> + <feImage xlink:href="#common" result="image"/> + </filter> + + <filter id="symbolFilterBB" primitiveUnits="objectBoundingBox" + filterUnits="userSpaceOnUse" x="40" y="40" width="40" height="40"> + <feImage xlink:href="#symbol" result="image" x="1" y="1" width="1" height="1"/> + </filter> + + <filter id="svgFilterBB" primitiveUnits="objectBoundingBox" + filterUnits="userSpaceOnUse" x="40" y="40" width="40" height="40"> + <feImage xlink:href="#svg" result="image" x="1" y="1" width="1" height="1"/> + </filter> + + <filter id="commonFilterBB" primitiveUnits="objectBoundingBox" + filterUnits="userSpaceOnUse" x="0" y="0" width="40" height="40"> + <feImage xlink:href="#commonBB" result="image" x="0" y="0" width="1" height="1"/> + </filter> + + </defs> + + <g transform="translate(0,50)"> + <g transform="translate(50, 50)"> + <use id="useSymbol" xlink:href="#symbol" x="40" y="40" width="40" height="40" /> + <text x="60" y="30" text-anchor="middle"><symbol></text> + </g> + + <g transform="translate(150, 50)"> + <use id="useSvg" xlink:href="#svg" x="40" y="40" width="40" height="40" /> + <text x="60" y="30" text-anchor="middle"><svg></text> + </g> + + <g transform="translate(250, 50)"> + <use xlink:href="#common" x="40" y="40"/> + <text x="60" y="30" text-anchor="middle"><g></text> + </g> + </g> + + <g transform="translate(0, 150)"> + <g transform="translate(50, 50)"> + <g filter="url(#symbolFilter)" /> + <text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage</tspan> + <tspan x="60" y="30"><symbol></tspan></text> + </g> + <g transform="translate(150, 50)"> + <g filter="url(#svgFilter)" /> + <text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage</tspan> + <tspan x="60" y="30"><svg></tspan></text> + </g> + <g transform="translate(250, 50)"> + <g transform="translate(40, 40)" filter="url(#commonFilter)" /> + <text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage</tspan> + <tspan x="60" y="30"><g></tspan></text> + </g> + </g> + + <g transform="translate(0, 250)"> + <g transform="translate(50, 50)"> + <g filter="url(#symbolFilterBB)"> + <rect width="40" height="40" /> + </g> + <text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage ObjBBox</tspan> + <tspan x="60" y="30"><symbol></tspan></text> + </g> + + <g transform="translate(150, 50)"> + <g filter="url(#svgFilterBB)"> + <rect width="40" height="40" /> + </g> + <text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage ObjBBox</tspan> + <tspan x="60" y="30"><svg></tspan></text> + </g> + + <g transform="translate(250, 50)"> + <g transform="translate(40, 40)" filter="url(#commonFilterBB)"> + <rect width="40" height="40" /> + </g> + <text x="60" y="30" text-anchor="middle"><tspan x="60" y="15">feImage ObjBBox</tspan> + <tspan x="60" y="30"><g></tspan></text> + </g> + + </g> + + </g> + + <!-- ============================================================= --> + <!-- Batik sample mark --> + <!-- ============================================================= --> + <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" /> + +</svg> |