icn3d 3.49.4 → 3.49.5
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 +13 -16
- package/icn3d.min.js +2 -2
- package/icn3d.module.js +13 -16
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -63065,7 +63065,7 @@ class SetDialog {
|
|
|
63065
63065
|
html += "1. Select a nucleotide chain to show R2DT diagram:<br>";
|
|
63066
63066
|
html += "<select style='max-width:200px' id='" + me.pre + "atomsCustomNucleotide' size='5' style='min-width:130px;'>";
|
|
63067
63067
|
html += "</select><br>";
|
|
63068
|
-
html += me.htmlCls.buttonStr + "applyr2dt'>Show R2DT Diagram</button><br>";
|
|
63068
|
+
html += me.htmlCls.buttonStr + "applyr2dt'>Show R2DT Diagram</button> <br><br>(Hints: Click on Residues in 2D to highlight in 3D. <br>Ctrl + click to select multiple residues.)<br>";
|
|
63069
63069
|
html += "</div>";
|
|
63070
63070
|
|
|
63071
63071
|
html += me.htmlCls.divStr + "dl_2ddgm_igdgm' class='" + dialogClass + "'>";
|
|
@@ -129104,7 +129104,7 @@ class Diagram2d {
|
|
|
129104
129104
|
let realResn = (resn == 'T') ? 'U' : resn;
|
|
129105
129105
|
|
|
129106
129106
|
if(resn != oneLetterRes && realResn != oneLetterRes) {
|
|
129107
|
-
var aaa = 1; //alert("The
|
|
129107
|
+
var aaa = 1; //alert("The residue number in R2DT didn't match that in 3D view...");
|
|
129108
129108
|
}
|
|
129109
129109
|
else {
|
|
129110
129110
|
// highlight the selected residue
|
|
@@ -129124,18 +129124,6 @@ class Diagram2d {
|
|
|
129124
129124
|
textElem.setAttribute("stroke", "#f8b84e");
|
|
129125
129125
|
textElem.setAttribute("stroke-width", "0.5px");
|
|
129126
129126
|
}
|
|
129127
|
-
|
|
129128
|
-
// set cursor for all nodes
|
|
129129
|
-
if(!ic.bSetCursor) {
|
|
129130
|
-
ic.bSetCursor = true;
|
|
129131
|
-
let r2dt = document.querySelector('r2dt-web').shadowRoot;
|
|
129132
|
-
let elemArray = r2dt.querySelectorAll('g:has(title)');
|
|
129133
|
-
for(let i = 0, il = elemArray.length; i < il; ++i) {
|
|
129134
|
-
if(!elemArray[i].hasAttribute('id')) { // skip the main g element
|
|
129135
|
-
elemArray[i].style.cursor = "pointer";
|
|
129136
|
-
}
|
|
129137
|
-
}
|
|
129138
|
-
}
|
|
129139
129127
|
});
|
|
129140
129128
|
}
|
|
129141
129129
|
|
|
@@ -129371,12 +129359,21 @@ class Diagram2d {
|
|
|
129371
129359
|
|
|
129372
129360
|
let html = '';
|
|
129373
129361
|
if(data && data.rnaid) {
|
|
129374
|
-
ic.bSetCursor = false;
|
|
129375
|
-
|
|
129376
129362
|
html += '<r2dt-web search=\'{"urs": "' + data.rnaid + '"}\' />';
|
|
129377
129363
|
html += '<script type="text/javascript" src="https://rnacentral.github.io/r2dt-web/dist/r2dt-web.js"></script>';
|
|
129378
129364
|
$("#" + me.pre + "2ddiagramDiv").html(html);
|
|
129379
129365
|
me.htmlCls.dialogCls.openDlg('dl_2ddiagram', 'Show R2DT Diagram for chain ' + chainid);
|
|
129366
|
+
|
|
129367
|
+
// set cursor for all nodes
|
|
129368
|
+
setTimeout(function(){
|
|
129369
|
+
let r2dt = document.querySelector('r2dt-web').shadowRoot;
|
|
129370
|
+
let elemArray = r2dt.querySelectorAll('g:has(title)');
|
|
129371
|
+
for(let i = 0, il = elemArray.length; i < il; ++i) {
|
|
129372
|
+
if(!elemArray[i].hasAttribute('id')) { // skip the main g element
|
|
129373
|
+
elemArray[i].style.cursor = "pointer";
|
|
129374
|
+
}
|
|
129375
|
+
}
|
|
129376
|
+
}, 1000);
|
|
129380
129377
|
}
|
|
129381
129378
|
else {
|
|
129382
129379
|
var aaa = 1; //alert("No R2DT diagram can be found for chain " + chainid);
|