MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / adjustZoom

Function adjustZoom

webview-ui/src/components/common/MermaidButton.tsx:91–96  ·  view source on GitHub ↗
(amount: number)

Source from the content-addressed store, hash-verified

89 * Adjust zoom level in the modal
90 */
91 const adjustZoom = (amount: number) => {
92 setZoomLevel((prev) => {
93 const newZoom = prev + amount
94 return Math.max(MIN_ZOOM, Math.min(MAX_ZOOM, newZoom))
95 })
96 }
97
98 /**
99 * Handle wheel event for zooming with scroll wheel

Callers 1

MermaidButtonFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected