Skip to content

Commit

Permalink
WIP scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Oct 6, 2020
1 parent 877f910 commit fc1566d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions src/seqcoverpkg/seqcover.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,16 @@
<h5>Coverage summary</h5>
</div>
<div class="col-sm-12 col-md-7 col-lg-5 d-flex align-items-center">
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text">Sample Scaling</span>
</div>
<input class="form-control z_scale" type="checkbox" id="z_scale_samples">
<div class="input-group-prepend">
<span class="input-group-text">Gene Scaling</span>
</div>
<input class="form-control z_scale" type="checkbox" id="z_scale_genes">
</div>
<div class="input-group input-group-sm">
<div class="input-group-prepend">
<span class="input-group-text">Summary metric</span>
Expand Down
4 changes: 2 additions & 2 deletions src/seqcoverpkg/seqcover.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,8 @@ function draw_heatmap() {
font: { size: 14 },
}
// TODO: this should be based on window width.
if(hlayout.width < 400) {
hlayout.width = 400;
if(hlayout.width < 700) {
hlayout.width = 700;
}
let heatmap_config = {
displaylogo: false,
Expand Down

0 comments on commit fc1566d

Please sign in to comment.