Releases: kottenator/jquery-circle-progress
Releases · kottenator/jquery-circle-progress
Minor fixes
- Update README
- Fix unit tests
- Fix easing function obsolete declaration
Fix UMD for CommonJS
Update UMD code for CommonJS:
- initialize jQuery plugin immediately
- export
jQuery, not the factory function.
See #132.
Improvements, fixes, UMD
- Code style: JS code re-styled according to Google JavaScript Style Guide
- Code style: new indentation for JS/JSON/HTML/CSS: 2 spaces
- Docs:
README.mdupdated - Docs: jsdocs are much better now, you can even build them:
npm run build-docs(though they're still unfinished and not released) - Docs: new GitHub pages approach: use
docs/folder instead ofgh-pagesbranch - Feature: minified version added. Run
npm run build-minafter each change todist/circle-progress.js - Tests: dependencies updated to the latest versions and freezed via
~=X.Yversion specifier - Tests:
modernizrdropped from tests, it was for IE8 support only (which I have actually never implemented) - Tests: NPM dependencies used for tests instead of Bower
- Tests: SauceLabs config updated & tested
- Tests: TravisCI config updated & improved
- Packaging: UMD implemented, which is: AMD + CommonJS + global object (common script inclusion)
README & NPM
- README improved
- First release on NPM
Value update, `data-` atttributes
2.5 new features added:
- get value with
el.circleProgress('value') - set value with
el.circleProgress('value', v)- it does update, not redraw - set initial config options via HTML
data-attributes
More layout options
Next layout options added:
- line cap
- gradient angle
- gradient direction
- gradient stop point custom position
Read more in README ;)
Minor fixes
Just a few minor fixes and changes. And I like this version number
Big refactoring!
I've made a big code refactoring. Now the widget has own JS constructor and the instance! 👍
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 Version
First stable version, covered with Unit Tests + CI server.
reverseoption addedfill: { image: imageInstance }implemented- QUnit tests + Karma runner + Travis CI
Fixes and improvements
- fixed bug when you have the same start animation value and end animation value (event gives progress: NaN)
- back-incompatible: I have removed
reversedAnimationoption and addedanimationStartValueoption (it covers reverse and gives more flexibility) - new command added:
$(...).circleProgress('redraw')
See the docs on GitHub to learn more about new options