0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 00:01:51 -05:00

🐛 Removes outline for blocked shapes

This commit is contained in:
alonso.torres 2020-10-27 17:28:44 +01:00 committed by Hirunatan
parent 48ae26d08a
commit f4af0b0420

View file

@ -135,7 +135,10 @@
selected (or (unchecked-get props "selected") #{})
hover (or (unchecked-get props "hover") #{})
outline? (set/union selected hover)
shapes (->> (vals objects) (filter (comp outline? :id)))
show-outline? (fn [shape] (and (not (:hidden shape))
(not (:blocked shape))
(outline? (:id shape))))
shapes (->> (vals objects) (filter show-outline?))
transform (mf/deref refs/current-transform)
color (if (or (> (count shapes) 1) (nil? (:shape-ref (first shapes))))
"#31EFB8"