()
| 383 | } |
| 384 | |
| 385 | private currentProgress() { |
| 386 | if (this.globalProgress.length === 0) { |
| 387 | return 0; |
| 388 | } |
| 389 | |
| 390 | let sum = 0; |
| 391 | for (const progress of this.globalProgress) { |
| 392 | sum += progress; |
| 393 | } |
| 394 | |
| 395 | return sum / this.globalProgress.length; |
| 396 | } |
| 397 | |
| 398 | private processSelection( |
| 399 | selection: {before: number | null; after: number | null}, |