Skip to content

MS: hover labels use toolbar decimal setting#296

Open
Nicolass67 wants to merge 1 commit intomasterfrom
fix/ms-decimal-hover
Open

MS: hover labels use toolbar decimal setting#296
Nicolass67 wants to merge 1 commit intomasterfrom
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
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

1 participant