This is the approach I took, however I see no way to set a transform.
You can get a JSVGCanvas's transform, but there is no accompanying "set"
method.  So that's where I got stuck and asked for help.

Michael Bishop

-----Original Message-----
From: Tonny Kohar [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 06, 2006 8:16 PM
To: [email protected]
Subject: RE: "Refreshing" the JSVGCanvas...

Hi,

On Fri, 2006-02-03 at 09:06 -0500, Bishop, Michael W. CONTR J9C880
wrote:
> Revisiting this point, I did add a refresh button because it was
> requested.  If I refresh the canvas (using setDocument() instead of
> setURI() since I'm working with a document in memory), it resets the
> view transform.  If the user is zoomed/panned, it gets reset.  Is
there
> a way to refresh a document, then restore their view transform?

I am not sure if the method below works
1) you need to get the current view transform before refresh
(setURI/setDocument)
2) Refresh the canvas
3) apply back the transform you acquired before to the canvas after
refreshing

Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to