tkormann    01/10/15 04:47:27

  Modified:    samples/tests/resources/svg defs.svg
  Added:       samples/tests/spec/structure useMultipleURI.svg
  Log:
  add a new test for multiple use (external and internal) with a gradient
  (external or internal).
  
  Revision  Changes    Path
  1.4       +36 -2     xml-batik/samples/tests/resources/svg/defs.svg
  
  Index: defs.svg
  ===================================================================
  RCS file: /home/cvs/xml-batik/samples/tests/resources/svg/defs.svg,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- defs.svg  2001/10/15 11:34:58     1.3
  +++ defs.svg  2001/10/15 11:47:27     1.4
  @@ -14,7 +14,7 @@
   <!-- Test description here                                                     -->
   <!--                                                                           -->
   <!-- @author [EMAIL PROTECTED]                                                  -->
  -<!-- @version $Id: defs.svg,v 1.3 2001/10/15 11:34:58 tkormann Exp $ -->
  +<!-- @version $Id: defs.svg,v 1.4 2001/10/15 11:47:27 tkormann Exp $ -->
   <!-- ========================================================================= -->
   
   <svg width="450" height="500" viewBox="0 0 450 500">
  @@ -183,7 +183,6 @@
   <!-- useMultiple.svg -->
   <!-- ###################################################################### -->
   
  -
   <rect id="extR1" x="0" y="0" width="80" height="80" />
   
   <g id="u21" style="fill:orange">
  @@ -196,6 +195,41 @@
        <rect x="0" y="0" width="80" height="80" fill="crimson" />
        <use xlink:href="../../spec/structure/useMultiple.svg#r1" x="20" y="20" 
width="80" height="80" />
        <use xlink:href="../../spec/structure/useMultiple.svg#r1" x="40" y="40" 
width="80" height="80" style="fill:gold" />
  +</g>
  +
  +<!-- ###################################################################### -->
  +<!-- useMultipleURI.svg -->
  +<!-- ###################################################################### -->
  +
  +<linearGradient id="extOrange">
  +     <stop style="stop-color:orange" offset="0" />
  +     <stop style="stop-color:white" offset="1" />
  +</linearGradient>
  +
  +<linearGradient id="extCrimson">
  +     <stop style="stop-color:crimson" offset="0" />
  +     <stop style="stop-color:white" offset="1" />
  +</linearGradient>
  +
  +<linearGradient id="extGold">
  +     <stop style="stop-color:gold" offset="0" />
  +     <stop style="stop-color:white" offset="1" />
  +</linearGradient>
  +
  +<rect id="extRR1" x="0" y="0" width="80" height="80" />
  +
  +<g id="uu21" style="fill:url(#extOrange)">
  +     <rect x="0" y="0" width="80" height="80" fill="url(#extCrimson)" />
  +     <use xlink:href="#extRR1" x="20" y="20" width="80" height="80" />
  +     <use xlink:href="#extRR1" x="40" y="40" width="80" height="80" 
  +             style="fill:url(../../spec/structure/useMultipleURI.svg#gold)" />
  +</g>
  +
  +<g id="uu22" style="fill:url(#extOrange)">
  +     <rect x="0" y="0" width="80" height="80" fill="url(#extCrimson)" />
  +     <use xlink:href="../../spec/structure/useMultipleURI.svg#r1" x="20" y="20" 
width="80" height="80" />
  +     <use xlink:href="../../spec/structure/useMultipleURI.svg#r1" x="40" y="40" 
width="80" height="80" 
  +             style="fill:url(../../spec/structure/useMultipleURI.svg#gold)" />
   </g>
   
   </defs>
  
  
  
  1.1                  xml-batik/samples/tests/spec/structure/useMultipleURI.svg
  
  Index: useMultipleURI.svg
  ===================================================================
  <?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";>
  
  <!-- ========================================================================= -->
  <!-- Copyright (C) The Apache Software Foundation. All rights reserved.        -->
  <!--                                                                           -->
  <!-- This software is published under the terms of the Apache Software License -->
  <!-- version 1.1, a copy of which has been included with this distribution in  -->
  <!-- the LICENSE file.                                                         -->
  <!-- ========================================================================= -->
  
  <!-- ========================================================================= -->
  <!-- Multiple use combined (external and internal)                             -->
  <!--                                                                           -->
  <!-- @author [EMAIL PROTECTED]                                                  -->
  <!-- @version $Id: useMultipleURI.svg,v 1.1 2001/10/15 11:47:27 tkormann Exp $ -->
  <!-- ========================================================================= -->
  
  <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>
  
  <svg width="450" height="500" viewBox="0 0 450 500">
  <title>Multiple &lt;use> with CSS property values: URIs</title>
  
      <!-- ============================================================= -->
      <!-- Test content                                                  -->
      <!-- ============================================================= -->
      <g id="testContent">
      <text x="225" y="50" class="title">Multiple &lt;use> with CSS property values: 
URIs</text>
      <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>
  
  <!-- ############################### -->
  <g id="board" style="fill:none; stroke:black;">
  
        <rect x="75" y="100" width="150" height="20" style="fill:#eee"/>
        <rect x="225" y="100" width="150" height="20" style="fill:#eee"/>
  
        <rect x="55" y="120" width="20" height="150" style="fill:#eee"/>
        <rect x="55" y="270" width="20" height="150" style="fill:#eee"/>
  
        <rect x="75" y="120" width="150" height="300"/>
        <rect x="225" y="120" width="150" height="300"/>
  
        <line x1="75" y1="270" x2="375" y2="270" />
  
        <g style="font-size:12; text-anchor:middle; fill:black; stroke:none">
                <text x="150" y="114">&lt;use></text>
                <text x="300" y="114">External &lt;use></text>
  
                <text x="0" y="0" transform="translate(70 195) 
rotate(-90)">&lt;use></text>
                <text x="0" y="0" transform="translate(70 345) rotate(-90)">External 
&lt;use></text>
        </g>
  </g>
  
  <defs>
  
  <linearGradient id="crimson">
        <stop style="stop-color:crimson" offset="0" />
        <stop style="stop-color:white" offset="1" />
  </linearGradient>
  
  <linearGradient id="orange">
        <stop style="stop-color:orange" offset="0" />
        <stop style="stop-color:white" offset="1" />
  </linearGradient>
  
  <linearGradient id="gold">
        <stop style="stop-color:gold" offset="0" />
        <stop style="stop-color:white" offset="1" />
  </linearGradient>
  
  <rect id="r1" x="0" y="0" width="80" height="80" />
  
  <g id="uu11" style="fill:url(#orange)">
        <rect x="0" y="0" width="80" height="80" fill="url(#crimson)" />
        <use xlink:href="#r1" x="20" y="20" width="80" height="80" />
        <use xlink:href="#r1" x="40" y="40" width="80" height="80" 
style="fill:url(../../resources/svg/defs.svg#extGold)" />
  </g>
  
  <g id="uu12" style="fill:url(#orange)">
        <rect x="0" y="0" width="80" height="80" fill="url(#crimson)" />
        <use xlink:href="../../resources/svg/defs.svg#extR1" x="20" y="20" width="80" 
height="80" />
        <use xlink:href="../../resources/svg/defs.svg#extR1" x="40" y="40" width="80" 
height="80" style="fill:url(../../resources/svg/defs.svg#extGold)" />
  </g>
  
  </defs>
  
  <use xlink:href="#uu11" x="90" y="130" />
  
  <use xlink:href="../../resources/svg/defs.svg#uu21" x="240" y="130" />
  
  <use xlink:href="#uu12" x="90" y="280" />
  
  <use xlink:href="../../resources/svg/defs.svg#uu22" x="240" y="280" />
  
  
      </g>
  
      <!-- ============================================================= -->
      <!-- Batik sample mark                                             -->
      <!-- ============================================================= -->
      <use xlink:href="../../../batikLogo.svg#Batik_Tag_Box" />
      
  </svg>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to