Commit f53069e1 authored by Marc Duez's avatar Marc Duez

graph.js : use css class for warning/alert

parent 09e23edb
......@@ -938,9 +938,15 @@ span.logo {
span.warning {
color: orange;
}
text.warning {
fill: orange;
}
span.alert {
color: red;
}
text.alert {
fill: red;
}
.sp_selector {
fill: #fdf6e3;
stroke-width: 2px;
......
......@@ -938,9 +938,15 @@ span.logo {
span.warning {
color: orange;
}
text.warning {
fill: orange;
}
span.alert {
color: red;
}
text.alert {
fill: red;
}
.sp_selector {
fill: #002b36;
stroke-width: 2px;
......
......@@ -1080,8 +1080,10 @@ span.logo
background-color: @border;
}
span.warning { color: orange; }
span.alert { color: red; }
span.warning { color: orange; }
text.warning { fill: orange; }
span.alert { color: red; }
text.alert { fill: red; }
.sp_selector{
fill: @select;
......
......@@ -901,8 +901,10 @@ Graph.prototype = {
// Warns when there are very few segmented reads
var percent = (this.m.reads.segmented[this.m.t] / this.m.reads.total[this.m.t]) * 100;
if (percent < 50)
d.class += " warning" ;
if (percent < 10)
d.text += " !" ;
d.class += " alert" ;
d.orientation = "vert";
if (this.drag_on && i == this.dragged_time_point) {
......
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