Merge remote-tracking branch 'origin/plugins-beta-test' into develop

This commit is contained in:
alonso.torres
2024-07-26 13:47:12 +02:00
24 changed files with 1911 additions and 1040 deletions

View File

@@ -428,6 +428,8 @@
[shape text]
(let [content (:content shape)
root-styles (select-keys content root-attrs)
paragraph-style (merge
default-text-attrs
(select-keys (->> content (node-seq is-paragraph-node?) first) text-all-attrs))
@@ -447,10 +449,12 @@
:children [(merge {:text pt} text-style)]}))))
new-content
{:type "root"
:children
[{:type "paragraph-set"
:children paragraphs}]}]
(d/patch-object
{:type "root"
:children
[{:type "paragraph-set"
:children paragraphs}]}
root-styles)]
(assoc shape :content new-content)))

View File

@@ -48,8 +48,7 @@
#{:flex :grid})
(def flex-direction-types
;;TODO remove reverse-column and reverse-row after script
#{:row :reverse-row :row-reverse :column :reverse-column :column-reverse})
#{:row :row-reverse :column :column-reverse})
(def grid-direction-types
#{:row :column})
@@ -58,7 +57,7 @@
#{:simple :multiple})
(def wrap-types
#{:wrap :nowrap :no-wrap}) ;;TODO remove no-wrap after script
#{:wrap :nowrap})
(def padding-type
#{:simple :multiple})