# SyntenyViewMixin

Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the [developer guide](https://jbrowse.org/jb2/docs/developer_guide/) for concepts. Built into JBrowse core. [View source](https://github.com/GMOD/jbrowse-components/blob/main/packages/synteny-core/src/SyntenyViewMixin.ts).

What the linear synteny and dotplot views share beyond `SyntenyColorsMixin`:
the level-of-detail tier every track draws at, and a color key the reader
closes per mode.

Each section ends with the members a composed model contributes, linked to the page that documents them.

## Properties

| Member | Description |
| --- | --- |
| **data**<br><code>types.stripDefault(syntenyDataConfigSchema, {})</code> | What the fetch reads, a [SyntenyData](https://jbrowse.org/jb2/docs/config/syntenydata) object: `resolution` picks a tiered file's stored tier. One value for the view, so every track draws at the same tier. |
| **legend**<br><code>types.stripDefault(legendConfigSchema, {})</code> | Whether the view draws its color key, a [Legend](https://jbrowse.org/jb2/docs/config/legend) object. The key's close button hides it for the current mode only and is never saved. |

4 inherited properties from 3 models:

From [TrackColorsMixin](../trackcolorsmixin): [`encoding`](../trackcolorsmixin#property-encoding), [`trackColors`](../trackcolorsmixin#property-trackcolors)

From [ParkedColorMixin](../parkedcolormixin): [`parkedColors`](../parkedcolormixin#property-parkedcolors)

From [SyntenyFilterMixin](../syntenyfiltermixin): [`filter`](../syntenyfiltermixin#property-filter)


## Volatiles

| Member | Description |
| --- | --- |
| **colorLegendDismissedFor**<br><code>string &#124; undefined</code> | The field whose legend the reader closed. The legend comes back with the next field that has one, so a dismissal is scoped to the field it was made in rather than being a setting to find again. |

1 inherited volatile from one model:

From [TrackColorsMixin](../trackcolorsmixin): [`seenAttributeRanges`](../trackcolorsmixin#volatile-seenattributeranges)


## Getters

| Member | Description |
| --- | --- |
| **hasLodCapableAdapter**<br><code>boolean</code> | Whether any track's adapter has tiers to switch between, which gates the "Level of detail" setting. |
| **resolution**<br><code>LodMode</code> | `data.resolution`: the stored tier every track fetches. |
| **showLegend**<br><code>boolean</code> | The legend-host half of `LegendMixin` a view needs: whether the key draws, which is `legend.show`, the mode having a key, and the reader not having closed it in this mode. `ChromeLegend` and `SvgLegend` read it. |
| **legendSpec**<br><code>LegendSpec</code> | The key `ChromeLegend` draws on screen and `SvgLegend` in the export. |

24 inherited getters from 4 models:

From [SyntenyColorsMixin](../syntenycolorsmixin): [`defaultOpacity`](../syntenycolorsmixin#getter-defaultopacity), [`opacitySetting`](../syntenycolorsmixin#getter-opacitysetting), [`opacityFade`](../syntenycolorsmixin#getter-opacityfade), [`opacityLevel`](../syntenycolorsmixin#getter-opacitylevel), [`opacityField`](../syntenycolorsmixin#getter-opacityfield)

From [TrackColorsMixin](../trackcolorsmixin): [`colorSetting`](../trackcolorsmixin#getter-colorsetting), [`impliedColorField`](../trackcolorsmixin#getter-impliedcolorfield), [`colorPaint`](../trackcolorsmixin#getter-colorpaint), [`colorValue`](../trackcolorsmixin#getter-colorvalue), [`colorDomain`](../trackcolorsmixin#getter-colordomain), [`colorRange`](../trackcolorsmixin#getter-colorrange), [`colorableAttributes`](../trackcolorsmixin#getter-colorableattributes), [`attributeRanges`](../trackcolorsmixin#getter-attributeranges), [`colorableTracks`](../trackcolorsmixin#getter-colorabletracks), [`trackColorAssignments`](../trackcolorsmixin#getter-trackcolorassignments), [`colorField`](../trackcolorsmixin#getter-colorfield), [`hideUnlabelled`](../trackcolorsmixin#getter-hideunlabelled), [`hasLegendKey`](../trackcolorsmixin#getter-haslegendkey), [`colorLegendChips`](../trackcolorsmixin#getter-colorlegendchips), [`colorScales`](../trackcolorsmixin#getter-colorscales)

From [ParkedColorMixin](../parkedcolormixin): [`parkedColor`](../parkedcolormixin#getter-parkedcolor), [`parkedIdentity`](../parkedcolormixin#getter-parkedidentity)

From [SyntenyFilterMixin](../syntenyfiltermixin): [`predicates`](../syntenyfiltermixin#getter-predicates), [`minLength`](../syntenyfiltermixin#getter-minlength)


## Methods

11 inherited methods from 4 models:

From [SyntenyColorsMixin](../syntenycolorsmixin): [`syntenyTracks`](../syntenycolorsmixin#method-syntenytracks), [`colorableTrackConfigs`](../syntenycolorsmixin#method-colorabletrackconfigs), [`colorableAttributeNames`](../syntenycolorsmixin#method-colorableattributenames), [`legendAlpha`](../syntenycolorsmixin#method-legendalpha)

From [TrackColorsMixin](../trackcolorsmixin): [`loadedAttributeRanges`](../trackcolorsmixin#method-loadedattributeranges), [`legendCigarOps`](../trackcolorsmixin#method-legendcigarops), [`colorSurface`](../trackcolorsmixin#method-colorsurface), [`offersReferenceColor`](../trackcolorsmixin#method-offersreferencecolor), [`trackColorFor`](../trackcolorsmixin#method-trackcolorfor)

From [ParkedColorMixin](../parkedcolormixin): [`parkedColorOf`](../parkedcolormixin#method-parkedcolorof)

From [SyntenyFilterMixin](../syntenyfiltermixin): [`lowerBound`](../syntenyfiltermixin#method-lowerbound)


## Actions

| Member | Description |
| --- | --- |
| **setResolution**<br><code>(resolution: LodMode) =&gt; void</code> |  |
| **setShowLegend**<br><code>(show: boolean) =&gt; void</code> | The legend host's setter: closing the key hides it for this mode only, so picking another mode brings its key up. |
| **setLegendShow**<br><code>(show: boolean) =&gt; void</code> | The "Show legend" checkbox: writes `legend.show`, and showing it brings back a key closed in this mode. |
| **dismissLegendSection**<br><code>() =&gt; void</code> | One section is the whole key here. |

14 inherited actions from 4 models:

From [SyntenyColorsMixin](../syntenycolorsmixin): [`setOpacity`](../syntenycolorsmixin#action-setopacity), [`setOpacityField`](../syntenycolorsmixin#action-setopacityfield)

From [TrackColorsMixin](../trackcolorsmixin): [`observeAttributeRanges`](../trackcolorsmixin#action-observeattributeranges), [`resetAttributeRanges`](../trackcolorsmixin#action-resetattributeranges), [`setHideUnlabelled`](../trackcolorsmixin#action-sethideunlabelled), [`setColorField`](../trackcolorsmixin#action-setcolorfield), [`setColorValue`](../trackcolorsmixin#action-setcolorvalue), [`openSolidColorDialog`](../trackcolorsmixin#action-opensolidcolordialog), [`setColorDomain`](../trackcolorsmixin#action-setcolordomain), [`setTrackColor`](../trackcolorsmixin#action-settrackcolor), [`clearTrackColors`](../trackcolorsmixin#action-cleartrackcolors)

From [ParkedColorMixin](../parkedcolormixin): [`parkColor`](../parkedcolormixin#action-parkcolor)

From [SyntenyFilterMixin](../syntenyfiltermixin): [`setFilter`](../syntenyfiltermixin#action-setfilter), [`setLowerBound`](../syntenyfiltermixin#action-setlowerbound)


