hilz wrote:
Tonny:
I appreciate your help.
They are exact coordinates and it is still not working.
In the example i followed, these coordinates are retrieved from the mouse
event evt.getX() and evt.getY(), but in my case, they are absolute
coordinates in the SVG document coordinate system.
What coordinate system in the SVG Document? There can be many coordinate systems in a single SVG document (just about every element can establish a new coordinate system).
maybe this is the problem. so how do i convert my absolute coordinates into coordinates in the display component coordinate system?
You might want to look at getClientCTM() on SVG Elements which will give you the transform from the element's 'user coordinate system' (which is what getBBox is returned in) to the Client Area of the UserAgent.
If your coordinates are always in the user coordinate system of the root SVG element you can run your points through the inverse of the getViewBoxTransform.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]