Repository navigation
Fix negative chunk counts for inactive projection views - #268
Merged
seankmartin merged 2 commits intoNov 5, 2026
Merged
seankmartin merged 2 commits into
seankmartin merged 2 commits into
Conversation
Use projected source coverage for the spacing node budget and render inactive histograms without clearing shared bins or subtracting indicator-only counts. Add regression coverage for overview selection and histogram visibility.
Keep the inactive histogram counter fix and its regression tests. Restore skeleton density selection and tests to feature/edit-mode behavior.
afonsobspinto
marked this pull request as ready for review
November 5, 2026 01:31
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
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.
Switching from a populated projection view to an XY-only layout could display a negative projection chunk total such as
0/-30. The inactive projection widget now displays0/0and preserves its shared histogram data for reactivation.Reproduce
layout = "4panel-alt",projectionScale = 32131.726289914157andcrossSectionScale = 106.66666666666667, with both spacing controls at 8 px.0/-30(the verified XY widget showed 6/6). The value can persist while changing cross-section zoom. After the fix, the inactive projection counter displays0/0.Cause and fix
The widget zeroed the shared histogram bins when the view became inactive, but still subtracted the unchanged count of indicator-only bars. Three bars of ten entries yielded
0 - 30. Clearing those shared bins also discarded data needed when the view became active again.Render inactive histograms as empty without modifying their shared data, and subtract the indicator count only when the histogram is visible. Reactivating the view can reuse the retained histogram until the renderer updates it.
Validation
0/0, and preservation of shared bins across hiding and reactivation.