Skip to content

Instantly share code, notes, and snippets.

@gustav1105
Created February 17, 2020 04:40
Show Gist options
  • Save gustav1105/4938e353fc920c2ec3ad6b0ffb82096b to your computer and use it in GitHub Desktop.
Save gustav1105/4938e353fc920c2ec3ad6b0ffb82096b to your computer and use it in GitHub Desktop.
selected-rect
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