Thanks a lot! I think that Thomas's patch will fix my problem! The problem is that i don't know how to deal with the sources of batik: I donwloaded these (and the patch) but i don't know how i can apply this patch and re-create the jars of the library (Do i need to use a specific ide?).
I already downloaded Eclipse, but when I try to open the batik sources, many unresolved import errors are reported. I searched the batik website for any explanation (as i read in the REDME file) but i found nothing about compiling this sources (and applying pathches). Thanks a lot! 2009/8/21 Helder Magalhães <[email protected]> > Hi Mathieu, > > > > I created a clip-path element: A filled circle "masked" (more > > precisely clip-pathed) by a filled rectangle. On the circle element of > > the svg document, i put a onmouseover and a onmuseout attributes, wich > > calls a javascript method which changes the color of my shape. > > > > The problem is that, when I try this document in batik, the color of > > the shape changes even when the cursor is over the non-apparent part > > of the circle: The cursor is outside the rectangle, but would be on > > the circle if it wasn't "clip-pathed", and the part of the circle > > inside the rectangle changes its color. > > I guess the specification isn't clear enough regarding this. See bug > 46289 [1], which contains a patch by Thomas to "fix" it and also links > to relevant discussions in the www-svg mailing list. :-) > > > > With, firefox, i don't have this problem (the color changes only if my > > mouse is on the part of the circle inside the rectangle). > > Unclear or underspecified stuff usually leads to this sort of > unexpected incoherences among implementations... :-| > > > > So I would like to know if it's a bug of batik? Will it be fixed? > > I'm not sure if the patch will be integrated. I'd vote for so, but I > remember the discussion somehow hit a dead end: there was no clear > consensus at the time... :-( Maybe this is addressed in the second > edition of the SVG 1.1 specification. :-) > > > > Can I try to "fix" it? I tried to search the Javadoc API for the class > > responsibles for this interpretation, but i've no idea! If there are > > some batik developpers on this mailing, can they shox me the > > "incriminated classes" > > As stated, in order to "fix" it you may locally apply the patch > already referred. ;-) > > As stated within the www-svg debate, another way of working around > this (in an inter-operable way?) would be adjusting the > "pointer-events" property [2] to "visible". > > > > Thanks a lot! > > Hope this helps, > Helder > > > [1] https://issues.apache.org/bugzilla/show_bug.cgi?id=46289 > [2] http://www.w3.org/TR/SVG11/interact.html#PointerEventsProperty > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
