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 + ')';
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
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
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:
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
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
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
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...
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
9 matches
Mail list logo