Defines a graphical text component.
new TextComponent(
text?):TextComponent
Creates a text component.
string = ‘’'`
Text value.
TextComponent
GraphicalComponent.constructor
fontSize:
number=0
Font size of the text.
text:
string= ‘’'`
Text value.
get direction():
Direction2d
Direction of the text on the 2D plane.
set direction(
direction):void
Sets the direction of the text on the 2D plane.
The coordinates are copied from the provided direction.
Direction of the text.
void
get id():
bigint
Returns the unique identifier of the object.
bigint
get origin():
Point2d
Position of the text on the 2D plane.
set origin(
origin):void
Sets the position of the text on the 2D plane.
The coordinates are copied from the provided point.
Position of the text.
void
accept(
visitor):void
Accepts a graphical component visitor.
Visitor to accept.
void