Text
- class Communicator.Markup.Shape.Text()
This object represents markup text that is drawn on the canvas.
Constructors
Methods
Constructors
Methods
getFillColor
getFillOpacity
- Text.getFillOpacity()
Gets the fill opacity for this shape
- Return type
number
- Returns
the fill opacity
getFontFamily
- Text.getFontFamily()
Gets the font family for this text
- Return type
string | null
- Returns
the font family
getFontSize
- Text.getFontSize()
Gets the font size for this text
- Return type
number
- Returns
the font size
getPosition
getStrokeColor
getStrokeWidth
getText
- Text.getText()
Gets the text content
- Return type
string
- Returns
the text content
setFillColor
setFillOpacity
- Text.setFillOpacity(fillOpacity)
Sets the fill opacity for this shape
- Arguments
fillOpacity (
number()
) – the fill opacity
- Return type
void
setFontFamily
- Text.setFontFamily(fontFamily)
Sets the font family this shape
- Arguments
fontFamily (
string()
) – font family to use for this text
- Return type
void
setFontSize
- Text.setFontSize(fontSize)
Sets the font size for this text
- Arguments
fontSize (
number()
) – size to use for this text
- Return type
void
setPosition
setStrokeColor
setStrokeWidth
setText
- Text.setText(text)
Sets the text content
- Arguments
text (
string()
) – the text to render
- Return type
void