* Set the string displayed by the object. * @param text The new text
(text: string)
| 454 | * @param text The new text |
| 455 | */ |
| 456 | setText(text: string): void { |
| 457 | if (text === this._str) { |
| 458 | return; |
| 459 | } |
| 460 | this._str = text; |
| 461 | this._renderer.updateString(); |
| 462 | this._updateTextPosition(); |
| 463 | } |
| 464 | |
| 465 | /** |
| 466 | * Get the font size of the characters of the object. |
no test coverage detected