react-msaview 1.3.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/index.js +285 -97099
- package/dist/StructureModel.d.ts +9 -0
- package/dist/StructureModel.js +11 -0
- package/dist/StructureModel.js.map +1 -0
- package/dist/UniprotTrack.d.ts +27 -0
- package/dist/UniprotTrack.js +53 -0
- package/dist/UniprotTrack.js.map +1 -0
- package/dist/colorSchemes.d.ts +5 -11
- package/dist/colorSchemes.js +27 -32
- package/dist/colorSchemes.js.map +1 -0
- package/dist/components/BoxTrack.d.ts +6 -6
- package/dist/components/BoxTrack.js +9 -137
- package/dist/components/BoxTrack.js.map +1 -0
- package/dist/components/BoxTrackBlock.d.ts +8 -0
- package/dist/components/BoxTrackBlock.js +136 -0
- package/dist/components/BoxTrackBlock.js.map +1 -0
- package/dist/components/Header.d.ts +2 -2
- package/dist/components/Header.js +55 -48
- package/dist/components/Header.js.map +1 -0
- package/dist/components/ImportForm.d.ts +2 -2
- package/dist/components/ImportForm.js +59 -71
- package/dist/components/ImportForm.js.map +1 -0
- package/dist/components/MSABlock.d.ts +8 -0
- package/dist/components/MSABlock.js +103 -0
- package/dist/components/MSABlock.js.map +1 -0
- package/dist/components/MSACanvas.d.ts +2 -2
- package/dist/components/MSACanvas.js +32 -133
- package/dist/components/MSACanvas.js.map +1 -0
- package/dist/components/MSAMouseoverCanvas.d.ts +6 -0
- package/dist/components/MSAMouseoverCanvas.js +52 -0
- package/dist/components/MSAMouseoverCanvas.js.map +1 -0
- package/dist/components/MSAView.d.ts +2 -2
- package/dist/components/MSAView.js +17 -62
- package/dist/components/MSAView.js.map +1 -0
- package/dist/components/MultiAlignmentSelector.d.ts +6 -0
- package/dist/components/MultiAlignmentSelector.js +13 -0
- package/dist/components/MultiAlignmentSelector.js.map +1 -0
- package/dist/components/ResizeHandles.d.ts +5 -5
- package/dist/components/ResizeHandles.js +31 -32
- package/dist/components/ResizeHandles.js.map +1 -0
- package/dist/components/Rubberband.d.ts +3 -2
- package/dist/components/Rubberband.js +41 -64
- package/dist/components/Rubberband.js.map +1 -0
- package/dist/components/Ruler.d.ts +2 -16
- package/dist/components/Ruler.js +19 -88
- package/dist/components/Ruler.js.map +1 -0
- package/dist/components/TextTrack.d.ts +5 -5
- package/dist/components/TextTrack.js +23 -24
- package/dist/components/TextTrack.js.map +1 -0
- package/dist/components/Track.d.ts +5 -5
- package/dist/components/Track.js +41 -40
- package/dist/components/Track.js.map +1 -0
- package/dist/components/TreeBranchMenu.d.ts +14 -0
- package/dist/components/TreeBranchMenu.js +26 -0
- package/dist/components/TreeBranchMenu.js.map +1 -0
- package/dist/components/TreeCanvas.d.ts +2 -2
- package/dist/components/TreeCanvas.js +24 -356
- package/dist/components/TreeCanvas.js.map +1 -0
- package/dist/components/TreeCanvasBlock.d.ts +7 -0
- package/dist/components/TreeCanvasBlock.js +252 -0
- package/dist/components/TreeCanvasBlock.js.map +1 -0
- package/dist/components/TreeMenu.d.ts +12 -0
- package/dist/components/TreeMenu.js +56 -0
- package/dist/components/TreeMenu.js.map +1 -0
- package/dist/components/TreeRuler.d.ts +2 -2
- package/dist/components/TreeRuler.js +3 -3
- package/dist/components/TreeRuler.js.map +1 -0
- package/dist/components/VerticalGuide.d.ts +7 -0
- package/dist/components/VerticalGuide.js +30 -0
- package/dist/components/VerticalGuide.js.map +1 -0
- package/dist/components/ZoomControls.d.ts +6 -0
- package/dist/components/ZoomControls.js +58 -0
- package/dist/components/ZoomControls.js.map +1 -0
- package/dist/components/data/seq2.d.ts +3 -3
- package/dist/components/data/seq2.js +33 -3
- package/dist/components/data/seq2.js.map +1 -0
- package/dist/components/dialogs/AboutDlg.d.ts +4 -0
- package/dist/components/dialogs/AboutDlg.js +40 -0
- package/dist/components/dialogs/AboutDlg.js.map +1 -0
- package/{bundle/components → dist/components/dialogs}/AddTrackDlg.d.ts +3 -3
- package/dist/components/dialogs/AddTrackDlg.js +26 -0
- package/dist/components/dialogs/AddTrackDlg.js.map +1 -0
- package/dist/components/{AnnotationDlg.d.ts → dialogs/AnnotationDlg.d.ts} +3 -3
- package/dist/components/dialogs/AnnotationDlg.js +65 -0
- package/dist/components/dialogs/AnnotationDlg.js.map +1 -0
- package/dist/components/dialogs/DetailsDlg.d.ts +7 -0
- package/dist/components/dialogs/DetailsDlg.js +13 -0
- package/dist/components/dialogs/DetailsDlg.js.map +1 -0
- package/dist/components/dialogs/MoreInfoDlg.d.ts +6 -0
- package/dist/components/dialogs/MoreInfoDlg.js +11 -0
- package/dist/components/dialogs/MoreInfoDlg.js.map +1 -0
- package/dist/components/dialogs/SettingsDlg.d.ts +7 -0
- package/dist/components/dialogs/SettingsDlg.js +48 -0
- package/dist/components/dialogs/SettingsDlg.js.map +1 -0
- package/dist/components/dialogs/TrackInfoDlg.d.ts +9 -0
- package/{bundle/components → dist/components/dialogs}/TrackInfoDlg.js +12 -13
- package/dist/components/dialogs/TrackInfoDlg.js.map +1 -0
- package/dist/components/dialogs/TracklistDlg.d.ts +7 -0
- package/dist/components/dialogs/TracklistDlg.js +18 -0
- package/dist/components/dialogs/TracklistDlg.js.map +1 -0
- package/{bundle/components/Ruler.d.ts → dist/components/util.d.ts} +1 -6
- package/dist/components/util.js +68 -0
- package/dist/components/util.js.map +1 -0
- package/dist/index.d.ts +2 -4
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -0
- package/dist/layout.js +14 -20
- package/dist/layout.js.map +1 -0
- package/dist/model.d.ts +114 -97
- package/dist/model.js +248 -486
- package/dist/model.js.map +1 -0
- package/dist/parseNewick.d.ts +1 -5
- package/dist/parseNewick.js +11 -8
- package/dist/parseNewick.js.map +1 -0
- package/dist/parsers/ClustalMSA.d.ts +6 -18
- package/dist/parsers/ClustalMSA.js +55 -64
- package/dist/parsers/ClustalMSA.js.map +1 -0
- package/dist/parsers/FastaMSA.d.ts +5 -12
- package/dist/parsers/FastaMSA.js +55 -64
- package/dist/parsers/FastaMSA.js.map +1 -0
- package/dist/parsers/StockholmMSA.d.ts +10 -17
- package/dist/parsers/StockholmMSA.js +81 -110
- package/dist/parsers/StockholmMSA.js.map +1 -0
- package/dist/util.d.ts +34 -7
- package/dist/util.js +76 -24
- package/dist/util.js.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +2 -0
- package/dist/version.js.map +1 -0
- package/package.json +34 -34
- package/src/StructureModel.ts +11 -0
- package/src/UniprotTrack.ts +59 -0
- package/src/colorSchemes.ts +520 -0
- package/src/components/BoxTrack.tsx +33 -0
- package/src/components/BoxTrackBlock.tsx +198 -0
- package/src/components/Header.tsx +106 -0
- package/src/components/ImportForm.tsx +192 -0
- package/src/components/MSABlock.tsx +164 -0
- package/src/components/MSACanvas.tsx +142 -0
- package/src/components/MSAMouseoverCanvas.tsx +87 -0
- package/src/components/MSAView.tsx +88 -0
- package/src/components/MultiAlignmentSelector.tsx +33 -0
- package/src/components/ResizeHandles.tsx +137 -0
- package/src/components/Rubberband.tsx +270 -0
- package/src/components/Ruler.tsx +123 -0
- package/src/components/TextTrack.tsx +120 -0
- package/src/components/Track.tsx +153 -0
- package/src/components/TreeBranchMenu.tsx +67 -0
- package/src/components/TreeCanvas.tsx +128 -0
- package/src/components/TreeCanvasBlock.tsx +359 -0
- package/src/components/TreeMenu.tsx +105 -0
- package/src/components/TreeRuler.tsx +12 -0
- package/src/components/VerticalGuide.tsx +50 -0
- package/src/components/ZoomControls.tsx +78 -0
- package/src/components/data/seq2.ts +35 -0
- package/src/components/dialogs/AboutDlg.tsx +58 -0
- package/src/components/dialogs/AddTrackDlg.tsx +74 -0
- package/src/components/dialogs/AnnotationDlg.tsx +144 -0
- package/src/components/dialogs/DetailsDlg.tsx +28 -0
- package/src/components/dialogs/MoreInfoDlg.tsx +21 -0
- package/src/components/dialogs/SettingsDlg.tsx +154 -0
- package/src/components/dialogs/TrackInfoDlg.tsx +59 -0
- package/src/components/dialogs/TracklistDlg.tsx +59 -0
- package/src/components/util.ts +93 -0
- package/src/declare.d.ts +1 -0
- package/src/index.ts +2 -0
- package/src/layout.ts +83 -0
- package/src/model.ts +793 -0
- package/{bundle/parseNewick.d.ts → src/parseNewick.ts} +35 -5
- package/src/parsers/ClustalMSA.ts +79 -0
- package/src/parsers/FastaMSA.ts +82 -0
- package/src/parsers/StockholmMSA.ts +137 -0
- package/src/util.ts +142 -0
- package/src/version.ts +1 -0
- package/bundle/colorSchemes.d.ts +0 -16
- package/bundle/colorSchemes.js +0 -455
- package/bundle/components/AboutDlg.d.ts +0 -5
- package/bundle/components/AboutDlg.js +0 -47
- package/bundle/components/AddTrackDlg.js +0 -26
- package/bundle/components/AnnotationDlg.d.ts +0 -11
- package/bundle/components/AnnotationDlg.js +0 -77
- package/bundle/components/BoxTrack.d.ts +0 -7
- package/bundle/components/BoxTrack.js +0 -143
- package/bundle/components/DetailsDlg.d.ts +0 -8
- package/bundle/components/DetailsDlg.js +0 -12
- package/bundle/components/Header.d.ts +0 -6
- package/bundle/components/Header.js +0 -63
- package/bundle/components/ImportForm.d.ts +0 -6
- package/bundle/components/ImportForm.js +0 -89
- package/bundle/components/MSACanvas.d.ts +0 -6
- package/bundle/components/MSACanvas.js +0 -210
- package/bundle/components/MSAView.d.ts +0 -6
- package/bundle/components/MSAView.js +0 -88
- package/bundle/components/MoreInfoDlg.d.ts +0 -6
- package/bundle/components/MoreInfoDlg.js +0 -11
- package/bundle/components/ResizeHandles.d.ts +0 -8
- package/bundle/components/ResizeHandles.js +0 -110
- package/bundle/components/Rubberband.d.ts +0 -7
- package/bundle/components/Rubberband.js +0 -196
- package/bundle/components/Ruler.js +0 -121
- package/bundle/components/SettingsDlg.d.ts +0 -8
- package/bundle/components/SettingsDlg.js +0 -40
- package/bundle/components/TextTrack.d.ts +0 -7
- package/bundle/components/TextTrack.js +0 -72
- package/bundle/components/Track.d.ts +0 -11
- package/bundle/components/Track.js +0 -81
- package/bundle/components/TrackInfoDlg.d.ts +0 -6
- package/bundle/components/TracklistDlg.d.ts +0 -8
- package/bundle/components/TracklistDlg.js +0 -18
- package/bundle/components/TreeCanvas.d.ts +0 -6
- package/bundle/components/TreeCanvas.js +0 -431
- package/bundle/components/TreeRuler.d.ts +0 -6
- package/bundle/components/TreeRuler.js +0 -8
- package/bundle/components/data/seq2.d.ts +0 -3
- package/bundle/components/data/seq2.js +0 -3
- package/bundle/index.d.ts +0 -4
- package/bundle/layout.d.ts +0 -23
- package/bundle/layout.js +0 -53
- package/bundle/model.d.ts +0 -364
- package/bundle/model.js +0 -894
- package/bundle/parseNewick.js +0 -94
- package/bundle/parsers/ClustalMSA.d.ts +0 -39
- package/bundle/parsers/ClustalMSA.js +0 -77
- package/bundle/parsers/FastaMSA.d.ts +0 -26
- package/bundle/parsers/FastaMSA.js +0 -78
- package/bundle/parsers/StockholmMSA.d.ts +0 -75
- package/bundle/parsers/StockholmMSA.js +0 -142
- package/bundle/util.d.ts +0 -17
- package/bundle/util.js +0 -33
- package/dist/components/AboutDlg.d.ts +0 -5
- package/dist/components/AboutDlg.js +0 -50
- package/dist/components/AddTrackDlg.d.ts +0 -8
- package/dist/components/AddTrackDlg.js +0 -26
- package/dist/components/AnnotationDlg.js +0 -77
- package/dist/components/DetailsDlg.d.ts +0 -8
- package/dist/components/DetailsDlg.js +0 -12
- package/dist/components/MoreInfoDlg.d.ts +0 -6
- package/dist/components/MoreInfoDlg.js +0 -11
- package/dist/components/SettingsDlg.d.ts +0 -8
- package/dist/components/SettingsDlg.js +0 -40
- package/dist/components/TrackInfoDlg.d.ts +0 -6
- package/dist/components/TrackInfoDlg.js +0 -33
- package/dist/components/TracklistDlg.d.ts +0 -8
- package/dist/components/TracklistDlg.js +0 -18
- package/dist/components/package.json +0 -62
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
2
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
3
|
-
if (ar || !(i in from)) {
|
|
4
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
5
|
-
ar[i] = from[i];
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
|
-
};
|
|
10
|
-
import React, { useState } from 'react';
|
|
11
|
-
import { observer } from 'mobx-react';
|
|
12
|
-
import { Button, Dialog, DialogActions, DialogTitle, DialogContent, IconButton, TextField, Typography, } from '@material-ui/core';
|
|
13
|
-
import DeleteIcon from '@material-ui/icons/Delete';
|
|
14
|
-
var specialFromEntries = function (val) {
|
|
15
|
-
var ret = {};
|
|
16
|
-
val.forEach(function (_a) {
|
|
17
|
-
var key = _a[0], val = _a[1];
|
|
18
|
-
if (!ret[key])
|
|
19
|
-
ret[key] = [];
|
|
20
|
-
ret[key].push(val);
|
|
21
|
-
});
|
|
22
|
-
return ret;
|
|
23
|
-
};
|
|
24
|
-
var Row = observer(function (_a) {
|
|
25
|
-
var name = _a.name, value = _a.value, setValue = _a.setValue, setName = _a.setName, onDelete = _a.onDelete;
|
|
26
|
-
return (React.createElement("div", null,
|
|
27
|
-
React.createElement(IconButton, { onClick: onDelete, style: { margin: 10 } },
|
|
28
|
-
React.createElement(DeleteIcon, null)),
|
|
29
|
-
React.createElement(TextField, { value: name, onChange: function (event) { return setName(event.target.value); }, label: "Key" }),
|
|
30
|
-
React.createElement(TextField, { value: value, onChange: function (event) { return setValue(event.target.value); }, label: "Value" })));
|
|
31
|
-
});
|
|
32
|
-
export default observer(function (_a) {
|
|
33
|
-
var onClose = _a.onClose, data = _a.data, model = _a.model;
|
|
34
|
-
var blanks = model.blanks;
|
|
35
|
-
var l = data.left, r = data.right;
|
|
36
|
-
var _b = useState([
|
|
37
|
-
['Name', ''],
|
|
38
|
-
['ID', ''],
|
|
39
|
-
['Note', ''],
|
|
40
|
-
]), rows = _b[0], setRows = _b[1];
|
|
41
|
-
return (React.createElement(Dialog, { onClose: function () { return onClose(); }, open: true },
|
|
42
|
-
React.createElement(DialogTitle, null, "Create new region annotation"),
|
|
43
|
-
React.createElement(DialogContent, null,
|
|
44
|
-
React.createElement(Typography, null,
|
|
45
|
-
"Do you want to add an annotation to the MSA at ",
|
|
46
|
-
l,
|
|
47
|
-
"..",
|
|
48
|
-
r,
|
|
49
|
-
' ',
|
|
50
|
-
blanks.length
|
|
51
|
-
? " (gapped ".concat(model.getPos(l), "..").concat(model.getPos(r))
|
|
52
|
-
: ''),
|
|
53
|
-
rows.map(function (_a, index) {
|
|
54
|
-
var key = _a[0], val = _a[1];
|
|
55
|
-
return (React.createElement(Row, { key: index, name: key, value: val, setValue: function (newValue) {
|
|
56
|
-
var newRows = __spreadArray([], rows, true);
|
|
57
|
-
newRows[index][1] = newValue;
|
|
58
|
-
setRows(newRows);
|
|
59
|
-
}, setName: function (newName) {
|
|
60
|
-
var newRows = __spreadArray([], rows, true);
|
|
61
|
-
newRows[index][0] = newName;
|
|
62
|
-
setRows(newRows);
|
|
63
|
-
}, onDelete: function () {
|
|
64
|
-
rows.splice(index, 1);
|
|
65
|
-
setRows(__spreadArray([], rows, true));
|
|
66
|
-
} }));
|
|
67
|
-
}),
|
|
68
|
-
React.createElement(Button, { onClick: function () {
|
|
69
|
-
setRows(__spreadArray(__spreadArray([], rows, true), [['', '']], false));
|
|
70
|
-
} }, "Add row"),
|
|
71
|
-
React.createElement(DialogActions, null,
|
|
72
|
-
React.createElement(Button, { onClick: function () {
|
|
73
|
-
model.addAnnotation(l, r, specialFromEntries(rows));
|
|
74
|
-
onClose();
|
|
75
|
-
}, variant: "contained", color: "primary" }, "Submit"),
|
|
76
|
-
React.createElement(Button, { variant: "contained", color: "secondary", onClick: function () { return onClose(); } }, "Cancel")))));
|
|
77
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Dialog, DialogTitle, DialogContent } from '@material-ui/core';
|
|
3
|
-
import { observer } from 'mobx-react';
|
|
4
|
-
import { Attributes } from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail';
|
|
5
|
-
export default observer(function (_a) {
|
|
6
|
-
var model = _a.model, onClose = _a.onClose, open = _a.open;
|
|
7
|
-
var alignmentDetails = model.alignmentDetails;
|
|
8
|
-
return (React.createElement(Dialog, { onClose: function () { return onClose(); }, open: open },
|
|
9
|
-
React.createElement(DialogTitle, null, "Metadata"),
|
|
10
|
-
React.createElement(DialogContent, null,
|
|
11
|
-
React.createElement(Attributes, { attributes: alignmentDetails }))));
|
|
12
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Dialog, DialogTitle, DialogContent } from '@material-ui/core';
|
|
3
|
-
import { observer } from 'mobx-react';
|
|
4
|
-
import { Attributes } from '@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail';
|
|
5
|
-
export default observer(function (_a) {
|
|
6
|
-
var info = _a.info, onClose = _a.onClose;
|
|
7
|
-
return (React.createElement(Dialog, { onClose: function () { return onClose(); }, open: true },
|
|
8
|
-
React.createElement(DialogTitle, null, "Metadata"),
|
|
9
|
-
React.createElement(DialogContent, null,
|
|
10
|
-
React.createElement(Attributes, { attributes: info }))));
|
|
11
|
-
});
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import { observer } from 'mobx-react';
|
|
3
|
-
import { Button, Checkbox, Dialog, DialogActions, DialogTitle, DialogContent, FormControlLabel, MenuItem, TextField, } from '@material-ui/core';
|
|
4
|
-
import colorSchemes from '../colorSchemes';
|
|
5
|
-
export default observer(function (_a) {
|
|
6
|
-
var model = _a.model, onClose = _a.onClose, open = _a.open;
|
|
7
|
-
var rowHeightInit = model.rowHeight, colWidthInit = model.colWidth, treeWidthInit = model.treeWidth, colorSchemeName = model.colorSchemeName, noTree = model.noTree;
|
|
8
|
-
var _b = useState("".concat(rowHeightInit)), rowHeight = _b[0], setRowHeight = _b[1];
|
|
9
|
-
var _c = useState("".concat(colWidthInit)), colWidth = _c[0], setColWidth = _c[1];
|
|
10
|
-
var _d = useState("".concat(treeWidthInit)), treeWidth = _d[0], setTreeWidth = _d[1];
|
|
11
|
-
function error(n) {
|
|
12
|
-
return Number.isNaN(+n) || +n < 0;
|
|
13
|
-
}
|
|
14
|
-
var rowHeightError = error(rowHeight);
|
|
15
|
-
var colWidthError = error(colWidth);
|
|
16
|
-
var treeWidthError = error(treeWidth);
|
|
17
|
-
return (React.createElement(Dialog, { onClose: function () { return onClose(); }, open: open },
|
|
18
|
-
React.createElement(DialogTitle, null, "Settings"),
|
|
19
|
-
React.createElement(DialogContent, null,
|
|
20
|
-
React.createElement(FormControlLabel, { control: React.createElement(Checkbox, { checked: model.showBranchLen, onChange: function () { return model.toggleBranchLen(); } }), label: "Show branch length" }),
|
|
21
|
-
React.createElement(FormControlLabel, { control: React.createElement(Checkbox, { checked: model.bgColor, onChange: function () { return model.toggleBgColor(); } }), label: "Color background" }),
|
|
22
|
-
React.createElement(FormControlLabel, { control: React.createElement(Checkbox, { checked: model.drawNodeBubbles, onChange: function () { return model.toggleNodeBubbles(); } }), label: "Draw node bubbles" }),
|
|
23
|
-
React.createElement(FormControlLabel, { control: React.createElement(Checkbox, { checked: model.drawTree, onChange: function () { return model.toggleDrawTree(); } }), label: "Draw tree (if available)" }),
|
|
24
|
-
React.createElement(FormControlLabel, { control: React.createElement(Checkbox, { checked: model.labelsAlignRight, onChange: function () { return model.toggleLabelsAlignRight(); } }), label: "Labels align right (note: labels may draw over tree, but can adjust tree width or tree area width in UI)" }),
|
|
25
|
-
React.createElement(TextField, { label: "Row height (px)", value: rowHeight, error: rowHeightError, onChange: function (event) { return setRowHeight(event.target.value); } }),
|
|
26
|
-
React.createElement(TextField, { label: "Column width (px)", value: colWidth, error: colWidthError, onChange: function (event) { return setColWidth(event.target.value); } }),
|
|
27
|
-
React.createElement("br", null),
|
|
28
|
-
!noTree ? (React.createElement(TextField, { label: "Tree width (px)", value: treeWidth, error: treeWidthError, onChange: function (event) { return setTreeWidth(event.target.value); } })) : null,
|
|
29
|
-
React.createElement("br", null),
|
|
30
|
-
React.createElement(TextField, { select: true, label: "Color scheme", value: colorSchemeName, onChange: function (event) { return model.setColorSchemeName(event.target.value); } }, Object.keys(colorSchemes).map(function (option) { return (React.createElement(MenuItem, { key: option, value: option }, option)); })),
|
|
31
|
-
React.createElement(DialogActions, null,
|
|
32
|
-
React.createElement(Button, { disabled: rowHeightError || colWidthError || treeWidthError, onClick: function () {
|
|
33
|
-
model.setRowHeight(+rowHeight);
|
|
34
|
-
model.setColWidth(+colWidth);
|
|
35
|
-
if (!noTree) {
|
|
36
|
-
model.setTreeWidth(+treeWidth);
|
|
37
|
-
}
|
|
38
|
-
onClose();
|
|
39
|
-
}, variant: "contained", color: "primary" }, "Submit")))));
|
|
40
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
2
|
-
import copy from 'copy-to-clipboard';
|
|
3
|
-
import { observer } from 'mobx-react';
|
|
4
|
-
import { Button, Dialog, DialogActions, DialogTitle, DialogContent, makeStyles, } from '@material-ui/core';
|
|
5
|
-
var useStyles = makeStyles(function (theme) { return ({
|
|
6
|
-
textArea: {
|
|
7
|
-
padding: theme.spacing(2),
|
|
8
|
-
overflow: 'auto',
|
|
9
|
-
background: '#ddd',
|
|
10
|
-
wordBreak: 'break-word',
|
|
11
|
-
},
|
|
12
|
-
}); });
|
|
13
|
-
var TrackInfoDialog = observer(function (_a) {
|
|
14
|
-
var model = _a.model, onClose = _a.onClose;
|
|
15
|
-
var _b = useState('Copy to clipboard'), label = _b[0], setLabel = _b[1];
|
|
16
|
-
var classes = useStyles();
|
|
17
|
-
return (React.createElement(Dialog, { open: true, onClose: onClose, fullWidth: true, maxWidth: "lg" },
|
|
18
|
-
React.createElement(DialogTitle, null,
|
|
19
|
-
"Track info - ",
|
|
20
|
-
model.name),
|
|
21
|
-
React.createElement(DialogContent, null,
|
|
22
|
-
React.createElement(Button, { variant: "contained", color: "primary", onClick: function () {
|
|
23
|
-
copy(model.data);
|
|
24
|
-
setLabel('Copied!');
|
|
25
|
-
setTimeout(function () {
|
|
26
|
-
setLabel('Copy to clipboard');
|
|
27
|
-
}, 300);
|
|
28
|
-
} }, label),
|
|
29
|
-
React.createElement("pre", { className: classes.textArea }, model.data)),
|
|
30
|
-
React.createElement(DialogActions, null,
|
|
31
|
-
React.createElement(Button, { variant: "contained", onClick: onClose, color: "secondary" }, "Close"))));
|
|
32
|
-
});
|
|
33
|
-
export default TrackInfoDialog;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Dialog, DialogTitle, DialogContent, FormControlLabel, FormGroup, Checkbox, DialogActions, Button, Typography, } from '@material-ui/core';
|
|
3
|
-
import { observer } from 'mobx-react';
|
|
4
|
-
export default observer(function (_a) {
|
|
5
|
-
var model = _a.model, onClose = _a.onClose, open = _a.open;
|
|
6
|
-
var tracks = model.tracks;
|
|
7
|
-
return (React.createElement(Dialog, { onClose: function () { return onClose(); }, open: open },
|
|
8
|
-
React.createElement(DialogTitle, null, "Add track"),
|
|
9
|
-
React.createElement(DialogContent, null,
|
|
10
|
-
React.createElement(Typography, null, "Open relevant per-alignment tracks e.g. protein domains"),
|
|
11
|
-
React.createElement(FormGroup, null, tracks.map(function (track) {
|
|
12
|
-
return (React.createElement(FormControlLabel, { key: track.model.id, control: React.createElement(Checkbox, { checked: !model.turnedOffTracks.has(track.model.id), onChange: function () {
|
|
13
|
-
model.toggleTrack(track.model.id);
|
|
14
|
-
} }), label: track.model.name }));
|
|
15
|
-
})),
|
|
16
|
-
React.createElement(DialogActions, null,
|
|
17
|
-
React.createElement(Button, { onClick: function () { return onClose(); }, variant: "contained", color: "primary" }, "Close")))));
|
|
18
|
-
});
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": "1.3.1",
|
|
3
|
-
"license": "MIT",
|
|
4
|
-
"main": "dist/index.js",
|
|
5
|
-
"typings": "dist/index.d.ts",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist",
|
|
8
|
-
"bundle"
|
|
9
|
-
],
|
|
10
|
-
"engines": {
|
|
11
|
-
"node": ">=10"
|
|
12
|
-
},
|
|
13
|
-
"scripts": {
|
|
14
|
-
"lint": "eslint src",
|
|
15
|
-
"clean": "rimraf dist",
|
|
16
|
-
"prestart": "npm run clean",
|
|
17
|
-
"prebuild": "npm run clean",
|
|
18
|
-
"start": "yarn tsc --watch",
|
|
19
|
-
"build": "yarn tsc && rollup -c",
|
|
20
|
-
"preversion": "npm run build",
|
|
21
|
-
"postversion": "git push --follow-tags"
|
|
22
|
-
},
|
|
23
|
-
"peerDependencies": {
|
|
24
|
-
"@jbrowse/core": ">=1.5.1",
|
|
25
|
-
"@material-ui/core": ">=4.12.2",
|
|
26
|
-
"react": ">=16.8.0",
|
|
27
|
-
"react-dom": ">=16.8.0"
|
|
28
|
-
},
|
|
29
|
-
"name": "react-msaview",
|
|
30
|
-
"author": "Colin",
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@rollup/plugin-commonjs": "^21.0.1",
|
|
33
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
34
|
-
"@rollup/plugin-node-resolve": "^13.0.6",
|
|
35
|
-
"@rollup/plugin-typescript": "^8.3.0",
|
|
36
|
-
"@types/color": "^3.0.1",
|
|
37
|
-
"@types/d3": "^6.7.0",
|
|
38
|
-
"@types/lodash": "^4.14.170",
|
|
39
|
-
"@types/react": "^17.0.3",
|
|
40
|
-
"@types/react-dom": "^17.0.2",
|
|
41
|
-
"concurrently": "^6.2.0",
|
|
42
|
-
"eslint-config-react-app": "^6.0.0",
|
|
43
|
-
"react": "^17.0.1",
|
|
44
|
-
"react-dom": "^17.0.1",
|
|
45
|
-
"rollup": "^2.60.2",
|
|
46
|
-
"rollup-plugin-node-builtins": "^2.1.2",
|
|
47
|
-
"rollup-plugin-node-polyfills": "^0.2.1",
|
|
48
|
-
"rollup-plugin-polyfill-node": "^0.7.0",
|
|
49
|
-
"tslib": "^2.1.0",
|
|
50
|
-
"typescript": "^4.2.3"
|
|
51
|
-
},
|
|
52
|
-
"dependencies": {
|
|
53
|
-
"clustal-js": "^1.0.3",
|
|
54
|
-
"color": "^3.1.3",
|
|
55
|
-
"copy-to-clipboard": "^3.3.1",
|
|
56
|
-
"d3-array": "^2.12.0",
|
|
57
|
-
"d3-hierarchy": "^2.0.0",
|
|
58
|
-
"normalize-wheel": "^1.0.1",
|
|
59
|
-
"rbush": "^3.0.1",
|
|
60
|
-
"stockholm-js": "^1.0.10"
|
|
61
|
-
}
|
|
62
|
-
}
|