import StyledLetter from '@mobilizing/library/js/Mobilizing/text/StyledLetter.js'
StyledLetter
StyledLetter is a class that helps to represents a letter with its style for later drawing.
Constructor Summary
Public Constructor | ||
public | constructor(params: Object) |
Member Summary
Method Summary
Public Methods | ||
public | Defines the letter's color | |
public | Defines the letter's font | |
public | Defines the letter's string | |
public | Defines the letter's font size | |
public | Defines the letter's x coord | |
public | Defines the letter's y coord | |
public | update() Updates properties according to the new settings |
Public Constructors
Public Members
public boundingBox: * source
public color: * source
public font: * source
public letter: * source
public path: * source
public size: * source
Public Methods
public setColor(color: Color) source
Defines the letter's color
Params:
Name | Type | Attribute | Description |
color | Color |
public setFont(font: Font) source
Defines the letter's font
Params:
Name | Type | Attribute | Description |
font | Font |
public setLetter(letter: String) source
Defines the letter's string
Params:
Name | Type | Attribute | Description |
letter | String |
public setSize(size: Number) source
Defines the letter's font size
Params:
Name | Type | Attribute | Description |
size | Number |
public setX(x: Number) source
Defines the letter's x coord
Params:
Name | Type | Attribute | Description |
x | Number |
public setY(y: Number) source
Defines the letter's y coord
Params:
Name | Type | Attribute | Description |
y | Number |
public update() source
Updates properties according to the new settings