From 12a74070d287673b9b479a8b8d34fafb07e29f21 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Sat, 27 Aug 2016 16:43:21 +0300 Subject: [PATCH] Move rlocks under uxbox.util ns. --- src/uxbox/main/data/shapes.cljs | 3 +-- src/uxbox/main/ui/shapes/common.cljs | 2 +- src/uxbox/main/ui/shapes/selection.cljs | 2 +- src/uxbox/main/ui/shapes/text.cljs | 2 +- src/uxbox/main/ui/workspace/canvas.cljs | 2 +- src/uxbox/main/ui/workspace/drawarea.cljs | 2 +- src/uxbox/main/ui/workspace/scroll.cljs | 2 +- src/uxbox/main/ui/workspace/selrect.cljs | 2 +- src/uxbox/{main/ui/workspace => util}/rlocks.cljs | 2 +- 9 files changed, 9 insertions(+), 10 deletions(-) rename src/uxbox/{main/ui/workspace => util}/rlocks.cljs (96%) diff --git a/src/uxbox/main/data/shapes.cljs b/src/uxbox/main/data/shapes.cljs index c0bb86d9f..168b07c6a 100644 --- a/src/uxbox/main/data/shapes.cljs +++ b/src/uxbox/main/data/shapes.cljs @@ -19,8 +19,7 @@ [uxbox.main.state.shapes :as stsh] [uxbox.main.data.core :refer (worker)] [uxbox.main.data.pages :as udp] - ;; FIXME: rlocks should be moved out of ui.workspace - [uxbox.main.ui.workspace.rlocks :as rlocks] + [uxbox.util.rlocks :as rlocks] [uxbox.util.geom.point :as gpt] [uxbox.util.data :refer (index-of)])) diff --git a/src/uxbox/main/ui/shapes/common.cljs b/src/uxbox/main/ui/shapes/common.cljs index d54a04550..5cb878310 100644 --- a/src/uxbox/main/ui/shapes/common.cljs +++ b/src/uxbox/main/ui/shapes/common.cljs @@ -13,7 +13,7 @@ [uxbox.main.data.shapes :as uds] [uxbox.main.ui.keyboard :as kbd] [uxbox.main.ui.workspace.base :as wb] - [uxbox.main.ui.workspace.rlocks :as rlocks] + [uxbox.util.rlocks :as rlocks] [uxbox.main.geom :as geom] [uxbox.util.dom :as dom])) diff --git a/src/uxbox/main/ui/shapes/selection.cljs b/src/uxbox/main/ui/shapes/selection.cljs index fb38f651a..fdc42e4d4 100644 --- a/src/uxbox/main/ui/shapes/selection.cljs +++ b/src/uxbox/main/ui/shapes/selection.cljs @@ -14,7 +14,7 @@ [uxbox.util.rstore :as rs] [uxbox.main.data.shapes :as uds] [uxbox.main.ui.workspace.base :as wb] - [uxbox.main.ui.workspace.rlocks :as rlocks] + [uxbox.util.rlocks :as rlocks] [uxbox.main.ui.shapes.common :as scommon] [uxbox.main.geom :as geom] [uxbox.util.geom.point :as gpt] diff --git a/src/uxbox/main/ui/shapes/text.cljs b/src/uxbox/main/ui/shapes/text.cljs index f9ba5eca3..f864e9611 100644 --- a/src/uxbox/main/ui/shapes/text.cljs +++ b/src/uxbox/main/ui/shapes/text.cljs @@ -15,7 +15,7 @@ [uxbox.main.data.shapes :as uds] [uxbox.main.ui.shapes.common :as common] [uxbox.main.ui.shapes.attrs :as attrs] - [uxbox.main.ui.workspace.rlocks :as rlocks] + [uxbox.util.rlocks :as rlocks] [uxbox.main.geom :as geom]) (:import goog.events.EventType)) diff --git a/src/uxbox/main/ui/workspace/canvas.cljs b/src/uxbox/main/ui/workspace/canvas.cljs index e9d6263dc..24893b8ed 100644 --- a/src/uxbox/main/ui/workspace/canvas.cljs +++ b/src/uxbox/main/ui/workspace/canvas.cljs @@ -22,7 +22,7 @@ [uxbox.main.ui.shapes :as uus] [uxbox.main.ui.shapes.selection :refer (selection-handlers)] [uxbox.main.ui.workspace.base :as wb] - [uxbox.main.ui.workspace.rlocks :as rlocks] + [uxbox.util.rlocks :as rlocks] [uxbox.main.ui.workspace.drawarea :refer (draw-area)] [uxbox.main.ui.workspace.ruler :refer (ruler)] [uxbox.main.ui.workspace.selrect :refer (selrect)] diff --git a/src/uxbox/main/ui/workspace/drawarea.cljs b/src/uxbox/main/ui/workspace/drawarea.cljs index 52b738087..9f2ce3e5e 100644 --- a/src/uxbox/main/ui/workspace/drawarea.cljs +++ b/src/uxbox/main/ui/workspace/drawarea.cljs @@ -15,7 +15,7 @@ [uxbox.main.data.shapes :as uds] [uxbox.main.ui.shapes :as shapes] [uxbox.main.ui.workspace.base :as wb] - [uxbox.main.ui.workspace.rlocks :as rlocks] + [uxbox.util.rlocks :as rlocks] [uxbox.main.geom :as geom] [uxbox.util.geom.point :as gpt] [uxbox.util.geom.path :as path] diff --git a/src/uxbox/main/ui/workspace/scroll.cljs b/src/uxbox/main/ui/workspace/scroll.cljs index 41a554d7c..34f37d1e2 100644 --- a/src/uxbox/main/ui/workspace/scroll.cljs +++ b/src/uxbox/main/ui/workspace/scroll.cljs @@ -10,7 +10,7 @@ (:require [beicon.core :as rx] [uxbox.util.mixins :as mx] [uxbox.main.ui.workspace.base :as wb] - [uxbox.main.ui.workspace.rlocks :as rlocks] + [uxbox.util.rlocks :as rlocks] [uxbox.util.geom.point :as gpt])) (defn watch-scroll-interactions diff --git a/src/uxbox/main/ui/workspace/selrect.cljs b/src/uxbox/main/ui/workspace/selrect.cljs index a0e7dad0b..dfb8092af 100644 --- a/src/uxbox/main/ui/workspace/selrect.cljs +++ b/src/uxbox/main/ui/workspace/selrect.cljs @@ -14,7 +14,7 @@ [uxbox.main.data.workspace :as dw] [uxbox.main.data.shapes :as uds] [uxbox.main.ui.workspace.base :as wb] - [uxbox.main.ui.workspace.rlocks :as rlocks])) + [uxbox.util.rlocks :as rlocks])) (defonce position (atom nil)) diff --git a/src/uxbox/main/ui/workspace/rlocks.cljs b/src/uxbox/util/rlocks.cljs similarity index 96% rename from src/uxbox/main/ui/workspace/rlocks.cljs rename to src/uxbox/util/rlocks.cljs index c180c8712..592f48b11 100644 --- a/src/uxbox/main/ui/workspace/rlocks.cljs +++ b/src/uxbox/util/rlocks.cljs @@ -4,7 +4,7 @@ ;; ;; Copyright (c) 2016 Andrey Antukh -(ns uxbox.main.ui.workspace.rlocks +(ns uxbox.util.rlocks "Reactive locks abstraction. Mainly used for lock the interface to do one concrete user action