Skip to content

MS: hover labels use toolbar decimal setting#296

Merged
Nicolass67 merged 3 commits into
masterfrom
fix/ms-decimal-hover
May 19, 2026
Merged

MS: hover labels use toolbar decimal setting#296
Nicolass67 merged 3 commits into
masterfrom
fix/ms-decimal-hover

Conversation

@Nicolass67
Copy link
Copy Markdown
Contributor

Description

Fixes the mismatch where MS hover always showed three decimal places while the toolbar “Decimal” control allowed 0–4.

Changes

Pass submit.decimal from Redux into the MS rect viewer (RectFocus).
Compass cursor label: for MS only, format m/z with the same decimal count as the toolbar (other layouts unchanged).
Peak tooltip on MS bars: optional xDigits so x in the tip matches that setting; add Format.clampDecimalPlaces for safe parsing.

Closes #3026

Pass submit.decimal into RectFocus; compass and d3-tip use it for m/z
precision on MS layout only. Add clampDecimalPlaces helper.

Made-with: Cursor
@Nicolass67 Nicolass67 merged commit d29fcfb into master May 19, 2026
2 checks passed
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.

decimal display in mass spec

2 participants