Add more improvements to workspace initialization

This commit is contained in:
Andrey Antukh 2023-05-25 14:15:28 +02:00 committed by Alejandro Alonso
parent 5d892d14d5
commit b85b479396
9 changed files with 94 additions and 105 deletions

View file

@ -104,15 +104,6 @@
(def workspace-drawing
(l/derived :workspace-drawing st/state))
(defn make-workspace-ready-ref
[file-id]
(l/derived (fn [state]
(let [data (:workspace-data state)]
(and (:workspace-ready? state)
(= file-id (:current-file-id state))
(= file-id (:id data)))))
st/state))
;; TODO: rename to workspace-selected (?)
;; Don't use directly from components, this is a proxy to improve performance of selected-shapes
(def ^:private selected-shapes-data