mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 02:58:21 +02:00
Improved multiple selection/deselection.
This commit is contained in:
parent
efeaa7a79e
commit
c182340be4
3 changed files with 31 additions and 35 deletions
|
@ -76,6 +76,13 @@
|
|||
(update-in state [:workspace :selected] disj id)
|
||||
(update-in state [:workspace :selected] conj id))))))
|
||||
|
||||
(defn deselect-all
|
||||
"Mark a shape selected for drawing in the canvas."
|
||||
[]
|
||||
(reify
|
||||
rs/UpdateEvent
|
||||
(-apply-update [_ state]
|
||||
(assoc-in state [:workspace :selected] #{}))))
|
||||
|
||||
;; TODO: validate shape
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue