Skip to content

Commit fdc767c

Browse files
committed
progress bar docs update
1 parent 27b6c25 commit fdc767c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/components/UIProgressBar.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@ const PROGRESS_STATE_REGEX = /progress_(\d+)$/;
2222
* and all differences between them will be interpolated to the current progress value.
2323
* Also you can create intermediate states, if you want to control intermediate interpolation behaviour.
2424
25-
* For example, if you want an indicator to rotate a full circle, you need to create intermediate states
26-
* `progress_30` and `progress_70`, to be sure, that indicator will rotate in the needed direction.
25+
* For example, if you want an indicator to rotate a full circle, you need to create additional
26+
* intermediate states `progress_30` and `progress_70` with 30% and 70$ of rotation,
27+
* to be sure, that indicator will rotate in the needed direction.
2728
*
2829
* Also you can use intermediate states to make interpolation not linear for all progress range.
2930
*
31+
* Available properties for interpolating are
32+
* `x`, `y`, `scaleX`, `scaleY`, `angle`, `alpha`
33+
*
3034
* @property {Number} value current progress value, between 0 and 1
3135
*
3236
* @extends PhaserComps.UIComponents.UIComponentPrototype

0 commit comments

Comments
 (0)