Skip to content

Commit 1b44ed1

Browse files
committed
Pull request #614: Upgraded three.js to version 151, and improved the image quality.
Merge in STRUC/icn3d from release3282 to master * commit '81cdd7b32ecc2820246ccdb094affafdc7c7a084': Upgraded three.js to version 151, and improved the image quality.
2 parents a4656c0 + 81cdd7b commit 1b44ed1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1488
-730
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## Change Log
2+
[icn3d-3.28.2](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.28.2.zip) was release on August 23, 2023. Upgraded three.js to version 151, and improved the image quality.
3+
24
[icn3d-3.28.1](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.28.1.zip) was release on August 23, 2023. Added logs for menu usages, and updated iCn3D tutorials at https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d.html#videos.
35

46
[icn3d-3.28.0](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.28.0.zip) was release on July 31, 2023. Added the feature to show isoforms and exons as tracks with the button "Add Track" in the "Sequences & Annotations" window via the menu "Analysis > Sequences & Annotations". Also displayed pathogenic ClinVars in red and the rest in green in the ClinVar track.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
iCn3D can be embedded in a web page by including the URL in HTML iframe, e.g. <iframe src="https://www.ncbi.nlm.nih.gov/Structure/icn3d/?mmdbid=1tup&width=300&height=300&showcommand=0&mobilemenu=1&showtitle=0" width="320" height="320" style="border:none"></iframe>. This method always shows the most recent version of iCn3D.
7474

75-
To embed iCn3D with JavaScript libraries, the following libraries need to be included: jQuery, jQuery UI, Three.js, and iCn3D library. An html div tag to hold the 3D viewer is added. The iCn3D widget is initialized with the custom defined parameter "cfg": "let icn3dui = new icn3d.iCn3DUI(cfg); await icn3dui.show3DStructure();". Multiple iCn3D widgets can be embedded in a single page. Please see the source code of the [example page](https://www.ncbi.nlm.nih.gov/Structure/icn3d/example.html) for reference.
75+
To embed iCn3D with JavaScript libraries, the following libraries need to be included: jQuery, jQuery UI, Three.js, and iCn3D library. An html div tag to hold the 3D viewer is added. The iCn3D widget is initialized with the custom defined parameter "cfg": "let icn3dui = new icn3d.iCn3DUI(cfg); await icn3dui.show3DStructure();". Multiple iCn3D widgets can be embedded in a single page. Please see the source code of the [example page](https://www.ncbi.nlm.nih.gov/Structure/icn3d/example-simple.html) for reference.
7676

7777
Users can choose to show the most recent version of iCn3D, or a locked version of iCn3D. To show the most recent version, use the library files without the version postfix as shown in the [iCn3D Doc page](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d.html#HowToUse). To show a locked version, use the library files with the version postfix as shown in the source code of [iCn3D page](https://www.ncbi.nlm.nih.gov/Structure/icn3d/?mmdbid=1tup). If the input is provided as an MMDB ID, both library files and backend cgis are versioned so that the 3D display will be stable.
7878

build/icn3d.js

Lines changed: 281 additions & 132 deletions
Large diffs are not rendered by default.

build/icn3d.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/icn3d.module.js

Lines changed: 281 additions & 132 deletions
Large diffs are not rendered by default.

dist/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
## Change Log
2+
[icn3d-3.28.2](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.28.2.zip) was release on August 23, 2023. Upgraded three.js to version 151, and improved the image quality.
3+
24
[icn3d-3.28.1](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.28.1.zip) was release on August 23, 2023. Added logs for menu usages, and updated iCn3D tutorials at https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d.html#videos.
35

46
[icn3d-3.28.0](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d-3.28.0.zip) was release on July 31, 2023. Added the feature to show isoforms and exons as tracks with the button "Add Track" in the "Sequences & Annotations" window via the menu "Analysis > Sequences & Annotations". Also displayed pathogenic ClinVars in red and the rest in green in the ClinVar track.

dist/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
iCn3D can be embedded in a web page by including the URL in HTML iframe, e.g. <iframe src="https://www.ncbi.nlm.nih.gov/Structure/icn3d/?mmdbid=1tup&width=300&height=300&showcommand=0&mobilemenu=1&showtitle=0" width="320" height="320" style="border:none"></iframe>. This method always shows the most recent version of iCn3D.
7474

75-
To embed iCn3D with JavaScript libraries, the following libraries need to be included: jQuery, jQuery UI, Three.js, and iCn3D library. An html div tag to hold the 3D viewer is added. The iCn3D widget is initialized with the custom defined parameter "cfg": "let icn3dui = new icn3d.iCn3DUI(cfg); await icn3dui.show3DStructure();". Multiple iCn3D widgets can be embedded in a single page. Please see the source code of the [example page](https://www.ncbi.nlm.nih.gov/Structure/icn3d/example.html) for reference.
75+
To embed iCn3D with JavaScript libraries, the following libraries need to be included: jQuery, jQuery UI, Three.js, and iCn3D library. An html div tag to hold the 3D viewer is added. The iCn3D widget is initialized with the custom defined parameter "cfg": "let icn3dui = new icn3d.iCn3DUI(cfg); await icn3dui.show3DStructure();". Multiple iCn3D widgets can be embedded in a single page. Please see the source code of the [example page](https://www.ncbi.nlm.nih.gov/Structure/icn3d/example-simple.html) for reference.
7676

7777
Users can choose to show the most recent version of iCn3D, or a locked version of iCn3D. To show the most recent version, use the library files without the version postfix as shown in the [iCn3D Doc page](https://www.ncbi.nlm.nih.gov/Structure/icn3d/icn3d.html#HowToUse). To show a locked version, use the library files with the version postfix as shown in the source code of [iCn3D page](https://www.ncbi.nlm.nih.gov/Structure/icn3d/?mmdbid=1tup). If the input is provided as an MMDB ID, both library files and backend cgis are versioned so that the 3D display will be stable.
7878

dist/full.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
<div id="div0"></div>
2020

2121
<link rel="stylesheet" href="lib/jquery-ui-1.13.2.min.css">
22-
<link rel="stylesheet" href="icn3d_3.28.1.css">
22+
<link rel="stylesheet" href="icn3d_3.28.2.css">
2323
<script src="lib/jquery-3.5.0.min.js"></script>
2424
<script src="lib/jquery-ui-1.13.2.min.js"></script>
25-
<script src="lib/three_0.137.0.min.js"></script>
26-
<script src="icn3d_3.28.1.min.js"></script>
25+
<script src="lib/three_0.151.0.min.js"></script>
26+
<script src="icn3d_3.28.2.min.js"></script>
2727

2828
<script type="text/javascript">
2929

@@ -41,7 +41,7 @@
4141
alert("IE does NOT work with the current iCn3D version 3. The old iCn3D version 2 is used instead.");
4242
}
4343
else {
44-
//$.getScript('icn3d_3.28.1.min.js', function() {
44+
//$.getScript('icn3d_3.28.2.min.js', function() {
4545
var version = 3;
4646
await launchIcn3d(version); //await
4747
//});

dist/full2.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
<div id="div1" style="float:left;"></div>
2121

2222
<link rel="stylesheet" href="lib/jquery-ui-1.13.2.min.css">
23-
<link rel="stylesheet" href="icn3d_3.28.1.css">
23+
<link rel="stylesheet" href="icn3d_3.28.2.css">
2424
<script src="lib/jquery-3.5.0.min.js"></script>
2525
<script src="lib/jquery-ui-1.13.2.min.js"></script>
26-
<script src="lib/three_0.137.0.min.js"></script>
27-
<script src="icn3d_3.28.1.min.js"></script>
26+
<script src="lib/three_0.151.0.min.js"></script>
27+
<script src="icn3d_3.28.2.min.js"></script>
2828

2929
<script type="text/javascript">
3030
$( document ).ready(async function() {
@@ -41,7 +41,7 @@
4141
alert("IE does NOT work with the current iCn3D version 3. The old iCn3D version 2 is used instead.");
4242
}
4343
else {
44-
//$.getScript('icn3d_3.28.1.min.js', function() {
44+
//$.getScript('icn3d_3.28.2.min.js', function() {
4545
var version = 3;
4646
await launchIcn3d(version);
4747
//});
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
<div id="div1" style="float:left;"></div>
2121

2222
<link rel="stylesheet" href="lib/jquery-ui-1.13.2.min.css">
23-
<link rel="stylesheet" href="icn3d_3.28.1.css">
23+
<link rel="stylesheet" href="icn3d_3.28.2.css">
2424
<script src="lib/jquery-3.5.0.min.js"></script>
2525
<script src="lib/jquery-ui-1.13.2.min.js"></script>
26-
<script src="lib/three_0.137.0.min.js"></script>
27-
<script src="icn3d_3.28.1.min.js"></script>
26+
<script src="lib/three_0.151.0.min.js"></script>
27+
<script src="icn3d_3.28.2.min.js"></script>
2828

2929
<script type="text/javascript">
3030
$( document ).ready(async function() {
@@ -41,7 +41,7 @@
4141
alert("IE does NOT work with the current iCn3D version 3. The old iCn3D version 2 is used instead.");
4242
}
4343
else {
44-
//$.getScript('icn3d_3.28.1.min.js', function() {
44+
//$.getScript('icn3d_3.28.2.min.js', function() {
4545
var version = 3;
4646
await launchIcn3d(version);
4747
//});

0 commit comments

Comments
 (0)