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.js
CHANGED
|
@@ -62164,7 +62164,7 @@ class SetDialog {
|
|
|
62164
62164
|
html += "1. Select a nucleotide chain to show R2DT diagram:<br>";
|
|
62165
62165
|
html += "<select style='max-width:200px' id='" + me.pre + "atomsCustomNucleotide' size='5' style='min-width:130px;'>";
|
|
62166
62166
|
html += "</select><br>";
|
|
62167
|
-
html += me.htmlCls.buttonStr + "applyr2dt'>Show R2DT Diagram</button><br>";
|
|
62167
|
+
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>";
|
|
62168
62168
|
html += "</div>";
|
|
62169
62169
|
|
|
62170
62170
|
html += me.htmlCls.divStr + "dl_2ddgm_igdgm' class='" + dialogClass + "'>";
|
|
@@ -128203,7 +128203,7 @@ class Diagram2d {
|
|
|
128203
128203
|
let realResn = (resn == 'T') ? 'U' : resn;
|
|
128204
128204
|
|
|
128205
128205
|
if(resn != oneLetterRes && realResn != oneLetterRes) {
|
|
128206
|
-
var aaa = 1; //alert("The
|
|
128206
|
+
var aaa = 1; //alert("The residue number in R2DT didn't match that in 3D view...");
|
|
128207
128207
|
}
|
|
128208
128208
|
else {
|
|
128209
128209
|
// highlight the selected residue
|
|
@@ -128223,18 +128223,6 @@ class Diagram2d {
|
|
|
128223
128223
|
textElem.setAttribute("stroke", "#f8b84e");
|
|
128224
128224
|
textElem.setAttribute("stroke-width", "0.5px");
|
|
128225
128225
|
}
|
|
128226
|
-
|
|
128227
|
-
// set cursor for all nodes
|
|
128228
|
-
if(!ic.bSetCursor) {
|
|
128229
|
-
ic.bSetCursor = true;
|
|
128230
|
-
let r2dt = document.querySelector('r2dt-web').shadowRoot;
|
|
128231
|
-
let elemArray = r2dt.querySelectorAll('g:has(title)');
|
|
128232
|
-
for(let i = 0, il = elemArray.length; i < il; ++i) {
|
|
128233
|
-
if(!elemArray[i].hasAttribute('id')) { // skip the main g element
|
|
128234
|
-
elemArray[i].style.cursor = "pointer";
|
|
128235
|
-
}
|
|
128236
|
-
}
|
|
128237
|
-
}
|
|
128238
128226
|
});
|
|
128239
128227
|
}
|
|
128240
128228
|
|
|
@@ -128470,12 +128458,21 @@ class Diagram2d {
|
|
|
128470
128458
|
|
|
128471
128459
|
let html = '';
|
|
128472
128460
|
if(data && data.rnaid) {
|
|
128473
|
-
ic.bSetCursor = false;
|
|
128474
|
-
|
|
128475
128461
|
html += '<r2dt-web search=\'{"urs": "' + data.rnaid + '"}\' />';
|
|
128476
128462
|
html += '<script type="text/javascript" src="https://rnacentral.github.io/r2dt-web/dist/r2dt-web.js"></script>';
|
|
128477
128463
|
$("#" + me.pre + "2ddiagramDiv").html(html);
|
|
128478
128464
|
me.htmlCls.dialogCls.openDlg('dl_2ddiagram', 'Show R2DT Diagram for chain ' + chainid);
|
|
128465
|
+
|
|
128466
|
+
// set cursor for all nodes
|
|
128467
|
+
setTimeout(function(){
|
|
128468
|
+
let r2dt = document.querySelector('r2dt-web').shadowRoot;
|
|
128469
|
+
let elemArray = r2dt.querySelectorAll('g:has(title)');
|
|
128470
|
+
for(let i = 0, il = elemArray.length; i < il; ++i) {
|
|
128471
|
+
if(!elemArray[i].hasAttribute('id')) { // skip the main g element
|
|
128472
|
+
elemArray[i].style.cursor = "pointer";
|
|
128473
|
+
}
|
|
128474
|
+
}
|
|
128475
|
+
}, 1000);
|
|
128479
128476
|
}
|
|
128480
128477
|
else {
|
|
128481
128478
|
var aaa = 1; //alert("No R2DT diagram can be found for chain " + chainid);
|