pixi-ease icon indicating copy to clipboard operation
pixi-ease copied to clipboard

why does ease.add return an array of EaseDisplayObject?

Open w0nche0l opened this issue 5 years ago • 3 comments

As far as I can see, it only ever returns one.

w0nche0l avatar Oct 23 '19 03:10 w0nche0l

ease.add returns an Easing. Where do you see the array of EaseDisplayObjects?

davidfig avatar Oct 23 '19 03:10 davidfig

Sorry, I should have mentioned that this was in the index.d.ts typescript definitions file

add(element: PIXI.DisplayObject, params: EaseParams, options: AddOptions): EaseDisplayObject | EaseDisplayObject[]

w0nche0l avatar Oct 24 '19 01:10 w0nche0l

i think that's based on the old code. i don't use typescript so i'm not great about updating the types. happy to take a PR if you have time

davidfig avatar Oct 24 '19 01:10 davidfig