0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-11 01:28:30 -05:00

🐛 Fix circle shape rotation behavior.

This commit is contained in:
Andrey Antukh 2020-01-30 13:16:37 +01:00
parent cdcae36b58
commit 85f4d4824f

View file

@ -122,7 +122,7 @@
(mf/defc controls (mf/defc controls
[{:keys [shape zoom on-resize on-rotate] :as props}] [{: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) radius (if (> (max width height) handler-size-threshold) 6.0 4.0)
transform (geom/rotation-matrix shape)] transform (geom/rotation-matrix shape)]
[:g.controls {:transform transform} [:g.controls {:transform transform}