From 0326c02c05e219f30044c0441b39757c4293e6fa Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 21 Jun 2016 18:57:09 +0300 Subject: [PATCH] Use proper vertex identifiers for obtain the corresponding point. --- src/uxbox/common/geom.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uxbox/common/geom.cljs b/src/uxbox/common/geom.cljs index f1232346ba..478314d7c8 100644 --- a/src/uxbox/common/geom.cljs +++ b/src/uxbox/common/geom.cljs @@ -154,10 +154,10 @@ (defn- get-rect-vertext-point [{:keys [x1 y1 x2 y2]} id] (case id - 1 (gpt/point x1 y1) - 2 (gpt/point x2 y1) - 3 (gpt/point x1 y2) - 4 (gpt/point x2 y2))) + :top-left (gpt/point x1 y1) + :top-right (gpt/point x2 y1) + :bottom-left (gpt/point x1 y2) + :bottom-right (gpt/point x2 y2))) (defn- get-circle-vertext-point [{:keys [rx ry]} id]