Created
October 2, 2019 08:03
-
-
Save simbathesailor/66e1a8db597703f2a34868998c3d9f91 to your computer and use it in GitHub Desktop.
React image zoom hook result types
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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