icn3d 3.38.0 → 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 +15 -9
- package/icn3d.min.js +3 -3
- package/icn3d.module.js +15 -9
- package/package.json +1 -1
package/icn3d.js
CHANGED
|
@@ -36947,6 +36947,10 @@ class Contact {
|
|
|
36947
36947
|
for(let i in atomlistTarget) {
|
|
36948
36948
|
//var oriAtom = atomlistTarget[i];
|
|
36949
36949
|
let oriAtom = ic.atoms[i];
|
|
36950
|
+
|
|
36951
|
+
// skip hydrogen atoms
|
|
36952
|
+
if(bInteraction && oriAtom.elem == 'H') continue;
|
|
36953
|
+
|
|
36950
36954
|
let r1 = me.parasCls.vdwRadii[oriAtom.elem.toUpperCase()];
|
|
36951
36955
|
let chainid1 = oriAtom.structure + '_' + oriAtom.chain;
|
|
36952
36956
|
|
|
@@ -36973,6 +36977,10 @@ class Contact {
|
|
|
36973
36977
|
|
|
36974
36978
|
for (let j in neighbors) {
|
|
36975
36979
|
let atom = neighbors[j];
|
|
36980
|
+
|
|
36981
|
+
// skip hydrogen atoms
|
|
36982
|
+
if(bInteraction && atom.elem == 'H') continue;
|
|
36983
|
+
|
|
36976
36984
|
let r2 = me.parasCls.vdwRadii[atom.elem.toUpperCase()];
|
|
36977
36985
|
let chainid2 = atom.structure + '_' + atom.chain;
|
|
36978
36986
|
|
|
@@ -57835,16 +57843,14 @@ class SdfParser {
|
|
|
57835
57843
|
}
|
|
57836
57844
|
|
|
57837
57845
|
async downloadSmiles(smiles) { let ic = this.icn3d, me = ic.icn3dui;
|
|
57838
|
-
let urlSmiles = me.htmlCls.baseUrl + "openbabel/openbabel.cgi?
|
|
57839
|
-
let
|
|
57846
|
+
let urlSmiles = me.htmlCls.baseUrl + "openbabel/openbabel.cgi?smiles2sdf=" + smiles;
|
|
57847
|
+
let sdfStr = await me.getAjaxPromise(urlSmiles, 'text');
|
|
57840
57848
|
|
|
57841
57849
|
ic.init();
|
|
57842
|
-
|
|
57843
57850
|
ic.bInputfile = true;
|
|
57844
|
-
ic.
|
|
57845
|
-
ic.
|
|
57846
|
-
|
|
57847
|
-
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);
|
|
57848
57854
|
}
|
|
57849
57855
|
|
|
57850
57856
|
async loadSdfData(data) { let ic = this.icn3d, me = ic.icn3dui;
|
|
@@ -82428,7 +82434,7 @@ iCn3D.prototype.resetConfig = function () { let ic = this, me = ic.icn3dui;
|
|
|
82428
82434
|
this.opts['nucleotides'] = 'o3 trace';
|
|
82429
82435
|
}
|
|
82430
82436
|
|
|
82431
|
-
if(me.cfg.cid !== undefined) {
|
|
82437
|
+
if(me.cfg.cid !== undefined || me.cfg.smiles !== undefined) {
|
|
82432
82438
|
this.opts['color'] = 'atom';
|
|
82433
82439
|
|
|
82434
82440
|
this.opts['pk'] = 'atom';
|
|
@@ -82471,7 +82477,7 @@ class iCn3DUI {
|
|
|
82471
82477
|
//even when multiple iCn3D viewers are shown together.
|
|
82472
82478
|
this.pre = this.cfg.divid + "_";
|
|
82473
82479
|
|
|
82474
|
-
this.REVISION = '3.38.
|
|
82480
|
+
this.REVISION = '3.38.1';
|
|
82475
82481
|
|
|
82476
82482
|
// In nodejs, iCn3D defines "window = {navigator: {}}"
|
|
82477
82483
|
this.bNode = (Object.keys(window).length < 2) ? true : false;
|