From 85f4d4824f376565725ca937f037c4850f677cd4 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 30 Jan 2020 13:16:37 +0100 Subject: [PATCH] :bug: Fix circle shape rotation behavior. --- frontend/src/uxbox/main/ui/workspace/selection.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/uxbox/main/ui/workspace/selection.cljs b/frontend/src/uxbox/main/ui/workspace/selection.cljs index 6182de478..36584604c 100644 --- a/frontend/src/uxbox/main/ui/workspace/selection.cljs +++ b/frontend/src/uxbox/main/ui/workspace/selection.cljs @@ -122,7 +122,7 @@ (mf/defc controls [{:keys [shape zoom on-resize on-rotate] :as props}] - (let [{:keys [x y width height rotation]} (geom/shape->rect-shape shape) + (let [{:keys [x y width height rotation] :as shape} (geom/shape->rect-shape shape) radius (if (> (max width height) handler-size-threshold) 6.0 4.0) transform (geom/rotation-matrix shape)] [:g.controls {:transform transform}