This topic has not yet been rated - Rate this topic

SVGZoomEvent object

[This documentation is preliminary and is subject to change.]

Describes a zoom event.

Scalable Vector Graphics: Scripting, Section 18.5.2Internet Explorer 9

Syntax


function handler(event) {
  // event is ZoomEvent
}

svgElement.addEventListener("SVGZoom",handler,false);

Standards information

DOM Information

Inheritance Hierarchy

 Event
    SVGZoomEvent
 UIEvent
    SVGZoomEvent

Members

The SVGZoomEvent object has these types of members:

Properties

The SVGZoomEvent object has these properties.

PropertyDescription

newScale

Gets the new scale value of a zoom event.

newTranslate

Gets the new translation values of a zoom event.

previousScale

Gets the previous scale value of a zoom event.

previousTranslate

Gets the previous translation values of a zoom event.

zoomRectScreen

Gets the zoom rectangle of a zoom event.

 

Remarks

Note  In addition to the attributes, properties, events, methods, and styles listed above, SVG elements also inherent core HTML attributes, properties, events, methods, and styles.

The zoom event occurs when a user initiates an action that causes the current view of the SVG document (or SVGdocument fragment) to be rescaled (including any change to the svg element's currentScale property).

Note  A zoom event applies only to the outermost svg element.

 

 

Build date: 2/16/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ