♻️ Renamed layout to grid and some refactors

This commit is contained in:
alonso.torres 2020-05-19 13:47:52 +02:00 committed by Andrés Moya
parent 235e196094
commit 23ca77fe3a
10 changed files with 203 additions and 171 deletions

View file

@ -14,7 +14,7 @@
[uxbox.util.geom.shapes :as gsh]
[uxbox.util.geom.point :as gpt]))
(defn- frame-snap-points [{:keys [x y width height layouts] :as frame}]
(defn- frame-snap-points [{:keys [x y width height] :as frame}]
(into #{(gpt/point x y)
(gpt/point (+ x (/ width 2)) y)
(gpt/point (+ x width) y)