Create grid from selection

This commit is contained in:
alonso.torres 2023-10-24 16:58:28 +02:00
parent 02399add7a
commit 351f7fd1bb
17 changed files with 395 additions and 234 deletions

View file

@ -101,6 +101,7 @@ body {
:grid-template-rows
:grid-template-columns
:grid-template-areas
:grid-auto-flow
;; Flex/grid self properties
:flex-shrink

View file

@ -420,6 +420,11 @@
justify-self (:justify-self cell)]
(when (not= justify-self :auto) justify-self))))
(defmethod get-value :grid-auto-flow
[_ shape _]
(when (and (ctl/grid-layout? shape) (= (:layout-grid-dir shape) :column))
"column"))
(defmethod get-value :default
[property shape _]
(get shape property))