0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-23 06:58:58 -05:00

Add mask-type style parsing (react now supports it)

This commit is contained in:
Andrey Antukh 2024-01-29 18:32:29 +01:00
parent 4a4aabd230
commit 1de9171d50

View file

@ -517,10 +517,6 @@
:text :text
:view}) :view})
;; Props not supported by react we need to keep them lowercase
(def non-react-props
#{:mask-type})
;; Defaults for some tags per spec https://www.w3.org/TR/SVG11/single-page.html ;; Defaults for some tags per spec https://www.w3.org/TR/SVG11/single-page.html
;; they are basically the defaults that can be percents and we need to replace because ;; they are basically the defaults that can be percents and we need to replace because
;; otherwise won't work as expected in the workspace ;; otherwise won't work as expected in the workspace
@ -622,10 +618,9 @@
res)) res))
:else :else
(let [k (if (contains? non-react-props k) (let [k (-> k d/name camelize keyword)]
k
(-> k d/name camelize keyword))]
(assoc res k v))) (assoc res k v)))
res)) res))
{} {}
attrs))) attrs)))