Nutrient Web SDK

ReferenceEventsViewStateZoomChangeEvent

Type Alias ViewStateZoomChangeEvent

This event is emitted when the zoom level in the viewer changes. The event value is the new zoom level.

Type Alias
Type Signature
type ViewStateZoomChangeEvent = number

Example

Get the new zoom level.

instance.addEventListener("viewState.zoom.change", (zoom: ViewStateZoomChangeEvent) => {
console.log(zoom);
});

See Also