🐛 Fix problem when importing a SVG with text

This commit is contained in:
alonso.torres 2022-03-17 15:12:05 +01:00
parent 89e2f4a481
commit a4d362d43d
5 changed files with 69 additions and 32 deletions

View file

@ -458,6 +458,49 @@
:feTile
:feTurbulence})
;; By spec: https://www.w3.org/TR/SVG11/single-page.html#struct-GElement
(defonce svg-group-safe-tags
#{:animate
:animateColor
:animateMotion
:animateTransform
:set
:desc
:metadata
:title
:circle
:ellipse
:line
:path
:polygon
:polyline
:rect
:defs
:g
:svg
:symbol
:use
:linearGradient
:radialGradient
:a
:altGlyphDef
:clipPath
:color-profile
:cursor
:filter
:font
:font-face
:foreignObject
:image
:marker
:mask
:pattern
:script
:style
:switch
:text
:view})
;; Props not supported by react we need to keep them lowercase
(defonce non-react-props
#{:mask-type})