Skip to content

feat: hide labels of overlapping peaks - #3749

Merged
hamed-musallam merged 3 commits into
mainfrom
hide-peaks-that-overlap-peaks
Oct 10, 2025
Merged

feat: hide labels of overlapping peaks #3749
hamed-musallam merged 3 commits into
mainfrom
hide-peaks-that-overlap-peaks

Conversation

@hamed-musallam

Copy link
Copy Markdown
Member

No description provided.

@hamed-musallam hamed-musallam linked an issue Oct 9, 2025 that may be closed by this pull request
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 9, 2025

Copy link
Copy Markdown

Deploying nmrium with  Cloudflare Pages  Cloudflare Pages

Latest commit: 36c60c2
Status: ✅  Deploy successful!
Preview URL: https://5c7196f2.nmrium.pages.dev
Branch Preview URL: https://hide-peaks-that-overlap-peak.nmrium.pages.dev

View logs

@hamed-musallam
hamed-musallam force-pushed the hide-peaks-that-overlap-peaks branch from 002c303 to c1bd31b Compare October 9, 2025 12:22
Comment thread src/component/hooks/useTextMetrics.ts Outdated
@hamed-musallam
hamed-musallam force-pushed the hide-peaks-that-overlap-peaks branch from c1bd31b to ca75a5a Compare October 9, 2025 12:26
…mentation

chore: remove unused context return from useTextMetrics
@hamed-musallam
hamed-musallam force-pushed the hide-peaks-that-overlap-peaks branch from ca75a5a to dd7b1c9 Compare October 9, 2025 12:30
@lpatiny

lpatiny commented Oct 9, 2025

Copy link
Copy Markdown
Member

It is not what I would expect because on cytisine autorange picking we don't have the value of the highest peak. In case of many peaks overlapping the more intense (if Y > 0 the highest, if Y < 0 the lowest) should be displayed. If you look at the gif we see that some peaks are not displayed while there is in fact enough room.

2025-10-09 15 44 35

@lpatiny lpatiny 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.

It works as I expected, thanks !

Reduce the line height for overlapped peaks to improve readability

close  #3714

feat: improve peaks overlap detection
@hamed-musallam
hamed-musallam force-pushed the hide-peaks-that-overlap-peaks branch from 9c483fb to 36c60c2 Compare October 10, 2025 10:53
@hamed-musallam
hamed-musallam merged commit d41aa0c into main Oct 10, 2025
12 checks passed
@hamed-musallam
hamed-musallam deleted the hide-peaks-that-overlap-peaks branch October 10, 2025 11:19
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.

Hide peaks that overlap peaks

3 participants