diff options
author | Andrew Rodgers <acedrew@gmail.com> | 2020-05-19 23:05:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-19 23:05:52 -0400 |
commit | 850172f0da05053479d150c91165c33d84b9c43d (patch) | |
tree | 2179412b81632dc2799049e9df524653fd83d7ba /svg.js.d.ts | |
parent | 0890c4d55fd39356347a5e7a2bb37c9436d2555c (diff) | |
download | svg.js-850172f0da05053479d150c91165c33d84b9c43d.tar.gz svg.js-850172f0da05053479d150c91165c33d84b9c43d.zip |
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.
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r-- | svg.js.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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
|