diff --git a/components/_util/easings.ts b/components/_util/easings.ts index 8831e9187d..a71ac8f22e 100644 --- a/components/_util/easings.ts +++ b/components/_util/easings.ts @@ -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 };