Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog
Fixes label decimal points
When label has an integer value at some point, the trailing
zero is removed, so the label div narrows a bit. This causes
an annoying flickering effect. This commit fixes by forcing
output value to have appropriate number of zeroes regarding
to the "precision" setting.
Add background image support
A custom background image can be set via
img2
field. It might not be a very good name. This feature makes it possible to create such progress bars using a background and a progress image:Thermometer
Putting thermometer2-background and thermometer2-progress, the following progress can be produced:
Initialization options should include
limit-top
andlimit-bottom
settings. For the thermometer example, the progress part starts at17%
and ends at92%
of the image. That's why the options should includelimit-top
andlimit-bottom
are used for determining the clipping length.Truck
Putting fuel-truck-background and fuel-truck-progress, the following progress can be produced: