Commit 0c43bd73 authored by flothoni's avatar flothoni
Browse files

clone.js; add a field true_color

Thie field allow to get the color that a clone should get if it is not currently last selection.
link ot #3689
parent 7eab549f
...@@ -965,10 +965,9 @@ Clone.prototype = { ...@@ -965,10 +965,9 @@ Clone.prototype = {
* *
* */ * */
updateColor: function () { updateColor: function () {
var allele; var allele;
if (this.m.focus == this.index){ if (this.m.colorMethod == "abundance") {
this.color = "";
}else if (this.m.colorMethod == "abundance") {
var size = this.getSize() var size = this.getSize()
if (this.getCluster().length===0){ size = this.getSequenceSize() } if (this.getCluster().length===0){ size = this.getSequenceSize() }
if (size === 0){ if (size === 0){
...@@ -1008,6 +1007,11 @@ Clone.prototype = { ...@@ -1008,6 +1007,11 @@ Clone.prototype = {
}else{ }else{
this.color = ""; this.color = "";
} }
this.true_color = this.color
if (this.m.focus == this.index){
this.color = "";
}
}, },
/** /**
......
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