@jbrowse/plugin-variants 2.1.7 → 2.2.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/ChordVariantDisplay/index.d.ts +1 -2
- package/dist/ChordVariantDisplay/index.js +13 -10
- package/dist/ChordVariantDisplay/index.js.map +1 -1
- package/dist/ChordVariantDisplay/models/ChordVariantDisplay.d.ts +19 -1
- package/dist/ChordVariantDisplay/models/ChordVariantDisplay.js +22 -3
- package/dist/ChordVariantDisplay/models/ChordVariantDisplay.js.map +1 -1
- package/dist/ChordVariantDisplay/models/configSchema.d.ts +3 -0
- package/dist/ChordVariantDisplay/models/configSchema.js +25 -0
- package/dist/ChordVariantDisplay/models/configSchema.js.map +1 -0
- package/dist/ChordVariantDisplay/models/stateModelFactory.d.ts +112 -0
- package/dist/ChordVariantDisplay/models/stateModelFactory.js +55 -0
- package/dist/ChordVariantDisplay/models/stateModelFactory.js.map +1 -0
- package/dist/LinearVariantDisplay/configSchema.d.ts +2 -2
- package/dist/LinearVariantDisplay/configSchema.js +16 -5
- package/dist/LinearVariantDisplay/configSchema.js.map +1 -1
- package/dist/LinearVariantDisplay/index.js +2 -2
- package/dist/LinearVariantDisplay/index.js.map +1 -1
- package/dist/LinearVariantDisplay/model.d.ts +21 -3
- package/dist/LinearVariantDisplay/model.js +16 -2
- package/dist/LinearVariantDisplay/model.js.map +1 -1
- package/dist/StructuralVariantChordRenderer/configSchema.d.ts +2 -0
- package/dist/StructuralVariantChordRenderer/configSchema.js +38 -0
- package/dist/StructuralVariantChordRenderer/configSchema.js.map +1 -0
- package/dist/StructuralVariantChordRenderer/index.d.ts +1 -2
- package/dist/StructuralVariantChordRenderer/index.js +4 -24
- package/dist/StructuralVariantChordRenderer/index.js.map +1 -1
- package/dist/VariantTrack/configSchema.d.ts +3 -0
- package/dist/VariantTrack/configSchema.js +18 -0
- package/dist/VariantTrack/configSchema.js.map +1 -0
- package/dist/VariantTrack/index.d.ts +1 -1
- package/dist/VariantTrack/index.js +5 -5
- package/dist/VariantTrack/index.js.map +1 -1
- package/dist/VcfAdapter/configSchema.d.ts +2 -2
- package/dist/VcfAdapter/configSchema.js +9 -1
- package/dist/VcfAdapter/configSchema.js.map +1 -1
- package/dist/VcfTabixAdapter/configSchema.d.ts +2 -2
- package/dist/VcfTabixAdapter/configSchema.js +15 -1
- package/dist/VcfTabixAdapter/configSchema.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/esm/ChordVariantDisplay/index.d.ts +1 -2
- package/esm/ChordVariantDisplay/index.js +13 -10
- package/esm/ChordVariantDisplay/index.js.map +1 -1
- package/esm/ChordVariantDisplay/models/ChordVariantDisplay.d.ts +19 -1
- package/esm/ChordVariantDisplay/models/ChordVariantDisplay.js +21 -5
- package/esm/ChordVariantDisplay/models/ChordVariantDisplay.js.map +1 -1
- package/esm/ChordVariantDisplay/models/configSchema.d.ts +3 -0
- package/esm/ChordVariantDisplay/models/configSchema.js +23 -0
- package/esm/ChordVariantDisplay/models/configSchema.js.map +1 -0
- package/esm/ChordVariantDisplay/models/stateModelFactory.d.ts +112 -0
- package/esm/ChordVariantDisplay/models/stateModelFactory.js +53 -0
- package/esm/ChordVariantDisplay/models/stateModelFactory.js.map +1 -0
- package/esm/LinearVariantDisplay/configSchema.d.ts +2 -2
- package/esm/LinearVariantDisplay/configSchema.js +15 -3
- package/esm/LinearVariantDisplay/configSchema.js.map +1 -1
- package/esm/LinearVariantDisplay/index.js +2 -2
- package/esm/LinearVariantDisplay/index.js.map +1 -1
- package/esm/LinearVariantDisplay/model.d.ts +21 -3
- package/esm/LinearVariantDisplay/model.js +15 -1
- package/esm/LinearVariantDisplay/model.js.map +1 -1
- package/esm/StructuralVariantChordRenderer/configSchema.d.ts +2 -0
- package/esm/StructuralVariantChordRenderer/configSchema.js +36 -0
- package/esm/StructuralVariantChordRenderer/configSchema.js.map +1 -0
- package/esm/StructuralVariantChordRenderer/index.d.ts +1 -2
- package/esm/StructuralVariantChordRenderer/index.js +3 -23
- package/esm/StructuralVariantChordRenderer/index.js.map +1 -1
- package/esm/VariantTrack/configSchema.d.ts +3 -0
- package/esm/VariantTrack/configSchema.js +16 -0
- package/esm/VariantTrack/configSchema.js.map +1 -0
- package/esm/VariantTrack/index.d.ts +1 -1
- package/esm/VariantTrack/index.js +6 -6
- package/esm/VariantTrack/index.js.map +1 -1
- package/esm/VcfAdapter/configSchema.d.ts +2 -2
- package/esm/VcfAdapter/configSchema.js +9 -1
- package/esm/VcfAdapter/configSchema.js.map +1 -1
- package/esm/VcfTabixAdapter/configSchema.d.ts +2 -2
- package/esm/VcfTabixAdapter/configSchema.js +15 -1
- package/esm/VcfTabixAdapter/configSchema.js.map +1 -1
- package/esm/index.js +4 -4
- package/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/ChordVariantDisplay/index.ts +13 -12
- package/src/ChordVariantDisplay/models/ChordVariantDisplay.ts +22 -19
- package/src/ChordVariantDisplay/models/configSchema.ts +33 -0
- package/src/ChordVariantDisplay/models/stateModelFactory.ts +65 -0
- package/src/LinearVariantDisplay/configSchema.test.js +1 -1
- package/src/LinearVariantDisplay/configSchema.ts +16 -8
- package/src/LinearVariantDisplay/index.ts +2 -2
- package/src/LinearVariantDisplay/model.ts +17 -1
- package/src/StructuralVariantChordRenderer/configSchema.ts +42 -0
- package/src/StructuralVariantChordRenderer/index.ts +9 -32
- package/src/VariantFeatureWidget/__snapshots__/VariantFeatureWidget.test.js.snap +25 -25
- package/src/VariantTrack/configSchema.ts +24 -0
- package/src/VariantTrack/index.ts +6 -17
- package/src/VcfAdapter/configSchema.ts +11 -1
- package/src/VcfTabixAdapter/configSchema.ts +17 -1
- package/src/index.ts +4 -10
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
+
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
5
|
+
/**
|
|
6
|
+
* #config VariantTrack
|
|
7
|
+
* Mostly similar to feature track, but has `ChordDisplayType` registered to it,
|
|
8
|
+
* and custom feature details in `LinearVariantDisplay`
|
|
9
|
+
*/
|
|
10
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
11
|
+
const configSchema = (pluginManager) => (0, configuration_1.ConfigurationSchema)('VariantTrack', {}, {
|
|
12
|
+
/**
|
|
13
|
+
* #baseConfiguration
|
|
14
|
+
*/
|
|
15
|
+
baseConfiguration: (0, pluggableElementTypes_1.createBaseTrackConfig)(pluginManager),
|
|
16
|
+
});
|
|
17
|
+
exports.default = configSchema;
|
|
18
|
+
//# sourceMappingURL=configSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/VariantTrack/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AACjE,+EAA2E;AAG3E;;;;GAIG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,YAAY,GAAG,CAAC,aAA4B,EAAE,EAAE,CACpD,IAAA,mCAAmB,EACjB,cAAc,EACd,EAAE,EACF;IACE;;OAEG;IACH,iBAAiB,EAAE,IAAA,6CAAqB,EAAC,aAAa,CAAC;CACxD,CACF,CAAA;AAEH,kBAAe,YAAY,CAAA"}
|
|
@@ -3,16 +3,16 @@ 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
|
-
const configuration_1 = require("@jbrowse/core/configuration");
|
|
7
6
|
const TrackType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/TrackType"));
|
|
8
7
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
9
|
+
exports.default = (pm) => {
|
|
10
|
+
pm.addTrackType(() => {
|
|
11
|
+
const configSchema = (0, configSchema_1.default)(pm);
|
|
12
12
|
return new TrackType_1.default({
|
|
13
13
|
name: 'VariantTrack',
|
|
14
14
|
configSchema,
|
|
15
|
-
stateModel: (0, models_1.createBaseTrackModel)(
|
|
15
|
+
stateModel: (0, models_1.createBaseTrackModel)(pm, 'VariantTrack', configSchema),
|
|
16
16
|
});
|
|
17
17
|
});
|
|
18
18
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/VariantTrack/index.ts"],"names":[],"mappings":";;;;;AACA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/VariantTrack/index.ts"],"names":[],"mappings":";;;;;AACA,8FAAqE;AACrE,uEAAiF;AACjF,kEAA0C;AAE1C,kBAAe,CAAC,EAAiB,EAAE,EAAE;IACnC,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE;QACnB,MAAM,YAAY,GAAG,IAAA,sBAAa,EAAC,EAAE,CAAC,CAAA;QACtC,OAAO,IAAI,mBAAS,CAAC;YACnB,IAAI,EAAE,cAAc;YACpB,YAAY;YACZ,UAAU,EAAE,IAAA,6BAAoB,EAAC,EAAE,EAAE,cAAc,EAAE,YAAY,CAAC;SACnE,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const VcfAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
+
export default VcfAdapter;
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* #config VcfAdapter
|
|
6
|
+
*/
|
|
7
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
+
const VcfAdapter = (0, configuration_1.ConfigurationSchema)('VcfAdapter', {
|
|
9
|
+
/**
|
|
10
|
+
* #slot
|
|
11
|
+
*/
|
|
5
12
|
vcfLocation: {
|
|
6
13
|
type: 'fileLocation',
|
|
7
14
|
defaultValue: { uri: '/path/to/my.vcf', locationType: 'UriLocation' },
|
|
8
15
|
},
|
|
9
16
|
}, { explicitlyTyped: true });
|
|
17
|
+
exports.default = VcfAdapter;
|
|
10
18
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/VcfAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE,
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/VcfAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,UAAU,GAAG,IAAA,mCAAmB,EACpC,YAAY,EACZ;IACE;;OAEG;IACH,WAAW,EAAE;QACX,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,EAAE,GAAG,EAAE,iBAAiB,EAAE,YAAY,EAAE,aAAa,EAAE;KACtE;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AAED,kBAAe,UAAU,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const
|
|
2
|
-
export default
|
|
1
|
+
declare const VcfTabixAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
|
+
export default VcfTabixAdapter;
|
|
@@ -2,17 +2,30 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* #config VcfTabixAdapter
|
|
7
|
+
*/
|
|
8
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
9
|
+
const VcfTabixAdapter = (0, configuration_1.ConfigurationSchema)('VcfTabixAdapter', {
|
|
10
|
+
/**
|
|
11
|
+
* #slot
|
|
12
|
+
*/
|
|
6
13
|
vcfGzLocation: {
|
|
7
14
|
type: 'fileLocation',
|
|
8
15
|
defaultValue: { uri: '/path/to/my.vcf.gz', locationType: 'UriLocation' },
|
|
9
16
|
},
|
|
10
17
|
index: (0, configuration_1.ConfigurationSchema)('VcfIndex', {
|
|
18
|
+
/**
|
|
19
|
+
* #slot index.indexType
|
|
20
|
+
*/
|
|
11
21
|
indexType: {
|
|
12
22
|
model: mobx_state_tree_1.types.enumeration('IndexType', ['TBI', 'CSI']),
|
|
13
23
|
type: 'stringEnum',
|
|
14
24
|
defaultValue: 'TBI',
|
|
15
25
|
},
|
|
26
|
+
/**
|
|
27
|
+
* #slot index.location
|
|
28
|
+
*/
|
|
16
29
|
location: {
|
|
17
30
|
type: 'fileLocation',
|
|
18
31
|
defaultValue: {
|
|
@@ -22,4 +35,5 @@ exports.default = (0, configuration_1.ConfigurationSchema)('VcfTabixAdapter', {
|
|
|
22
35
|
},
|
|
23
36
|
}),
|
|
24
37
|
}, { explicitlyTyped: true });
|
|
38
|
+
exports.default = VcfTabixAdapter;
|
|
25
39
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/VcfTabixAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,qDAAuC;AACvC,+DAAiE;AAEjE,
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/VcfTabixAdapter/configSchema.ts"],"names":[],"mappings":";;AAAA,qDAAuC;AACvC,+DAAiE;AAEjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,eAAe,GAAG,IAAA,mCAAmB,EACzC,iBAAiB,EACjB;IACE;;OAEG;IACH,aAAa,EAAE;QACb,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,EAAE,GAAG,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,EAAE;KACzE;IACD,KAAK,EAAE,IAAA,mCAAmB,EAAC,UAAU,EAAE;QACrC;;WAEG;QACH,SAAS,EAAE;YACT,KAAK,EAAE,uBAAK,CAAC,WAAW,CAAC,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;YACrD,IAAI,EAAE,YAAY;YAClB,YAAY,EAAE,KAAK;SACpB;QACD;;WAEG;QACH,QAAQ,EAAE;YACR,IAAI,EAAE,cAAc;YACpB,YAAY,EAAE;gBACZ,GAAG,EAAE,wBAAwB;gBAC7B,YAAY,EAAE,aAAa;aAC5B;SACF;KACF,CAAC;CACH,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AAED,kBAAe,eAAe,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -25,8 +25,8 @@ class VariantsPlugin extends Plugin_1.default {
|
|
|
25
25
|
(0, VariantTrack_1.default)(pluginManager);
|
|
26
26
|
(0, extensionPoints_1.default)(pluginManager);
|
|
27
27
|
(0, LinearVariantDisplay_1.default)(pluginManager);
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
(0, StructuralVariantChordRenderer_1.default)(pluginManager);
|
|
29
|
+
(0, ChordVariantDisplay_1.default)(pluginManager);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
exports.default = VariantsPlugin;
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAsC;AACtC,wEAAgD;AAChD,wEAAgD;AAChD,kEAA0C;AAC1C,kEAAyC;AAEzC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,8DAAsC;AACtC,wEAAgD;AAChD,wEAAgD;AAChD,kEAA0C;AAC1C,kEAAyC;AAEzC,gFAAwD;AACxD,kFAA0D;AAC1D,sGAA8E;AAC9E,kFAA0D;AAE1D,MAAqB,cAAe,SAAQ,gBAAM;IAAlD;;QACE,SAAI,GAAG,gBAAgB,CAAA;IAYzB,CAAC;IAVC,OAAO,CAAC,aAA4B;QAClC,IAAA,oBAAW,EAAC,aAAa,CAAC,CAAA;QAC1B,IAAA,yBAAgB,EAAC,aAAa,CAAC,CAAA;QAC/B,IAAA,8BAAqB,EAAC,aAAa,CAAC,CAAA;QACpC,IAAA,sBAAa,EAAC,aAAa,CAAC,CAAA;QAC5B,IAAA,yBAAgB,EAAC,aAAa,CAAC,CAAA;QAC/B,IAAA,8BAAqB,EAAC,aAAa,CAAC,CAAA;QACpC,IAAA,wCAA+B,EAAC,aAAa,CAAC,CAAA;QAC9C,IAAA,6BAAoB,EAAC,aAAa,CAAC,CAAA;IACrC,CAAC;CACF;AAbD,iCAaC;AAED,2DAAoE;AAA3D,yHAAA,OAAO,OAAc"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
|
|
3
|
-
declare const _default: (pluginManager: PluginManager) => DisplayType;
|
|
2
|
+
declare const _default: (pluginManager: PluginManager) => void;
|
|
4
3
|
export default _default;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { BaseChordDisplayComponent } from '@jbrowse/plugin-circular-view';
|
|
2
|
-
import ChordVariantDisplay from './models/ChordVariantDisplay';
|
|
3
2
|
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
3
|
+
import configSchemaF from './models/configSchema';
|
|
4
|
+
import stateModelF from './models/stateModelFactory';
|
|
4
5
|
export default (pluginManager) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
pluginManager.addDisplayType(() => {
|
|
7
|
+
const configSchema = configSchemaF(pluginManager);
|
|
8
|
+
const stateModel = stateModelF(configSchema);
|
|
9
|
+
return new DisplayType({
|
|
10
|
+
name: 'ChordVariantDisplay',
|
|
11
|
+
configSchema,
|
|
12
|
+
stateModel,
|
|
13
|
+
trackType: 'VariantTrack',
|
|
14
|
+
viewType: 'CircularView',
|
|
15
|
+
ReactComponent: BaseChordDisplayComponent,
|
|
16
|
+
});
|
|
14
17
|
});
|
|
15
18
|
};
|
|
16
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ChordVariantDisplay/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACzE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ChordVariantDisplay/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AACzE,OAAO,WAAW,MAAM,iDAAiD,CAAA;AACzE,OAAO,aAAa,MAAM,uBAAuB,CAAA;AACjD,OAAO,WAAW,MAAM,4BAA4B,CAAA;AAEpD,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,CAAA;QACjD,MAAM,UAAU,GAAG,WAAW,CAAC,YAAY,CAAC,CAAA;QAC5C,OAAO,IAAI,WAAW,CAAC;YACrB,IAAI,EAAE,qBAAqB;YAC3B,YAAY;YACZ,UAAU;YACV,SAAS,EAAE,cAAc;YACzB,QAAQ,EAAE,cAAc;YACxB,cAAc,EAAE,yBAAyB;SAC1C,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
+
/**
|
|
4
|
+
* #stateModel ChordVariantDisplay
|
|
5
|
+
* extends `BaseChordDisplay`
|
|
6
|
+
*/
|
|
3
7
|
declare const ChordVariantDisplayF: (pluginManager: PluginManager) => {
|
|
4
8
|
stateModel: import("mobx-state-tree").IModelType<{
|
|
5
9
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -9,7 +13,13 @@ declare const ChordVariantDisplayF: (pluginManager: PluginManager) => {
|
|
|
9
13
|
bezierRadiusRatio: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
10
14
|
assemblyName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
11
15
|
} & {
|
|
16
|
+
/**
|
|
17
|
+
* #property
|
|
18
|
+
*/
|
|
12
19
|
type: import("mobx-state-tree").ISimpleType<"ChordVariantDisplay">;
|
|
20
|
+
/**
|
|
21
|
+
* #property
|
|
22
|
+
*/
|
|
13
23
|
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
14
24
|
}, {
|
|
15
25
|
rendererTypeName: string;
|
|
@@ -17,7 +27,9 @@ declare const ChordVariantDisplayF: (pluginManager: PluginManager) => {
|
|
|
17
27
|
} & {
|
|
18
28
|
readonly RenderingComponent: import("react").FC<{
|
|
19
29
|
model: {
|
|
20
|
-
id: string;
|
|
30
|
+
id: string; /**
|
|
31
|
+
* #property
|
|
32
|
+
*/
|
|
21
33
|
type: string;
|
|
22
34
|
rpcDriverName: string | undefined;
|
|
23
35
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -91,7 +103,13 @@ declare const ChordVariantDisplayF: (pluginManager: PluginManager) => {
|
|
|
91
103
|
} & {
|
|
92
104
|
afterAttach(): void;
|
|
93
105
|
} & {
|
|
106
|
+
/**
|
|
107
|
+
* #getter
|
|
108
|
+
*/
|
|
94
109
|
readonly rendererTypeName: any;
|
|
110
|
+
/**
|
|
111
|
+
* #method
|
|
112
|
+
*/
|
|
95
113
|
renderProps(): Record<string, unknown>;
|
|
96
114
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
97
115
|
configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
@@ -1,21 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { BaseChordDisplayModel } from '@jbrowse/plugin-circular-view';
|
|
2
|
+
import { ConfigurationReference } from '@jbrowse/core/configuration';
|
|
3
3
|
import { types } from 'mobx-state-tree';
|
|
4
4
|
import { getContainingView } from '@jbrowse/core/util';
|
|
5
5
|
import { getParentRenderProps } from '@jbrowse/core/util/tracks';
|
|
6
|
+
// locals
|
|
7
|
+
import configSchemaF from './configSchema';
|
|
8
|
+
/**
|
|
9
|
+
* #stateModel ChordVariantDisplay
|
|
10
|
+
* extends `BaseChordDisplay`
|
|
11
|
+
*/
|
|
6
12
|
const ChordVariantDisplayF = (pluginManager) => {
|
|
7
|
-
const configSchema =
|
|
8
|
-
renderer: types.optional(pluginManager.pluggableConfigSchemaType('renderer'), { type: 'StructuralVariantChordRenderer' }),
|
|
9
|
-
}, { baseConfiguration: baseChordDisplayConfig, explicitlyTyped: true });
|
|
13
|
+
const configSchema = configSchemaF(pluginManager);
|
|
10
14
|
const stateModel = types
|
|
11
15
|
.compose('ChordVariantDisplay', BaseChordDisplayModel, types.model({
|
|
16
|
+
/**
|
|
17
|
+
* #property
|
|
18
|
+
*/
|
|
12
19
|
type: types.literal('ChordVariantDisplay'),
|
|
20
|
+
/**
|
|
21
|
+
* #property
|
|
22
|
+
*/
|
|
13
23
|
configuration: ConfigurationReference(configSchema),
|
|
14
24
|
}))
|
|
15
25
|
.views(self => ({
|
|
26
|
+
/**
|
|
27
|
+
* #getter
|
|
28
|
+
*/
|
|
16
29
|
get rendererTypeName() {
|
|
17
30
|
return self.configuration.renderer.type;
|
|
18
31
|
},
|
|
32
|
+
/**
|
|
33
|
+
* #method
|
|
34
|
+
*/
|
|
19
35
|
renderProps() {
|
|
20
36
|
const view = getContainingView(self);
|
|
21
37
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChordVariantDisplay.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/ChordVariantDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ChordVariantDisplay.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/ChordVariantDisplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAGhE,SAAS;AACT,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAE1C;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC,aAA4B,EAAE,EAAE;IAC5D,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,CAAA;IACjD,MAAM,UAAU,GAAG,KAAK;SACrB,OAAO,CACN,qBAAqB,EACrB,qBAAqB,EACrB,KAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC;QAC1C;;WAEG;QACH,aAAa,EAAE,sBAAsB,CAAC,YAAY,CAAC;KACpD,CAAC,CACH;SACA,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACd;;WAEG;QACH,IAAI,gBAAgB;YAClB,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAA;QACzC,CAAC;QAED;;WAEG;QACH,WAAW;YACT,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAA;YACpC,OAAO;gBACL,GAAG,oBAAoB,CAAC,IAAI,CAAC;gBAC7B,aAAa,EAAE,IAAI,CAAC,aAAa;gBACjC,YAAY,EAAE,IAAI;gBAClB,YAAY,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB;gBACpD,MAAM,EAAE,IAAI,CAAC,QAAQ;gBAErB,aAAa;gBACb,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACnC,YAAY,EAAE,IAAI,CAAC,YAAY;aAChC,CAAA;QACH,CAAC;KACF,CAAC,CAAC,CAAA;IAEL,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,CAAA;AACrC,CAAC,CAAA;AAED,0EAA0E;AAE1E,wDAAwD;AAExD,2BAA2B;AAC3B,EAAE;AACF,eAAe,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
import { baseChordDisplayConfig } from '@jbrowse/plugin-circular-view';
|
|
3
|
+
import { types } from 'mobx-state-tree';
|
|
4
|
+
/**
|
|
5
|
+
* #config ChordVariantDisplay
|
|
6
|
+
*/
|
|
7
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
+
function stateModelFactory(pluginManager) {
|
|
9
|
+
return ConfigurationSchema('ChordVariantDisplay', {
|
|
10
|
+
/**
|
|
11
|
+
* #slot
|
|
12
|
+
*/
|
|
13
|
+
renderer: types.optional(pluginManager.pluggableConfigSchemaType('renderer'), { type: 'StructuralVariantChordRenderer' }),
|
|
14
|
+
}, {
|
|
15
|
+
/**
|
|
16
|
+
* #baseConfiguration
|
|
17
|
+
*/
|
|
18
|
+
baseConfiguration: baseChordDisplayConfig,
|
|
19
|
+
explicitlyTyped: true,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
export default stateModelFactory;
|
|
23
|
+
//# sourceMappingURL=configSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAEjE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAEvC;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,SAAS,iBAAiB,CAAC,aAA4B;IACrD,OAAO,mBAAmB,CACxB,qBAAqB,EACrB;QACE;;WAEG;QACH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CACtB,aAAa,CAAC,yBAAyB,CAAC,UAAU,CAAC,EACnD,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAC3C;KACF,EACD;QACE;;WAEG;QACH,iBAAiB,EAAE,sBAAsB;QACzC,eAAe,EAAE,IAAI;KACtB,CACF,CAAA;AACH,CAAC;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
+
/**
|
|
4
|
+
* #stateModel ChordVariantDisplay
|
|
5
|
+
* extends `BaseChordDisplay`
|
|
6
|
+
*/
|
|
7
|
+
declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => import("mobx-state-tree").IModelType<{
|
|
8
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
9
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
10
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
11
|
+
} & {
|
|
12
|
+
bezierRadiusRatio: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
13
|
+
assemblyName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
14
|
+
} & {
|
|
15
|
+
/**
|
|
16
|
+
* #property
|
|
17
|
+
*/
|
|
18
|
+
type: import("mobx-state-tree").ISimpleType<"ChordVariantDisplay">;
|
|
19
|
+
/**
|
|
20
|
+
* #property
|
|
21
|
+
*/
|
|
22
|
+
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
23
|
+
}, {
|
|
24
|
+
rendererTypeName: string;
|
|
25
|
+
error: unknown;
|
|
26
|
+
} & {
|
|
27
|
+
readonly RenderingComponent: import("react").FC<{
|
|
28
|
+
model: {
|
|
29
|
+
id: string;
|
|
30
|
+
type: string;
|
|
31
|
+
rpcDriverName: string | undefined;
|
|
32
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
33
|
+
rendererTypeName: string;
|
|
34
|
+
error: unknown;
|
|
35
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
36
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
37
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
38
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
39
|
+
}, {
|
|
40
|
+
rendererTypeName: string;
|
|
41
|
+
error: unknown;
|
|
42
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
43
|
+
onHorizontalScroll?: Function | undefined;
|
|
44
|
+
blockState?: Record<string, any> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
readonly DisplayBlurb: import("react").FC<{
|
|
47
|
+
model: {
|
|
48
|
+
id: string;
|
|
49
|
+
type: string;
|
|
50
|
+
rpcDriverName: string | undefined;
|
|
51
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
52
|
+
rendererTypeName: string;
|
|
53
|
+
error: unknown;
|
|
54
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
55
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
56
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
57
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
58
|
+
}, {
|
|
59
|
+
rendererTypeName: string;
|
|
60
|
+
error: unknown;
|
|
61
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
62
|
+
}> | null;
|
|
63
|
+
readonly adapterConfig: any;
|
|
64
|
+
readonly parentTrack: any;
|
|
65
|
+
renderProps(): any;
|
|
66
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
67
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
68
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
69
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
70
|
+
regionCannotBeRendered(): undefined;
|
|
71
|
+
} & {
|
|
72
|
+
setError(error?: unknown): void;
|
|
73
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
74
|
+
reload(): void;
|
|
75
|
+
} & {
|
|
76
|
+
filled: boolean;
|
|
77
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
78
|
+
data: undefined;
|
|
79
|
+
message: string;
|
|
80
|
+
renderingComponent: import("@jbrowse/core/util").AnyReactComponentType | undefined;
|
|
81
|
+
refNameMap: Record<string, string> | undefined;
|
|
82
|
+
} & {
|
|
83
|
+
onChordClick(feature: import("@jbrowse/core/util").Feature): void;
|
|
84
|
+
} & {
|
|
85
|
+
readonly blockDefinitions: any;
|
|
86
|
+
renderProps(): any;
|
|
87
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
88
|
+
isCompatibleWithRenderer(renderer: import("@jbrowse/core/pluggableElementTypes").RendererType): boolean;
|
|
89
|
+
readonly selectedFeatureId: string | undefined;
|
|
90
|
+
} & {
|
|
91
|
+
renderStarted(): void;
|
|
92
|
+
renderSuccess({ message, data, reactElement, renderingComponent, }: {
|
|
93
|
+
message: string;
|
|
94
|
+
data: any;
|
|
95
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
96
|
+
renderingComponent: import("@jbrowse/core/util").AnyReactComponentType;
|
|
97
|
+
}): void;
|
|
98
|
+
renderError(error: unknown): void;
|
|
99
|
+
setRefNameMap(refNameMap: Record<string, string>): void;
|
|
100
|
+
} & {
|
|
101
|
+
afterAttach(): void;
|
|
102
|
+
} & {
|
|
103
|
+
/**
|
|
104
|
+
* #getter
|
|
105
|
+
*/
|
|
106
|
+
readonly rendererTypeName: any;
|
|
107
|
+
/**
|
|
108
|
+
* #method
|
|
109
|
+
*/
|
|
110
|
+
renderProps(): Record<string, unknown>;
|
|
111
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
112
|
+
export default stateModelFactory;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { BaseChordDisplayModel } from '@jbrowse/plugin-circular-view';
|
|
2
|
+
import { ConfigurationReference, } from '@jbrowse/core/configuration';
|
|
3
|
+
import { types } from 'mobx-state-tree';
|
|
4
|
+
import { getContainingView } from '@jbrowse/core/util';
|
|
5
|
+
import { getParentRenderProps } from '@jbrowse/core/util/tracks';
|
|
6
|
+
/**
|
|
7
|
+
* #stateModel ChordVariantDisplay
|
|
8
|
+
* extends `BaseChordDisplay`
|
|
9
|
+
*/
|
|
10
|
+
const stateModelFactory = (configSchema) => {
|
|
11
|
+
return types
|
|
12
|
+
.compose('ChordVariantDisplay', BaseChordDisplayModel, types.model({
|
|
13
|
+
/**
|
|
14
|
+
* #property
|
|
15
|
+
*/
|
|
16
|
+
type: types.literal('ChordVariantDisplay'),
|
|
17
|
+
/**
|
|
18
|
+
* #property
|
|
19
|
+
*/
|
|
20
|
+
configuration: ConfigurationReference(configSchema),
|
|
21
|
+
}))
|
|
22
|
+
.views(self => ({
|
|
23
|
+
/**
|
|
24
|
+
* #getter
|
|
25
|
+
*/
|
|
26
|
+
get rendererTypeName() {
|
|
27
|
+
return self.configuration.renderer.type;
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* #method
|
|
31
|
+
*/
|
|
32
|
+
renderProps() {
|
|
33
|
+
const view = getContainingView(self);
|
|
34
|
+
return {
|
|
35
|
+
...getParentRenderProps(self),
|
|
36
|
+
rpcDriverName: self.rpcDriverName,
|
|
37
|
+
displayModel: self,
|
|
38
|
+
bezierRadius: view.radiusPx * self.bezierRadiusRatio,
|
|
39
|
+
radius: view.radiusPx,
|
|
40
|
+
// @ts-ignore
|
|
41
|
+
blockDefinitions: this.blockDefinitions,
|
|
42
|
+
config: self.configuration.renderer,
|
|
43
|
+
onChordClick: self.onChordClick,
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
}));
|
|
47
|
+
};
|
|
48
|
+
// http://localhost:3000/test_data/hs37d5.HG002-SequelII-CCS.sv.vcf.gz.tbi
|
|
49
|
+
// render request is for 1.5x the current viewing window
|
|
50
|
+
// tracks all have a height
|
|
51
|
+
//
|
|
52
|
+
export default stateModelFactory;
|
|
53
|
+
//# sourceMappingURL=stateModelFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stateModelFactory.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/stateModelFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AACrE,OAAO,EAEL,sBAAsB,GACvB,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE;;;GAGG;AACH,MAAM,iBAAiB,GAAG,CAAC,YAAwC,EAAE,EAAE;IACrE,OAAO,KAAK;SACT,OAAO,CACN,qBAAqB,EACrB,qBAAqB,EACrB,KAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC;QAC1C;;WAEG;QACH,aAAa,EAAE,sBAAsB,CAAC,YAAY,CAAC;KACpD,CAAC,CACH;SACA,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACd;;WAEG;QACH,IAAI,gBAAgB;YAClB,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAA;QACzC,CAAC;QAED;;WAEG;QACH,WAAW;YACT,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAA;YACpC,OAAO;gBACL,GAAG,oBAAoB,CAAC,IAAI,CAAC;gBAC7B,aAAa,EAAE,IAAI,CAAC,aAAa;gBACjC,YAAY,EAAE,IAAI;gBAClB,YAAY,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,iBAAiB;gBACpD,MAAM,EAAE,IAAI,CAAC,QAAQ;gBAErB,aAAa;gBACb,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;gBACvC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,QAAQ;gBACnC,YAAY,EAAE,IAAI,CAAC,YAAY;aAChC,CAAA;QACH,CAAC;KACF,CAAC,CAAC,CAAA;AACP,CAAC,CAAA;AAED,0EAA0E;AAE1E,wDAAwD;AAExD,2BAA2B;AAC3B,EAAE;AACF,eAAe,iBAAiB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
export
|
|
4
|
-
export declare type LinearVariantDisplayConfigModel = ReturnType<typeof
|
|
3
|
+
export default function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
4
|
+
export declare type LinearVariantDisplayConfigModel = ReturnType<typeof configSchemaF>;
|
|
5
5
|
export declare type LinearVariantDisplayConfig = Instance<LinearVariantDisplayConfigModel>;
|
|
@@ -1,7 +1,19 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
2
|
import { linearBasicDisplayConfigSchemaFactory } from '@jbrowse/plugin-linear-genome-view';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* #config LinearVariantDisplay
|
|
5
|
+
* mostly empty, this display type is very much
|
|
6
|
+
* like a `FeatureTrack` with a `LinearBasicDisplay` except it has a custom
|
|
7
|
+
* feature details widget
|
|
8
|
+
*/
|
|
9
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
10
|
+
export default function configSchemaF(pluginManager) {
|
|
11
|
+
return ConfigurationSchema('LinearVariantDisplay', {}, {
|
|
12
|
+
/**
|
|
13
|
+
* #baseConfiguration
|
|
14
|
+
*/
|
|
15
|
+
baseConfiguration: linearBasicDisplayConfigSchemaFactory(pluginManager),
|
|
16
|
+
explicitlyTyped: true,
|
|
17
|
+
});
|
|
6
18
|
}
|
|
7
19
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAA;AAE1F,
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/configSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAA;AAE1F;;;;;GAKG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,aAA4B;IAChE,OAAO,mBAAmB,CACxB,sBAAsB,EACtB,EAAE,EACF;QACE;;WAEG;QACH,iBAAiB,EAAE,qCAAqC,CAAC,aAAa,CAAC;QACvE,eAAe,EAAE,IAAI;KACtB,CACF,CAAA;AACH,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { LinearVariantDisplayConfigFactory } from './configSchema';
|
|
2
1
|
import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view';
|
|
3
2
|
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
4
3
|
import stateModelFactory from './model';
|
|
4
|
+
import configSchemaF from './configSchema';
|
|
5
5
|
export default (pluginManager) => {
|
|
6
6
|
pluginManager.addDisplayType(() => {
|
|
7
|
-
const configSchema =
|
|
7
|
+
const configSchema = configSchemaF(pluginManager);
|
|
8
8
|
return new DisplayType({
|
|
9
9
|
name: 'LinearVariantDisplay',
|
|
10
10
|
configSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAA;AAC/E,OAAO,WAAW,MAAM,iDAAiD,CAAA;AACzE,OAAO,iBAAiB,MAAM,SAAS,CAAA;AACvC,OAAO,aAAa,MAAM,gBAAgB,CAAA;AAE1C,eAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,aAAa,CAAC,aAAa,CAAC,CAAA;QACjD,OAAO,IAAI,WAAW,CAAC;YACrB,IAAI,EAAE,sBAAsB;YAC5B,YAAY;YACZ,UAAU,EAAE,iBAAiB,CAAC,YAAY,CAAC;YAC3C,SAAS,EAAE,cAAc;YACzB,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,0BAA0B;SAC3C,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
3
3
|
import { LinearVariantDisplayConfigModel } from './configSchema';
|
|
4
|
-
|
|
4
|
+
/**
|
|
5
|
+
* #stateModel LinearVariantDisplay
|
|
6
|
+
* extends `LinearBasicDisplay`
|
|
7
|
+
* very similar to basic display, but provides custom widget on feature click
|
|
8
|
+
*/
|
|
9
|
+
export default function stateModelFactory(configSchema: LinearVariantDisplayConfigModel): import("mobx-state-tree").IModelType<{
|
|
5
10
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
6
11
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
7
12
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -56,14 +61,24 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
56
61
|
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
57
62
|
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
58
63
|
} & {
|
|
59
|
-
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
|
|
60
|
-
|
|
64
|
+
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">; /**
|
|
65
|
+
* #property
|
|
66
|
+
*/
|
|
67
|
+
trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>; /**
|
|
68
|
+
* #property
|
|
69
|
+
*/
|
|
61
70
|
trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
62
71
|
trackDisplayMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
63
72
|
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
64
73
|
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
65
74
|
} & {
|
|
75
|
+
/**
|
|
76
|
+
* #property
|
|
77
|
+
*/
|
|
66
78
|
type: import("mobx-state-tree").ISimpleType<"LinearVariantDisplay">;
|
|
79
|
+
/**
|
|
80
|
+
* #property
|
|
81
|
+
*/
|
|
67
82
|
configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
|
|
68
83
|
}, {
|
|
69
84
|
rendererTypeName: string;
|
|
@@ -216,5 +231,8 @@ export default function (configSchema: LinearVariantDisplayConfigModel): import(
|
|
|
216
231
|
};
|
|
217
232
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
218
233
|
} & {
|
|
234
|
+
/**
|
|
235
|
+
* #action
|
|
236
|
+
*/
|
|
219
237
|
selectFeature(feature: Feature): Promise<void>;
|
|
220
238
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|