Defines a text element for a drawing.
new Text(
text?):Text
Creates a text element.
string = ‘’'`
Text content.
Text
properties:
TextProperties
Properties of the drawing text.
text:
string= ‘’'`
Text content.
get fontSize():
number
Font size in points.
Use Text.properties and `properties.fontSize` instead.
number
set fontSize(
fontSize):void
Sets the font size in points.
Use Text.properties and `properties.fontSize` instead.
number
Size of the font in points.
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
get uuid():
`${string}-${string}-${string}-${string}-${string}`|null
UUID of the drawing element.
The value is null if no UUID is assigned.
`${string}-${string}-${string}-${string}-${string}` | null
set uuid(
uuid):void
Sets the UUID of the drawing element.
`${string}-${string}-${string}-${string}-${string}` | null
UUID to assign to the drawing element.
void
accept(
visitor):void
Accepts an element visitor.
Element visitor to accept.
void