You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Archie Cobbs <ar...@dellroad.org> on 2005/10/19 22:20:32 UTC

ignoring width and height?

I'm seeing a strange problem and was wondering if this sounds
familiar to anyone else.

I'm displaying a dynamic SVG document via JSVGCanvas that contains
some SVG like this:

   <defs>
         <filter height="200%" id="filter.DropShadow2"
           width="200%" x="-50%" y="-50%">
             <feGaussianBlur in="SourceAlpha" stdDeviation="7"/>
             <feColorMatrix type="matrix"
               values="158 0 0 0 0  0 160 0 0 0  0 0 152 0 0  0 0 0 0.4 0"/>
             <feOffset dx="20" dy="8" result="r2"/>
             <feMerge>
                 <feMergeNode in="r2"/>
                 <feMergeNode in="SourceGraphic"/></feMerge></filter>
   </defs>

   ..blah blah..

   <g filter="url(#filter.DropShadow2)" id="foo">
     ..blah blah..
   </g>

The problem is that the width, height, x, and y atributes of
the <filter> node are being ignored, i.e., the drop shadow is
being very tightly clipped against the <g> image bounding box
(it doesn't even appear that the "120%"/"-10%" defaults are
being applied either).

HOWEVER- when I export this DOM and then load that into Squiggle,
it displays properly! I.e, I see all the drop shadow, even though
the document is supposedly exactly the same.

Any ideas??

Thanks,
-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: ignoring width and height?

Posted by Archie Cobbs <ar...@dellroad.org>.
Archie Cobbs wrote:
> I'm seeing a strange problem and was wondering if this sounds
> familiar to anyone else.
> 
> I'm displaying a dynamic SVG document via JSVGCanvas that contains
> some SVG like this:
> 
>   <defs>
>         <filter height="200%" id="filter.DropShadow2"
>           width="200%" x="-50%" y="-50%">
>             <feGaussianBlur in="SourceAlpha" stdDeviation="7"/>
>             <feColorMatrix type="matrix"
>               values="158 0 0 0 0  0 160 0 0 0  0 0 152 0 0  0 0 0 0.4 0"/>
>             <feOffset dx="20" dy="8" result="r2"/>
>             <feMerge>
>                 <feMergeNode in="r2"/>
>                 <feMergeNode in="SourceGraphic"/></feMerge></filter>
>   </defs>
> 
>   ..blah blah..
> 
>   <g filter="url(#filter.DropShadow2)" id="foo">
>     ..blah blah..
>   </g>
> 
> The problem is that the width, height, x, and y atributes of
> the <filter> node are being ignored, i.e., the drop shadow is
> being very tightly clipped against the <g> image bounding box
> (it doesn't even appear that the "120%"/"-10%" defaults are
> being applied either).
> 
> HOWEVER- when I export this DOM and then load that into Squiggle,
> it displays properly! I.e, I see all the drop shadow, even though
> the document is supposedly exactly the same.

FYI,

I filed this as bug #37276 and included a test case.

   http://issues.apache.org/bugzilla/show_bug.cgi?id=37276

-Archie

__________________________________________________________________________
Archie Cobbs      *        CTO, Awarix        *      http://www.awarix.com

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org