FacetWritesMixin
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. Built into JBrowse core. View source.
The writes a display's facet object takes from a menu row, a dialog or a chip drag: the field the sections split by (facetByField) and their order (setFacetDomain). Each rewrites the object as written, so what a pick leaves alone stays, and a pick of the field already grouping writes nothing. A display that resets its scroll when the sections change does it from HiddenGroupsMixin's dropGroupState, which also runs for a facet an agent, a share link or "Edit plot" writes
Getters
| Member | Description |
|---|---|
writtenFacetWrittenFacet | The facet object as written. |
Actions
| Member | Description |
|---|---|
facetByField(field: string) => void | Split the sections by field, '' for none, keeping the order and hidden sections while it is the field already grouping. |
setFacetDomain(domain: readonly string[]) => void | The order the sections take, the ones it names first; [] sorts them all. |