ZoomChangingEvent Interface
Represents an event that is emitted when the zoom level is about to change.
export declare interface ZoomChangingEvent extends ViewerEvent
Remarks
This interface defines the properties available in a zoom changing event, including the current and future zoom levels. The zoomLevelAfter property can be modified by event listeners to change the target zoom level.
Fields
zoomLevelBefore
The zoom level before the change.
readonly zoomLevelBefore: number | "automatic" | "pageFit" | "pageWidth";
zoomLevelAfter
The target zoom level that can be modified by event listeners.
zoomLevelAfter: number | "automatic" | "pageFit" | "pageWidth";
Inherited Fields
| defaultPrevented | Gets a value indicating whether the event's default action has been canceled. (Inherited from ViewerEvent) |
Inherited Methods
| preventDefault | Cancels the event if it is cancelable, without stopping further propagation of the event. (Inherited from ViewerEvent) |