Hi Hodac, dao <[email protected]> wrote on 01/15/2010 07:44:30 AM:
> do you think I have to wait the rendering complete to add the mask ref? From your description you are adding the mask before the first rendering which should be ok. > what do you mean by "twiddle"? make some modifications (updating an > unused parameter)? No, you need to reset the 'mask' attribute on the element that references the mask element (I think just setting it to the current value will work). > On Fri, Jan 15, 2010 at 1:01 PM, <[email protected]> wrote: > Hi hodac,, > > dao <[email protected]> wrote on 01/15/2010 06:13:34 AM: > > > > I am going crazy, I suppose because I don't get something basic in > > the batik architecture: > > [...] > > > I can see that only the user's elements are modified. The mask > > elements are not updated. I decide to dump the SVG from the canvas > > during the execution (after the rendering) (getSVGDocument()).I open > > it in squiggle, and oh! the mask elements are displayed OK!!! > It is an architectural flaw in Batik, we don't track changes > automatically in a few cases, this is one of them. You need to > 'twiddle' the mask reference and Batik will rebuild the mask. > > > So what's wrong with my program? what are the reason why the > > rendered canvas is not in accordance with the current canvas? > Tracking changes in this case is non-trivial. > > > > -- > Dao Hodac
