mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 16:01:38 +02:00
Refactor shapes and selection rendering in order to be aware of rotation.
This commit is contained in:
parent
30df813edf
commit
c0a81d05eb
9 changed files with 278 additions and 283 deletions
|
@ -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))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue