W3C home > Mailing lists > Public > www-svg@w3.org > August 2000

Re: zoom & pan

From: Jon Ferraiolo <jferraio@Adobe.COM>
Date: Mon, 14 Aug 2000 15:26:19 -0700
Message-Id: <200008142223.PAA29512@mail-345.corp.Adobe.COM>
To: <al004136@alumail.uji.es>
Cc: www-svg@w3.org
The SVG specification identifies events SVGZoom and SVGScroll, with
corresponding event attributes 'onzoom' and 'onscroll'.  (See
http://www.w3.org/TR/SVG/interact.html#SVGEvents) Thus, you can say:

<svg ... onzoom="MyZoomFunction(evt)" onscroll="MyScrollFunction(evt)" ...>

The SVG specification also provides DOM attributes currentScale and
currentTranslate on the SVGSVGElement interface (See
http://www.w3.org/TR/SVG/struct.html#InterfaceSVGSVGElement) which allow a
script to determine how much zooming and panning has occurred so far.

Unfortunately, I do not believe that the current release of the Adobe SVG
Viewer supports any of this. If you want to use the current release of the
Adobe SVG Viewer, increasing the detail based on zoom level might be
difficult. I don't see how to do it easily. If I were going to do this with
the current release, I would try to force users to zoom and scroll only by
using custom SVG widgets designed for that purpose, thus allowing my
JavaScript to keep track of current zoom and pan level.

Jon Ferraiolo
SVG Editor
Adobe Systems Incorporated


At 01:38 PM 8/14/00 +0200, Palazon Gonzalez Vicente wrote:
>
>
>Hi
>
>three questions:
>
>is posible:
>
>to increase the detail when the zoom is doing? 
>
>to handle the zoom with javascript?
>
>and
>
>to handle the pan with javascript?
>
>
>
>
>-- 
>------------------------------------- - - -  -  -  -  -   -   -   -         
>Vicente Palazon Gonzalez
>e-mail: al004136@alumail.uji.es
>www: http://www4.uji.es/~al004136
>------------------------------------- - - -  -  -  -  -   -   -   -
> 
Received on Monday, 14 August 2000 18:24:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 5 November 2012 23:52:48 GMT