Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
37
node_modules/d3-ease/src/poly.js
generated
vendored
Normal file
37
node_modules/d3-ease/src/poly.js
generated
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
var exponent = 3;
|
||||
|
||||
export var polyIn = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyIn(t) {
|
||||
return Math.pow(t, e);
|
||||
}
|
||||
|
||||
polyIn.exponent = custom;
|
||||
|
||||
return polyIn;
|
||||
})(exponent);
|
||||
|
||||
export var polyOut = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyOut(t) {
|
||||
return 1 - Math.pow(1 - t, e);
|
||||
}
|
||||
|
||||
polyOut.exponent = custom;
|
||||
|
||||
return polyOut;
|
||||
})(exponent);
|
||||
|
||||
export var polyInOut = (function custom(e) {
|
||||
e = +e;
|
||||
|
||||
function polyInOut(t) {
|
||||
return ((t *= 2) <= 1 ? Math.pow(t, e) : 2 - Math.pow(2 - t, e)) / 2;
|
||||
}
|
||||
|
||||
polyInOut.exponent = custom;
|
||||
|
||||
return polyInOut;
|
||||
})(exponent);
|
||||
Loading…
Add table
Add a link
Reference in a new issue