-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fixes relative brush mapping mode #14598
Conversation
…dialGradientBrush
You can test this PR using the following package version. |
You can test this PR using the following package version. |
…/Avalonia into fixes/relative-mapping-mode-2
You can test this PR using the following package version. |
You can test this PR using the following package version. |
When designing Avalonia APIs and converting
BrushMappingMode.RelativeToBoundingBox
toRelativeUnit.Relative
the "to boundling box" part was lost in translation.So if a graphics primitive submitted to DrawingContext has a non-0:0 origin, the rendering is incorrect and sometimes doesn't render anything at all.
Fixes #10972
Fixes #3995
This PR also fixes
RadialGradientBrush.Radius
being forcefully treated as a relative value even if the rest of the brush is using absolute mapping mode.This PR also adds separate RadiusX/RadiusY properties.