* @private
()
| 351 | * @private |
| 352 | */ |
| 353 | _getLabelBounds() { |
| 354 | const arr = this.getLabelTimestamps(); |
| 355 | let min = Number.POSITIVE_INFINITY; |
| 356 | let max = Number.NEGATIVE_INFINITY; |
| 357 | |
| 358 | if (arr.length) { |
| 359 | min = arr[0]; |
| 360 | max = arr[arr.length - 1]; |
| 361 | } |
| 362 | return {min, max}; |
| 363 | } |
| 364 | |
| 365 | /** |
| 366 | * @return {object[]} |
no test coverage detected