react-vis icon indicating copy to clipboard operation
react-vis copied to clipboard

Provide a better support of the animations

Open bulyonov opened this issue 10 years ago • 3 comments

Currently animations lack good API. They are missing following things:

  • the parameters of the animation (either duration/mode or the react-motion parameters);
  • event listeners such as onAnimationStart or onAnimationEnd.

Also the makeWidthFlexible function should probably turn animation off on the first initialization (it causes the "slide" animation for the entire chart)

bulyonov avatar Sep 13 '16 18:09 bulyonov

issues:

  • [X] the parameters of the animation
  • [ ] event listeners
  • [x] Also the makeWidthFlexible function should probably turn animation off on the first initialization

mcnuttandrew avatar Apr 11 '17 18:04 mcnuttandrew

we're going to deprecate make...Flexible. so the only thing we need is event listeners.

jckr avatar Mar 09 '18 18:03 jckr

@jckr do you know when makeWidthFlexible will be deprecated? And once it is deprecated, what would be the best approach for getting this kind of responsive functionality? Should I make my own resize event listener and re-render, or will there be a formal react-vis solution?

I'm currently using FlexibleWidthXYPlot and I'm wondering how it will look in future.

Thanks!

hanchennz avatar Mar 21 '18 00:03 hanchennz