icn3d 3.23.3 → 3.23.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/icn3d.js CHANGED
@@ -41690,7 +41690,7 @@ class ShowSeq {
41690
41690
  // skip non-protein residues
41691
41691
  // after G strand and before A strand, just use the mapped reference number
41692
41692
  if((!atom || ic.proteins.hasOwnProperty(atom.serial)) && prevStrand && !bCustom && !kabat_or_imgt
41693
- && currStrand_ori.substr(0,1) != 'G') {
41693
+ && (!currStrand_ori || currStrand_ori.substr(0,1) != 'G')) {
41694
41694
  // no ref num
41695
41695
  bLoop = true;
41696
41696
 
@@ -41798,7 +41798,10 @@ class ShowSeq {
41798
41798
  refnumLabelNoPostfix = currStrand + refnum;
41799
41799
 
41800
41800
  //if(currCnt == 0 || currCnt == halfLen || currCnt == halfLen + 1 || currCnt == end - 1) {
41801
- if(currCnt == 1 || currCnt == halfLen || currCnt == halfLen + 1 || currCnt == end - 1) {
41801
+ // if(currCnt == 1 || currCnt == halfLen || currCnt == halfLen + 1 || currCnt == end - 1) {
41802
+ // bHidelabel = true;
41803
+ // }
41804
+ if(currCnt == 1 || currCnt == end - 1) {
41802
41805
  bHidelabel = true;
41803
41806
  }
41804
41807
 
@@ -41829,7 +41832,7 @@ class ShowSeq {
41829
41832
  getRefnumHtml(residueid, refnumStr, refnumStr_ori, refnumLabel, currStrand, bLoop, bHidelabel) { let ic = this.icn3d, me = ic.icn3dui;
41830
41833
  let refnum = parseInt(refnumStr).toString();
41831
41834
  let color = this.getRefnumColor(currStrand);
41832
- let colorStr = 'style="color:' + color + '"';
41835
+ let colorStr = (!bLoop) ? 'style="color:' + color + '; text-decoration: underline overline;"' : 'style="color:' + color + '"';
41833
41836
 
41834
41837
  let lastTwo = parseInt(refnum.substr(refnum.length - 2, 2));
41835
41838
  parseInt(refnum.substr(refnum.length - 3, 3));
@@ -41856,43 +41859,43 @@ class ShowSeq {
41856
41859
 
41857
41860
  getRefnumColor(currStrand) { let ic = this.icn3d; ic.icn3dui;
41858
41861
  if(currStrand == "A^") { // deep sky blue
41859
- return '#00BFFF';
41862
+ return '#9900ff'; //'#00BFFF';
41860
41863
  }
41861
41864
  else if(currStrand == "A") { // blue
41862
- return '#0000FF';
41865
+ return '#9900ff'; //'#0000FF';
41863
41866
  }
41864
41867
  else if(currStrand == "A*") { // sky blue
41865
- return '#87CEEB';
41868
+ return '#9900ff'; //'#87CEEB';
41866
41869
  }
41867
41870
  else if(currStrand == "A'") { // steel blue
41868
- return '#4682B4';
41871
+ return '#9900ff'; //'#4682B4';
41869
41872
  }
41870
41873
  else if(currStrand == "B") { // cyan
41871
- return '#00FFFF';
41874
+ return '#4a86e8'; //'#00FFFF';
41872
41875
  }
41873
41876
  else if(currStrand == "C") { // green
41874
- return '#00FF00';
41877
+ return '#76d6ff'; //'#00FF00';
41875
41878
  }
41876
41879
  else if(currStrand == "C'") { // yellow
41877
- return '#FFFF00';
41880
+ return '#00b050'; //'#FFFF00';
41878
41881
  }
41879
41882
  else if(currStrand == "C''") { // orange
41880
- return '#FFA500';
41883
+ return '#00ff00'; //'#FFA500';
41881
41884
  }
41882
41885
  else if(currStrand == "D") { // brown
41883
- return '#A52A2A';
41886
+ return '#fffb00'; //'#A52A2A';
41884
41887
  }
41885
41888
  else if(currStrand == "E") { // pink
41886
- return '#FFC0CB';
41889
+ return '#ffd966'; //'#FFC0CB';
41887
41890
  }
41888
41891
  else if(currStrand == "F") { // magenta
41889
- return '#FF00FF';
41892
+ return '#ff9900'; //'#FF00FF';
41890
41893
  }
41891
41894
  else if(currStrand == "G") { // red
41892
- return '#FF0000';
41895
+ return '#ff2600'; //'#FF0000';
41893
41896
  }
41894
41897
  else if(currStrand == "G*") { // salmon
41895
- return '#FA8072';
41898
+ return '#ff2600'; //'#FA8072';
41896
41899
  }
41897
41900
  else {
41898
41901
  return '#000';