mirror of
https://github.com/trafficlunar/blockmatic.git
synced 2026-06-28 14:44:12 +00:00
refactor: use coordinate array for selection
allows upcoming feature for users to select non-rectangular blocks
This commit is contained in:
parent
2037ad8722
commit
527e29c448
5 changed files with 70 additions and 75 deletions
|
|
@ -24,7 +24,7 @@ function EditMenu() {
|
|||
<MenubarItem onClick={cut}>Cut</MenubarItem>
|
||||
|
||||
<MenubarSeparator />
|
||||
<MenubarItem onClick={() => setSelectionBoxBounds({ minX: 0, minY: 0, maxX: 0, maxY: 0 })}>Clear Selection</MenubarItem>
|
||||
<MenubarItem onClick={() => setSelectionBoxBounds([])}>Clear Selection</MenubarItem>
|
||||
</MenubarContent>
|
||||
</MenubarMenu>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue