Skip to content
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

Obsolete CubicBezierEasing #13137

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Oct 4, 2023

What does the pull request do?

This PR "removes" CubicBezierEasing by obsoleting it and deleting its implementation, CubicBezier.

As noticed in #13043, this class can't be used publicly due to its constructor being internal, and is basically a duplicate of SplineEasing + KeySpline.

The class itself can't be removed as it would be a breaking change.

I've checked that the deleted CubicBezier implementation (from Chrome) and KeySpline (from WPF) return similar results. They start to differ slightly from the 4th decimal, which seems completely acceptable for an easing function. Plus, CubicBezier is roughly 50% slower than KeySpline (.NET 7, x64, Release).

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0040458-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added this pull request to the merge queue Oct 4, 2023
Merged via the queue into AvaloniaUI:master with commit 965d0e9 Oct 4, 2023
5 checks passed
@MrJul MrJul deleted the fix/cubic-bezier-easing branch October 7, 2023 12:41
@maxkatz6 maxkatz6 added backported-11.0.x backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch and removed backported-11.0.x backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch labels Dec 5, 2023
maxkatz6 pushed a commit that referenced this pull request Dec 5, 2023
#Conflicts:
#	src/Avalonia.Base/Animation/Easings/CubicBezierEasing.cs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants