Refactor shapes and selection rendering in order to be aware of rotation.

This commit is contained in:
Andrey Antukh 2016-12-25 20:50:04 +01:00
parent 30df813edf
commit c0a81d05eb
No known key found for this signature in database
GPG key ID: 4DFEBCB8316A8B95
9 changed files with 278 additions and 283 deletions

View file

@ -276,7 +276,7 @@
(let [xf (comp (map #(get-in state [:shapes %]))
(remove :hidden)
(remove :blocked)
(map geom/outer-rect))
(map geom/selection-rect))
match (partial try-match-shape xf selrect)
shapes (get-in state [:pages page :shapes])]
(reduce match #{} (sequence xf shapes))))