W3C home > Mailing lists > Public > public-svg-wg@w3.org > July to September 2009

ISSUE-2296 (setZoom/Pan): Consider adding convenience methods for currentScale/currentTranslate [SVG Core 2.0]

From: SVG Working Group Issue Tracker <sysbot+tracker@w3.org>
Date: Tue, 29 Sep 2009 06:37:42 +0000 (GMT)
To: public-svg-wg@w3.org
Message-Id: <20090929063742.C1F4B6B64A@tibor.w3.org>

ISSUE-2296 (setZoom/Pan): Consider adding convenience methods for currentScale/currentTranslate [SVG Core 2.0]

http://www.w3.org/Graphics/SVG/WG/track/issues/2296

Raised by: Doug Schepers
On product: SVG Core 2.0

It would be convenient for both authors and implementations for SVG to define a couple new methods, zoom() (or setZoom()) and pan() (or setPan()), to allow set the centerpoint of the viewport and optionally zoom.  These would modify the values of the currentScale and currentTranslate properties.

zoom( zoom-level, optional-cx, optional-cy)

pan( cx, cy)

UAs can offer these to users as part of the UI, and authors could use them as a more convenient way to zoom and pan to a specific center-point without having to calculate the viewBox, etc.
Received on Tuesday, 29 September 2009 06:37:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 29 September 2009 06:37:55 GMT