On 6 April 2010 21:23, <thomas.dewe...@kodak.com> wrote: > > Hi Jacob, > > Jacob Christophersen <jacob.christopher...@gmail.com> wrote on 04/06/2010 > 06:54:55 AM: > > > I need to implement a pan/zoom style similar to google maps. > > > > I'm struggling with the issue that when ever I try to pan or zoom > > out, the parts of the SVG that were not visible before the > > interactor started, are not shown again until I release the mouse. > > Correct, there is no simple way to avoid this. In order to have > good performance the interactors simply scale/translate/rotate the > previous offscreen buffer. For most SVG documents the time to render > them from scratch is far too long to update the screen smoothly during > pan/zoom operations. > > Ideally in the background we would be updating as best we could > and refreshing the offscreen image as we are able, but doing that > is really quite complex, and you can quickly end up just thrashing > the processor. > > > I've done a bit of searching around, and the consensus seems to be > > to set the overflow property of the SVG root element to visible, but > > that doesn't seem to have changed anything. > > The overflow is needed if you are panning to areas that used to > be outside of the viewBox. In this case you are still within the > viewBox, but we just don't have a rendered version of the areas. > Thanks for the prompt response.
So would I be able to, for example, set the viewBox = "100 100 200 200", that I could then move the viewBox to other areas smoothly within the 400 x 400 root element? And if that is possible, would I just override the AbstractPanInteractor methods to manipulate the viewBox? --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-users-h...@xmlgraphics.apache.org