icn3d 3.25.17 → 3.25.18

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.module.js CHANGED
@@ -43082,12 +43082,10 @@ class ShowSeq {
43082
43082
  prevStrand = currStrand;
43083
43083
  }
43084
43084
 
43085
- // 2. remove strands with less than 3 residues
43085
+ // 2. remove strands with less than 3 residues except G strand
43086
43086
  for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
43087
- if(strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
43087
+ if(strandArray[i].strand.substr(0, 1) != 'G' && strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
43088
43088
  if(i != il - 1) { // modify
43089
- // strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
43090
-
43091
43089
  strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
43092
43090
  }
43093
43091
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.25.17",
3
+ "version": "3.25.18",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {