Skip to content

feat: implement axis unit picker behind experimental flag#4054

Open
tpoisseau wants to merge 8 commits intomainfrom
4040-choose-unit-on-axis-and-store-it-in-the-view
Open

feat: implement axis unit picker behind experimental flag#4054
tpoisseau wants to merge 8 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: 5ece6c4
Status:🚫  Build failed.

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.

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.

1 participant