new TextElement(options)
constructs a TextElement instance
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Object | the options to be merged with defaults settings |
Methods
-
drawElements()
-
draws all graphic elements of the TextElement instance
-
getText()
-
gets the actual text content
Returns:
- Type
- String
-
initDefaults()
-
initializes defaults settings for TextElement
-
initSettings(options)
-
initializes the settings object for the TextElement instance
Parameters:
Name Type Description optionsObject the options to be merged with the defaults settings -
setComputedBounds()
-
computes the bounds based on specified text parameter
-
setText(text)
-
sets the text content for the TextElement instance, considering also the textOutline
Parameters:
Name Type Description textString the text content Returns:
to make chainable the method- Type
- TextElement