Base1DView
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements for concepts. Built into JBrowse core. View source.
used in non-lgv view representations of a 1d view e.g. the two axes of the dotplot use this. categorized General rather than View because it is not a pluggable view type, which the name-suffix heuristic would otherwise assume
Properties
| Member | Description |
|---|---|
idid: ElementId | |
displayedRegionsdisplayedRegions: types.optional(types.frozen<IRegion[]>(), []) | |
bpPerPxbpPerPx: 0 | |
offsetPxoffsetPx: 0 | |
minimumBlockWidthminimumBlockWidth: types.stripDefault(types.number, 0) |
Volatiles
| Member | Description |
|---|---|
volatileWidthvolatileWidth: 0 |
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 |