Skip to content

ElectronWebFrame.setZoomLevel method

ElectronWebFrame › setZoomLevel

Unofficial

Changes the zoom level to the specified level. The original size is 0 and each increment above or below represents zooming 20% larger or smaller to default limits of 300% and 50% of original size, respectively.

Signature:

setZoomLevel(level: number): void

Parameters:

Parameter Type Description
level number The zoom level to set.

Returns: void