-
Notifications
You must be signed in to change notification settings - Fork 481
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
Backdrop filters #196
Backdrop filters #196
Conversation
@chrfalch Ready to review. This PR also contains a small clean up of some of the "processors" (Colors, Paths, RRect, Clips). |
This comment was marked as resolved.
This comment was marked as resolved.
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.
I have a few comments about the I
prefix on types (in relation to our discussion about the same in the animation PR). Should we avoid this all over?
Also some typos in the documentation, and I'd also like to add a description of what a backdrop is in the docs.
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.
- Remove changes in Podfile.lock
- Remove changes in project.pbxproj
@chrfalch Ready for review 🙋🏼♂️ I'm still confused about the current state of the podfile lock but we will discuss it offline. |
example/src/Examples/Drawing/Context/functions/findClosestElementToPoint.ts
Show resolved
Hide resolved
({ canvas, paint }, { start, end, stroke, path: pathDef }) => { | ||
const path = processPath(pathDef); | ||
({ canvas, paint }, { start, end, stroke, ...pathProps }) => { | ||
const path = processPath(pathProps.path).copy(); |
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.
Why do we do copy here?
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.
trim() is mutating the path.
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.
Not sure if I understand - if trim is used inside processPath, maybe processPath should be the one doing the copy operation?
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 trim is not used in processPath rather in this component (in the next step)
export interface ImageFilterFactory { | ||
MakeOffset(dx: number, dy: number, input: IImageFilter | null): IImageFilter; |
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.
Would it be correct to put documentation / comments on these methods here?
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.
yes 100%
Add the possibility to create backdrop filters.
We're taking advantage of this new feature to clean up shape processing.