How would I translate a pixel point on the SVGCanvas to the related <g> or <glyph> element?
Hi Sumeet,
For "dynamic documents" we generate DOM UI Events for the mouse automatically. So you can just register an event listener on the element in question (or one of it's parent elements).
If you need to do this for 'arbitrary' points you would have to more or less 'fake' this dispatch your self (use the GVT tree to figure out what graphics the point lies in, then find the corresponding DOM Element).
You can search the list archives (or read the FAQ) to find out how to make your documents always dynamic.
The one thing above I'm not certain of is the mention of 'glyph'. Events don't get propagated into fonts (they stop at text elements) so you would ever get an event on a glyph. I think you can figure out what character is under an event on a text element, if that is what you are interested in.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]