* Returns the total progress * @param {Number} [value] * @returns {Number} * @private
(value)
| 337 | * @private |
| 338 | */ |
| 339 | _getTotalProgress(value) { |
| 340 | if(this.removeAfterUpload) return value || 0; |
| 341 | |
| 342 | var notUploaded = this.getNotUploadedItems().length; |
| 343 | var uploaded = notUploaded ? this.queue.length - notUploaded : this.queue.length; |
| 344 | var ratio = 100 / this.queue.length; |
| 345 | var current = (value || 0) * ratio / 100; |
| 346 | |
| 347 | return Math.round(uploaded * ratio + current); |
| 348 | } |
| 349 | /** |
| 350 | * Returns array of filters |
| 351 | * @param {Array<Function>|String} filters |
no test coverage detected