-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Convert react spring animations to CSS transitions #662
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #662 +/- ##
=======================================
Coverage 59.52% 59.52%
=======================================
Files 2 2
Lines 42 42
Branches 7 7
=======================================
Hits 25 25
Misses 16 16
Partials 1 1 ☔ View full report in Codecov by Sentry. |
1067d0b
to
9ac4b13
Compare
@joglr - indeed, the page loads if I give it enough time! and you're also right: the stylesheets do not load |
9ac4b13
to
d21ce66
Compare
I have provided a fix in another PR, should be incorporated into here as well. Feel free to try it out with:
|
Update treemap and circle text offsets
d21ce66
to
efd427a
Compare
@dawidwoz I have pushed a commit that address the bug that you noticed. Feel free to checkout the code and verify it works as intended. |
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.
Now, it works great! 🙂
Nice :) |
This PR converts react spring animations to CSS transitions. It should be faster and have less overhead for the Chart component.
I tried recording it, but the video does not do it justice.
Git.Truck.-.Google.Chrome.2023-11-10.02-03-31.mp4
This PR also adds a transition between the tree map and the circle packing!
Git.Truck.-.Google.Chrome.2023-11-10.02-07-25.mp4
The performance is much improved, compared to the old implementation.
You can compare this and current GT like so:
My testing has showed that the user experience is much smoother and snappier.
Changes:
@react-spring/web
dependencyuseToggleableSpring
hookrect
(with varying corner radius)