Many performance improvements on workspace.

This commit is contained in:
Andrey Antukh 2017-01-31 17:02:33 +01:00
parent 3fdce853d0
commit 6c1955c0d9
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
12 changed files with 120 additions and 127 deletions

View file

@ -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])