mirror of
https://github.com/penpot/penpot.git
synced 2025-05-10 12:26:37 +02:00
✨ Instance component to grid layout
This commit is contained in:
parent
ea4a3d9e27
commit
6f2a459cce
7 changed files with 45 additions and 22 deletions
|
@ -153,12 +153,14 @@
|
|||
([state label component-id file-id]
|
||||
(let [page (current-page state)
|
||||
libraries (wsh/get-libraries state)
|
||||
objects (:objects page)
|
||||
|
||||
changes (-> (pcb/empty-changes nil (:id page))
|
||||
(pcb/with-objects (:objects page)))
|
||||
(pcb/with-objects objects))
|
||||
|
||||
[new-shape changes]
|
||||
(dwlh/generate-instantiate-component changes
|
||||
objects
|
||||
file-id
|
||||
component-id
|
||||
(gpt/point 100 100)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue