Text
-
class
Markup.Shapes.Text() This object represents markup text that is drawn on the canvas.
Constructors
Methods
-
Markup.Shapes.Text.getFillColor() inherited
getFillColor():ColorGets the fill color for this shape
Returns:
Colorthe fill color
-
Markup.Shapes.Text.getFillOpacity() inherited
getFillOpacity(): numberGets the fill opacity for this shape
Returns: number
the fill opacity
-
Markup.Shapes.Text.getFontFamily() inherited
getFontFamily(): (None | string)Gets the font family for this text
Returns: (None | string)
the font family
-
Markup.Shapes.Text.getFontSize() inherited
getFontSize(): numberGets the font size for this text
Returns: number
the font size
-
Markup.Shapes.Text.getPosition() - getPosition():
Point2Gets the text position
Returns:
Point2the text position
-
Markup.Shapes.Text.getStrokeColor() inherited
getStrokeColor():ColorGets the stroke color for this shape
Returns:
Colorthe stroke color
-
Markup.Shapes.Text.getStrokeWidth() inherited
getStrokeWidth(): numberGets the stroke width for this shape in pixels
Returns: number
the stroke width in pixels
-
Markup.Shapes.Text.getText() - getText(): string
Gets the text content
Returns: string
the text content
-
Markup.Shapes.Text.setFillColor() inherited
setFillColor(color:Color): voidSets the fill color for this shape
Parameters
color:
Colorthe fill colorReturns: void
-
Markup.Shapes.Text.setFillOpacity() inherited
setFillOpacity(fillOpacity: number): voidSets the fill opacity for this shape
Parameters
fillOpacity: number
the fill opacityReturns: void
-
Markup.Shapes.Text.setFontFamily() inherited
setFontFamily(fontFamily: string): voidSets the font family this shape
Parameters
fontFamily: string
font family to use for this textReturns: void
-
Markup.Shapes.Text.setFontSize() inherited
setFontSize(fontSize: number): voidSets the font size for this text
Parameters
fontSize: number
size to use for this textReturns: void
-
Markup.Shapes.Text.setPosition() - setPosition(position:
Point2): voidSets the text position
Parameters
position:Point2Returns: void
the top left position to render text from
-
Markup.Shapes.Text.setStrokeColor() inherited
setStrokeColor(color:Color): voidSets the stroke color for this shape
Parameters
color:
Colorthe stroke colorReturns: void
-
Markup.Shapes.Text.setStrokeWidth() inherited
setStrokeWidth(strokeWidth: number): voidSets the stroke width for this shape in pixels
Parameters
strokeWidth: number
the stroke width in pixelsReturns: void
-
Markup.Shapes.Text.setText() - setText(text: string): void
Sets the text content
Parameters
text: string
the text to renderReturns: void