-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(animation): re-enabled animateData prop to disable animation #129
Conversation
Codecov Report
@@ Coverage Diff @@
## master #129 +/- ##
==========================================
- Coverage 91.07% 90.48% -0.59%
==========================================
Files 31 31
Lines 1456 1482 +26
Branches 163 164 +1
==========================================
+ Hits 1326 1341 +15
- Misses 116 127 +11
Partials 14 14
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM, just a few non-blocking comments to consider
|
||
this.canDataBeAnimated = isChartAnimatable(seriesGeometries.geometriesCounts, this.animateData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we can rename this.animateData
to something that indicates that it is a boolean setting? this.isAnimationEnabled
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes absolutely, I prefer to address this into #121
so we can clean up a bit the interface with one single breaking change instead of a lot of small ones
🎉 This PR is included in version 3.4.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [3.4.5](elastic/elastic-charts@v3.4.4...v3.4.5) (2019-03-29) ### Bug Fixes * **animation:** re-enabled animateData prop to disable animation ([opensearch-project#129](elastic/elastic-charts#129)) ([c15339c](elastic/elastic-charts@c15339c)) * **specs:** limit xScaleType to linear, time and ordinal ([opensearch-project#127](elastic/elastic-charts#127)) ([30f2f7e](elastic/elastic-charts@30f2f7e)), closes [opensearch-project#122](elastic/elastic-charts#122)
Summary
The
animateData
prop was not used. This PR reenable this functionality and add a max thresholds of bars and lines/area points before disabling automatically the animation.Checklist
Use
strikethroughsto remove checklist items you don't feel are applicable to this PR.