Skip to content

feat: implement axis unit picker behind experimental flag#4054

Merged
tpoisseau merged 13 commits intomainfrom
4040-choose-unit-on-axis-and-store-it-in-the-view
Mar 12, 2026
Merged

feat: implement axis unit picker behind experimental flag#4054
tpoisseau merged 13 commits intomainfrom
4040-choose-unit-on-axis-and-store-it-in-the-view

Conversation

@tpoisseau
Copy link
Contributor

@tpoisseau tpoisseau commented Mar 11, 2026

Right click on unit label open a menu to select a unit.
It's implemented for HorizontalAxis1D, DirectAxis2D and IndirectAxis2D.
IndirectAxis2D still takes care of maybeNucleusUnit. If it does not matchNucleus show maybeNucleusUnit without the unit picker (fixed unit).

each unit picker takes care of axis constraints (isFt / isFid) to show allowed options.

Refs: #4040


Unit conversion should be done in another PR by another one.

@tpoisseau tpoisseau linked an issue Mar 11, 2026 that may be closed by this pull request
`ContextMenu` seems not mix well in svg
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Mar 11, 2026

Deploying nmrium with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2577c8d
Status: ✅  Deploy successful!
Preview URL: https://f45b91f8.nmrium.pages.dev
Branch Preview URL: https://4040-choose-unit-on-axis-and.nmrium.pages.dev

View logs

@tpoisseau tpoisseau changed the title 4040 choose unit on axis and store it in the view feat: implement axis unit picker behind experimental flag Mar 12, 2026
@tpoisseau tpoisseau marked this pull request as ready for review March 12, 2026 10:37
@tpoisseau tpoisseau requested a review from targos March 12, 2026 10:37
@tpoisseau
Copy link
Contributor Author

@hamed-musallam I suggest you to take a look to this PR because I suppose you will implement the scales unit conversion later.

@tpoisseau tpoisseau requested a review from targos March 12, 2026 14:09
@tpoisseau tpoisseau merged commit cf9f1ec into main Mar 12, 2026
12 checks passed
@tpoisseau tpoisseau deleted the 4040-choose-unit-on-axis-and-store-it-in-the-view branch March 12, 2026 16:21
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