Base1DView
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. Built into JBrowse core. View source.
Holds a one-dimensional axis of displayed regions, with its zoom and scroll offset, for views other than the linear genome view, such as the two axes of the dotplot.
Its page sits under General because it is not a pluggable view type.
Properties
| Member | Description |
|---|---|
idid: ElementId | |
displayedRegionsdisplayedRegions: types.optional(types.frozen<IRegion[]>(), []) | |
bpPerPxbpPerPx: 0 | |
offsetPxoffsetPx: 0 | |
minimumBlockWidthminimumBlockWidth: types.stripDefault(types.number, 0) |
Volatiles
| Member | Description |
|---|---|
volatileWidthnumber |
Getters
| Member | Description |
|---|---|
widthnumber | |
minBpPerPxnumber | zoom-in floor; overridden by extensions (e.g. the dotplot axes) |
maxBpPerPxnumber | zoom-out ceiling; overridden by extensions (e.g. the dotplot axes) |
assemblyNamesstring[] | |
displayedRegionsTotalPxnumber | |
maxOffsetnumber | |
minOffsetnumber | |
totalBpnumber | |
dynamicBlocksBlockSet | |
staticBlocksBlockSet | |
currBpnumber |
Methods
| Member | Description |
|---|---|
pxToBp(px: number) => PxToBpResult | |
| bpToPx |
Actions
| Member | Description |
|---|---|
setDisplayedRegions(regions: Region[]) => void | |
setBpPerPx(val: number) => void | |
setVolatileWidth(width: number) => void | |
showAllRegions() => void | this makes a zoomed out view that shows all displayedRegions that makes the overview bar square with the scale bar |
zoomOut() => void | |
zoomIn() => void | |
zoomTo(bpPerPx: number, offset?: any) => number | |
scrollTo(offsetPx: number) => number | |
| centerAt | |
scroll(distance: number) => number | note: the scroll is clamped to keep the view on the main screen |
| moveTo | offset is the base-pair-offset in the displayed region, index is the index of the displayed region in the linear genome view |