mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 21:46:38 +02:00
Move uxbox independent geom logic under uxbox.util ns.
This commit is contained in:
parent
6b8b6ac5b9
commit
c52755b329
16 changed files with 19 additions and 19 deletions
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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]))
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
@ -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]))
|
||||
|
|
@ -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
|
||||
|
|
|
@ -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])
|
||||
|
|
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue