-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update easing function declaration. Bump the next version.
Easing function had obsolete declaration with 5 arguments, should be only 1.
- Loading branch information
1 parent
effee69
commit 895a8ac
Showing
5 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "jquery-circle-progress", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"authors": [ | ||
"Rostyslav Bryzgunov <[email protected]>" | ||
], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
* {@link http://kottenator.github.io/jquery-circle-progress/} | ||
* | ||
* @author Rostyslav Bryzgunov <[email protected]> | ||
* @version 1.2.1 | ||
* @version 1.2.2 | ||
* @licence MIT | ||
* @preserve | ||
*/ | ||
|
@@ -470,10 +470,14 @@ | |
}; | ||
|
||
// ease-in-out-cubic | ||
$.easing.circleProgressEasing = function(x, t, b, c, d) { | ||
if ((t /= d / 2) < 1) | ||
return c / 2 * t * t * t + b; | ||
return c / 2 * ((t -= 2) * t * t + 2) + b; | ||
$.easing.circleProgressEasing = function(x) { | ||
if (x < 0.5) { | ||
x = 2 * x; | ||
return 0.5 * x * x * x; | ||
} else { | ||
x = 2 - 2 * x; | ||
return 1 - 0.5 * x * x * x; | ||
} | ||
}; | ||
|
||
/** | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "jquery-circle-progress", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"author": "Rostyslav Bryzgunov <[email protected]>", | ||
"description": "Plugin to draw animated circular progress bars", | ||
"license": "MIT", | ||
|