mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 06:51:37 +02:00
Remove duplicated lense from canvas ns.
This commit is contained in:
parent
3917feb664
commit
bdb0738a1b
1 changed files with 1 additions and 9 deletions
|
@ -21,14 +21,6 @@
|
||||||
[uxbox.ui.workspace.options :refer (element-opts)])
|
[uxbox.ui.workspace.options :refer (element-opts)])
|
||||||
(:import goog.events.EventType))
|
(:import goog.events.EventType))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; Lenses
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
|
|
||||||
(def ^:static ^:private shapes-by-id
|
|
||||||
(as-> (l/key :shapes-by-id) $
|
|
||||||
(l/focus-atom $ st/state)))
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Background
|
;; Background
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
@ -148,7 +140,7 @@
|
||||||
(defn- canvas-render
|
(defn- canvas-render
|
||||||
[own {:keys [width height id] :as page}]
|
[own {:keys [width height id] :as page}]
|
||||||
(let [workspace (rum/react wb/workspace-l)
|
(let [workspace (rum/react wb/workspace-l)
|
||||||
shapes-by-id (rum/react shapes-by-id)
|
shapes-by-id (rum/react wb/shapes-by-id)
|
||||||
workspace-selected (:selected workspace)
|
workspace-selected (:selected workspace)
|
||||||
xf (comp
|
xf (comp
|
||||||
(map #(get shapes-by-id %))
|
(map #(get shapes-by-id %))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue