mirror of
https://github.com/penpot/penpot.git
synced 2025-06-03 14:41:37 +02:00
Many performance improvements on workspace.
This commit is contained in:
parent
3fdce853d0
commit
6c1955c0d9
12 changed files with 120 additions and 127 deletions
|
@ -21,12 +21,13 @@
|
|||
;; --- Refs
|
||||
|
||||
(def edition-ref
|
||||
(-> (l/in [:workspace :edition])
|
||||
(l/derive st/state)))
|
||||
(-> (l/in [:edition])
|
||||
(l/derive refs/workspace)))
|
||||
|
||||
;; TODO: replace with refs/selected-drawing-tool
|
||||
(def drawing-state-ref
|
||||
(-> (l/in [:workspace :drawing])
|
||||
(l/derive st/state)))
|
||||
(-> (l/key :drawing-tool)
|
||||
(l/derive refs/workspace)))
|
||||
|
||||
(def selected-ref
|
||||
(-> (l/in [:selected])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue