Thank you very much. You are right. Now I f I "nodeHitAt" from root, I will find right node. If I "nodeHitAt" from that translated node, I can not find it. Would you tell me how to apply the transform to your point before calling nodeHitAt?
----- Original Message ----- From: "Thomas E Deweese" <[EMAIL PROTECTED]> To: "Batik Users" <[EMAIL PROTECTED]> Sent: Wednesday, March 13, 2002 8:05 PM Subject: The bug about "nodeHitAt" and "transform" had not been gotten rid of. > >>>>> "mz" == ma zhenduo <[EMAIL PROTECTED]> writes: > > mw> I find there are a bug with batik-1.1.1(18-Dec-2001 ) and > mw> batik-1.5beta. GraphicsNode#nodeHitAt can't find these node that > mw> has a "transform" attribute. > > You don't give much information on the context in which you think > this bug exists. So I know that onclick and what not work for SVG > elements that are transformed (which become GraphicsNodes with a > transform). > > I suspect that the problem is you are passing coordinates in the > root GraphicsNode's coordinate space as opposed to the GraphicsNode's > local coordinate system. Put in other words it is your responsability > to apply the transform to your point before calling nodeHitAt. You > may not like this but it is generally significantly more effiecent > than transforming the point from the root for each node if you are > walking the whole gvt tree. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
