From e58e6e58e4a97c217fb95f4488a4651b31c00b05 Mon Sep 17 00:00:00 2001 From: Matt Mo Date: Fri, 8 Jan 2021 02:22:29 -0800 Subject: [PATCH] Added a template for line elements. --- ignite-template.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ignite-template.js b/ignite-template.js index f479a2f..2a45ede 100644 --- a/ignite-template.js +++ b/ignite-template.js @@ -1417,6 +1417,19 @@ class circle extends IgniteTemplate { } } +/** + * An ignite template that can be used to construct a line element. + */ +class line extends IgniteTemplate { + /** + * @param {...String|Number|IgniteProperty|IgniteTemplate} children A series of children to be added to this template. + */ + constructor(...children) { + super("line", children); + this.tagNamespace = "http://www.w3.org/2000/svg"; + } +} + /** * Html is a special template that can construct raw html or properties into the dom and automatically * update the dom if the property changes. @@ -2298,5 +2311,6 @@ export { g, path, circle, + line, form }; \ No newline at end of file