\r
}\r
\r
- let easing: {\r
- '-'(pos: number): number;\r
- '<>'(pos: number): number;\r
- '>'(pos: number): number;\r
- '<'(pos: number): number;\r
- bezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;\r
- steps(steps: number, stepPosition?: "jump-start"|"jump-end"|"jump-none"|"jump-both"|"start"|"end"): (t: number, beforeFlag?: boolean) => number;\r
- }\r
+ // let easing: {\r
+ // '-'(pos: number): number;\r
+ // '<>'(pos: number): number;\r
+ // '>'(pos: number): number;\r
+ // '<'(pos: number): number;\r
+ // bezier(x1: number, y1: number, x2: number, y2: number): (t: number) => number;\r
+ // steps(steps: number, stepPosition?: "jump-start"|"jump-end"|"jump-none"|"jump-both"|"start"|"end"): (t: number, beforeFlag?: boolean) => number;\r
+ // }\r
\r
let regex: {\r
delimiter: RegExp;\r
\r
type TimeLike = number | TimesParam | Stepper\r
\r
+ type EasingCallback = (...any) => number\r
+ type EasingLiteral = "<>" | "-" | "<" | ">"\r
+\r
class Runner {\r
constructor();\r
constructor(options: Function);\r
loop(times: TimesParam): this\r
delay(delay: number): this\r
\r
+\r
+\r
during(fn: Function): this\r
queue(initFn: Function, runFn: Function, retargetFn?: boolean | Function, isTransform?: boolean): this\r
after(fn: EventListener): this\r
reset(): this\r
finish(): this\r
reverse(r?: boolean): this\r
- ease(fn: Function): this\r
+ ease(fn: EasingCallback) : this\r
+ ease(kind: EasingLiteral) : this\r
active(): boolean\r
active(a: boolean): this\r
addTransform(m: Matrix): this\r