mirror of
https://github.com/penpot/penpot.git
synced 2025-06-05 05:11:39 +02:00
✨ Add more improvements to workspace initialization
This commit is contained in:
parent
5d892d14d5
commit
b85b479396
9 changed files with 94 additions and 105 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue