(displayText?: string)
| 72 | */ |
| 73 | public text(displayText: string): this; |
| 74 | public text(displayText?: string): any { |
| 75 | if (displayText == null) { |
| 76 | return this._text; |
| 77 | } else { |
| 78 | if (typeof displayText !== "string") { |
| 79 | throw new Error("Label.text() only takes strings as input"); |
| 80 | } |
| 81 | this._text = displayText; |
| 82 | this.redraw(); |
| 83 | return this; |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * Gets the angle of the Label in degrees. |
no test coverage detected