jQuery Plugin to draw animated circular progress bars
Update UMD code for CommonJS:
jQuery
, not the factory function.See #132.
README.md
updatednpm run build-docs
(though they're still unfinished and not released)
docs/
folder instead of gh-pages
branchnpm run build-min
after each change to dist/circle-progress.js
~=X.Y
version specifiermodernizr
dropped from tests, it was for IE8 support only (which I have actually never implemented)
2.5 new features added:
el.circleProgress('value')
el.circleProgress('value', v)
- it does update, not redraw
data-
attributesNext layout options added:
Read more in README ;)
Just a few minor fixes and changes. And I like this version number
I've made a big code refactoring. Now the widget has own JS constructor and the instance! :+1:
You can get the instance by $(el).data('circle-progress')
.
JSDoc will explain everything what's happening inside.
All functionality is the same but with a little bonus. Now you can update specific property and redraw the widget with all the same other options.
Like so:
$(el).circleProgress({ fill: { color: 'red' }, value: 0.5 }); // init the widget
$(el).circleProgress({ value: 0.7 }); // change the value, color will stay 'red'
// auto-redraw after that
First stable version, covered with Unit Tests + CI server.
reverse
option addedfill: { image: imageInstance }
implementedreversedAnimation
option and added animationStartValue
option (it covers reverse and gives more flexibility)$(...).circleProgress('redraw')
See the docs on GitHub to learn more about new options