Skip to content
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

Preserve viewport maybe #4117

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Preserve viewport maybe #4117

wants to merge 2 commits into from

Conversation

cbeer
Copy link
Collaborator

@cbeer cbeer commented Feb 27, 2025

No description provided.

}
}

}, [osdConfig, viewerConfig, worldBounds, viewerRef]);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if worldBounds is an array, I think this effect is always going to run because the object reference will change. I think the approach is sound, but we'd need to unroll the array into integers, right?

@cbeer cbeer force-pushed the preserve-viewport-maybe branch from 26b47fd to 97e3fe7 Compare February 28, 2025 18:27
@cbeer cbeer force-pushed the preserve-viewport-maybe branch from 97e3fe7 to fc3ce9a Compare February 28, 2025 19:10
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

Attention: Patch coverage is 73.17073% with 11 lines in your changes missing coverage. Please review.

Project coverage is 94.76%. Comparing base (b6a1cd2) to head (fc3ce9a).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/components/OpenSeadragonComponent.js 68.57% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4117      +/-   ##
==========================================
- Coverage   94.80%   94.76%   -0.04%     
==========================================
  Files         323      323              
  Lines       16158    16188      +30     
  Branches     2538     2546       +8     
==========================================
+ Hits        15318    15340      +22     
- Misses        835      843       +8     
  Partials        5        5              

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants