Hi Luc,
> Luc_B wrote:
> >
> > I am trying to implement a back / forward history in the svg whenever
a
> > user has panned or zoomed.
> >
> > I have tried to reuse the TransformHistory class from the SVGBrowser
but
> > they seem to only store the RenderingTransform at load. I need more
than
> > that.
In my tests it records all my pan and zoom actions. Are you including
the code from the JSVGViewerFrame that notifies the history class of
transform changes?
> > I want to know what AffineTransform should I store so when the user
hits
> > back in order to show him where he was before.
'canvas.getRenderingTransform()'.
> > I am also wondering how to restore the svg view to that specific
point...
'canvas.setRenderingTransform( affine );'
This is all in the JSVGViewerFrame class already. Just look for all
the lines with 'transformHistory'.