Commit de9e082d authored by Marc Duez's avatar Marc Duez

segmenter : display window

parent 4539198b
......@@ -479,6 +479,33 @@ max-height: calc(~"100%" - @margin)
.J {
color: #009b95;
}
.window1{
display: inline-block;
width: 0px;
}
.window2{
border: solid;
display: inline-flex;
height: 1em;
position: relative;
margin: -1px;
border-width: 1px;
border-color: red;
bottom: -2px;
-khtml-user-select: none;
-webkit-user-select: none;
-moz-user-select: -moz-none;
-ms-user-select: none;
user-select: none;
pointer-events: none;
}
span .substitution{
background-color : #145065;
text-shadow: 1px 1px @background,
1px -1px @background,
-1px -1px @background,
-1px 1px @background;
}
/*tag*/
......@@ -838,12 +865,6 @@ span.logo
fill-opacity: 0.2;
}
span .substitution{
background-color : @highlight;
opacity: 0.8;
font-weight: lighter;
text-decoration: underline;
}
.axis_select select {
background: @highlight;
......
......@@ -463,6 +463,11 @@ Sequence.prototype = {
var jColor = "";
if (this.m.colorMethod == "J") jColor = "style='color : " + seg.colorJ + "'";
//window
var window_start = this.pos[seg.sequence.indexOf(seg.window)]
var window_end = this.pos[seg.sequence.indexOf(seg.window)+seg.window.length]
var window_width = "style='width : " +((window_end - window_start) * 0.7333) + "em'" //TODO fix char width
//add span VDJ
var result = "<span class='V' " + vColor + " >"
for (var i = 0; i < this.seq.length; i++) {
......@@ -472,7 +477,8 @@ Sequence.prototype = {
if (i == startD - 1) result += "</span><span class ='D'>"
if (i == endD) result += "</span><span class ='N'>"
if (i == startJ - 1) result += "</span><span class ='J' " + jColor + " >"
if (i== window_start-1) result += "<span class='window1'><span class='window2' " + window_width + " ></span></span>"
}
result += "</span>"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment