icn3d 3.25.10 → 3.25.11
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 +32 -9
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +32 -9
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -33190,7 +33190,7 @@ class Alternate {
|
|
|
33190
33190
|
ic.impostorCls.clearImpostors();
|
|
33191
33191
|
|
|
33192
33192
|
// show membranes
|
|
33193
|
-
if(ic.bOpm) {
|
|
33193
|
+
if(ic.bOpm && !me.cfg.chainalign) {
|
|
33194
33194
|
//if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
|
|
33195
33195
|
|
|
33196
33196
|
let html = me.utilsCls.getMemDesc();
|
|
@@ -42263,6 +42263,10 @@ class ShowAnno {
|
|
|
42263
42263
|
}
|
|
42264
42264
|
}
|
|
42265
42265
|
getColorhexFromBlosum62(resA, resB) { let ic = this.icn3d, me = ic.icn3dui;
|
|
42266
|
+
let color = '333333';
|
|
42267
|
+
|
|
42268
|
+
if(!resA || !resB) return color;
|
|
42269
|
+
|
|
42266
42270
|
resA = resA.toUpperCase();
|
|
42267
42271
|
resB = resB.toUpperCase();
|
|
42268
42272
|
|
|
@@ -42272,7 +42276,7 @@ class ShowAnno {
|
|
|
42272
42276
|
if(matrixValue === undefined) return '333333';
|
|
42273
42277
|
// range and color: blue for -4 ~ 0, red for 0 ~ 11
|
|
42274
42278
|
// max value 221 to avoid white
|
|
42275
|
-
|
|
42279
|
+
|
|
42276
42280
|
if(matrixValue > 0) {
|
|
42277
42281
|
let c = 221 - parseInt(matrixValue / 11.0 * 221);
|
|
42278
42282
|
let cStr =(c < 10) ? '0' + c.toString(16) : c.toString(16);
|
|
@@ -42930,7 +42934,9 @@ class ShowSeq {
|
|
|
42930
42934
|
for(let il = strandArray.length, i = il - 1; i >= 0; --i) {
|
|
42931
42935
|
if(strandArray[i].endRefnum - strandArray[i].startRefnum + 1 < 3) { // remove the strand
|
|
42932
42936
|
if(i != il - 1) { // modify
|
|
42933
|
-
strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
|
|
42937
|
+
// strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + strandArray[i].endRefnum - strandArray[i].startRefnum + 1;
|
|
42938
|
+
|
|
42939
|
+
strandArray[i + 1].loopResCnt += strandArray[i].loopResCnt + parseInt(strandArray[i].endResi) - parseInt(strandArray[i].startResi) + 1;
|
|
42934
42940
|
}
|
|
42935
42941
|
|
|
42936
42942
|
strandArray.splice(i, 1);
|
|
@@ -52759,7 +52765,7 @@ class ParserUtils {
|
|
|
52759
52765
|
if(rmsd) {
|
|
52760
52766
|
me.htmlCls.clickMenuCls.setLogCmd("realignment RMSD: " + rmsd.toPrecision(4), false);
|
|
52761
52767
|
let html = "<br><b>Realignment RMSD</b>: " + rmsd.toPrecision(4) + " Å<br><br>";
|
|
52762
|
-
if(ic.bAfMem) {
|
|
52768
|
+
if(ic.bAfMem && !me.cfg.chainalign) {
|
|
52763
52769
|
//if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
|
|
52764
52770
|
html += me.utilsCls.getMemDesc();
|
|
52765
52771
|
}
|
|
@@ -63448,18 +63454,35 @@ class Scap {
|
|
|
63448
63454
|
}
|
|
63449
63455
|
}
|
|
63450
63456
|
|
|
63451
|
-
adjust2DWidth(id) { let ic = this.icn3d
|
|
63452
|
-
let halfWidth = 125;
|
|
63457
|
+
adjust2DWidth(id) { let ic = this.icn3d; ic.icn3dui;
|
|
63453
63458
|
id = ic.pre + id;
|
|
63454
|
-
|
|
63459
|
+
/*
|
|
63455
63460
|
let height =($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) ? $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "height") : me.htmlCls.HEIGHT;
|
|
63456
63461
|
let width =($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) ? halfWidth * 2 : me.htmlCls.WIDTH * 0.5;
|
|
63457
63462
|
|
|
63458
63463
|
$("#" + id).dialog( "option", "width", width );
|
|
63459
63464
|
$("#" + id).dialog( "option", "height", height);
|
|
63460
|
-
let position = { my: "left-" + halfWidth + " top+" + me.htmlCls.MENU_HEIGHT, at: "right top", of: "#" + ic.pre + "viewer", collision: "none" }
|
|
63465
|
+
let position = { my: "left-" + halfWidth + " top+" + me.htmlCls.MENU_HEIGHT, at: "right top", of: "#" + ic.pre + "viewer", collision: "none" }
|
|
63461
63466
|
|
|
63462
|
-
|
|
63467
|
+
$("#" + id).dialog( "option", "position", position );
|
|
63468
|
+
*/
|
|
63469
|
+
|
|
63470
|
+
let width, height, top;
|
|
63471
|
+
|
|
63472
|
+
if($("#" + ic.pre + 'dl_selectannotations').hasClass("ui-dialog-content")) {
|
|
63473
|
+
width = $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "width");
|
|
63474
|
+
height = $("#" + ic.pre + 'dl_selectannotations').dialog( "option", "height") * 0.5;
|
|
63475
|
+
top = height;
|
|
63476
|
+
|
|
63477
|
+
$("#" + ic.pre + "dl_selectannotations").dialog( "option", "height", height);
|
|
63478
|
+
|
|
63479
|
+
$("#" + id).dialog( "option", "width", width );
|
|
63480
|
+
$("#" + id).dialog( "option", "height", height);
|
|
63481
|
+
|
|
63482
|
+
let position = { my: "left top", at: "right top+" + top, of: "#" + ic.pre + "viewer", collision: "none" };
|
|
63483
|
+
|
|
63484
|
+
$("#" + id).dialog( "option", "position", position );
|
|
63485
|
+
}
|
|
63463
63486
|
}
|
|
63464
63487
|
|
|
63465
63488
|
async retrieveScap(snp, bInteraction, bPdb) { let ic = this.icn3d, me = ic.icn3dui;
|