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.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?
|
|
58748
|
-
let
|
|
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.
|
|
58754
|
-
ic.
|
|
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.
|
|
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;
|