createElement()
Produces an SVG DOM element with the tag name specified as parameter.
Syntax
createElement(
tagName STRING,
id STRING )
RETURNS om.DomNode
- tagName is the DOM tag name.
- id is the SVG object identifier.
Usage
This function creates an SVG DOM element with the specified tag name.
Use the createElement()
function when you need to create an SVG element that
cannot be created with one of the fglsvgcanvas functions.
Example
DEFINE n om.DomNode
LET n = fglsvgcanvas.createElement( "feBlend", "myblend" )