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.module.js CHANGED
@@ -58744,16 +58744,14 @@ class SdfParser {
58744
58744
  }
58745
58745
 
58746
58746
  async downloadSmiles(smiles) { let ic = this.icn3d, me = ic.icn3dui;
58747
- let urlSmiles = me.htmlCls.baseUrl + "openbabel/openbabel.cgi?smiles2pdb=" + smiles;
58748
- let pdbStr = await me.getAjaxPromise(urlSmiles, 'text');
58747
+ let urlSmiles = me.htmlCls.baseUrl + "openbabel/openbabel.cgi?smiles2sdf=" + smiles;
58748
+ let sdfStr = await me.getAjaxPromise(urlSmiles, 'text');
58749
58749
 
58750
58750
  ic.init();
58751
-
58752
58751
  ic.bInputfile = true;
58753
- ic.InputfileType = 'pdb';
58754
- ic.InputfileData = (ic.InputfileData) ? ic.InputfileData + '\nENDMDL\n' + pdbStr : pdbStr;
58755
-
58756
- await ic.pdbParserCls.loadPdbData(pdbStr);
58752
+ ic.InputfileData = (ic.InputfileData) ? ic.InputfileData + '\nENDMDL\n' + sdfStr : sdfStr;
58753
+ ic.InputfileType = 'sdf';
58754
+ await ic.sdfParserCls.loadSdfData(sdfStr);
58757
58755
  }
58758
58756
 
58759
58757
  async loadSdfData(data) { let ic = this.icn3d, me = ic.icn3dui;
@@ -83380,7 +83378,7 @@ class iCn3DUI {
83380
83378
  //even when multiple iCn3D viewers are shown together.
83381
83379
  this.pre = this.cfg.divid + "_";
83382
83380
 
83383
- this.REVISION = '3.38.0';
83381
+ this.REVISION = '3.38.1';
83384
83382
 
83385
83383
  // In nodejs, iCn3D defines "window = {navigator: {}}"
83386
83384
  this.bNode = (Object.keys(window).length < 2) ? true : false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icn3d",
3
- "version": "3.38.1",
3
+ "version": "3.38.2",
4
4
  "main": "./icn3d.js",
5
5
  "exports": {
6
6
  ".": {