You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pull request #723: Updated "2D Diagram for Nucleotides" so that users can click on 2D Diagram to show selection on 3D view.
Merge in STRUC/icn3d from release3.49.2 to master
* commit '3c9f7c67c6da5b144e57a040c13c84a08dcd3311':
Updated "2D Diagram for Nucleotides" so that users can click on 2D Diagram to show selection on 3D view.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
1
## Change Log
2
+
[icn3d-3.49.2](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.49.2.zip) was release on May 7, 2026. Updated "2D Diagram for Nucleotides" so that users can click on 2D Diagram to show selection on 3D view.
3
+
2
4
[icn3d-3.49.1](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.49.1.zip) was release on May 4, 2026. Upgraded "2D Diagram for Ig Domains" to have one diagram for each Ig domain in a chain.
3
5
4
6
[icn3d-3.49.0](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.49.0.zip) was release on April 29, 2026. Added "2D Diagram for Nucleotides" using the R2DT diagram, and "2D Diagram for Ig Domains" with predetermined Ig templates. The features are available via the menu "Analysis > 2D Diagram" in iCn3D.
let textElem = clickedElement.querySelector('text');
129127
+
textElem.setAttribute("stroke", "#f8b84e");
129128
+
textElem.setAttribute("stroke-width", "0.5px");
129129
+
}
129130
+
129131
+
// set cursor for all nodes
129132
+
if(!ic.bSetCursor) {
129133
+
ic.bSetCursor = true;
129134
+
let r2dt = document.querySelector('r2dt-web').shadowRoot;
129135
+
let elemArray = r2dt.querySelectorAll('g:has(title)');
129136
+
for(let i = 0, il = elemArray.length; i < il; ++i) {
129137
+
if(!elemArray[i].hasAttribute('id')) { // skip the main g element
129138
+
elemArray[i].style.cursor = "pointer";
129139
+
}
129140
+
}
129141
+
}
129142
+
});
129081
129143
}
129082
129144
129083
129145
clickNode(node) { let ic = this.icn3d, me = ic.icn3dui;
@@ -129304,12 +129366,16 @@ void main() {
129304
129366
}
129305
129367
129306
129368
async drawR2dt(chainid) { let ic = this.icn3d, me = ic.icn3dui;
129369
+
ic.r2dt_chainid = chainid;
129370
+
129307
129371
let url = me.htmlCls.baseUrl + "vastdyn/vastdyn.cgi?chainid2rnaid=" + chainid;
129308
129372
129309
129373
let data = await me.getAjaxPromise(url, 'jsonp');
129310
129374
129311
129375
let html = '';
129312
129376
if(data && data.rnaid) {
129377
+
ic.bSetCursor = false;
129378
+
129313
129379
html += '<r2dt-web search=\'{"urs": "' + data.rnaid + '"}\' />';
129314
129380
html += '<script type="text/javascript" src="https://rnacentral.github.io/r2dt-web/dist/r2dt-web.js"></script>';
129315
129381
$("#" + me.pre + "2ddiagramDiv").html(html);
@@ -129355,7 +129421,7 @@ void main() {
129355
129421
}
129356
129422
129357
129423
if(!bFound) {
129358
-
alert("The Ig type for chain " + chainid + " is " + igTypeArray + ". Currently only IgV, IgC1, IgC2 and IgI types are supported for drawing Ig diagrams.");
129424
+
alert("The Ig type(s) for chain " + chainid + " is/are " + igTypeArray + ". Currently only IgV, IgC1, IgC2 and IgI types are supported for drawing Ig diagrams.");
129359
129425
return;
129360
129426
}
129361
129427
@@ -135702,7 +135768,7 @@ void main() {
135702
135768
//even when multiple iCn3D viewers are shown together.
135703
135769
this.pre = this.cfg.divid + "_";
135704
135770
135705
-
this.REVISION = '3.49.1';
135771
+
this.REVISION = '3.49.2';
135706
135772
135707
135773
// In nodejs, iCn3D defines "window = {navigator: {}}", and added window = {navigator: {}, "__THREE__":"177"}
let textElem = clickedElement.querySelector('text');
129124
+
textElem.setAttribute("stroke", "#f8b84e");
129125
+
textElem.setAttribute("stroke-width", "0.5px");
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
+
});
129078
129140
}
129079
129141
129080
129142
clickNode(node) { let ic = this.icn3d, me = ic.icn3dui;
@@ -129301,12 +129363,16 @@ class Diagram2d {
129301
129363
}
129302
129364
129303
129365
async drawR2dt(chainid) { let ic = this.icn3d, me = ic.icn3dui;
129366
+
ic.r2dt_chainid = chainid;
129367
+
129304
129368
let url = me.htmlCls.baseUrl + "vastdyn/vastdyn.cgi?chainid2rnaid=" + chainid;
129305
129369
129306
129370
let data = await me.getAjaxPromise(url, 'jsonp');
129307
129371
129308
129372
let html = '';
129309
129373
if(data && data.rnaid) {
129374
+
ic.bSetCursor = false;
129375
+
129310
129376
html += '<r2dt-web search=\'{"urs": "' + data.rnaid + '"}\' />';
129311
129377
html += '<script type="text/javascript" src="https://rnacentral.github.io/r2dt-web/dist/r2dt-web.js"></script>';
129312
129378
$("#" + me.pre + "2ddiagramDiv").html(html);
@@ -129352,7 +129418,7 @@ class Diagram2d {
129352
129418
}
129353
129419
129354
129420
if(!bFound) {
129355
-
var aaa = 1; //alert("The Ig type for chain " + chainid + " is " + igTypeArray + ". Currently only IgV, IgC1, IgC2 and IgI types are supported for drawing Ig diagrams.");
129421
+
var aaa = 1; //alert("The Ig type(s) for chain " + chainid + " is/are " + igTypeArray + ". Currently only IgV, IgC1, IgC2 and IgI types are supported for drawing Ig diagrams.");
129356
129422
return;
129357
129423
}
129358
129424
@@ -135699,7 +135765,7 @@ class iCn3DUI {
135699
135765
//even when multiple iCn3D viewers are shown together.
135700
135766
this.pre = this.cfg.divid + "_";
135701
135767
135702
-
this.REVISION = '3.49.1';
135768
+
this.REVISION = '3.49.2';
135703
135769
135704
135770
// In nodejs, iCn3D defines "window = {navigator: {}}", and added window = {navigator: {}, "__THREE__":"177"}
Copy file name to clipboardExpand all lines: dist/CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,6 @@
1
1
## Change Log
2
+
[icn3d-3.49.2](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.49.2.zip) was release on May 7, 2026. Updated "2D Diagram for Nucleotides" so that users can click on 2D Diagram to show selection on 3D view.
3
+
2
4
[icn3d-3.49.1](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.49.1.zip) was release on May 4, 2026. Upgraded "2D Diagram for Ig Domains" to have one diagram for each Ig domain in a chain.
3
5
4
6
[icn3d-3.49.0](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.49.0.zip) was release on April 29, 2026. Added "2D Diagram for Nucleotides" using the R2DT diagram, and "2D Diagram for Ig Domains" with predetermined Ig templates. The features are available via the menu "Analysis > 2D Diagram" in iCn3D.
0 commit comments