@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
|
@@ -3,7 +3,8 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
3
3
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
4
4
|
/**
|
|
5
5
|
* #stateModel LinearSNPCoverageDisplay
|
|
6
|
-
* extends
|
|
6
|
+
* extends
|
|
7
|
+
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
7
8
|
*/
|
|
8
9
|
declare function stateModelFactory(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
9
10
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -19,9 +20,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
19
20
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
20
21
|
region: import("mobx-state-tree").IModelType<{
|
|
21
22
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
22
|
-
start: import("mobx-state-tree").ISimpleType<number>;
|
|
23
|
-
* #property
|
|
24
|
-
*/
|
|
23
|
+
start: import("mobx-state-tree").ISimpleType<number>;
|
|
25
24
|
end: import("mobx-state-tree").ISimpleType<number>;
|
|
26
25
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
27
26
|
} & {
|
|
@@ -37,9 +36,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
37
36
|
filled: boolean;
|
|
38
37
|
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
39
38
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
40
|
-
layout: any;
|
|
41
|
-
* #property
|
|
42
|
-
*/
|
|
39
|
+
layout: any;
|
|
43
40
|
status: string;
|
|
44
41
|
error: unknown;
|
|
45
42
|
message: string | undefined;
|
|
@@ -85,9 +82,7 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
85
82
|
type: string;
|
|
86
83
|
description: string;
|
|
87
84
|
defaultValue: string;
|
|
88
|
-
contextVariable: string[];
|
|
89
|
-
* #property
|
|
90
|
-
*/
|
|
85
|
+
contextVariable: string[];
|
|
91
86
|
};
|
|
92
87
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
93
88
|
} & {
|
|
@@ -133,7 +128,9 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
133
128
|
filterBy: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
134
129
|
flagInclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
135
130
|
flagExclude: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
136
|
-
readName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
131
|
+
readName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>; /**
|
|
132
|
+
* #property
|
|
133
|
+
*/
|
|
137
134
|
tagFilter: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IModelType<{
|
|
138
135
|
tag: import("mobx-state-tree").ISimpleType<string>;
|
|
139
136
|
value: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -18,7 +18,8 @@ const util_3 = require("../../util");
|
|
|
18
18
|
const rendererTypes = new Map([['snpcoverage', 'SNPCoverageRenderer']]);
|
|
19
19
|
/**
|
|
20
20
|
* #stateModel LinearSNPCoverageDisplay
|
|
21
|
-
* extends
|
|
21
|
+
* extends
|
|
22
|
+
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
22
23
|
*/
|
|
23
24
|
function stateModelFactory(pluginManager, configSchema) {
|
|
24
25
|
return mobx_state_tree_1.types
|
|
@@ -1,17 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
27
|
};
|
|
5
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
29
|
const BoxRendererType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/BoxRendererType"));
|
|
7
30
|
const util_1 = require("@jbrowse/core/util");
|
|
31
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
8
32
|
const dataAdapterCache_1 = require("@jbrowse/core/data_adapters/dataAdapterCache");
|
|
9
33
|
const PileupLayoutSession_1 = require("./PileupLayoutSession");
|
|
10
34
|
// locals
|
|
11
35
|
const util_2 = require("../util");
|
|
12
36
|
const layoutFeatures_1 = require("./layoutFeatures");
|
|
13
|
-
const makeImageData_1 = require("./makeImageData");
|
|
14
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
15
37
|
class PileupRenderer extends BoxRendererType_1.default {
|
|
16
38
|
constructor() {
|
|
17
39
|
super(...arguments);
|
|
@@ -58,7 +80,8 @@ class PileupRenderer extends BoxRendererType_1.default {
|
|
|
58
80
|
: undefined;
|
|
59
81
|
const width = (region.end - region.start) / bpPerPx;
|
|
60
82
|
const height = Math.max(layout.getTotalHeight(), 1);
|
|
61
|
-
const
|
|
83
|
+
const { makeImageData } = await Promise.resolve().then(() => __importStar(require('./makeImageData')));
|
|
84
|
+
const res = await (0, util_1.renderToAbstractCanvas)(width, height, renderProps, ctx => makeImageData({
|
|
62
85
|
ctx,
|
|
63
86
|
layoutRecords: layoutRecords.filter(util_1.notEmpty),
|
|
64
87
|
canvasWidth: width,
|
|
@@ -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,46 @@
|
|
|
1
|
+
import { types } from 'mobx-state-tree';
|
|
2
|
+
// jbrowse
|
|
3
|
+
import { ConfigurationReference, } from '@jbrowse/core/configuration';
|
|
4
|
+
import { getLowerPanelDisplays } from './util';
|
|
5
|
+
/**
|
|
6
|
+
* #stateModel LinearAlignmentsDisplayMixin
|
|
7
|
+
*/
|
|
8
|
+
export function LinearAlignmentsDisplayMixin(pluginManager, configSchema) {
|
|
9
|
+
const lowerPanelDisplays = getLowerPanelDisplays(pluginManager).map(f => f.stateModel);
|
|
10
|
+
return types.model({
|
|
11
|
+
/**
|
|
12
|
+
* #property
|
|
13
|
+
* refers to LinearPileupDisplay sub-display model
|
|
14
|
+
*/
|
|
15
|
+
PileupDisplay: types.maybe(types.union(...lowerPanelDisplays)),
|
|
16
|
+
/**
|
|
17
|
+
* #property
|
|
18
|
+
* refers to LinearSNPCoverageDisplay sub-display model
|
|
19
|
+
*/
|
|
20
|
+
SNPCoverageDisplay: types.maybe(pluginManager.getDisplayType('LinearSNPCoverageDisplay').stateModel),
|
|
21
|
+
/**
|
|
22
|
+
* #property
|
|
23
|
+
*/
|
|
24
|
+
snpCovHeight: 45,
|
|
25
|
+
/**
|
|
26
|
+
* #property
|
|
27
|
+
*/
|
|
28
|
+
type: types.literal('LinearAlignmentsDisplay'),
|
|
29
|
+
/**
|
|
30
|
+
* #property
|
|
31
|
+
*/
|
|
32
|
+
configuration: ConfigurationReference(configSchema),
|
|
33
|
+
/**
|
|
34
|
+
* #property
|
|
35
|
+
*/
|
|
36
|
+
heightPreConfig: types.maybe(types.number),
|
|
37
|
+
/**
|
|
38
|
+
* #property
|
|
39
|
+
*/
|
|
40
|
+
userFeatureScreenDensity: types.maybe(types.number),
|
|
41
|
+
/**
|
|
42
|
+
* #property
|
|
43
|
+
*/
|
|
44
|
+
lowerPanelType: 'LinearPileupDisplay',
|
|
45
|
+
});
|
|
46
|
+
}
|
|
@@ -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
|
/**
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
/* eslint-disable react-refresh/only-export-components */
|
|
2
1
|
import React from 'react';
|
|
3
2
|
import { autorun, when } from 'mobx';
|
|
4
3
|
import { addDisposer, getSnapshot, isAlive, types, } from 'mobx-state-tree';
|
|
5
4
|
import deepEqual from 'fast-deep-equal';
|
|
6
5
|
// jbrowse
|
|
7
|
-
import {
|
|
6
|
+
import { getConf, } from '@jbrowse/core/configuration';
|
|
8
7
|
import { BaseDisplay } from '@jbrowse/core/pluggableElementTypes/models';
|
|
8
|
+
// locals
|
|
9
|
+
import { LinearAlignmentsDisplayMixin } from './alignmentsModel';
|
|
10
|
+
import { getLowerPanelDisplays } from './util';
|
|
9
11
|
const minDisplayHeight = 20;
|
|
10
|
-
function getLowerPanelDisplays(pluginManager) {
|
|
11
|
-
return (pluginManager
|
|
12
|
-
.getDisplayElements()
|
|
13
|
-
// @ts-expect-error
|
|
14
|
-
.filter(f => { var _a; return ((_a = f.subDisplay) === null || _a === void 0 ? void 0 : _a.type) === 'LinearAlignmentsDisplay'; })
|
|
15
|
-
// @ts-expect-error
|
|
16
|
-
.filter(f => { var _a; return (_a = f.subDisplay) === null || _a === void 0 ? void 0 : _a.lowerPanel; }));
|
|
17
|
-
}
|
|
18
12
|
function deepSnap(x1, x2) {
|
|
19
13
|
return deepEqual(x1 ? getSnapshot(x1) : undefined, x2 ? getSnapshot(x2) : undefined);
|
|
20
14
|
}
|
|
@@ -43,52 +37,15 @@ function propagateFilterBy(self) {
|
|
|
43
37
|
SNPCoverageDisplay.setFilterBy(getSnapshot(PileupDisplay.filterBy));
|
|
44
38
|
}
|
|
45
39
|
}
|
|
46
|
-
function AlignmentsModel(pluginManager, configSchema) {
|
|
47
|
-
const lowerPanelDisplays = getLowerPanelDisplays(pluginManager).map(f => f.stateModel);
|
|
48
|
-
return types.model({
|
|
49
|
-
/**
|
|
50
|
-
* #property
|
|
51
|
-
* refers to LinearPileupDisplay sub-display model
|
|
52
|
-
*/
|
|
53
|
-
PileupDisplay: types.maybe(types.union(...lowerPanelDisplays)),
|
|
54
|
-
/**
|
|
55
|
-
* #property
|
|
56
|
-
* refers to LinearSNPCoverageDisplay sub-display model
|
|
57
|
-
*/
|
|
58
|
-
SNPCoverageDisplay: types.maybe(pluginManager.getDisplayType('LinearSNPCoverageDisplay').stateModel),
|
|
59
|
-
/**
|
|
60
|
-
* #property
|
|
61
|
-
*/
|
|
62
|
-
snpCovHeight: 45,
|
|
63
|
-
/**
|
|
64
|
-
* #property
|
|
65
|
-
*/
|
|
66
|
-
type: types.literal('LinearAlignmentsDisplay'),
|
|
67
|
-
/**
|
|
68
|
-
* #property
|
|
69
|
-
*/
|
|
70
|
-
configuration: ConfigurationReference(configSchema),
|
|
71
|
-
/**
|
|
72
|
-
* #property
|
|
73
|
-
*/
|
|
74
|
-
heightPreConfig: types.maybe(types.number),
|
|
75
|
-
/**
|
|
76
|
-
* #property
|
|
77
|
-
*/
|
|
78
|
-
userFeatureScreenDensity: types.maybe(types.number),
|
|
79
|
-
/**
|
|
80
|
-
* #property
|
|
81
|
-
*/
|
|
82
|
-
lowerPanelType: 'LinearPileupDisplay',
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
40
|
/**
|
|
86
41
|
* #stateModel LinearAlignmentsDisplay
|
|
87
|
-
* extends
|
|
42
|
+
* extends
|
|
43
|
+
* - [BaseDisplay](../basedisplay)
|
|
44
|
+
* - [LinearAlignmentsDisplayMixin](../linearalignmentsdisplaymixin)
|
|
88
45
|
*/
|
|
89
46
|
function stateModelFactory(pluginManager, configSchema) {
|
|
90
47
|
return types
|
|
91
|
-
.compose('LinearAlignmentsDisplay', BaseDisplay,
|
|
48
|
+
.compose('LinearAlignmentsDisplay', BaseDisplay, LinearAlignmentsDisplayMixin(pluginManager, configSchema))
|
|
92
49
|
.volatile(() => ({
|
|
93
50
|
scrollTop: 0,
|
|
94
51
|
}))
|
|
@@ -114,6 +71,9 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
114
71
|
var _a;
|
|
115
72
|
return (_a = self.heightPreConfig) !== null && _a !== void 0 ? _a : getConf(self, 'height');
|
|
116
73
|
},
|
|
74
|
+
/**
|
|
75
|
+
* #getter
|
|
76
|
+
*/
|
|
117
77
|
get featureIdUnderMouse() {
|
|
118
78
|
return (self.PileupDisplay.featureIdUnderMouse ||
|
|
119
79
|
self.SNPCoverageDisplay.featureIdUnderMouse);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function getLowerPanelDisplays(pluginManager) {
|
|
2
|
+
return (pluginManager
|
|
3
|
+
.getDisplayElements()
|
|
4
|
+
// @ts-expect-error
|
|
5
|
+
.filter(f => { var _a; return ((_a = f.subDisplay) === null || _a === void 0 ? void 0 : _a.type) === 'LinearAlignmentsDisplay'; })
|
|
6
|
+
// @ts-expect-error
|
|
7
|
+
.filter(f => { var _a; return (_a = f.subDisplay) === null || _a === void 0 ? void 0 : _a.lowerPanel; }));
|
|
8
|
+
}
|
|
@@ -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
|
} & {
|
|
@@ -17,7 +17,8 @@ const ModificationsDlg = lazy(() => import('./components/ColorByModifications'))
|
|
|
17
17
|
/**
|
|
18
18
|
* #stateModel LinearPileupDisplay
|
|
19
19
|
* #category display
|
|
20
|
-
* extends
|
|
20
|
+
* extends
|
|
21
|
+
*- [SharedLinearPileupDisplayMixin](../sharedlinearpileupdisplaymixin)
|
|
21
22
|
*/
|
|
22
23
|
function stateModelFactory(configSchema) {
|
|
23
24
|
return types
|
|
@@ -166,7 +167,7 @@ function stateModelFactory(configSchema) {
|
|
|
166
167
|
return readConfObject(self.rendererConfig, 'mismatchAlpha');
|
|
167
168
|
},
|
|
168
169
|
/**
|
|
169
|
-
* #
|
|
170
|
+
* #method
|
|
170
171
|
*/
|
|
171
172
|
renderReady() {
|
|
172
173
|
const view = 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;
|
|
@@ -13,8 +13,12 @@ import { FilterModel } from '../shared';
|
|
|
13
13
|
const FilterByTagDlg = lazy(() => import('../shared/FilterByTag'));
|
|
14
14
|
/**
|
|
15
15
|
* #stateModel LinearReadArcsDisplay
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* the arc display is a non-block-based track, so draws to a single canvas and
|
|
17
|
+
* can connect multiple regions
|
|
18
|
+
* extends
|
|
19
|
+
* - [BaseDisplay](../basedisplay)
|
|
20
|
+
* - [TrackHeightMixin](../trackheightmixin)
|
|
21
|
+
* - [FeatureDensityMixin](../featuredensitymixin)
|
|
18
22
|
*/
|
|
19
23
|
function stateModelFactory(configSchema) {
|
|
20
24
|
return types
|