@jbrowse/plugin-alignments 2.9.0 → 2.10.1
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/LinearAlignmentsDisplay/models/alignmentsModel.d.ts +15 -0
- package/dist/LinearAlignmentsDisplay/models/alignmentsModel.js +50 -0
- package/dist/LinearAlignmentsDisplay/models/model.d.ts +9 -4
- package/dist/LinearAlignmentsDisplay/models/model.js +11 -51
- package/dist/LinearAlignmentsDisplay/models/util.d.ts +2 -0
- package/dist/LinearAlignmentsDisplay/models/util.js +12 -0
- package/dist/LinearPileupDisplay/model.d.ts +25 -33
- package/dist/LinearPileupDisplay/model.js +3 -2
- package/dist/LinearReadArcsDisplay/model.d.ts +22 -13
- package/dist/LinearReadArcsDisplay/model.js +6 -2
- package/dist/LinearReadCloudDisplay/model.d.ts +15 -15
- package/dist/LinearReadCloudDisplay/model.js +5 -1
- package/dist/LinearSNPCoverageDisplay/models/configSchema.d.ts +3 -4
- package/dist/LinearSNPCoverageDisplay/models/configSchema.js +3 -0
- package/dist/LinearSNPCoverageDisplay/models/model.d.ts +8 -11
- package/dist/LinearSNPCoverageDisplay/models/model.js +2 -1
- package/dist/PileupRenderer/PileupRenderer.js +26 -3
- package/esm/LinearAlignmentsDisplay/models/alignmentsModel.d.ts +15 -0
- package/esm/LinearAlignmentsDisplay/models/alignmentsModel.js +46 -0
- package/esm/LinearAlignmentsDisplay/models/model.d.ts +9 -4
- package/esm/LinearAlignmentsDisplay/models/model.js +11 -51
- package/esm/LinearAlignmentsDisplay/models/util.d.ts +2 -0
- package/esm/LinearAlignmentsDisplay/models/util.js +8 -0
- package/esm/LinearPileupDisplay/model.d.ts +25 -33
- package/esm/LinearPileupDisplay/model.js +3 -2
- package/esm/LinearReadArcsDisplay/model.d.ts +22 -13
- package/esm/LinearReadArcsDisplay/model.js +6 -2
- package/esm/LinearReadCloudDisplay/model.d.ts +15 -15
- package/esm/LinearReadCloudDisplay/model.js +5 -1
- package/esm/LinearSNPCoverageDisplay/models/configSchema.d.ts +3 -4
- package/esm/LinearSNPCoverageDisplay/models/configSchema.js +3 -0
- package/esm/LinearSNPCoverageDisplay/models/model.d.ts +8 -11
- package/esm/LinearSNPCoverageDisplay/models/model.js +2 -1
- package/esm/PileupRenderer/PileupRenderer.js +2 -2
- package/package.json +3 -3
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
2
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
+
/**
|
|
4
|
+
* #stateModel LinearAlignmentsDisplayMixin
|
|
5
|
+
*/
|
|
6
|
+
export declare function LinearAlignmentsDisplayMixin(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
7
|
+
PileupDisplay: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IAnyType>;
|
|
8
|
+
SNPCoverageDisplay: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IAnyModelType>;
|
|
9
|
+
snpCovHeight: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
10
|
+
type: import("mobx-state-tree").ISimpleType<"LinearAlignmentsDisplay">;
|
|
11
|
+
configuration: AnyConfigurationSchemaType;
|
|
12
|
+
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
13
|
+
userFeatureScreenDensity: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
14
|
+
lowerPanelType: import("mobx-state-tree").IType<string | undefined, string, string>;
|
|
15
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LinearAlignmentsDisplayMixin = void 0;
|
|
4
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
5
|
+
// jbrowse
|
|
6
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
7
|
+
const util_1 = require("./util");
|
|
8
|
+
/**
|
|
9
|
+
* #stateModel LinearAlignmentsDisplayMixin
|
|
10
|
+
*/
|
|
11
|
+
function LinearAlignmentsDisplayMixin(pluginManager, configSchema) {
|
|
12
|
+
const lowerPanelDisplays = (0, util_1.getLowerPanelDisplays)(pluginManager).map(f => f.stateModel);
|
|
13
|
+
return mobx_state_tree_1.types.model({
|
|
14
|
+
/**
|
|
15
|
+
* #property
|
|
16
|
+
* refers to LinearPileupDisplay sub-display model
|
|
17
|
+
*/
|
|
18
|
+
PileupDisplay: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.union(...lowerPanelDisplays)),
|
|
19
|
+
/**
|
|
20
|
+
* #property
|
|
21
|
+
* refers to LinearSNPCoverageDisplay sub-display model
|
|
22
|
+
*/
|
|
23
|
+
SNPCoverageDisplay: mobx_state_tree_1.types.maybe(pluginManager.getDisplayType('LinearSNPCoverageDisplay').stateModel),
|
|
24
|
+
/**
|
|
25
|
+
* #property
|
|
26
|
+
*/
|
|
27
|
+
snpCovHeight: 45,
|
|
28
|
+
/**
|
|
29
|
+
* #property
|
|
30
|
+
*/
|
|
31
|
+
type: mobx_state_tree_1.types.literal('LinearAlignmentsDisplay'),
|
|
32
|
+
/**
|
|
33
|
+
* #property
|
|
34
|
+
*/
|
|
35
|
+
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
36
|
+
/**
|
|
37
|
+
* #property
|
|
38
|
+
*/
|
|
39
|
+
heightPreConfig: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
|
|
40
|
+
/**
|
|
41
|
+
* #property
|
|
42
|
+
*/
|
|
43
|
+
userFeatureScreenDensity: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
|
|
44
|
+
/**
|
|
45
|
+
* #property
|
|
46
|
+
*/
|
|
47
|
+
lowerPanelType: 'LinearPileupDisplay',
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
exports.LinearAlignmentsDisplayMixin = LinearAlignmentsDisplayMixin;
|
|
@@ -6,7 +6,9 @@ import { MenuItem } from '@jbrowse/core/ui';
|
|
|
6
6
|
import { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
7
7
|
/**
|
|
8
8
|
* #stateModel LinearAlignmentsDisplay
|
|
9
|
-
* extends
|
|
9
|
+
* extends
|
|
10
|
+
* - [BaseDisplay](../basedisplay)
|
|
11
|
+
* - [LinearAlignmentsDisplayMixin](../linearalignmentsdisplaymixin)
|
|
10
12
|
*/
|
|
11
13
|
declare function stateModelFactory(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
12
14
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -70,10 +72,10 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
70
72
|
readonly parentTrack: any;
|
|
71
73
|
renderProps(): any;
|
|
72
74
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
73
|
-
readonly DisplayMessageComponent: React.FC<any> | undefined;
|
|
74
|
-
|
|
75
|
+
readonly DisplayMessageComponent: React.FC<any> | undefined;
|
|
76
|
+
trackMenuItems(): MenuItem[]; /**
|
|
77
|
+
* #getter
|
|
75
78
|
*/
|
|
76
|
-
trackMenuItems(): MenuItem[];
|
|
77
79
|
readonly viewMenuActions: MenuItem[];
|
|
78
80
|
regionCannotBeRendered(): null;
|
|
79
81
|
} & {
|
|
@@ -97,6 +99,9 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
97
99
|
* #getter
|
|
98
100
|
*/
|
|
99
101
|
readonly height: any;
|
|
102
|
+
/**
|
|
103
|
+
* #getter
|
|
104
|
+
*/
|
|
100
105
|
readonly featureIdUnderMouse: any;
|
|
101
106
|
} & {
|
|
102
107
|
/**
|
|
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
/* eslint-disable react-refresh/only-export-components */
|
|
7
6
|
const react_1 = __importDefault(require("react"));
|
|
8
7
|
const mobx_1 = require("mobx");
|
|
9
8
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
@@ -11,15 +10,10 @@ const fast_deep_equal_1 = __importDefault(require("fast-deep-equal"));
|
|
|
11
10
|
// jbrowse
|
|
12
11
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
13
12
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
13
|
+
// locals
|
|
14
|
+
const alignmentsModel_1 = require("./alignmentsModel");
|
|
15
|
+
const util_1 = require("./util");
|
|
14
16
|
const minDisplayHeight = 20;
|
|
15
|
-
function getLowerPanelDisplays(pluginManager) {
|
|
16
|
-
return (pluginManager
|
|
17
|
-
.getDisplayElements()
|
|
18
|
-
// @ts-expect-error
|
|
19
|
-
.filter(f => { var _a; return ((_a = f.subDisplay) === null || _a === void 0 ? void 0 : _a.type) === 'LinearAlignmentsDisplay'; })
|
|
20
|
-
// @ts-expect-error
|
|
21
|
-
.filter(f => { var _a; return (_a = f.subDisplay) === null || _a === void 0 ? void 0 : _a.lowerPanel; }));
|
|
22
|
-
}
|
|
23
17
|
function deepSnap(x1, x2) {
|
|
24
18
|
return (0, fast_deep_equal_1.default)(x1 ? (0, mobx_state_tree_1.getSnapshot)(x1) : undefined, x2 ? (0, mobx_state_tree_1.getSnapshot)(x2) : undefined);
|
|
25
19
|
}
|
|
@@ -48,52 +42,15 @@ function propagateFilterBy(self) {
|
|
|
48
42
|
SNPCoverageDisplay.setFilterBy((0, mobx_state_tree_1.getSnapshot)(PileupDisplay.filterBy));
|
|
49
43
|
}
|
|
50
44
|
}
|
|
51
|
-
function AlignmentsModel(pluginManager, configSchema) {
|
|
52
|
-
const lowerPanelDisplays = getLowerPanelDisplays(pluginManager).map(f => f.stateModel);
|
|
53
|
-
return mobx_state_tree_1.types.model({
|
|
54
|
-
/**
|
|
55
|
-
* #property
|
|
56
|
-
* refers to LinearPileupDisplay sub-display model
|
|
57
|
-
*/
|
|
58
|
-
PileupDisplay: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.union(...lowerPanelDisplays)),
|
|
59
|
-
/**
|
|
60
|
-
* #property
|
|
61
|
-
* refers to LinearSNPCoverageDisplay sub-display model
|
|
62
|
-
*/
|
|
63
|
-
SNPCoverageDisplay: mobx_state_tree_1.types.maybe(pluginManager.getDisplayType('LinearSNPCoverageDisplay').stateModel),
|
|
64
|
-
/**
|
|
65
|
-
* #property
|
|
66
|
-
*/
|
|
67
|
-
snpCovHeight: 45,
|
|
68
|
-
/**
|
|
69
|
-
* #property
|
|
70
|
-
*/
|
|
71
|
-
type: mobx_state_tree_1.types.literal('LinearAlignmentsDisplay'),
|
|
72
|
-
/**
|
|
73
|
-
* #property
|
|
74
|
-
*/
|
|
75
|
-
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
76
|
-
/**
|
|
77
|
-
* #property
|
|
78
|
-
*/
|
|
79
|
-
heightPreConfig: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
|
|
80
|
-
/**
|
|
81
|
-
* #property
|
|
82
|
-
*/
|
|
83
|
-
userFeatureScreenDensity: mobx_state_tree_1.types.maybe(mobx_state_tree_1.types.number),
|
|
84
|
-
/**
|
|
85
|
-
* #property
|
|
86
|
-
*/
|
|
87
|
-
lowerPanelType: 'LinearPileupDisplay',
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
45
|
/**
|
|
91
46
|
* #stateModel LinearAlignmentsDisplay
|
|
92
|
-
* extends
|
|
47
|
+
* extends
|
|
48
|
+
* - [BaseDisplay](../basedisplay)
|
|
49
|
+
* - [LinearAlignmentsDisplayMixin](../linearalignmentsdisplaymixin)
|
|
93
50
|
*/
|
|
94
51
|
function stateModelFactory(pluginManager, configSchema) {
|
|
95
52
|
return mobx_state_tree_1.types
|
|
96
|
-
.compose('LinearAlignmentsDisplay', models_1.BaseDisplay,
|
|
53
|
+
.compose('LinearAlignmentsDisplay', models_1.BaseDisplay, (0, alignmentsModel_1.LinearAlignmentsDisplayMixin)(pluginManager, configSchema))
|
|
97
54
|
.volatile(() => ({
|
|
98
55
|
scrollTop: 0,
|
|
99
56
|
}))
|
|
@@ -119,6 +76,9 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
119
76
|
var _a;
|
|
120
77
|
return (_a = self.heightPreConfig) !== null && _a !== void 0 ? _a : (0, configuration_1.getConf)(self, 'height');
|
|
121
78
|
},
|
|
79
|
+
/**
|
|
80
|
+
* #getter
|
|
81
|
+
*/
|
|
122
82
|
get featureIdUnderMouse() {
|
|
123
83
|
return (self.PileupDisplay.featureIdUnderMouse ||
|
|
124
84
|
self.SNPCoverageDisplay.featureIdUnderMouse);
|
|
@@ -280,7 +240,7 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
280
240
|
if (!self.PileupDisplay) {
|
|
281
241
|
return [];
|
|
282
242
|
}
|
|
283
|
-
const extra = getLowerPanelDisplays(pluginManager).map(d => ({
|
|
243
|
+
const extra = (0, util_1.getLowerPanelDisplays)(pluginManager).map(d => ({
|
|
284
244
|
type: 'radio',
|
|
285
245
|
label: d.displayName,
|
|
286
246
|
checked: d.name === self.PileupDisplay.type,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLowerPanelDisplays = void 0;
|
|
4
|
+
function getLowerPanelDisplays(pluginManager) {
|
|
5
|
+
return (pluginManager
|
|
6
|
+
.getDisplayElements()
|
|
7
|
+
// @ts-expect-error
|
|
8
|
+
.filter(f => { var _a; return ((_a = f.subDisplay) === null || _a === void 0 ? void 0 : _a.type) === 'LinearAlignmentsDisplay'; })
|
|
9
|
+
// @ts-expect-error
|
|
10
|
+
.filter(f => { var _a; return (_a = f.subDisplay) === null || _a === void 0 ? void 0 : _a.lowerPanel; }));
|
|
11
|
+
}
|
|
12
|
+
exports.getLowerPanelDisplays = getLowerPanelDisplays;
|
|
@@ -4,7 +4,8 @@ import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
|
4
4
|
/**
|
|
5
5
|
* #stateModel LinearPileupDisplay
|
|
6
6
|
* #category display
|
|
7
|
-
* extends
|
|
7
|
+
* extends
|
|
8
|
+
*- [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
8
9
|
*/
|
|
9
10
|
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
10
11
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -41,15 +42,13 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
41
42
|
error: unknown;
|
|
42
43
|
message: string | undefined;
|
|
43
44
|
maxHeightReached: boolean;
|
|
44
|
-
/**
|
|
45
|
-
* #property
|
|
46
|
-
*/
|
|
47
45
|
ReactComponent: ({ model, }: {
|
|
48
46
|
model: any;
|
|
49
47
|
}) => any;
|
|
50
|
-
|
|
48
|
+
/**
|
|
51
49
|
* #property
|
|
52
50
|
*/
|
|
51
|
+
renderProps: any;
|
|
53
52
|
} & {
|
|
54
53
|
doReload(): void;
|
|
55
54
|
afterAttach(): void;
|
|
@@ -81,7 +80,8 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
81
80
|
/**
|
|
82
81
|
* #stateModel LinearPileupDisplay
|
|
83
82
|
* #category display
|
|
84
|
-
* extends
|
|
83
|
+
* extends
|
|
84
|
+
*- [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
85
85
|
*/
|
|
86
86
|
height: {
|
|
87
87
|
type: string;
|
|
@@ -161,19 +161,16 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
161
161
|
rpcDriverName: string | undefined;
|
|
162
162
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
163
163
|
rendererTypeName: string;
|
|
164
|
-
/**
|
|
165
|
-
* #action
|
|
166
|
-
*/
|
|
167
164
|
error: unknown;
|
|
168
165
|
message: string | undefined;
|
|
169
166
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
170
167
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
171
168
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
172
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
169
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
170
|
+
}, {
|
|
171
|
+
rendererTypeName: string; /**
|
|
173
172
|
* #action
|
|
174
173
|
*/
|
|
175
|
-
}, {
|
|
176
|
-
rendererTypeName: string;
|
|
177
174
|
error: unknown;
|
|
178
175
|
message: string | undefined;
|
|
179
176
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -198,15 +195,15 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
198
195
|
} & {
|
|
199
196
|
setScrollTop(scrollTop: number): void;
|
|
200
197
|
setHeight(displayHeight: number): number;
|
|
201
|
-
resizeHeight(distance: number): number;
|
|
202
|
-
* #property
|
|
203
|
-
*/
|
|
198
|
+
resizeHeight(distance: number): number;
|
|
204
199
|
} & {
|
|
205
200
|
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
206
201
|
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
207
202
|
currStatsBpPerPx: number;
|
|
208
203
|
} & {
|
|
209
|
-
readonly currentBytesRequested: number;
|
|
204
|
+
readonly currentBytesRequested: number; /**
|
|
205
|
+
* #property
|
|
206
|
+
*/
|
|
210
207
|
readonly currentFeatureScreenDensity: number;
|
|
211
208
|
readonly maxFeatureScreenDensity: any;
|
|
212
209
|
readonly featureDensityStatsReady: boolean;
|
|
@@ -215,9 +212,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
215
212
|
afterAttach(): void;
|
|
216
213
|
} & {
|
|
217
214
|
setCurrStatsBpPerPx(n: number): void;
|
|
218
|
-
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
219
|
-
* #action
|
|
220
|
-
*/
|
|
215
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
221
216
|
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
222
217
|
setFeatureDensityStatsP(arg: any): void;
|
|
223
218
|
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
@@ -229,13 +224,18 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
229
224
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
230
225
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
231
226
|
} & {
|
|
232
|
-
featureIdUnderMouse: string | undefined;
|
|
227
|
+
featureIdUnderMouse: string | undefined; /**
|
|
228
|
+
* #action
|
|
229
|
+
*/
|
|
233
230
|
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
234
231
|
} & {
|
|
235
232
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
236
233
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
237
234
|
} & {
|
|
238
235
|
readonly renderDelay: number;
|
|
236
|
+
/**
|
|
237
|
+
* #action
|
|
238
|
+
*/
|
|
239
239
|
readonly TooltipComponent: import("react").FC<any>;
|
|
240
240
|
readonly selectedFeatureId: string | undefined;
|
|
241
241
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
@@ -280,15 +280,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
280
280
|
updateColorTagMap(uniqueTag: string[]): void;
|
|
281
281
|
setFeatureUnderMouse(feat?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
282
282
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
283
|
-
copyFeatureToClipboard(feature: import("@jbrowse/core/util").Feature): void;
|
|
284
|
-
* #method
|
|
285
|
-
*/
|
|
283
|
+
copyFeatureToClipboard(feature: import("@jbrowse/core/util").Feature): void;
|
|
286
284
|
setConfig(conf: {
|
|
287
285
|
[x: string]: any;
|
|
288
286
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
289
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
290
|
-
* #property
|
|
291
|
-
*/
|
|
287
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
292
288
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>): void;
|
|
293
289
|
setFilterBy(filter: import("../shared").IFilter): void;
|
|
294
290
|
setJexlFilters(filters: string[]): void;
|
|
@@ -296,9 +292,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
296
292
|
readonly rendererConfig: {
|
|
297
293
|
[x: string]: any;
|
|
298
294
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
299
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
300
|
-
* #property
|
|
301
|
-
*/
|
|
295
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
302
296
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
303
297
|
} & {
|
|
304
298
|
readonly maxHeight: any;
|
|
@@ -395,9 +389,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
395
389
|
readonly rendererConfig: {
|
|
396
390
|
[x: string]: any;
|
|
397
391
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
398
|
-
setSubschema(slotName: string, data: unknown): any;
|
|
399
|
-
* #property
|
|
400
|
-
*/
|
|
392
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
401
393
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
402
394
|
} & {
|
|
403
395
|
/**
|
|
@@ -405,7 +397,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
405
397
|
*/
|
|
406
398
|
readonly mismatchAlphaSetting: any;
|
|
407
399
|
/**
|
|
408
|
-
* #
|
|
400
|
+
* #method
|
|
409
401
|
*/
|
|
410
402
|
renderReady(): boolean;
|
|
411
403
|
} & {
|
|
@@ -45,7 +45,8 @@ const ModificationsDlg = (0, react_1.lazy)(() => Promise.resolve().then(() => __
|
|
|
45
45
|
/**
|
|
46
46
|
* #stateModel LinearPileupDisplay
|
|
47
47
|
* #category display
|
|
48
|
-
* extends
|
|
48
|
+
* extends
|
|
49
|
+
*- [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
49
50
|
*/
|
|
50
51
|
function stateModelFactory(configSchema) {
|
|
51
52
|
return mobx_state_tree_1.types
|
|
@@ -194,7 +195,7 @@ function stateModelFactory(configSchema) {
|
|
|
194
195
|
return (0, configuration_1.readConfObject)(self.rendererConfig, 'mismatchAlpha');
|
|
195
196
|
},
|
|
196
197
|
/**
|
|
197
|
-
* #
|
|
198
|
+
* #method
|
|
198
199
|
*/
|
|
199
200
|
renderReady() {
|
|
200
201
|
const view = (0, util_1.getContainingView)(self);
|
|
@@ -5,8 +5,12 @@ import { IFilter } from '../shared';
|
|
|
5
5
|
import { ChainData } from '../shared/fetchChains';
|
|
6
6
|
/**
|
|
7
7
|
* #stateModel LinearReadArcsDisplay
|
|
8
|
-
*
|
|
9
|
-
*
|
|
8
|
+
* the arc display is a non-block-based track, so draws to a single canvas and
|
|
9
|
+
* can connect multiple regions
|
|
10
|
+
* extends
|
|
11
|
+
* - [BaseDisplay](../basedisplay)
|
|
12
|
+
* - [TrackHeightMixin](../trackheightmixin)
|
|
13
|
+
* - [FeatureDensityMixin](../featuredensitymixin)
|
|
10
14
|
*/
|
|
11
15
|
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
12
16
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -23,12 +27,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
23
27
|
filterBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
24
28
|
flagInclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
25
29
|
flagExclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
26
|
-
readName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
27
|
-
* #property
|
|
28
|
-
*/
|
|
30
|
+
readName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
29
31
|
tagFilter: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
30
32
|
tag: import("mobx-state-tree").ISimpleType<string>;
|
|
31
|
-
value: import("mobx-state-tree").ISimpleType<string>;
|
|
33
|
+
value: import("mobx-state-tree").ISimpleType<string>; /**
|
|
34
|
+
* #property
|
|
35
|
+
*/
|
|
32
36
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
33
37
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
34
38
|
lineWidth: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
@@ -76,9 +80,6 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
76
80
|
error: unknown;
|
|
77
81
|
message: string | undefined;
|
|
78
82
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
79
|
-
/**
|
|
80
|
-
* #action
|
|
81
|
-
*/
|
|
82
83
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
83
84
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
84
85
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -89,16 +90,22 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
89
90
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
90
91
|
}> | null;
|
|
91
92
|
readonly adapterConfig: any;
|
|
92
|
-
readonly parentTrack: any;
|
|
93
|
+
readonly parentTrack: any; /**
|
|
94
|
+
* #action
|
|
95
|
+
*/
|
|
93
96
|
renderProps(): any;
|
|
94
97
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
95
98
|
readonly DisplayMessageComponent: React.FC<any> | undefined;
|
|
96
99
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
97
100
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
98
|
-
regionCannotBeRendered(): null;
|
|
101
|
+
regionCannotBeRendered(): null; /**
|
|
102
|
+
* #getter
|
|
103
|
+
*/
|
|
99
104
|
} & {
|
|
100
105
|
setMessage(arg?: string | undefined): void;
|
|
101
|
-
setError(error?: unknown): void;
|
|
106
|
+
setError(error?: unknown): void; /**
|
|
107
|
+
* #getter
|
|
108
|
+
*/
|
|
102
109
|
setRpcDriverName(rpcDriverName: string): void;
|
|
103
110
|
reload(): void;
|
|
104
111
|
} & {
|
|
@@ -115,7 +122,9 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
115
122
|
currStatsBpPerPx: number;
|
|
116
123
|
} & {
|
|
117
124
|
readonly currentBytesRequested: number;
|
|
118
|
-
readonly currentFeatureScreenDensity: number;
|
|
125
|
+
readonly currentFeatureScreenDensity: number; /**
|
|
126
|
+
* #property
|
|
127
|
+
*/
|
|
119
128
|
readonly maxFeatureScreenDensity: any;
|
|
120
129
|
readonly featureDensityStatsReady: boolean;
|
|
121
130
|
readonly maxAllowableBytes: number;
|
|
@@ -41,8 +41,12 @@ const shared_1 = require("../shared");
|
|
|
41
41
|
const FilterByTagDlg = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../shared/FilterByTag'))));
|
|
42
42
|
/**
|
|
43
43
|
* #stateModel LinearReadArcsDisplay
|
|
44
|
-
*
|
|
45
|
-
*
|
|
44
|
+
* the arc display is a non-block-based track, so draws to a single canvas and
|
|
45
|
+
* can connect multiple regions
|
|
46
|
+
* extends
|
|
47
|
+
* - [BaseDisplay](../basedisplay)
|
|
48
|
+
* - [TrackHeightMixin](../trackheightmixin)
|
|
49
|
+
* - [FeatureDensityMixin](../featuredensitymixin)
|
|
46
50
|
*/
|
|
47
51
|
function stateModelFactory(configSchema) {
|
|
48
52
|
return mobx_state_tree_1.types
|
|
@@ -5,7 +5,11 @@ import { IFilter } from '../shared';
|
|
|
5
5
|
import { ChainData } from '../shared/fetchChains';
|
|
6
6
|
/**
|
|
7
7
|
* #stateModel LinearReadCloudDisplay
|
|
8
|
-
*
|
|
8
|
+
* it is not a block based track, hence not BaseLinearDisplay
|
|
9
|
+
* extends
|
|
10
|
+
* - [BaseDisplay](../basedisplay)
|
|
11
|
+
* - [TrackHeightMixin](../trackheightmixin)
|
|
12
|
+
* - [FeatureDensityMixin](../featuredensitymixin)
|
|
9
13
|
*/
|
|
10
14
|
declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
11
15
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -51,11 +55,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
51
55
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
52
56
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
53
57
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
54
|
-
|
|
55
|
-
}, {
|
|
56
|
-
rendererTypeName: string; /**
|
|
58
|
+
/**
|
|
57
59
|
* #property
|
|
58
60
|
*/
|
|
61
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
62
|
+
}, {
|
|
63
|
+
rendererTypeName: string;
|
|
59
64
|
error: unknown;
|
|
60
65
|
message: string | undefined;
|
|
61
66
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -72,11 +77,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
72
77
|
error: unknown;
|
|
73
78
|
message: string | undefined;
|
|
74
79
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
75
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
76
|
-
* #action
|
|
77
|
-
* internal, a reference to a HTMLCanvas because we use a autorun to draw
|
|
78
|
-
* the canvas
|
|
79
|
-
*/
|
|
80
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
80
81
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
81
82
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
82
83
|
}, {
|
|
@@ -105,9 +106,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
105
106
|
} & {
|
|
106
107
|
setScrollTop(scrollTop: number): void;
|
|
107
108
|
setHeight(displayHeight: number): number;
|
|
108
|
-
resizeHeight(distance: number): number;
|
|
109
|
-
* #property
|
|
110
|
-
*/
|
|
109
|
+
resizeHeight(distance: number): number;
|
|
111
110
|
} & {
|
|
112
111
|
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
113
112
|
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
@@ -124,15 +123,16 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
124
123
|
setCurrStatsBpPerPx(n: number): void;
|
|
125
124
|
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
126
125
|
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
127
|
-
setFeatureDensityStatsP(arg: any): void;
|
|
128
|
-
* #method
|
|
129
|
-
*/
|
|
126
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
130
127
|
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
131
128
|
clearFeatureDensityStats(): void;
|
|
132
129
|
} & {
|
|
133
130
|
readonly regionTooLarge: boolean;
|
|
134
131
|
readonly regionTooLargeReason: string;
|
|
135
132
|
} & {
|
|
133
|
+
/**
|
|
134
|
+
* #method
|
|
135
|
+
*/
|
|
136
136
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
137
137
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): React.JSX.Element | null;
|
|
138
138
|
} & {
|
|
@@ -41,7 +41,11 @@ const shared_1 = require("../shared");
|
|
|
41
41
|
const FilterByTagDlg = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../shared/FilterByTag'))));
|
|
42
42
|
/**
|
|
43
43
|
* #stateModel LinearReadCloudDisplay
|
|
44
|
-
*
|
|
44
|
+
* it is not a block based track, hence not BaseLinearDisplay
|
|
45
|
+
* extends
|
|
46
|
+
* - [BaseDisplay](../basedisplay)
|
|
47
|
+
* - [TrackHeightMixin](../trackheightmixin)
|
|
48
|
+
* - [FeatureDensityMixin](../featuredensitymixin)
|
|
45
49
|
*/
|
|
46
50
|
function stateModelFactory(configSchema) {
|
|
47
51
|
return mobx_state_tree_1.types
|
|
@@ -62,15 +62,14 @@ export default function SNPCoverageConfigFactory(pluginManager: PluginManager):
|
|
|
62
62
|
defaultValue: number;
|
|
63
63
|
};
|
|
64
64
|
fetchSizeLimit: {
|
|
65
|
-
/**
|
|
66
|
-
* #slot
|
|
67
|
-
*/
|
|
68
65
|
type: string;
|
|
69
66
|
defaultValue: number;
|
|
70
67
|
description: string;
|
|
71
68
|
};
|
|
72
69
|
height: {
|
|
73
|
-
type: string;
|
|
70
|
+
type: string; /**
|
|
71
|
+
* #slot
|
|
72
|
+
*/
|
|
74
73
|
defaultValue: number;
|
|
75
74
|
description: string;
|
|
76
75
|
};
|
|
@@ -5,6 +5,9 @@ const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view"
|
|
|
5
5
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
6
|
/**
|
|
7
7
|
* #config LinearSNPCoverageDisplay
|
|
8
|
+
*
|
|
9
|
+
* extends
|
|
10
|
+
* - [BaseLinearDisplay](../baselineardisplay)
|
|
8
11
|
*/
|
|
9
12
|
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
10
13
|
function SNPCoverageConfigFactory(pluginManager) {
|