Multiple fills in text shapes

This commit is contained in:
alonso.torres 2022-02-22 18:06:48 +01:00
parent a3063eb46d
commit ec63d23666
19 changed files with 230 additions and 211 deletions

View file

@ -95,6 +95,13 @@
selected (impl/getSelectedBlocks state)]
(reduce update-blocks state selected)))
(defn update-editor-current-inline-styles-fn
[state update-fn]
(let [attrs (-> (.getCurrentInlineStyle ^js state)
(txt/styles-to-attrs)
(update-fn))]
(impl/applyInlineStyle state (txt/attrs-to-styles attrs))))
(defn editor-split-block
[state]
(impl/splitBlockPreservingData state))

View file

@ -119,7 +119,5 @@
:text-transform (str (get "text-transform"))
:text-decoration (str (get "text-decoration"))
:font-style (str (get "font-style"))
:fill-color (or (get "--fill-color") "#000000")
:fill-color-gradient (transit/decode-str (get "--fill-color-gradient"))
:fill-opacity (d/parse-double (or (get "--fill-opacity") "1"))
:fills (transit/decode-str (get "--fills"))
:text text}))))))))))