mirror of
https://github.com/penpot/penpot.git
synced 2025-07-27 01:57:18 +02:00
✨ Move auto-layout children
This commit is contained in:
parent
025cac0228
commit
c3ed46d3ab
22 changed files with 457 additions and 329 deletions
|
@ -67,6 +67,9 @@
|
|||
|
||||
;; Disable frame thumbnails
|
||||
:disable-frame-thumbnails
|
||||
|
||||
;; Enable a widget to show the auto-layout drop-zones
|
||||
:layout-drop-zones
|
||||
})
|
||||
|
||||
;; These events are excluded when we activate the :events flag
|
||||
|
@ -294,9 +297,16 @@
|
|||
num-nodes (->> (dom/seq-nodes root-node) count)]
|
||||
#js {:number num-nodes}))
|
||||
|
||||
#_(defn modif->js
|
||||
(defn modif->js
|
||||
[modif-tree objects]
|
||||
(clj->js (into {}
|
||||
(map (fn [[k v]]
|
||||
[(get-in objects [k :name]) v]))
|
||||
modif-tree)))
|
||||
|
||||
(defn ^:export dump-modifiers
|
||||
[]
|
||||
(let [page-id (get @st/state :current-page-id)
|
||||
objects (get-in @st/state [:workspace-data :pages-index page-id :objects])]
|
||||
(.log js/console (modif->js (:workspace-modifiers @st/state) objects)))
|
||||
nil)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue