Re: [svg-developers] panning a group of elements

2005-07-11 Thread Peter Thompson
You can pan or zoom any element or group of elements. You can use something like this in you Up() function, which I assume is event driven, to pan the group of objects in the y direction: obj=SVGDoc.getElementById(to-be-updated); obj.setAttribute('transform','translate(0,' + change + ')';

Re: [svg-developers] panning script

2005-07-09 Thread Holger Will
Hi alsaeedabraheem ?xml version=1.0 standalone=no? !DOCTYPE svg PUBLIC -//W3C//DTD SVG 20010904//EN http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd; svg id=SVG width= height= onload=Initialize(evt) specify a value for width and height, or drop them completely(then width and height

RE: [svg-developers] Panning

2005-02-25 Thread kgordon
You asked how to keep it from refreshing svg until mouse up event. The svg doesn't change anything on its own, you do it in script. If you don't want anything to change until mouse up, then do your modifications to the SVG on the mouseup event. It sounds like maybe your doing a click and drag

Re: [svg-developers] Panning

2005-02-25 Thread Rerun
I want the SVG to move as I drag the mouse, similar to the Adobe viewer pan tool, but I want the svg to be clipped at the viewbox edges until the mouseup event. The adobe viewer clips around the edges until mouse up, making it very fast when moving the SVG around. [EMAIL PROTECTED] wrote:

RE: [svg-developers] Panning

2005-02-25 Thread Pete d'Oronzio
I want the SVG to move as I drag the mouse, similar to the Adobe viewer pan tool, but I want the svg to be clipped at the viewbox edges until the mouseup event. The adobe viewer clips around the edges until mouse up, making it very fast when moving the SVG around. I think that the

RE: [svg-developers] Panning

2005-02-25 Thread kgordon
I wonder what effect appending a clip path around the svg would have? Maybe it would increase the performance? -Original Message- From: Pete d'Oronzio [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 2:45 PM To: svg-developers@yahoogroups.com Subject: RE: [svg-developers

Re: [svg-developers] Panning

2005-02-25 Thread Rerun
around the svg would have? Maybe it would increase the performance? -Original Message- From: Pete d'Oronzio [mailto:[EMAIL PROTECTED] Sent: Friday, February 25, 2005 2:45 PM To: svg-developers@yahoogroups.com Subject: RE: [svg-developers] Panning I want the SVG to move as I drag

RE: [svg-developers] Panning

2005-02-25 Thread Pete d'Oronzio
I thought about clipping, but that seems complicated. I also thought about the raster idea. This begs the question, can an svg, within viewbox only, be converted to a raster on mousedown? If it can, the rest is easy. Question: If you're running in a browser, using the Adobe viewer...

Re: [svg-developers] Panning

2005-02-25 Thread Rerun
The Adobe viewer doesn't allow me to create buttons for zoom and pan, and I also want to be able to reset my viewbox as I'm zooming and panning. I create maps dynamically out of a database depending on scale. Pete d'Oronzio wrote: I thought about clipping, but that seems complicated. I also