diff options
author | manospasj <manospasj@gmail.com> | 2019-02-28 16:47:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-28 16:47:32 +0000 |
commit | 5f77ce5feb17a5047e15816aef5b6c0898392fa9 (patch) | |
tree | 51990e98957f156d1abe8011eb60b849826a624c | |
parent | e4a8579000c1a4e6587bd63eb2875bff677f5f1e (diff) | |
download | svg.js-5f77ce5feb17a5047e15816aef5b6c0898392fa9.tar.gz svg.js-5f77ce5feb17a5047e15816aef5b6c0898392fa9.zip |
Updated ease type in svg.js.d.ts
Updated animate method to accept a custom ease function as per the docs (https://svgjs.com/docs/2.7/animating/#easing)
-rw-r--r-- | svg.js.d.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts index dec13f6..47d858e 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -347,8 +347,8 @@ declare namespace svgjs { }
}
interface Element {
- animate(duration?: number, ease?: string, delay?: number): Animation;
- animate(info: { ease?: string; duration?: number; delay?: number }): Animation;
+ animate(duration?: number, ease?: string | ((pos: number) => number), delay?: number): Animation;
+ animate(info: { ease?: string | ((pos: number) => number); duration?: number; delay?: number }): Animation;
stop(jumpToEnd:boolean,clearQueue:boolean): Animation;
}
// TODO finishs FX
@@ -1034,4 +1034,4 @@ declare namespace svgjs { // TODO style, etc, bbox...
}
-}
\ No newline at end of file +}
|