Class: ProgressNumeric

ProgressNumeric(progressMin, progressMax, handler)

A simple class to report numeric progress within a range (typically [0, 1]), but any other positive range is good, too.

Constructor

new ProgressNumeric(progressMin, progressMax, handler)

Parameters:
Name Type Default Description
progressMin Number 0 the lowest possible value for the progress
progressMax Number 1 the largest possible value for the progress
handler callbackHandler.<number> a callback to be invoked for every progress reported. If not provided, you may subscribe to the events of this class or use the provided Observable.
Author:
Source:

Extends

Members

percent :Number

Type:
  • Number
Source:

Methods

reportProgress(progress) → {this}

Parameters:
Name Type Description
progress Number the numeric progress
Source:
Returns:
Type
this