Class: TextElement

TextElement

extends Element Class adding an EaselJS Text instance inside of it

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
options Object 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
text String the text content
Returns:
to make chainable the method
Type
TextElement