MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / decreaseZoomLevel

Function decreaseZoomLevel

emain/emain-util.ts:36–40  ·  view source on GitHub ↗
(webContents: electron.WebContents)

Source from the content-addressed store, hash-verified

34}
35
36export function decreaseZoomLevel(webContents: electron.WebContents): void {
37 const newZoom = Math.max(MinZoomLevel, webContents.getZoomFactor() - ZoomDelta);
38 webContents.setZoomFactor(newZoom);
39 broadcastZoomFactorChanged(newZoom);
40}
41
42export function resetZoomLevel(webContents: electron.WebContents): void {
43 webContents.setZoomFactor(1);

Callers 2

makeViewMenuFunction · 0.90

Calls 2

setZoomFactorMethod · 0.45

Tested by

no test coverage detected