@jbrowse/plugin-linear-genome-view 1.6.5 → 1.6.6
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/models/baseLinearDisplayConfigSchema.d.ts +1 -1
- package/dist/LinearBareDisplay/configSchema.d.ts +1 -1
- package/dist/LinearBasicDisplay/configSchema.d.ts +1 -1
- package/dist/LinearGenomeView/components/TrackContainer.d.ts +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/plugin-linear-genome-view.cjs.development.js +118 -228
- package/dist/plugin-linear-genome-view.cjs.development.js.map +1 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js +1 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js.map +1 -1
- package/dist/plugin-linear-genome-view.esm.js +120 -230
- package/dist/plugin-linear-genome-view.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/BaseLinearDisplay/components/BaseLinearDisplay.tsx +1 -1
- package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +6 -1
- package/src/LinearBasicDisplay/model.ts +1 -1
- package/src/LinearGenomeView/components/HelpDialog.tsx +14 -1
- package/src/LinearGenomeView/components/LinearGenomeViewSvg.tsx +1 -13
- package/src/LinearGenomeView/components/OverviewScaleBar.tsx +7 -3
- package/src/LinearGenomeView/components/TrackContainer.tsx +24 -39
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.js.snap +194 -197
- package/src/LinearGenomeView/index.test.ts +44 -42
- package/src/LinearGenomeView/index.tsx +55 -131
- package/src/LinearGenomeView/volvoxDisplayedRegions.json +16 -0
- package/dist/LinearGenomeView/components/ReturnToImportFormDialog.d.ts +0 -9
- package/src/LinearGenomeView/components/ReturnToImportFormDialog.tsx +0 -83
|
@@ -6,15 +6,15 @@ import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
|
6
6
|
import DisplayType from '@jbrowse/core/pluggableElementTypes/DisplayType';
|
|
7
7
|
import ViewType from '@jbrowse/core/pluggableElementTypes/ViewType';
|
|
8
8
|
import Plugin from '@jbrowse/core/Plugin';
|
|
9
|
-
import { getContainingView, getContainingDisplay, makeAbortableReaction, assembleLocString, getSession, isSessionModelWithWidgets, isSelectionContainer, isAbortException, stringify, useDebounce, measureText, useDebouncedCallback, viewBpToPx, clamp, isViewContainer, parseLocString, findLastIndex, springAnimate, isAbstractMenuManager } from '@jbrowse/core/util';
|
|
9
|
+
import { getContainingView, getContainingDisplay, makeAbortableReaction, assembleLocString, getSession, isSessionModelWithWidgets, isSelectionContainer, isAbortException, stringify, getBpDisplayStr, useDebounce, measureText, useDebouncedCallback, viewBpToPx, clamp, isViewContainer, parseLocString, findLastIndex, springAnimate, isAbstractMenuManager } from '@jbrowse/core/util';
|
|
10
10
|
import LineStyleIcon from '@material-ui/icons/LineStyle';
|
|
11
|
-
import { useTheme, makeStyles as makeStyles$1, alpha, Portal, Typography as Typography$1, Button as Button$1, Popover, Tooltip as Tooltip$1, TextField, Popper, CircularProgress, InputAdornment, IconButton, Dialog, DialogTitle, DialogContent, FormControlLabel, Checkbox, DialogActions,
|
|
11
|
+
import { useTheme, makeStyles as makeStyles$1, alpha, Portal, Typography as Typography$1, Button as Button$1, Popover, Tooltip as Tooltip$1, TextField, Popper, CircularProgress, InputAdornment, IconButton, Dialog, DialogTitle, DialogContent, FormControlLabel, Checkbox, DialogActions, FormGroup, Paper, Container, Grid, Divider, TableContainer, Table, TableHead, TableRow, TableCell, TableBody } from '@material-ui/core';
|
|
12
12
|
import CompositeMap from '@jbrowse/core/util/compositeMap';
|
|
13
13
|
import { isFeature } from '@jbrowse/core/util/simpleFeature';
|
|
14
14
|
import { getParentRenderProps, getTrackAssemblyNames, getRpcSessionId } from '@jbrowse/core/util/tracks';
|
|
15
15
|
import { getParent, types, cast, isAlive, addDisposer, getEnv, resolveIdentifier, getRoot, getSnapshot } from 'mobx-state-tree';
|
|
16
16
|
import MenuOpenIcon from '@material-ui/icons/MenuOpen';
|
|
17
|
-
import { Menu, ResizeHandle } from '@jbrowse/core/ui';
|
|
17
|
+
import { Menu, ResizeHandle, ReturnToImportFormDialog } from '@jbrowse/core/ui';
|
|
18
18
|
import { observer, PropTypes } from 'mobx-react';
|
|
19
19
|
import { usePopper } from 'react-popper';
|
|
20
20
|
import { makeStyles } from '@material-ui/core/styles';
|
|
@@ -50,13 +50,13 @@ import ArrowBackIcon from '@material-ui/icons/ArrowBack';
|
|
|
50
50
|
import IconButton$1 from '@material-ui/core/IconButton';
|
|
51
51
|
import Slider from '@material-ui/core/Slider';
|
|
52
52
|
import ZoomOut from '@material-ui/icons/ZoomOut';
|
|
53
|
-
import Paper$1 from '@material-ui/core/Paper';
|
|
54
53
|
import MoreVertIcon from '@material-ui/icons/MoreVert';
|
|
55
54
|
import DragIcon from '@material-ui/icons/DragIndicator';
|
|
56
55
|
import normalizeWheel from 'normalize-wheel';
|
|
57
56
|
import { alpha as alpha$1 } from '@material-ui/core/styles/colorManipulator';
|
|
58
57
|
import Popover$1 from '@material-ui/core/Popover';
|
|
59
58
|
import Tooltip$2 from '@material-ui/core/Tooltip';
|
|
59
|
+
import Paper$1 from '@material-ui/core/Paper';
|
|
60
60
|
import ErrorMessage from '@jbrowse/core/ui/ErrorMessage';
|
|
61
61
|
import AssemblySelector from '@jbrowse/core/ui/AssemblySelector';
|
|
62
62
|
import ArrowDown from '@material-ui/icons/KeyboardArrowDown';
|
|
@@ -1341,7 +1341,7 @@ var useStyles$2 = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
|
1341
1341
|
color: theme.palette.common.white,
|
|
1342
1342
|
fontFamily: theme.typography.fontFamily,
|
|
1343
1343
|
padding: '4px 8px',
|
|
1344
|
-
fontSize: theme.typography.pxToRem(
|
|
1344
|
+
fontSize: theme.typography.pxToRem(12),
|
|
1345
1345
|
lineHeight: "".concat(round(14 / 10), "em"),
|
|
1346
1346
|
maxWidth: 300,
|
|
1347
1347
|
wordWrap: 'break-word'
|
|
@@ -2386,9 +2386,10 @@ var BaseLinearDisplay$1 = /*#__PURE__*/types.compose('BaseLinearDisplay', BaseDi
|
|
|
2386
2386
|
case 0:
|
|
2387
2387
|
_context2.prev = 0;
|
|
2388
2388
|
aborter = new AbortController();
|
|
2389
|
-
view = getContainingView(self);
|
|
2389
|
+
view = getContainingView(self); // extra check for contentBlocks.length
|
|
2390
|
+
// https://github.com/GMOD/jbrowse-components/issues/2694
|
|
2390
2391
|
|
|
2391
|
-
if (view.initialized) {
|
|
2392
|
+
if (!(!view.initialized || !view.staticBlocks.contentBlocks.length)) {
|
|
2392
2393
|
_context2.next = 5;
|
|
2393
2394
|
break;
|
|
2394
2395
|
}
|
|
@@ -3237,7 +3238,8 @@ var Cytobands = /*#__PURE__*/observer(function (_ref2) {
|
|
|
3237
3238
|
var overview = _ref2.overview,
|
|
3238
3239
|
block = _ref2.block,
|
|
3239
3240
|
assembly = _ref2.assembly;
|
|
3240
|
-
var offsetPx = block.offsetPx
|
|
3241
|
+
var offsetPx = block.offsetPx,
|
|
3242
|
+
reversed = block.reversed;
|
|
3241
3243
|
var cytobands = assembly === null || assembly === void 0 ? void 0 : (_assembly$cytobands = assembly.cytobands) === null || _assembly$cytobands === void 0 ? void 0 : _assembly$cytobands.map(function (f) {
|
|
3242
3244
|
return {
|
|
3243
3245
|
refName: assembly.getCanonicalRefName(f.get('refName')),
|
|
@@ -3260,6 +3262,9 @@ var Cytobands = /*#__PURE__*/observer(function (_ref2) {
|
|
|
3260
3262
|
coord: end
|
|
3261
3263
|
}), type];
|
|
3262
3264
|
});
|
|
3265
|
+
var arr = cytobands || [];
|
|
3266
|
+
var lcap = reversed ? arr.length - 1 : 0;
|
|
3267
|
+
var rcap = reversed ? 0 : arr.length - 1;
|
|
3263
3268
|
var firstCent = true;
|
|
3264
3269
|
return cytobands ? /*#__PURE__*/React.createElement("g", {
|
|
3265
3270
|
transform: "translate(-".concat(offsetPx, ")")
|
|
@@ -3288,13 +3293,13 @@ var Cytobands = /*#__PURE__*/observer(function (_ref2) {
|
|
|
3288
3293
|
});
|
|
3289
3294
|
}
|
|
3290
3295
|
|
|
3291
|
-
if (
|
|
3296
|
+
if (lcap === index) {
|
|
3292
3297
|
return /*#__PURE__*/React.createElement("path", {
|
|
3293
3298
|
key: key,
|
|
3294
3299
|
d: leftRoundedRect(Math.min(start, end), 0, Math.abs(end - start), HEADER_OVERVIEW_HEIGHT, 8),
|
|
3295
3300
|
fill: colorMap[type]
|
|
3296
3301
|
});
|
|
3297
|
-
} else if (
|
|
3302
|
+
} else if (rcap === index) {
|
|
3298
3303
|
return /*#__PURE__*/React.createElement("path", {
|
|
3299
3304
|
key: key,
|
|
3300
3305
|
d: rightRoundedRect(Math.min(start, end), 0, Math.abs(end - start) - 2, HEADER_OVERVIEW_HEIGHT, 8),
|
|
@@ -3473,20 +3478,6 @@ function OverviewScaleBar(_ref7) {
|
|
|
3473
3478
|
|
|
3474
3479
|
var OverviewScaleBar$1 = /*#__PURE__*/observer(OverviewScaleBar);
|
|
3475
3480
|
|
|
3476
|
-
function getBpDisplayStr(totalBp) {
|
|
3477
|
-
var displayBp;
|
|
3478
|
-
|
|
3479
|
-
if (Math.floor(totalBp / 1000000) > 0) {
|
|
3480
|
-
displayBp = "".concat(parseFloat((totalBp / 1000000).toPrecision(3)), "Mbp");
|
|
3481
|
-
} else if (Math.floor(totalBp / 1000) > 0) {
|
|
3482
|
-
displayBp = "".concat(parseFloat((totalBp / 1000).toPrecision(3)), "Kbp");
|
|
3483
|
-
} else {
|
|
3484
|
-
displayBp = "".concat(Math.floor(totalBp), "bp");
|
|
3485
|
-
}
|
|
3486
|
-
|
|
3487
|
-
return displayBp;
|
|
3488
|
-
}
|
|
3489
|
-
|
|
3490
3481
|
function ScaleBar$1(_ref) {
|
|
3491
3482
|
var model = _ref.model,
|
|
3492
3483
|
fontSize = _ref.fontSize;
|
|
@@ -4369,51 +4360,7 @@ function ExportSvgDlg(_ref) {
|
|
|
4369
4360
|
}, "Submit")));
|
|
4370
4361
|
}
|
|
4371
4362
|
|
|
4372
|
-
var useStyles$9 = /*#__PURE__*/makeStyles(
|
|
4373
|
-
return {
|
|
4374
|
-
closeButton: {
|
|
4375
|
-
position: 'absolute',
|
|
4376
|
-
right: theme.spacing(1),
|
|
4377
|
-
top: theme.spacing(1),
|
|
4378
|
-
color: theme.palette.grey[500]
|
|
4379
|
-
}
|
|
4380
|
-
};
|
|
4381
|
-
});
|
|
4382
|
-
|
|
4383
|
-
function ReturnToImportFormDialog(_ref) {
|
|
4384
|
-
var model = _ref.model,
|
|
4385
|
-
handleClose = _ref.handleClose;
|
|
4386
|
-
var classes = useStyles$9();
|
|
4387
|
-
return /*#__PURE__*/React.createElement(Dialog, {
|
|
4388
|
-
maxWidth: "xl",
|
|
4389
|
-
open: true,
|
|
4390
|
-
onClose: handleClose
|
|
4391
|
-
}, /*#__PURE__*/React.createElement(DialogTitle, null, "Reference sequence", handleClose ? /*#__PURE__*/React.createElement(IconButton, {
|
|
4392
|
-
className: classes.closeButton,
|
|
4393
|
-
onClick: function onClick() {
|
|
4394
|
-
handleClose();
|
|
4395
|
-
}
|
|
4396
|
-
}, /*#__PURE__*/React.createElement(CloseIcon, null)) : null), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(DialogContent, null, /*#__PURE__*/React.createElement(Typography$1, null, "Are you sure you want to return to the import form? This will lose your current view")), /*#__PURE__*/React.createElement(DialogActions, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
4397
|
-
onClick: function onClick() {
|
|
4398
|
-
model.clearView();
|
|
4399
|
-
handleClose();
|
|
4400
|
-
},
|
|
4401
|
-
variant: "contained",
|
|
4402
|
-
color: "primary",
|
|
4403
|
-
autoFocus: true
|
|
4404
|
-
}, "OK"), /*#__PURE__*/React.createElement(Button$1, {
|
|
4405
|
-
onClick: function onClick() {
|
|
4406
|
-
handleClose();
|
|
4407
|
-
},
|
|
4408
|
-
color: "secondary",
|
|
4409
|
-
variant: "contained",
|
|
4410
|
-
autoFocus: true
|
|
4411
|
-
}, "Cancel")));
|
|
4412
|
-
}
|
|
4413
|
-
|
|
4414
|
-
var ReturnToImportFormDlg = /*#__PURE__*/observer(ReturnToImportFormDialog);
|
|
4415
|
-
|
|
4416
|
-
var useStyles$a = /*#__PURE__*/makeStyles({
|
|
4363
|
+
var useStyles$9 = /*#__PURE__*/makeStyles({
|
|
4417
4364
|
container: {
|
|
4418
4365
|
display: 'flex',
|
|
4419
4366
|
flexDirection: 'row',
|
|
@@ -4426,7 +4373,7 @@ var useStyles$a = /*#__PURE__*/makeStyles({
|
|
|
4426
4373
|
|
|
4427
4374
|
function ZoomControls(_ref) {
|
|
4428
4375
|
var model = _ref.model;
|
|
4429
|
-
var classes = useStyles$
|
|
4376
|
+
var classes = useStyles$9();
|
|
4430
4377
|
var maxBpPerPx = model.maxBpPerPx,
|
|
4431
4378
|
minBpPerPx = model.minBpPerPx,
|
|
4432
4379
|
bpPerPx = model.bpPerPx,
|
|
@@ -4473,7 +4420,7 @@ function ZoomControls(_ref) {
|
|
|
4473
4420
|
|
|
4474
4421
|
var ZoomControls$1 = /*#__PURE__*/observer(ZoomControls);
|
|
4475
4422
|
|
|
4476
|
-
var useStyles$
|
|
4423
|
+
var useStyles$a = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
4477
4424
|
return {
|
|
4478
4425
|
headerBar: {
|
|
4479
4426
|
height: HEADER_BAR_HEIGHT,
|
|
@@ -4508,7 +4455,7 @@ var useStyles$b = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
|
4508
4455
|
});
|
|
4509
4456
|
var HeaderButtons = /*#__PURE__*/observer(function (_ref) {
|
|
4510
4457
|
var model = _ref.model;
|
|
4511
|
-
var classes = useStyles$
|
|
4458
|
+
var classes = useStyles$a();
|
|
4512
4459
|
return /*#__PURE__*/React.createElement(Button$1, {
|
|
4513
4460
|
onClick: model.activateTrackSelector,
|
|
4514
4461
|
className: classes.toggleButton,
|
|
@@ -4522,7 +4469,7 @@ var HeaderButtons = /*#__PURE__*/observer(function (_ref) {
|
|
|
4522
4469
|
|
|
4523
4470
|
function PanControls(_ref2) {
|
|
4524
4471
|
var model = _ref2.model;
|
|
4525
|
-
var classes = useStyles$
|
|
4472
|
+
var classes = useStyles$a();
|
|
4526
4473
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
4527
4474
|
variant: "outlined",
|
|
4528
4475
|
className: classes.panButton,
|
|
@@ -4540,7 +4487,7 @@ function PanControls(_ref2) {
|
|
|
4540
4487
|
|
|
4541
4488
|
var RegionWidth = /*#__PURE__*/observer(function (_ref3) {
|
|
4542
4489
|
var model = _ref3.model;
|
|
4543
|
-
var classes = useStyles$
|
|
4490
|
+
var classes = useStyles$a();
|
|
4544
4491
|
var coarseTotalBp = model.coarseTotalBp;
|
|
4545
4492
|
return /*#__PURE__*/React.createElement(Typography$1, {
|
|
4546
4493
|
variant: "body2",
|
|
@@ -4551,7 +4498,7 @@ var RegionWidth = /*#__PURE__*/observer(function (_ref3) {
|
|
|
4551
4498
|
|
|
4552
4499
|
var Controls = function Controls(_ref4) {
|
|
4553
4500
|
var model = _ref4.model;
|
|
4554
|
-
var classes = useStyles$
|
|
4501
|
+
var classes = useStyles$a();
|
|
4555
4502
|
return /*#__PURE__*/React.createElement("div", {
|
|
4556
4503
|
className: classes.headerBar
|
|
4557
4504
|
}, /*#__PURE__*/React.createElement(HeaderButtons, {
|
|
@@ -4585,7 +4532,7 @@ var LinearGenomeViewHeader = /*#__PURE__*/observer(function (_ref5) {
|
|
|
4585
4532
|
}));
|
|
4586
4533
|
});
|
|
4587
4534
|
|
|
4588
|
-
var useStyles$
|
|
4535
|
+
var useStyles$b = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
4589
4536
|
return {
|
|
4590
4537
|
root: {
|
|
4591
4538
|
background: alpha(theme.palette.background.paper, 0.8),
|
|
@@ -4619,7 +4566,7 @@ var useStyles$c = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
|
4619
4566
|
var TrackLabel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
4620
4567
|
var _session$getTrackActi;
|
|
4621
4568
|
|
|
4622
|
-
var classes = useStyles$
|
|
4569
|
+
var classes = useStyles$b();
|
|
4623
4570
|
|
|
4624
4571
|
var _React$useState = React.useState(null),
|
|
4625
4572
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -4713,13 +4660,11 @@ var TrackLabel = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
4713
4660
|
});
|
|
4714
4661
|
var TrackLabel$1 = /*#__PURE__*/observer(TrackLabel);
|
|
4715
4662
|
|
|
4716
|
-
var useStyles$
|
|
4663
|
+
var useStyles$c = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
4717
4664
|
return {
|
|
4718
4665
|
root: {},
|
|
4719
4666
|
resizeHandle: {
|
|
4720
4667
|
height: RESIZE_HANDLE_HEIGHT,
|
|
4721
|
-
boxSizing: 'border-box',
|
|
4722
|
-
position: 'relative',
|
|
4723
4668
|
zIndex: 2
|
|
4724
4669
|
},
|
|
4725
4670
|
overlay: {
|
|
@@ -4731,13 +4676,6 @@ var useStyles$d = /*#__PURE__*/makeStyles(function (theme) {
|
|
|
4731
4676
|
zIndex: 3,
|
|
4732
4677
|
borderRadius: theme.shape.borderRadius
|
|
4733
4678
|
},
|
|
4734
|
-
renderingComponentContainer: {
|
|
4735
|
-
position: 'absolute',
|
|
4736
|
-
// -1 offset because of the 1px border of the Paper
|
|
4737
|
-
left: -1,
|
|
4738
|
-
height: '100%',
|
|
4739
|
-
width: '100%'
|
|
4740
|
-
},
|
|
4741
4679
|
trackLabel: {
|
|
4742
4680
|
zIndex: 3,
|
|
4743
4681
|
margin: theme.spacing(1)
|
|
@@ -4755,22 +4693,22 @@ var useStyles$d = /*#__PURE__*/makeStyles(function (theme) {
|
|
|
4755
4693
|
whiteSpace: 'nowrap',
|
|
4756
4694
|
position: 'relative',
|
|
4757
4695
|
background: 'none',
|
|
4758
|
-
zIndex: 2
|
|
4759
|
-
boxSizing: 'content-box'
|
|
4696
|
+
zIndex: 2
|
|
4760
4697
|
}
|
|
4761
4698
|
};
|
|
4762
4699
|
});
|
|
4763
4700
|
|
|
4764
|
-
function TrackContainer(
|
|
4765
|
-
var
|
|
4766
|
-
|
|
4767
|
-
|
|
4701
|
+
function TrackContainer(_ref) {
|
|
4702
|
+
var model = _ref.model,
|
|
4703
|
+
track = _ref.track;
|
|
4704
|
+
var classes = useStyles$c();
|
|
4768
4705
|
var display = track.displays[0];
|
|
4769
|
-
var
|
|
4706
|
+
var id = model.id,
|
|
4707
|
+
trackLabels = model.trackLabels,
|
|
4708
|
+
horizontalScroll = model.horizontalScroll,
|
|
4770
4709
|
draggingTrackId = model.draggingTrackId,
|
|
4771
4710
|
moveTrack = model.moveTrack;
|
|
4772
4711
|
var height = display.height;
|
|
4773
|
-
var view = getContainingView(display);
|
|
4774
4712
|
var trackId = getConf(track, 'trackId');
|
|
4775
4713
|
var ref = useRef(null);
|
|
4776
4714
|
useEffect(function () {
|
|
@@ -4795,10 +4733,7 @@ function TrackContainer(props) {
|
|
|
4795
4733
|
var dimmed = draggingTrackId !== undefined && draggingTrackId !== display.id;
|
|
4796
4734
|
return /*#__PURE__*/React.createElement("div", {
|
|
4797
4735
|
className: classes.root
|
|
4798
|
-
},
|
|
4799
|
-
track: track,
|
|
4800
|
-
className: clsx(classes.trackLabel, view.trackLabels === 'overlapping' ? classes.trackLabelOverlap : classes.trackLabelInline)
|
|
4801
|
-
}) : null, /*#__PURE__*/React.createElement(Paper$1, {
|
|
4736
|
+
}, /*#__PURE__*/React.createElement(Paper, {
|
|
4802
4737
|
variant: "outlined",
|
|
4803
4738
|
className: classes.trackRenderingContainer,
|
|
4804
4739
|
style: {
|
|
@@ -4809,11 +4744,13 @@ function TrackContainer(props) {
|
|
|
4809
4744
|
display.setScrollTop(target.scrollTop);
|
|
4810
4745
|
},
|
|
4811
4746
|
onDragEnter: debouncedOnDragEnter,
|
|
4812
|
-
"data-testid": "trackRenderingContainer-".concat(
|
|
4747
|
+
"data-testid": "trackRenderingContainer-".concat(id, "-").concat(trackId),
|
|
4813
4748
|
role: "presentation"
|
|
4814
|
-
}, /*#__PURE__*/React.createElement(
|
|
4749
|
+
}, trackLabels !== 'hidden' ? /*#__PURE__*/React.createElement(TrackLabel$1, {
|
|
4750
|
+
track: track,
|
|
4751
|
+
className: clsx(classes.trackLabel, trackLabels === 'overlapping' ? classes.trackLabelOverlap : classes.trackLabelInline)
|
|
4752
|
+
}) : null, /*#__PURE__*/React.createElement("div", {
|
|
4815
4753
|
ref: ref,
|
|
4816
|
-
className: classes.renderingComponentContainer,
|
|
4817
4754
|
style: {
|
|
4818
4755
|
transform: "scaleX(".concat(model.scaleFactor, ")")
|
|
4819
4756
|
}
|
|
@@ -4827,7 +4764,7 @@ function TrackContainer(props) {
|
|
|
4827
4764
|
left: 0,
|
|
4828
4765
|
top: display.height - 20
|
|
4829
4766
|
}
|
|
4830
|
-
},
|
|
4767
|
+
}, /*#__PURE__*/React.createElement(DisplayBlurb, {
|
|
4831
4768
|
model: display
|
|
4832
4769
|
})) : null), /*#__PURE__*/React.createElement("div", {
|
|
4833
4770
|
className: classes.overlay,
|
|
@@ -4844,7 +4781,7 @@ function TrackContainer(props) {
|
|
|
4844
4781
|
|
|
4845
4782
|
var TrackContainer$1 = /*#__PURE__*/observer(TrackContainer);
|
|
4846
4783
|
|
|
4847
|
-
var useStyles$
|
|
4784
|
+
var useStyles$d = /*#__PURE__*/makeStyles(function (theme) {
|
|
4848
4785
|
var background = theme.palette.tertiary ? alpha$1(theme.palette.tertiary.main, 0.7) : alpha$1(theme.palette.primary.main, 0.7);
|
|
4849
4786
|
return {
|
|
4850
4787
|
rubberBand: {
|
|
@@ -4883,7 +4820,7 @@ var useStyles$e = /*#__PURE__*/makeStyles(function (theme) {
|
|
|
4883
4820
|
var VerticalGuide = /*#__PURE__*/observer(function (_ref) {
|
|
4884
4821
|
var model = _ref.model,
|
|
4885
4822
|
coordX = _ref.coordX;
|
|
4886
|
-
var classes = useStyles$
|
|
4823
|
+
var classes = useStyles$d();
|
|
4887
4824
|
return /*#__PURE__*/React.createElement(Tooltip$2, {
|
|
4888
4825
|
open: true,
|
|
4889
4826
|
placement: "top",
|
|
@@ -4927,7 +4864,7 @@ function RubberBand(_ref2) {
|
|
|
4927
4864
|
|
|
4928
4865
|
var controlsRef = useRef(null);
|
|
4929
4866
|
var rubberBandRef = useRef(null);
|
|
4930
|
-
var classes = useStyles$
|
|
4867
|
+
var classes = useStyles$d();
|
|
4931
4868
|
var mouseDragging = startX !== undefined && anchorPosition === undefined;
|
|
4932
4869
|
var setOffsets = model.setOffsets,
|
|
4933
4870
|
pxToBp = model.pxToBp;
|
|
@@ -5130,7 +5067,7 @@ RubberBand.defaultProps = {
|
|
|
5130
5067
|
var RubberBand$1 = /*#__PURE__*/observer(RubberBand);
|
|
5131
5068
|
|
|
5132
5069
|
var _excluded$1 = ["model", "style", "className"];
|
|
5133
|
-
var useStyles$
|
|
5070
|
+
var useStyles$e = /*#__PURE__*/makeStyles(function (theme) {
|
|
5134
5071
|
return {
|
|
5135
5072
|
scaleBarContainer: {
|
|
5136
5073
|
overflow: 'hidden',
|
|
@@ -5174,7 +5111,7 @@ var useStyles$f = /*#__PURE__*/makeStyles(function (theme) {
|
|
|
5174
5111
|
});
|
|
5175
5112
|
var RenderedRefNameLabels = /*#__PURE__*/observer(function (_ref) {
|
|
5176
5113
|
var model = _ref.model;
|
|
5177
|
-
var classes = useStyles$
|
|
5114
|
+
var classes = useStyles$e(); // find the block that needs pinning to the left side for context
|
|
5178
5115
|
|
|
5179
5116
|
var lastLeftBlock = 0;
|
|
5180
5117
|
model.staticBlocks.forEach(function (block, i) {
|
|
@@ -5196,7 +5133,7 @@ var RenderedRefNameLabels = /*#__PURE__*/observer(function (_ref) {
|
|
|
5196
5133
|
});
|
|
5197
5134
|
var RenderedScaleBarLabels = /*#__PURE__*/observer(function (_ref2) {
|
|
5198
5135
|
var model = _ref2.model;
|
|
5199
|
-
var classes = useStyles$
|
|
5136
|
+
var classes = useStyles$e();
|
|
5200
5137
|
return /*#__PURE__*/React.createElement(React.Fragment, null, model.staticBlocks.map(function (block, index) {
|
|
5201
5138
|
if (block instanceof ContentBlock$1) {
|
|
5202
5139
|
var ticks = makeTicks(block.start, block.end, model.bpPerPx, true, false);
|
|
@@ -5249,7 +5186,7 @@ var ScaleBar$2 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
5249
5186
|
className = _ref3.className,
|
|
5250
5187
|
other = _objectWithoutProperties(_ref3, _excluded$1);
|
|
5251
5188
|
|
|
5252
|
-
var classes = useStyles$
|
|
5189
|
+
var classes = useStyles$e();
|
|
5253
5190
|
var offsetLeft = model.staticBlocks.offsetPx - model.offsetPx;
|
|
5254
5191
|
return /*#__PURE__*/React.createElement(Paper$1, Object.assign({
|
|
5255
5192
|
"data-resizer": "true" // used to avoid click-and-drag scrolls on trackscontainer
|
|
@@ -5277,7 +5214,7 @@ var ScaleBar$2 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
5277
5214
|
});
|
|
5278
5215
|
var ScaleBar$3 = /*#__PURE__*/observer(ScaleBar$2);
|
|
5279
5216
|
|
|
5280
|
-
var useStyles$
|
|
5217
|
+
var useStyles$f = /*#__PURE__*/makeStyles(function (theme) {
|
|
5281
5218
|
return {
|
|
5282
5219
|
verticalGuidesZoomContainer: {
|
|
5283
5220
|
position: 'absolute',
|
|
@@ -5308,7 +5245,7 @@ var useStyles$g = /*#__PURE__*/makeStyles(function (theme) {
|
|
|
5308
5245
|
});
|
|
5309
5246
|
var RenderedVerticalGuides = /*#__PURE__*/observer(function (_ref) {
|
|
5310
5247
|
var model = _ref.model;
|
|
5311
|
-
var classes = useStyles$
|
|
5248
|
+
var classes = useStyles$f();
|
|
5312
5249
|
return /*#__PURE__*/React.createElement(React.Fragment, null, model.staticBlocks.map(function (block, index) {
|
|
5313
5250
|
if (block instanceof ContentBlock$1) {
|
|
5314
5251
|
var ticks = makeTicks(block.start, block.end, model.bpPerPx);
|
|
@@ -5348,7 +5285,7 @@ var RenderedVerticalGuides = /*#__PURE__*/observer(function (_ref) {
|
|
|
5348
5285
|
|
|
5349
5286
|
function VerticalGuides(_ref2) {
|
|
5350
5287
|
var model = _ref2.model;
|
|
5351
|
-
var classes = useStyles$
|
|
5288
|
+
var classes = useStyles$f(); // find the block that needs pinning to the left side for context
|
|
5352
5289
|
|
|
5353
5290
|
var offsetLeft = model.staticBlocks.offsetPx - model.offsetPx;
|
|
5354
5291
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -5369,7 +5306,7 @@ function VerticalGuides(_ref2) {
|
|
|
5369
5306
|
|
|
5370
5307
|
var VerticalGuides$1 = /*#__PURE__*/observer(VerticalGuides);
|
|
5371
5308
|
|
|
5372
|
-
var useStyles$
|
|
5309
|
+
var useStyles$g = /*#__PURE__*/makeStyles(function () {
|
|
5373
5310
|
return {
|
|
5374
5311
|
centerLineContainer: {
|
|
5375
5312
|
background: 'transparent',
|
|
@@ -5398,7 +5335,7 @@ function CenterLine(_ref) {
|
|
|
5398
5335
|
tracks = model.tracks,
|
|
5399
5336
|
width = model.width;
|
|
5400
5337
|
var ref = useRef(null);
|
|
5401
|
-
var classes = useStyles$
|
|
5338
|
+
var classes = useStyles$g();
|
|
5402
5339
|
var startingPosition = width / 2;
|
|
5403
5340
|
return tracks.length ? /*#__PURE__*/React.createElement("div", {
|
|
5404
5341
|
"data-testid": "centerline_container",
|
|
@@ -5425,7 +5362,7 @@ CenterLine.propTypes = {
|
|
|
5425
5362
|
};
|
|
5426
5363
|
var CenterLine$1 = /*#__PURE__*/observer(CenterLine);
|
|
5427
5364
|
|
|
5428
|
-
var useStyles$
|
|
5365
|
+
var useStyles$h = /*#__PURE__*/makeStyles(function (theme) {
|
|
5429
5366
|
return {
|
|
5430
5367
|
tracksContainer: {
|
|
5431
5368
|
position: 'relative',
|
|
@@ -5442,7 +5379,7 @@ var useStyles$i = /*#__PURE__*/makeStyles(function (theme) {
|
|
|
5442
5379
|
function TracksContainer(_ref) {
|
|
5443
5380
|
var children = _ref.children,
|
|
5444
5381
|
model = _ref.model;
|
|
5445
|
-
var classes = useStyles$
|
|
5382
|
+
var classes = useStyles$h(); // refs are to store these variables to avoid repeated rerenders associated
|
|
5446
5383
|
// with useState/setState
|
|
5447
5384
|
|
|
5448
5385
|
var delta = useRef(0);
|
|
@@ -5608,7 +5545,7 @@ var TracksContainer$1 = /*#__PURE__*/observer(TracksContainer);
|
|
|
5608
5545
|
var SearchResultsDialog = /*#__PURE__*/lazy(function () {
|
|
5609
5546
|
return Promise.resolve().then(function () { return SearchResultsDialog$2; });
|
|
5610
5547
|
});
|
|
5611
|
-
var useStyles$
|
|
5548
|
+
var useStyles$i = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
5612
5549
|
return {
|
|
5613
5550
|
importFormContainer: {
|
|
5614
5551
|
padding: theme.spacing(2)
|
|
@@ -5622,7 +5559,7 @@ var ImportForm = /*#__PURE__*/observer(function (_ref) {
|
|
|
5622
5559
|
var _regions$;
|
|
5623
5560
|
|
|
5624
5561
|
var model = _ref.model;
|
|
5625
|
-
var classes = useStyles$
|
|
5562
|
+
var classes = useStyles$i();
|
|
5626
5563
|
var session = getSession(model);
|
|
5627
5564
|
var assemblyNames = session.assemblyNames,
|
|
5628
5565
|
assemblyManager = session.assemblyManager,
|
|
@@ -5922,7 +5859,7 @@ var MiniControls = /*#__PURE__*/observer(function (props) {
|
|
|
5922
5859
|
}));
|
|
5923
5860
|
});
|
|
5924
5861
|
|
|
5925
|
-
var useStyles$
|
|
5862
|
+
var useStyles$j = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
5926
5863
|
return {
|
|
5927
5864
|
loadingMessage: {
|
|
5928
5865
|
padding: theme.spacing(5)
|
|
@@ -6018,7 +5955,7 @@ function _fetchSequence() {
|
|
|
6018
5955
|
function SequenceDialog(_ref) {
|
|
6019
5956
|
var model = _ref.model,
|
|
6020
5957
|
handleClose = _ref.handleClose;
|
|
6021
|
-
var classes = useStyles$
|
|
5958
|
+
var classes = useStyles$j();
|
|
6022
5959
|
var session = getSession(model);
|
|
6023
5960
|
|
|
6024
5961
|
var _useState = useState(),
|
|
@@ -6183,7 +6120,7 @@ function SequenceDialog(_ref) {
|
|
|
6183
6120
|
|
|
6184
6121
|
var SequenceDialog$1 = /*#__PURE__*/observer(SequenceDialog);
|
|
6185
6122
|
|
|
6186
|
-
var useStyles$
|
|
6123
|
+
var useStyles$k = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
6187
6124
|
return {
|
|
6188
6125
|
dialogContent: {
|
|
6189
6126
|
width: '80em'
|
|
@@ -6202,7 +6139,7 @@ function SearchResultsDialog$1(_ref) {
|
|
|
6202
6139
|
var model = _ref.model,
|
|
6203
6140
|
optAssemblyName = _ref.optAssemblyName,
|
|
6204
6141
|
handleClose = _ref.handleClose;
|
|
6205
|
-
var classes = useStyles$
|
|
6142
|
+
var classes = useStyles$k();
|
|
6206
6143
|
var session = getSession(model);
|
|
6207
6144
|
|
|
6208
6145
|
var _getEnv = getEnv(session),
|
|
@@ -6323,11 +6260,11 @@ function SearchResultsDialog$1(_ref) {
|
|
|
6323
6260
|
|
|
6324
6261
|
var SearchResultsDialog$2 = {
|
|
6325
6262
|
__proto__: null,
|
|
6326
|
-
useStyles: useStyles$
|
|
6263
|
+
useStyles: useStyles$k,
|
|
6327
6264
|
'default': SearchResultsDialog$1
|
|
6328
6265
|
};
|
|
6329
6266
|
|
|
6330
|
-
var useStyles$
|
|
6267
|
+
var useStyles$l = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
6331
6268
|
return {
|
|
6332
6269
|
note: {
|
|
6333
6270
|
textAlign: 'center',
|
|
@@ -6363,7 +6300,7 @@ var LinearGenomeView = /*#__PURE__*/observer(function (_ref) {
|
|
|
6363
6300
|
hideHeader = model.hideHeader,
|
|
6364
6301
|
initialized = model.initialized,
|
|
6365
6302
|
hasDisplayedRegions = model.hasDisplayedRegions;
|
|
6366
|
-
var classes = useStyles$
|
|
6303
|
+
var classes = useStyles$l();
|
|
6367
6304
|
|
|
6368
6305
|
if (!initialized && !error) {
|
|
6369
6306
|
return /*#__PURE__*/React.createElement(Typography$1, {
|
|
@@ -6444,7 +6381,7 @@ function calculateVisibleLocStrings(contentBlocks) {
|
|
|
6444
6381
|
assemblyName: isSingleAssemblyName ? undefined : block.assemblyName
|
|
6445
6382
|
}));
|
|
6446
6383
|
});
|
|
6447
|
-
return locs.join('
|
|
6384
|
+
return locs.join(' ');
|
|
6448
6385
|
}
|
|
6449
6386
|
|
|
6450
6387
|
var HEADER_BAR_HEIGHT = 48;
|
|
@@ -7008,100 +6945,73 @@ function stateModelFactory$1(pluginManager) {
|
|
|
7008
6945
|
throw new Error("invalid track selector type ".concat(self.trackSelectorType));
|
|
7009
6946
|
},
|
|
7010
6947
|
navToLocString: function navToLocString(locString, optAssemblyName) {
|
|
6948
|
+
var assemblyNames = self.assemblyNames;
|
|
6949
|
+
|
|
7011
6950
|
var _getSession3 = getSession(self),
|
|
7012
6951
|
assemblyManager = _getSession3.assemblyManager;
|
|
7013
6952
|
|
|
7014
6953
|
var isValidRefName = assemblyManager.isValidRefName;
|
|
7015
|
-
var
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
6954
|
+
var assemblyName = optAssemblyName || assemblyNames[0];
|
|
6955
|
+
var parsedLocStrings = locString.split(' ').filter(function (f) {
|
|
6956
|
+
return !!f.trim();
|
|
6957
|
+
}).map(function (l) {
|
|
6958
|
+
return parseLocString(l, function (ref) {
|
|
6959
|
+
return isValidRefName(ref, assemblyName);
|
|
7020
6960
|
});
|
|
7021
|
-
this.navToMultiple(locations);
|
|
7022
|
-
return;
|
|
7023
|
-
}
|
|
7024
|
-
|
|
7025
|
-
var assemblyName = optAssemblyName;
|
|
7026
|
-
var defaultRefName = '';
|
|
7027
|
-
|
|
7028
|
-
if (self.displayedRegions.length !== 0) {
|
|
7029
|
-
// defaults
|
|
7030
|
-
assemblyName = self.displayedRegions[0].assemblyName;
|
|
7031
|
-
defaultRefName = self.displayedRegions[0].refName;
|
|
7032
|
-
}
|
|
7033
|
-
|
|
7034
|
-
var assembly = assemblyName && assemblyManager.get(assemblyName);
|
|
7035
|
-
|
|
7036
|
-
if (!assembly) {
|
|
7037
|
-
throw new Error("Could not find assembly ".concat(assemblyName));
|
|
7038
|
-
}
|
|
7039
|
-
|
|
7040
|
-
var _assembly = assembly,
|
|
7041
|
-
regions = _assembly.regions;
|
|
7042
|
-
|
|
7043
|
-
if (!regions) {
|
|
7044
|
-
throw new Error("Regions for assembly ".concat(assemblyName, " not yet loaded"));
|
|
7045
|
-
}
|
|
7046
|
-
|
|
7047
|
-
if (locStrings.length > 1) {
|
|
7048
|
-
throw new Error('Navigating to multiple locations is not allowed when viewing a whole chromosome');
|
|
7049
|
-
}
|
|
7050
|
-
|
|
7051
|
-
var parsedLocString = parseLocString(locStrings[0], function (refName) {
|
|
7052
|
-
return isValidRefName(refName, assemblyName);
|
|
7053
6961
|
});
|
|
7054
|
-
var
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
var
|
|
6962
|
+
var locations = parsedLocStrings.map(function (region) {
|
|
6963
|
+
var asmName = region.assemblyName || assemblyName;
|
|
6964
|
+
var asm = assemblyManager.get(asmName);
|
|
6965
|
+
var refName = region.refName;
|
|
7058
6966
|
|
|
7059
|
-
if (!
|
|
7060
|
-
throw new Error("
|
|
6967
|
+
if (!asm) {
|
|
6968
|
+
throw new Error("assembly ".concat(asmName, " not found"));
|
|
7061
6969
|
}
|
|
7062
6970
|
|
|
7063
|
-
|
|
7064
|
-
changedAssembly = true;
|
|
7065
|
-
var newRegions = newAssembly.regions;
|
|
6971
|
+
var regions = asm.regions;
|
|
7066
6972
|
|
|
7067
|
-
if (!
|
|
7068
|
-
throw new Error("
|
|
6973
|
+
if (!regions) {
|
|
6974
|
+
throw new Error("regions not loaded yet for ".concat(asmName));
|
|
7069
6975
|
}
|
|
7070
6976
|
|
|
7071
|
-
|
|
7072
|
-
}
|
|
7073
|
-
|
|
7074
|
-
var canonicalRefName = assembly.getCanonicalRefName(parsedLocString.refName);
|
|
6977
|
+
var canonicalRefName = asm.getCanonicalRefName(region.refName);
|
|
7075
6978
|
|
|
7076
|
-
|
|
7077
|
-
|
|
7078
|
-
|
|
6979
|
+
if (!canonicalRefName) {
|
|
6980
|
+
throw new Error("Could not find refName ".concat(refName, " in ").concat(asm.name));
|
|
6981
|
+
}
|
|
7079
6982
|
|
|
7080
|
-
|
|
7081
|
-
var newDisplayedRegion = regions.find(function (region) {
|
|
6983
|
+
var parentRegion = regions.find(function (region) {
|
|
7082
6984
|
return region.refName === canonicalRefName;
|
|
7083
6985
|
});
|
|
7084
6986
|
|
|
7085
|
-
if (
|
|
7086
|
-
|
|
7087
|
-
} else {
|
|
7088
|
-
throw new Error("Could not find refName ".concat(parsedLocString.refName, " in ").concat(assembly.name));
|
|
6987
|
+
if (!parentRegion) {
|
|
6988
|
+
throw new Error("Could not find refName ".concat(refName, " in ").concat(asmName));
|
|
7089
6989
|
}
|
|
7090
|
-
}
|
|
7091
6990
|
|
|
7092
|
-
|
|
7093
|
-
|
|
6991
|
+
return _objectSpread2(_objectSpread2({}, region), {}, {
|
|
6992
|
+
assemblyName: asmName,
|
|
6993
|
+
parentRegion: parentRegion
|
|
6994
|
+
});
|
|
7094
6995
|
});
|
|
7095
6996
|
|
|
7096
|
-
if (
|
|
7097
|
-
var
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7101
|
-
|
|
7102
|
-
|
|
7103
|
-
|
|
6997
|
+
if (locations.length === 1) {
|
|
6998
|
+
var loc = locations[0];
|
|
6999
|
+
this.setDisplayedRegions([_objectSpread2({
|
|
7000
|
+
reversed: loc.reversed
|
|
7001
|
+
}, loc.parentRegion)]);
|
|
7002
|
+
var start = loc.start,
|
|
7003
|
+
end = loc.end,
|
|
7004
|
+
parentRegion = loc.parentRegion;
|
|
7005
|
+
this.navTo(_objectSpread2(_objectSpread2({}, loc), {}, {
|
|
7006
|
+
start: clamp(start !== null && start !== void 0 ? start : 0, 0, parentRegion.end),
|
|
7007
|
+
end: clamp(end !== null && end !== void 0 ? end : parentRegion.end, 0, parentRegion.end)
|
|
7008
|
+
}));
|
|
7009
|
+
} else {
|
|
7010
|
+
this.setDisplayedRegions( // @ts-ignore
|
|
7011
|
+
locations.map(function (r) {
|
|
7012
|
+
return r.start === undefined ? r.parentRegion : r;
|
|
7104
7013
|
}));
|
|
7014
|
+
this.showAllRegions();
|
|
7105
7015
|
}
|
|
7106
7016
|
},
|
|
7107
7017
|
|
|
@@ -7223,26 +7133,6 @@ function stateModelFactory$1(pluginManager) {
|
|
|
7223
7133
|
if (location.refName !== region.refName) {
|
|
7224
7134
|
throw new Error("Entered location ".concat(assembleLocString(location), " does not match with displayed regions"));
|
|
7225
7135
|
}
|
|
7226
|
-
|
|
7227
|
-
if (locationIndex > 0) {
|
|
7228
|
-
// does it reach the left side?
|
|
7229
|
-
var matchesLeft = region.reversed ? locationEnd === region.end : locationStart === region.start;
|
|
7230
|
-
|
|
7231
|
-
if (!matchesLeft) {
|
|
7232
|
-
throw new Error("".concat(region.reversed ? 'End' : 'Start', " of region ").concat(assembleLocString(location), " should be ").concat((region.reversed ? region.end : region.start + 1).toLocaleString('en-US'), ", but it is not"));
|
|
7233
|
-
}
|
|
7234
|
-
}
|
|
7235
|
-
|
|
7236
|
-
var isLast = locationIndex === locations.length - 1;
|
|
7237
|
-
|
|
7238
|
-
if (!isLast) {
|
|
7239
|
-
// does it reach the right side?
|
|
7240
|
-
var matchesRight = region.reversed ? locationStart === region.start : locationEnd === region.end;
|
|
7241
|
-
|
|
7242
|
-
if (!matchesRight) {
|
|
7243
|
-
throw new Error("".concat(region.reversed ? 'Start' : 'End', " of region ").concat(assembleLocString(location), " should be ").concat((region.reversed ? region.start + 1 : region.end).toLocaleString('en-US'), ", but it is not"));
|
|
7244
|
-
}
|
|
7245
|
-
}
|
|
7246
7136
|
}
|
|
7247
7137
|
|
|
7248
7138
|
locationIndex -= 1;
|
|
@@ -7537,10 +7427,10 @@ function stateModelFactory$1(pluginManager) {
|
|
|
7537
7427
|
var menuItems = [{
|
|
7538
7428
|
label: 'Return to import form',
|
|
7539
7429
|
onClick: function onClick() {
|
|
7540
|
-
getSession(self).queueDialog(function (
|
|
7541
|
-
return [
|
|
7430
|
+
getSession(self).queueDialog(function (handleClose) {
|
|
7431
|
+
return [ReturnToImportFormDialog, {
|
|
7542
7432
|
model: self,
|
|
7543
|
-
handleClose:
|
|
7433
|
+
handleClose: handleClose
|
|
7544
7434
|
}];
|
|
7545
7435
|
});
|
|
7546
7436
|
},
|
|
@@ -7549,10 +7439,10 @@ function stateModelFactory$1(pluginManager) {
|
|
|
7549
7439
|
label: 'Export SVG',
|
|
7550
7440
|
icon: PhotoCameraIcon,
|
|
7551
7441
|
onClick: function onClick() {
|
|
7552
|
-
getSession(self).queueDialog(function (
|
|
7442
|
+
getSession(self).queueDialog(function (handleClose) {
|
|
7553
7443
|
return [ExportSvgDlg, {
|
|
7554
7444
|
model: self,
|
|
7555
|
-
handleClose:
|
|
7445
|
+
handleClose: handleClose
|
|
7556
7446
|
}];
|
|
7557
7447
|
});
|
|
7558
7448
|
}
|
|
@@ -8079,7 +7969,7 @@ var LinearGenomeViewPlugin = /*#__PURE__*/function (_Plugin) {
|
|
|
8079
7969
|
return LinearGenomeViewPlugin;
|
|
8080
7970
|
}(Plugin);
|
|
8081
7971
|
|
|
8082
|
-
var useStyles$
|
|
7972
|
+
var useStyles$m = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
8083
7973
|
return {
|
|
8084
7974
|
closeButton: {
|
|
8085
7975
|
position: 'absolute',
|
|
@@ -8091,7 +7981,7 @@ var useStyles$n = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
|
8091
7981
|
});
|
|
8092
7982
|
function HelpDialog$1(_ref) {
|
|
8093
7983
|
var handleClose = _ref.handleClose;
|
|
8094
|
-
var classes = useStyles$
|
|
7984
|
+
var classes = useStyles$m();
|
|
8095
7985
|
return /*#__PURE__*/React.createElement(Dialog, {
|
|
8096
7986
|
open: true,
|
|
8097
7987
|
maxWidth: "xl",
|
|
@@ -8102,7 +7992,7 @@ function HelpDialog$1(_ref) {
|
|
|
8102
7992
|
onClick: function onClick() {
|
|
8103
7993
|
handleClose();
|
|
8104
7994
|
}
|
|
8105
|
-
}, /*#__PURE__*/React.createElement(CloseIcon, null)) : null), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(DialogContent, null, /*#__PURE__*/React.createElement("h3", null, "Searching"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Jump to a feature or reference sequence by typing its name in the location box and pressing Enter."), /*#__PURE__*/React.createElement("li", null, "Jump to a specific region by typing the region into the location box as: ", /*#__PURE__*/React.createElement("code", null, "ref:start..end"), " or ", /*#__PURE__*/React.createElement("code", null, "ref:start-end"), ". Commas are allowed in the start and end coordinates.")), /*#__PURE__*/React.createElement("h3", null, "Example Searches"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "BRCA"), " - searches for the feature named BRCA"), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "chr4"), " - jumps to chromosome 4"), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "chr4:79,500,000..80,000,000"), " - jumps the region on chromosome 4 between 79.5Mb and 80Mb."))), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(DialogActions, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
7995
|
+
}, /*#__PURE__*/React.createElement(CloseIcon, null)) : null), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(DialogContent, null, /*#__PURE__*/React.createElement("h3", null, "Searching"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, "Jump to a feature or reference sequence by typing its name in the location box and pressing Enter."), /*#__PURE__*/React.createElement("li", null, "Jump to a specific region by typing the region into the location box as: ", /*#__PURE__*/React.createElement("code", null, "ref:start..end"), " or ", /*#__PURE__*/React.createElement("code", null, "ref:start-end"), ". Commas are allowed in the start and end coordinates. A space-separated list of locstrings can be used to open up multiple chromosomes at a time")), /*#__PURE__*/React.createElement("h3", null, "Example Searches"), /*#__PURE__*/React.createElement("ul", null, /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "BRCA"), " - searches for the feature named BRCA"), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "chr4"), " - jumps to chromosome 4"), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "chr4:79,500,000..80,000,000"), " - jumps the region on chromosome 4 between 79.5Mb and 80Mb."), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "chr1:1-100 chr2:1-100"), " - create a split view of chr1:1-100 and chr2:1-100"), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "chr1 chr2 chr3"), " - open up multiple chromosomes at once"), /*#__PURE__*/React.createElement("li", null, /*#__PURE__*/React.createElement("code", null, "chr1:1-100[rev] chr2:1-100"), " - open up the first region in the horizontally flipped orientation"))), /*#__PURE__*/React.createElement(Divider, null), /*#__PURE__*/React.createElement(DialogActions, null, /*#__PURE__*/React.createElement(Button$1, {
|
|
8106
7996
|
onClick: function onClick() {
|
|
8107
7997
|
return handleClose();
|
|
8108
7998
|
},
|
|
@@ -8112,11 +8002,11 @@ function HelpDialog$1(_ref) {
|
|
|
8112
8002
|
|
|
8113
8003
|
var HelpDialog$2 = {
|
|
8114
8004
|
__proto__: null,
|
|
8115
|
-
useStyles: useStyles$
|
|
8005
|
+
useStyles: useStyles$m,
|
|
8116
8006
|
'default': HelpDialog$1
|
|
8117
8007
|
};
|
|
8118
8008
|
|
|
8119
|
-
var useStyles$
|
|
8009
|
+
var useStyles$n = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
8120
8010
|
return {
|
|
8121
8011
|
root: {
|
|
8122
8012
|
width: 500
|
|
@@ -8136,7 +8026,7 @@ var useStyles$o = /*#__PURE__*/makeStyles$1(function (theme) {
|
|
|
8136
8026
|
function SetMaxHeightDlg$1(props) {
|
|
8137
8027
|
var model = props.model,
|
|
8138
8028
|
handleClose = props.handleClose;
|
|
8139
|
-
var classes = useStyles$
|
|
8029
|
+
var classes = useStyles$n();
|
|
8140
8030
|
var _model$maxHeight = model.maxHeight,
|
|
8141
8031
|
maxHeight = _model$maxHeight === void 0 ? '' : _model$maxHeight;
|
|
8142
8032
|
|