CanvasFeatureGateMixin
Auto-generated from the @jbrowse/mobx-state-tree model in the source — see the developer guide for concepts. Provided by the canvas plugin. View source.
The density axis of the region-too-large gate, composed after
MultiRegionDisplayMixin. A display opts in by composing this and calling
commitGateMeasurements from its fetch's onComplete.
Volatiles
| Member | Description |
|---|---|
densityStatsPerRegionObservableMap<number, RegionDensityStats> | Per-region feature counts, so the verdict is a live max at the current bpPerPx. |
Getters
| Member | Description |
|---|---|
gateEnabledboolean | types.compose resolves a collision to the later argument, so this mixin must follow the one declaring the byte-gate opt-in. |
visibleFeatureDensityPerPxnumber | Density at the debounced coarseBpPerPx, so the verdict shares the layout cadence. |
maxFeatureDensitynumber | undefined | Undefined when the axis may not act. |
densityTooLargeboolean |
Methods
| Member | Description |
|---|---|
observedMaxDensity(bpPerPx: number) => number |
Actions
| Member | Description |
|---|---|
| setDensityStats | |
clearGateMeasurements() => void | RegionTooLargeMixin's hook: the density axis drops its counts on the trigger that drops the byte estimate, so one gate cannot hold two measurements of two different files. |
| commitGateMeasurements | Judged by the tier captured at issue. |