@jbrowse/plugin-linear-genome-view 2.4.0 → 2.4.2
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/BaseLinearDisplay.d.ts +2 -3
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js +4 -4
- package/dist/BaseLinearDisplay/components/BaseLinearDisplay.js.map +1 -1
- package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -3
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -43
- package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/dist/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -2
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js +4 -8
- package/dist/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +15 -25
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +96 -144
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +4 -5
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
- package/dist/BaseLinearDisplay/models/util.d.ts +4 -0
- package/dist/BaseLinearDisplay/models/util.js +35 -3
- package/dist/BaseLinearDisplay/models/util.js.map +1 -1
- package/dist/LaunchLinearGenomeView/index.js +1 -1
- package/dist/LaunchLinearGenomeView/index.js.map +1 -1
- package/dist/LinearBareDisplay/index.d.ts +2 -3
- package/dist/LinearBareDisplay/index.js +5 -2
- package/dist/LinearBareDisplay/index.js.map +1 -1
- package/dist/LinearBareDisplay/model.d.ts +13 -21
- package/dist/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -1
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
- package/dist/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
- package/dist/LinearBasicDisplay/index.d.ts +2 -3
- package/dist/LinearBasicDisplay/index.js +5 -3
- package/dist/LinearBasicDisplay/index.js.map +1 -1
- package/dist/LinearBasicDisplay/model.d.ts +14 -25
- package/dist/LinearBasicDisplay/model.js.map +1 -1
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +1 -1
- package/dist/LinearGenomeView/components/ExportSvgDialog.js.map +1 -1
- package/dist/LinearGenomeView/components/ImportForm.d.ts +2 -2
- package/dist/LinearGenomeView/components/ImportForm.js +15 -19
- package/dist/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/dist/LinearGenomeView/components/OverviewRubberband.d.ts +3 -4
- package/dist/LinearGenomeView/components/OverviewRubberband.js +8 -11
- package/dist/LinearGenomeView/components/OverviewRubberband.js.map +1 -1
- package/dist/LinearGenomeView/components/OverviewScalebar.d.ts +4 -5
- package/dist/LinearGenomeView/components/OverviewScalebar.js +5 -5
- package/dist/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete.d.ts +2 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +38 -40
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/dist/LinearGenomeView/components/RubberbandSpan.d.ts +2 -2
- package/dist/LinearGenomeView/components/RubberbandSpan.js +2 -16
- package/dist/LinearGenomeView/components/RubberbandSpan.js.map +1 -1
- package/dist/LinearGenomeView/components/SearchBox.js +3 -3
- package/dist/LinearGenomeView/components/SearchBox.js.map +1 -1
- package/dist/LinearGenomeView/components/TrackLabel.js +3 -3
- package/dist/LinearGenomeView/components/TrackLabel.js.map +1 -1
- package/dist/LinearGenomeView/components/TracksContainer.d.ts +2 -3
- package/dist/LinearGenomeView/components/TracksContainer.js +9 -8
- package/dist/LinearGenomeView/components/TracksContainer.js.map +1 -1
- package/dist/LinearGenomeView/components/hooks.d.ts +6 -1
- package/dist/LinearGenomeView/components/hooks.js +1 -1
- package/dist/LinearGenomeView/components/hooks.js.map +1 -1
- package/dist/LinearGenomeView/index.js +8 -6
- package/dist/LinearGenomeView/index.js.map +1 -1
- package/dist/LinearGenomeView/model.d.ts +9 -11
- package/dist/LinearGenomeView/model.js +28 -31
- package/dist/LinearGenomeView/model.js.map +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +6 -5
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js.map +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +2 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js.map +1 -1
- package/dist/LinearGenomeView/util.js +1 -1
- package/dist/LinearGenomeView/util.js.map +1 -1
- package/dist/index.d.ts +69 -95
- package/dist/index.js +21 -17
- package/dist/index.js.map +1 -1
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.d.ts +2 -3
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js +2 -3
- package/esm/BaseLinearDisplay/components/BaseLinearDisplay.js.map +1 -1
- package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +1 -3
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +8 -20
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
- package/esm/BaseLinearDisplay/components/TooLargeMessage.d.ts +2 -2
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js +4 -8
- package/esm/BaseLinearDisplay/components/TooLargeMessage.js.map +1 -1
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +15 -25
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +95 -143
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +4 -5
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js.map +1 -1
- package/esm/BaseLinearDisplay/models/util.d.ts +4 -0
- package/esm/BaseLinearDisplay/models/util.js +32 -2
- package/esm/BaseLinearDisplay/models/util.js.map +1 -1
- package/esm/LaunchLinearGenomeView/index.js +1 -1
- package/esm/LaunchLinearGenomeView/index.js.map +1 -1
- package/esm/LinearBareDisplay/index.d.ts +2 -3
- package/esm/LinearBareDisplay/index.js +3 -1
- package/esm/LinearBareDisplay/index.js.map +1 -1
- package/esm/LinearBareDisplay/model.d.ts +13 -21
- package/esm/LinearBasicDisplay/components/SetMaxHeight.d.ts +1 -1
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js +2 -5
- package/esm/LinearBasicDisplay/components/SetMaxHeight.js.map +1 -1
- package/esm/LinearBasicDisplay/index.d.ts +2 -3
- package/esm/LinearBasicDisplay/index.js +3 -2
- package/esm/LinearBasicDisplay/index.js.map +1 -1
- package/esm/LinearBasicDisplay/model.d.ts +14 -25
- package/esm/LinearBasicDisplay/model.js.map +1 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +1 -1
- package/esm/LinearGenomeView/components/ExportSvgDialog.js.map +1 -1
- package/esm/LinearGenomeView/components/ImportForm.d.ts +2 -2
- package/esm/LinearGenomeView/components/ImportForm.js +16 -20
- package/esm/LinearGenomeView/components/ImportForm.js.map +1 -1
- package/esm/LinearGenomeView/components/OverviewRubberband.d.ts +3 -4
- package/esm/LinearGenomeView/components/OverviewRubberband.js +8 -11
- package/esm/LinearGenomeView/components/OverviewRubberband.js.map +1 -1
- package/esm/LinearGenomeView/components/OverviewScalebar.d.ts +4 -5
- package/esm/LinearGenomeView/components/OverviewScalebar.js +4 -4
- package/esm/LinearGenomeView/components/OverviewScalebar.js.map +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete.d.ts +2 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js +39 -41
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/esm/LinearGenomeView/components/RubberbandSpan.d.ts +2 -2
- package/esm/LinearGenomeView/components/RubberbandSpan.js +3 -18
- package/esm/LinearGenomeView/components/RubberbandSpan.js.map +1 -1
- package/esm/LinearGenomeView/components/SearchBox.js +3 -3
- package/esm/LinearGenomeView/components/SearchBox.js.map +1 -1
- package/esm/LinearGenomeView/components/TrackLabel.js +3 -3
- package/esm/LinearGenomeView/components/TrackLabel.js.map +1 -1
- package/esm/LinearGenomeView/components/TracksContainer.d.ts +2 -3
- package/esm/LinearGenomeView/components/TracksContainer.js +9 -8
- package/esm/LinearGenomeView/components/TracksContainer.js.map +1 -1
- package/esm/LinearGenomeView/components/hooks.d.ts +6 -1
- package/esm/LinearGenomeView/components/hooks.js +1 -1
- package/esm/LinearGenomeView/components/hooks.js.map +1 -1
- package/esm/LinearGenomeView/index.js +8 -6
- package/esm/LinearGenomeView/index.js.map +1 -1
- package/esm/LinearGenomeView/model.d.ts +9 -11
- package/esm/LinearGenomeView/model.js +22 -26
- package/esm/LinearGenomeView/model.js.map +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.d.ts +2 -3
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +3 -3
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js.map +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +2 -1
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js.map +1 -1
- package/esm/LinearGenomeView/util.js +1 -1
- package/esm/LinearGenomeView/util.js.map +1 -1
- package/esm/index.d.ts +69 -95
- package/esm/index.js +9 -6
- package/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/BaseLinearDisplay/components/BaseLinearDisplay.tsx +4 -3
- package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +8 -28
- package/src/BaseLinearDisplay/components/TooLargeMessage.tsx +8 -10
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +134 -196
- package/src/BaseLinearDisplay/models/serverSideRenderedBlock.ts +6 -5
- package/src/BaseLinearDisplay/models/util.ts +39 -2
- package/src/LaunchLinearGenomeView/index.ts +1 -1
- package/src/LinearBareDisplay/index.ts +3 -1
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +3 -7
- package/src/LinearBasicDisplay/index.ts +3 -2
- package/src/LinearBasicDisplay/model.ts +1 -1
- package/src/LinearGenomeView/components/ExportSvgDialog.tsx +1 -1
- package/src/LinearGenomeView/components/ImportForm.tsx +17 -26
- package/src/LinearGenomeView/components/OverviewRubberband.tsx +40 -49
- package/src/LinearGenomeView/components/OverviewScalebar.tsx +4 -4
- package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +55 -55
- package/src/LinearGenomeView/components/RubberbandSpan.tsx +6 -23
- package/src/LinearGenomeView/components/SearchBox.tsx +3 -2
- package/src/LinearGenomeView/components/TrackLabel.tsx +74 -71
- package/src/LinearGenomeView/components/TracksContainer.tsx +8 -8
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +7 -11
- package/src/LinearGenomeView/components/hooks.ts +7 -1
- package/src/LinearGenomeView/index.test.ts +3 -8
- package/src/LinearGenomeView/index.ts +8 -9
- package/src/LinearGenomeView/model.ts +31 -33
- package/src/LinearGenomeView/svgcomponents/SVGLinearGenomeView.tsx +5 -5
- package/src/LinearGenomeView/svgcomponents/SVGTrackLabel.tsx +2 -0
- package/src/LinearGenomeView/util.ts +1 -1
- package/src/index.ts +21 -31
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Tooltip from './Tooltip';
|
|
3
|
-
import BlockMsg from './BlockMsg';
|
|
4
2
|
import { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
|
|
5
3
|
declare const BaseLinearDisplay: (props: {
|
|
6
4
|
model: BaseLinearDisplayModel;
|
|
7
5
|
children?: React.ReactNode;
|
|
8
6
|
}) => JSX.Element;
|
|
9
7
|
export default BaseLinearDisplay;
|
|
10
|
-
export { Tooltip
|
|
8
|
+
export { default as Tooltip } from './Tooltip';
|
|
9
|
+
export { default as BlockMsg } from './BlockMsg';
|
|
@@ -34,10 +34,6 @@ const mui_1 = require("tss-react/mui");
|
|
|
34
34
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
35
35
|
const ui_1 = require("@jbrowse/core/ui");
|
|
36
36
|
// locals
|
|
37
|
-
const Tooltip_1 = __importDefault(require("./Tooltip"));
|
|
38
|
-
exports.Tooltip = Tooltip_1.default;
|
|
39
|
-
const BlockMsg_1 = __importDefault(require("./BlockMsg"));
|
|
40
|
-
exports.BlockMsg = BlockMsg_1.default;
|
|
41
37
|
const LinearBlocks_1 = __importDefault(require("./LinearBlocks"));
|
|
42
38
|
const useStyles = (0, mui_1.makeStyles)()({
|
|
43
39
|
display: {
|
|
@@ -96,4 +92,8 @@ const BaseLinearDisplay = (0, mobx_react_1.observer)(function (props) {
|
|
|
96
92
|
: undefined, style: { zIndex: theme.zIndex.tooltip }, menuItems: contextMenuItems() })));
|
|
97
93
|
});
|
|
98
94
|
exports.default = BaseLinearDisplay;
|
|
95
|
+
var Tooltip_1 = require("./Tooltip");
|
|
96
|
+
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return __importDefault(Tooltip_1).default; } });
|
|
97
|
+
var BlockMsg_1 = require("./BlockMsg");
|
|
98
|
+
Object.defineProperty(exports, "BlockMsg", { enumerable: true, get: function () { return __importDefault(BlockMsg_1).default; } });
|
|
99
99
|
//# sourceMappingURL=BaseLinearDisplay.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseLinearDisplay.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/BaseLinearDisplay.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA+C;AAC/C,2CAAqC;AACrC,4CAAwC;AACxC,uCAA0C;AAC1C,+DAAqD;AACrD,yCAAuC;AAEvC,SAAS;
|
|
1
|
+
{"version":3,"file":"BaseLinearDisplay.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/BaseLinearDisplay.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AC,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC,MAAM,CAAC,EACjE,eAAe,EAAE,CAAC,CAAC,EAAE,QAAQ,EAAE,EAAE;gBAC/B,QAAQ,EAAE,CAAA;gBACV,eAAe,CAAC,SAAS,CAAC,CAAA;YAC5B,CAAC,EACD,OAAO,EAAE,GAAG,EAAE;gBACZ,eAAe,CAAC,SAAS,CAAC,CAAA;gBAC1B,qBAAqB,CAAC,SAAS,CAAC,CAAA;YAClC,CAAC,EACD,eAAe,EAAE;gBACf,MAAM,EAAE,GAAG,EAAE;oBACX,eAAe,CAAC,SAAS,CAAC,CAAA;oBAC1B,qBAAqB,CAAC,SAAS,CAAC,CAAA;gBAClC,CAAC;aACF,EACD,eAAe,EAAC,gBAAgB,EAChC,cAAc,EACZ,YAAY;gBACV,CAAC,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE;gBACjD,CAAC,CAAC,SAAS,EAEf,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,EACvC,SAAS,EAAE,gBAAgB,EAAE,GAC7B,CACE,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,kBAAe,iBAAiB,CAAA;AAEhC,qCAA8C;AAArC,mHAAA,OAAO,OAAW;AAC3B,uCAAgD;AAAvC,qHAAA,OAAO,OAAY"}
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { BaseLinearDisplayModel } from '../models/BaseLinearDisplayModel';
|
|
3
3
|
declare const useStyles: (params: void, styleOverrides?: {
|
|
4
|
-
props:
|
|
5
|
-
classes?: Record<string, string> | undefined;
|
|
6
|
-
} & Record<string, unknown>;
|
|
4
|
+
props: any;
|
|
7
5
|
ownerState?: Record<string, unknown> | undefined;
|
|
8
6
|
} | undefined) => {
|
|
9
7
|
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,8DAA8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
|
|
4
4
|
model: {
|
|
5
5
|
regionTooLargeReason: string;
|
|
6
|
-
|
|
7
|
-
updateStatsLimit: (s
|
|
6
|
+
estimatedRegionsStats?: Stats;
|
|
7
|
+
updateStatsLimit: (s?: Stats) => void;
|
|
8
8
|
reload: () => void;
|
|
9
9
|
};
|
|
10
10
|
}): JSX.Element;
|
|
@@ -4,18 +4,14 @@ 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
|
-
else {
|
|
15
|
-
model.updateStatsLimit(model.estimatedRegionStats);
|
|
16
|
-
model.reload();
|
|
17
|
-
}
|
|
18
|
-
}, buttonText: "Force load", message: `${regionTooLargeReason ? regionTooLargeReason + '. ' : ''}
|
|
12
|
+
model.updateStatsLimit(model.estimatedRegionsStats);
|
|
13
|
+
model.reload();
|
|
14
|
+
}, buttonText: "Force load", message: `${regionTooLargeReason ? `${regionTooLargeReason}. ` : ''}
|
|
19
15
|
Zoom in to see features or force load (may be slow).` }));
|
|
20
16
|
}
|
|
21
17
|
exports.default = TooLargeMessage;
|
|
@@ -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,gBAAgB,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAA;YACnD,KAAK,CAAC,MAAM,EAAE,CAAA;QAChB,CAAC,EACD,UAAU,EAAC,YAAY,EACvB,OAAO,EAAE,GAAG,oBAAoB,CAAC,CAAC,CAAC,GAAG,oBAAoB,IAAI,CAAC,CAAC,CAAC,EAAE;2DACd,GACrD,CACH,CAAA;AACH,CAAC;AAED,kBAAe,eAAe,CAAA"}
|
|
@@ -1,4 +1,5 @@
|
|
|
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
5
|
import { Stats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
@@ -7,7 +8,6 @@ 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;
|
|
@@ -120,9 +120,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
120
120
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
121
121
|
}, {
|
|
122
122
|
rendererTypeName: string;
|
|
123
|
-
error: unknown;
|
|
124
|
-
* #property
|
|
125
|
-
*/
|
|
123
|
+
error: unknown;
|
|
126
124
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
127
125
|
}> | null;
|
|
128
126
|
readonly adapterConfig: any;
|
|
@@ -143,10 +141,10 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
143
141
|
message: string;
|
|
144
142
|
featureIdUnderMouse: string | undefined;
|
|
145
143
|
contextMenuFeature: Feature | undefined;
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
estimatedRegionsStatsP: Promise<Stats> | undefined;
|
|
145
|
+
estimatedRegionsStats: Stats | undefined;
|
|
148
146
|
} & {
|
|
149
|
-
readonly height:
|
|
147
|
+
readonly height: number;
|
|
150
148
|
/**
|
|
151
149
|
* #getter
|
|
152
150
|
*/
|
|
@@ -192,7 +190,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
192
190
|
/**
|
|
193
191
|
* #getter
|
|
194
192
|
*/
|
|
195
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number):
|
|
193
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
196
194
|
/**
|
|
197
195
|
* #getter
|
|
198
196
|
*/
|
|
@@ -226,31 +224,28 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
226
224
|
* #action
|
|
227
225
|
*/
|
|
228
226
|
setMessage(message: string): void;
|
|
227
|
+
} & {
|
|
229
228
|
afterAttach(): void;
|
|
230
229
|
/**
|
|
231
230
|
* #action
|
|
232
231
|
*/
|
|
233
|
-
estimateRegionsStats(
|
|
234
|
-
headers?: Record<string, string>;
|
|
235
|
-
signal?: AbortSignal;
|
|
236
|
-
filters?: string[];
|
|
237
|
-
}): Promise<{}>;
|
|
232
|
+
estimateRegionsStats(): Promise<Stats>;
|
|
238
233
|
/**
|
|
239
234
|
* #action
|
|
240
235
|
*/
|
|
241
|
-
|
|
236
|
+
setRegionsStatsP(arg: any): void;
|
|
242
237
|
/**
|
|
243
238
|
* #action
|
|
244
239
|
*/
|
|
245
|
-
|
|
240
|
+
setRegionsStats(estimatedRegionsStats?: Stats): void;
|
|
246
241
|
/**
|
|
247
242
|
* #action
|
|
248
243
|
*/
|
|
249
|
-
|
|
244
|
+
clearRegionsStats(): void;
|
|
250
245
|
/**
|
|
251
246
|
* #action
|
|
252
247
|
*/
|
|
253
|
-
setHeight(displayHeight: number):
|
|
248
|
+
setHeight(displayHeight: number): number;
|
|
254
249
|
/**
|
|
255
250
|
* #action
|
|
256
251
|
*/
|
|
@@ -262,7 +257,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
262
257
|
/**
|
|
263
258
|
* #action
|
|
264
259
|
*/
|
|
265
|
-
updateStatsLimit(stats
|
|
260
|
+
updateStatsLimit(stats?: Stats): void;
|
|
266
261
|
/**
|
|
267
262
|
* #action
|
|
268
263
|
*/
|
|
@@ -315,6 +310,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
315
310
|
* #action
|
|
316
311
|
*/
|
|
317
312
|
reload(): Promise<void>;
|
|
313
|
+
} & {
|
|
318
314
|
afterAttach(): void;
|
|
319
315
|
} & {
|
|
320
316
|
/**
|
|
@@ -337,13 +333,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
337
333
|
/**
|
|
338
334
|
* #method
|
|
339
335
|
*/
|
|
340
|
-
contextMenuItems():
|
|
341
|
-
label: string;
|
|
342
|
-
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
343
|
-
muiName: string;
|
|
344
|
-
};
|
|
345
|
-
onClick: () => void;
|
|
346
|
-
}[];
|
|
336
|
+
contextMenuItems(): MenuItem[];
|
|
347
337
|
/**
|
|
348
338
|
* #method
|
|
349
339
|
*/
|