mirror of
https://github.com/penpot/penpot.git
synced 2025-08-03 15:58:29 +02:00
🎉 Detach component now only affects top instance, not subinstances
This commit is contained in:
parent
b33e469501
commit
a27fa8b317
2 changed files with 20 additions and 18 deletions
|
@ -63,6 +63,10 @@
|
|||
[container shape-id f]
|
||||
(update-in container [:objects shape-id] f))
|
||||
|
||||
(defn get-direct-children
|
||||
[container shape]
|
||||
(map #(get-shape container %) (:shapes shape)))
|
||||
|
||||
(defn get-component-shape
|
||||
"Get the parent shape linked to a component for this shape, if any"
|
||||
[objects shape]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue