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 +6 -8
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +6 -8
- package/package.json +1 -1
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?
|
|
57847
|
-
let
|
|
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.
|
|
57853
|
-
ic.
|
|
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.
|
|
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;
|