Re: [svg-developers] Re: event listener problem

2005-03-13 Thread Halil AKINCI
, evt.ClientY (to make it generic to support zoom and pan, you can compensate for the co-ordinates by processing through viewBox, currentTranslate, CTM etc. (or CTM matrix)) HTH, Aashish --- In svg-developers@yahoogroups.com, Halil AKINCI [EMAIL PROTECTED] wrote: Hi, I

[svg-developers] event listener problem

2005-03-11 Thread Halil AKINCI
Hi, I have a toolbar that includes several functions such as zoom in, zoom out, move, rotate, roadWidth, getDistance, erase, etc. The codes of all functions are in a JavaScript file. Following svg statements shows a toolbar button sample. g id=Distance onclick=buttonclick(evt)

[svg-developers] disabling formerly selected functions

2005-03-08 Thread Halil AKINCI
Hi, I have a toolbar that includes several functions such as zoom in, zoom out, move, rotate, roadWidth, erase, etc. The codes of this functions are in a JavaScript file. I select a function on the toolbar (e.g. roadWidth) and use it and then select another function (e.g. erase). Then I'm

[svg-developers] show mouse coordinates

2005-02-27 Thread Halil AKINCI
Hi, To show mouse coordinates on screen, I use following lines; var X = x0 + (evt.getClientX() - svgroot.currentTranslate.x)*(vboxW/ (svgW*svgroot.currentScale)); var Y = -(y0 + (evt.getClientY() - svgroot.currentTranslate.y)*(vboxH/ (svgH*svgroot.currentScale))); var point =