Skip to content

Conversation

@nick-skriabin
Copy link
Member

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 previous smoothing property in rendering logic and settings initialization have been updated to use smoothingEnabled instead, ensuring consistent behavior across the application.

Image smoothing logic update:

  • Added a computed property smoothingEnabled to the Image model, which disables smoothing if any annotation region is of type "bitmask"; otherwise, it uses self.smoothing extracted from the tag attributes. (web/libs/editor/src/tags/object/Image/Image.js)

Component updates for smoothing logic:

  • Updated all relevant components (DrawingRegion, ImageLayer, and StageContent) to use item.smoothingEnabled instead of item.smoothing for the imageSmoothingEnabled prop and related logic. (web/libs/editor/src/components/ImageView/ImageView.jsx) [1] [2] [3]
  • Modified the constructor logic to initialize smoothing settings using item.smoothingEnabled instead of item.smoothing. (web/libs/editor/src/components/ImageView/ImageView.jsx)

@netlify
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for label-studio-storybook ready!

Name Link
🔨 Latest commit 5136450
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-storybook/deploys/68c74edfa777f8000818b8ef
😎 Deploy Preview https://deploy-preview-8374--label-studio-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for label-studio-playground ready!

Name Link
🔨 Latest commit 5136450
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-playground/deploys/68c74edfdcdf500008a0f10e
😎 Deploy Preview https://deploy-preview-8374--label-studio-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for heartex-docs canceled.

Name Link
🔨 Latest commit 5136450
🔍 Latest deploy log https://app.netlify.com/projects/heartex-docs/deploys/68c74edfb4db0e0008ef0c4a

@github-actions github-actions bot added the chore label Sep 9, 2025
@netlify
Copy link

netlify bot commented Sep 9, 2025

Deploy Preview for label-studio-docs-new-theme canceled.

Name Link
🔨 Latest commit 5136450
🔍 Latest deploy log https://app.netlify.com/projects/label-studio-docs-new-theme/deploys/68c74edfee13a200086ae447

@codecov
Copy link

codecov bot commented Sep 9, 2025

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 60.55%. Comparing base (ef2904d) to head (5136450).
⚠️ Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
...libs/editor/src/components/ImageView/ImageView.jsx 75.00% 1 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (ef2904d) and HEAD (5136450). Click for more details.

HEAD has 1 upload less than BASE
Flag BASE (ef2904d) HEAD (5136450)
pytests 1 0
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              
Flag Coverage Δ
lsf-e2e 54.68% <90.90%> (+1.45%) ⬆️
lsf-integration 51.38% <81.81%> (+0.12%) ⬆️
lsf-unit 8.62% <0.00%> (-0.01%) ⬇️
pytests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@yyassi-heartex yyassi-heartex left a 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.

@robot-ci-heartex robot-ci-heartex merged commit e34045e into develop Sep 15, 2025
117 of 126 checks passed
@robot-ci-heartex robot-ci-heartex deleted the fb-bros-362/smoothing branch September 15, 2025 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants