createChars()
Produces an SVG DOM text node.
Syntax
createChars( value STRING )
RETURNS om.DomNode
- value is the value to be set in the text node.
Usage
This function creates an SVG DOM text node from the value passed as parameter.
Use the createChars()
function when you need to create an SVG text node
that cannot be created with one of the fglsvgcanvas functions (such as title()
).
Example
DEFINE t, c om.DomNode
LET t = fglsvgcanvas.createElement( "title", "id1" )
LET c = fglsvgcanvas.createChars( "my value" )
CALL t.appendChild( c )