jbrowse-components icon indicating copy to clipboard operation
jbrowse-components copied to clipboard

Adds option to auto-adjust the track height to show all features

Open carolinebridge opened this issue 4 months ago • 20 comments

Adds new menu option to auto-adjust the track height to expand and shrink based on the features shown.

The functionality is as follows:

‘static’ === the track height will assume the height the user has adjusted the height to, or the configured height

‘dynamic’ === the track height will expand and shrink based on the height of the features shown

Resolves https://github.com/GMOD/jbrowse-components/issues/534

Adds a slot for this in the config:

    /**
     * #slot configuration.LinearGenomeViewPlugin.adjustTrackLayoutHeight
     */
    adjustTrackLayoutHeight: {
      type: 'string',
      defaultValue: 'static',
      model: types.enumeration('adjustTrackLayoutHeightOptions', [
        'static',
        'dynamic'
      ]),
    },

carolinebridge avatar Mar 01 '24 16:03 carolinebridge