From 5f77ce5feb17a5047e15816aef5b6c0898392fa9 Mon Sep 17 00:00:00 2001 From: manospasj Date: Thu, 28 Feb 2019 16:47:32 +0000 Subject: [PATCH] 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) --- svg.js.d.ts | 6 +++--- 1 file 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 +} -- 2.39.5