createElement()

Produces a SVG DOM element with the tag name specified as parameter.

Syntax

createElement(
   tagName STRING,
   id STRING )
  RETURNS om.DomNode
  1. tagName is the DOM tag name.
  2. 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" )