mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 12:52:56 +02:00
✨ Adds child layout options to grid children
This commit is contained in:
parent
cdebf245e3
commit
4bd15b5de1
11 changed files with 48 additions and 48 deletions
|
@ -485,22 +485,22 @@
|
|||
(defn workspace-text-modifier-by-id [id]
|
||||
(l/derived #(get % id) workspace-text-modifier =))
|
||||
|
||||
(defn is-flex-layout-child?
|
||||
(defn is-layout-child?
|
||||
[ids]
|
||||
(l/derived
|
||||
(fn [objects]
|
||||
(->> ids
|
||||
(map (d/getf objects))
|
||||
(some (partial ctl/flex-layout-immediate-child? objects))))
|
||||
(some (partial ctl/any-layout-immediate-child? objects))))
|
||||
workspace-page-objects))
|
||||
|
||||
(defn all-flex-layout-child?
|
||||
(defn all-layout-child?
|
||||
[ids]
|
||||
(l/derived
|
||||
(fn [objects]
|
||||
(->> ids
|
||||
(map (d/getf objects))
|
||||
(every? (partial ctl/flex-layout-immediate-child? objects))))
|
||||
(every? (partial ctl/any-layout-immediate-child? objects))))
|
||||
workspace-page-objects))
|
||||
|
||||
(defn get-flex-child-viewer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue