1.18.0 • Published 5 years ago
@pencil.js/progress-bar v1.18.0
Progress-bar
Progress-bar component.
Installation
npm install @pencil.js/progress-bar
Examples
import ProgressBar from "@pencil.js/progress-bar";
const position = [100, 200];
const options = {
width: 200, // width in pixel
value: 0, // initial value (from 0 to 1)
speed: 0.3, // transition speed (0 means no changes, 1 mean instant change)
};
const progressBar = new ProgressBar(position, options);
progressBar.value = 0.5; // set to 50%
ProgressBarOptions
Inherit from InputOptions.
Name | Type | Default | Comment |
---|---|---|---|
value | Number | 0 | Initial value |
width | Number | 200 | Size of the slider |
speed | Number | 0.3 | Transition speed between two value (0 mean no change, 1 mean instant change) |
1.18.0
5 years ago
1.17.0
5 years ago
1.16.0
5 years ago
1.15.0
5 years ago
1.14.0
5 years ago
1.13.1
6 years ago
1.13.0
6 years ago
1.12.0
6 years ago
1.11.0
6 years ago
1.10.2
6 years ago
1.10.1
6 years ago
1.10.0
6 years ago
1.9.2
6 years ago
1.9.0
6 years ago
1.8.0
6 years ago
1.7.0
6 years ago
1.6.6
6 years ago
1.6.5
6 years ago
1.6.4
6 years ago
1.6.3
6 years ago
1.6.2
6 years ago
1.6.1
6 years ago
1.6.0
6 years ago
1.5.0
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago