icn3d 3.45.5 → 3.45.6
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 +34 -26
- package/icn3d.min.js +3 -3
- package/icn3d.module.js +34 -26
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -59316,11 +59316,13 @@ class ClickMenu {
|
|
|
59316
59316
|
});
|
|
59317
59317
|
|
|
59318
59318
|
me.myEventCls.onIds("#" + me.pre + "mn6_cameraPers", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
|
|
59319
|
+
ic.bChangeCamera = true;
|
|
59319
59320
|
ic.setOptionCls.setOption('camera', 'perspective');
|
|
59320
59321
|
thisClass.setLogCmd('set camera perspective', true);
|
|
59321
59322
|
});
|
|
59322
59323
|
|
|
59323
59324
|
me.myEventCls.onIds("#" + me.pre + "mn6_cameraOrth", "click", function(e) { let ic = me.icn3d; //e.preventDefault();
|
|
59325
|
+
ic.bChangeCamera = true;
|
|
59324
59326
|
ic.setOptionCls.setOption('camera', 'orthographic');
|
|
59325
59327
|
thisClass.setLogCmd('set camera orthographic', true);
|
|
59326
59328
|
});
|
|
@@ -64680,7 +64682,7 @@ class Events {
|
|
|
64680
64682
|
me.myEventCls.onIds(["#" + me.pre + "show_2ddgm", "#" + me.pre + "mn2_2ddgm"], "click", async function(e) { let ic = me.icn3d;
|
|
64681
64683
|
me.htmlCls.dialogCls.openDlg('dl_2ddgm', '2D Diagram');
|
|
64682
64684
|
await ic.viewInterPairsCls.retrieveInteractionData();
|
|
64683
|
-
thisClass.setLogCmd("view
|
|
64685
|
+
thisClass.setLogCmd("view 2d diagram", true);
|
|
64684
64686
|
});
|
|
64685
64687
|
|
|
64686
64688
|
me.myEventCls.onIds("#" + me.pre + "mn2_2ddepiction", "click", async function(e) { let ic = me.icn3d;
|
|
@@ -75054,11 +75056,13 @@ class Scene {
|
|
|
75054
75056
|
|
|
75055
75057
|
ic.fogCls.setFog();
|
|
75056
75058
|
|
|
75057
|
-
ic.
|
|
75058
|
-
|
|
75059
|
-
|
|
75060
|
-
ic.container.whratio
|
|
75061
|
-
|
|
75059
|
+
if(!ic.cam || ic.bChangeCamera) {
|
|
75060
|
+
ic.cameraCls.setCamera();
|
|
75061
|
+
// set the ratio for view point, which was set in ic.transformCls.resetOrientation_base
|
|
75062
|
+
if(!ic.container.whratio) {
|
|
75063
|
+
ic.container.whratio = me.htmlCls.WIDTH / me.htmlCls.HEIGHT;
|
|
75064
|
+
ic.cam.aspect = ic.container.whratio;
|
|
75065
|
+
}
|
|
75062
75066
|
}
|
|
75063
75067
|
|
|
75064
75068
|
if(ic.opts['slab'] === 'yes') ic.cameraCls.setSlab();
|
|
@@ -87262,7 +87266,7 @@ class Alternate {
|
|
|
87262
87266
|
}
|
|
87263
87267
|
|
|
87264
87268
|
ic.bShowHighlight = false;
|
|
87265
|
-
|
|
87269
|
+
ic.opts['rotationcenter'] = 'highlight center';
|
|
87266
87270
|
}
|
|
87267
87271
|
|
|
87268
87272
|
// also alternating the surfaces
|
|
@@ -105064,7 +105068,7 @@ class ChainalignParser {
|
|
|
105064
105068
|
targetOrQuery = 'query';
|
|
105065
105069
|
bAppend = true;
|
|
105066
105070
|
}
|
|
105067
|
-
|
|
105071
|
+
console.log("### i " + i + " structArray[i] " + structArray[i]);
|
|
105068
105072
|
//if(structArray[i].length > 4) {
|
|
105069
105073
|
if(isNaN(structArray[i]) && structArray[i].length > 5) { // PDB ID plus postfix could be 5
|
|
105070
105074
|
//let bNoDssp = true;
|
|
@@ -105082,8 +105086,8 @@ class ChainalignParser {
|
|
|
105082
105086
|
// hAtoms = me.hashUtilsCls.unionHash(hAtoms, hAtomsTmp);
|
|
105083
105087
|
}
|
|
105084
105088
|
|
|
105085
|
-
let structArrayAll = Object.keys(ic.structures);
|
|
105086
|
-
|
|
105089
|
+
let structArrayAll = structArray; //Object.keys(ic.structures);
|
|
105090
|
+
console.log("### ic.chains: " + JSON.stringify(ic.chains) + " ic.structures " + JSON.stringify(ic.structures));
|
|
105087
105091
|
ic.opts['color'] = (structArrayAll.length > 1) ? 'structure' : ((structArrayAll[0].length > 5) ? 'confidence' : 'chain');
|
|
105088
105092
|
|
|
105089
105093
|
// add color for all structures
|
|
@@ -116948,7 +116952,7 @@ class ApplyCommand {
|
|
|
116948
116952
|
ic.selectionCls.selectAll();
|
|
116949
116953
|
//ic.hlObjectsCls.addHlObjects();
|
|
116950
116954
|
}
|
|
116951
|
-
else if(command == 'show all') {
|
|
116955
|
+
else if(command == 'show all' || command == 'view all') {
|
|
116952
116956
|
ic.selectionCls.showAll();
|
|
116953
116957
|
}
|
|
116954
116958
|
else if(command == 'select complement') {
|
|
@@ -117328,7 +117332,7 @@ class ApplyCommand {
|
|
|
117328
117332
|
ic.applyCenterCls.centerSelection();
|
|
117329
117333
|
ic.drawCls.draw();
|
|
117330
117334
|
}
|
|
117331
|
-
else if(command == 'show selection') {
|
|
117335
|
+
else if(command == 'show selection' || command == 'view selection') {
|
|
117332
117336
|
ic.selectionCls.showSelection();
|
|
117333
117337
|
}
|
|
117334
117338
|
else if(command == 'hide selection') {
|
|
@@ -117371,12 +117375,12 @@ class ApplyCommand {
|
|
|
117371
117375
|
else if(command == 'delete selected sets') {
|
|
117372
117376
|
ic.definedSetsCls.deleteSelectedSets();
|
|
117373
117377
|
}
|
|
117374
|
-
else if(command == 'view interactions') {
|
|
117378
|
+
else if(command == 'view interactions' || command == 'view 2d diagram') {
|
|
117375
117379
|
if(me.cfg.mmdbid !== undefined || me.cfg.gi !== undefined) {
|
|
117376
117380
|
ic.ParserUtilsCls.set2DDiagrams(ic.inputid);
|
|
117377
117381
|
}
|
|
117378
117382
|
}
|
|
117379
|
-
else if(command == 'show annotations all chains') {
|
|
117383
|
+
else if(command == 'show annotations all chains' || command == 'view annotations all chains') {
|
|
117380
117384
|
ic.annotationCls.showAnnoAllChains();
|
|
117381
117385
|
}
|
|
117382
117386
|
|
|
@@ -117438,7 +117442,7 @@ class ApplyCommand {
|
|
|
117438
117442
|
else if(command == 'clear symd symmetry') {
|
|
117439
117443
|
ic.symdArray = [];
|
|
117440
117444
|
}
|
|
117441
|
-
else if(command == 'show axis') {
|
|
117445
|
+
else if(command == 'show axis' || command == 'view axis') {
|
|
117442
117446
|
ic.bAxisOnly = true;
|
|
117443
117447
|
}
|
|
117444
117448
|
|
|
@@ -117886,7 +117890,7 @@ class ApplyCommand {
|
|
|
117886
117890
|
}
|
|
117887
117891
|
}
|
|
117888
117892
|
else if(commandOri.indexOf('display interaction 3d') == 0
|
|
117889
|
-
|| commandOri.indexOf('view interaction pairs') == 0
|
|
117893
|
+
|| commandOri.indexOf('view interaction pairs') == 0 || commandOri.indexOf('show interaction pairs') == 0
|
|
117890
117894
|
|| commandOri.indexOf('save1 interaction pairs') == 0
|
|
117891
117895
|
|| commandOri.indexOf('save2 interaction pairs') == 0
|
|
117892
117896
|
|| commandOri.indexOf('line graph interaction pairs') == 0
|
|
@@ -117937,7 +117941,7 @@ class ApplyCommand {
|
|
|
117937
117941
|
if(commandOri.indexOf('display interaction 3d') == 0) {
|
|
117938
117942
|
type = '3d';
|
|
117939
117943
|
}
|
|
117940
|
-
else if(commandOri.indexOf('view interaction pairs') == 0) {
|
|
117944
|
+
else if(commandOri.indexOf('view interaction pairs') == 0 || commandOri.indexOf('show interaction pairs') == 0) {
|
|
117941
117945
|
type = 'view';
|
|
117942
117946
|
}
|
|
117943
117947
|
else if(commandOri.indexOf('save1 interaction pairs') == 0) {
|
|
@@ -118297,7 +118301,7 @@ class ApplyCommand {
|
|
|
118297
118301
|
let dataStr = paraArray[1].replace(/\\n/g, '\n');
|
|
118298
118302
|
await ic.refnumCls.parseCustomRefFile(dataStr);
|
|
118299
118303
|
}
|
|
118300
|
-
else if(command.indexOf('show ref number') == 0) {
|
|
118304
|
+
else if(command.indexOf('show ref number') == 0 || command.indexOf('view ref number') == 0) {
|
|
118301
118305
|
ic.bShownRefnum = true;
|
|
118302
118306
|
}
|
|
118303
118307
|
else if(command.indexOf('hide ref number') == 0) {
|
|
@@ -118553,7 +118557,7 @@ class ApplyCommand {
|
|
|
118553
118557
|
else if(cmd.indexOf('set annotation clinvar') == 0) return seqAnnoStr + ': "ClinVar" checkbox';
|
|
118554
118558
|
else if(cmd.indexOf('set annotation snp') == 0) return seqAnnoStr + ': "SNP" checkbox';
|
|
118555
118559
|
else if(cmd.indexOf('set annotation 3ddomain') == 0) return seqAnnoStr + ': "3D Domains" checkbox';
|
|
118556
|
-
else if(cmd.indexOf('view interactions') == 0) return 'Windows > View 2D Diagram';
|
|
118560
|
+
else if(cmd.indexOf('view interactions') == 0 || cmd.indexOf('view 2d diagram') == 0) return 'Windows > View 2D Diagram';
|
|
118557
118561
|
else if(cmd.indexOf('symmetry') == 0) return 'Analysis > Symmetry';
|
|
118558
118562
|
else if(cmd.indexOf('realign on seq align') == 0) return 'File > Realign Selection > on Sequence Alignment';
|
|
118559
118563
|
else if(cmd.indexOf('realign') == 0) return 'File > Realign Selection > Residue by Residue';
|
|
@@ -118645,7 +118649,7 @@ class ApplyCommand {
|
|
|
118645
118649
|
else if(cmd == 'clear all') return 'Select > Clear Selection';
|
|
118646
118650
|
else if(cmd == 'defined sets') return 'Windows > Defined Sets';
|
|
118647
118651
|
else if(cmd == 'delete selected sets') return 'Windows > Defined Sets: "Delete Selected Sets" button';
|
|
118648
|
-
else if(cmd == 'view interactions') return 'Windows > View Interactions';
|
|
118652
|
+
else if(cmd == 'view interactions' || cmd == 'view 2d diagram') return 'Windows > View Interactions';
|
|
118649
118653
|
else if(cmd == 'show annotations all chains') return seqAnnoStr + ': "Show All Chains" button';
|
|
118650
118654
|
else if(cmd == 'save color') return 'Color > Save Color';
|
|
118651
118655
|
else if(cmd == 'apply saved color') return 'Color > Apply Saved Color';
|
|
@@ -119916,7 +119920,7 @@ class LoadScript {
|
|
|
119916
119920
|
|
|
119917
119921
|
await ic.annotationCls.setAnnoTabAll();
|
|
119918
119922
|
}
|
|
119919
|
-
else if(command.indexOf('view interactions') == 0 && me.cfg.align !== undefined) { // the command may have "|||{"factor"...
|
|
119923
|
+
else if((command.indexOf('view interactions') == 0 || command.indexOf('view 2d diagram') == 0) && me.cfg.align !== undefined) { // the command may have "|||{"factor"...
|
|
119920
119924
|
await thisClass.applyCommandViewinteraction(strArray[0].trim());
|
|
119921
119925
|
}
|
|
119922
119926
|
else if(command.indexOf('view 2d depiction') == 0) { // the command may have "|||{"factor"...
|
|
@@ -120127,7 +120131,7 @@ class LoadScript {
|
|
|
120127
120131
|
thisClass.applyCommand3ddomain(lastCommand);
|
|
120128
120132
|
await ic.annotationCls.setAnnoTabAll();
|
|
120129
120133
|
}
|
|
120130
|
-
else if(lastCommand.indexOf('view interactions') == 0 && me.cfg.align !== undefined) {
|
|
120134
|
+
else if((lastCommand.indexOf('view interactions') == 0 || lastCommand.indexOf('view 2d diagram') == 0) && me.cfg.align !== undefined) {
|
|
120131
120135
|
await thisClass.applyCommandViewinteraction(lastCommand);
|
|
120132
120136
|
}
|
|
120133
120137
|
else if(lastCommand.indexOf('view 2d depiction') == 0) {
|
|
@@ -120588,7 +120592,7 @@ class LoadScript {
|
|
|
120588
120592
|
|
|
120589
120593
|
if(commandTransformation.length == 2 && commandTransformation[1].substr(0,1) == '{') ic.bTransformation = true;
|
|
120590
120594
|
|
|
120591
|
-
ic.transformCls.resetOrientation_base(commandTransformation);
|
|
120595
|
+
// ic.transformCls.resetOrientation_base(commandTransformation);
|
|
120592
120596
|
|
|
120593
120597
|
ic.selectionCls.oneStructurePerWindow();
|
|
120594
120598
|
|
|
@@ -120654,8 +120658,12 @@ class LoadScript {
|
|
|
120654
120658
|
$("#ncbi_logo").hide();
|
|
120655
120659
|
}
|
|
120656
120660
|
|
|
120661
|
+
ic.transformCls.resetOrientation_base(commandTransformation);
|
|
120662
|
+
|
|
120657
120663
|
// an extra render to remove artifacts in transparent surface
|
|
120658
|
-
if(ic.bTransparentSurface && ic.bRender) ic.drawCls.render();
|
|
120664
|
+
// if(ic.bTransparentSurface && ic.bRender) ic.drawCls.render();
|
|
120665
|
+
ic.drawCls.applyTransformation(ic._zoomFactor, ic.mouseChange, ic.quaternion);
|
|
120666
|
+
ic.drawCls.render();
|
|
120659
120667
|
|
|
120660
120668
|
if(me.cfg.imageonly) ic.saveFileCls.saveFile(undefined, 'png', undefined, true);
|
|
120661
120669
|
|
|
@@ -133154,7 +133162,7 @@ class iCn3D {
|
|
|
133154
133162
|
|
|
133155
133163
|
this.transparentRenderOrder = false; // false: regular transparency; true: expensive renderOrder for each face
|
|
133156
133164
|
|
|
133157
|
-
this.AFUniprotVersion = '
|
|
133165
|
+
this.AFUniprotVersion = 'v6';
|
|
133158
133166
|
this.defaultPdbId = 'stru';
|
|
133159
133167
|
|
|
133160
133168
|
if(!this.icn3dui.bNode) {
|
|
@@ -133743,7 +133751,7 @@ class iCn3DUI {
|
|
|
133743
133751
|
//even when multiple iCn3D viewers are shown together.
|
|
133744
133752
|
this.pre = this.cfg.divid + "_";
|
|
133745
133753
|
|
|
133746
|
-
this.REVISION = '3.45.
|
|
133754
|
+
this.REVISION = '3.45.4';
|
|
133747
133755
|
|
|
133748
133756
|
// In nodejs, iCn3D defines "window = {navigator: {}}", and added window = {navigator: {}, "__THREE__":"177"}
|
|
133749
133757
|
this.bNode = (Object.keys(window).length < 3) ? true : false;
|