mirror of
https://github.com/penpot/penpot.git
synced 2025-06-13 16:51:38 +02:00
✨ Expand mask when selected in workspace
This commit is contained in:
parent
0ddf6d30b8
commit
823aa426ed
3 changed files with 23 additions and 13 deletions
|
@ -22,15 +22,16 @@
|
|||
(mf/fnc group-shape
|
||||
{::mf/wrap-props false}
|
||||
[props]
|
||||
(let [frame (unchecked-get props "frame")
|
||||
shape (unchecked-get props "shape")
|
||||
childs (unchecked-get props "childs")
|
||||
mask (if (:masked-group? shape)
|
||||
(first childs)
|
||||
nil)
|
||||
childs (if (:masked-group? shape)
|
||||
(rest childs)
|
||||
childs)
|
||||
(let [frame (unchecked-get props "frame")
|
||||
shape (unchecked-get props "shape")
|
||||
childs (unchecked-get props "childs")
|
||||
expand-mask (unchecked-get props "expand-mask")
|
||||
mask (if (and (:masked-group? shape) (not expand-mask))
|
||||
(first childs)
|
||||
nil)
|
||||
childs (if (and (:masked-group? shape) (not expand-mask))
|
||||
(rest childs)
|
||||
childs)
|
||||
is-child-selected? (unchecked-get props "is-child-selected?")
|
||||
{:keys [id x y width height]} shape
|
||||
transform (geom/transform-matrix shape)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue