@jbrowse/plugin-alignments 2.7.1 → 2.8.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/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +1 -6
- package/dist/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +1 -1
- package/dist/LinearPileupDisplay/model.d.ts +2 -6
- package/dist/shared/BaseDisplayComponent.js +13 -16
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.d.ts +1 -6
- package/esm/LinearPileupDisplay/SharedLinearPileupDisplayMixin.js +1 -1
- package/esm/LinearPileupDisplay/model.d.ts +2 -6
- package/esm/shared/BaseDisplayComponent.js +13 -16
- package/package.json +2 -2
|
@@ -233,14 +233,9 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
233
233
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
234
234
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
235
235
|
} & {
|
|
236
|
-
featureIdUnderMouse: string | undefined;
|
|
237
|
-
* #property
|
|
238
|
-
*/
|
|
236
|
+
featureIdUnderMouse: string | undefined;
|
|
239
237
|
contextMenuFeature: Feature | undefined;
|
|
240
238
|
} & {
|
|
241
|
-
/**
|
|
242
|
-
* #property
|
|
243
|
-
*/
|
|
244
239
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
245
240
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
246
241
|
} & {
|
|
@@ -530,7 +530,7 @@ function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
530
530
|
// feature.id that was returned e.g. that the user hasn't
|
|
531
531
|
// moused over to a new position during the async operation
|
|
532
532
|
// above
|
|
533
|
-
if (self.featureIdUnderMouse === feature.uniqueId) {
|
|
533
|
+
if (self.featureIdUnderMouse === (feature === null || feature === void 0 ? void 0 : feature.uniqueId)) {
|
|
534
534
|
self.setFeatureUnderMouse(new util_1.SimpleFeature(feature));
|
|
535
535
|
}
|
|
536
536
|
}
|
|
@@ -244,16 +244,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
244
244
|
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
245
245
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
246
246
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
247
|
-
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
248
|
-
* #getter
|
|
249
|
-
*/
|
|
247
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
250
248
|
} & {
|
|
251
249
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
252
250
|
deleteBlock(key: string): void;
|
|
253
251
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
254
|
-
clearFeatureSelection(): void;
|
|
255
|
-
* #method
|
|
256
|
-
*/
|
|
252
|
+
clearFeatureSelection(): void;
|
|
257
253
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
258
254
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
259
255
|
} & {
|
|
@@ -9,22 +9,19 @@ const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view"
|
|
|
9
9
|
const mui_1 = require("tss-react/mui");
|
|
10
10
|
const mobx_react_1 = require("mobx-react");
|
|
11
11
|
const util_1 = require("@jbrowse/core/util");
|
|
12
|
-
const useStyles = (0, mui_1.makeStyles)()(theme => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
},
|
|
26
|
-
};
|
|
27
|
-
});
|
|
12
|
+
const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
13
|
+
loading: {
|
|
14
|
+
backgroundColor: theme.palette.background.default,
|
|
15
|
+
backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${theme.palette.action.disabledBackground} 5px, ${theme.palette.action.disabledBackground} 10px)`,
|
|
16
|
+
position: 'absolute',
|
|
17
|
+
bottom: 0,
|
|
18
|
+
height: 50,
|
|
19
|
+
width: 300,
|
|
20
|
+
right: 0,
|
|
21
|
+
pointerEvents: 'none',
|
|
22
|
+
textAlign: 'center',
|
|
23
|
+
},
|
|
24
|
+
}));
|
|
28
25
|
const BaseDisplayComponent = (0, mobx_react_1.observer)(function ({ model, children, }) {
|
|
29
26
|
const { error, regionTooLarge } = model;
|
|
30
27
|
return error ? (react_1.default.createElement(plugin_linear_genome_view_1.BlockMsg, { message: `${error}`, severity: "error", buttonText: "Reload", action: model.reload })) : regionTooLarge ? (model.regionCannotBeRendered()) : (react_1.default.createElement(DataDisplay, { model: model }, children));
|
|
@@ -233,14 +233,9 @@ export declare function SharedLinearPileupDisplayMixin(configSchema: AnyConfigur
|
|
|
233
233
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
234
234
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
235
235
|
} & {
|
|
236
|
-
featureIdUnderMouse: string | undefined;
|
|
237
|
-
* #property
|
|
238
|
-
*/
|
|
236
|
+
featureIdUnderMouse: string | undefined;
|
|
239
237
|
contextMenuFeature: Feature | undefined;
|
|
240
238
|
} & {
|
|
241
|
-
/**
|
|
242
|
-
* #property
|
|
243
|
-
*/
|
|
244
239
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
245
240
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
246
241
|
} & {
|
|
@@ -501,7 +501,7 @@ export function SharedLinearPileupDisplayMixin(configSchema) {
|
|
|
501
501
|
// feature.id that was returned e.g. that the user hasn't
|
|
502
502
|
// moused over to a new position during the async operation
|
|
503
503
|
// above
|
|
504
|
-
if (self.featureIdUnderMouse === feature.uniqueId) {
|
|
504
|
+
if (self.featureIdUnderMouse === (feature === null || feature === void 0 ? void 0 : feature.uniqueId)) {
|
|
505
505
|
self.setFeatureUnderMouse(new SimpleFeature(feature));
|
|
506
506
|
}
|
|
507
507
|
}
|
|
@@ -244,16 +244,12 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
244
244
|
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
245
245
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
246
246
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
247
|
-
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
248
|
-
* #getter
|
|
249
|
-
*/
|
|
247
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
250
248
|
} & {
|
|
251
249
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
252
250
|
deleteBlock(key: string): void;
|
|
253
251
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
254
|
-
clearFeatureSelection(): void;
|
|
255
|
-
* #method
|
|
256
|
-
*/
|
|
252
|
+
clearFeatureSelection(): void;
|
|
257
253
|
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
258
254
|
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
259
255
|
} & {
|
|
@@ -4,22 +4,19 @@ import { BlockMsg, } from '@jbrowse/plugin-linear-genome-view';
|
|
|
4
4
|
import { makeStyles } from 'tss-react/mui';
|
|
5
5
|
import { observer } from 'mobx-react';
|
|
6
6
|
import { getContainingView } from '@jbrowse/core/util';
|
|
7
|
-
const useStyles = makeStyles()(theme => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
},
|
|
21
|
-
};
|
|
22
|
-
});
|
|
7
|
+
const useStyles = makeStyles()(theme => ({
|
|
8
|
+
loading: {
|
|
9
|
+
backgroundColor: theme.palette.background.default,
|
|
10
|
+
backgroundImage: `repeating-linear-gradient(45deg, transparent, transparent 5px, ${theme.palette.action.disabledBackground} 5px, ${theme.palette.action.disabledBackground} 10px)`,
|
|
11
|
+
position: 'absolute',
|
|
12
|
+
bottom: 0,
|
|
13
|
+
height: 50,
|
|
14
|
+
width: 300,
|
|
15
|
+
right: 0,
|
|
16
|
+
pointerEvents: 'none',
|
|
17
|
+
textAlign: 'center',
|
|
18
|
+
},
|
|
19
|
+
}));
|
|
23
20
|
const BaseDisplayComponent = observer(function ({ model, children, }) {
|
|
24
21
|
const { error, regionTooLarge } = model;
|
|
25
22
|
return error ? (React.createElement(BlockMsg, { message: `${error}`, severity: "error", buttonText: "Reload", action: model.reload })) : regionTooLarge ? (model.regionCannotBeRendered()) : (React.createElement(DataDisplay, { model: model }, children));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-alignments",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0",
|
|
4
4
|
"description": "JBrowse 2 alignments adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"distModule": "esm/index.js",
|
|
64
64
|
"srcModule": "src/index.ts",
|
|
65
65
|
"module": "esm/index.js",
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "ee8c2bdc8bd4f1a70b1eefda984f04a2830d9ca0"
|
|
67
67
|
}
|