blob: 7f8b3c56fe19a8761713304e1c37946614fd33a1 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- =====================================================================-->
<!-- -->
<!-- animation-add-BE-06.svg -->
<!-- renamed for 1.1 suite to animate-elem-12-t.svg -->
<!-- -->
<!-- Test possible values for 'calcMode' -->
<!-- -->
<!-- Author : Jon Ferraiolo 11-Aug-2000 -->
<!-- Revised for 1.1 : Mathias Larsson Carlander Feb/12/2002 -->
<!-- Revised for SVGT/B : Mathias Larsson Carlander Jul/1/2002 -->
<!-- -->
<!-- History: -->
<!-- 11-Aug-2000, JF: Serial#1 created. -->
<!-- -->
<!-- =====================================================================-->
<!--======================================================================-->
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
<!--======================================================================-->
<svg version="1.1" baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<OperatorScript version="$Revision: 1.8 $" testname="animate-elem-12-t.svg">
<Paragraph>
Test possible values for 'calcMode="spline"'
</Paragraph>
<Paragraph>
Two animations have been defined. For each animation, ruler lines and text are provided to help show what the correct behavior is.
The black text and ruler lines help show the sizes and movement of the rectangles over time.
</Paragraph>
<Paragraph>
For calcMode='spline' in this test case, the initial rate of change is defined to be the same as linear, but the
last jump has an ease-in/ease-out effect where the change is slower at the start and end but faster in the middle.
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">animate-elem-12-t</title>
<desc id="test-desc">Test possible values for 'calcMode'</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<g font-family="Arial" font-size="30" >
<g transform="translate(20,50)">
<text x="0" y="203">at 0 sec.</text>
<text x="0" y="170">at 3 sec. </text>
<text x="0" y="114">at 6 sec. </text>
<text x="3" y="3">9+ sec. </text>
<g stroke="#800" stroke-width="4">
<line x1="120" y1="200" x2="170" y2="200"/>
<line x1="120" y1="167" x2="170" y2="167"/>
<line x1="120" y1="111" x2="170" y2="111"/>
<line x1="120" y1="0" x2="170" y2="0"/>
</g>
<rect x="140" y="-10" width="60" height="210" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
<animate id="an1" attributeName="height" calcMode="spline" keySplines="0,0,1,1;0,0,1,1;.75,0,0,.75" values="210;177;121;10" begin="0s" dur="9s" fill="freeze"/>
</rect>
</g>
<g transform="translate(250,50)">
<text x="0" y="203">at 0 sec.</text>
<text x="0" y="170">at 3 sec. </text>
<text x="0" y="114">at 6 sec. </text>
<text x="3" y="3">9+ sec. </text>
<g stroke="#800" stroke-width="4">
<line x1="120" y1="200" x2="170" y2="200"/>
<line x1="120" y1="167" x2="170" y2="167"/>
<line x1="120" y1="111" x2="170" y2="111"/>
<line x1="120" y1="0" x2="170" y2="0"/>
</g>
<rect x="140" y="-10" width="60" height="10" fill="#FFAA44" stroke="#FF00FF" stroke-width="4">
<animateMotion calcMode="spline" keySplines="0,0,1,1;0,0,1,1;.75,0,0,.75" values="0,200; 0,167; 0,111; 0,0" begin="0s" dur="9s" fill="freeze"/>
</rect>
</g>
</g>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.8 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>