From: Andrew Rodgers Date: Wed, 20 May 2020 03:05:52 +0000 (-0400) Subject: Add optional string type to Runner.ease X-Git-Tag: 3.1.0~21^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=850172f0da05053479d150c91165c33d84b9c43d;p=svg.js.git Add optional string type to Runner.ease The ease method on the runner takes the same constructor strings as the Ease class, so you can do things like element.animate(1000).ease('-').rotate(360).loop() Currently typescript throws an error saying that ease only accepts a Function as an argument. --- diff --git a/svg.js.d.ts b/svg.js.d.ts index 2e227a4..0dddfdc 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -851,7 +851,7 @@ declare module "@svgdotjs/svg.js" { reset(): this finish(): this reverse(r?: boolean): this - ease(fn: Function): this + ease(fn: Function | string): this active(): boolean active(a: boolean): this addTransform(m: Matrix): this