icn3d 3.34.0 → 3.34.1
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 +22 -16
- package/icn3d.min.js +1 -1
- package/icn3d.module.js +22 -16
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -15453,7 +15453,7 @@ class SetDialog {
|
|
|
15453
15453
|
html += me.htmlCls.divStr + "dl_ligplotcolor' style='inline-block;'>";
|
|
15454
15454
|
|
|
15455
15455
|
// html += "The real interaction distances are not in scale, and are about twice the distances of dashed line segments.<br>Some \"Contact\" lines are only shown partially to simplify the view.<br>";
|
|
15456
|
-
html += "
|
|
15456
|
+
html += "Color legend for interactions (dashed lines): <br>";
|
|
15457
15457
|
|
|
15458
15458
|
html += me.htmlCls.setHtmlCls.setColorHints();
|
|
15459
15459
|
|
|
@@ -50613,7 +50613,8 @@ class LineGraph {
|
|
|
50613
50613
|
if(pos1 === undefined || pos2 === undefined) continue;
|
|
50614
50614
|
let linestrokewidth;
|
|
50615
50615
|
if(link.v == me.htmlCls.contactValue) {
|
|
50616
|
-
linestrokewidth = (link.n == 1) ? 1 : 3;
|
|
50616
|
+
// linestrokewidth = (link.n == 1) ? 1 : 3;
|
|
50617
|
+
linestrokewidth = 1;
|
|
50617
50618
|
} else {
|
|
50618
50619
|
linestrokewidth = (link.n == 1) ? 2 : 4;
|
|
50619
50620
|
}
|
|
@@ -50741,7 +50742,8 @@ class LineGraph {
|
|
|
50741
50742
|
|
|
50742
50743
|
let linestrokewidth;
|
|
50743
50744
|
if(link.v == me.htmlCls.contactValue) {
|
|
50744
|
-
linestrokewidth = (link.n == 1) ? 1 : 3;
|
|
50745
|
+
// linestrokewidth = (link.n == 1) ? 1 : 3;
|
|
50746
|
+
linestrokewidth = 1;
|
|
50745
50747
|
} else {
|
|
50746
50748
|
linestrokewidth = (link.n == 1) ? 2 : 4;
|
|
50747
50749
|
}
|
|
@@ -51211,6 +51213,7 @@ class GetGraph {
|
|
|
51211
51213
|
interStr += this.getContactLinks(ssAtomsArray[i], ssAtomsArray[j], labelType, true, bCartoon2d);
|
|
51212
51214
|
}
|
|
51213
51215
|
}
|
|
51216
|
+
|
|
51214
51217
|
return interStr;
|
|
51215
51218
|
}
|
|
51216
51219
|
getContactLinks(atomlistTarget, otherAtoms, labelType, bInternal, bCartoon2d) { let ic = this.icn3d, me = ic.icn3dui;
|
|
@@ -51253,7 +51256,14 @@ class GetGraph {
|
|
|
51253
51256
|
for(let resid1 in hash1) {
|
|
51254
51257
|
//ASN $1KQ2.A:6@ND2
|
|
51255
51258
|
//or ASN $1KQ2.A:6
|
|
51256
|
-
|
|
51259
|
+
// or ASN $1KQ2.A:6@ND2 2006
|
|
51260
|
+
let resid1Ori = resid1.trim();
|
|
51261
|
+
|
|
51262
|
+
let idArray1 = resid1Ori.split(' ');
|
|
51263
|
+
if(idArray1.length == 3) {
|
|
51264
|
+
resid1 = idArray1[0] + ' ' + idArray1[1];
|
|
51265
|
+
}
|
|
51266
|
+
|
|
51257
51267
|
let pos1a = resid1.indexOf(' ');
|
|
51258
51268
|
let pos1b = resid1.indexOf(':');
|
|
51259
51269
|
let posTmp1 = resid1.indexOf('@');
|
|
@@ -51263,8 +51273,14 @@ class GetGraph {
|
|
|
51263
51273
|
let resName1 = me.utilsCls.residueName2Abbr(resid1.substr(0, pos1a)) + resid1.substr(pos1b + 1, pos1c - pos1b - 1);
|
|
51264
51274
|
if(labelType == 'chain' || labelType == 'structure') resName1 += '.' + resid1.substr(pos1d + 1, pos1b - pos1d - 1);
|
|
51265
51275
|
if(labelType == 'structure') resName1 += '.' + resid1.substr(pos1e + 1, pos1d - pos1e - 1);
|
|
51266
|
-
for(let resid2 in hash2[
|
|
51267
|
-
|
|
51276
|
+
for(let resid2 in hash2[resid1Ori]) {
|
|
51277
|
+
let resid2Ori = resid2.trim();
|
|
51278
|
+
|
|
51279
|
+
let idArray2 = resid2Ori.split(' ');
|
|
51280
|
+
if(idArray2.length == 3) {
|
|
51281
|
+
resid2 = idArray2[0] + ' ' + idArray2[1];
|
|
51282
|
+
}
|
|
51283
|
+
|
|
51268
51284
|
let pos2a = resid2.indexOf(' ');
|
|
51269
51285
|
let pos2b = resid2.indexOf(':');
|
|
51270
51286
|
let posTmp2 = resid2.indexOf('@');
|
|
@@ -51280,16 +51296,6 @@ class GetGraph {
|
|
|
51280
51296
|
resName1 = ic.resi2resirange[resName1];
|
|
51281
51297
|
resName2 = ic.resi2resirange[resName2];
|
|
51282
51298
|
}
|
|
51283
|
-
/*
|
|
51284
|
-
if(!sourceTargetHash.hasOwnProperty(resName1 + '_' + resName2) && resName1 !== undefined && resName2 !== undefined ) {
|
|
51285
|
-
let linkStr = ', {"source": "' + resName1 + '", "target": "' + resName2 + '", "v": ' + value + ', "c": "' + color + '"}';
|
|
51286
|
-
if(linkStr != prevLinkStr) hbondStr += linkStr;
|
|
51287
|
-
prevLinkStr = linkStr;
|
|
51288
|
-
|
|
51289
|
-
sourceTargetHash[resName1 + '_' + resName2] = 1;
|
|
51290
|
-
sourceTargetHash[resName2 + '_' + resName1] = 1;
|
|
51291
|
-
}
|
|
51292
|
-
*/
|
|
51293
51299
|
|
|
51294
51300
|
if(resName1 !== undefined && resName2 !== undefined ) {
|
|
51295
51301
|
let linkStr = '"source": "' + resName1 + '", "target": "' + resName2 + '", "v": ' + value + ', "c": "' + color + '"';
|