fix: remove Easings easeOutCubic func

This commit is contained in:
shao 2019-07-25 10:59:16 +08:00
parent b6c5db845c
commit 5f153c1d83

View File

@ -1,4 +1,4 @@
const Eases = {
const Easings = {
easeInOutCubic: (t: number, b: number, c: number, d: number) => {
const cc = c - b;
t /= d / 2;
@ -7,11 +7,6 @@ const Eases = {
}
return (cc / 2) * ((t -= 2) * t * t + 2) + b;
},
easeOutCubic: (t: number, b: number, c: number, d: number) => {
const cc = c - b;
t /= d - 1;
return cc * (t * t * t + 1) + b;
},
};
export default Eases;
export default Easings;