Bug 42968 - Clipping area of filter appears to be too small when using animateMotion
Summary: Clipping area of filter appears to be too small when using animateMotion
Status: RESOLVED DUPLICATE of bug 23443
Alias: None
Product: Batik - Now in Jira
Classification: Unclassified
Component: SVGGraphics2D (show other bugs)
Version: 1.7
Hardware: Other Windows XP
: P2 normal
Target Milestone: ---
Assignee: Batik Developer's Mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-24 10:16 UTC by Foodie
Modified: 2007-08-26 21:32 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Foodie 2007-07-24 10:16:04 UTC
Hi,

in the following example the line from the group with the id rudy is animated 
without a problem. However the filter referenced through the xlink is cut off 
after a few moments of the animation. I assume it's a problem with it's 
clipping area...

(Using Squiggle from batik-1.7beta1 under Windows XP)

Many thanks!

Stevo

---------------------------------------------------

Test case:

---------------------------------------------------

<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/
1.1/DTD/svg11.dtd">
<svg width="900" height="800" version="1.1" xmlns="http://www.w3.org/2000/svg">
   
    <defs>
        <filter id="filter" x="0" y="0">
            <feGaussianBlur stdDeviation="4"/>
            <feOffset dx="13" dy="13"/>
        </filter>
    </defs>

        <use xlink:href="#rudy" filter="url(#filter)"/> <!-- Apache Batik 
(using Squiggle from batik-1.7beta1) has a problem with the clipping area of 
this filter - it cuts the shadow off after a little while -->

        <g id="rudy">                       
            <line x1="0" y1="0" x2="150" y2="200" style="stroke:black;stroke-
width:6">
                <animateMotion path="M 0 0 500 200" dur="10s" 
repeatCount="indefinite"/>
            </line>
         </g>
</svg>

---------------------------------------------------
Comment 1 Cameron McCormack 2007-08-26 21:32:58 UTC
Hi Stevo.

Yes that is indeed a bug.  There is a bunch of areas in Batik where referenced
elements (such as the referenced filter here) are not updated when the
referencing element changes.  It might be some time before this one is fixed, as
it will require a fair amount of work to do right.

*** This bug has been marked as a duplicate of 23443 ***