Instance component to grid layout

This commit is contained in:
alonso.torres 2023-09-14 15:17:40 +02:00
parent ea4a3d9e27
commit 6f2a459cce
7 changed files with 45 additions and 22 deletions

View file

@ -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)