<community>of XML and SVG Developers</community>
This is a discussion on making zoom to original view and pan command button within the SVG Questions forums, part of the SVG Forums category; hi'yall i am tinkering with zoom and pan buttons.. and come across a slight problem.. 1. the pan button: I ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| i am tinkering with zoom and pan buttons.. and come across a slight problem.. 1. the pan button: I don't want to make 4 buttons for North,South, East, West directions, but rather a button which when pressed, the result will be the same as if the user pressed down the ALT-key. 2. the zoom reset button Here i dont want the result be the same as when the user right-clicked the mousebutton and chose Original View I could of course make a function like i have found: function reset() { svgdoc=htmldocument.embeds[0].getSVGDocument(); root=svgdoc.firstChild(); root.currentTranslate.x=0; root.currentTranslate.y=0; root.currentScale=1; } But this only resets the scale and translate.. I want the original view.. Anyone got any ideas? thanks in advance, Ronny |
Ink Jet Cartridges
Inkjet cartridges are cheaper when you buy them online.
buy ink cartridges
Buy ink cartridges from us and you can take advantage of this month's special offer. Free delivery! Top brands for rock-bottom prices…
Hard Disk Drive Data Recovery Cheshire >>
Complex hard drive recoveries done professionally! Visit the link above.