@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
|
@@ -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;
|
|
@@ -4,18 +4,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
7
|
-
const ChordVariantDisplay_1 = __importDefault(require("./models/ChordVariantDisplay"));
|
|
8
7
|
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
8
|
+
const configSchema_1 = __importDefault(require("./models/configSchema"));
|
|
9
|
+
const stateModelFactory_1 = __importDefault(require("./models/stateModelFactory"));
|
|
9
10
|
exports.default = (pluginManager) => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
11
|
+
pluginManager.addDisplayType(() => {
|
|
12
|
+
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
13
|
+
const stateModel = (0, stateModelFactory_1.default)(configSchema);
|
|
14
|
+
return new DisplayType_1.default({
|
|
15
|
+
name: 'ChordVariantDisplay',
|
|
16
|
+
configSchema,
|
|
17
|
+
stateModel,
|
|
18
|
+
trackType: 'VariantTrack',
|
|
19
|
+
viewType: 'CircularView',
|
|
20
|
+
ReactComponent: plugin_circular_view_1.BaseChordDisplayComponent,
|
|
21
|
+
});
|
|
19
22
|
});
|
|
20
23
|
};
|
|
21
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ChordVariantDisplay/index.ts"],"names":[],"mappings":";;;;;AACA,wEAAyE;AACzE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ChordVariantDisplay/index.ts"],"names":[],"mappings":";;;;;AACA,wEAAyE;AACzE,kGAAyE;AACzE,yEAAiD;AACjD,mFAAoD;AAEpD,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,IAAA,sBAAa,EAAC,aAAa,CAAC,CAAA;QACjD,MAAM,UAAU,GAAG,IAAA,2BAAW,EAAC,YAAY,CAAC,CAAA;QAC5C,OAAO,IAAI,qBAAW,CAAC;YACrB,IAAI,EAAE,qBAAqB;YAC3B,YAAY;YACZ,UAAU;YACV,SAAS,EAAE,cAAc;YACzB,QAAQ,EAAE,cAAc;YACxB,cAAc,EAAE,gDAAyB;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,23 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
4
7
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
8
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
9
|
const util_1 = require("@jbrowse/core/util");
|
|
7
10
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
11
|
+
// locals
|
|
12
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
13
|
+
/**
|
|
14
|
+
* #stateModel ChordVariantDisplay
|
|
15
|
+
* extends `BaseChordDisplay`
|
|
16
|
+
*/
|
|
8
17
|
const ChordVariantDisplayF = (pluginManager) => {
|
|
9
|
-
const configSchema = (0,
|
|
10
|
-
renderer: mobx_state_tree_1.types.optional(pluginManager.pluggableConfigSchemaType('renderer'), { type: 'StructuralVariantChordRenderer' }),
|
|
11
|
-
}, { baseConfiguration: plugin_circular_view_1.baseChordDisplayConfig, explicitlyTyped: true });
|
|
18
|
+
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
12
19
|
const stateModel = mobx_state_tree_1.types
|
|
13
20
|
.compose('ChordVariantDisplay', plugin_circular_view_1.BaseChordDisplayModel, mobx_state_tree_1.types.model({
|
|
21
|
+
/**
|
|
22
|
+
* #property
|
|
23
|
+
*/
|
|
14
24
|
type: mobx_state_tree_1.types.literal('ChordVariantDisplay'),
|
|
25
|
+
/**
|
|
26
|
+
* #property
|
|
27
|
+
*/
|
|
15
28
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
16
29
|
}))
|
|
17
30
|
.views(self => ({
|
|
31
|
+
/**
|
|
32
|
+
* #getter
|
|
33
|
+
*/
|
|
18
34
|
get rendererTypeName() {
|
|
19
35
|
return self.configuration.renderer.type;
|
|
20
36
|
},
|
|
37
|
+
/**
|
|
38
|
+
* #method
|
|
39
|
+
*/
|
|
21
40
|
renderProps() {
|
|
22
41
|
const view = (0, util_1.getContainingView)(self);
|
|
23
42
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChordVariantDisplay.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/ChordVariantDisplay.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ChordVariantDisplay.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/ChordVariantDisplay.ts"],"names":[],"mappings":";;;;;AAAA,wEAAqE;AACrE,+DAAoE;AACpE,qDAAuC;AACvC,6CAAsD;AACtD,sDAAgE;AAGhE,SAAS;AACT,kEAA0C;AAE1C;;;GAGG;AACH,MAAM,oBAAoB,GAAG,CAAC,aAA4B,EAAE,EAAE;IAC5D,MAAM,YAAY,GAAG,IAAA,sBAAa,EAAC,aAAa,CAAC,CAAA;IACjD,MAAM,UAAU,GAAG,uBAAK;SACrB,OAAO,CACN,qBAAqB,EACrB,4CAAqB,EACrB,uBAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,IAAI,EAAE,uBAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC;QAC1C;;WAEG;QACH,aAAa,EAAE,IAAA,sCAAsB,EAAC,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,IAAA,wBAAiB,EAAC,IAAI,CAAC,CAAA;YACpC,OAAO;gBACL,GAAG,IAAA,6BAAoB,EAAC,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,kBAAe,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
+
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
5
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
|
+
/**
|
|
7
|
+
* #config ChordVariantDisplay
|
|
8
|
+
*/
|
|
9
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
10
|
+
function stateModelFactory(pluginManager) {
|
|
11
|
+
return (0, configuration_1.ConfigurationSchema)('ChordVariantDisplay', {
|
|
12
|
+
/**
|
|
13
|
+
* #slot
|
|
14
|
+
*/
|
|
15
|
+
renderer: mobx_state_tree_1.types.optional(pluginManager.pluggableConfigSchemaType('renderer'), { type: 'StructuralVariantChordRenderer' }),
|
|
16
|
+
}, {
|
|
17
|
+
/**
|
|
18
|
+
* #baseConfiguration
|
|
19
|
+
*/
|
|
20
|
+
baseConfiguration: plugin_circular_view_1.baseChordDisplayConfig,
|
|
21
|
+
explicitlyTyped: true,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.default = stateModelFactory;
|
|
25
|
+
//# sourceMappingURL=configSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAEjE,wEAAsE;AACtE,qDAAuC;AAEvC;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,SAAS,iBAAiB,CAAC,aAA4B;IACrD,OAAO,IAAA,mCAAmB,EACxB,qBAAqB,EACrB;QACE;;WAEG;QACH,QAAQ,EAAE,uBAAK,CAAC,QAAQ,CACtB,aAAa,CAAC,yBAAyB,CAAC,UAAU,CAAC,EACnD,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAC3C;KACF,EACD;QACE;;WAEG;QACH,iBAAiB,EAAE,6CAAsB;QACzC,eAAe,EAAE,IAAI;KACtB,CACF,CAAA;AACH,CAAC;AAED,kBAAe,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,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const plugin_circular_view_1 = require("@jbrowse/plugin-circular-view");
|
|
4
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
|
+
const util_1 = require("@jbrowse/core/util");
|
|
7
|
+
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
8
|
+
/**
|
|
9
|
+
* #stateModel ChordVariantDisplay
|
|
10
|
+
* extends `BaseChordDisplay`
|
|
11
|
+
*/
|
|
12
|
+
const stateModelFactory = (configSchema) => {
|
|
13
|
+
return mobx_state_tree_1.types
|
|
14
|
+
.compose('ChordVariantDisplay', plugin_circular_view_1.BaseChordDisplayModel, mobx_state_tree_1.types.model({
|
|
15
|
+
/**
|
|
16
|
+
* #property
|
|
17
|
+
*/
|
|
18
|
+
type: mobx_state_tree_1.types.literal('ChordVariantDisplay'),
|
|
19
|
+
/**
|
|
20
|
+
* #property
|
|
21
|
+
*/
|
|
22
|
+
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
23
|
+
}))
|
|
24
|
+
.views(self => ({
|
|
25
|
+
/**
|
|
26
|
+
* #getter
|
|
27
|
+
*/
|
|
28
|
+
get rendererTypeName() {
|
|
29
|
+
return self.configuration.renderer.type;
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* #method
|
|
33
|
+
*/
|
|
34
|
+
renderProps() {
|
|
35
|
+
const view = (0, util_1.getContainingView)(self);
|
|
36
|
+
return {
|
|
37
|
+
...(0, tracks_1.getParentRenderProps)(self),
|
|
38
|
+
rpcDriverName: self.rpcDriverName,
|
|
39
|
+
displayModel: self,
|
|
40
|
+
bezierRadius: view.radiusPx * self.bezierRadiusRatio,
|
|
41
|
+
radius: view.radiusPx,
|
|
42
|
+
// @ts-ignore
|
|
43
|
+
blockDefinitions: this.blockDefinitions,
|
|
44
|
+
config: self.configuration.renderer,
|
|
45
|
+
onChordClick: self.onChordClick,
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
}));
|
|
49
|
+
};
|
|
50
|
+
// http://localhost:3000/test_data/hs37d5.HG002-SequelII-CCS.sv.vcf.gz.tbi
|
|
51
|
+
// render request is for 1.5x the current viewing window
|
|
52
|
+
// tracks all have a height
|
|
53
|
+
//
|
|
54
|
+
exports.default = stateModelFactory;
|
|
55
|
+
//# sourceMappingURL=stateModelFactory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stateModelFactory.js","sourceRoot":"","sources":["../../../src/ChordVariantDisplay/models/stateModelFactory.ts"],"names":[],"mappings":";;AAAA,wEAAqE;AACrE,+DAGoC;AACpC,qDAAuC;AACvC,6CAAsD;AACtD,sDAAgE;AAEhE;;;GAGG;AACH,MAAM,iBAAiB,GAAG,CAAC,YAAwC,EAAE,EAAE;IACrE,OAAO,uBAAK;SACT,OAAO,CACN,qBAAqB,EACrB,4CAAqB,EACrB,uBAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,IAAI,EAAE,uBAAK,CAAC,OAAO,CAAC,qBAAqB,CAAC;QAC1C;;WAEG;QACH,aAAa,EAAE,IAAA,sCAAsB,EAAC,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,IAAA,wBAAiB,EAAC,IAAI,CAAC,CAAA;YACpC,OAAO;gBACL,GAAG,IAAA,6BAAoB,EAAC,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,kBAAe,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,11 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LinearVariantDisplayConfigFactory = void 0;
|
|
4
3
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
4
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
/**
|
|
6
|
+
* #config LinearVariantDisplay
|
|
7
|
+
* mostly empty, this display type is very much
|
|
8
|
+
* like a `FeatureTrack` with a `LinearBasicDisplay` except it has a custom
|
|
9
|
+
* feature details widget
|
|
10
|
+
*/
|
|
11
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
12
|
+
function configSchemaF(pluginManager) {
|
|
13
|
+
return (0, configuration_1.ConfigurationSchema)('LinearVariantDisplay', {}, {
|
|
14
|
+
/**
|
|
15
|
+
* #baseConfiguration
|
|
16
|
+
*/
|
|
17
|
+
baseConfiguration: (0, plugin_linear_genome_view_1.linearBasicDisplayConfigSchemaFactory)(pluginManager),
|
|
18
|
+
explicitlyTyped: true,
|
|
19
|
+
});
|
|
9
20
|
}
|
|
10
|
-
exports.
|
|
21
|
+
exports.default = configSchemaF;
|
|
11
22
|
//# sourceMappingURL=configSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/configSchema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AAGjE,kFAA0F;AAE1F;;;;;GAKG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,SAAwB,aAAa,CAAC,aAA4B;IAChE,OAAO,IAAA,mCAAmB,EACxB,sBAAsB,EACtB,EAAE,EACF;QACE;;WAEG;QACH,iBAAiB,EAAE,IAAA,iEAAqC,EAAC,aAAa,CAAC;QACvE,eAAe,EAAE,IAAI;KACtB,CACF,CAAA;AACH,CAAC;AAZD,gCAYC"}
|
|
@@ -3,13 +3,13 @@ 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 configSchema_1 = require("./configSchema");
|
|
7
6
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
8
7
|
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
9
8
|
const model_1 = __importDefault(require("./model"));
|
|
9
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
10
10
|
exports.default = (pluginManager) => {
|
|
11
11
|
pluginManager.addDisplayType(() => {
|
|
12
|
-
const configSchema = (0, configSchema_1.
|
|
12
|
+
const configSchema = (0, configSchema_1.default)(pluginManager);
|
|
13
13
|
return new DisplayType_1.default({
|
|
14
14
|
name: 'LinearVariantDisplay',
|
|
15
15
|
configSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/index.ts"],"names":[],"mappings":";;;;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/index.ts"],"names":[],"mappings":";;;;;AACA,kFAA+E;AAC/E,kGAAyE;AACzE,oDAAuC;AACvC,kEAA0C;AAE1C,kBAAe,CAAC,aAA4B,EAAE,EAAE;IAC9C,aAAa,CAAC,cAAc,CAAC,GAAG,EAAE;QAChC,MAAM,YAAY,GAAG,IAAA,sBAAa,EAAC,aAAa,CAAC,CAAA;QACjD,OAAO,IAAI,qBAAW,CAAC;YACrB,IAAI,EAAE,sBAAsB;YAC5B,YAAY;YACZ,UAAU,EAAE,IAAA,eAAiB,EAAC,YAAY,CAAC;YAC3C,SAAS,EAAE,cAAc;YACzB,QAAQ,EAAE,kBAAkB;YAC5B,cAAc,EAAE,sDAA0B;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>;
|
|
@@ -5,13 +5,27 @@ const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
|
5
5
|
const util_1 = require("@jbrowse/core/util");
|
|
6
6
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
7
7
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* #stateModel LinearVariantDisplay
|
|
10
|
+
* extends `LinearBasicDisplay`
|
|
11
|
+
* very similar to basic display, but provides custom widget on feature click
|
|
12
|
+
*/
|
|
13
|
+
function stateModelFactory(configSchema) {
|
|
9
14
|
return mobx_state_tree_1.types
|
|
10
15
|
.compose('LinearVariantDisplay', (0, plugin_linear_genome_view_1.linearBasicDisplayModelFactory)(configSchema), mobx_state_tree_1.types.model({
|
|
16
|
+
/**
|
|
17
|
+
* #property
|
|
18
|
+
*/
|
|
11
19
|
type: mobx_state_tree_1.types.literal('LinearVariantDisplay'),
|
|
20
|
+
/**
|
|
21
|
+
* #property
|
|
22
|
+
*/
|
|
12
23
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
13
24
|
}))
|
|
14
25
|
.actions(self => ({
|
|
26
|
+
/**
|
|
27
|
+
* #action
|
|
28
|
+
*/
|
|
15
29
|
async selectFeature(feature) {
|
|
16
30
|
const session = (0, util_1.getSession)(self);
|
|
17
31
|
if ((0, util_1.isSessionModelWithWidgets)(session)) {
|
|
@@ -34,5 +48,5 @@ function default_1(configSchema) {
|
|
|
34
48
|
},
|
|
35
49
|
}));
|
|
36
50
|
}
|
|
37
|
-
exports.default =
|
|
51
|
+
exports.default = stateModelFactory;
|
|
38
52
|
//# sourceMappingURL=model.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/model.ts"],"names":[],"mappings":";;AAAA,+DAA6E;AAC7E,sDAA2D;AAC3D,6CAK2B;AAG3B,kFAAmF;AACnF,qDAAuC;AAGvC,
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/LinearVariantDisplay/model.ts"],"names":[],"mappings":";;AAAA,+DAA6E;AAC7E,sDAA2D;AAC3D,6CAK2B;AAG3B,kFAAmF;AACnF,qDAAuC;AAGvC;;;;GAIG;AACH,SAAwB,iBAAiB,CACvC,YAA6C;IAE7C,OAAO,uBAAK;SACT,OAAO,CACN,sBAAsB,EACtB,IAAA,0DAA8B,EAAC,YAAY,CAAC,EAC5C,uBAAK,CAAC,KAAK,CAAC;QACV;;WAEG;QACH,IAAI,EAAE,uBAAK,CAAC,OAAO,CAAC,sBAAsB,CAAC;QAC3C;;WAEG;QACH,aAAa,EAAE,IAAA,sCAAsB,EAAC,YAAY,CAAC;KACpD,CAAC,CACH;SACA,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAChB;;WAEG;QACH,KAAK,CAAC,aAAa,CAAC,OAAgB;YAClC,MAAM,OAAO,GAAG,IAAA,iBAAU,EAAC,IAAI,CAAC,CAAA;YAChC,IAAI,IAAA,gCAAyB,EAAC,OAAO,CAAC,EAAE;gBACtC,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAA;gBAC9B,MAAM,SAAS,GAAG,IAAA,wBAAe,EAAC,IAAI,CAAC,CAAA;gBACvC,MAAM,KAAK,GAAG,IAAA,yBAAkB,EAAC,IAAI,CAAC,CAAA;gBACtC,MAAM,IAAI,GAAG,IAAA,wBAAiB,EAAC,IAAI,CAAC,CAAA;gBACpC,MAAM,aAAa,GAAG,IAAA,uBAAO,EAAC,KAAK,EAAE,SAAS,CAAC,CAAA;gBAC/C,MAAM,YAAY,GAAG,MAAM,UAAU,CAAC,IAAI,CACxC,SAAS,EACT,iBAAiB,EACjB;oBACE,aAAa;iBACd,CACF,CAAA;gBACD,OAAO,CAAC,UAAU,CAChB,OAAO,CAAC,SAAS,CAAC,sBAAsB,EAAE,gBAAgB,EAAE;oBAC1D,WAAW,EAAE,OAAO,CAAC,MAAM,EAAE;oBAC7B,IAAI;oBACJ,KAAK;oBACL,YAAY;iBACb,CAAC,CACH,CAAA;aACF;YAED,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC/B,CAAC;KACF,CAAC,CAAC,CAAA;AACP,CAAC;AAlDD,oCAkDC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const configuration_1 = require("@jbrowse/core/configuration");
|
|
4
|
+
/**
|
|
5
|
+
* #config StructuralVariantChordRenderer
|
|
6
|
+
*/
|
|
7
|
+
function x() { } // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
8
|
+
const configSchema = (0, configuration_1.ConfigurationSchema)('StructuralVariantChordRenderer', {
|
|
9
|
+
/**
|
|
10
|
+
* #slot
|
|
11
|
+
*/
|
|
12
|
+
strokeColor: {
|
|
13
|
+
type: 'color',
|
|
14
|
+
description: 'the line color of each arc',
|
|
15
|
+
defaultValue: 'rgba(255,133,0,0.32)',
|
|
16
|
+
contextVariable: ['feature'],
|
|
17
|
+
},
|
|
18
|
+
/**
|
|
19
|
+
* #slot
|
|
20
|
+
*/
|
|
21
|
+
strokeColorSelected: {
|
|
22
|
+
type: 'color',
|
|
23
|
+
description: 'the line color of an arc that has been selected',
|
|
24
|
+
defaultValue: 'black',
|
|
25
|
+
contextVariable: ['feature'],
|
|
26
|
+
},
|
|
27
|
+
/**
|
|
28
|
+
* #slot
|
|
29
|
+
*/
|
|
30
|
+
strokeColorHover: {
|
|
31
|
+
type: 'color',
|
|
32
|
+
description: 'the line color of an arc that is being hovered over with the mouse',
|
|
33
|
+
defaultValue: '#555',
|
|
34
|
+
contextVariable: ['feature'],
|
|
35
|
+
},
|
|
36
|
+
}, { explicitlyTyped: true });
|
|
37
|
+
exports.default = configSchema;
|
|
38
|
+
//# sourceMappingURL=configSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configSchema.js","sourceRoot":"","sources":["../../src/StructuralVariantChordRenderer/configSchema.ts"],"names":[],"mappings":";;AAAA,+DAAiE;AACjE;;GAEG;AACH,SAAS,CAAC,KAAI,CAAC,CAAC,wDAAwD;AAExE,MAAM,YAAY,GAAG,IAAA,mCAAmB,EACtC,gCAAgC,EAChC;IACE;;OAEG;IACH,WAAW,EAAE;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,4BAA4B;QACzC,YAAY,EAAE,sBAAsB;QACpC,eAAe,EAAE,CAAC,SAAS,CAAC;KAC7B;IACD;;OAEG;IACH,mBAAmB,EAAE;QACnB,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,iDAAiD;QAC9D,YAAY,EAAE,OAAO;QACrB,eAAe,EAAE,CAAC,SAAS,CAAC;KAC7B;IACD;;OAEG;IACH,gBAAgB,EAAE;QAChB,IAAI,EAAE,OAAO;QACb,WAAW,EACT,oEAAoE;QACtE,YAAY,EAAE,MAAM;QACpB,eAAe,EAAE,CAAC,SAAS,CAAC;KAC7B;CACF,EACD,EAAE,eAAe,EAAE,IAAI,EAAE,CAC1B,CAAA;AAED,kBAAe,YAAY,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import ChordRendererType from '@jbrowse/core/pluggableElementTypes/renderers/CircularChordRendererType';
|
|
2
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
declare const ChordRendererConfigF: (pluginManager: PluginManager) =>
|
|
2
|
+
declare const ChordRendererConfigF: (pluginManager: PluginManager) => void;
|
|
4
3
|
export default ChordRendererConfigF;
|
|
@@ -4,35 +4,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const CircularChordRendererType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/renderers/CircularChordRendererType"));
|
|
7
|
-
const
|
|
7
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
8
8
|
const ReactComponent_1 = __importDefault(require("./ReactComponent"));
|
|
9
9
|
const ChordRendererConfigF = (pluginManager) => {
|
|
10
|
-
|
|
11
|
-
strokeColor: {
|
|
12
|
-
type: 'color',
|
|
13
|
-
description: 'the line color of each arc',
|
|
14
|
-
defaultValue: 'rgba(255,133,0,0.32)',
|
|
15
|
-
contextVariable: ['feature'],
|
|
16
|
-
},
|
|
17
|
-
strokeColorSelected: {
|
|
18
|
-
type: 'color',
|
|
19
|
-
description: 'the line color of an arc that has been selected',
|
|
20
|
-
defaultValue: 'black',
|
|
21
|
-
contextVariable: ['feature'],
|
|
22
|
-
},
|
|
23
|
-
strokeColorHover: {
|
|
24
|
-
type: 'color',
|
|
25
|
-
description: 'the line color of an arc that is being hovered over with the mouse',
|
|
26
|
-
defaultValue: '#555',
|
|
27
|
-
contextVariable: ['feature'],
|
|
28
|
-
},
|
|
29
|
-
}, { explicitlyTyped: true });
|
|
30
|
-
return new CircularChordRendererType_1.default({
|
|
10
|
+
pluginManager.addRendererType(() => new CircularChordRendererType_1.default({
|
|
31
11
|
name: 'StructuralVariantChordRenderer',
|
|
32
12
|
ReactComponent: ReactComponent_1.default,
|
|
33
|
-
configSchema,
|
|
13
|
+
configSchema: configSchema_1.default,
|
|
34
14
|
pluginManager,
|
|
35
|
-
});
|
|
15
|
+
}));
|
|
36
16
|
};
|
|
37
17
|
exports.default = ChordRendererConfigF;
|
|
38
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/StructuralVariantChordRenderer/index.ts"],"names":[],"mappings":";;;;;AAAA,wIAAuG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/StructuralVariantChordRenderer/index.ts"],"names":[],"mappings":";;;;;AAAA,wIAAuG;AAEvG,kEAAyC;AACzC,sEAA6C;AAE7C,MAAM,oBAAoB,GAAG,CAAC,aAA4B,EAAE,EAAE;IAC5D,aAAa,CAAC,eAAe,CAC3B,GAAG,EAAE,CACH,IAAI,mCAAiB,CAAC;QACpB,IAAI,EAAE,gCAAgC;QACtC,cAAc,EAAd,wBAAc;QACd,YAAY,EAAZ,sBAAY;QACZ,aAAa;KACd,CAAC,CACL,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,oBAAoB,CAAA"}
|