Skip to content

Allow customizing unselected annotation dimming - #2113

Merged
naglepuff merged 3 commits into
masterfrom
mln/configurable-annotation-dimming
Aug 6, 2026
Merged

Allow customizing unselected annotation dimming#2113
naglepuff merged 3 commits into
masterfrom
mln/configurable-annotation-dimming

Conversation

@naglepuff

Copy link
Copy Markdown
Collaborator

Prerequisite for: DigitalSlideArchive/HistomicsUI#542

Allow passing in unselectedOpacityMultiplier to the settings object for the GeoJS Image Viewer widget class. If no value is passed (or a non-numerical value is passed), fall back to the 0.25 as the default (the current hard-coded value).

This value is used to determine the opacity for non-selected annotation elements.

@naglepuff
naglepuff changed the base branch from master to girder-3 August 4, 2026 19:02
@naglepuff
naglepuff marked this pull request as ready for review August 4, 2026 19:03
@naglepuff
naglepuff requested a review from manthey August 4, 2026 19:04
@naglepuff

Copy link
Copy Markdown
Collaborator Author

@manthey not sure what's going on with CI in the Girder 3 base branch, but it looks like the errors I'm seeing here are not being introduced by these changes

@naglepuff
naglepuff force-pushed the mln/configurable-annotation-dimming branch from 9f175da to 964927f Compare August 4, 2026 20:00
@naglepuff
naglepuff changed the base branch from girder-3 to master August 4, 2026 20:00
@naglepuff naglepuff closed this Aug 4, 2026
@naglepuff naglepuff reopened this Aug 4, 2026
@naglepuff
naglepuff force-pushed the mln/configurable-annotation-dimming branch from 6d034e7 to d3d7bce Compare August 5, 2026 21:14
this._globalAnnotationOpacity = settings.globalAnnotationOpacity || 1.0;
this._globalAnnotationFillOpacity = settings.globalAnnotationFillOpacity || 1.0;
this._unselectedOpacityMultiplier = typeof settings.unselectedOpacityMultiplier !== 'number'
? 0.25

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Since part of the impetus for this was that users found the current value too dim, let's change the default as part of this PR. Let's change it to 0.33 (obviously in both places it appears).

@manthey

manthey commented Aug 6, 2026

Copy link
Copy Markdown
Member

Aside from wishing to change the default as part of this, this looks good to me.

@naglepuff
naglepuff force-pushed the mln/configurable-annotation-dimming branch from 898dcba to ef70397 Compare August 6, 2026 15:28

@manthey manthey left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some github action on an unrelated code section is failing due to Github infrastructure. If the system will let you merge this despite that problem, go ahead.

@naglepuff
naglepuff merged commit 55f4ed4 into master Aug 6, 2026
29 of 33 checks passed
@naglepuff
naglepuff deleted the mln/configurable-annotation-dimming branch August 6, 2026 18:09
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