Skip to content

Instantly share code, notes, and snippets.

@simbathesailor
Created October 2, 2019 08:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simbathesailor/66e1a8db597703f2a34868998c3d9f91 to your computer and use it in GitHub Desktop.
Save simbathesailor/66e1a8db597703f2a34868998c3d9f91 to your computer and use it in GitHub Desktop.
React image zoom hook result types
interface Result {
moveLens: (event: React.MouseEvent<any, MouseEvent>) => void;
imgContainerDimesions: {
height: string,
width: string,
position: 'relative'
};
imgDimesions: {
height: string,
width: string
};
lensDimensions: {
height: string,
width: string
};
previewLensDimensions: {
height: string,
width: string,
overflow: string
};
previewImgDimensions: {
height: string,
width: string
};
DefaultView: JSX.Element;
imgRefCallback: (node: any) => void;
meshRefCallback: (node: any) => void;
imagePreviewRefCallback: (node: any) => void;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment