icn3d 3.24.5 → 3.24.6

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
@@ -36291,7 +36291,6 @@ class SetOption {
36291
36291
  }
36292
36292
 
36293
36293
  showColorLegend(colorType) { let ic = this.icn3d, me = ic.icn3dui;
36294
- let bClose = false;
36295
36294
 
36296
36295
  let colorLabel = colorType.substr(0, 1).toUpperCase() + colorType.substr(1);
36297
36296
  if(colorType == 'confidence') {
@@ -36403,7 +36402,6 @@ class SetOption {
36403
36402
  }
36404
36403
  else {
36405
36404
  html = '';
36406
- bClose = true;
36407
36405
  }
36408
36406
 
36409
36407
  if(html) {
@@ -36411,9 +36409,9 @@ class SetOption {
36411
36409
  me.htmlCls.dialogCls.openDlg('dl_legend', 'Color Legend');
36412
36410
  }
36413
36411
 
36414
- if(bClose) {
36415
- if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
36416
- }
36412
+ // if(bClose) {
36413
+ // if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
36414
+ // }
36417
36415
  }
36418
36416
 
36419
36417
  getColorLegendForElem(category, atomHash) { let ic = this.icn3d, me = ic.icn3dui;
@@ -57999,7 +57997,9 @@ class ApplyCommand {
57999
57997
  let msa;
58000
57998
  if(paraArray.length >= 7) msa = paraArray[6].substr(4);
58001
57999
 
58002
- $("#" + ic.pre + "anno_custom")[0].checked = true;
58000
+ if($("#" + ic.pre + "anno_custom")[0]) {
58001
+ $("#" + ic.pre + "anno_custom")[0].checked = true;
58002
+ }
58003
58003
  $("[id^=" + ic.pre + "custom]").show();
58004
58004
 
58005
58005
  if(color == '0') color = undefined;
@@ -61310,16 +61310,18 @@ class Selection {
61310
61310
  if(me.cfg.bSidebyside && structureArray.length == 2) {
61311
61311
  let dividArray = Object.keys(window.icn3duiHash);
61312
61312
  let pos = dividArray.indexOf(ic.divid);
61313
-
61314
61313
  let structure = structureArray[pos];
61315
61314
  let chainArray = ic.structures[structure];
61315
+
61316
61316
  let structAtoms = {};
61317
- for(let i = 0, il = chainArray.length; i < il; ++i) {
61318
- structAtoms = me.hashUtilsCls.unionHash(structAtoms, ic.chains[chainArray[i]]);
61319
- }
61317
+ if(chainArray) {
61318
+ for(let i = 0, il = chainArray.length; i < il; ++i) {
61319
+ structAtoms = me.hashUtilsCls.unionHash(structAtoms, ic.chains[chainArray[i]]);
61320
+ }
61320
61321
 
61321
- ic.dAtoms = me.hashUtilsCls.intHash(structAtoms, ic.dAtoms);
61322
- ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
61322
+ ic.dAtoms = me.hashUtilsCls.intHash(structAtoms, ic.dAtoms);
61323
+ ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
61324
+ }
61323
61325
  }
61324
61326
  }
61325
61327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.24.5",
3
+ "version": "3.24.6",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {