HiddenGroupsMixin
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements for concepts. Built into JBrowse core. View source.
#crossCuttingMixin The sections a reader hid from an in-track grouping's chips: the hiddenGroups set, hideGroup and showAllGroups over it, the displayHiddenGroupKeys hook a display hides a lane through on its own behalf, hiddenGroupKeys folding both, and the dropGroupState reset that fires when the host's groupKeySpace moves
A key names a section only within the grouping that issued it: '' is both
the ungrouped section and every dimension's catch-all, and two dimensions'
digit keys overlap outright. So the state is volatile and dropped whenever
groupKeySpace changes, whichever route moved it: the menu, the settings
editor writing the slot, a reset, or a mode that degrades the grouping. A
display keeping more per-group state overrides dropGroupState and calls
through.
Volatiles
| Member | Description |
|---|---|
hiddenGroups: observable.set<string>() | Group keys the user hid from the stack. |
Getters
| Member | Description |
|---|---|
ReadonlySet<string> | Overridable hook: lanes the DISPLAY hides on its own behalf, as opposed to the ones the user hid from a chip. Empty by default; LGVSyntenyDisplay hides the self-alignment lane of an all-vs-all track through it. |
ReadonlySet<string> | Every key the stack drops: what the user hid and what the display hides for itself. A fresh Set per change rather than the observable set itself, so a layout memo comparing its inputs by identity sees a hide. |
Actions
| Member | Description |
|---|---|
hideGroup(key: string) => void | Drop a section from the stack. Reversed by showAllGroups, which the "Show..." menu offers while anything is hidden, since a hidden section draws no chip of its own to come back from. |
showAllGroups() => void | |
dropGroupState() => void | Forget every hidden section. |