DensityBandMixin
Auto-generated @jbrowse/mobx-state-tree API for the current JBrowse release — see pluggable elements for concepts. Provided by the canvas plugin. View source.
The density band: where the cursor is over it, what it draws and what it
reads out. Composing DensityTierMixin rather than sitting beside it forces
the order, since every getter here keys off the swap the tier decides.
Members a composed model contributes are listed here too, so these tables are the whole surface.
Volatiles
| Member | Description | Defined by |
|---|---|---|
densityHoverPxdensityHoverPx: undefined as number | undefined | The cursor's view px, not the bp under it: a wheel zoom under a stationary cursor fires no mousemove, and the px stays true through it. | DensityBandMixin |
coarseTiercoarseTier: regionDataMap<P>('coarseTier') | The coarse payload by displayedRegionIndex, over the regions the last read was issued for. Cleared on chromosome navigation. | CoarseTierMixin |
coarseTierReadcoarseTierRead: undefined as CoarseTierRead | undefined | What the held payloads were read over — the buffered regions and the read key — so a pan or a zoom inside them re-reads nothing. Undefined until a read lands. | CoarseTierMixin |
coarseTierLoadingcoarseTierLoading: false | CoarseTierMixin |
Getters
| Member | Description | Defined by |
|---|---|---|
coarseTierStandsInboolean | DensityBandMixin | |
densityBandLayerDensityBandLayer | DensityBandMixin | |
densityHoverDensityHover | undefined | DensityBandMixin | |
densityPeakReadoutstring | The band's line of text with no cursor over it, which is what the SVG export writes. | DensityBandMixin |
densityReadoutstring | Blank until the first read lands, so the scrim is not captioned "no density data" for a read still in flight. | DensityBandMixin |
coarseAdapterSlotstring | DensityTierMixin | |
densityTierMode"auto" | "density" | "features" | The densityTier slot's value. | DensityTierMixin |
densityTierThresholdBpPerPxnumber | DensityTierMixin | |
coarseTierModeCoarseTierMode | DensityTierMixin | |
coarseTierPastThresholdboolean | auto also swaps from the densityTierBpPerPx slot outward, where a track asks for the band before the region is too large to fetch. | DensityTierMixin |
coarseReadKeystring | The bins are read at the view's bp/px, so a real zoom re-reads at the level the sidecar keeps for it and a small one reuses what is held. | DensityTierMixin |
coarseTierGatedboolean | Overridable hook (default false): the coarse read is a feature download the byte gate has to measure. The gate then measures the coarse adapter while the tier is up, its refusal is the banner, the detail fetch stands down outright since the coarse read is the measurement pass, and the swap is by threshold alone — the verdict is about whichever tier is up, so it cannot also pick the tier. A read bounded by construction (bins per screen pixel) leaves this off. | CoarseTierMixin |
coarseSourceConfigunknown | The coarse source's config, read off the live track config so a re-pointed adapter follows. | CoarseTierMixin |
hasCoarseSourceboolean | CoarseTierMixin | |
coarseTierActiveboolean | Whether the coarse tier stands in for the detail right now. | CoarseTierMixin |
gateMeasuresCoarseboolean | The byte gate is measuring the coarse read rather than the detail fetch, so its verdict is about the tier on screen. | CoarseTierMixin |
byteGateAdapterPathstring[] | RegionTooLargeMixin's hook: measure the adapter of the fetch that is about to run, so the estimate and the budget describe one file. | CoarseTierMixin |
gateRefusesDetailboolean | The gate's refusal is about the detail fetch, so that fetch owes the re-measure the gate releases through. | CoarseTierMixin |
coarseTierIssueKeystring | The whole key a read is held under: the coarse adapter and the display's own term. | CoarseTierMixin |
fetchSuspendedboolean | MultiRegionDisplayMixin's hook, from resolveFetchSuspended over coarseTierStandsIn. | CoarseTierMixin |
displayPhaseDisplayPhase | The foundation's phase with the too-large banner swapped for the tier — see coarseTierDisplayPhase. | CoarseTierMixin |
svgReadyboolean | The export gate under the same swap — see coarseTierSvgReady. | CoarseTierMixin |
drawsWhenTooLargeboolean | renderDisplaySvg's hook: the export paints the tier in place of the too-large note, the same swap the chrome makes on screen — unless the note is about the coarse read itself. | CoarseTierMixin |
Actions
| Member | Description | Defined by |
|---|---|---|
setDensityHoverPx(px?: number | undefined) => void | Kept only while the band is up, so a pointer over features writes nothing here. | DensityBandMixin |
| fetchCoarseTier | DensityTierMixin | |
setCoarseTier(entries: CoarseTierEntry<P>[], read: CoarseTierRead) => void | CoarseTierMixin | |
clearCoarseTier() => void | CoarseTierMixin | |
setCoarseTierLoading(loading: boolean) => void | CoarseTierMixin |