icn3d 3.38.1 → 3.38.2

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
@@ -57843,16 +57843,14 @@ class SdfParser {
57843
57843
  }
57844
57844
 
57845
57845
  async downloadSmiles(smiles) { let ic = this.icn3d, me = ic.icn3dui;
57846
- let urlSmiles = me.htmlCls.baseUrl + "openbabel/openbabel.cgi?smiles2pdb=" + smiles;
57847
- let pdbStr = await me.getAjaxPromise(urlSmiles, 'text');
57846
+ let urlSmiles = me.htmlCls.baseUrl + "openbabel/openbabel.cgi?smiles2sdf=" + smiles;
57847
+ let sdfStr = await me.getAjaxPromise(urlSmiles, 'text');
57848
57848
 
57849
57849
  ic.init();
57850
-
57851
57850
  ic.bInputfile = true;
57852
- ic.InputfileType = 'pdb';
57853
- ic.InputfileData = (ic.InputfileData) ? ic.InputfileData + '\nENDMDL\n' + pdbStr : pdbStr;
57854
-
57855
- await ic.pdbParserCls.loadPdbData(pdbStr);
57851
+ ic.InputfileData = (ic.InputfileData) ? ic.InputfileData + '\nENDMDL\n' + sdfStr : sdfStr;
57852
+ ic.InputfileType = 'sdf';
57853
+ await ic.sdfParserCls.loadSdfData(sdfStr);
57856
57854
  }
57857
57855
 
57858
57856
  async loadSdfData(data) { let ic = this.icn3d, me = ic.icn3dui;
@@ -82479,7 +82477,7 @@ class iCn3DUI {
82479
82477
  //even when multiple iCn3D viewers are shown together.
82480
82478
  this.pre = this.cfg.divid + "_";
82481
82479
 
82482
- this.REVISION = '3.38.0';
82480
+ this.REVISION = '3.38.1';
82483
82481
 
82484
82482
  // In nodejs, iCn3D defines "window = {navigator: {}}"
82485
82483
  this.bNode = (Object.keys(window).length < 2) ? true : false;