-
Notifications
You must be signed in to change notification settings - Fork 544
v1: Canvas.capture()
and GestureDetector
right-click pan updates.
#5444
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
base: main
Are you sure you want to change the base?
Conversation
Other canvas changes: - canvas drawing is clipped - canvas size is stretched to maximum if `expand` is set
…ate`, `on_right_pan_end`
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.
We've reviewed this pull request using the Sourcery rules engine
Event handler argument is of type | ||
[`PointerEvent`](https://flet.dev/docs/reference/types/PointerEvent). |
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.
doesn't need to be specified anymore, as discussed.
@@ -50,6 +50,7 @@ class PageMediaData: | |||
padding: Padding |
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.
While at it, can you please document the properties here directly?
paint: Optional[Paint] = None | ||
""" | ||
A paint to composite the image into canvas. The value of this property | ||
is the instance of [`Paint`](https://flet.dev/docs/reference/types/paint) class. |
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.
The type and default values of properties shouldnt be specified in the docstring, as discussed.
Close #5434
Summary by Sourcery
Enable canvas capture and image shape support, add right-click pan events to GestureDetector, integrate custom Msgpack encoder, and apply various utility and housekeeping improvements
New Features:
Enhancements: