ParkedColorMixin
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 field the last write took off a color object, with its domain, range and key names, so picking that field again gives them back (colorForField). A written field always paints, so the field a write leaves, for Default, Solid color or another field, is display state rather than config. Each writer parks before it writes, so no reader sees the field gone unparked
Properties
| Member | Description |
|---|---|
| parkedColors | By color object, the field the last write away from one left, with its members |
Getters
| Member | Description |
|---|---|
parkedColorColorSlots | undefined | The color object's parked field |
Methods
| Member | Description |
|---|---|
parkedColorOf(name: string) => ColorSlots | undefined |
Actions
| Member | Description |
|---|---|
parkColor(name: string, written: ColorSlots, next: unknown) => void | Hold written's field and its members under name where next, the write about to replace it, names another field; a string next is a constant. |
Related links
- Docs: URL query parameter API