GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
208 stars 62 forks source link

Add assembly name to scalebar in synteny views #4494

Closed cmdcolin closed 3 months ago

cmdcolin commented 3 months ago

Adds the concept of a scalebar display "prefix" so that the synteny display can show the assembly name in each row

The prefix is "combined with the refname" if a leftmost block is a content block, or otherwise just put at position absolute leftPx:0

image

with a show all regions the leftmost block is a padding block, so you can see the assemblyname gets detached from the chromosome names

image

this approach is similar but a little different from the approach mentioned here https://github.com/GMOD/jbrowse-components/issues/3414 which had a always floating leftmost paper, but this would cover up the leftmost refname

It is also a little different from pairing discussion with garrett who proposed adding it to minicontrols (on right side of screen). it just felt a bit off :)

fixes https://github.com/GMOD/jbrowse-components/issues/3414