-
Notifications
You must be signed in to change notification settings - Fork 3.3k
chore: BROS-362: Disable smoothing automatically when Bitmask is used #8374
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
Conversation
✅ Deploy Preview for label-studio-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for label-studio-playground ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for heartex-docs canceled.
|
✅ Deploy Preview for label-studio-docs-new-theme canceled.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #8374 +/- ##
===========================================
- Coverage 67.14% 60.55% -6.60%
===========================================
Files 778 543 -235
Lines 59282 38401 -20881
Branches 10127 10129 +2
===========================================
- Hits 39807 23252 -16555
+ Misses 19472 15146 -4326
Partials 3 3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
yyassi-heartex
left a comment
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.
Change makes sense, but I noticed that yarn tests were failing. Reran it since it's likely flakey tests.
This pull request refactors the image smoothing logic in the editor by introducing a new computed property,
smoothingEnabled, which dynamically determines whether smoothing should be applied based on the presence of "bitmask" regions. All references to the previoussmoothingproperty in rendering logic and settings initialization have been updated to usesmoothingEnabledinstead, ensuring consistent behavior across the application.Image smoothing logic update:
smoothingEnabledto theImagemodel, which disables smoothing if any annotation region is of type "bitmask"; otherwise, it usesself.smoothingextracted from the tag attributes. (web/libs/editor/src/tags/object/Image/Image.js)Component updates for smoothing logic:
DrawingRegion,ImageLayer, andStageContent) to useitem.smoothingEnabledinstead ofitem.smoothingfor theimageSmoothingEnabledprop and related logic. (web/libs/editor/src/components/ImageView/ImageView.jsx) [1] [2] [3]item.smoothingEnabledinstead ofitem.smoothing. (web/libs/editor/src/components/ImageView/ImageView.jsx)