OnZoomEventAttribute: onzoom

Description Available Attribute Values Animatable Used by the Elements

Description

Sets the script to execute when an zoom event is received

Available Attribute Values

The value is a script, likely ecmascript (i.e. javascript).

<script>

Specifies what to execute when an SVGZoom event is fired. The SVGZoom event occurs if zoom level of the document changes. This occurs for one of two reasons: the direct interaction by the user orchange to the currentScale Property. The SVGZoom* event applies only to the outermost svg element.

Animatable

Not Animatable

Used by the Elements

Structural Container Elements

svg


mslegrand/svgR documentation built on Jan. 21, 2020, 2:59 p.m.