Improve handling of shape transform modifiers

This commit is contained in:
alonso.torres 2021-05-10 18:12:49 +02:00 committed by Andrey Antukh
parent 384b464f0f
commit ae1e9a861b
6 changed files with 38 additions and 24 deletions

View file

@ -235,7 +235,7 @@
[{:keys [bounds frame selected-shapes hover-shape zoom]}]
(let [selected-ids (into #{} (map :id) selected-shapes)
selected-selrect (gsh/selection-rect selected-shapes)
hover-selrect (:selrect hover-shape)
hover-selrect (-> hover-shape :points gsh/points->selrect)
bounds-selrect (bound->selrect bounds)
hover-selected-shape? (not (contains? selected-ids (:id hover-shape)))]