mirror of
https://github.com/penpot/penpot.git
synced 2025-07-30 06:18:35 +02:00
🐛 Fix problem when importing a SVG with text
This commit is contained in:
parent
89e2f4a481
commit
a4d362d43d
5 changed files with 69 additions and 32 deletions
|
@ -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})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue