@jbrowse/plugin-linear-genome-view 2.4.1 → 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/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 +13 -28
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +93 -137
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/dist/BaseLinearDisplay/models/util.d.ts +4 -0
- package/dist/BaseLinearDisplay/models/util.js +33 -1
- package/dist/BaseLinearDisplay/models/util.js.map +1 -1
- package/dist/LinearBareDisplay/index.js +1 -0
- package/dist/LinearBareDisplay/index.js.map +1 -1
- package/dist/LinearBareDisplay/model.d.ts +11 -19
- 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.js +1 -1
- package/dist/LinearBasicDisplay/model.d.ts +14 -35
- package/dist/LinearBasicDisplay/model.js.map +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js +11 -17
- package/dist/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/dist/index.d.ts +33 -57
- 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 +13 -28
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +92 -136
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
- package/esm/BaseLinearDisplay/models/util.d.ts +4 -0
- package/esm/BaseLinearDisplay/models/util.js +30 -0
- package/esm/BaseLinearDisplay/models/util.js.map +1 -1
- package/esm/LinearBareDisplay/index.js +1 -0
- package/esm/LinearBareDisplay/index.js.map +1 -1
- package/esm/LinearBareDisplay/model.d.ts +11 -19
- 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.js +1 -1
- package/esm/LinearBasicDisplay/model.d.ts +14 -35
- package/esm/LinearBasicDisplay/model.js.map +1 -1
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js +11 -17
- package/esm/LinearGenomeView/components/RefNameAutocomplete.js.map +1 -1
- package/esm/index.d.ts +33 -57
- package/package.json +2 -2
- package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +8 -28
- package/src/BaseLinearDisplay/components/TooLargeMessage.tsx +8 -10
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +130 -189
- package/src/BaseLinearDisplay/models/util.ts +37 -0
- package/src/LinearBareDisplay/index.ts +1 -0
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +3 -7
- package/src/LinearBasicDisplay/index.ts +1 -1
- package/src/LinearBasicDisplay/model.ts +1 -1
- package/src/LinearGenomeView/components/RefNameAutocomplete.tsx +16 -18
package/dist/index.d.ts
CHANGED
|
@@ -161,8 +161,8 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
161
161
|
message: string;
|
|
162
162
|
featureIdUnderMouse: string | undefined;
|
|
163
163
|
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
estimatedRegionsStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
165
|
+
estimatedRegionsStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
166
166
|
} & {
|
|
167
167
|
readonly height: number;
|
|
168
168
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
@@ -175,7 +175,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
175
175
|
} & {
|
|
176
176
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
177
177
|
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
178
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number):
|
|
178
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
179
179
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
180
180
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
181
181
|
readonly currentBytesRequested: number;
|
|
@@ -185,19 +185,16 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
185
185
|
readonly maxAllowableBytes: number;
|
|
186
186
|
} & {
|
|
187
187
|
setMessage(message: string): void;
|
|
188
|
+
} & {
|
|
188
189
|
afterAttach(): void;
|
|
189
|
-
estimateRegionsStats(
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}): Promise<{}>;
|
|
194
|
-
setRegionStatsP(p?: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined): void;
|
|
195
|
-
setRegionStats(estimatedRegionStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
196
|
-
clearRegionStats(): void;
|
|
190
|
+
estimateRegionsStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats>;
|
|
191
|
+
setRegionsStatsP(arg: any): void;
|
|
192
|
+
setRegionsStats(estimatedRegionsStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
193
|
+
clearRegionsStats(): void;
|
|
197
194
|
setHeight(displayHeight: number): number;
|
|
198
195
|
resizeHeight(distance: number): number;
|
|
199
196
|
setScrollTop(scrollTop: number): void;
|
|
200
|
-
updateStatsLimit(stats
|
|
197
|
+
updateStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
201
198
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
202
199
|
setCurrBpPerPx(n: number): void;
|
|
203
200
|
deleteBlock(key: string): void;
|
|
@@ -211,18 +208,13 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
211
208
|
readonly regionTooLargeReason: string;
|
|
212
209
|
} & {
|
|
213
210
|
reload(): Promise<void>;
|
|
211
|
+
} & {
|
|
214
212
|
afterAttach(): void;
|
|
215
213
|
} & {
|
|
216
214
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
217
215
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
|
|
218
216
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
219
|
-
contextMenuItems():
|
|
220
|
-
label: string;
|
|
221
|
-
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
222
|
-
muiName: string;
|
|
223
|
-
};
|
|
224
|
-
onClick: () => void;
|
|
225
|
-
}[];
|
|
217
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
226
218
|
renderProps(): any;
|
|
227
219
|
} & {
|
|
228
220
|
renderSvg(opts: import("./LinearGenomeView").ExportSvgOptions & {
|
|
@@ -341,8 +333,8 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
341
333
|
message: string;
|
|
342
334
|
featureIdUnderMouse: string | undefined;
|
|
343
335
|
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
344
|
-
|
|
345
|
-
|
|
336
|
+
estimatedRegionsStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
337
|
+
estimatedRegionsStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
346
338
|
} & {
|
|
347
339
|
readonly height: number;
|
|
348
340
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
@@ -355,7 +347,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
355
347
|
} & {
|
|
356
348
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
357
349
|
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
358
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number):
|
|
350
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
359
351
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
360
352
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
361
353
|
readonly currentBytesRequested: number;
|
|
@@ -365,19 +357,16 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
365
357
|
readonly maxAllowableBytes: number;
|
|
366
358
|
} & {
|
|
367
359
|
setMessage(message: string): void;
|
|
360
|
+
} & {
|
|
368
361
|
afterAttach(): void;
|
|
369
|
-
estimateRegionsStats(
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}): Promise<{}>;
|
|
374
|
-
setRegionStatsP(p?: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined): void;
|
|
375
|
-
setRegionStats(estimatedRegionStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
376
|
-
clearRegionStats(): void;
|
|
362
|
+
estimateRegionsStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats>;
|
|
363
|
+
setRegionsStatsP(arg: any): void;
|
|
364
|
+
setRegionsStats(estimatedRegionsStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
365
|
+
clearRegionsStats(): void;
|
|
377
366
|
setHeight(displayHeight: number): number;
|
|
378
367
|
resizeHeight(distance: number): number;
|
|
379
368
|
setScrollTop(scrollTop: number): void;
|
|
380
|
-
updateStatsLimit(stats
|
|
369
|
+
updateStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
381
370
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
382
371
|
setCurrBpPerPx(n: number): void;
|
|
383
372
|
deleteBlock(key: string): void;
|
|
@@ -391,18 +380,13 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
391
380
|
readonly regionTooLargeReason: string;
|
|
392
381
|
} & {
|
|
393
382
|
reload(): Promise<void>;
|
|
383
|
+
} & {
|
|
394
384
|
afterAttach(): void;
|
|
395
385
|
} & {
|
|
396
386
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
397
387
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
|
|
398
388
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
399
|
-
contextMenuItems():
|
|
400
|
-
label: string;
|
|
401
|
-
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
402
|
-
muiName: string;
|
|
403
|
-
};
|
|
404
|
-
onClick: () => void;
|
|
405
|
-
}[];
|
|
389
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
406
390
|
renderProps(): any;
|
|
407
391
|
} & {
|
|
408
392
|
renderSvg(opts: import("./LinearGenomeView").ExportSvgOptions & {
|
|
@@ -585,8 +569,8 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
585
569
|
message: string;
|
|
586
570
|
featureIdUnderMouse: string | undefined;
|
|
587
571
|
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
588
|
-
|
|
589
|
-
|
|
572
|
+
estimatedRegionsStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
573
|
+
estimatedRegionsStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
590
574
|
} & {
|
|
591
575
|
readonly height: number;
|
|
592
576
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
@@ -599,7 +583,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
599
583
|
} & {
|
|
600
584
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
601
585
|
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
602
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number):
|
|
586
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
603
587
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
604
588
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
605
589
|
readonly currentBytesRequested: number;
|
|
@@ -609,19 +593,16 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
609
593
|
readonly maxAllowableBytes: number;
|
|
610
594
|
} & {
|
|
611
595
|
setMessage(message: string): void;
|
|
596
|
+
} & {
|
|
612
597
|
afterAttach(): void;
|
|
613
|
-
estimateRegionsStats(
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
}): Promise<{}>;
|
|
618
|
-
setRegionStatsP(p?: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined): void;
|
|
619
|
-
setRegionStats(estimatedRegionStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
620
|
-
clearRegionStats(): void;
|
|
598
|
+
estimateRegionsStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats>;
|
|
599
|
+
setRegionsStatsP(arg: any): void;
|
|
600
|
+
setRegionsStats(estimatedRegionsStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
601
|
+
clearRegionsStats(): void;
|
|
621
602
|
setHeight(displayHeight: number): number;
|
|
622
603
|
resizeHeight(distance: number): number;
|
|
623
604
|
setScrollTop(scrollTop: number): void;
|
|
624
|
-
updateStatsLimit(stats
|
|
605
|
+
updateStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
625
606
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
626
607
|
setCurrBpPerPx(n: number): void;
|
|
627
608
|
deleteBlock(key: string): void;
|
|
@@ -635,18 +616,13 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
635
616
|
readonly regionTooLargeReason: string;
|
|
636
617
|
} & {
|
|
637
618
|
reload(): Promise<void>;
|
|
619
|
+
} & {
|
|
638
620
|
afterAttach(): void;
|
|
639
621
|
} & {
|
|
640
622
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
641
623
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
|
|
642
624
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
643
|
-
contextMenuItems():
|
|
644
|
-
label: string;
|
|
645
|
-
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
646
|
-
muiName: string;
|
|
647
|
-
};
|
|
648
|
-
onClick: () => void;
|
|
649
|
-
}[];
|
|
625
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
650
626
|
renderProps(): any;
|
|
651
627
|
} & {
|
|
652
628
|
renderSvg(opts: import("./LinearGenomeView").ExportSvgOptions & {
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { makeStyles } from 'tss-react/mui';
|
|
3
3
|
import { observer } from 'mobx-react';
|
|
4
4
|
import { getParent } from 'mobx-state-tree';
|
|
@@ -20,40 +20,28 @@ const useStyles = makeStyles()(theme => {
|
|
|
20
20
|
});
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
22
22
|
const LoadingMessage = observer(({ model }) => {
|
|
23
|
-
// only show the loading message after 300ms to prevent excessive flickering
|
|
24
|
-
const [shown, setShown] = useState(false);
|
|
25
23
|
const { classes } = useStyles();
|
|
26
|
-
useEffect(() => {
|
|
27
|
-
let killed = false;
|
|
28
|
-
const timeout = setTimeout(() => {
|
|
29
|
-
if (!killed) {
|
|
30
|
-
setShown(true);
|
|
31
|
-
}
|
|
32
|
-
}, 300);
|
|
33
|
-
return () => {
|
|
34
|
-
clearTimeout(timeout);
|
|
35
|
-
killed = true;
|
|
36
|
-
};
|
|
37
|
-
}, []);
|
|
38
24
|
const { status: blockStatus } = model;
|
|
39
25
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
40
26
|
const { message: displayStatus } = getParent(model, 2);
|
|
41
27
|
const status = displayStatus || blockStatus;
|
|
42
|
-
return (React.createElement(
|
|
43
|
-
React.createElement(LoadingEllipses, { message: status })))
|
|
28
|
+
return (React.createElement("div", { className: classes.loading },
|
|
29
|
+
React.createElement(LoadingEllipses, { message: status })));
|
|
44
30
|
});
|
|
45
31
|
const ServerSideRenderedBlockContent = observer(function ({ model, }) {
|
|
46
32
|
if (model.error) {
|
|
47
33
|
return (React.createElement(BlockMsg, { message: `${model.error}`, severity: "error", buttonText: "reload", icon: React.createElement(RefreshIcon, null), action: model.reload }));
|
|
48
34
|
}
|
|
49
|
-
if (model.message) {
|
|
35
|
+
else if (model.message) {
|
|
50
36
|
// the message can be a fully rendered react component, e.g. the region too large message
|
|
51
37
|
return React.isValidElement(model.message) ? (model.message) : (React.createElement(BlockMsg, { message: `${model.message}`, severity: "info" }));
|
|
52
38
|
}
|
|
53
|
-
if (!model.filled) {
|
|
39
|
+
else if (!model.filled) {
|
|
54
40
|
return React.createElement(LoadingMessage, { model: model });
|
|
55
41
|
}
|
|
56
|
-
|
|
42
|
+
else {
|
|
43
|
+
return model.reactElement;
|
|
44
|
+
}
|
|
57
45
|
});
|
|
58
46
|
export default ServerSideRenderedBlockContent;
|
|
59
47
|
//# sourceMappingURL=ServerSideRenderedBlockContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServerSideRenderedBlockContent.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ServerSideRenderedBlockContent.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAElD,QAAQ;AACR,OAAO,WAAW,MAAM,6BAA6B,CAAA;AAErD,SAAS;AACT,OAAO,QAAQ,MAAM,YAAY,CAAA;AAEjC,MAAM,SAAS,GAAG,UAAU,EAAE,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,QAAQ,CAAC,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,SAAS,CAAM,KAAK,EAAE,CAAC,CAAC,CAAA;IAC3D,MAAM,MAAM,GAAG,aAAa,IAAI,WAAW,CAAA;IAC3C,OAAO,CACL,6BAAK,SAAS,EAAE,OAAO,CAAC,OAAO;QAC7B,oBAAC,eAAe,IAAC,OAAO,EAAE,MAAM,GAAI,CAChC,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,8BAA8B,GAAG,QAAQ,CAAC,UAAU,EACxD,KAAK,GAIN;IACC,IAAI,KAAK,CAAC,KAAK,EAAE;QACf,OAAO,CACL,oBAAC,QAAQ,IACP,OAAO,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,EACzB,QAAQ,EAAC,OAAO,EAChB,UAAU,EAAC,QAAQ,EACnB,IAAI,EAAE,oBAAC,WAAW,OAAG,EACrB,MAAM,EAAE,KAAK,CAAC,MAAM,GACpB,CACH,CAAA;KACF;SAAM,IAAI,KAAK,CAAC,OAAO,EAAE;QACxB,yFAAyF;QACzF,OAAO,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAC3C,KAAK,CAAC,OAAO,CACd,CAAC,CAAC,CAAC,CACF,oBAAC,QAAQ,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,oBAAC,cAAc,IAAC,KAAK,EAAE,KAAK,GAAI,CAAA;KACxC;SAAM;QACL,OAAO,KAAK,CAAC,YAAY,CAAA;KAC1B;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,8BAA8B,CAAA"}
|
|
@@ -3,8 +3,8 @@ import { Stats } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
|
3
3
|
declare function TooLargeMessage({ model, }: {
|
|
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;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
// locals
|
|
2
3
|
import BlockMsg from '../components/BlockMsg';
|
|
3
4
|
function TooLargeMessage({ model, }) {
|
|
4
5
|
const { regionTooLargeReason } = model;
|
|
5
6
|
return (React.createElement(BlockMsg, { severity: "warning", action: () => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
else {
|
|
10
|
-
model.updateStatsLimit(model.estimatedRegionStats);
|
|
11
|
-
model.reload();
|
|
12
|
-
}
|
|
13
|
-
}, buttonText: "Force load", message: `${regionTooLargeReason ? regionTooLargeReason + '. ' : ''}
|
|
7
|
+
model.updateStatsLimit(model.estimatedRegionsStats);
|
|
8
|
+
model.reload();
|
|
9
|
+
}, buttonText: "Force load", message: `${regionTooLargeReason ? `${regionTooLargeReason}. ` : ''}
|
|
14
10
|
Zoom in to see features or force load (may be slow).` }));
|
|
15
11
|
}
|
|
16
12
|
export default TooLargeMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TooLargeMessage.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/TooLargeMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TooLargeMessage.js","sourceRoot":"","sources":["../../../src/BaseLinearDisplay/components/TooLargeMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,SAAS;AACT,OAAO,QAAQ,MAAM,wBAAwB,CAAA;AAE7C,SAAS,eAAe,CAAC,EACvB,KAAK,GAQN;IACC,MAAM,EAAE,oBAAoB,EAAE,GAAG,KAAK,CAAA;IACtC,OAAO,CACL,oBAAC,QAAQ,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,eAAe,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;
|
|
@@ -117,9 +117,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
117
117
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
118
118
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
119
119
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
120
|
-
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
121
|
-
* #property
|
|
122
|
-
*/
|
|
120
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
123
121
|
}, {
|
|
124
122
|
rendererTypeName: string;
|
|
125
123
|
error: unknown;
|
|
@@ -136,11 +134,6 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
136
134
|
} & {
|
|
137
135
|
setError(error?: unknown): void;
|
|
138
136
|
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
137
|
reload(): void;
|
|
145
138
|
} & {
|
|
146
139
|
currBpPerPx: number;
|
|
@@ -148,8 +141,8 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
148
141
|
message: string;
|
|
149
142
|
featureIdUnderMouse: string | undefined;
|
|
150
143
|
contextMenuFeature: Feature | undefined;
|
|
151
|
-
|
|
152
|
-
|
|
144
|
+
estimatedRegionsStatsP: Promise<Stats> | undefined;
|
|
145
|
+
estimatedRegionsStats: Stats | undefined;
|
|
153
146
|
} & {
|
|
154
147
|
readonly height: number;
|
|
155
148
|
/**
|
|
@@ -197,7 +190,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
197
190
|
/**
|
|
198
191
|
* #getter
|
|
199
192
|
*/
|
|
200
|
-
getFeatureOverlapping(blockKey: string, x: number, y: number):
|
|
193
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
201
194
|
/**
|
|
202
195
|
* #getter
|
|
203
196
|
*/
|
|
@@ -231,27 +224,24 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
231
224
|
* #action
|
|
232
225
|
*/
|
|
233
226
|
setMessage(message: string): void;
|
|
227
|
+
} & {
|
|
234
228
|
afterAttach(): void;
|
|
235
229
|
/**
|
|
236
230
|
* #action
|
|
237
231
|
*/
|
|
238
|
-
estimateRegionsStats(
|
|
239
|
-
headers?: Record<string, string>;
|
|
240
|
-
signal?: AbortSignal;
|
|
241
|
-
filters?: string[];
|
|
242
|
-
}): Promise<{}>;
|
|
232
|
+
estimateRegionsStats(): Promise<Stats>;
|
|
243
233
|
/**
|
|
244
234
|
* #action
|
|
245
235
|
*/
|
|
246
|
-
|
|
236
|
+
setRegionsStatsP(arg: any): void;
|
|
247
237
|
/**
|
|
248
238
|
* #action
|
|
249
239
|
*/
|
|
250
|
-
|
|
240
|
+
setRegionsStats(estimatedRegionsStats?: Stats): void;
|
|
251
241
|
/**
|
|
252
242
|
* #action
|
|
253
243
|
*/
|
|
254
|
-
|
|
244
|
+
clearRegionsStats(): void;
|
|
255
245
|
/**
|
|
256
246
|
* #action
|
|
257
247
|
*/
|
|
@@ -267,7 +257,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
267
257
|
/**
|
|
268
258
|
* #action
|
|
269
259
|
*/
|
|
270
|
-
updateStatsLimit(stats
|
|
260
|
+
updateStatsLimit(stats?: Stats): void;
|
|
271
261
|
/**
|
|
272
262
|
* #action
|
|
273
263
|
*/
|
|
@@ -320,6 +310,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
320
310
|
* #action
|
|
321
311
|
*/
|
|
322
312
|
reload(): Promise<void>;
|
|
313
|
+
} & {
|
|
323
314
|
afterAttach(): void;
|
|
324
315
|
} & {
|
|
325
316
|
/**
|
|
@@ -342,13 +333,7 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
|
|
|
342
333
|
/**
|
|
343
334
|
* #method
|
|
344
335
|
*/
|
|
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
|
-
}[];
|
|
336
|
+
contextMenuItems(): MenuItem[];
|
|
352
337
|
/**
|
|
353
338
|
* #method
|
|
354
339
|
*/
|