-
Notifications
You must be signed in to change notification settings - Fork 2.6k
feat(ui): canvas auto mask followups 2 #7180
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
hipsterusername
merged 17 commits into
main
from
psyche/feat/ui/canvas-auto-mask-followups-2
Oct 24, 2024
Merged
feat(ui): canvas auto mask followups 2 #7180
hipsterusername
merged 17 commits into
main
from
psyche/feat/ui/canvas-auto-mask-followups-2
Oct 24, 2024
Conversation
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
- Use a hash of the last processed points instead of a `hasProcessed` flag to determine whether or not we should re-process a given set of points. - Store point coords in state instead of pulling them out of the konva node positions. This makes moving a point a more explicit action in code. - Add a `roundCoord` util to round the x and y values of a coordinate. - Ensure we always re-process when $points changes.
c955bea
to
55b5d1a
Compare
hipsterusername
approved these changes
Oct 24, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
neutral
points option. They seem to do nothing. Internally the logic for them still exists in case we want to restore the functionality.foreground
&background
toinclude
andexclude
useSubMenu
and one tiny component. Special handling for touch/pen devices.Save to Gallery
andCreate From Bbox
.Pull Bbox Into
context menu action for global ref images. They didn't have any actions besides the row of icons before - feels better with something in there.Apply
button toSave As
. The output can be saved as any layer type. Raster layers get the image cutout, while mask layers get a mask. This creates the new layer and ends the auto-masking operation.Related Issues / Discussions
QA Instructions
Try the things listed. There are a lot of permutations of convert/copy - pretty sure I tested them all.
Merge Plan
RC2
Checklist