thanks for the reply. but the article explains how the screen coordinates can be converted to svg coordinates. i am trying the other way around.. i want the screen coordinates of the svg coordinates..
Helder Magalhães wrote: > >> i did not quite understand.. where will i get the matrix? through the >> element >> that i want the coordinates converted? do i get the inverse of the matrix >> and apply it to the point? i did that but i get the coordinates on the >> canvas and not on the screen.. > > Although slightly off-topic, there's an interactive sample [1] which > may help demonstrating the concept Thomas Deweese was reffering to. > Getting screen coordinates makes it work even then the container > element is resized (read "not using 1:1 scaling"). The dragging in > demo works as expected when you resize the viewport, for example - in > more naive samples, when you did that you ended up with a drag which > was quicker or slower than expected due to the screen transform. > > Hope this helps, > > Helder Magalhães > > [1] > http://blog.codedread.com/archives/2005/12/21/how-to-enable-dragging-in-svg/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/getting-the-element-in-svg-from-an-overlay-tp18301441p18502018.html Sent from the Batik - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
