NickAkhmetov/Add slider controls to numeric legends#2365
Conversation
|
Size Change: +92.8 kB (+1.26%) Total Size: 7.44 MB
ℹ️ View Unchanged
|
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| // Determine if interactive slider should be shown | ||
| const showInteractiveSlider = ( | ||
| setFeatureValueColormapRange | ||
| && ['geneSelection', 'geneExpression'].includes(obsColorEncoding ?? '') |
There was a problem hiding this comment.
| && ['geneSelection', 'geneExpression'].includes(obsColorEncoding ?? '') | |
| && obsColorEncoding === 'geneSelection' |
There was a problem hiding this comment.
This change would make it so we don't display an interactive slider for the heatmap in e.g. https://vitessce.io/#?dataset=codeluppi-2018
There was a problem hiding this comment.
We show "Gene Expression" in the UI, but "geneExpression" should not be a valid value here
There was a problem hiding this comment.
Ah my bad, I see what you mean now, we do use this value here as a prop
so please ignore my suggestion above.I guess this is why typescript is helpful. Can we leave a comment about this in the code here?
There was a problem hiding this comment.
I added an explanatory comment, thanks for the clarification 👍🏻
|
A few small comments, then it looks good to merge |
Co-authored-by: Mark Keller <7525285+keller-mark@users.noreply.github.com>






Fixes #2347
Background
This PR adds slider controls to the
legendpackage and updates the legend package to use TypeScript.The min/max values on numeric legends now allow users to click and drag/use keyboard controls to set the min/max values for the legend.
Change List
legendpackage to native TS.Checklist
Screen.Recording.2025-12-01.124230.mp4
Screen.Recording.2025-12-01.124313.mp4