icn3d 3.49.1 → 3.49.3

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
@@ -128445,15 +128445,13 @@ class Diagram2d {
128445
128445
 
128446
128446
  if(igType == 'IgV' || igType == 'IgC1' || igType == 'IgC2' || igType == 'IgI') {
128447
128447
  bFound = true;
128448
- igTypeArray.push(igType);
128449
- }
128450
- else {
128451
- igTypeArray.push('');
128452
128448
  }
128449
+
128450
+ igTypeArray.push(igType);
128453
128451
  }
128454
128452
 
128455
128453
  if(!bFound) {
128456
- var aaa = 1; //alert("The Ig type for chain " + chainid + " is " + igType + ". Currently only IgV, IgC1, IgC2 and IgI types are supported for drawing Ig diagrams.");
128454
+ var aaa = 1; //alert("The Ig type for chain " + chainid + " is " + igTypeArray + ". Currently only IgV, IgC1, IgC2 and IgI types are supported for drawing Ig diagrams.");
128457
128455
  return;
128458
128456
  }
128459
128457
 
@@ -128488,8 +128486,8 @@ class Diagram2d {
128488
128486
  for(let i = 0, il = igArray.length; i < il; ++i) {
128489
128487
  let domainid = igArray[i].domainid;
128490
128488
  let igType = igTypeArray[i];
128491
- if(!igType) {
128492
- mainWorkbook.addWorksheet(`Sheet_${i + 1}`);
128489
+ if(!(igType == 'IgV' || igType == 'IgC1' || igType == 'IgC2' || igType == 'IgI')) {
128490
+ mainWorkbook.addWorksheet((i + 1) + ". " + igType);
128493
128491
  }
128494
128492
  else {
128495
128493
  let url = "/Structure/icn3d/template/igstrand_template_" + igType + ".xlsx";
@@ -128504,7 +128502,7 @@ class Diagram2d {
128504
128502
  // Clone the model to transfer styles and data
128505
128503
  newSheet.model = {
128506
128504
  ...worksheet.model,
128507
- name: "Ig Domain " + (i + 1)
128505
+ name: (i + 1) + ". " + igType
128508
128506
  };
128509
128507
 
128510
128508
  // Iterate over all rows that have values
@@ -134800,7 +134798,7 @@ class iCn3DUI {
134800
134798
  //even when multiple iCn3D viewers are shown together.
134801
134799
  this.pre = this.cfg.divid + "_";
134802
134800
 
134803
- this.REVISION = '1';
134801
+ this.REVISION = '3.49.1';
134804
134802
 
134805
134803
  // In nodejs, iCn3D defines "window = {navigator: {}}", and added window = {navigator: {}, "__THREE__":"177"}
134806
134804
  this.bNode = (Object.keys(window).length < 3) ? true : false;