@jbrowse/plugin-linear-genome-view 2.4.1 → 2.5.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/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -4
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -43
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +3 -4
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +9 -9
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
- package/dist/BaseLinearDisplay/components/Tooltip.d.ts +0 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +81 -35
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +105 -143
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/dist/BaseLinearDisplay/models/configSchema.d.ts +35 -1
- package/dist/BaseLinearDisplay/models/configSchema.js +9 -0
- package/dist/BaseLinearDisplay/models/configSchema.js.map +1 -1
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +10 -6
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
- package/dist/BaseLinearDisplay/models/util.d.ts +8 -0
- package/dist/BaseLinearDisplay/models/util.js +33 -1
- package/dist/BaseLinearDisplay/models/util.js.map +1 -1
- package/dist/BasicTrack/configSchema.d.ts +73 -1
- package/dist/FeatureTrack/configSchema.d.ts +75 -1
- package/dist/LinearBareDisplay/configSchema.d.ts +28 -1
- package/dist/LinearBareDisplay/index.js +1 -0
- package/dist/LinearBareDisplay/index.js.map +1 -1
- package/dist/LinearBareDisplay/model.d.ts +66 -23
- package/dist/LinearBareDisplay/model.js +2 -2
- package/dist/LinearBareDisplay/model.js.map +1 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -2
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
- package/dist/LinearBasicDisplay/configSchema.d.ts +28 -1
- package/dist/LinearBasicDisplay/configSchema.js +0 -9
- package/dist/LinearBasicDisplay/configSchema.js.map +1 -1
- package/dist/LinearBasicDisplay/index.js +1 -1
- package/dist/LinearBasicDisplay/model.d.ts +76 -36
- package/dist/LinearBasicDisplay/model.js.map +1 -1
- package/dist/LinearGenomeView/components/CenterLine.d.ts +0 -1
- package/dist/LinearGenomeView/components/Cytobands.d.ts +22 -23
- package/dist/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/GetSequenceDialog.js +14 -16
- package/dist/LinearGenomeView/components/GetSequenceDialog.js.map +1 -1
- package/dist/LinearGenomeView/components/Gridlines.d.ts +0 -1
- package/dist/LinearGenomeView/components/Header.d.ts +0 -1
- package/dist/LinearGenomeView/components/HelpDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/ImportForm.d.ts +0 -1
- package/dist/LinearGenomeView/components/ImportForm.js +4 -7
- package/dist/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.d.ts +0 -1
- package/dist/LinearGenomeView/components/LinearGenomeView.js +0 -4
- package/dist/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/dist/LinearGenomeView/components/MiniControls.d.ts +0 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.js +2 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +53 -52
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +0 -1
- package/dist/LinearGenomeView/components/SearchBox.d.ts +0 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.d.ts +5 -3
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +6 -82
- package/dist/LinearGenomeView/components/SearchResultsDialog.js.map +1 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.d.ts +8 -0
- package/dist/LinearGenomeView/components/SearchResultsTable.js +83 -0
- package/dist/LinearGenomeView/components/SearchResultsTable.js.map +1 -0
- package/dist/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +0 -1
- package/dist/LinearGenomeView/components/TrackContainer.js +8 -2
- package/dist/LinearGenomeView/components/TrackContainer.js.map +1 -1
- package/dist/LinearGenomeView/components/TracksContainer.js +5 -7
- package/dist/LinearGenomeView/components/TracksContainer.js.map +1 -1
- package/dist/LinearGenomeView/components/VerticalGuide.d.ts +0 -1
- package/dist/LinearGenomeView/components/ZoomControls.d.ts +0 -1
- package/dist/LinearGenomeView/components/util.js +1 -1
- package/dist/LinearGenomeView/components/util.js.map +1 -1
- package/dist/LinearGenomeView/model.d.ts +49 -36
- package/dist/LinearGenomeView/model.js +121 -198
- package/dist/LinearGenomeView/model.js.map +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -1
- package/dist/LinearGenomeView/util.d.ts +29 -0
- package/dist/LinearGenomeView/util.js +79 -1
- package/dist/LinearGenomeView/util.js.map +1 -1
- package/dist/index.d.ts +201 -106
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -4
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -20
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +3 -4
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +9 -9
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
- package/esm/BaseLinearDisplay/components/Tooltip.d.ts +0 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +81 -35
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +105 -143
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/esm/BaseLinearDisplay/models/configSchema.d.ts +35 -1
- package/esm/BaseLinearDisplay/models/configSchema.js +9 -0
- package/esm/BaseLinearDisplay/models/configSchema.js.map +1 -1
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +10 -6
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
- package/esm/BaseLinearDisplay/models/util.d.ts +8 -0
- package/esm/BaseLinearDisplay/models/util.js +30 -0
- package/esm/BaseLinearDisplay/models/util.js.map +1 -1
- package/esm/BasicTrack/configSchema.d.ts +73 -1
- package/esm/FeatureTrack/configSchema.d.ts +75 -1
- package/esm/LinearBareDisplay/configSchema.d.ts +28 -1
- package/esm/LinearBareDisplay/index.js +1 -0
- package/esm/LinearBareDisplay/index.js.map +1 -1
- package/esm/LinearBareDisplay/model.d.ts +66 -23
- package/esm/LinearBareDisplay/model.js +1 -1
- package/esm/LinearBareDisplay/model.js.map +1 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -2
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
- package/esm/LinearBasicDisplay/configSchema.d.ts +28 -1
- package/esm/LinearBasicDisplay/configSchema.js +0 -9
- package/esm/LinearBasicDisplay/configSchema.js.map +1 -1
- package/esm/LinearBasicDisplay/index.js +1 -1
- package/esm/LinearBasicDisplay/model.d.ts +76 -36
- package/esm/LinearBasicDisplay/model.js.map +1 -1
- package/esm/LinearGenomeView/components/CenterLine.d.ts +0 -1
- package/esm/LinearGenomeView/components/Cytobands.d.ts +22 -23
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +15 -17
- package/esm/LinearGenomeView/components/GetSequenceDialog.js.map +1 -1
- package/esm/LinearGenomeView/components/Gridlines.d.ts +0 -1
- package/esm/LinearGenomeView/components/Header.d.ts +0 -1
- package/esm/LinearGenomeView/components/HelpDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/ImportForm.d.ts +0 -1
- package/esm/LinearGenomeView/components/ImportForm.js +5 -8
- package/esm/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.d.ts +0 -1
- package/esm/LinearGenomeView/components/LinearGenomeView.js +0 -4
- package/esm/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
- package/esm/LinearGenomeView/components/MiniControls.d.ts +0 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.js +2 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js +53 -52
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +0 -1
- package/esm/LinearGenomeView/components/SearchBox.d.ts +0 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +5 -3
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +7 -83
- package/esm/LinearGenomeView/components/SearchResultsDialog.js.map +1 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +8 -0
- package/esm/LinearGenomeView/components/SearchResultsTable.js +77 -0
- package/esm/LinearGenomeView/components/SearchResultsTable.js.map +1 -0
- package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.d.ts +0 -1
- package/esm/LinearGenomeView/components/TrackContainer.js +8 -2
- package/esm/LinearGenomeView/components/TrackContainer.js.map +1 -1
- package/esm/LinearGenomeView/components/TracksContainer.js +5 -7
- package/esm/LinearGenomeView/components/TracksContainer.js.map +1 -1
- package/esm/LinearGenomeView/components/VerticalGuide.d.ts +0 -1
- package/esm/LinearGenomeView/components/ZoomControls.d.ts +0 -1
- package/esm/LinearGenomeView/components/util.js +1 -1
- package/esm/LinearGenomeView/components/util.js.map +1 -1
- package/esm/LinearGenomeView/model.d.ts +49 -36
- package/esm/LinearGenomeView/model.js +122 -199
- package/esm/LinearGenomeView/model.js.map +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGBackground.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.d.ts +0 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +0 -1
- package/esm/LinearGenomeView/util.d.ts +29 -0
- package/esm/LinearGenomeView/util.js +76 -0
- package/esm/LinearGenomeView/util.js.map +1 -1
- package/esm/index.d.ts +201 -106
- package/package.json +3 -3
- package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +8 -28
- package/src/BaseLinearDisplay/components/TooLargeMessage.tsx +13 -11
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +148 -197
- package/src/BaseLinearDisplay/models/configSchema.ts +10 -0
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +19 -13
- package/src/BaseLinearDisplay/models/util.ts +43 -0
- package/src/LinearBareDisplay/index.ts +1 -0
- package/src/LinearBareDisplay/model.ts +1 -1
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +3 -7
- package/src/LinearBasicDisplay/configSchema.ts +0 -10
- package/src/LinearBasicDisplay/index.ts +1 -1
- package/src/LinearBasicDisplay/model.ts +1 -1
- package/src/LinearGenomeView/components/GetSequenceDialog.tsx +15 -25
- package/src/LinearGenomeView/components/ImportForm.tsx +4 -14
- package/src/LinearGenomeView/components/LinearGenomeView.tsx +0 -14
- package/src/LinearGenomeView/components/OverviewScalebar.tsx +2 -1
- package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +122 -82
- package/src/LinearGenomeView/components/SearchResultsDialog.tsx +17 -112
- package/src/LinearGenomeView/components/SearchResultsTable.tsx +121 -0
- package/src/LinearGenomeView/components/TrackContainer.tsx +12 -3
- package/src/LinearGenomeView/components/TracksContainer.tsx +9 -6
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +11 -11
- package/src/LinearGenomeView/components/util.ts +2 -1
- package/src/LinearGenomeView/index.test.ts +10 -12
- package/src/LinearGenomeView/model.ts +163 -236
- package/src/LinearGenomeView/util.ts +98 -0
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
|
|
3
2
|
declare const useStyles: (params: void, styleOverrides?: {
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
3
|
+
props: any;
|
|
7
4
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
5
|
} | undefined) => {
|
|
9
6
|
classes: Record<"linearBlocks" | "heightOverflowed", string>;
|
|
@@ -1,32 +1,9 @@
|
|
|
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 react_1 =
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
30
7
|
const mui_1 = require("tss-react/mui");
|
|
31
8
|
const mobx_react_1 = require("mobx-react");
|
|
32
9
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
@@ -48,40 +25,28 @@ const useStyles = (0, mui_1.makeStyles)()(theme => {
|
|
|
48
25
|
});
|
|
49
26
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
50
27
|
const LoadingMessage = (0, mobx_react_1.observer)(({ model }) => {
|
|
51
|
-
// only show the loading message after 300ms to prevent excessive flickering
|
|
52
|
-
const [shown, setShown] = (0, react_1.useState)(false);
|
|
53
28
|
const { classes } = useStyles();
|
|
54
|
-
(0, react_1.useEffect)(() => {
|
|
55
|
-
let killed = false;
|
|
56
|
-
const timeout = setTimeout(() => {
|
|
57
|
-
if (!killed) {
|
|
58
|
-
setShown(true);
|
|
59
|
-
}
|
|
60
|
-
}, 300);
|
|
61
|
-
return () => {
|
|
62
|
-
clearTimeout(timeout);
|
|
63
|
-
killed = true;
|
|
64
|
-
};
|
|
65
|
-
}, []);
|
|
66
29
|
const { status: blockStatus } = model;
|
|
67
30
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
68
31
|
const { message: displayStatus } = (0, mobx_state_tree_1.getParent)(model, 2);
|
|
69
32
|
const status = displayStatus || blockStatus;
|
|
70
|
-
return (react_1.default.createElement(
|
|
71
|
-
react_1.default.createElement(ui_1.LoadingEllipses, { message: status })))
|
|
33
|
+
return (react_1.default.createElement("div", { className: classes.loading },
|
|
34
|
+
react_1.default.createElement(ui_1.LoadingEllipses, { message: status })));
|
|
72
35
|
});
|
|
73
36
|
const ServerSideRenderedBlockContent = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
74
37
|
if (model.error) {
|
|
75
38
|
return (react_1.default.createElement(BlockMsg_1.default, { message: `${model.error}`, severity: "error", buttonText: "reload", icon: react_1.default.createElement(Refresh_1.default, null), action: model.reload }));
|
|
76
39
|
}
|
|
77
|
-
if (model.message) {
|
|
40
|
+
else if (model.message) {
|
|
78
41
|
// the message can be a fully rendered react component, e.g. the region too large message
|
|
79
42
|
return react_1.default.isValidElement(model.message) ? (model.message) : (react_1.default.createElement(BlockMsg_1.default, { message: `${model.message}`, severity: "info" }));
|
|
80
43
|
}
|
|
81
|
-
if (!model.filled) {
|
|
44
|
+
else if (!model.filled) {
|
|
82
45
|
return react_1.default.createElement(LoadingMessage, { model: model });
|
|
83
46
|
}
|
|
84
|
-
|
|
47
|
+
else {
|
|
48
|
+
return model.reactElement;
|
|
49
|
+
}
|
|
85
50
|
});
|
|
86
51
|
exports.default = ServerSideRenderedBlockContent;
|
|
87
52
|
//# sourceMappingURL=ServerSideRenderedBlockContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSideRenderedBlockContent.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ServerSideRenderedBlockContent.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,uCAA0C;AAC1C,2CAAqC;AACrC,qDAA2C;AAC3C,yCAAkD;AAElD,QAAQ;AACR,0EAAqD;AAErD,SAAS;AACT,0DAAiC;AAEjC,MAAM,SAAS,GAAG,IAAA,gBAAU,GAAE,CAAC,KAAK,CAAC,EAAE;IACrC,MAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAA;IAClD,OAAO;QACL,OAAO,EAAE;YACP,WAAW,EAAE,OAAO;YACpB,eAAe,EAAE,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO;YACjD,eAAe,EAAE,kEAAkE,EAAE,SAAS,EAAE,QAAQ;YACxG,SAAS,EAAE,QAAQ;SACpB;KACF,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,8DAA8D;AAC9D,MAAM,cAAc,GAAG,IAAA,qBAAQ,EAAC,CAAC,EAAE,KAAK,EAAkB,EAAE,EAAE;IAC5D,MAAM,EAAE,OAAO,EAAE,GAAG,SAAS,EAAE,CAAA;IAC/B,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAA;IACrC,8DAA8D;IAC9D,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,IAAA,2BAAS,EAAM,KAAK,EAAE,CAAC,CAAC,CAAA;IAC3D,MAAM,MAAM,GAAG,aAAa,IAAI,WAAW,CAAA;IAC3C,OAAO,CACL,uCAAK,SAAS,EAAE,OAAO,CAAC,OAAO;QAC7B,8BAAC,oBAAe,IAAC,OAAO,EAAE,MAAM,GAAI,CAChC,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,IAAA,qBAAQ,EAAC,UAAU,EACxD,KAAK,GAIN;IACC,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,OAAO,CACL,8BAAC,kBAAQ,IACP,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,EACzB,QAAQ,EAAC,OAAO,EAChB,UAAU,EAAC,QAAQ,EACnB,IAAI,EAAE,8BAAC,iBAAW,OAAG,EACrB,MAAM,EAAE,KAAK,CAAC,MAAM,GACpB,CACH,CAAA;KACF;SAAM,IAAI,KAAK,CAAC,OAAO,EAAE;QACxB,yFAAyF;QACzF,OAAO,eAAK,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAC3C,KAAK,CAAC,OAAO,CACd,CAAC,CAAC,CAAC,CACF,8BAAC,kBAAQ,IAAC,OAAO,EAAE,GAAG,KAAK,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAC,MAAM,GAAG,CAC1D,CAAA;KACF;SAAM,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;QACxB,OAAO,8BAAC,cAAc,IAAC,KAAK,EAAE,KAAK,GAAI,CAAA;KACxC;SAAM;QACL,OAAO,KAAK,CAAC,YAAY,CAAA;KAC1B;AACH,CAAC,CAAC,CAAA;AAEF,kBAAe,8BAA8B,CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
import { Stats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
1
|
+
import { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
3
2
|
declare function TooLargeMessage({ model, }: {
|
|
4
3
|
model: {
|
|
5
4
|
regionTooLargeReason: string;
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
featureDensityStats?: FeatureDensityStats;
|
|
6
|
+
setFeatureDensityStatsLimit: (s?: FeatureDensityStats) => void;
|
|
8
7
|
reload: () => void;
|
|
9
8
|
};
|
|
10
9
|
}): JSX.Element;
|
|
@@ -4,19 +4,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
|
+
// locals
|
|
7
8
|
const BlockMsg_1 = __importDefault(require("../components/BlockMsg"));
|
|
8
9
|
function TooLargeMessage({ model, }) {
|
|
9
10
|
const { regionTooLargeReason } = model;
|
|
10
11
|
return (react_1.default.createElement(BlockMsg_1.default, { severity: "warning", action: () => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
Zoom in to see features or force load (may be slow).` }));
|
|
12
|
+
model.setFeatureDensityStatsLimit(model.featureDensityStats);
|
|
13
|
+
model.reload();
|
|
14
|
+
}, buttonText: "Force load", message: [
|
|
15
|
+
regionTooLargeReason,
|
|
16
|
+
'Zoom in to see features or force load (may be slow)',
|
|
17
|
+
]
|
|
18
|
+
.filter(f => !!f)
|
|
19
|
+
.join('. ') }));
|
|
20
20
|
}
|
|
21
21
|
exports.default = TooLargeMessage;
|
|
22
22
|
//# sourceMappingURL=TooLargeMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooLargeMessage.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/TooLargeMessage.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;
|
|
1
|
+
{"version":3,"file":"TooLargeMessage.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/TooLargeMessage.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AAGzB,SAAS;AACT,sEAA6C;AAE7C,SAAS,eAAe,CAAC,EACvB,KAAK,GAQN;IACC,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAA;IACtC,OAAO,CACL,8BAAC,kBAAQ,IACP,QAAQ,EAAC,SAAS,EAClB,MAAM,EAAE,GAAG,EAAE;YACX,KAAK,CAAC,2BAA2B,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAAA;YAC5D,KAAK,CAAC,MAAM,EAAE,CAAA;QAChB,CAAC,EACD,UAAU,EAAC,YAAY,EACvB,OAAO,EAAE;YACP,oBAAoB;YACpB,qDAAqD;SACtD;aACE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;aAChB,IAAI,CAAC,IAAI,CAAC,GACb,CACH,CAAA;AACH,CAAC;AAED,kBAAe,eAAe,CAAA"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ThemeOptions } from '@mui/material';
|
|
2
3
|
import { MenuItem } from '@jbrowse/core/ui';
|
|
3
4
|
import { Feature } from '@jbrowse/core/util';
|
|
4
|
-
import {
|
|
5
|
+
import { FeatureDensityStats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
5
6
|
import { BaseBlock } from '@jbrowse/core/util/blockTypes';
|
|
6
7
|
import { Region } from '@jbrowse/core/util/types';
|
|
7
8
|
import CompositeMap from '@jbrowse/core/util/compositeMap';
|
|
8
9
|
import { Instance } from 'mobx-state-tree';
|
|
9
10
|
import { ExportSvgOptions } from '../../LinearGenomeView';
|
|
10
|
-
import { ThemeOptions } from '@mui/material';
|
|
11
11
|
export interface Layout {
|
|
12
12
|
minX: number;
|
|
13
13
|
minY: number;
|
|
@@ -67,7 +67,9 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
67
67
|
setRendered(props: {
|
|
68
68
|
reactElement: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
69
69
|
features: Map<string, Feature>;
|
|
70
|
-
layout: any;
|
|
70
|
+
layout: any; /**
|
|
71
|
+
* #getter
|
|
72
|
+
*/
|
|
71
73
|
maxHeightReached: boolean;
|
|
72
74
|
renderProps: any;
|
|
73
75
|
} | undefined): void;
|
|
@@ -83,6 +85,32 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
83
85
|
* #property
|
|
84
86
|
*/
|
|
85
87
|
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
88
|
+
/**
|
|
89
|
+
* #property
|
|
90
|
+
*/
|
|
91
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
92
|
+
maxFeatureScreenDensity: {
|
|
93
|
+
type: string;
|
|
94
|
+
description: string;
|
|
95
|
+
defaultValue: number;
|
|
96
|
+
};
|
|
97
|
+
fetchSizeLimit: {
|
|
98
|
+
type: string;
|
|
99
|
+
defaultValue: number;
|
|
100
|
+
description: string;
|
|
101
|
+
};
|
|
102
|
+
height: {
|
|
103
|
+
type: string;
|
|
104
|
+
defaultValue: number;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
mouseover: {
|
|
108
|
+
type: string;
|
|
109
|
+
description: string;
|
|
110
|
+
defaultValue: string;
|
|
111
|
+
contextVariable: string[];
|
|
112
|
+
};
|
|
113
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
86
114
|
}, {
|
|
87
115
|
rendererTypeName: string;
|
|
88
116
|
error: unknown;
|
|
@@ -112,14 +140,15 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
112
140
|
type: string;
|
|
113
141
|
rpcDriverName: string | undefined;
|
|
114
142
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
115
|
-
rendererTypeName: string;
|
|
143
|
+
rendererTypeName: string; /**
|
|
144
|
+
* #property
|
|
145
|
+
* updated via autorun
|
|
146
|
+
*/
|
|
116
147
|
error: unknown;
|
|
117
148
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
118
149
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
119
150
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
120
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
121
|
-
* #property
|
|
122
|
-
*/
|
|
151
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
123
152
|
}, {
|
|
124
153
|
rendererTypeName: string;
|
|
125
154
|
error: unknown;
|
|
@@ -136,11 +165,6 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
136
165
|
} & {
|
|
137
166
|
setError(error?: unknown): void;
|
|
138
167
|
setRpcDriverName(rpcDriverName: string): void;
|
|
139
|
-
/**
|
|
140
|
-
* #getter
|
|
141
|
-
* returns a string feature ID if the globally-selected object
|
|
142
|
-
* is probably a feature
|
|
143
|
-
*/
|
|
144
168
|
reload(): void;
|
|
145
169
|
} & {
|
|
146
170
|
currBpPerPx: number;
|
|
@@ -148,8 +172,8 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
148
172
|
message: string;
|
|
149
173
|
featureIdUnderMouse: string | undefined;
|
|
150
174
|
contextMenuFeature: Feature | undefined;
|
|
151
|
-
|
|
152
|
-
|
|
175
|
+
featureDensityStatsP: Promise<FeatureDensityStats> | undefined;
|
|
176
|
+
featureDensityStats: FeatureDensityStats | undefined;
|
|
153
177
|
} & {
|
|
154
178
|
readonly height: number;
|
|
155
179
|
/**
|
|
@@ -197,7 +221,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
197
221
|
/**
|
|
198
222
|
* #getter
|
|
199
223
|
*/
|
|
200
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number):
|
|
224
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
201
225
|
/**
|
|
202
226
|
* #getter
|
|
203
227
|
*/
|
|
@@ -221,7 +245,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
221
245
|
/**
|
|
222
246
|
* #getter
|
|
223
247
|
*/
|
|
224
|
-
readonly
|
|
248
|
+
readonly featureDensityStatsReady: boolean;
|
|
225
249
|
/**
|
|
226
250
|
* #getter
|
|
227
251
|
*/
|
|
@@ -231,27 +255,24 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
231
255
|
* #action
|
|
232
256
|
*/
|
|
233
257
|
setMessage(message: string): void;
|
|
258
|
+
} & {
|
|
234
259
|
afterAttach(): void;
|
|
235
260
|
/**
|
|
236
261
|
* #action
|
|
237
262
|
*/
|
|
238
|
-
|
|
239
|
-
headers?: Record<string, string>;
|
|
240
|
-
signal?: AbortSignal;
|
|
241
|
-
filters?: string[];
|
|
242
|
-
}): Promise<{}>;
|
|
263
|
+
getFeatureDensityStats(): Promise<FeatureDensityStats>;
|
|
243
264
|
/**
|
|
244
265
|
* #action
|
|
245
266
|
*/
|
|
246
|
-
|
|
267
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
247
268
|
/**
|
|
248
269
|
* #action
|
|
249
270
|
*/
|
|
250
|
-
|
|
271
|
+
setFeatureDensityStats(featureDensityStats?: FeatureDensityStats): void;
|
|
251
272
|
/**
|
|
252
273
|
* #action
|
|
253
274
|
*/
|
|
254
|
-
|
|
275
|
+
clearFeatureDensityStats(): void;
|
|
255
276
|
/**
|
|
256
277
|
* #action
|
|
257
278
|
*/
|
|
@@ -267,7 +288,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
267
288
|
/**
|
|
268
289
|
* #action
|
|
269
290
|
*/
|
|
270
|
-
|
|
291
|
+
setFeatureDensityStatsLimit(stats?: FeatureDensityStats): void;
|
|
271
292
|
/**
|
|
272
293
|
* #action
|
|
273
294
|
*/
|
|
@@ -291,7 +312,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
291
312
|
/**
|
|
292
313
|
* #action
|
|
293
314
|
*/
|
|
294
|
-
setFeatureIdUnderMouse(feature
|
|
315
|
+
setFeatureIdUnderMouse(feature?: string): void;
|
|
295
316
|
/**
|
|
296
317
|
* #action
|
|
297
318
|
*/
|
|
@@ -306,7 +327,8 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
306
327
|
* region is too large if:
|
|
307
328
|
* - stats are ready
|
|
308
329
|
* - region is greater than 20kb (don't warn when zoomed in less than that)
|
|
309
|
-
* - and bytes is greater than max allowed bytes or density greater than max
|
|
330
|
+
* - and bytes is greater than max allowed bytes or density greater than max
|
|
331
|
+
* density
|
|
310
332
|
*/
|
|
311
333
|
readonly regionTooLarge: boolean;
|
|
312
334
|
/**
|
|
@@ -320,6 +342,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
320
342
|
* #action
|
|
321
343
|
*/
|
|
322
344
|
reload(): Promise<void>;
|
|
345
|
+
} & {
|
|
323
346
|
afterAttach(): void;
|
|
324
347
|
} & {
|
|
325
348
|
/**
|
|
@@ -342,13 +365,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
342
365
|
/**
|
|
343
366
|
* #method
|
|
344
367
|
*/
|
|
345
|
-
contextMenuItems():
|
|
346
|
-
label: string;
|
|
347
|
-
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
348
|
-
muiName: string;
|
|
349
|
-
};
|
|
350
|
-
onClick: () => void;
|
|
351
|
-
}[];
|
|
368
|
+
contextMenuItems(): MenuItem[];
|
|
352
369
|
/**
|
|
353
370
|
* #method
|
|
354
371
|
*/
|
|
@@ -412,7 +429,9 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
412
429
|
setRendered(props: {
|
|
413
430
|
reactElement: React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
414
431
|
features: Map<string, Feature>;
|
|
415
|
-
layout: any;
|
|
432
|
+
layout: any; /**
|
|
433
|
+
* #getter
|
|
434
|
+
*/
|
|
416
435
|
maxHeightReached: boolean;
|
|
417
436
|
renderProps: any;
|
|
418
437
|
} | undefined): void;
|
|
@@ -428,9 +447,36 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
428
447
|
* #property
|
|
429
448
|
*/
|
|
430
449
|
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
450
|
+
/**
|
|
451
|
+
* #property
|
|
452
|
+
*/
|
|
453
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
454
|
+
maxFeatureScreenDensity: {
|
|
455
|
+
type: string;
|
|
456
|
+
description: string;
|
|
457
|
+
defaultValue: number;
|
|
458
|
+
};
|
|
459
|
+
fetchSizeLimit: {
|
|
460
|
+
type: string;
|
|
461
|
+
defaultValue: number;
|
|
462
|
+
description: string;
|
|
463
|
+
};
|
|
464
|
+
height: {
|
|
465
|
+
type: string;
|
|
466
|
+
defaultValue: number;
|
|
467
|
+
description: string;
|
|
468
|
+
};
|
|
469
|
+
mouseover: {
|
|
470
|
+
type: string;
|
|
471
|
+
description: string;
|
|
472
|
+
defaultValue: string;
|
|
473
|
+
contextVariable: string[];
|
|
474
|
+
};
|
|
475
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
431
476
|
}>>, {
|
|
432
477
|
type: string;
|
|
433
478
|
id: string;
|
|
479
|
+
configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
|
|
434
480
|
rpcDriverName: string | undefined;
|
|
435
481
|
heightPreConfig: number | undefined;
|
|
436
482
|
userBpPerPxLimit: number | undefined;
|