-
-
Notifications
You must be signed in to change notification settings - Fork 798
Fix mid-path transforms #4106
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
Merged
HalfWhitt
merged 41 commits into
beeware:main
from
corranwebster:fix-context-path-transform
Feb 3, 2026
Merged
Fix mid-path transforms #4106
Changes from 21 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
309103e
Fix mid-path transforms
corranwebster 470601e
Fix tests removed by bad merge.
corranwebster d922f32
Use @skip_backends.
corranwebster 7a4f5a9
Fixes to tests, Qt improvements, Android backend.
corranwebster fea893b
Fixes for android, use correct backend name.
corranwebster 364fef0
Fix initial reset transform on Android.
corranwebster 7002651
Merge branch 'main' into fix-context-path-transform
corranwebster e49aaf4
Fix android method capitalisation.
corranwebster bb6c7e0
Fix mis-spelled android method name.
corranwebster 130038a
Refactor Canvas on winforms to use internal graphics state.
corranwebster ffecac1
Should use native instead of impl.
corranwebster 7de753d
Correct behaviour of reset_tranform to match HTMl Canvas.
corranwebster 9e00344
Fixes to matrix inversion on Qt and Android.
corranwebster 5b1bd43
More fixes for Qt and Android.
corranwebster 887a7a6
Handle coverage of non-branching on reset
corranwebster eafb5e8
Attempt at fix for #2206 for Winforms.
corranwebster d99ca42
Windows test *almost* meets the threshold, bump it slightly.
corranwebster 56fb7ca
Add a scale factor to make directionality clearer.
corranwebster e18ace8
Better changelog; update thresholds for windows and new image.
corranwebster 53a6ebf
Try to catch exception on windows; add docstring for new test.
corranwebster 7c9a301
Correctly invert matrix on winforms backend.
corranwebster fdd6803
Feedback from PR reviews, beef up tests, fix a couple of bugs.
corranwebster e38420a
Fix a bug in reset_transform in Winforms backend.
corranwebster 1f9d647
Also need to transform start point on winforms.
corranwebster 8730d7f
Matrices transform points, not the other way around on winforms.
corranwebster c6a2f23
Missed a couple of places with start point transfroms on windows.
corranwebster d37c126
I think reset_transform on winforms had the inverses reversed.
corranwebster e2cbc62
Add a probe around start point scaling.
corranwebster 9e6c3e3
Start point isn't modified in place; try setting it explicitly.
corranwebster 5dda076
Use an Array of points on winforms.
corranwebster e4cb48f
Clean-up and geenralize fix for start points.
corranwebster 364194b
Unify path transforming code on winforms.
corranwebster 4d61d61
Make stroke width stretching clearer.
corranwebster 512f208
Add a test for singular transforms.
corranwebster 0396c72
Get Qt canvas backend to pass tests.
corranwebster 69638e2
Merge branch 'main' into fix-context-path-transform
corranwebster 65d766e
Update from re-name; fix android and winforms tests.
corranwebster 5c39a5c
Change test to also take path where we are scaling x by 0.
corranwebster b8c51b8
Turn off drawing on winforms when singular; handle GTK 0 scaling.
corranwebster a386e77
Add a change note about scaling by 0.
corranwebster 0c87003
Fixes suggested from review.
corranwebster File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| The Android, Qt and Winforms canvases now match the behavior of the HTML Canvas when a transform is applied while preparing a path. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.