SVGZoomEvent object
[This documentation is preliminary and is subject to change.]
Describes a zoom event.
![]() ![]() |
Syntax
function handler(event) {
// event is ZoomEvent
}
svgElement.addEventListener("SVGZoom",handler,false);
Standards information
- Scalable Vector Graphics: Scripting, Section 18.5.2
DOM Information
Inheritance Hierarchy
Members
The SVGZoomEvent object has these types of members:
Properties
The SVGZoomEvent object has these properties.
| Property | Description |
|---|---|
|
Gets the new scale value of a zoom event. | |
|
Gets the new translation values of a zoom event. | |
|
Gets the previous scale value of a zoom event. | |
|
Gets the previous translation values of a zoom event. | |
|
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

