SVG generation first version

This commit is contained in:
alonso.torres 2020-10-29 19:50:07 +01:00 committed by Hirunatan
parent 28f90da70e
commit 96098be5ae
19 changed files with 104 additions and 99 deletions

View file

@ -44,7 +44,7 @@
:letter-spacing
:text-decoration
:text-transform]
:to-prop {:fill-color "color" }
:to-prop {:fill-color "color"}
:format {:font-family #(str "'" % "'")
:font-style #(str "'" % "'")
:font-size #(str % "px")
@ -125,7 +125,7 @@
shape-format (->> text-shape-style vals (map :format) (reduce merge))
text-values (->> (ut/search-text-attrs (:content shape) (:props style-text))
text-values (->> (ut/search-text-attrs (:content shape) (conj (:props style-text) :fill-color-gradient))
(merge ut/default-text-attrs))]
(str/join