mirror of
https://github.com/penpot/penpot.git
synced 2026-03-20 17:33:44 +00:00
🐛 Fix circle shape rotation behavior.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user