@jbrowse/plugin-lollipop 2.8.0 → 2.10.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/LinearLollipopDisplay/configSchema.d.ts +6 -0
- package/dist/LinearLollipopDisplay/configSchema.js +12 -1
- package/dist/LinearLollipopDisplay/index.d.ts +2 -2
- package/dist/LinearLollipopDisplay/index.js +18 -5
- package/dist/LinearLollipopDisplay/model.d.ts +38 -5
- package/dist/LinearLollipopDisplay/model.js +23 -0
- package/dist/LollipopRenderer/index.d.ts +2 -3
- package/dist/LollipopRenderer/index.js +35 -7
- package/dist/index.js +4 -44
- package/esm/LinearLollipopDisplay/configSchema.d.ts +6 -0
- package/esm/LinearLollipopDisplay/configSchema.js +12 -1
- package/esm/LinearLollipopDisplay/index.d.ts +2 -2
- package/esm/LinearLollipopDisplay/index.js +17 -2
- package/esm/LinearLollipopDisplay/model.d.ts +38 -5
- package/esm/LinearLollipopDisplay/model.js +23 -0
- package/esm/LollipopRenderer/index.d.ts +2 -3
- package/esm/LollipopRenderer/index.js +11 -3
- package/esm/index.js +4 -21
- package/package.json +2 -2
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
/**
|
|
3
|
+
* #config LinearLollipopDisplay
|
|
4
|
+
*/
|
|
2
5
|
export declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
+
/**
|
|
7
|
+
* #slot
|
|
8
|
+
*/
|
|
3
9
|
renderer: import("mobx-state-tree").IAnyModelType;
|
|
4
10
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
5
11
|
maxFeatureScreenDensity: {
|
|
@@ -3,8 +3,19 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.configSchemaFactory = void 0;
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
6
|
+
/**
|
|
7
|
+
* #config LinearLollipopDisplay
|
|
8
|
+
*/
|
|
6
9
|
function configSchemaFactory(pluginManager) {
|
|
7
|
-
return (0, configuration_1.ConfigurationSchema)('LinearLollipopDisplay', {
|
|
10
|
+
return (0, configuration_1.ConfigurationSchema)('LinearLollipopDisplay', {
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
14
|
+
renderer: pluginManager.pluggableConfigSchemaType('renderer'),
|
|
15
|
+
}, {
|
|
16
|
+
/**
|
|
17
|
+
* #baseConfiguration
|
|
18
|
+
*/
|
|
8
19
|
baseConfiguration: plugin_linear_genome_view_1.baseLinearDisplayConfigSchema,
|
|
9
20
|
explicitlyTyped: true,
|
|
10
21
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
export default function LinearLollipopDisplayF(pluginManager: PluginManager): void;
|
|
@@ -1,7 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
4
|
+
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
5
|
+
const model_1 = require("./model");
|
|
6
|
+
const configSchema_1 = require("./configSchema");
|
|
7
|
+
function LinearLollipopDisplayF(pluginManager) {
|
|
8
|
+
pluginManager.addDisplayType(() => {
|
|
9
|
+
const configSchema = (0, configSchema_1.configSchemaFactory)(pluginManager);
|
|
10
|
+
return new pluggableElementTypes_1.DisplayType({
|
|
11
|
+
name: 'LinearLollipopDisplay',
|
|
12
|
+
configSchema,
|
|
13
|
+
stateModel: (0, model_1.stateModelFactory)(configSchema),
|
|
14
|
+
trackType: 'LollipopTrack',
|
|
15
|
+
viewType: 'LinearGenomeView',
|
|
16
|
+
ReactComponent: plugin_linear_genome_view_1.BaseLinearDisplayComponent,
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
exports.default = LinearLollipopDisplayF;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
+
/**
|
|
4
|
+
* #stateModel LinearLollipopDisplay
|
|
5
|
+
* extends
|
|
6
|
+
* - [BaseLinearDisplay](../baselineardisplay)
|
|
7
|
+
*/
|
|
3
8
|
export declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
4
9
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5
10
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -28,7 +33,9 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
28
33
|
}, {
|
|
29
34
|
renderInProgress: AbortController | undefined;
|
|
30
35
|
filled: boolean;
|
|
31
|
-
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
36
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined; /**
|
|
37
|
+
* #getter
|
|
38
|
+
*/
|
|
32
39
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
33
40
|
layout: any;
|
|
34
41
|
status: string;
|
|
@@ -80,11 +87,19 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
80
87
|
};
|
|
81
88
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
82
89
|
} & {
|
|
90
|
+
/**
|
|
91
|
+
* #property
|
|
92
|
+
*/
|
|
83
93
|
type: import("mobx-state-tree").ISimpleType<"LinearLollipopDisplay">;
|
|
94
|
+
/**
|
|
95
|
+
* #property
|
|
96
|
+
*/
|
|
84
97
|
configuration: AnyConfigurationSchemaType;
|
|
85
98
|
}, {
|
|
86
99
|
rendererTypeName: string;
|
|
87
|
-
error: unknown;
|
|
100
|
+
error: unknown; /**
|
|
101
|
+
* #property
|
|
102
|
+
*/
|
|
88
103
|
message: string | undefined;
|
|
89
104
|
} & {
|
|
90
105
|
readonly RenderingComponent: import("react").FC<{
|
|
@@ -97,7 +112,9 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
97
112
|
error: unknown;
|
|
98
113
|
message: string | undefined;
|
|
99
114
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
100
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
115
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>; /**
|
|
116
|
+
* #getter
|
|
117
|
+
*/
|
|
101
118
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
102
119
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
103
120
|
}, {
|
|
@@ -151,7 +168,9 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
151
168
|
} & {
|
|
152
169
|
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
153
170
|
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
154
|
-
currStatsBpPerPx: number;
|
|
171
|
+
currStatsBpPerPx: number; /**
|
|
172
|
+
* #getter
|
|
173
|
+
*/
|
|
155
174
|
} & {
|
|
156
175
|
readonly currentBytesRequested: number;
|
|
157
176
|
readonly currentFeatureScreenDensity: number;
|
|
@@ -207,9 +226,21 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
207
226
|
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
208
227
|
afterAttach(): void;
|
|
209
228
|
} & {
|
|
229
|
+
/**
|
|
230
|
+
* #getter
|
|
231
|
+
*/
|
|
210
232
|
readonly blockType: string;
|
|
233
|
+
/**
|
|
234
|
+
* #getter
|
|
235
|
+
*/
|
|
211
236
|
readonly renderDelay: number;
|
|
237
|
+
/**
|
|
238
|
+
* #method
|
|
239
|
+
*/
|
|
212
240
|
renderProps(): any;
|
|
241
|
+
/**
|
|
242
|
+
* #getter
|
|
243
|
+
*/
|
|
213
244
|
readonly rendererTypeName: any;
|
|
214
245
|
}, {
|
|
215
246
|
type: string;
|
|
@@ -241,7 +272,9 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
241
272
|
}, {
|
|
242
273
|
renderInProgress: AbortController | undefined;
|
|
243
274
|
filled: boolean;
|
|
244
|
-
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
275
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined; /**
|
|
276
|
+
* #getter
|
|
277
|
+
*/
|
|
245
278
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
246
279
|
layout: any;
|
|
247
280
|
status: string;
|
|
@@ -4,21 +4,41 @@ exports.stateModelFactory = void 0;
|
|
|
4
4
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
5
5
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
6
6
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
7
|
+
/**
|
|
8
|
+
* #stateModel LinearLollipopDisplay
|
|
9
|
+
* extends
|
|
10
|
+
* - [BaseLinearDisplay](../baselineardisplay)
|
|
11
|
+
*/
|
|
7
12
|
function stateModelFactory(configSchema) {
|
|
8
13
|
return mobx_state_tree_1.types
|
|
9
14
|
.compose('LinearLollipopDisplay', plugin_linear_genome_view_1.BaseLinearDisplay, mobx_state_tree_1.types.model({
|
|
15
|
+
/**
|
|
16
|
+
* #property
|
|
17
|
+
*/
|
|
10
18
|
type: mobx_state_tree_1.types.literal('LinearLollipopDisplay'),
|
|
19
|
+
/**
|
|
20
|
+
* #property
|
|
21
|
+
*/
|
|
11
22
|
configuration: (0, configuration_1.ConfigurationReference)(configSchema),
|
|
12
23
|
}))
|
|
13
24
|
.views(self => {
|
|
14
25
|
const { renderProps: superRenderProps } = self;
|
|
15
26
|
return {
|
|
27
|
+
/**
|
|
28
|
+
* #getter
|
|
29
|
+
*/
|
|
16
30
|
get blockType() {
|
|
17
31
|
return 'dynamicBlocks';
|
|
18
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* #getter
|
|
35
|
+
*/
|
|
19
36
|
get renderDelay() {
|
|
20
37
|
return 500;
|
|
21
38
|
},
|
|
39
|
+
/**
|
|
40
|
+
* #method
|
|
41
|
+
*/
|
|
22
42
|
renderProps() {
|
|
23
43
|
return {
|
|
24
44
|
...superRenderProps(),
|
|
@@ -26,6 +46,9 @@ function stateModelFactory(configSchema) {
|
|
|
26
46
|
config: self.configuration.renderer,
|
|
27
47
|
};
|
|
28
48
|
},
|
|
49
|
+
/**
|
|
50
|
+
* #getter
|
|
51
|
+
*/
|
|
29
52
|
get rendererTypeName() {
|
|
30
53
|
return self.configuration.renderer.type;
|
|
31
54
|
},
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export { default } from './LollipopRenderer';
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
export default function LollipopRendererF(pluginManager: PluginManager): void;
|
|
@@ -1,12 +1,40 @@
|
|
|
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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
29
|
+
const react_1 = require("react");
|
|
30
|
+
const LollipopRenderer_1 = __importDefault(require("./LollipopRenderer"));
|
|
31
|
+
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
32
|
+
function LollipopRendererF(pluginManager) {
|
|
33
|
+
pluginManager.addRendererType(() => new LollipopRenderer_1.default({
|
|
34
|
+
name: 'LollipopRenderer',
|
|
35
|
+
ReactComponent: (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/LollipopRendering')))),
|
|
36
|
+
configSchema: configSchema_1.default,
|
|
37
|
+
pluginManager,
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
exports.default = LollipopRendererF;
|
package/dist/index.js
CHANGED
|
@@ -1,59 +1,19 @@
|
|
|
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
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const DisplayType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/DisplayType"));
|
|
30
6
|
const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const LollipopRenderer_1 = __importStar(require("./LollipopRenderer"));
|
|
7
|
+
const LinearLollipopDisplay_1 = __importDefault(require("./LinearLollipopDisplay"));
|
|
8
|
+
const LollipopRenderer_1 = __importDefault(require("./LollipopRenderer"));
|
|
34
9
|
class default_1 extends Plugin_1.default {
|
|
35
10
|
constructor() {
|
|
36
11
|
super(...arguments);
|
|
37
12
|
this.name = 'LollipopPlugin';
|
|
38
13
|
}
|
|
39
14
|
install(pluginManager) {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
ReactComponent: LollipopRenderer_1.ReactComponent,
|
|
43
|
-
configSchema: LollipopRenderer_1.configSchema,
|
|
44
|
-
pluginManager,
|
|
45
|
-
}));
|
|
46
|
-
pluginManager.addDisplayType(() => {
|
|
47
|
-
const configSchema = (0, LinearLollipopDisplay_1.configSchemaFactory)(pluginManager);
|
|
48
|
-
return new DisplayType_1.default({
|
|
49
|
-
name: 'LinearLollipopDisplay',
|
|
50
|
-
configSchema,
|
|
51
|
-
stateModel: (0, LinearLollipopDisplay_1.stateModelFactory)(configSchema),
|
|
52
|
-
trackType: 'LollipopTrack',
|
|
53
|
-
viewType: 'LinearGenomeView',
|
|
54
|
-
ReactComponent: plugin_linear_genome_view_1.BaseLinearDisplayComponent,
|
|
55
|
-
});
|
|
56
|
-
});
|
|
15
|
+
(0, LollipopRenderer_1.default)(pluginManager);
|
|
16
|
+
(0, LinearLollipopDisplay_1.default)(pluginManager);
|
|
57
17
|
}
|
|
58
18
|
}
|
|
59
19
|
exports.default = default_1;
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
/**
|
|
3
|
+
* #config LinearLollipopDisplay
|
|
4
|
+
*/
|
|
2
5
|
export declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
+
/**
|
|
7
|
+
* #slot
|
|
8
|
+
*/
|
|
3
9
|
renderer: import("mobx-state-tree").IAnyModelType;
|
|
4
10
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
5
11
|
maxFeatureScreenDensity: {
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
2
|
import { baseLinearDisplayConfigSchema } from '@jbrowse/plugin-linear-genome-view';
|
|
3
|
+
/**
|
|
4
|
+
* #config LinearLollipopDisplay
|
|
5
|
+
*/
|
|
3
6
|
export function configSchemaFactory(pluginManager) {
|
|
4
|
-
return ConfigurationSchema('LinearLollipopDisplay', {
|
|
7
|
+
return ConfigurationSchema('LinearLollipopDisplay', {
|
|
8
|
+
/**
|
|
9
|
+
* #slot
|
|
10
|
+
*/
|
|
11
|
+
renderer: pluginManager.pluggableConfigSchemaType('renderer'),
|
|
12
|
+
}, {
|
|
13
|
+
/**
|
|
14
|
+
* #baseConfiguration
|
|
15
|
+
*/
|
|
5
16
|
baseConfiguration: baseLinearDisplayConfigSchema,
|
|
6
17
|
explicitlyTyped: true,
|
|
7
18
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
export default function LinearLollipopDisplayF(pluginManager: PluginManager): void;
|
|
@@ -1,2 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { DisplayType } from '@jbrowse/core/pluggableElementTypes';
|
|
2
|
+
import { BaseLinearDisplayComponent } from '@jbrowse/plugin-linear-genome-view';
|
|
3
|
+
import { stateModelFactory } from './model';
|
|
4
|
+
import { configSchemaFactory } from './configSchema';
|
|
5
|
+
export default function LinearLollipopDisplayF(pluginManager) {
|
|
6
|
+
pluginManager.addDisplayType(() => {
|
|
7
|
+
const configSchema = configSchemaFactory(pluginManager);
|
|
8
|
+
return new DisplayType({
|
|
9
|
+
name: 'LinearLollipopDisplay',
|
|
10
|
+
configSchema,
|
|
11
|
+
stateModel: stateModelFactory(configSchema),
|
|
12
|
+
trackType: 'LollipopTrack',
|
|
13
|
+
viewType: 'LinearGenomeView',
|
|
14
|
+
ReactComponent: BaseLinearDisplayComponent,
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
+
/**
|
|
4
|
+
* #stateModel LinearLollipopDisplay
|
|
5
|
+
* extends
|
|
6
|
+
* - [BaseLinearDisplay](../baselineardisplay)
|
|
7
|
+
*/
|
|
3
8
|
export declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
4
9
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
5
10
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -28,7 +33,9 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
28
33
|
}, {
|
|
29
34
|
renderInProgress: AbortController | undefined;
|
|
30
35
|
filled: boolean;
|
|
31
|
-
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
36
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined; /**
|
|
37
|
+
* #getter
|
|
38
|
+
*/
|
|
32
39
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
33
40
|
layout: any;
|
|
34
41
|
status: string;
|
|
@@ -80,11 +87,19 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
80
87
|
};
|
|
81
88
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
82
89
|
} & {
|
|
90
|
+
/**
|
|
91
|
+
* #property
|
|
92
|
+
*/
|
|
83
93
|
type: import("mobx-state-tree").ISimpleType<"LinearLollipopDisplay">;
|
|
94
|
+
/**
|
|
95
|
+
* #property
|
|
96
|
+
*/
|
|
84
97
|
configuration: AnyConfigurationSchemaType;
|
|
85
98
|
}, {
|
|
86
99
|
rendererTypeName: string;
|
|
87
|
-
error: unknown;
|
|
100
|
+
error: unknown; /**
|
|
101
|
+
* #property
|
|
102
|
+
*/
|
|
88
103
|
message: string | undefined;
|
|
89
104
|
} & {
|
|
90
105
|
readonly RenderingComponent: import("react").FC<{
|
|
@@ -97,7 +112,9 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
97
112
|
error: unknown;
|
|
98
113
|
message: string | undefined;
|
|
99
114
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
100
|
-
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
115
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>; /**
|
|
116
|
+
* #getter
|
|
117
|
+
*/
|
|
101
118
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
102
119
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
103
120
|
}, {
|
|
@@ -151,7 +168,9 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
151
168
|
} & {
|
|
152
169
|
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
153
170
|
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
154
|
-
currStatsBpPerPx: number;
|
|
171
|
+
currStatsBpPerPx: number; /**
|
|
172
|
+
* #getter
|
|
173
|
+
*/
|
|
155
174
|
} & {
|
|
156
175
|
readonly currentBytesRequested: number;
|
|
157
176
|
readonly currentFeatureScreenDensity: number;
|
|
@@ -207,9 +226,21 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
207
226
|
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
208
227
|
afterAttach(): void;
|
|
209
228
|
} & {
|
|
229
|
+
/**
|
|
230
|
+
* #getter
|
|
231
|
+
*/
|
|
210
232
|
readonly blockType: string;
|
|
233
|
+
/**
|
|
234
|
+
* #getter
|
|
235
|
+
*/
|
|
211
236
|
readonly renderDelay: number;
|
|
237
|
+
/**
|
|
238
|
+
* #method
|
|
239
|
+
*/
|
|
212
240
|
renderProps(): any;
|
|
241
|
+
/**
|
|
242
|
+
* #getter
|
|
243
|
+
*/
|
|
213
244
|
readonly rendererTypeName: any;
|
|
214
245
|
}, {
|
|
215
246
|
type: string;
|
|
@@ -241,7 +272,9 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
241
272
|
}, {
|
|
242
273
|
renderInProgress: AbortController | undefined;
|
|
243
274
|
filled: boolean;
|
|
244
|
-
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
275
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined; /**
|
|
276
|
+
* #getter
|
|
277
|
+
*/
|
|
245
278
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
246
279
|
layout: any;
|
|
247
280
|
status: string;
|
|
@@ -1,21 +1,41 @@
|
|
|
1
1
|
import { ConfigurationReference, } from '@jbrowse/core/configuration';
|
|
2
2
|
import { types } from 'mobx-state-tree';
|
|
3
3
|
import { BaseLinearDisplay } from '@jbrowse/plugin-linear-genome-view';
|
|
4
|
+
/**
|
|
5
|
+
* #stateModel LinearLollipopDisplay
|
|
6
|
+
* extends
|
|
7
|
+
* - [BaseLinearDisplay](../baselineardisplay)
|
|
8
|
+
*/
|
|
4
9
|
export function stateModelFactory(configSchema) {
|
|
5
10
|
return types
|
|
6
11
|
.compose('LinearLollipopDisplay', BaseLinearDisplay, types.model({
|
|
12
|
+
/**
|
|
13
|
+
* #property
|
|
14
|
+
*/
|
|
7
15
|
type: types.literal('LinearLollipopDisplay'),
|
|
16
|
+
/**
|
|
17
|
+
* #property
|
|
18
|
+
*/
|
|
8
19
|
configuration: ConfigurationReference(configSchema),
|
|
9
20
|
}))
|
|
10
21
|
.views(self => {
|
|
11
22
|
const { renderProps: superRenderProps } = self;
|
|
12
23
|
return {
|
|
24
|
+
/**
|
|
25
|
+
* #getter
|
|
26
|
+
*/
|
|
13
27
|
get blockType() {
|
|
14
28
|
return 'dynamicBlocks';
|
|
15
29
|
},
|
|
30
|
+
/**
|
|
31
|
+
* #getter
|
|
32
|
+
*/
|
|
16
33
|
get renderDelay() {
|
|
17
34
|
return 500;
|
|
18
35
|
},
|
|
36
|
+
/**
|
|
37
|
+
* #method
|
|
38
|
+
*/
|
|
19
39
|
renderProps() {
|
|
20
40
|
return {
|
|
21
41
|
...superRenderProps(),
|
|
@@ -23,6 +43,9 @@ export function stateModelFactory(configSchema) {
|
|
|
23
43
|
config: self.configuration.renderer,
|
|
24
44
|
};
|
|
25
45
|
},
|
|
46
|
+
/**
|
|
47
|
+
* #getter
|
|
48
|
+
*/
|
|
26
49
|
get rendererTypeName() {
|
|
27
50
|
return self.configuration.renderer.type;
|
|
28
51
|
},
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export { default } from './LollipopRenderer';
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
export default function LollipopRendererF(pluginManager: PluginManager): void;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { lazy } from 'react';
|
|
2
|
+
import LollipopRenderer from './LollipopRenderer';
|
|
3
|
+
import configSchema from './configSchema';
|
|
4
|
+
export default function LollipopRendererF(pluginManager) {
|
|
5
|
+
pluginManager.addRendererType(() => new LollipopRenderer({
|
|
6
|
+
name: 'LollipopRenderer',
|
|
7
|
+
ReactComponent: lazy(() => import('./components/LollipopRendering')),
|
|
8
|
+
configSchema,
|
|
9
|
+
pluginManager,
|
|
10
|
+
}));
|
|
11
|
+
}
|
package/esm/index.js
CHANGED
|
@@ -1,30 +1,13 @@
|
|
|
1
|
-
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
2
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import LollipopRenderer, { configSchema as lollipopRendererConfigSchema, ReactComponent as LollipopRendererReactComponent, } from './LollipopRenderer';
|
|
2
|
+
import LinearLollipopDisplayF from './LinearLollipopDisplay';
|
|
3
|
+
import LollipopRendererF from './LollipopRenderer';
|
|
6
4
|
export default class extends Plugin {
|
|
7
5
|
constructor() {
|
|
8
6
|
super(...arguments);
|
|
9
7
|
this.name = 'LollipopPlugin';
|
|
10
8
|
}
|
|
11
9
|
install(pluginManager) {
|
|
12
|
-
pluginManager
|
|
13
|
-
|
|
14
|
-
ReactComponent: LollipopRendererReactComponent,
|
|
15
|
-
configSchema: lollipopRendererConfigSchema,
|
|
16
|
-
pluginManager,
|
|
17
|
-
}));
|
|
18
|
-
pluginManager.addDisplayType(() => {
|
|
19
|
-
const configSchema = linearLollipopDisplayConfigSchemaFactory(pluginManager);
|
|
20
|
-
return new DisplayType({
|
|
21
|
-
name: 'LinearLollipopDisplay',
|
|
22
|
-
configSchema,
|
|
23
|
-
stateModel: LinearLollipopDisplayStateModelFactory(configSchema),
|
|
24
|
-
trackType: 'LollipopTrack',
|
|
25
|
-
viewType: 'LinearGenomeView',
|
|
26
|
-
ReactComponent: BaseLinearDisplayComponent,
|
|
27
|
-
});
|
|
28
|
-
});
|
|
10
|
+
LollipopRendererF(pluginManager);
|
|
11
|
+
LinearLollipopDisplayF(pluginManager);
|
|
29
12
|
}
|
|
30
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-lollipop",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "JBrowse 2 plugin for lollipops",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "223d8bfb68fd1bacaf22852639ad5920f1b7f43b"
|
|
55
55
|
}
|