1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 | export type EasingFunction = (value: number) => number;
|
16 | export interface EasingStatic {
|
17 | step0: EasingFunction;
|
18 | step1: EasingFunction;
|
19 | linear: EasingFunction;
|
20 | ease: EasingFunction;
|
21 | quad: EasingFunction;
|
22 | cubic: EasingFunction;
|
23 | poly(n: number): EasingFunction;
|
24 | sin: EasingFunction;
|
25 | circle: EasingFunction;
|
26 | exp: EasingFunction;
|
27 | elastic(bounciness: number): EasingFunction;
|
28 | back(s: number): EasingFunction;
|
29 | bounce: EasingFunction;
|
30 | bezier(x1: number, y1: number, x2: number, y2: number): EasingFunction;
|
31 | in(easing: EasingFunction): EasingFunction;
|
32 | out(easing: EasingFunction): EasingFunction;
|
33 | inOut(easing: EasingFunction): EasingFunction;
|
34 | }
|
35 |
|
36 | export type Easing = EasingStatic;
|
37 | export const Easing: EasingStatic;
|