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 +19 -16
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +19 -16
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -42591,7 +42591,7 @@ class ShowSeq {
|
|
|
42591
42591
|
// skip non-protein residues
|
|
42592
42592
|
// after G strand and before A strand, just use the mapped reference number
|
|
42593
42593
|
if((!atom || ic.proteins.hasOwnProperty(atom.serial)) && prevStrand && !bCustom && !kabat_or_imgt
|
|
42594
|
-
&& currStrand_ori.substr(0,1) != 'G') {
|
|
42594
|
+
&& (!currStrand_ori || currStrand_ori.substr(0,1) != 'G')) {
|
|
42595
42595
|
// no ref num
|
|
42596
42596
|
bLoop = true;
|
|
42597
42597
|
|
|
@@ -42699,7 +42699,10 @@ class ShowSeq {
|
|
|
42699
42699
|
refnumLabelNoPostfix = currStrand + refnum;
|
|
42700
42700
|
|
|
42701
42701
|
//if(currCnt == 0 || currCnt == halfLen || currCnt == halfLen + 1 || currCnt == end - 1) {
|
|
42702
|
-
if(currCnt == 1 || currCnt == halfLen || currCnt == halfLen + 1 || currCnt == end - 1) {
|
|
42702
|
+
// if(currCnt == 1 || currCnt == halfLen || currCnt == halfLen + 1 || currCnt == end - 1) {
|
|
42703
|
+
// bHidelabel = true;
|
|
42704
|
+
// }
|
|
42705
|
+
if(currCnt == 1 || currCnt == end - 1) {
|
|
42703
42706
|
bHidelabel = true;
|
|
42704
42707
|
}
|
|
42705
42708
|
|
|
@@ -42730,7 +42733,7 @@ class ShowSeq {
|
|
|
42730
42733
|
getRefnumHtml(residueid, refnumStr, refnumStr_ori, refnumLabel, currStrand, bLoop, bHidelabel) { let ic = this.icn3d, me = ic.icn3dui;
|
|
42731
42734
|
let refnum = parseInt(refnumStr).toString();
|
|
42732
42735
|
let color = this.getRefnumColor(currStrand);
|
|
42733
|
-
let colorStr = 'style="color:' + color + '"';
|
|
42736
|
+
let colorStr = (!bLoop) ? 'style="color:' + color + '; text-decoration: underline overline;"' : 'style="color:' + color + '"';
|
|
42734
42737
|
|
|
42735
42738
|
let lastTwo = parseInt(refnum.substr(refnum.length - 2, 2));
|
|
42736
42739
|
parseInt(refnum.substr(refnum.length - 3, 3));
|
|
@@ -42757,43 +42760,43 @@ class ShowSeq {
|
|
|
42757
42760
|
|
|
42758
42761
|
getRefnumColor(currStrand) { let ic = this.icn3d; ic.icn3dui;
|
|
42759
42762
|
if(currStrand == "A^") { // deep sky blue
|
|
42760
|
-
return '#00BFFF';
|
|
42763
|
+
return '#9900ff'; //'#00BFFF';
|
|
42761
42764
|
}
|
|
42762
42765
|
else if(currStrand == "A") { // blue
|
|
42763
|
-
return '#0000FF';
|
|
42766
|
+
return '#9900ff'; //'#0000FF';
|
|
42764
42767
|
}
|
|
42765
42768
|
else if(currStrand == "A*") { // sky blue
|
|
42766
|
-
return '#87CEEB';
|
|
42769
|
+
return '#9900ff'; //'#87CEEB';
|
|
42767
42770
|
}
|
|
42768
42771
|
else if(currStrand == "A'") { // steel blue
|
|
42769
|
-
return '#4682B4';
|
|
42772
|
+
return '#9900ff'; //'#4682B4';
|
|
42770
42773
|
}
|
|
42771
42774
|
else if(currStrand == "B") { // cyan
|
|
42772
|
-
return '#00FFFF';
|
|
42775
|
+
return '#4a86e8'; //'#00FFFF';
|
|
42773
42776
|
}
|
|
42774
42777
|
else if(currStrand == "C") { // green
|
|
42775
|
-
return '#00FF00';
|
|
42778
|
+
return '#76d6ff'; //'#00FF00';
|
|
42776
42779
|
}
|
|
42777
42780
|
else if(currStrand == "C'") { // yellow
|
|
42778
|
-
return '#FFFF00';
|
|
42781
|
+
return '#00b050'; //'#FFFF00';
|
|
42779
42782
|
}
|
|
42780
42783
|
else if(currStrand == "C''") { // orange
|
|
42781
|
-
return '#FFA500';
|
|
42784
|
+
return '#00ff00'; //'#FFA500';
|
|
42782
42785
|
}
|
|
42783
42786
|
else if(currStrand == "D") { // brown
|
|
42784
|
-
return '#A52A2A';
|
|
42787
|
+
return '#fffb00'; //'#A52A2A';
|
|
42785
42788
|
}
|
|
42786
42789
|
else if(currStrand == "E") { // pink
|
|
42787
|
-
return '#FFC0CB';
|
|
42790
|
+
return '#ffd966'; //'#FFC0CB';
|
|
42788
42791
|
}
|
|
42789
42792
|
else if(currStrand == "F") { // magenta
|
|
42790
|
-
return '#FF00FF';
|
|
42793
|
+
return '#ff9900'; //'#FF00FF';
|
|
42791
42794
|
}
|
|
42792
42795
|
else if(currStrand == "G") { // red
|
|
42793
|
-
return '#FF0000';
|
|
42796
|
+
return '#ff2600'; //'#FF0000';
|
|
42794
42797
|
}
|
|
42795
42798
|
else if(currStrand == "G*") { // salmon
|
|
42796
|
-
return '#FA8072';
|
|
42799
|
+
return '#ff2600'; //'#FA8072';
|
|
42797
42800
|
}
|
|
42798
42801
|
else {
|
|
42799
42802
|
return '#000';
|