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 "Barbisch, Martin" <ba...@sony.de> on 2002/08/30 15:30:58 UTC

Dynamic updating of a gradient

Hello batik-users (and developers :-),

I am changing the attributes (here stop-opacity) of a gradient (e.g. every
100 ms). The changes are saved in the DOM tree, but the text element
referencing the gradient does not reflect the changes. In Adobe's SVG Viewer
it does.
Does Batik not yet support this 'dynamic update' or do I need to change any
options?
Is this true for all elements within <defs></defs>, or even for all elements
that can be referenced?

Thanks in advance and have a nice weekend,

Martin


[Batik 1.5beta4b, JDK 1.4, Windows 2000]


  <defs>

    <radialGradient id="Decay">

      <stop id="Start" offset="0%"   stop-opacity="1.0" />
      <stop id="Stop"  offset="100%" stop-opacity="1.0" />

    </radialGradient>

  </defs>


  <text x="50" y="200" fill="url(#Decay)">TEXT</text>

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


[RE] Dynamic updating of a gradient

Posted by Thomas E Deweese <th...@kodak.com>.
Hi Barbisch,

>>>>> "BM" == Barbisch, Martin <ba...@sony.de> writes:

BM> I am changing the attributes (here stop-opacity) of a gradient
BM> (e.g. every 100 ms). The changes are saved in the DOM tree, but
BM> the text element referencing the gradient does not reflect the
BM> changes. In Adobe's SVG Viewer it does.  Does Batik not yet
BM> support this 'dynamic update' or do I need to change any options?

    Batik does not currently suppor the dynamic update of Gradients
(it did at one point then it was removed because it was causing memory
leaks).  Thierry was working on a new version of this but I don't know
where it stands right now.

BM> Is this true for all elements within <defs></defs>, or even for
BM> all elements that can be referenced?

    It is true for most elements that can be referenced.  The one
exception that comes to mind is 'tref' and 'image' (I think) but
generally speaking animation of referenced content doesn't work.

BM> Thanks in advance and have a nice weekend,

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