Created
February 17, 2020 04:40
-
-
Save gustav1105/4938e353fc920c2ec3ad6b0ffb82096b to your computer and use it in GitHub Desktop.
selected-rect
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
const [selectionRect, setSelectionRect] = React.useState<{ | |
left: number; | |
width: number; | |
right: number; | |
top: number; | |
bottom: number; | |
height: number; | |
}>({ left: 0, width: 0, right: 0, top: 0, bottom: 0, height: 0 }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment