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

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 UTC