OK, so there are a bunch of transforms associated with the JSVGCanvas.
Plus you define a viewBox attribute in your SVG document.  What I'd like
to do is have the JSVGCanvas resize when I resize my main Window/Frame.
If the user has zoomed in or out, I want to preserve that.  Basically I
want to take what the user currently sees and resize it accordingly.  If
the user's looking at an entire document and they resize the window
smaller, I want the entire document shown (smaller) in the smaller
JSVGCanvas.  If the user is zoomed in and has scrolled to an area of the
document (I have a JSVGScrollPane), I want that viewing area to be the
same when they resize.  In short, I want to preserve what the user sees,
just size it according to the window size.  Can I get some pointers on
how to achieve this?

 

Michael Bishop

Reply via email to