, 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
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)
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
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 =
4 matches
Mail list logo