addProgress(amount) {
            if (typeof amount !== 'number') {
                throw new Error('Amount to add to progress bar is invalid')
            }

            this.percentage += amount
            let percent = Math.round(this.percentage * 100) / 100
            if (percent >= 100 && !this.overflow) percent = 100

            this.HTMLprogress.style.width = Math.min(100, percent) + '%'
            this.HTMLouterPercentage.style.width =
                100 - Math.min(100, percent) + '%'
            this._updateInnerText()

            if (percent === 100 && this.removeWhenDone) {
                this.finishAnimation()
            }
        }
/**
         * Advances the progress bar by amount%.
         * Should be invoked whenever progress has been made while loading an element
         * @param {number} amount - The percentage to add to the progress bar
         */
Advances the progress bar by amount%.
Should be invoked whenever progress has been made while loading an element
@param {number} amount - The percentage to add to the progress bar
Advances the progress bar by amount% . Should be invoked whenever progress has been made while loading an element @param { number } amount - The percentage to add to the progress bar
addProgress(amount) {
            if (typeof amount !== 'number') {
                throw new Error('Amount to add to progress bar is invalid')
            }
            this.percentage += amount
            let percent = Math.round(this.percentage * 100) / 100
            if (percent >= 100 && !this.overflow) percent = 100
            this.HTMLprogress.style.width = Math.min(100, percent) + '%'
            this.HTMLouterPercentage.style.width =
                100 - Math.min(100, percent) + '%'
            this._updateInnerText()
            if (percent === 100 && this.removeWhenDone) {
                this.finishAnimation()
            }
        }
addProgress ( amount ) { if ( typeof amount !== 'number' ) { throw new Error ( 'Amount to add to progress bar is invalid' ) } this . percentage += amount let percent = Math . round ( this . percentage * 100 ) / 100 if ( percent >= 100 && ! this . overflow ) percent = 100 this . HTMLprogress . style . width = Math . min ( 100 , percent ) + '%' this . HTMLouterPercentage . style . width = 100 - Math . min ( 100 , percent ) + '%' this . _updateInnerText ( ) if ( percent === 100 && this . removeWhenDone ) { this . finishAnimation ( ) } }
Advances the progress bar by amount%.
Advances the progress bar by amount% .