From 0eec54fc309deba7ce98ed15945368906415f7d4 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 19 Jan 2016 21:59:46 +0200 Subject: [PATCH] Move some lenses from layers to icons. --- src/uxbox/ui/workspace/toolboxes/icons.cljs | 12 ++++++++++++ src/uxbox/ui/workspace/toolboxes/layers.cljs | 8 -------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/uxbox/ui/workspace/toolboxes/icons.cljs b/src/uxbox/ui/workspace/toolboxes/icons.cljs index 34f7f72f1..5da8ee3f4 100644 --- a/src/uxbox/ui/workspace/toolboxes/icons.cljs +++ b/src/uxbox/ui/workspace/toolboxes/icons.cljs @@ -14,6 +14,18 @@ [uxbox.ui.mixins :as mx] [uxbox.ui.dom :as dom])) +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; +;; Lenses +;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + +(def ^:private ^:static drawing-shape + "A focused vision of the drawing property + of the workspace status. This avoids + rerender the whole toolbox on each workspace + change." + (as-> (l/in [:workspace :drawing]) $ + (l/focus-atom $ st/state))) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; Icons ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; diff --git a/src/uxbox/ui/workspace/toolboxes/layers.cljs b/src/uxbox/ui/workspace/toolboxes/layers.cljs index 758dd4f8c..846917dea 100644 --- a/src/uxbox/ui/workspace/toolboxes/layers.cljs +++ b/src/uxbox/ui/workspace/toolboxes/layers.cljs @@ -18,14 +18,6 @@ ;; Lenses ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(def ^:private ^:static drawing-shape - "A focused vision of the drawing property - of the workspace status. This avoids - rerender the whole toolbox on each workspace - change." - (as-> (l/in [:workspace :drawing]) $ - (l/focus-atom $ st/state))) - (def ^:static ^:private shapes-by-id (as-> (l/key :shapes-by-id) $ (l/focus-atom $ st/state)))