fix: review change

This commit is contained in:
shao 2019-07-31 19:23:11 +08:00
parent b4a228c4f4
commit 554d8cb3e3

View File

@ -1,4 +1,4 @@
function easeInOutCubic(t: number, b: number, c: number, d: number) {
export function easeInOutCubic(t: number, b: number, c: number, d: number) {
const cc = c - b;
t /= d / 2;
if (t < 1) {
@ -6,5 +6,3 @@ function easeInOutCubic(t: number, b: number, c: number, d: number) {
}
return (cc / 2) * ((t -= 2) * t * t + 2) + b;
}
export { easeInOutCubic };