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

Function zoomToFit

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

Source from the content-addressed store, hash-verified

85 };
86
87 const zoomToFit = () => setZoom(1);
88
89 const zoomToDefault = () => {
90 if (!naturalSize || fitScale <= 0 || !viewportRef.current) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected