-
Notifications
You must be signed in to change notification settings - Fork 2
/
contigSelectOverlay.tsx
78 lines (70 loc) · 3.01 KB
/
contigSelectOverlay.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
import * as React from "react";
import {Grid} from "../../../../../components/grid";
import {IconButton} from "../../../../../components/iconButton";
import {blue} from "../../../../../styles/colours";
import {ChevronLeft} from "../../../../../components/icons/chevronLeft";
import {AlignData} from "../../../../../../alignData";
import {CircularFigure} from "../../../../../circularFigure/circularFigure";
import {GridWrapper} from "../../../../../containers/gridWrapper";
import {TreeView} from "../../../../../components/treeView";
import {ExpandMore} from "../../../../../components/icons/expandMore";
import {ChevronRight} from "../../../../../components/icons/chevronRight";
import {ContigTree} from "../../../../../containers/contigTree";
export interface ContigSelectProps {
onClose: () => void;
align: AlignData;
figure: CircularFigure;
}
export interface ContigSelectState {
}
export class ContigSelectOverlay extends React.Component<ContigSelectProps, ContigSelectState>
{
public constructor(props: ContigSelectProps)
{
super(props);
this.state = {
};
}
public render(): JSX.Element
{
return (
<React.Fragment>
<div style={{marginLeft: "2vh"}}>
<Grid container spacing={4} justify="flex-start">
<IconButton
edge="start"
color="primary"
classes={{colorPrimary: blue}}
onClick={this.props.onClose}
>
<ChevronLeft />
</IconButton>
</Grid>
</div>
<GridWrapper>
<div style={{marginLeft: "1vh", marginBottom: "1vh"}}>
<Grid container direction="row" spacing={1} justify="flex-start">
<Grid item>
<TreeView
defaultExpandIcon={<ChevronRight color="primary" classes={{colorPrimary: blue}} />}
defaultCollapseIcon={<ExpandMore color="primary" classes={{colorPrimary: blue}} />}
>
<ContigTree
label="Select Contig to View Coverage Tracks For"
contigs={this.props.figure.contigs}
onClick={(contig) =>
{
this.setState({
selectedContigUuid: contig.uuid
});
}}
/>
</TreeView>
</Grid>
</Grid>
</div>
</GridWrapper>
</React.Fragment>
);
}
}