MCPcopy
hub / github.com/wavetermdev/waveterm / increaseZoomLevel

Function increaseZoomLevel

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

Source from the content-addressed store, hash-verified

28}
29
30export function increaseZoomLevel(webContents: electron.WebContents): void {
31 const newZoom = Math.min(MaxZoomLevel, webContents.getZoomFactor() + ZoomDelta);
32 webContents.setZoomFactor(newZoom);
33 broadcastZoomFactorChanged(newZoom);
34}
35
36export function decreaseZoomLevel(webContents: electron.WebContents): void {
37 const newZoom = Math.max(MinZoomLevel, webContents.getZoomFactor() - ZoomDelta);

Callers 2

makeViewMenuFunction · 0.90

Calls 2

setZoomFactorMethod · 0.45

Tested by

no test coverage detected