Skip to content

Commit

Permalink
feat(hiccup): add support for more SVG tags (66 total)
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Feb 24, 2018
1 parent 214fe4d commit 44f33df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hiccup/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export const SVG_NS = "http://www.w3.org/2000/svg";
export const TAG_REGEXP = /^([^\s\.#]+)(?:#([^\s\.#]+))?(?:\.([^\s#]+))?$/;

// tslint:disable-next-line
export const SVG_TAGS = "svg circle clipPath defs ellipse g line linearGradient mask path pattern polygon polyline radialGradient rect stop symbol text"
export const SVG_TAGS = "animate animateColor animateMotion animateTransform circle clipPath color-profile defs desc discard ellipse feBlend feColorMatrix feComponentTransfer feComposite feConvolveMatrix feDiffuseLighting feDisplacementMap feDistantLight feDropShadow feFlood feFuncA feFuncB feFuncG feFuncR feGaussianBlur feImage feMerge feMergeNode feMorphology feOffset fePointLight feSpecularLighting feSpotLight feTile feTurbulence filter font foreignObject g image line linearGradient marker mask metadata mpath path pattern polygon polyline radialGradient rect set stop style svg switch symbol text textPath title tref tspan use view"
.split(" ")
.reduce((acc, x) => (acc[x] = 1, acc), {});

Expand Down

0 comments on commit 44f33df

Please sign in to comment.