From 0fca6e961d69a7bb073baf10f2c27d31522abb59 Mon Sep 17 00:00:00 2001 From: Antonis Geralis <43617260+planetis-m@users.noreply.github.com> Date: Thu, 4 Feb 2021 20:24:19 +0200 Subject: [PATCH] add all svg elements acording to the standard (#178) --- karax/vdom.nim | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/karax/vdom.nim b/karax/vdom.nim index 2016ca3..8fd654e 100644 --- a/karax/vdom.nim +++ b/karax/vdom.nim @@ -34,8 +34,20 @@ type kdb, sub, sup, italic = "i", bold = "b", underlined = "u", mark, ruby, rt, rp, bdi, dbo, span, br, wbr, ins, del, img, iframe, embed, `object` = "object", - param, video, audio, picture, source, track, canvas, map, - area, svg, math, path, circle + param, video, audio, source, track, canvas, map, + area, math, + + # SVG elements, see: https://www.w3.org/TR/SVG2/eltindex.html + animate, animateMotion, animateTransform, circle, clipPath, defs, desc, + `discard` = "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, foreignObject, g, image, line, linearGradient, marker, mask, + metadata, mpath, path, pattern, polygon, polyline, radialGradient, rect, + `set` = "set", stop, svg, switch, symbol, txt = "text", textPath, tspan, + unknown, use, view, table, caption, colgroup, col, tbody, thead, tfoot, tr, td, th, @@ -101,9 +113,9 @@ type ontransitionend, ontransitionrun, ontransitionstart, - + onwheel # fires when the user rotates a wheel button on a pointing device. - + macro buildLookupTables(): untyped = var a = newTree(nnkBracket) for i in low(VNodeKind)..high(VNodeKind):