Added a template for line elements.
This commit is contained in:
parent
ea14328eb4
commit
e58e6e58e4
@ -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
|
* Html is a special template that can construct raw html or properties into the dom and automatically
|
||||||
* update the dom if the property changes.
|
* update the dom if the property changes.
|
||||||
@ -2298,5 +2311,6 @@ export {
|
|||||||
g,
|
g,
|
||||||
path,
|
path,
|
||||||
circle,
|
circle,
|
||||||
|
line,
|
||||||
form
|
form
|
||||||
};
|
};
|
Loading…
x
Reference in New Issue
Block a user