createElement()
Produces a 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 a SVG DOM element with the specified tag name.
Use the createElement()
function when you need to create a SVG element that
cannot be created with one of the fglsvgcanvas functions.
Example
DEFINE n om.DomNode
LET n = fglsvgcanvas.createElement( "feBlend", "myblend" )