🐛 Fix unexpected behavior on selection controls on non-rect like shapes.

This commit is contained in:
Andrey Antukh 2020-01-24 12:39:48 +01:00
parent c86b6b7b8f
commit f099e0f90d

View file

@ -122,7 +122,7 @@
(mf/defc controls
[{:keys [shape zoom on-resize on-rotate] :as props}]
(let [{:keys [x y width height rotation]} shape
(let [{:keys [x y width height rotation]} (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}