Allows groups to reflow the layout on transform

This commit is contained in:
alonso.torres 2022-07-06 12:40:07 +02:00 committed by Andrey Antukh
parent 84c0825893
commit 6e5a23c190
4 changed files with 92 additions and 31 deletions

View file

@ -353,3 +353,10 @@
(let [root-node (dom/query ".viewport .render-shapes")
num-nodes (->> (dom/seq-nodes root-node) count)]
#js {:number num-nodes}))
#_(defn modif->js
[modif-tree objects]
(clj->js (into {}
(map (fn [[k v]]
[(get-in objects [k :name]) v]))
modif-tree)))