text()
Produces an SVG "text"
element.
Syntax
text(
x STRING,
y STRING,
content STRING,
class STRING )
RETURNS om.DomNode
- x and y define the position of the text.
- content is the actual text.
- class defines a reference to a CSS style.
Usage
This function creates a "text"
SVG DOM element from the parameters.
To specify the text font attributes, define a CSS style in a defs()
element with
the styleList() function,
and reference the text style in the class parameter of this function.
Example
DEFINE n om.DomNode
LET n = fglsvgcanvas.text(10,10,"Hello!","mystyle_1")