Aakansha Doshi 7daf1a7944
feat: Add Eraser 🎉 (#4887)
* feat: Add Eraser 🎉

* Eraser working

* remove unused state

* fix

* toggle eraser

* Support deselect with Alt/Option

* rename actionDelete -> actionErase

* Add util isEraserActive

* show eraser in mobile

* render eraser conditionally in mobile

* use selection if eraser in local storage state

* Add sampling to erase accurately

* use pointerDownState

* set eraser to false in AllowedExcalidrawElementTypes

* rename/reword fixes

* don't use updateScene

* handle bound text when erasing

* fix hover state in mobile

* consider all hitElements instead of a single

* code improvements

* revert to select if eraser active and elements selected

* show eraser in zenmode

* erase element when clicked on element while eraser active

* set groupIds to empty when eraser active

* fix test

* remove dragged distance
2022-03-11 19:53:42 +05:30
..
2022-03-11 19:53:42 +05:30
2022-03-11 19:53:42 +05:30
2020-11-29 20:19:06 +02:00
2021-10-21 22:05:48 +02:00
2022-02-28 19:04:26 +05:30
2022-02-03 20:34:59 +05:30
2022-03-11 19:53:42 +05:30
2022-03-11 19:53:42 +05:30
2022-03-11 19:53:42 +05:30
2022-03-11 19:53:42 +05:30
2021-04-05 17:26:37 +02:00
2021-10-21 22:05:48 +02:00
2021-10-21 22:05:48 +02:00
2021-05-25 21:37:14 +02:00
2022-02-03 20:34:59 +05:30