🐛 Fix problem with inspect

This commit is contained in:
alonso.torres 2023-10-20 13:04:33 +02:00
parent 69c8845ac8
commit 5a9421a1e2
4 changed files with 84 additions and 74 deletions

View file

@ -16,7 +16,7 @@
[app.common.types.shape.layout :as ctl]
[app.main.ui.shapes.text.styles :as sts]
[app.util.code-gen.common :as cgc]
[app.util.code-gen.style-css-formats :refer [format-value]]
[app.util.code-gen.style-css-formats :refer [format-value format-shadow]]
[app.util.code-gen.style-css-values :refer [get-value]]
[cuerdas.core :as str]))
@ -117,17 +117,6 @@ body {
:grid-row
:grid-area])
(def text-node-css-properties
[:font-family
:font-style
:font-size
:font-weight
:line-height
:letter-spacing
:text-decoration
:text-transform
:color])
(defn shape->css-property
[shape objects property]
(when-let [value (get-value property shape objects)]
@ -317,3 +306,7 @@ body {
(->> shapes
(keep #(get-shape-css-selector % objects options))
(str/join "\n\n")))))
(defn shadow->css
[shadow]
(dm/str "box-shadow: " (format-shadow shadow {})))