mirror of
https://github.com/penpot/penpot.git
synced 2025-07-22 23:07:14 +02:00
✨ Grid layout infrastructure
This commit is contained in:
parent
2030f987db
commit
a0cd94cfae
33 changed files with 362 additions and 150 deletions
|
@ -82,7 +82,7 @@
|
|||
grid-y-data (get-grids-snap-points frame :y)]
|
||||
|
||||
(cond-> page-data
|
||||
(not (ctl/layout-descent? objects frame))
|
||||
(not (ctl/any-layout-descent? objects frame))
|
||||
|
||||
(-> ;; Update root frame information
|
||||
(assoc-in [uuid/zero :objects-data frame-id] frame-data)
|
||||
|
@ -106,7 +106,7 @@
|
|||
:id (:id shape)
|
||||
:pt %)))]
|
||||
(cond-> page-data
|
||||
(not (ctl/layout-descent? objects shape))
|
||||
(not (ctl/any-layout-descent? objects shape))
|
||||
(-> (assoc-in [frame-id :objects-data (:id shape)] shape-data)
|
||||
(update-in [frame-id :x] (make-insert-tree-data shape-data :x))
|
||||
(update-in [frame-id :y] (make-insert-tree-data shape-data :y))))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue