Move uxbox independent geom logic under uxbox.util ns.

This commit is contained in:
Andrey Antukh 2016-08-12 21:09:07 +03:00
parent 6b8b6ac5b9
commit c52755b329
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
16 changed files with 19 additions and 19 deletions

View file

@ -13,7 +13,7 @@
[uxbox.util.router :as r]
[uxbox.util.schema :as sc]
[uxbox.main.geom :as geom]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.workers :as uw]
[uxbox.main.state :as st]
[uxbox.main.state.shapes :as stsh]

View file

@ -11,7 +11,7 @@
[uxbox.main.constants :as c]
[uxbox.util.rstore :as rs]
[uxbox.util.schema :as sc]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.workers :as uw]
[uxbox.main.state :as st]
[uxbox.main.state.shapes :as stsh]

View file

@ -5,8 +5,8 @@
;; Copyright (c) 2016 Andrey Antukh <niwi@niwi.nz>
(ns uxbox.main.geom
(:require [uxbox.main.geom.matrix :as gmt]
[uxbox.main.geom.point :as gpt]
(:require [uxbox.util.geom.matrix :as gmt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.math :as mth]
[uxbox.main.state :as st]))

View file

@ -16,7 +16,7 @@
[uxbox.main.data.history :as udh]
[uxbox.main.data.undo :as udu]
[uxbox.util.dom :as dom]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.data :refer (classnames)]
[uxbox.util.mixins :as mx]
[uxbox.main.ui.messages :as uum]

View file

@ -12,7 +12,7 @@
[uxbox.main.state :as st]
[uxbox.main.data.workspace :as dw]
[uxbox.main.data.shapes :as uds]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[goog.events :as events])
(:import goog.events.EventType))

View file

@ -14,7 +14,7 @@
[uxbox.main.data.projects :as dp]
[uxbox.main.data.workspace :as dw]
[uxbox.main.data.shapes :as uds]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.dom :as dom]
[uxbox.util.data :refer (parse-int)]
[uxbox.main.ui.keyboard :as kbd]

View file

@ -17,7 +17,7 @@
[uxbox.main.ui.workspace.base :as wb]
[uxbox.main.ui.workspace.rlocks :as rlocks]
[uxbox.main.geom :as geom]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.dom :as dom]))
;; --- State

View file

@ -22,7 +22,7 @@
[uxbox.main.ui.users :as ui.u]
[uxbox.main.ui.navigation :as nav]
[uxbox.util.mixins :as mx]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.math :as mth]))
;; --- Coordinates Widget

View file

@ -14,7 +14,7 @@
[uxbox.util.math :as mth]
[uxbox.main.ui.workspace.base :as wb]
[uxbox.util.mixins :as mx]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.dom :as dom]))
(def ^:private immanted-zones

View file

@ -11,7 +11,7 @@
[uxbox.util.mixins :as mx]
[uxbox.main.ui.workspace.base :as wb]
[uxbox.main.ui.workspace.rlocks :as rlocks]
[uxbox.main.geom.point :as gpt]))
[uxbox.util.geom.point :as gpt]))
(defn watch-scroll-interactions
[own]

View file

@ -16,7 +16,7 @@
[uxbox.main.ui.workspace.base :as wb]
[uxbox.main.ui.workspace.rlocks :as rlocks]
[uxbox.main.geom :as geom]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.dom :as dom]))
;; --- Refs & Constants

View file

@ -5,10 +5,10 @@
;; Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>
;; Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
(ns uxbox.main.geom.matrix
(ns uxbox.util.geom.matrix
(:require [cuerdas.core :as str]
[uxbox.util.math :as mth]
[uxbox.main.geom.point :as gpt]))
[uxbox.util.geom.point :as gpt]))
(defrecord Matrix [a b c d tx ty])

View file

@ -5,7 +5,7 @@
;; Copyright (c) 2015-2016 Andrey Antukh <niwi@niwi.nz>
;; Copyright (c) 2015-2016 Juan de la Cruz <delacruzgarciajuan@gmail.com>
(ns uxbox.main.geom.point
(ns uxbox.util.geom.point
(:refer-clojure :exclude [divide])
(:require [uxbox.util.math :as mth]))

View file

@ -9,7 +9,7 @@
(:require [cognitect.transit :as t]
[com.cognitect.transit :as tr]
[uxbox.util.data :refer (parse-int)]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.point :as gpt]
[uxbox.util.datetime :as dt]))
;; --- Transit Handlers

View file

@ -9,8 +9,8 @@
[uxbox.util.dom :as dom]
[uxbox.util.rstore :as rs]
[uxbox.main.geom :as geom]
[uxbox.main.geom.matrix :as gmt]
[uxbox.main.geom.point :as gpt]
[uxbox.util.geom.matrix :as gmt]
[uxbox.util.geom.point :as gpt]
[uxbox.main.state :as st]
[uxbox.view.data.viewer :as dv]
[vendor.snapsvg])

View file

@ -9,7 +9,7 @@
(:require [beicon.core :as rx]
[uxbox.util.kdtree :as kd]
[uxbox.worker.impl :as impl]
[uxbox.main.geom.point :as gpt]))
[uxbox.util.geom.point :as gpt]))
(defonce tree (kd/create))