@jbrowse/plugin-wiggle 2.17.0 → 2.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BigWigAdapter/BigWigAdapter.d.ts +4 -3
- package/dist/BigWigAdapter/BigWigAdapter.js +3 -8
- package/dist/BigWigAdapter/configSchema.d.ts +0 -9
- package/dist/BigWigAdapter/configSchema.js +1 -13
- package/dist/BigWigAdapter/index.d.ts +1 -1
- package/dist/CreateMultiWiggleExtension/ConfirmDialog.d.ts +1 -1
- package/dist/CreateMultiWiggleExtension/ConfirmDialog.js +2 -2
- package/dist/CreateMultiWiggleExtension/index.d.ts +1 -1
- package/dist/CreateMultiWiggleExtension/index.js +26 -26
- package/dist/DensityRenderer/DensityRenderer.d.ts +2 -1
- package/dist/DensityRenderer/DensityRenderer.js +1 -1
- package/dist/DensityRenderer/configSchema.js +1 -7
- package/dist/DensityRenderer/index.d.ts +1 -1
- package/dist/DensityRenderer/index.js +1 -1
- package/dist/LinePlotRenderer/LinePlotRenderer.d.ts +3 -2
- package/dist/LinePlotRenderer/LinePlotRenderer.js +1 -1
- package/dist/LinePlotRenderer/configSchema.d.ts +0 -3
- package/dist/LinePlotRenderer/configSchema.js +1 -10
- package/dist/LinePlotRenderer/index.d.ts +1 -1
- package/dist/LinearWiggleDisplay/components/SetColorDialog.js +2 -2
- package/dist/LinearWiggleDisplay/components/Tooltip.d.ts +2 -2
- package/dist/LinearWiggleDisplay/components/Tooltip.js +0 -1
- package/dist/LinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +1 -1
- package/dist/LinearWiggleDisplay/components/WiggleDisplayComponent.js +2 -2
- package/dist/LinearWiggleDisplay/configSchema.d.ts +1 -12
- package/dist/LinearWiggleDisplay/configSchema.js +0 -15
- package/dist/LinearWiggleDisplay/index.d.ts +1 -1
- package/dist/LinearWiggleDisplay/index.js +1 -1
- package/dist/LinearWiggleDisplay/model.d.ts +13 -71
- package/dist/LinearWiggleDisplay/model.js +2 -51
- package/dist/LinearWiggleDisplay/renderSvg.d.ts +2 -2
- package/dist/LinearWiggleDisplay/renderSvg.js +1 -2
- package/dist/MultiDensityRenderer/MultiDensityRenderer.d.ts +4 -3
- package/dist/MultiDensityRenderer/MultiDensityRenderer.js +2 -3
- package/dist/MultiDensityRenderer/configSchema.js +1 -7
- package/dist/MultiDensityRenderer/index.d.ts +1 -1
- package/dist/MultiLineRenderer/MultiLineRenderer.d.ts +3 -2
- package/dist/MultiLineRenderer/MultiLineRenderer.js +1 -2
- package/dist/MultiLineRenderer/configSchema.d.ts +0 -6
- package/dist/MultiLineRenderer/configSchema.js +1 -13
- package/dist/MultiLineRenderer/index.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/ColorLegend.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/ColorLegend.js +0 -1
- package/dist/MultiLinearWiggleDisplay/components/DraggableDialog.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/DraggableDialog.js +3 -7
- package/dist/MultiLinearWiggleDisplay/components/RectBg.js +1 -1
- package/dist/MultiLinearWiggleDisplay/components/ScoreLegend.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/SetColorDialog.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/SetColorDialog.js +3 -5
- package/dist/MultiLinearWiggleDisplay/components/SourcesGrid.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/SourcesGrid.js +15 -26
- package/dist/MultiLinearWiggleDisplay/components/Tooltip.d.ts +3 -3
- package/dist/MultiLinearWiggleDisplay/components/Tooltip.js +1 -2
- package/dist/MultiLinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/YScaleBars.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/YScaleBars.js +1 -1
- package/dist/MultiLinearWiggleDisplay/components/util.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/components/util.js +1 -1
- package/dist/MultiLinearWiggleDisplay/configSchema.d.ts +1 -10
- package/dist/MultiLinearWiggleDisplay/configSchema.js +1 -19
- package/dist/MultiLinearWiggleDisplay/index.d.ts +1 -1
- package/dist/MultiLinearWiggleDisplay/index.js +1 -1
- package/dist/MultiLinearWiggleDisplay/model.d.ts +17 -139
- package/dist/MultiLinearWiggleDisplay/model.js +14 -120
- package/dist/MultiLinearWiggleDisplay/renderSvg.d.ts +2 -2
- package/dist/MultiLinearWiggleDisplay/renderSvg.js +1 -1
- package/dist/MultiQuantitativeTrack/configSchema.d.ts +1 -1
- package/dist/MultiQuantitativeTrack/configSchema.js +1 -7
- package/dist/MultiQuantitativeTrack/index.d.ts +1 -1
- package/dist/MultiQuantitativeTrack/index.js +1 -1
- package/dist/MultiRowLineRenderer/MultiRowLineRenderer.d.ts +3 -2
- package/dist/MultiRowLineRenderer/MultiRowLineRenderer.js +1 -2
- package/dist/MultiRowLineRenderer/configSchema.d.ts +0 -6
- package/dist/MultiRowLineRenderer/configSchema.js +2 -14
- package/dist/MultiRowLineRenderer/index.d.ts +1 -1
- package/dist/MultiRowXYPlotRenderer/MultiRowXYPlotRenderer.d.ts +3 -2
- package/dist/MultiRowXYPlotRenderer/MultiRowXYPlotRenderer.js +1 -2
- package/dist/MultiRowXYPlotRenderer/configSchema.d.ts +0 -12
- package/dist/MultiRowXYPlotRenderer/configSchema.js +2 -20
- package/dist/MultiRowXYPlotRenderer/index.d.ts +1 -1
- package/dist/MultiWiggleAdapter/MultiWiggleAdapter.d.ts +4 -3
- package/dist/MultiWiggleAdapter/MultiWiggleAdapter.js +8 -13
- package/dist/MultiWiggleAdapter/configSchema.d.ts +0 -6
- package/dist/MultiWiggleAdapter/configSchema.js +1 -10
- package/dist/MultiWiggleAdapter/index.d.ts +1 -1
- package/dist/MultiWiggleAdapter/index.js +1 -1
- package/dist/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.d.ts +1 -1
- package/dist/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.js +2 -4
- package/dist/MultiWiggleAddTrackWorkflow/index.d.ts +1 -1
- package/dist/MultiWiggleAddTrackWorkflow/index.js +1 -2
- package/dist/MultiWiggleRendering.d.ts +3 -3
- package/dist/MultiWiggleRendering.js +2 -2
- package/dist/MultiXYPlotRenderer/MultiXYPlotRenderer.d.ts +3 -2
- package/dist/MultiXYPlotRenderer/MultiXYPlotRenderer.js +1 -2
- package/dist/MultiXYPlotRenderer/configSchema.d.ts +0 -12
- package/dist/MultiXYPlotRenderer/configSchema.js +1 -19
- package/dist/MultiXYPlotRenderer/index.d.ts +1 -1
- package/dist/QuantitativeTrack/configSchema.d.ts +1 -1
- package/dist/QuantitativeTrack/configSchema.js +1 -7
- package/dist/QuantitativeTrack/index.d.ts +1 -1
- package/dist/QuantitativeTrack/index.js +1 -1
- package/dist/Tooltip.d.ts +1 -1
- package/dist/Tooltip.js +1 -2
- package/dist/WiggleBaseRenderer.d.ts +5 -8
- package/dist/WiggleBaseRenderer.js +0 -1
- package/dist/WiggleRPC/MultiWiggleGetSources.d.ts +5 -12
- package/dist/WiggleRPC/MultiWiggleGetSources.js +2 -29
- package/dist/WiggleRPC/WiggleGetGlobalQuantitativeStats.d.ts +5 -7
- package/dist/WiggleRPC/WiggleGetGlobalQuantitativeStats.js +2 -15
- package/dist/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.d.ts +4 -11
- package/dist/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.js +2 -29
- package/dist/WiggleRendering.d.ts +2 -2
- package/dist/WiggleRendering.js +1 -3
- package/dist/XYPlotRenderer/XYPlotRenderer.d.ts +3 -2
- package/dist/XYPlotRenderer/XYPlotRenderer.js +3 -5
- package/dist/XYPlotRenderer/configSchema.d.ts +0 -12
- package/dist/XYPlotRenderer/configSchema.js +2 -20
- package/dist/XYPlotRenderer/index.d.ts +1 -1
- package/dist/configSchema.d.ts +0 -18
- package/dist/configSchema.js +1 -23
- package/dist/drawDensity.d.ts +3 -3
- package/dist/drawDensity.js +0 -4
- package/dist/drawLine.d.ts +3 -3
- package/dist/drawLine.js +0 -5
- package/dist/drawXY.d.ts +4 -3
- package/dist/drawXY.js +28 -12
- package/dist/getMultiWiggleSourcesAutorun.d.ts +2 -2
- package/dist/getMultiWiggleSourcesAutorun.js +10 -7
- package/dist/getQuantitativeStats.d.ts +3 -3
- package/dist/getQuantitativeStats.js +2 -10
- package/dist/getQuantitativeStatsAutorun.d.ts +3 -3
- package/dist/getQuantitativeStatsAutorun.js +18 -20
- package/dist/index.d.ts +4 -4
- package/dist/index.js +21 -24
- package/dist/shared/SetMinMaxDialog.js +1 -1
- package/dist/shared/SharedWiggleConfigSchema.d.ts +0 -26
- package/dist/shared/SharedWiggleConfigSchema.js +1 -30
- package/dist/shared/SharedWiggleMixin.d.ts +20 -225
- package/dist/shared/SharedWiggleMixin.js +7 -177
- package/dist/util.d.ts +0 -28
- package/dist/util.js +1 -45
- package/esm/BigWigAdapter/BigWigAdapter.d.ts +4 -3
- package/esm/BigWigAdapter/BigWigAdapter.js +5 -10
- package/esm/BigWigAdapter/configSchema.d.ts +0 -9
- package/esm/BigWigAdapter/configSchema.js +1 -13
- package/esm/BigWigAdapter/index.d.ts +1 -1
- package/esm/CreateMultiWiggleExtension/ConfirmDialog.d.ts +1 -1
- package/esm/CreateMultiWiggleExtension/ConfirmDialog.js +2 -2
- package/esm/CreateMultiWiggleExtension/index.d.ts +1 -1
- package/esm/CreateMultiWiggleExtension/index.js +26 -26
- package/esm/DensityRenderer/DensityRenderer.d.ts +2 -1
- package/esm/DensityRenderer/DensityRenderer.js +1 -1
- package/esm/DensityRenderer/configSchema.js +1 -7
- package/esm/DensityRenderer/index.d.ts +1 -1
- package/esm/DensityRenderer/index.js +1 -1
- package/esm/LinePlotRenderer/LinePlotRenderer.d.ts +3 -2
- package/esm/LinePlotRenderer/LinePlotRenderer.js +1 -1
- package/esm/LinePlotRenderer/configSchema.d.ts +0 -3
- package/esm/LinePlotRenderer/configSchema.js +1 -10
- package/esm/LinePlotRenderer/index.d.ts +1 -1
- package/esm/LinearWiggleDisplay/components/SetColorDialog.js +2 -2
- package/esm/LinearWiggleDisplay/components/Tooltip.d.ts +2 -2
- package/esm/LinearWiggleDisplay/components/Tooltip.js +0 -1
- package/esm/LinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +1 -1
- package/esm/LinearWiggleDisplay/components/WiggleDisplayComponent.js +3 -3
- package/esm/LinearWiggleDisplay/configSchema.d.ts +1 -12
- package/esm/LinearWiggleDisplay/configSchema.js +0 -15
- package/esm/LinearWiggleDisplay/index.d.ts +1 -1
- package/esm/LinearWiggleDisplay/index.js +1 -1
- package/esm/LinearWiggleDisplay/model.d.ts +13 -71
- package/esm/LinearWiggleDisplay/model.js +4 -53
- package/esm/LinearWiggleDisplay/renderSvg.d.ts +2 -2
- package/esm/LinearWiggleDisplay/renderSvg.js +1 -2
- package/esm/MultiDensityRenderer/MultiDensityRenderer.d.ts +4 -3
- package/esm/MultiDensityRenderer/MultiDensityRenderer.js +1 -2
- package/esm/MultiDensityRenderer/configSchema.js +1 -7
- package/esm/MultiDensityRenderer/index.d.ts +1 -1
- package/esm/MultiLineRenderer/MultiLineRenderer.d.ts +3 -2
- package/esm/MultiLineRenderer/MultiLineRenderer.js +1 -2
- package/esm/MultiLineRenderer/configSchema.d.ts +0 -6
- package/esm/MultiLineRenderer/configSchema.js +1 -13
- package/esm/MultiLineRenderer/index.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/ColorLegend.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/ColorLegend.js +0 -1
- package/esm/MultiLinearWiggleDisplay/components/DraggableDialog.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/DraggableDialog.js +4 -8
- package/esm/MultiLinearWiggleDisplay/components/RectBg.js +1 -1
- package/esm/MultiLinearWiggleDisplay/components/ScoreLegend.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/ScoreLegend.js +1 -1
- package/esm/MultiLinearWiggleDisplay/components/SetColorDialog.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/SetColorDialog.js +4 -6
- package/esm/MultiLinearWiggleDisplay/components/SourcesGrid.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/SourcesGrid.js +16 -27
- package/esm/MultiLinearWiggleDisplay/components/Tooltip.d.ts +3 -3
- package/esm/MultiLinearWiggleDisplay/components/Tooltip.js +1 -2
- package/esm/MultiLinearWiggleDisplay/components/WiggleDisplayComponent.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/YScaleBars.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/YScaleBars.js +2 -2
- package/esm/MultiLinearWiggleDisplay/components/util.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/components/util.js +1 -1
- package/esm/MultiLinearWiggleDisplay/configSchema.d.ts +1 -10
- package/esm/MultiLinearWiggleDisplay/configSchema.js +1 -19
- package/esm/MultiLinearWiggleDisplay/index.d.ts +1 -1
- package/esm/MultiLinearWiggleDisplay/index.js +1 -1
- package/esm/MultiLinearWiggleDisplay/model.d.ts +17 -139
- package/esm/MultiLinearWiggleDisplay/model.js +14 -120
- package/esm/MultiLinearWiggleDisplay/renderSvg.d.ts +2 -2
- package/esm/MultiLinearWiggleDisplay/renderSvg.js +1 -1
- package/esm/MultiQuantitativeTrack/configSchema.d.ts +1 -1
- package/esm/MultiQuantitativeTrack/configSchema.js +1 -7
- package/esm/MultiQuantitativeTrack/index.d.ts +1 -1
- package/esm/MultiQuantitativeTrack/index.js +1 -1
- package/esm/MultiRowLineRenderer/MultiRowLineRenderer.d.ts +3 -2
- package/esm/MultiRowLineRenderer/MultiRowLineRenderer.js +1 -2
- package/esm/MultiRowLineRenderer/configSchema.d.ts +0 -6
- package/esm/MultiRowLineRenderer/configSchema.js +2 -14
- package/esm/MultiRowLineRenderer/index.d.ts +1 -1
- package/esm/MultiRowXYPlotRenderer/MultiRowXYPlotRenderer.d.ts +3 -2
- package/esm/MultiRowXYPlotRenderer/MultiRowXYPlotRenderer.js +1 -2
- package/esm/MultiRowXYPlotRenderer/configSchema.d.ts +0 -12
- package/esm/MultiRowXYPlotRenderer/configSchema.js +2 -20
- package/esm/MultiRowXYPlotRenderer/index.d.ts +1 -1
- package/esm/MultiWiggleAdapter/MultiWiggleAdapter.d.ts +4 -3
- package/esm/MultiWiggleAdapter/MultiWiggleAdapter.js +9 -14
- package/esm/MultiWiggleAdapter/configSchema.d.ts +0 -6
- package/esm/MultiWiggleAdapter/configSchema.js +1 -10
- package/esm/MultiWiggleAdapter/index.d.ts +1 -1
- package/esm/MultiWiggleAdapter/index.js +1 -1
- package/esm/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.d.ts +1 -1
- package/esm/MultiWiggleAddTrackWorkflow/AddTrackWorkflow.js +2 -4
- package/esm/MultiWiggleAddTrackWorkflow/index.d.ts +1 -1
- package/esm/MultiWiggleAddTrackWorkflow/index.js +1 -2
- package/esm/MultiWiggleRendering.d.ts +3 -3
- package/esm/MultiWiggleRendering.js +2 -2
- package/esm/MultiXYPlotRenderer/MultiXYPlotRenderer.d.ts +3 -2
- package/esm/MultiXYPlotRenderer/MultiXYPlotRenderer.js +1 -2
- package/esm/MultiXYPlotRenderer/configSchema.d.ts +0 -12
- package/esm/MultiXYPlotRenderer/configSchema.js +1 -19
- package/esm/MultiXYPlotRenderer/index.d.ts +1 -1
- package/esm/QuantitativeTrack/configSchema.d.ts +1 -1
- package/esm/QuantitativeTrack/configSchema.js +1 -7
- package/esm/QuantitativeTrack/index.d.ts +1 -1
- package/esm/QuantitativeTrack/index.js +1 -1
- package/esm/Tooltip.d.ts +1 -1
- package/esm/Tooltip.js +1 -2
- package/esm/WiggleBaseRenderer.d.ts +5 -8
- package/esm/WiggleBaseRenderer.js +0 -1
- package/esm/WiggleRPC/MultiWiggleGetSources.d.ts +5 -12
- package/esm/WiggleRPC/MultiWiggleGetSources.js +2 -29
- package/esm/WiggleRPC/WiggleGetGlobalQuantitativeStats.d.ts +5 -7
- package/esm/WiggleRPC/WiggleGetGlobalQuantitativeStats.js +2 -15
- package/esm/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.d.ts +4 -11
- package/esm/WiggleRPC/WiggleGetMultiRegionQuantitativeStats.js +2 -29
- package/esm/WiggleRendering.d.ts +2 -2
- package/esm/WiggleRendering.js +1 -3
- package/esm/XYPlotRenderer/XYPlotRenderer.d.ts +3 -2
- package/esm/XYPlotRenderer/XYPlotRenderer.js +3 -5
- package/esm/XYPlotRenderer/configSchema.d.ts +0 -12
- package/esm/XYPlotRenderer/configSchema.js +2 -20
- package/esm/XYPlotRenderer/index.d.ts +1 -1
- package/esm/configSchema.d.ts +0 -18
- package/esm/configSchema.js +1 -23
- package/esm/drawDensity.d.ts +3 -3
- package/esm/drawDensity.js +1 -5
- package/esm/drawLine.d.ts +3 -3
- package/esm/drawLine.js +1 -6
- package/esm/drawXY.d.ts +4 -3
- package/esm/drawXY.js +29 -13
- package/esm/getMultiWiggleSourcesAutorun.d.ts +2 -2
- package/esm/getMultiWiggleSourcesAutorun.js +9 -6
- package/esm/getQuantitativeStats.d.ts +3 -3
- package/esm/getQuantitativeStats.js +3 -11
- package/esm/getQuantitativeStatsAutorun.d.ts +3 -3
- package/esm/getQuantitativeStatsAutorun.js +18 -20
- package/esm/index.d.ts +4 -4
- package/esm/index.js +13 -16
- package/esm/shared/SetMinMaxDialog.js +1 -1
- package/esm/shared/SharedWiggleConfigSchema.d.ts +0 -26
- package/esm/shared/SharedWiggleConfigSchema.js +1 -30
- package/esm/shared/SharedWiggleMixin.d.ts +20 -225
- package/esm/shared/SharedWiggleMixin.js +8 -178
- package/esm/util.d.ts +0 -28
- package/esm/util.js +1 -45
- package/package.json +2 -4
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view';
|
|
6
|
-
import {
|
|
7
|
-
/**
|
|
8
|
-
* #stateModel MultiLinearWiggleDisplay
|
|
9
|
-
* extends
|
|
10
|
-
* - [SharedWiggleMixin](../sharedwigglemixin)
|
|
11
|
-
*/
|
|
1
|
+
import type { Source } from '../util';
|
|
2
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
+
import type { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
4
|
+
import type { AnyReactComponentType, Feature } from '@jbrowse/core/util';
|
|
5
|
+
import type { ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view';
|
|
6
|
+
import type { Instance } from 'mobx-state-tree';
|
|
12
7
|
export declare function stateModelFactory(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
13
8
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
14
9
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -21,21 +16,12 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
21
16
|
} & {
|
|
22
17
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
23
18
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
24
|
-
region: import("mobx-state-tree").
|
|
25
|
-
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
26
|
-
start: import("mobx-state-tree").ISimpleType<number>;
|
|
27
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
28
|
-
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
29
|
-
} & {
|
|
30
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
31
|
-
}, {
|
|
32
|
-
setRefName(newRefName: string): void;
|
|
33
|
-
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
19
|
+
region: import("mobx-state-tree").IType<import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region, import("@jbrowse/core/util").Region>;
|
|
34
20
|
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
35
21
|
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
36
22
|
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
37
23
|
}, {
|
|
38
|
-
|
|
24
|
+
stopToken: string | undefined;
|
|
39
25
|
filled: boolean;
|
|
40
26
|
reactElement: React.ReactElement | undefined;
|
|
41
27
|
features: Map<string, Feature> | undefined;
|
|
@@ -59,15 +45,9 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
59
45
|
doReload(): void;
|
|
60
46
|
afterAttach(): void;
|
|
61
47
|
setStatus(message: string): void;
|
|
62
|
-
setLoading(
|
|
48
|
+
setLoading(newStopToken: string): void;
|
|
63
49
|
setMessage(messageText: string): void;
|
|
64
|
-
setRendered(props:
|
|
65
|
-
reactElement: React.ReactElement;
|
|
66
|
-
features: Map<string, Feature>;
|
|
67
|
-
layout: any;
|
|
68
|
-
maxHeightReached: boolean;
|
|
69
|
-
renderProps: any;
|
|
70
|
-
} | undefined): void;
|
|
50
|
+
setRendered(props: import("@jbrowse/plugin-linear-genome-view/src/BaseLinearDisplay/models/serverSideRenderedBlock").RenderedProps | undefined): void;
|
|
71
51
|
setError(error: unknown): void;
|
|
72
52
|
reload(): void;
|
|
73
53
|
beforeDestroy(): void;
|
|
@@ -119,13 +99,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
119
99
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
120
100
|
configuration: AnyConfigurationSchemaType;
|
|
121
101
|
} & {
|
|
122
|
-
/**
|
|
123
|
-
* #property
|
|
124
|
-
*/
|
|
125
102
|
type: import("mobx-state-tree").ISimpleType<"MultiLinearWiggleDisplay">;
|
|
126
|
-
/**
|
|
127
|
-
* #property
|
|
128
|
-
*/
|
|
129
103
|
layout: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<Source[], Source[], Source[]>, [undefined]>;
|
|
130
104
|
}, {
|
|
131
105
|
rendererTypeName: string;
|
|
@@ -165,9 +139,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
165
139
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
166
140
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
167
141
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
168
|
-
rpcDriverName: import("mobx-state-tree"
|
|
169
|
-
* #getter
|
|
170
|
-
*/).IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
142
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
171
143
|
}, {
|
|
172
144
|
rendererTypeName: string;
|
|
173
145
|
error: unknown;
|
|
@@ -218,6 +190,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
218
190
|
readonly regionTooLarge: boolean;
|
|
219
191
|
readonly regionTooLargeReason: string;
|
|
220
192
|
} & {
|
|
193
|
+
readonly statsReadyAndRegionNotTooLarge: boolean;
|
|
221
194
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
222
195
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
223
196
|
} & {
|
|
@@ -261,7 +234,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
261
234
|
scoreMin: number;
|
|
262
235
|
scoreMax: number;
|
|
263
236
|
} | undefined;
|
|
264
|
-
statsFetchInProgress: undefined |
|
|
237
|
+
statsFetchInProgress: undefined | string;
|
|
265
238
|
} & {
|
|
266
239
|
updateQuantitativeStats(stats: {
|
|
267
240
|
currStatsBpPerPx: number;
|
|
@@ -271,7 +244,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
271
244
|
setColor(color?: string): void;
|
|
272
245
|
setPosColor(color?: string): void;
|
|
273
246
|
setNegColor(color?: string): void;
|
|
274
|
-
setStatsLoading(
|
|
247
|
+
setStatsLoading(arg?: string): void;
|
|
275
248
|
selectFeature(feature: Feature): void;
|
|
276
249
|
setResolution(res: number): void;
|
|
277
250
|
setFill(fill: number): void;
|
|
@@ -301,9 +274,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
301
274
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
302
275
|
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
303
276
|
[x: string]: any;
|
|
304
|
-
} & import("mobx-state-tree/dist/internal"
|
|
305
|
-
* #property
|
|
306
|
-
*/).NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
277
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
307
278
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
308
279
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
309
280
|
readonly autoscaleType: any;
|
|
@@ -352,144 +323,54 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
352
323
|
} & {
|
|
353
324
|
reload(): Promise<void>;
|
|
354
325
|
} & {
|
|
326
|
+
sourcesLoadingStopToken: string | undefined;
|
|
355
327
|
featureUnderMouseVolatile: Feature | undefined;
|
|
356
328
|
sourcesVolatile: Source[] | undefined;
|
|
357
329
|
} & {
|
|
358
|
-
|
|
359
|
-
* #action
|
|
360
|
-
*/
|
|
330
|
+
setSourcesLoading(str: string): void;
|
|
361
331
|
setLayout(layout: Source[]): void;
|
|
362
|
-
/**
|
|
363
|
-
* #action
|
|
364
|
-
*/
|
|
365
332
|
clearLayout(): void;
|
|
366
|
-
/**
|
|
367
|
-
* #action
|
|
368
|
-
*/
|
|
369
333
|
setSources(sources: Source[]): void;
|
|
370
|
-
/**
|
|
371
|
-
* #action
|
|
372
|
-
*/
|
|
373
334
|
setFeatureUnderMouse(f?: Feature): void;
|
|
374
335
|
} & {
|
|
375
|
-
/**
|
|
376
|
-
* #getter
|
|
377
|
-
*/
|
|
378
336
|
readonly featureUnderMouse: Feature | undefined;
|
|
379
|
-
/**
|
|
380
|
-
* #getter
|
|
381
|
-
*/
|
|
382
337
|
readonly TooltipComponent: AnyReactComponentType;
|
|
383
|
-
/**
|
|
384
|
-
* #getter
|
|
385
|
-
*/
|
|
386
338
|
readonly rendererTypeName: string;
|
|
387
339
|
} & {
|
|
388
|
-
/**
|
|
389
|
-
* #getter
|
|
390
|
-
*/
|
|
391
340
|
readonly needsScalebar: boolean;
|
|
392
|
-
/**
|
|
393
|
-
* #getter
|
|
394
|
-
*/
|
|
395
341
|
readonly needsFullHeightScalebar: boolean;
|
|
396
|
-
/**
|
|
397
|
-
* #getter
|
|
398
|
-
*/
|
|
399
342
|
readonly isMultiRow: boolean;
|
|
400
|
-
/**
|
|
401
|
-
* #getter
|
|
402
|
-
* can be used to give it a "color scale" like a R heatmap, not
|
|
403
|
-
* implemented like this yet but flag can be used for this
|
|
404
|
-
*/
|
|
405
343
|
readonly needsCustomLegend: boolean;
|
|
406
|
-
/**
|
|
407
|
-
* #getter
|
|
408
|
-
*/
|
|
409
344
|
readonly canHaveFill: boolean;
|
|
410
|
-
/**
|
|
411
|
-
* #getter
|
|
412
|
-
* the multirowxy and multiline don't need to use colors on the legend
|
|
413
|
-
* boxes since their track is drawn with the color. sort of a stylistic
|
|
414
|
-
* choice
|
|
415
|
-
*/
|
|
416
345
|
readonly renderColorBoxes: boolean;
|
|
417
|
-
/**
|
|
418
|
-
* #getter
|
|
419
|
-
* positions multi-row below the tracklabel even if using overlap
|
|
420
|
-
* tracklabels for everything else
|
|
421
|
-
*/
|
|
422
346
|
readonly prefersOffset: boolean;
|
|
423
|
-
/**
|
|
424
|
-
* #getter
|
|
425
|
-
*/
|
|
426
347
|
readonly sources: {
|
|
427
348
|
color: string;
|
|
428
349
|
baseUri?: string;
|
|
429
350
|
name: string;
|
|
430
351
|
group?: string;
|
|
431
352
|
}[] | undefined;
|
|
432
|
-
/**
|
|
433
|
-
* #getter
|
|
434
|
-
*/
|
|
435
353
|
readonly quantitativeStatsReady: boolean;
|
|
436
354
|
} & {
|
|
437
|
-
/**
|
|
438
|
-
* #getter
|
|
439
|
-
*/
|
|
440
355
|
readonly rowHeight: number;
|
|
441
|
-
/**
|
|
442
|
-
* #getter
|
|
443
|
-
*/
|
|
444
356
|
readonly rowHeightTooSmallForScalebar: boolean;
|
|
445
|
-
/**
|
|
446
|
-
* #getter
|
|
447
|
-
*/
|
|
448
357
|
readonly useMinimalTicks: any;
|
|
449
358
|
} & {
|
|
450
|
-
/**
|
|
451
|
-
* #method
|
|
452
|
-
*/
|
|
453
359
|
adapterProps(): any;
|
|
454
|
-
/**
|
|
455
|
-
* #getter
|
|
456
|
-
*/
|
|
457
360
|
readonly ticks: {
|
|
458
361
|
range: number[];
|
|
459
362
|
values: number[];
|
|
460
363
|
format: (d: import("d3-scale").NumberValue) => string;
|
|
461
364
|
position: import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
|
|
462
365
|
} | undefined;
|
|
463
|
-
/**
|
|
464
|
-
* #getter
|
|
465
|
-
*/
|
|
466
366
|
readonly colors: string[];
|
|
467
|
-
/**
|
|
468
|
-
* #getter
|
|
469
|
-
* unused currently
|
|
470
|
-
*/
|
|
471
367
|
readonly quantitativeStatsRelevantToCurrentZoom: boolean;
|
|
472
368
|
} & {
|
|
473
|
-
/**
|
|
474
|
-
* #method
|
|
475
|
-
*/
|
|
476
369
|
renderProps(): any;
|
|
477
|
-
/**
|
|
478
|
-
* #getter
|
|
479
|
-
*/
|
|
480
370
|
readonly hasResolution: boolean;
|
|
481
|
-
/**
|
|
482
|
-
* #getter
|
|
483
|
-
*/
|
|
484
371
|
readonly hasGlobalStats: boolean;
|
|
485
|
-
/**
|
|
486
|
-
* #getter
|
|
487
|
-
*/
|
|
488
372
|
readonly fillSetting: 2 | 1 | 0;
|
|
489
373
|
} & {
|
|
490
|
-
/**
|
|
491
|
-
* #method
|
|
492
|
-
*/
|
|
493
374
|
trackMenuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
494
375
|
label: string;
|
|
495
376
|
subMenu: ({
|
|
@@ -536,9 +417,6 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
536
417
|
})[];
|
|
537
418
|
} & {
|
|
538
419
|
afterAttach(): void;
|
|
539
|
-
/**
|
|
540
|
-
* #action
|
|
541
|
-
*/
|
|
542
420
|
renderSvg(opts: ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
543
421
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
544
422
|
export type WiggleDisplayStateModel = ReturnType<typeof stateModelFactory>;
|
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { lazy } from 'react';
|
|
2
|
+
import { getConf } from '@jbrowse/core/configuration';
|
|
3
|
+
import { set1 as colors } from '@jbrowse/core/ui/colors';
|
|
4
|
+
import { getContainingView, getSession } from '@jbrowse/core/util';
|
|
5
|
+
import { stopStopToken } from '@jbrowse/core/util/stopToken';
|
|
6
|
+
import deepEqual from 'fast-deep-equal';
|
|
2
7
|
import { isAlive, types } from 'mobx-state-tree';
|
|
3
8
|
import { axisPropsFromTickScale } from 'react-d3-axis-mod';
|
|
4
|
-
import deepEqual from 'fast-deep-equal';
|
|
5
|
-
// jbrowse imports
|
|
6
|
-
import { getConf, } from '@jbrowse/core/configuration';
|
|
7
|
-
import { getSession, getContainingView, } from '@jbrowse/core/util';
|
|
8
|
-
import { set1 as colors } from '@jbrowse/core/ui/colors';
|
|
9
|
-
// locals
|
|
10
|
-
import { getScale, YSCALEBAR_LABEL_OFFSET } from '../util';
|
|
11
9
|
import SharedWiggleMixin from '../shared/SharedWiggleMixin';
|
|
10
|
+
import { YSCALEBAR_LABEL_OFFSET, getScale } from '../util';
|
|
12
11
|
const randomColor = () => '#000000'.replaceAll('0', () => (~~(Math.random() * 16)).toString(16));
|
|
13
|
-
// lazies
|
|
14
12
|
const Tooltip = lazy(() => import('./components/Tooltip'));
|
|
15
13
|
const SetColorDialog = lazy(() => import('./components/SetColorDialog'));
|
|
16
|
-
// using a map because it preserves order
|
|
17
14
|
const rendererTypes = new Map([
|
|
18
15
|
['xyplot', 'MultiXYPlotRenderer'],
|
|
19
16
|
['multirowxy', 'MultiRowXYPlotRenderer'],
|
|
@@ -21,71 +18,46 @@ const rendererTypes = new Map([
|
|
|
21
18
|
['multiline', 'MultiLineRenderer'],
|
|
22
19
|
['multirowline', 'MultiRowLineRenderer'],
|
|
23
20
|
]);
|
|
24
|
-
/**
|
|
25
|
-
* #stateModel MultiLinearWiggleDisplay
|
|
26
|
-
* extends
|
|
27
|
-
* - [SharedWiggleMixin](../sharedwigglemixin)
|
|
28
|
-
*/
|
|
29
21
|
export function stateModelFactory(pluginManager, configSchema) {
|
|
30
22
|
return types
|
|
31
23
|
.compose('MultiLinearWiggleDisplay', SharedWiggleMixin(configSchema), types.model({
|
|
32
|
-
/**
|
|
33
|
-
* #property
|
|
34
|
-
*/
|
|
35
24
|
type: types.literal('MultiLinearWiggleDisplay'),
|
|
36
|
-
/**
|
|
37
|
-
* #property
|
|
38
|
-
*/
|
|
39
25
|
layout: types.optional(types.frozen(), []),
|
|
40
26
|
}))
|
|
41
27
|
.volatile(() => ({
|
|
28
|
+
sourcesLoadingStopToken: undefined,
|
|
42
29
|
featureUnderMouseVolatile: undefined,
|
|
43
30
|
sourcesVolatile: undefined,
|
|
44
31
|
}))
|
|
45
32
|
.actions(self => ({
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
33
|
+
setSourcesLoading(str) {
|
|
34
|
+
if (self.sourcesLoadingStopToken) {
|
|
35
|
+
stopStopToken(self.sourcesLoadingStopToken);
|
|
36
|
+
}
|
|
37
|
+
self.sourcesLoadingStopToken = str;
|
|
38
|
+
},
|
|
49
39
|
setLayout(layout) {
|
|
50
40
|
self.layout = layout;
|
|
51
41
|
},
|
|
52
|
-
/**
|
|
53
|
-
* #action
|
|
54
|
-
*/
|
|
55
42
|
clearLayout() {
|
|
56
43
|
self.layout = [];
|
|
57
44
|
},
|
|
58
|
-
/**
|
|
59
|
-
* #action
|
|
60
|
-
*/
|
|
61
45
|
setSources(sources) {
|
|
62
46
|
if (!deepEqual(sources, self.sourcesVolatile)) {
|
|
63
47
|
self.sourcesVolatile = sources;
|
|
64
48
|
}
|
|
65
49
|
},
|
|
66
|
-
/**
|
|
67
|
-
* #action
|
|
68
|
-
*/
|
|
69
50
|
setFeatureUnderMouse(f) {
|
|
70
51
|
self.featureUnderMouseVolatile = f;
|
|
71
52
|
},
|
|
72
53
|
}))
|
|
73
54
|
.views(self => ({
|
|
74
|
-
/**
|
|
75
|
-
* #getter
|
|
76
|
-
*/
|
|
77
55
|
get featureUnderMouse() {
|
|
78
56
|
return self.featureUnderMouseVolatile;
|
|
79
57
|
},
|
|
80
|
-
/**
|
|
81
|
-
* #getter
|
|
82
|
-
*/
|
|
83
58
|
get TooltipComponent() {
|
|
84
59
|
return Tooltip;
|
|
85
60
|
},
|
|
86
|
-
/**
|
|
87
|
-
* #getter
|
|
88
|
-
*/
|
|
89
61
|
get rendererTypeName() {
|
|
90
62
|
const name = self.rendererTypeNameSimple;
|
|
91
63
|
const rendererType = rendererTypes.get(name);
|
|
@@ -96,66 +68,35 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
96
68
|
},
|
|
97
69
|
}))
|
|
98
70
|
.views(self => ({
|
|
99
|
-
/**
|
|
100
|
-
* #getter
|
|
101
|
-
*/
|
|
102
71
|
get needsScalebar() {
|
|
103
72
|
return (self.rendererTypeName === 'MultiXYPlotRenderer' ||
|
|
104
73
|
self.rendererTypeName === 'MultiRowXYPlotRenderer' ||
|
|
105
74
|
self.rendererTypeName === 'MultiLineRenderer' ||
|
|
106
75
|
self.rendererTypeName === 'MultiRowLineRenderer');
|
|
107
76
|
},
|
|
108
|
-
/**
|
|
109
|
-
* #getter
|
|
110
|
-
*/
|
|
111
77
|
get needsFullHeightScalebar() {
|
|
112
78
|
return (self.rendererTypeName === 'MultiXYPlotRenderer' ||
|
|
113
79
|
self.rendererTypeName === 'MultiLineRenderer');
|
|
114
80
|
},
|
|
115
|
-
/**
|
|
116
|
-
* #getter
|
|
117
|
-
*/
|
|
118
81
|
get isMultiRow() {
|
|
119
82
|
return (self.rendererTypeName === 'MultiRowXYPlotRenderer' ||
|
|
120
83
|
self.rendererTypeName === 'MultiRowLineRenderer' ||
|
|
121
84
|
self.rendererTypeName === 'MultiDensityRenderer');
|
|
122
85
|
},
|
|
123
|
-
/**
|
|
124
|
-
* #getter
|
|
125
|
-
* can be used to give it a "color scale" like a R heatmap, not
|
|
126
|
-
* implemented like this yet but flag can be used for this
|
|
127
|
-
*/
|
|
128
86
|
get needsCustomLegend() {
|
|
129
87
|
return self.rendererTypeName === 'MultiDensityRenderer';
|
|
130
88
|
},
|
|
131
|
-
/**
|
|
132
|
-
* #getter
|
|
133
|
-
*/
|
|
134
89
|
get canHaveFill() {
|
|
135
90
|
return (self.rendererTypeName === 'MultiXYPlotRenderer' ||
|
|
136
91
|
self.rendererTypeName === 'MultiRowXYPlotRenderer');
|
|
137
92
|
},
|
|
138
|
-
/**
|
|
139
|
-
* #getter
|
|
140
|
-
* the multirowxy and multiline don't need to use colors on the legend
|
|
141
|
-
* boxes since their track is drawn with the color. sort of a stylistic
|
|
142
|
-
* choice
|
|
143
|
-
*/
|
|
144
93
|
get renderColorBoxes() {
|
|
145
94
|
return !(self.rendererTypeName === 'MultiRowLineRenderer' ||
|
|
146
95
|
self.rendererTypeName === 'MultiRowXYPlotRenderer');
|
|
147
96
|
},
|
|
148
|
-
/**
|
|
149
|
-
* #getter
|
|
150
|
-
* positions multi-row below the tracklabel even if using overlap
|
|
151
|
-
* tracklabels for everything else
|
|
152
|
-
*/
|
|
153
97
|
get prefersOffset() {
|
|
154
98
|
return this.isMultiRow;
|
|
155
99
|
},
|
|
156
|
-
/**
|
|
157
|
-
* #getter
|
|
158
|
-
*/
|
|
159
100
|
get sources() {
|
|
160
101
|
var _a;
|
|
161
102
|
const sources = Object.fromEntries(((_a = self.sourcesVolatile) === null || _a === void 0 ? void 0 : _a.map(s => [s.name, s])) || []);
|
|
@@ -169,34 +110,19 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
169
110
|
(!this.isMultiRow ? colors[i] || randomColor() : 'blue'),
|
|
170
111
|
}));
|
|
171
112
|
},
|
|
172
|
-
/**
|
|
173
|
-
* #getter
|
|
174
|
-
*/
|
|
175
113
|
get quantitativeStatsReady() {
|
|
176
114
|
const view = getContainingView(self);
|
|
177
|
-
return (view.initialized &&
|
|
178
|
-
self.featureDensityStatsReady &&
|
|
179
|
-
!self.regionTooLarge &&
|
|
180
|
-
!self.error);
|
|
115
|
+
return (view.initialized && self.statsReadyAndRegionNotTooLarge && !self.error);
|
|
181
116
|
},
|
|
182
117
|
}))
|
|
183
118
|
.views(self => ({
|
|
184
|
-
/**
|
|
185
|
-
* #getter
|
|
186
|
-
*/
|
|
187
119
|
get rowHeight() {
|
|
188
120
|
const { sources, height, isMultiRow } = self;
|
|
189
121
|
return isMultiRow ? height / ((sources === null || sources === void 0 ? void 0 : sources.length) || 1) : height;
|
|
190
122
|
},
|
|
191
|
-
/**
|
|
192
|
-
* #getter
|
|
193
|
-
*/
|
|
194
123
|
get rowHeightTooSmallForScalebar() {
|
|
195
124
|
return this.rowHeight < 70;
|
|
196
125
|
},
|
|
197
|
-
/**
|
|
198
|
-
* #getter
|
|
199
|
-
*/
|
|
200
126
|
get useMinimalTicks() {
|
|
201
127
|
return (getConf(self, 'minimalTicks') || this.rowHeightTooSmallForScalebar);
|
|
202
128
|
},
|
|
@@ -204,9 +130,6 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
204
130
|
.views(self => {
|
|
205
131
|
const { renderProps: superRenderProps } = self;
|
|
206
132
|
return {
|
|
207
|
-
/**
|
|
208
|
-
* #method
|
|
209
|
-
*/
|
|
210
133
|
adapterProps() {
|
|
211
134
|
const superProps = superRenderProps();
|
|
212
135
|
return {
|
|
@@ -219,9 +142,6 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
219
142
|
sources: self.sources,
|
|
220
143
|
};
|
|
221
144
|
},
|
|
222
|
-
/**
|
|
223
|
-
* #getter
|
|
224
|
-
*/
|
|
225
145
|
get ticks() {
|
|
226
146
|
const { scaleType, domain, isMultiRow, rowHeight, useMinimalTicks } = self;
|
|
227
147
|
if (!domain) {
|
|
@@ -236,9 +156,6 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
236
156
|
}), 4);
|
|
237
157
|
return useMinimalTicks ? { ...ticks, values: domain } : ticks;
|
|
238
158
|
},
|
|
239
|
-
/**
|
|
240
|
-
* #getter
|
|
241
|
-
*/
|
|
242
159
|
get colors() {
|
|
243
160
|
return [
|
|
244
161
|
'red',
|
|
@@ -253,10 +170,6 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
253
170
|
'pink',
|
|
254
171
|
];
|
|
255
172
|
},
|
|
256
|
-
/**
|
|
257
|
-
* #getter
|
|
258
|
-
* unused currently
|
|
259
|
-
*/
|
|
260
173
|
get quantitativeStatsRelevantToCurrentZoom() {
|
|
261
174
|
var _a;
|
|
262
175
|
const view = getContainingView(self);
|
|
@@ -265,9 +178,6 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
265
178
|
};
|
|
266
179
|
})
|
|
267
180
|
.views(self => ({
|
|
268
|
-
/**
|
|
269
|
-
* #method
|
|
270
|
-
*/
|
|
271
181
|
renderProps() {
|
|
272
182
|
const superProps = self.adapterProps();
|
|
273
183
|
return {
|
|
@@ -288,21 +198,12 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
288
198
|
},
|
|
289
199
|
};
|
|
290
200
|
},
|
|
291
|
-
/**
|
|
292
|
-
* #getter
|
|
293
|
-
*/
|
|
294
201
|
get hasResolution() {
|
|
295
202
|
return self.adapterCapabilities.includes('hasResolution');
|
|
296
203
|
},
|
|
297
|
-
/**
|
|
298
|
-
* #getter
|
|
299
|
-
*/
|
|
300
204
|
get hasGlobalStats() {
|
|
301
205
|
return self.adapterCapabilities.includes('hasGlobalStats');
|
|
302
206
|
},
|
|
303
|
-
/**
|
|
304
|
-
* #getter
|
|
305
|
-
*/
|
|
306
207
|
get fillSetting() {
|
|
307
208
|
if (self.filled) {
|
|
308
209
|
return 0;
|
|
@@ -319,9 +220,6 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
319
220
|
const { trackMenuItems: superTrackMenuItems } = self;
|
|
320
221
|
const hasRenderings = getConf(self, 'defaultRendering');
|
|
321
222
|
return {
|
|
322
|
-
/**
|
|
323
|
-
* #method
|
|
324
|
-
*/
|
|
325
223
|
trackMenuItems() {
|
|
326
224
|
return [
|
|
327
225
|
...superTrackMenuItems(),
|
|
@@ -394,7 +292,6 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
394
292
|
const { renderSvg: superRenderSvg } = self;
|
|
395
293
|
return {
|
|
396
294
|
afterAttach() {
|
|
397
|
-
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
398
295
|
;
|
|
399
296
|
(async () => {
|
|
400
297
|
try {
|
|
@@ -413,9 +310,6 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
413
310
|
}
|
|
414
311
|
})();
|
|
415
312
|
},
|
|
416
|
-
/**
|
|
417
|
-
* #action
|
|
418
|
-
*/
|
|
419
313
|
async renderSvg(opts) {
|
|
420
314
|
const { renderSvg } = await import('./renderSvg');
|
|
421
315
|
return renderSvg(self, opts, superRenderSvg);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import type { WiggleDisplayModel } from './model';
|
|
3
|
+
import type { ExportSvgDisplayOptions } from '@jbrowse/plugin-linear-genome-view';
|
|
4
4
|
export declare function renderSvg(self: WiggleDisplayModel, opts: ExportSvgDisplayOptions, superRenderSvg: (opts: ExportSvgDisplayOptions) => Promise<React.ReactNode>): Promise<React.JSX.Element>;
|
|
@@ -6,7 +6,7 @@ export async function renderSvg(self, opts, superRenderSvg) {
|
|
|
6
6
|
await when(() => !!self.stats && !!self.regionCannotBeRenderedText);
|
|
7
7
|
const { offsetPx } = getContainingView(self);
|
|
8
8
|
return (React.createElement(React.Fragment, null,
|
|
9
|
-
React.createElement("g",
|
|
9
|
+
React.createElement("g", null, await superRenderSvg(opts)),
|
|
10
10
|
React.createElement("g", { transform: `translate(${Math.max(-offsetPx, 0)})` },
|
|
11
11
|
React.createElement(YScaleBars, { model: self, orientation: "left", exportSVG: true }))));
|
|
12
12
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
2
|
import { createBaseTrackConfig } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
-
|
|
4
|
-
* #config MultiQuantitativeTrack
|
|
5
|
-
*/
|
|
6
|
-
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
3
|
+
function x() { }
|
|
7
4
|
const configSchema = (pluginManager) => {
|
|
8
5
|
return ConfigurationSchema('MultiQuantitativeTrack', {}, {
|
|
9
|
-
/**
|
|
10
|
-
* #baseConfiguration
|
|
11
|
-
*/
|
|
12
6
|
baseConfiguration: createBaseTrackConfig(pluginManager),
|
|
13
7
|
});
|
|
14
8
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
1
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
2
|
export default function MultiQuantitativeTrackF(pluginManager: PluginManager): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
2
1
|
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
2
|
+
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
3
|
import configSchemaF from './configSchema';
|
|
4
4
|
export default function MultiQuantitativeTrackF(pluginManager) {
|
|
5
5
|
pluginManager.addTrackType(() => {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
2
|
+
import type { MultiRenderArgsDeserialized as MultiArgs } from '../WiggleBaseRenderer';
|
|
3
|
+
import type { Feature } from '@jbrowse/core/util';
|
|
3
4
|
export default class MultiRowLineRenderer extends WiggleBaseRenderer {
|
|
4
5
|
draw(ctx: CanvasRenderingContext2D, props: MultiArgs): Promise<{
|
|
5
6
|
reducedFeatures: Feature[];
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { groupBy } from '@jbrowse/core/util';
|
|
2
|
-
import { drawLine } from '../drawLine';
|
|
3
2
|
import WiggleBaseRenderer from '../WiggleBaseRenderer';
|
|
3
|
+
import { drawLine } from '../drawLine';
|
|
4
4
|
export default class MultiRowLineRenderer extends WiggleBaseRenderer {
|
|
5
|
-
// @ts-expect-error
|
|
6
5
|
async draw(ctx, props) {
|
|
7
6
|
const { bpPerPx, sources, regions, features } = props;
|
|
8
7
|
const region = regions[0];
|
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
-
/**
|
|
3
|
-
* #slot
|
|
4
|
-
*/
|
|
5
2
|
displayCrossHatches: {
|
|
6
3
|
type: string;
|
|
7
4
|
description: string;
|
|
8
5
|
defaultValue: boolean;
|
|
9
6
|
};
|
|
10
|
-
/**
|
|
11
|
-
* #slot
|
|
12
|
-
*/
|
|
13
7
|
summaryScoreMode: {
|
|
14
8
|
type: string;
|
|
15
9
|
model: import("mobx-state-tree").ISimpleType<string>;
|