MCPcopy Create free account
hub / github.com/abi/screenshot-to-code / zoomIn

Function zoomIn

frontend/src/components/ImageLightbox.tsx:79–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 }, [recomputeFitScale]);
78
79 const zoomIn = () => {
80 setZoom((z) => Math.min(MAX_ZOOM, Math.round((z + 0.5) * 100) / 100));
81 };
82
83 const zoomOut = () => {
84 setZoom((z) => Math.max(MIN_ZOOM, Math.round((z - 0.5) * 100) / 100));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected