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:
parent
48ae26d08a
commit
f4af0b0420
1 changed files with 4 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue