createElement()

Produces an 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 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" )