icn3d 3.24.0 → 3.24.2
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 +453 -368
- package/icn3d.min.js +7 -3
- package/icn3d.module.js +453 -368
- package/package.json +1 -1
package/icn3d.module.js
CHANGED
|
@@ -5269,10 +5269,10 @@ class ParasCls {
|
|
|
5269
5269
|
];
|
|
5270
5270
|
|
|
5271
5271
|
this.backgroundColors = {
|
|
5272
|
-
black: this.thr(0x000000),
|
|
5273
|
-
grey: this.thr(0xCCCCCC),
|
|
5274
|
-
white: this.thr(0xFFFFFF),
|
|
5275
|
-
transparent: this.thr(0xFFFFFF) //this.thr(0x000000)
|
|
5272
|
+
'black': this.thr(0x000000),
|
|
5273
|
+
'grey': this.thr(0xCCCCCC),
|
|
5274
|
+
'white': this.thr(0xFFFFFF),
|
|
5275
|
+
'transparent': this.thr(0xFFFFFF) //this.thr(0x000000)
|
|
5276
5276
|
};
|
|
5277
5277
|
|
|
5278
5278
|
this.residueColors = {
|
|
@@ -6686,96 +6686,96 @@ class ClickMenu {
|
|
|
6686
6686
|
let thisClass = this;
|
|
6687
6687
|
//mn 1
|
|
6688
6688
|
// clkMn1_mmtfid: function() {
|
|
6689
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_vastplus", "click", function(e) { me.icn3d;
|
|
6689
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_vastplus", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6690
6690
|
me.htmlCls.dialogCls.openDlg('dl_vastplus', 'Please input PDB ID for VAST+');
|
|
6691
6691
|
});
|
|
6692
6692
|
|
|
6693
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_vast", "click", function(e) { me.icn3d;
|
|
6693
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_vast", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6694
6694
|
me.htmlCls.dialogCls.openDlg('dl_vast', 'Please input chain or PDB file for VAST');
|
|
6695
6695
|
});
|
|
6696
6696
|
|
|
6697
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_foldseek", "click", function(e) { me.icn3d;
|
|
6697
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_foldseek", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6698
6698
|
me.htmlCls.dialogCls.openDlg('dl_foldseek', 'Submit your selection to Foldseek');
|
|
6699
6699
|
});
|
|
6700
6700
|
|
|
6701
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mmtfid", "click", function(e) { me.icn3d;
|
|
6701
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mmtfid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6702
6702
|
me.htmlCls.dialogCls.openDlg('dl_mmtfid', 'Please input MMTF ID');
|
|
6703
6703
|
});
|
|
6704
6704
|
|
|
6705
6705
|
// clkMn1_pdbid: function() {
|
|
6706
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_pdbid", "click", function(e) { me.icn3d;
|
|
6706
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_pdbid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6707
6707
|
me.htmlCls.dialogCls.openDlg('dl_pdbid', 'Please input PDB ID');
|
|
6708
6708
|
});
|
|
6709
6709
|
|
|
6710
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_afid", "click", function(e) { me.icn3d;
|
|
6710
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_afid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6711
6711
|
me.htmlCls.dialogCls.openDlg('dl_afid', 'Please input AlphaFold UniProt ID');
|
|
6712
6712
|
});
|
|
6713
6713
|
|
|
6714
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_refseqid", "click", function(e) { me.icn3d;
|
|
6714
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_refseqid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6715
6715
|
me.htmlCls.dialogCls.openDlg('dl_refseqid', 'Please input NCBI Protein Accession');
|
|
6716
6716
|
});
|
|
6717
6717
|
|
|
6718
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_opmid", "click", function(e) { me.icn3d;
|
|
6718
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_opmid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6719
6719
|
me.htmlCls.dialogCls.openDlg('dl_opmid', 'Please input OPM PDB ID');
|
|
6720
6720
|
});
|
|
6721
6721
|
|
|
6722
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_align", "click", function(e) { me.icn3d;
|
|
6722
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_align", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6723
6723
|
me.htmlCls.dialogCls.openDlg('dl_align', 'Align two PDB structures');
|
|
6724
6724
|
});
|
|
6725
6725
|
|
|
6726
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_alignaf", "click", function(e) { me.icn3d;
|
|
6726
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_alignaf", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6727
6727
|
me.htmlCls.dialogCls.openDlg('dl_alignaf', 'Align two AlphaFold structures');
|
|
6728
6728
|
});
|
|
6729
6729
|
|
|
6730
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign", "click", function(e) { me.icn3d;
|
|
6730
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6731
6731
|
me.htmlCls.dialogCls.openDlg('dl_chainalign', 'Align multiple chains by structure alignment');
|
|
6732
6732
|
});
|
|
6733
6733
|
|
|
6734
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign2", "click", function(e) { me.icn3d;
|
|
6734
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign2", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6735
6735
|
me.htmlCls.dialogCls.openDlg('dl_chainalign2', 'Align multiple chains by sequence alignment');
|
|
6736
6736
|
});
|
|
6737
6737
|
|
|
6738
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign3", "click", function(e) { me.icn3d;
|
|
6738
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign3", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6739
6739
|
me.htmlCls.dialogCls.openDlg('dl_chainalign3', 'Align multiple chains residue by residue');
|
|
6740
6740
|
});
|
|
6741
6741
|
|
|
6742
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mutation", "click", function(e) { me.icn3d;
|
|
6742
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mutation", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6743
6743
|
me.htmlCls.dialogCls.openDlg('dl_mutation', 'Show the mutations in 3D');
|
|
6744
6744
|
});
|
|
6745
6745
|
|
|
6746
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_pdbfile", "click", function(e) { me.icn3d;
|
|
6746
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_pdbfile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6747
6747
|
//me = me.setIcn3dui($(this).attr('id'));
|
|
6748
6748
|
me.htmlCls.dialogCls.openDlg('dl_pdbfile', 'Please input PDB File');
|
|
6749
6749
|
});
|
|
6750
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_pdbfile_app", "#" + me.pre + "tool_pdbfile"], "click", function(e) { me.icn3d;
|
|
6750
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_pdbfile_app", "#" + me.pre + "tool_pdbfile"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
6751
6751
|
//me = me.setIcn3dui($(this).attr('id'));
|
|
6752
6752
|
me.htmlCls.dialogCls.openDlg('dl_pdbfile_app', 'Please append PDB Files');
|
|
6753
6753
|
});
|
|
6754
6754
|
|
|
6755
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mol2file", "click", function(e) { me.icn3d;
|
|
6755
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mol2file", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6756
6756
|
me.htmlCls.dialogCls.openDlg('dl_mol2file', 'Please input Mol2 File');
|
|
6757
6757
|
});
|
|
6758
6758
|
|
|
6759
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_sdffile", "click", function(e) { me.icn3d;
|
|
6759
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_sdffile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6760
6760
|
me.htmlCls.dialogCls.openDlg('dl_sdffile', 'Please input SDF File');
|
|
6761
6761
|
});
|
|
6762
6762
|
|
|
6763
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_xyzfile", "click", function(e) { me.icn3d;
|
|
6763
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_xyzfile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6764
6764
|
me.htmlCls.dialogCls.openDlg('dl_xyzfile', 'Please input XYZ File');
|
|
6765
6765
|
});
|
|
6766
6766
|
|
|
6767
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_afmapfile", "click", function(e) { me.icn3d;
|
|
6767
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_afmapfile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6768
6768
|
me.htmlCls.dialogCls.openDlg('dl_afmapfile', 'Please input AlphaFold PAE File');
|
|
6769
6769
|
});
|
|
6770
6770
|
|
|
6771
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_urlfile", "click", function(e) { me.icn3d;
|
|
6771
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_urlfile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6772
6772
|
me.htmlCls.dialogCls.openDlg('dl_urlfile', 'Load data by URL');
|
|
6773
6773
|
});
|
|
6774
6774
|
|
|
6775
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_fixedversion", "click", function(e) { me.icn3d;
|
|
6775
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_fixedversion", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6776
6776
|
me.htmlCls.dialogCls.openDlg('dl_fixedversion', 'Open Share Link URL in the archived version of iCn3D');
|
|
6777
6777
|
});
|
|
6778
|
-
me.myEventCls.onIds("#" + me.pre + "reload_fixedversion", "click", function(e) { let ic = me.icn3d;
|
|
6778
|
+
me.myEventCls.onIds("#" + me.pre + "reload_fixedversion", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6779
6779
|
let url = $("#" + me.pre + "sharelinkurl").val();
|
|
6780
6780
|
thisClass.setLogCmd("open " + url, false);
|
|
6781
6781
|
localStorage.setItem('fixedversion', '1');
|
|
@@ -6783,65 +6783,65 @@ class ClickMenu {
|
|
|
6783
6783
|
window.open(url, urlTarget);
|
|
6784
6784
|
});
|
|
6785
6785
|
|
|
6786
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mmciffile", "click", function(e) { me.icn3d;
|
|
6786
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mmciffile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6787
6787
|
me.htmlCls.dialogCls.openDlg('dl_mmciffile', 'Please input mmCIF File');
|
|
6788
6788
|
});
|
|
6789
6789
|
|
|
6790
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mmcifid", "click", function(e) { me.icn3d;
|
|
6790
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mmcifid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6791
6791
|
me.htmlCls.dialogCls.openDlg('dl_mmcifid', 'Please input mmCIF ID');
|
|
6792
6792
|
});
|
|
6793
6793
|
|
|
6794
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mmdbid", "click", function(e) { me.icn3d;
|
|
6794
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mmdbid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6795
6795
|
me.htmlCls.dialogCls.openDlg('dl_mmdbid', 'Please input MMDB or PDB ID');
|
|
6796
6796
|
});
|
|
6797
6797
|
|
|
6798
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_mmdbafid", , "#" + me.pre + "tool_mmdbafid"], "click", function(e) { me.icn3d;
|
|
6798
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_mmdbafid", , "#" + me.pre + "tool_mmdbafid"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
6799
6799
|
me.htmlCls.dialogCls.openDlg('dl_mmdbafid', 'Please input PDB/MMDB/AlphaFold UniProt IDs');
|
|
6800
6800
|
});
|
|
6801
6801
|
|
|
6802
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_blast_rep_id", "click", function(e) { me.icn3d;
|
|
6802
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_blast_rep_id", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6803
6803
|
me.htmlCls.dialogCls.openDlg('dl_blast_rep_id', 'Align sequence to structure');
|
|
6804
6804
|
});
|
|
6805
6805
|
|
|
6806
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_gi", "click", function(e) { me.icn3d;
|
|
6806
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_gi", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6807
6807
|
me.htmlCls.dialogCls.openDlg('dl_gi', 'Please input protein gi');
|
|
6808
6808
|
});
|
|
6809
6809
|
|
|
6810
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_cid", "click", function(e) { me.icn3d;
|
|
6810
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_cid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6811
6811
|
me.htmlCls.dialogCls.openDlg('dl_cid', 'Please input PubChem CID');
|
|
6812
6812
|
});
|
|
6813
6813
|
|
|
6814
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_pngimage", "click", function(e) { me.icn3d;
|
|
6814
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_pngimage", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6815
6815
|
me.htmlCls.dialogCls.openDlg('dl_pngimage', 'Please input the PNG image');
|
|
6816
6816
|
});
|
|
6817
6817
|
|
|
6818
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_state", "click", function(e) { me.icn3d;
|
|
6818
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_state", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6819
6819
|
me.htmlCls.dialogCls.openDlg('dl_state', 'Please input the state file');
|
|
6820
6820
|
});
|
|
6821
6821
|
|
|
6822
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_selection", "click", function(e) { me.icn3d;
|
|
6822
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_selection", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6823
6823
|
me.htmlCls.dialogCls.openDlg('dl_selection', 'Please input the selection file');
|
|
6824
6824
|
});
|
|
6825
6825
|
|
|
6826
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_dsn6", "click", function(e) { me.icn3d;
|
|
6826
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_dsn6", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6827
6827
|
me.htmlCls.dialogCls.openDlg('dl_dsn6', 'Please input the DSN6 file to display electron density map');
|
|
6828
6828
|
});
|
|
6829
6829
|
|
|
6830
6830
|
|
|
6831
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_delphi", "#" + me.pre + "mn1_delphi2", "#" + me.pre + "tool_delphi"], "click", function(e) { let ic = me.icn3d;
|
|
6831
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_delphi", "#" + me.pre + "mn1_delphi2", "#" + me.pre + "tool_delphi"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6832
6832
|
ic.loadPhiFrom = 'delphi';
|
|
6833
6833
|
$("#" + me.pre + "dl_delphi_tabs").tabs();
|
|
6834
6834
|
me.htmlCls.dialogCls.openDlg('dl_delphi', 'Please set parameters to display DelPhi potential map');
|
|
6835
6835
|
});
|
|
6836
6836
|
|
|
6837
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_phi", "click", function(e) { let ic = me.icn3d;
|
|
6837
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_phi", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6838
6838
|
ic.loadPhiFrom = 'phi';
|
|
6839
6839
|
$("#" + me.pre + "dl_phi_tabs").tabs();
|
|
6840
6840
|
$("#" + me.pre + "phitab1_tabs").tabs();
|
|
6841
6841
|
$("#" + me.pre + "phitab2_tabs").tabs();
|
|
6842
6842
|
me.htmlCls.dialogCls.openDlg('dl_phi', 'Please input local phi or cube file to display DelPhi potential map');
|
|
6843
6843
|
});
|
|
6844
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_phiurl", "click", function(e) { let ic = me.icn3d;
|
|
6844
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_phiurl", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6845
6845
|
ic.loadPhiFrom = 'phiurl';
|
|
6846
6846
|
$("#" + me.pre + "dl_phiurl_tabs").tabs();
|
|
6847
6847
|
$("#" + me.pre + "phiurltab1_tabs").tabs();
|
|
@@ -6850,11 +6850,11 @@ class ClickMenu {
|
|
|
6850
6850
|
});
|
|
6851
6851
|
|
|
6852
6852
|
|
|
6853
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_dsn6url", "click", function(e) { me.icn3d;
|
|
6853
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_dsn6url", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6854
6854
|
me.htmlCls.dialogCls.openDlg('dl_dsn6url', 'Please input the DSN6 file to display electron density map');
|
|
6855
6855
|
});
|
|
6856
6856
|
|
|
6857
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportState", "click", function(e) { let ic = me.icn3d;
|
|
6857
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportState", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6858
6858
|
thisClass.setLogCmd("export state file", false);
|
|
6859
6859
|
let file_pref =(ic.inputid) ? ic.inputid : "custom";
|
|
6860
6860
|
|
|
@@ -6862,19 +6862,19 @@ class ClickMenu {
|
|
|
6862
6862
|
});
|
|
6863
6863
|
|
|
6864
6864
|
|
|
6865
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportPdbRes", "click", function(e) { me.icn3d;
|
|
6865
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportPdbRes", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6866
6866
|
me.htmlCls.setHtmlCls.exportPdb();
|
|
6867
6867
|
|
|
6868
6868
|
thisClass.setLogCmd("export pdb", true);
|
|
6869
6869
|
});
|
|
6870
6870
|
|
|
6871
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportSecondary", "click", function(e) { me.icn3d;
|
|
6871
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportSecondary", "click", function(e) { me.icn3d; e.preventDefault();
|
|
6872
6872
|
me.htmlCls.setHtmlCls.exportSecondary();
|
|
6873
6873
|
|
|
6874
6874
|
thisClass.setLogCmd("export secondary structure", true);
|
|
6875
6875
|
});
|
|
6876
6876
|
|
|
6877
|
-
me.myEventCls.onIds(["#" + me.pre + "delphipdb", "#" + me.pre + "phipdb"], "click", function(e) { let ic = me.icn3d;
|
|
6877
|
+
me.myEventCls.onIds(["#" + me.pre + "delphipdb", "#" + me.pre + "phipdb"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6878
6878
|
let pdbStr = ic.saveFileCls.getSelectedResiduePDB();
|
|
6879
6879
|
|
|
6880
6880
|
thisClass.setLogCmd("export PDB of selected residues", false);
|
|
@@ -6882,42 +6882,42 @@ class ClickMenu {
|
|
|
6882
6882
|
ic.saveFileCls.saveFile(file_pref + '_icn3d_residues.pdb', 'text', [pdbStr]);
|
|
6883
6883
|
});
|
|
6884
6884
|
|
|
6885
|
-
me.myEventCls.onIds(["#" + me.pre + "delphipqr", "#" + me.pre + "phipqr", "#" + me.pre + "phiurlpqr"], "click", async function(e) { me.icn3d;
|
|
6885
|
+
me.myEventCls.onIds(["#" + me.pre + "delphipqr", "#" + me.pre + "phipqr", "#" + me.pre + "phiurlpqr"], "click", async function(e) { me.icn3d; e.preventDefault();
|
|
6886
6886
|
await me.htmlCls.setHtmlCls.exportPqr();
|
|
6887
6887
|
thisClass.setLogCmd("export pqr", true);
|
|
6888
6888
|
});
|
|
6889
6889
|
|
|
6890
|
-
// me.myEventCls.onIds("#" + me.pre + "delphipqbh", "click", async function(e) { let ic = me.icn3d;
|
|
6890
|
+
// me.myEventCls.onIds("#" + me.pre + "delphipqbh", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6891
6891
|
// let bPdb = true;
|
|
6892
6892
|
// await me.htmlCls.setHtmlCls.exportPqr(bPdb);
|
|
6893
6893
|
// thisClass.setLogCmd("export pdbh", false);
|
|
6894
6894
|
// });
|
|
6895
6895
|
|
|
6896
|
-
me.myEventCls.onIds("#" + me.pre + "profixpdb", "click", async function(e) { let ic = me.icn3d;
|
|
6896
|
+
me.myEventCls.onIds("#" + me.pre + "profixpdb", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6897
6897
|
let bHydrogen = false;
|
|
6898
6898
|
await ic.scapCls.exportPdbProfix(bHydrogen);
|
|
6899
6899
|
thisClass.setLogCmd("export pdb missing atoms", true);
|
|
6900
6900
|
});
|
|
6901
6901
|
|
|
6902
|
-
me.myEventCls.onIds("#" + me.pre + "profixpdbh", "click", async function(e) { let ic = me.icn3d;
|
|
6902
|
+
me.myEventCls.onIds("#" + me.pre + "profixpdbh", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6903
6903
|
let bHydrogen = true;
|
|
6904
6904
|
await ic.scapCls.exportPdbProfix(bHydrogen);
|
|
6905
6905
|
thisClass.setLogCmd("export pdb hydrogen", true);
|
|
6906
6906
|
});
|
|
6907
6907
|
|
|
6908
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportStl", "click", function(e) { let ic = me.icn3d;
|
|
6908
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportStl", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6909
6909
|
thisClass.setLogCmd("export stl file", false);
|
|
6910
6910
|
//ic.threeDPrintCls.hideStabilizer();
|
|
6911
6911
|
ic.export3DCls.exportStlFile('');
|
|
6912
6912
|
});
|
|
6913
6913
|
|
|
6914
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportVrml", "click", function(e) { let ic = me.icn3d;
|
|
6914
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportVrml", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6915
6915
|
thisClass.setLogCmd("export vrml file", false);
|
|
6916
6916
|
//ic.threeDPrintCls.hideStabilizer();
|
|
6917
6917
|
ic.export3DCls.exportVrmlFile('');
|
|
6918
6918
|
});
|
|
6919
6919
|
|
|
6920
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportStlStab", "click", function(e) { let ic = me.icn3d;
|
|
6920
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportStlStab", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6921
6921
|
thisClass.setLogCmd("export stl stabilizer file", false);
|
|
6922
6922
|
//ic.bRender = false;
|
|
6923
6923
|
ic.threeDPrintCls.hideStabilizer();
|
|
@@ -6926,7 +6926,7 @@ class ClickMenu {
|
|
|
6926
6926
|
ic.export3DCls.exportStlFile('_stab');
|
|
6927
6927
|
});
|
|
6928
6928
|
|
|
6929
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportVrmlStab", "click", function(e) { let ic = me.icn3d;
|
|
6929
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportVrmlStab", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6930
6930
|
thisClass.setLogCmd("export vrml stabilizer file", false);
|
|
6931
6931
|
//ic.bRender = false;
|
|
6932
6932
|
ic.threeDPrintCls.hideStabilizer();
|
|
@@ -6935,13 +6935,13 @@ class ClickMenu {
|
|
|
6935
6935
|
ic.export3DCls.exportVrmlFile('_stab');
|
|
6936
6936
|
});
|
|
6937
6937
|
|
|
6938
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_exportInteraction", "click", async function(e) { let ic = me.icn3d;
|
|
6938
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_exportInteraction", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6939
6939
|
thisClass.setLogCmd("export interactions", false);
|
|
6940
6940
|
if(me.cfg.mmdbid !== undefined) await ic.viewInterPairsCls.retrieveInteractionData();
|
|
6941
6941
|
ic.viewInterPairsCls.exportInteractions();
|
|
6942
6942
|
});
|
|
6943
6943
|
|
|
6944
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_exportCanvas", "#" + me.pre + "saveimage"], "click", async function(e) { let ic = me.icn3d;
|
|
6944
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_exportCanvas", "#" + me.pre + "saveimage"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6945
6945
|
// do not record the export command
|
|
6946
6946
|
//thisClass.setLogCmd("export canvas", true);
|
|
6947
6947
|
thisClass.setLogCmd("export canvas", false);
|
|
@@ -6950,28 +6950,28 @@ class ClickMenu {
|
|
|
6950
6950
|
let bPngHtml = true;
|
|
6951
6951
|
await ic.shareLinkCls.shareLink(bPngHtml);
|
|
6952
6952
|
});
|
|
6953
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas1", "click", async function(e) { let ic = me.icn3d;
|
|
6953
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas1", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6954
6954
|
thisClass.setLogCmd("export canvas 1", true);
|
|
6955
6955
|
ic.scaleFactor = 1;
|
|
6956
6956
|
await ic.shareLinkCls.shareLink(true, true);
|
|
6957
6957
|
});
|
|
6958
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas2", "click", async function(e) { let ic = me.icn3d;
|
|
6958
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas2", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6959
6959
|
thisClass.setLogCmd("export canvas 2", true);
|
|
6960
6960
|
ic.scaleFactor = 2;
|
|
6961
6961
|
await ic.shareLinkCls.shareLink(true, true);
|
|
6962
6962
|
});
|
|
6963
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas4", "click", async function(e) { let ic = me.icn3d;
|
|
6963
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas4", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6964
6964
|
thisClass.setLogCmd("export canvas 4", true);
|
|
6965
6965
|
ic.scaleFactor = 4;
|
|
6966
6966
|
await ic.shareLinkCls.shareLink(true, true);
|
|
6967
6967
|
});
|
|
6968
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas8", "click", async function(e) { let ic = me.icn3d;
|
|
6968
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas8", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6969
6969
|
thisClass.setLogCmd("export canvas 8", true);
|
|
6970
6970
|
ic.scaleFactor = 8;
|
|
6971
6971
|
await ic.shareLinkCls.shareLink(true, true);
|
|
6972
6972
|
});
|
|
6973
6973
|
|
|
6974
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCounts", "click", function(e) { let ic = me.icn3d;
|
|
6974
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCounts", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
6975
6975
|
thisClass.setLogCmd("export counts", false);
|
|
6976
6976
|
let text = '<html><body><div style="text-align:center"><br><b>Total Count for atoms with coordinates</b>:<br/><table align=center border=1 cellpadding=10 cellspacing=0><tr><th>Structure Count</th><th>Chain Count</th><th>Residue Count</th><th>Atom Count</th></tr>';
|
|
6977
6977
|
text += '<tr><td>' + Object.keys(ic.structures).length + '</td><td>' + Object.keys(ic.chains).length + '</td><td>' + Object.keys(ic.residues).length + '</td><td>' + Object.keys(ic.atoms).length + '</td></tr>';
|
|
@@ -6998,7 +6998,7 @@ class ClickMenu {
|
|
|
6998
6998
|
ic.saveFileCls.saveFile(file_pref + '_counts.html', 'html', text);
|
|
6999
6999
|
});
|
|
7000
7000
|
|
|
7001
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportSelections", "click", function(e) { let ic = me.icn3d;
|
|
7001
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportSelections", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7002
7002
|
thisClass.setLogCmd("export all selections", false);
|
|
7003
7003
|
|
|
7004
7004
|
thisClass.SetChainsAdvancedMenu();
|
|
@@ -7008,7 +7008,7 @@ class ClickMenu {
|
|
|
7008
7008
|
ic.saveFileCls.saveFile(file_pref + '_selections.txt', 'text', [text]);
|
|
7009
7009
|
});
|
|
7010
7010
|
|
|
7011
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportSelDetails", "click", function(e) { let ic = me.icn3d;
|
|
7011
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportSelDetails", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7012
7012
|
thisClass.setLogCmd("export all selections with details", false);
|
|
7013
7013
|
|
|
7014
7014
|
thisClass.SetChainsAdvancedMenu();
|
|
@@ -7019,32 +7019,32 @@ class ClickMenu {
|
|
|
7019
7019
|
ic.saveFileCls.saveFile(file_pref + '_sel_details.txt', 'text', [text]);
|
|
7020
7020
|
});
|
|
7021
7021
|
|
|
7022
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_sharelink", "#" + me.pre + "tool_sharelink"], "click", async function(e) { let ic = me.icn3d;
|
|
7022
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_sharelink", "#" + me.pre + "tool_sharelink"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7023
7023
|
await ic.shareLinkCls.shareLink();
|
|
7024
7024
|
});
|
|
7025
7025
|
|
|
7026
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_replayon", "click", async function(e) { let ic = me.icn3d;
|
|
7026
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_replayon", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7027
7027
|
await ic.resizeCanvasCls.replayon();
|
|
7028
7028
|
thisClass.setLogCmd("replay on", true);
|
|
7029
7029
|
});
|
|
7030
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_replayoff", "click", async function(e) { let ic = me.icn3d;
|
|
7030
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_replayoff", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7031
7031
|
await ic.resizeCanvasCls.replayoff();
|
|
7032
7032
|
thisClass.setLogCmd("replay off", true);
|
|
7033
7033
|
});
|
|
7034
7034
|
|
|
7035
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_menuall", "click", function(e) { me.icn3d;
|
|
7035
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_menuall", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7036
7036
|
me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.allMenus);
|
|
7037
7037
|
|
|
7038
7038
|
thisClass.applyShownMenus();
|
|
7039
7039
|
});
|
|
7040
7040
|
|
|
7041
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_menusimple", "click", function(e) { me.icn3d;
|
|
7041
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_menusimple", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7042
7042
|
me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.simpleMenus);
|
|
7043
7043
|
|
|
7044
7044
|
thisClass.applyShownMenus();
|
|
7045
7045
|
});
|
|
7046
7046
|
|
|
7047
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_menupref", "click", function(e) { me.icn3d;
|
|
7047
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_menupref", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7048
7048
|
me.htmlCls.dialogCls.openDlg('dl_menupref', 'Select Menus');
|
|
7049
7049
|
|
|
7050
7050
|
thisClass.getHiddenMenusFromCache();
|
|
@@ -7052,7 +7052,7 @@ class ClickMenu {
|
|
|
7052
7052
|
thisClass.displayShownMenus();
|
|
7053
7053
|
});
|
|
7054
7054
|
|
|
7055
|
-
me.myEventCls.onIds(["#" + me.pre + "apply_menupref", "#" + me.pre + "apply_menupref2"], "click", function(e) { me.icn3d;
|
|
7055
|
+
me.myEventCls.onIds(["#" + me.pre + "apply_menupref", "#" + me.pre + "apply_menupref2"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
7056
7056
|
var checkboxes = document.querySelectorAll('form[name="' + me.pre + 'selmenu"] input:checked');
|
|
7057
7057
|
me.htmlCls.shownMenus = {};
|
|
7058
7058
|
for (var checkbox of checkboxes) {
|
|
@@ -7062,21 +7062,21 @@ class ClickMenu {
|
|
|
7062
7062
|
thisClass.applyShownMenus();
|
|
7063
7063
|
});
|
|
7064
7064
|
|
|
7065
|
-
me.myEventCls.onIds(["#" + me.pre + "reset_menupref", "#" + me.pre + "reset_menupref2"], "click", function(e) { me.icn3d;
|
|
7065
|
+
me.myEventCls.onIds(["#" + me.pre + "reset_menupref", "#" + me.pre + "reset_menupref2"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
7066
7066
|
me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.simpleMenus);
|
|
7067
7067
|
|
|
7068
7068
|
thisClass.applyShownMenus();
|
|
7069
7069
|
thisClass.displayShownMenus();
|
|
7070
7070
|
});
|
|
7071
7071
|
|
|
7072
|
-
me.myEventCls.onIds(["#" + me.pre + "reset_menupref_all", "#" + me.pre + "reset_menupref_all2"], "click", function(e) { me.icn3d;
|
|
7072
|
+
me.myEventCls.onIds(["#" + me.pre + "reset_menupref_all", "#" + me.pre + "reset_menupref_all2"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
7073
7073
|
me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.allMenus);
|
|
7074
7074
|
|
|
7075
7075
|
thisClass.applyShownMenus();
|
|
7076
7076
|
thisClass.displayShownMenus();
|
|
7077
7077
|
});
|
|
7078
7078
|
|
|
7079
|
-
me.myEventCls.onIds(["#" + me.pre + "savepref", "#" + me.pre + "savepref2"], "click", function(e) { let ic = me.icn3d;
|
|
7079
|
+
me.myEventCls.onIds(["#" + me.pre + "savepref", "#" + me.pre + "savepref2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7080
7080
|
let menuStr = '[';
|
|
7081
7081
|
|
|
7082
7082
|
//var checkboxes = document.querySelectorAll('form[name="' + me.pre + 'selmenu"] input:checked');
|
|
@@ -7093,7 +7093,7 @@ class ClickMenu {
|
|
|
7093
7093
|
ic.saveFileCls.saveFile('icn3d_menus_pref.txt', 'text', [menuStr]);
|
|
7094
7094
|
});
|
|
7095
7095
|
|
|
7096
|
-
me.myEventCls.onIds("#" + me.pre + "reload_menupreffile", "click", function(e) { me.icn3d;
|
|
7096
|
+
me.myEventCls.onIds("#" + me.pre + "reload_menupreffile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7097
7097
|
|
|
7098
7098
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
7099
7099
|
let file = $("#" + me.pre + "menupreffile")[0].files[0];
|
|
@@ -7124,25 +7124,25 @@ class ClickMenu {
|
|
|
7124
7124
|
}
|
|
7125
7125
|
});
|
|
7126
7126
|
|
|
7127
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_menuloadpref", "click", function(e) { me.icn3d;
|
|
7127
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_menuloadpref", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7128
7128
|
me.htmlCls.dialogCls.openDlg('dl_menuloadpref', 'Please input the menu preference file');
|
|
7129
7129
|
});
|
|
7130
7130
|
|
|
7131
7131
|
|
|
7132
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_structure", "click", function(e) { let ic = me.icn3d;
|
|
7132
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_structure", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7133
7133
|
let url = ic.saveFileCls.getLinkToStructureSummary(true);
|
|
7134
7134
|
let urlTarget = (ic.structures && Object.keys(ic.structures).length > 0) ? '_blank' : '_self';
|
|
7135
7135
|
window.open(url, urlTarget);
|
|
7136
7136
|
});
|
|
7137
7137
|
|
|
7138
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_bind", "click", function(e) { let ic = me.icn3d;
|
|
7138
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_bind", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7139
7139
|
url = "https://www.ncbi.nlm.nih.gov/pccompound?LinkName=pccompound_structure&from_uid=" + ic.inputid;
|
|
7140
7140
|
thisClass.setLogCmd("link to 3D protein structures bound to CID " + ic.inputid + ": " + url, false);
|
|
7141
7141
|
let urlTarget = (ic.structures && Object.keys(ic.structures).length > 0) ? '_blank' : '_self';
|
|
7142
7142
|
window.open(url, urlTarget);
|
|
7143
7143
|
});
|
|
7144
7144
|
|
|
7145
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_vast", "click", function(e) { let ic = me.icn3d;
|
|
7145
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_vast", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7146
7146
|
if(ic.inputid === undefined) {
|
|
7147
7147
|
url = "https://www.ncbi.nlm.nih.gov/pccompound?term=" + ic.molTitle;
|
|
7148
7148
|
thisClass.setLogCmd("link to compounds " + ic.molTitle + ": " + url, false);
|
|
@@ -7171,7 +7171,7 @@ class ClickMenu {
|
|
|
7171
7171
|
window.open(url, urlTarget);
|
|
7172
7172
|
});
|
|
7173
7173
|
|
|
7174
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_pubmed", "click", function(e) { let ic = me.icn3d;
|
|
7174
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_pubmed", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7175
7175
|
if(ic.inputid === undefined) {
|
|
7176
7176
|
let url;
|
|
7177
7177
|
url = "https://www.ncbi.nlm.nih.gov/pubmed/?term=" + ic.molTitle;
|
|
@@ -7217,7 +7217,7 @@ class ClickMenu {
|
|
|
7217
7217
|
}
|
|
7218
7218
|
});
|
|
7219
7219
|
|
|
7220
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_protein", "click", function(e) { let ic = me.icn3d;
|
|
7220
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_protein", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7221
7221
|
//ic.saveFileCls.setEntrezLinks('protein');
|
|
7222
7222
|
let structArray = Object.keys(ic.structures);
|
|
7223
7223
|
let chainArray = Object.keys(ic.chains);
|
|
@@ -7242,19 +7242,19 @@ class ClickMenu {
|
|
|
7242
7242
|
|
|
7243
7243
|
let thisClass = this;
|
|
7244
7244
|
|
|
7245
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_selectannotations", "#" + me.pre + "tool_selectannotations"], "click", async function(e) { let ic = me.icn3d;
|
|
7245
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_selectannotations", "#" + me.pre + "tool_selectannotations"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7246
7246
|
await ic.showAnnoCls.showAnnotations();
|
|
7247
7247
|
thisClass.setLogCmd("view annotations", true);
|
|
7248
7248
|
//thisClass.setLogCmd("window annotations", true);
|
|
7249
7249
|
});
|
|
7250
7250
|
|
|
7251
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectall", "click", function(e) { let ic = me.icn3d;
|
|
7251
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectall", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7252
7252
|
thisClass.setLogCmd("select all", true);
|
|
7253
7253
|
ic.selectionCls.selectAll();
|
|
7254
7254
|
ic.hlUpdateCls.removeHlAll();
|
|
7255
7255
|
ic.drawCls.draw();
|
|
7256
7256
|
});
|
|
7257
|
-
me.myEventCls.onIds("#" + me.pre + "clearall", "click", function(e) { let ic = me.icn3d;
|
|
7257
|
+
me.myEventCls.onIds("#" + me.pre + "clearall", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7258
7258
|
thisClass.setLogCmd("clear all", true);
|
|
7259
7259
|
ic.bSelectResidue = false;
|
|
7260
7260
|
ic.selectionCls.selectAll();
|
|
@@ -7262,7 +7262,7 @@ class ClickMenu {
|
|
|
7262
7262
|
ic.drawCls.draw();
|
|
7263
7263
|
});
|
|
7264
7264
|
|
|
7265
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectdisplayed", "click", function(e) { let ic = me.icn3d;
|
|
7265
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectdisplayed", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7266
7266
|
thisClass.setLogCmd("select displayed set", true);
|
|
7267
7267
|
//ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
|
|
7268
7268
|
ic.hAtoms = me.hashUtilsCls.cloneHash(ic.viewSelectionAtoms);
|
|
@@ -7270,106 +7270,106 @@ class ClickMenu {
|
|
|
7270
7270
|
//ic.drawCls.draw();
|
|
7271
7271
|
});
|
|
7272
7272
|
|
|
7273
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_fullstru", "click", function(e) { let ic = me.icn3d;
|
|
7273
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_fullstru", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7274
7274
|
thisClass.setLogCmd("show all", true);
|
|
7275
7275
|
ic.selectionCls.showAll();
|
|
7276
7276
|
});
|
|
7277
7277
|
|
|
7278
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectcomplement", "click", function(e) { let ic = me.icn3d;
|
|
7278
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectcomplement", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7279
7279
|
if(Object.keys(ic.hAtoms).length < Object.keys(ic.atoms).length) {
|
|
7280
7280
|
thisClass.setLogCmd("select complement", true);
|
|
7281
7281
|
ic.resid2specCls.selectComplement();
|
|
7282
7282
|
}
|
|
7283
7283
|
});
|
|
7284
7284
|
|
|
7285
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectmainchains", "click", function(e) { let ic = me.icn3d;
|
|
7285
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectmainchains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7286
7286
|
thisClass.setLogCmd("select main chains", true);
|
|
7287
7287
|
ic.selectionCls.selectMainChains();
|
|
7288
7288
|
});
|
|
7289
7289
|
|
|
7290
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectsidechains", "click", function(e) { let ic = me.icn3d;
|
|
7290
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectsidechains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7291
7291
|
thisClass.setLogCmd("select side chains", true);
|
|
7292
7292
|
ic.selectionCls.selectSideChains();
|
|
7293
7293
|
});
|
|
7294
7294
|
|
|
7295
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectmainsidechains", "click", function(e) { let ic = me.icn3d;
|
|
7295
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectmainsidechains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7296
7296
|
thisClass.setLogCmd("select main side chains", true);
|
|
7297
7297
|
ic.selectionCls.selectMainSideChains();
|
|
7298
7298
|
});
|
|
7299
7299
|
|
|
7300
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propPos", "click", function(e) { let ic = me.icn3d;
|
|
7300
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propPos", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7301
7301
|
thisClass.setLogCmd("select prop positive", true);
|
|
7302
7302
|
ic.resid2specCls.selectProperty('positive');
|
|
7303
7303
|
});
|
|
7304
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propNeg", "click", function(e) { let ic = me.icn3d;
|
|
7304
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propNeg", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7305
7305
|
thisClass.setLogCmd("select prop negative", true);
|
|
7306
7306
|
ic.resid2specCls.selectProperty('negative');
|
|
7307
7307
|
});
|
|
7308
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propHydro", "click", function(e) { let ic = me.icn3d;
|
|
7308
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propHydro", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7309
7309
|
thisClass.setLogCmd("select prop hydrophobic", true);
|
|
7310
7310
|
ic.resid2specCls.selectProperty('hydrophobic');
|
|
7311
7311
|
});
|
|
7312
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propPolar", "click", function(e) { let ic = me.icn3d;
|
|
7312
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propPolar", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7313
7313
|
thisClass.setLogCmd("select prop polar", true);
|
|
7314
7314
|
ic.resid2specCls.selectProperty('polar');
|
|
7315
7315
|
});
|
|
7316
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propBfactor", "click", function(e) { me.icn3d;
|
|
7316
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propBfactor", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7317
7317
|
me.htmlCls.dialogCls.openDlg('dl_propbybfactor', 'Select residue based on B-factor');
|
|
7318
7318
|
});
|
|
7319
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propSolAcc", "click", function(e) { me.icn3d;
|
|
7319
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propSolAcc", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7320
7320
|
me.htmlCls.dialogCls.openDlg('dl_propbypercentout', 'Select residue based on the percentage of solvent accessilbe surface area');
|
|
7321
7321
|
});
|
|
7322
|
-
me.myEventCls.onIds("#" + me.pre + "applypropbybfactor", "click", function(e) { let ic = me.icn3d;
|
|
7322
|
+
me.myEventCls.onIds("#" + me.pre + "applypropbybfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7323
7323
|
let from = $("#" + me.pre + "minbfactor").val();
|
|
7324
7324
|
let to = $("#" + me.pre + "maxbfactor").val();
|
|
7325
7325
|
thisClass.setLogCmd("select prop b factor | " + from + '_' + to, true);
|
|
7326
7326
|
ic.resid2specCls.selectProperty('b factor', from, to);
|
|
7327
7327
|
});
|
|
7328
|
-
me.myEventCls.onIds("#" + me.pre + "applypropbypercentout", "click", function(e) { let ic = me.icn3d;
|
|
7328
|
+
me.myEventCls.onIds("#" + me.pre + "applypropbypercentout", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7329
7329
|
let from = $("#" + me.pre + "minpercentout").val();
|
|
7330
7330
|
let to = $("#" + me.pre + "maxpercentout").val();
|
|
7331
7331
|
thisClass.setLogCmd("select prop percent out | " + from + '_' + to, true);
|
|
7332
7332
|
ic.resid2specCls.selectProperty('percent out', from, to);
|
|
7333
7333
|
});
|
|
7334
7334
|
|
|
7335
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_alignment", "click", function(e) { me.icn3d;
|
|
7335
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_alignment", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7336
7336
|
me.htmlCls.dialogCls.openDlg('dl_alignment', 'Select residues in aligned sequences');
|
|
7337
7337
|
thisClass.setLogCmd("window aligned sequences", true);
|
|
7338
7338
|
});
|
|
7339
7339
|
|
|
7340
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_window_table", "click", function(e) { me.icn3d;
|
|
7340
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_window_table", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7341
7341
|
me.htmlCls.dialogCls.openDlg('dl_allinteraction', 'Show interactions');
|
|
7342
7342
|
thisClass.setLogCmd("window interaction table", true);
|
|
7343
7343
|
});
|
|
7344
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_window_linegraph", "click", function(e) { me.icn3d;
|
|
7344
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_window_linegraph", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7345
7345
|
me.htmlCls.dialogCls.openDlg('dl_linegraph', 'Show interactions between two lines of residue nodes');
|
|
7346
7346
|
thisClass.setLogCmd("window interaction graph", true);
|
|
7347
7347
|
});
|
|
7348
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_window_scatterplot", "click", function(e) { me.icn3d;
|
|
7348
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_window_scatterplot", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7349
7349
|
me.htmlCls.dialogCls.openDlg('dl_scatterplot', 'Show interactions as map');
|
|
7350
7350
|
thisClass.setLogCmd("window interaction scatterplot", true);
|
|
7351
7351
|
});
|
|
7352
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_window_graph", "click", function(e) { me.icn3d;
|
|
7352
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_window_graph", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7353
7353
|
me.htmlCls.dialogCls.openDlg('dl_graph', 'Force-directed graph');
|
|
7354
7354
|
thisClass.setLogCmd("window force-directed graph", true);
|
|
7355
7355
|
});
|
|
7356
7356
|
|
|
7357
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_yournote", "click", function(e) { me.icn3d;
|
|
7357
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_yournote", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7358
7358
|
me.htmlCls.dialogCls.openDlg('dl_yournote', 'Your note about the current display');
|
|
7359
7359
|
});
|
|
7360
7360
|
|
|
7361
|
-
me.myEventCls.onIds("#" + me.pre + "applyyournote", "click", function(e) { let ic = me.icn3d;
|
|
7361
|
+
me.myEventCls.onIds("#" + me.pre + "applyyournote", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7362
7362
|
ic.yournote = $("#" + me.pre + "yournote").val();
|
|
7363
7363
|
if(me.cfg.shownote) document.title = ic.yournote;
|
|
7364
7364
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
7365
7365
|
thisClass.setLogCmd('your note | ' + ic.yournote, true);
|
|
7366
7366
|
});
|
|
7367
7367
|
|
|
7368
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_command", "click", function(e) { me.icn3d;
|
|
7368
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_command", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7369
7369
|
me.htmlCls.dialogCls.openDlg('dl_advanced2', 'Select by specification');
|
|
7370
7370
|
});
|
|
7371
7371
|
|
|
7372
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_definedsets", "#" + me.pre + "definedsets", "#" + me.pre + "definedsets2", "#" + me.pre + "tool_definedsets"], "click", function(e) { let ic = me.icn3d;
|
|
7372
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_definedsets", "#" + me.pre + "definedsets", "#" + me.pre + "definedsets2", "#" + me.pre + "tool_definedsets"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7373
7373
|
ic.definedSetsCls.showSets();
|
|
7374
7374
|
thisClass.setLogCmd('defined sets', true);
|
|
7375
7375
|
//thisClass.setLogCmd('window defined sets', true);
|
|
@@ -7388,7 +7388,7 @@ class ClickMenu {
|
|
|
7388
7388
|
});
|
|
7389
7389
|
|
|
7390
7390
|
|
|
7391
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkNo", "click", function(e) { let ic = me.icn3d;
|
|
7391
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7392
7392
|
ic.pk = 0;
|
|
7393
7393
|
ic.opts['pk'] = 'no';
|
|
7394
7394
|
thisClass.setLogCmd('set pk off', true);
|
|
@@ -7396,50 +7396,50 @@ class ClickMenu {
|
|
|
7396
7396
|
ic.hlObjectsCls.removeHlObjects();
|
|
7397
7397
|
});
|
|
7398
7398
|
|
|
7399
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkYes", "click", function(e) { let ic = me.icn3d;
|
|
7399
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7400
7400
|
ic.pk = 1;
|
|
7401
7401
|
ic.opts['pk'] = 'atom';
|
|
7402
7402
|
thisClass.setLogCmd('set pk atom', true);
|
|
7403
7403
|
});
|
|
7404
7404
|
|
|
7405
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkResidue", "click", function(e) { let ic = me.icn3d;
|
|
7405
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkResidue", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7406
7406
|
ic.pk = 2;
|
|
7407
7407
|
ic.opts['pk'] = 'residue';
|
|
7408
7408
|
thisClass.setLogCmd('set pk residue', true);
|
|
7409
7409
|
});
|
|
7410
7410
|
|
|
7411
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkStrand", "click", function(e) { let ic = me.icn3d;
|
|
7411
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkStrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7412
7412
|
ic.pk = 3;
|
|
7413
7413
|
ic.opts['pk'] = 'strand';
|
|
7414
7414
|
thisClass.setLogCmd('set pk strand', true);
|
|
7415
7415
|
});
|
|
7416
7416
|
|
|
7417
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkDomain", "click", function(e) { let ic = me.icn3d;
|
|
7417
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkDomain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7418
7418
|
ic.pk = 4;
|
|
7419
7419
|
ic.opts['pk'] = 'domain';
|
|
7420
7420
|
thisClass.setLogCmd('set pk domain', true);
|
|
7421
7421
|
});
|
|
7422
7422
|
|
|
7423
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkChain", "click", function(e) { let ic = me.icn3d;
|
|
7423
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkChain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7424
7424
|
ic.pk = 5;
|
|
7425
7425
|
ic.opts['pk'] = 'chain';
|
|
7426
7426
|
thisClass.setLogCmd('set pk chain', true);
|
|
7427
7427
|
});
|
|
7428
7428
|
|
|
7429
|
-
me.myEventCls.onIds("#" + me.pre + "adjustmem", "click", function(e) { me.icn3d;
|
|
7429
|
+
me.myEventCls.onIds("#" + me.pre + "adjustmem", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7430
7430
|
me.htmlCls.dialogCls.openDlg('dl_adjustmem', 'Adjust the Z-axis positions of the membrane');
|
|
7431
7431
|
});
|
|
7432
7432
|
|
|
7433
|
-
me.myEventCls.onIds("#" + me.pre + "togglemem", "click", function(e) { let ic = me.icn3d;
|
|
7433
|
+
me.myEventCls.onIds("#" + me.pre + "togglemem", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7434
7434
|
ic.selectionCls.toggleMembrane();
|
|
7435
7435
|
thisClass.setLogCmd('toggle membrane', true);
|
|
7436
7436
|
});
|
|
7437
7437
|
|
|
7438
|
-
me.myEventCls.onIds("#" + me.pre + "selectplane", "click", function(e) { me.icn3d;
|
|
7438
|
+
me.myEventCls.onIds("#" + me.pre + "selectplane", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7439
7439
|
me.htmlCls.dialogCls.openDlg('dl_selectplane', 'Select a region between two planes');
|
|
7440
7440
|
});
|
|
7441
7441
|
|
|
7442
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_aroundsphere", "#" + me.pre + "tool_aroundsphere"], "click", function(e) { let ic = me.icn3d;
|
|
7442
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_aroundsphere", "#" + me.pre + "tool_aroundsphere"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7443
7443
|
thisClass.SetChainsAdvancedMenu();
|
|
7444
7444
|
|
|
7445
7445
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
@@ -7456,7 +7456,7 @@ class ClickMenu {
|
|
|
7456
7456
|
$("#" + me.pre + "atomsCustomSphere2").resizable();
|
|
7457
7457
|
});
|
|
7458
7458
|
|
|
7459
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_select_chain", "#" + me.pre + "definedSets"], "click", function(e) { me.icn3d;
|
|
7459
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_select_chain", "#" + me.pre + "definedSets"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
7460
7460
|
me.htmlCls.dialogCls.openDlg('dl_select_chain', 'Select Structure/Chain/Custom Selection');
|
|
7461
7461
|
});
|
|
7462
7462
|
|
|
@@ -7467,242 +7467,242 @@ class ClickMenu {
|
|
|
7467
7467
|
|
|
7468
7468
|
let thisClass = this;
|
|
7469
7469
|
// mn 3
|
|
7470
|
-
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsRibbon","#" + me.pre + "tool_proteinsRibbon"], "click", function(e) { let ic = me.icn3d;
|
|
7470
|
+
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsRibbon","#" + me.pre + "tool_proteinsRibbon"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7471
7471
|
ic.setOptionCls.setStyle('proteins', 'ribbon');
|
|
7472
7472
|
thisClass.setLogCmd('style proteins ribbon', true);
|
|
7473
7473
|
});
|
|
7474
7474
|
|
|
7475
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStrand", "click", function(e) { let ic = me.icn3d;
|
|
7475
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7476
7476
|
ic.setOptionCls.setStyle('proteins', 'strand');
|
|
7477
7477
|
thisClass.setLogCmd('style proteins strand', true);
|
|
7478
7478
|
});
|
|
7479
7479
|
|
|
7480
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCylinder", "click", function(e) { let ic = me.icn3d;
|
|
7480
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCylinder", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7481
7481
|
ic.setOptionCls.setStyle('proteins', 'cylinder and plate');
|
|
7482
7482
|
thisClass.setLogCmd('style proteins cylinder and plate', true);
|
|
7483
7483
|
});
|
|
7484
7484
|
|
|
7485
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsSchematic", "click", function(e) { let ic = me.icn3d;
|
|
7485
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7486
7486
|
ic.setOptionCls.setStyle('proteins', 'schematic');
|
|
7487
7487
|
thisClass.setLogCmd('style proteins schematic', true);
|
|
7488
7488
|
});
|
|
7489
7489
|
|
|
7490
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCalpha", "click", function(e) { let ic = me.icn3d;
|
|
7490
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCalpha", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7491
7491
|
ic.setOptionCls.setStyle('proteins', 'c alpha trace');
|
|
7492
7492
|
thisClass.setLogCmd('style proteins c alpha trace', true);
|
|
7493
7493
|
});
|
|
7494
7494
|
|
|
7495
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBackbone", "click", function(e) { let ic = me.icn3d;
|
|
7495
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBackbone", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7496
7496
|
ic.setOptionCls.setStyle('proteins', 'backbone');
|
|
7497
7497
|
thisClass.setLogCmd('style proteins backbone', true);
|
|
7498
7498
|
});
|
|
7499
7499
|
|
|
7500
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBfactor", "click", function(e) { let ic = me.icn3d;
|
|
7500
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7501
7501
|
ic.setOptionCls.setStyle('proteins', 'b factor tube');
|
|
7502
7502
|
thisClass.setLogCmd('style proteins b factor tube', true);
|
|
7503
7503
|
});
|
|
7504
7504
|
|
|
7505
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsLines", "click", function(e) { let ic = me.icn3d;
|
|
7505
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7506
7506
|
ic.setOptionCls.setStyle('proteins', 'lines');
|
|
7507
7507
|
thisClass.setLogCmd('style proteins lines', true);
|
|
7508
7508
|
});
|
|
7509
7509
|
|
|
7510
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStick", "click", function(e) { let ic = me.icn3d;
|
|
7510
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7511
7511
|
ic.setOptionCls.setStyle('proteins', 'stick');
|
|
7512
7512
|
thisClass.setLogCmd('style proteins stick', true);
|
|
7513
7513
|
});
|
|
7514
7514
|
|
|
7515
|
-
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsBallstick", "#" + me.pre + "tool_proteinsBallstick"], "click", function(e) { let ic = me.icn3d;
|
|
7515
|
+
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsBallstick", "#" + me.pre + "tool_proteinsBallstick"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7516
7516
|
ic.setOptionCls.setStyle('proteins', 'ball and stick');
|
|
7517
7517
|
thisClass.setLogCmd('style proteins ball and stick', true);
|
|
7518
7518
|
});
|
|
7519
7519
|
|
|
7520
|
-
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsSphere", "#" + me.pre + "tool_proteinsSphere"], "click", function(e) { let ic = me.icn3d;
|
|
7520
|
+
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsSphere", "#" + me.pre + "tool_proteinsSphere"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7521
7521
|
ic.setOptionCls.setStyle('proteins', 'sphere');
|
|
7522
7522
|
thisClass.setLogCmd('style proteins sphere', true);
|
|
7523
7523
|
});
|
|
7524
7524
|
|
|
7525
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsNo", "click", function(e) { let ic = me.icn3d;
|
|
7525
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7526
7526
|
ic.setOptionCls.setStyle('proteins', 'nothing');
|
|
7527
7527
|
thisClass.setLogCmd('style proteins nothing', true);
|
|
7528
7528
|
});
|
|
7529
7529
|
|
|
7530
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecLines", "click", function(e) { let ic = me.icn3d;
|
|
7530
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7531
7531
|
ic.setOptionCls.setStyle('sidec', 'lines2');
|
|
7532
7532
|
thisClass.setLogCmd('style sidec lines2', true);
|
|
7533
7533
|
});
|
|
7534
7534
|
|
|
7535
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecStick", "click", function(e) { let ic = me.icn3d;
|
|
7535
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7536
7536
|
ic.setOptionCls.setStyle('sidec', 'stick2');
|
|
7537
7537
|
thisClass.setLogCmd('style sidec stick2', true);
|
|
7538
7538
|
});
|
|
7539
7539
|
|
|
7540
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecBallstick", "click", function(e) { let ic = me.icn3d;
|
|
7540
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7541
7541
|
ic.setOptionCls.setStyle('sidec', 'ball and stick2');
|
|
7542
7542
|
thisClass.setLogCmd('style sidec ball and stick2', true);
|
|
7543
7543
|
});
|
|
7544
7544
|
|
|
7545
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecSphere", "click", function(e) { let ic = me.icn3d;
|
|
7545
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7546
7546
|
ic.setOptionCls.setStyle('sidec', 'sphere2');
|
|
7547
7547
|
thisClass.setLogCmd('style sidec sphere2', true);
|
|
7548
7548
|
});
|
|
7549
7549
|
|
|
7550
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecNo", "click", function(e) { let ic = me.icn3d;
|
|
7550
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7551
7551
|
ic.setOptionCls.setStyle('sidec', 'nothing');
|
|
7552
7552
|
thisClass.setLogCmd('style sidec nothing', true);
|
|
7553
7553
|
});
|
|
7554
7554
|
|
|
7555
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseLines", "click", function(e) { let ic = me.icn3d;
|
|
7555
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7556
7556
|
ic.setOptionCls.setStyle('ntbase', 'lines2');
|
|
7557
7557
|
thisClass.setLogCmd('style ntbase lines2', true);
|
|
7558
7558
|
});
|
|
7559
7559
|
|
|
7560
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseStick", "click", function(e) { let ic = me.icn3d;
|
|
7560
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7561
7561
|
ic.setOptionCls.setStyle('ntbase', 'stick2');
|
|
7562
7562
|
thisClass.setLogCmd('style ntbase stick2', true);
|
|
7563
7563
|
});
|
|
7564
7564
|
|
|
7565
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseBallstick", "click", function(e) { let ic = me.icn3d;
|
|
7565
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7566
7566
|
ic.setOptionCls.setStyle('ntbase', 'ball and stick2');
|
|
7567
7567
|
thisClass.setLogCmd('style ntbase ball and stick2', true);
|
|
7568
7568
|
});
|
|
7569
7569
|
|
|
7570
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseSphere", "click", function(e) { let ic = me.icn3d;
|
|
7570
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7571
7571
|
ic.setOptionCls.setStyle('ntbase', 'sphere2');
|
|
7572
7572
|
thisClass.setLogCmd('style ntbase sphere2', true);
|
|
7573
7573
|
});
|
|
7574
7574
|
|
|
7575
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseNo", "click", function(e) { let ic = me.icn3d;
|
|
7575
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7576
7576
|
ic.setOptionCls.setStyle('ntbase', 'nothing');
|
|
7577
7577
|
thisClass.setLogCmd('style ntbase nothing', true);
|
|
7578
7578
|
});
|
|
7579
7579
|
|
|
7580
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclCartoon", "click", function(e) { let ic = me.icn3d;
|
|
7580
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclCartoon", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7581
7581
|
ic.setOptionCls.setStyle('nucleotides', 'nucleotide cartoon');
|
|
7582
7582
|
thisClass.setLogCmd('style nucleotides nucleotide cartoon', true);
|
|
7583
7583
|
});
|
|
7584
7584
|
|
|
7585
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclBackbone", "click", function(e) { let ic = me.icn3d;
|
|
7585
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclBackbone", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7586
7586
|
ic.setOptionCls.setStyle('nucleotides', 'backbone');
|
|
7587
7587
|
thisClass.setLogCmd('style nucleotides backbone', true);
|
|
7588
7588
|
});
|
|
7589
7589
|
|
|
7590
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclSchematic", "click", function(e) { let ic = me.icn3d;
|
|
7590
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7591
7591
|
ic.setOptionCls.setStyle('nucleotides', 'schematic');
|
|
7592
7592
|
thisClass.setLogCmd('style nucleotides schematic', true);
|
|
7593
7593
|
});
|
|
7594
7594
|
|
|
7595
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclPhos", "click", function(e) { let ic = me.icn3d;
|
|
7595
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclPhos", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7596
7596
|
ic.setOptionCls.setStyle('nucleotides', 'o3 trace');
|
|
7597
7597
|
thisClass.setLogCmd('style nucleotides o3 trace', true);
|
|
7598
7598
|
});
|
|
7599
7599
|
|
|
7600
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclLines", "click", function(e) { let ic = me.icn3d;
|
|
7600
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7601
7601
|
ic.setOptionCls.setStyle('nucleotides', 'lines');
|
|
7602
7602
|
thisClass.setLogCmd('style nucleotides lines', true);
|
|
7603
7603
|
});
|
|
7604
7604
|
|
|
7605
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclStick", "click", function(e) { let ic = me.icn3d;
|
|
7605
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7606
7606
|
ic.setOptionCls.setStyle('nucleotides', 'stick');
|
|
7607
7607
|
thisClass.setLogCmd('style nucleotides stick', true);
|
|
7608
7608
|
});
|
|
7609
7609
|
|
|
7610
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclBallstick", "click", function(e) { let ic = me.icn3d;
|
|
7610
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7611
7611
|
ic.setOptionCls.setStyle('nucleotides', 'ball and stick');
|
|
7612
7612
|
thisClass.setLogCmd('style nucleotides ball and stick', true);
|
|
7613
7613
|
});
|
|
7614
7614
|
|
|
7615
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclSphere", "click", function(e) { let ic = me.icn3d;
|
|
7615
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7616
7616
|
ic.setOptionCls.setStyle('nucleotides', 'sphere');
|
|
7617
7617
|
thisClass.setLogCmd('style nucleotides sphere', true);
|
|
7618
7618
|
});
|
|
7619
7619
|
|
|
7620
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclNo", "click", function(e) { let ic = me.icn3d;
|
|
7620
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7621
7621
|
ic.setOptionCls.setStyle('nucleotides', 'nothing');
|
|
7622
7622
|
thisClass.setLogCmd('style nucleotides nothing', true);
|
|
7623
7623
|
});
|
|
7624
7624
|
|
|
7625
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligLines", "click", function(e) { let ic = me.icn3d;
|
|
7625
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7626
7626
|
ic.setOptionCls.setStyle('chemicals', 'lines');
|
|
7627
7627
|
thisClass.setLogCmd('style chemicals lines', true);
|
|
7628
7628
|
});
|
|
7629
7629
|
|
|
7630
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligStick", "click", function(e) { let ic = me.icn3d;
|
|
7630
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7631
7631
|
ic.setOptionCls.setStyle('chemicals', 'stick');
|
|
7632
7632
|
thisClass.setLogCmd('style chemicals stick', true);
|
|
7633
7633
|
});
|
|
7634
7634
|
|
|
7635
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligBallstick", "click", function(e) { let ic = me.icn3d;
|
|
7635
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7636
7636
|
ic.setOptionCls.setStyle('chemicals', 'ball and stick');
|
|
7637
7637
|
thisClass.setLogCmd('style chemicals ball and stick', true);
|
|
7638
7638
|
});
|
|
7639
7639
|
|
|
7640
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligSchematic", "click", function(e) { let ic = me.icn3d;
|
|
7640
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7641
7641
|
ic.setOptionCls.setStyle('chemicals', 'schematic');
|
|
7642
7642
|
thisClass.setLogCmd('style chemicals schematic', true);
|
|
7643
7643
|
});
|
|
7644
7644
|
|
|
7645
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligSphere", "click", function(e) { let ic = me.icn3d;
|
|
7645
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7646
7646
|
ic.setOptionCls.setStyle('chemicals', 'sphere');
|
|
7647
7647
|
thisClass.setLogCmd('style chemicals sphere', true);
|
|
7648
7648
|
});
|
|
7649
7649
|
|
|
7650
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligNo", "click", function(e) { let ic = me.icn3d;
|
|
7650
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7651
7651
|
ic.setOptionCls.setStyle('chemicals', 'nothing');
|
|
7652
7652
|
thisClass.setLogCmd('style chemicals nothing', true);
|
|
7653
7653
|
});
|
|
7654
7654
|
|
|
7655
7655
|
|
|
7656
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartYes", "click", function(e) { let ic = me.icn3d;
|
|
7656
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7657
7657
|
ic.bGlycansCartoon = true;
|
|
7658
7658
|
ic.drawCls.draw();
|
|
7659
7659
|
thisClass.setLogCmd('glycans cartoon yes', true);
|
|
7660
7660
|
});
|
|
7661
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartNo", "click", function(e) { let ic = me.icn3d;
|
|
7661
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7662
7662
|
ic.bGlycansCartoon = false;
|
|
7663
7663
|
ic.drawCls.draw();
|
|
7664
7664
|
thisClass.setLogCmd('glycans cartoon no', true);
|
|
7665
7665
|
});
|
|
7666
7666
|
|
|
7667
7667
|
|
|
7668
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensYes", "click", function(e) { let ic = me.icn3d;
|
|
7668
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7669
7669
|
ic.showInterCls.showHydrogens();
|
|
7670
7670
|
ic.drawCls.draw();
|
|
7671
7671
|
thisClass.setLogCmd('hydrogens', true);
|
|
7672
7672
|
});
|
|
7673
7673
|
|
|
7674
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensNo", "click", function(e) { let ic = me.icn3d;
|
|
7674
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7675
7675
|
ic.showInterCls.hideHydrogens();
|
|
7676
7676
|
ic.drawCls.draw();
|
|
7677
7677
|
thisClass.setLogCmd('set hydrogens off', true);
|
|
7678
7678
|
});
|
|
7679
7679
|
|
|
7680
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ionsSphere", "click", function(e) { let ic = me.icn3d;
|
|
7680
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ionsSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7681
7681
|
ic.setOptionCls.setStyle('ions', 'sphere');
|
|
7682
7682
|
thisClass.setLogCmd('style ions sphere', true);
|
|
7683
7683
|
});
|
|
7684
7684
|
|
|
7685
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ionsDot", "click", function(e) { let ic = me.icn3d;
|
|
7685
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ionsDot", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7686
7686
|
ic.setOptionCls.setStyle('ions', 'dot');
|
|
7687
7687
|
thisClass.setLogCmd('style ions dot', true);
|
|
7688
7688
|
});
|
|
7689
7689
|
|
|
7690
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ionsNo", "click", function(e) { let ic = me.icn3d;
|
|
7690
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ionsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7691
7691
|
ic.setOptionCls.setStyle('ions', 'nothing');
|
|
7692
7692
|
thisClass.setLogCmd('style ions nothing', true);
|
|
7693
7693
|
});
|
|
7694
7694
|
|
|
7695
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_waterSphere", "click", function(e) { let ic = me.icn3d;
|
|
7695
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_waterSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7696
7696
|
ic.setOptionCls.setStyle('water', 'sphere');
|
|
7697
7697
|
thisClass.setLogCmd('style water sphere', true);
|
|
7698
7698
|
});
|
|
7699
7699
|
|
|
7700
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_waterDot", "click", function(e) { let ic = me.icn3d;
|
|
7700
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_waterDot", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7701
7701
|
ic.setOptionCls.setStyle('water', 'dot');
|
|
7702
7702
|
thisClass.setLogCmd('style water dot', true);
|
|
7703
7703
|
});
|
|
7704
7704
|
|
|
7705
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_waterNo", "click", function(e) { let ic = me.icn3d;
|
|
7705
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_waterNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7706
7706
|
ic.setOptionCls.setStyle('water', 'nothing');
|
|
7707
7707
|
thisClass.setLogCmd('style water nothing', true);
|
|
7708
7708
|
});
|
|
@@ -7714,16 +7714,16 @@ class ClickMenu {
|
|
|
7714
7714
|
|
|
7715
7715
|
let thisClass = this;
|
|
7716
7716
|
// mn 4
|
|
7717
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrum", "click", function(e) { let ic = me.icn3d;
|
|
7717
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7718
7718
|
ic.setOptionCls.setOption('color', 'spectrum');
|
|
7719
7719
|
thisClass.setLogCmd('color spectrum', true);
|
|
7720
7720
|
});
|
|
7721
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumChain", "click", function(e) { let ic = me.icn3d;
|
|
7721
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumChain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7722
7722
|
ic.setOptionCls.setOption('color', 'spectrum for chains');
|
|
7723
7723
|
thisClass.setLogCmd('color spectrum for chains', true);
|
|
7724
7724
|
});
|
|
7725
7725
|
|
|
7726
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumAcrossSets", "click", function(e) { let ic = me.icn3d;
|
|
7726
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumAcrossSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7727
7727
|
thisClass.SetChainsAdvancedMenu();
|
|
7728
7728
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
7729
7729
|
if($("#" + me.pre + "atomsCustomColorSpectrumAcross").length) {
|
|
@@ -7734,7 +7734,7 @@ class ClickMenu {
|
|
|
7734
7734
|
$("#" + me.pre + "atomsCustomColorSpectrumAcross").resizable();
|
|
7735
7735
|
});
|
|
7736
7736
|
|
|
7737
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumSets", "click", function(e) { let ic = me.icn3d;
|
|
7737
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7738
7738
|
thisClass.SetChainsAdvancedMenu();
|
|
7739
7739
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
7740
7740
|
if($("#" + me.pre + "atomsCustomColorSpectrum").length) {
|
|
@@ -7745,7 +7745,7 @@ class ClickMenu {
|
|
|
7745
7745
|
$("#" + me.pre + "atomsCustomColorSpectrum").resizable();
|
|
7746
7746
|
});
|
|
7747
7747
|
|
|
7748
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowAcrossSets", "click", function(e) { let ic = me.icn3d;
|
|
7748
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowAcrossSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7749
7749
|
thisClass.SetChainsAdvancedMenu();
|
|
7750
7750
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
7751
7751
|
if($("#" + me.pre + "atomsCustomColorRainbowAcross").length) {
|
|
@@ -7756,7 +7756,7 @@ class ClickMenu {
|
|
|
7756
7756
|
$("#" + me.pre + "atomsCustomColorRainbowAcross").resizable();
|
|
7757
7757
|
});
|
|
7758
7758
|
|
|
7759
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowSets", "click", function(e) { let ic = me.icn3d;
|
|
7759
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7760
7760
|
thisClass.SetChainsAdvancedMenu();
|
|
7761
7761
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
7762
7762
|
if($("#" + me.pre + "atomsCustomColorRainbow").length) {
|
|
@@ -7767,64 +7767,64 @@ class ClickMenu {
|
|
|
7767
7767
|
$("#" + me.pre + "atomsCustomColorRainbow").resizable();
|
|
7768
7768
|
});
|
|
7769
7769
|
|
|
7770
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbow", "click", function(e) { let ic = me.icn3d;
|
|
7770
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbow", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7771
7771
|
ic.setOptionCls.setOption('color', 'rainbow');
|
|
7772
7772
|
thisClass.setLogCmd('color rainbow', true);
|
|
7773
7773
|
});
|
|
7774
|
-
me.myEventCls.onIds(["#" + me.pre + "mn4_clrRainbowChain", "#" + me.pre + "tool_clrRainbowChain"], "click", function(e) { let ic = me.icn3d;
|
|
7774
|
+
me.myEventCls.onIds(["#" + me.pre + "mn4_clrRainbowChain", "#" + me.pre + "tool_clrRainbowChain"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7775
7775
|
ic.setOptionCls.setOption('color', 'rainbow for chains');
|
|
7776
7776
|
thisClass.setLogCmd('color rainbow for chains', true);
|
|
7777
7777
|
});
|
|
7778
7778
|
|
|
7779
|
-
me.myEventCls.onIds(["#" + me.pre + "mn4_clrChain", "#" + me.pre + "tool_clrChain"], "click", function(e) { let ic = me.icn3d;
|
|
7779
|
+
me.myEventCls.onIds(["#" + me.pre + "mn4_clrChain", "#" + me.pre + "tool_clrChain"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7780
7780
|
ic.setOptionCls.setOption('color', 'chain');
|
|
7781
7781
|
thisClass.setLogCmd('color chain', true);
|
|
7782
7782
|
});
|
|
7783
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrStructure", "click", function(e) { let ic = me.icn3d;
|
|
7783
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrStructure", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7784
7784
|
ic.setOptionCls.setOption('color', 'structure');
|
|
7785
7785
|
thisClass.setLogCmd('color structure', true);
|
|
7786
7786
|
});
|
|
7787
7787
|
|
|
7788
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrdomain", "click", function(e) { let ic = me.icn3d;
|
|
7788
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrdomain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7789
7789
|
ic.setOptionCls.setOption('color', 'domain');
|
|
7790
7790
|
thisClass.setLogCmd('color domain', true);
|
|
7791
7791
|
});
|
|
7792
7792
|
|
|
7793
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrsets", "click", function(e) { let ic = me.icn3d;
|
|
7793
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrsets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7794
7794
|
ic.setOptionCls.setOption('color', 'defined sets');
|
|
7795
7795
|
thisClass.setLogCmd('color defined sets', true);
|
|
7796
7796
|
});
|
|
7797
7797
|
|
|
7798
7798
|
|
|
7799
|
-
me.myEventCls.onIds(["#" + me.pre + "mn4_clrSSGreen", "#" + me.pre + "tool_clrSSGreen"], "click", function(e) { let ic = me.icn3d;
|
|
7799
|
+
me.myEventCls.onIds(["#" + me.pre + "mn4_clrSSGreen", "#" + me.pre + "tool_clrSSGreen"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7800
7800
|
ic.sheetcolor = 'green';
|
|
7801
7801
|
ic.setOptionCls.setOption('color', 'secondary structure green');
|
|
7802
7802
|
thisClass.setLogCmd('color secondary structure green', true);
|
|
7803
7803
|
});
|
|
7804
7804
|
|
|
7805
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSSYellow", "click", function(e) { let ic = me.icn3d;
|
|
7805
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSSYellow", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7806
7806
|
ic.sheetcolor = 'yellow';
|
|
7807
7807
|
ic.setOptionCls.setOption('color', 'secondary structure yellow');
|
|
7808
7808
|
thisClass.setLogCmd('color secondary structure yellow', true);
|
|
7809
7809
|
});
|
|
7810
7810
|
|
|
7811
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSSSpectrum", "click", function(e) { let ic = me.icn3d;
|
|
7811
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSSSpectrum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7812
7812
|
ic.setOptionCls.setOption('color', 'secondary structure spectrum');
|
|
7813
7813
|
thisClass.setLogCmd('color secondary structure spectrum', true);
|
|
7814
7814
|
});
|
|
7815
7815
|
|
|
7816
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrResidue", "click", function(e) { let ic = me.icn3d;
|
|
7816
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrResidue", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7817
7817
|
//ic.legendClick = 2;
|
|
7818
7818
|
ic.setOptionCls.setOption('color', 'residue');
|
|
7819
7819
|
thisClass.setLogCmd('color residue', true);
|
|
7820
7820
|
});
|
|
7821
7821
|
|
|
7822
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrResidueCustom", "click", function(e) { me.icn3d;
|
|
7822
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrResidueCustom", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7823
7823
|
//ic.legendClick = 2;
|
|
7824
7824
|
me.htmlCls.dialogCls.openDlg('dl_rescolorfile', 'Please input the file on residue colors');
|
|
7825
7825
|
});
|
|
7826
7826
|
|
|
7827
|
-
me.myEventCls.onIds("#" + me.pre + "reload_rescolorfile", "click", function(e) { let ic = me.icn3d;
|
|
7827
|
+
me.myEventCls.onIds("#" + me.pre + "reload_rescolorfile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7828
7828
|
|
|
7829
7829
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
7830
7830
|
let file = $("#" + me.pre + "rescolorfile")[0].files[0];
|
|
@@ -7848,7 +7848,7 @@ class ClickMenu {
|
|
|
7848
7848
|
}
|
|
7849
7849
|
});
|
|
7850
7850
|
|
|
7851
|
-
me.myEventCls.onIds("#" + me.pre + "reload_customcolorfile", "click", function(e) { let ic = me.icn3d;
|
|
7851
|
+
me.myEventCls.onIds("#" + me.pre + "reload_customcolorfile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7852
7852
|
|
|
7853
7853
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
7854
7854
|
ic.startColor = $("#" + me.pre + "startColor").val();
|
|
@@ -7863,12 +7863,12 @@ class ClickMenu {
|
|
|
7863
7863
|
ic.addTrackCls.setCustomFile('color', ic.startColor, ic.midColor, ic.endColor);
|
|
7864
7864
|
});
|
|
7865
7865
|
|
|
7866
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_customref", "click", function(e) { me.icn3d;
|
|
7866
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_customref", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7867
7867
|
|
|
7868
7868
|
me.htmlCls.dialogCls.openDlg('dl_customref', 'Set custom reference numbers');
|
|
7869
7869
|
});
|
|
7870
7870
|
|
|
7871
|
-
me.myEventCls.onIds("#" + me.pre + "reload_customreffile", "click", function(e) { let ic = me.icn3d;
|
|
7871
|
+
me.myEventCls.onIds("#" + me.pre + "reload_customreffile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7872
7872
|
|
|
7873
7873
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
7874
7874
|
|
|
@@ -7891,98 +7891,98 @@ class ClickMenu {
|
|
|
7891
7891
|
}
|
|
7892
7892
|
});
|
|
7893
7893
|
|
|
7894
|
-
me.myEventCls.onIds("#" + me.pre + "remove_legend", "click", function(e) { me.icn3d;
|
|
7894
|
+
me.myEventCls.onIds("#" + me.pre + "remove_legend", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7895
7895
|
|
|
7896
7896
|
$("#" + me.pre + "legend").hide();
|
|
7897
7897
|
|
|
7898
7898
|
thisClass.setLogCmd('remove legend', true);
|
|
7899
7899
|
});
|
|
7900
|
-
me.myEventCls.onIds("#" + me.pre + "reload_customtubefile", "click", function(e) { let ic = me.icn3d;
|
|
7900
|
+
me.myEventCls.onIds("#" + me.pre + "reload_customtubefile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7901
7901
|
|
|
7902
7902
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
7903
7903
|
ic.addTrackCls.setCustomFile('tube');
|
|
7904
7904
|
});
|
|
7905
7905
|
|
|
7906
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrCharge", "click", function(e) { let ic = me.icn3d;
|
|
7906
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrCharge", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7907
7907
|
//ic.legendClick = 3;
|
|
7908
7908
|
ic.setOptionCls.setOption('color', 'charge');
|
|
7909
7909
|
thisClass.setLogCmd('color charge', true);
|
|
7910
7910
|
});
|
|
7911
7911
|
|
|
7912
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrHydrophobic", "click", function(e) { let ic = me.icn3d;
|
|
7912
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrHydrophobic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7913
7913
|
//ic.legendClick = 4;
|
|
7914
7914
|
ic.setOptionCls.setOption('color', 'hydrophobic');
|
|
7915
7915
|
thisClass.setLogCmd('color hydrophobic', true);
|
|
7916
7916
|
});
|
|
7917
7917
|
|
|
7918
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrNormalizedHP", "click", function(e) { let ic = me.icn3d;
|
|
7918
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrNormalizedHP", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7919
7919
|
//ic.legendClick = 4;
|
|
7920
7920
|
ic.setOptionCls.setOption('color', 'normalized hydrophobic');
|
|
7921
7921
|
thisClass.setLogCmd('color normalized hydrophobic', true);
|
|
7922
7922
|
});
|
|
7923
7923
|
|
|
7924
7924
|
|
|
7925
|
-
me.myEventCls.onIds(["#" + me.pre + "mn4_clrAtom", "#" + me.pre + "tool_clrAtom"], "click", function(e) { let ic = me.icn3d;
|
|
7925
|
+
me.myEventCls.onIds(["#" + me.pre + "mn4_clrAtom", "#" + me.pre + "tool_clrAtom"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7926
7926
|
//ic.legendClick = 1;
|
|
7927
7927
|
ic.setOptionCls.setOption('color', 'atom');
|
|
7928
7928
|
thisClass.setLogCmd('color atom', true);
|
|
7929
7929
|
});
|
|
7930
7930
|
|
|
7931
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactor", "click", function(e) { let ic = me.icn3d;
|
|
7931
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7932
7932
|
//ic.legendClick = 5;
|
|
7933
7933
|
ic.setOptionCls.setOption('color', 'b factor');
|
|
7934
7934
|
thisClass.setLogCmd('color b factor', true);
|
|
7935
7935
|
});
|
|
7936
7936
|
|
|
7937
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrConfidence", "click", function(e) { let ic = me.icn3d;
|
|
7937
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrConfidence", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7938
7938
|
//ic.legendClick = 6;
|
|
7939
7939
|
ic.setOptionCls.setOption('color', 'confidence');
|
|
7940
7940
|
thisClass.setLogCmd('color confidence', true);
|
|
7941
7941
|
});
|
|
7942
7942
|
|
|
7943
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrIgstrand", "click", function(e) { let ic = me.icn3d;
|
|
7943
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrIgstrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7944
7944
|
//ic.legendClick = 6;
|
|
7945
7945
|
ic.setOptionCls.setOption('color', 'ig strand');
|
|
7946
7946
|
thisClass.setLogCmd('color ig strand', true);
|
|
7947
7947
|
});
|
|
7948
7948
|
|
|
7949
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrIgproto", "click", function(e) { let ic = me.icn3d;
|
|
7949
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrIgproto", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7950
7950
|
//ic.legendClick = 6;
|
|
7951
7951
|
ic.setOptionCls.setOption('color', 'ig protodomain');
|
|
7952
7952
|
thisClass.setLogCmd('color ig protodomain', true);
|
|
7953
7953
|
});
|
|
7954
7954
|
|
|
7955
7955
|
|
|
7956
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrArea", "click", function(e) { me.icn3d;
|
|
7956
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrArea", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7957
7957
|
me.htmlCls.dialogCls.openDlg('dl_colorbyarea', "Color based on residue's solvent accessibility");
|
|
7958
7958
|
});
|
|
7959
|
-
me.myEventCls.onIds("#" + me.pre + "applycolorbyarea", "click", function(e) { let ic = me.icn3d;
|
|
7959
|
+
me.myEventCls.onIds("#" + me.pre + "applycolorbyarea", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7960
7960
|
ic.midpercent = $("#" + me.pre + 'midpercent').val();
|
|
7961
7961
|
ic.setOptionCls.setOption('color', 'area');
|
|
7962
7962
|
thisClass.setLogCmd('color area | ' + ic.midpercent, true);
|
|
7963
7963
|
|
|
7964
7964
|
});
|
|
7965
7965
|
|
|
7966
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactorNorm", "click", function(e) { let ic = me.icn3d;
|
|
7966
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactorNorm", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7967
7967
|
ic.setOptionCls.setOption('color', 'b factor percentile');
|
|
7968
7968
|
thisClass.setLogCmd('color b factor percentile', true);
|
|
7969
7969
|
});
|
|
7970
7970
|
|
|
7971
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrIdentity", "click", function(e) { let ic = me.icn3d;
|
|
7971
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrIdentity", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7972
7972
|
ic.setOptionCls.setOption('color', 'identity');
|
|
7973
7973
|
thisClass.setLogCmd('color identity', true);
|
|
7974
7974
|
});
|
|
7975
7975
|
|
|
7976
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrConserved", "click", function(e) { let ic = me.icn3d;
|
|
7976
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrConserved", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7977
7977
|
ic.setOptionCls.setOption('color', 'conservation');
|
|
7978
7978
|
thisClass.setLogCmd('color conservation', true);
|
|
7979
7979
|
});
|
|
7980
7980
|
|
|
7981
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrCustom", "click", function(e) { me.icn3d;
|
|
7981
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrCustom", "click", function(e) { me.icn3d; e.preventDefault();
|
|
7982
7982
|
me.htmlCls.dialogCls.openDlg('dl_clr', 'Color picker');
|
|
7983
7983
|
});
|
|
7984
7984
|
|
|
7985
|
-
$(document).on("click", ".icn3d-color-rad-text", function(e) { let ic = me.icn3d;
|
|
7985
|
+
$(document).on("click", ".icn3d-color-rad-text", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7986
7986
|
e.stopImmediatePropagation();
|
|
7987
7987
|
e.preventDefault();
|
|
7988
7988
|
let color = $(this).attr('color');
|
|
@@ -7990,22 +7990,22 @@ class ClickMenu {
|
|
|
7990
7990
|
thisClass.setLogCmd("color " + color, true);
|
|
7991
7991
|
});
|
|
7992
7992
|
|
|
7993
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSave", "click", function(e) { let ic = me.icn3d;
|
|
7993
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7994
7994
|
ic.setOptionCls.saveColor();
|
|
7995
7995
|
thisClass.setLogCmd('save color', true);
|
|
7996
7996
|
});
|
|
7997
7997
|
|
|
7998
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrApplySave", "click", function(e) { let ic = me.icn3d;
|
|
7998
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrApplySave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
7999
7999
|
ic.setOptionCls.applySavedColor();
|
|
8000
8000
|
thisClass.setLogCmd('apply saved color', true);
|
|
8001
8001
|
});
|
|
8002
8002
|
|
|
8003
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_styleSave", "click", function(e) { let ic = me.icn3d;
|
|
8003
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_styleSave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8004
8004
|
ic.setOptionCls.saveStyle();
|
|
8005
8005
|
thisClass.setLogCmd('save style', true);
|
|
8006
8006
|
});
|
|
8007
8007
|
|
|
8008
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_styleApplySave", "click", function(e) { let ic = me.icn3d;
|
|
8008
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_styleApplySave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8009
8009
|
ic.setOptionCls.applySavedStyle();
|
|
8010
8010
|
thisClass.setLogCmd('apply saved style', true);
|
|
8011
8011
|
});
|
|
@@ -8017,7 +8017,7 @@ class ClickMenu {
|
|
|
8017
8017
|
|
|
8018
8018
|
let thisClass = this;
|
|
8019
8019
|
// mn 5
|
|
8020
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_neighborsYes", "click", function(e) { let ic = me.icn3d;
|
|
8020
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_neighborsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8021
8021
|
ic.bConsiderNeighbors = true;
|
|
8022
8022
|
ic.applyMapCls.removeLastSurface();
|
|
8023
8023
|
ic.applyMapCls.applySurfaceOptions();
|
|
@@ -8025,7 +8025,7 @@ class ClickMenu {
|
|
|
8025
8025
|
thisClass.setLogCmd('set surface neighbors on', true);
|
|
8026
8026
|
});
|
|
8027
8027
|
|
|
8028
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_neighborsNo", "click", function(e) { let ic = me.icn3d;
|
|
8028
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_neighborsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8029
8029
|
ic.bConsiderNeighbors = false;
|
|
8030
8030
|
ic.applyMapCls.removeLastSurface();
|
|
8031
8031
|
ic.applyMapCls.applySurfaceOptions();
|
|
@@ -8033,48 +8033,48 @@ class ClickMenu {
|
|
|
8033
8033
|
thisClass.setLogCmd('set surface neighbors off', true);
|
|
8034
8034
|
});
|
|
8035
8035
|
|
|
8036
|
-
me.myEventCls.onIds(["#" + me.pre + "mn5_surfaceVDW", "#" + me.pre + "tool_surfaceVDW"], "click", function(e) { let ic = me.icn3d;
|
|
8036
|
+
me.myEventCls.onIds(["#" + me.pre + "mn5_surfaceVDW", "#" + me.pre + "tool_surfaceVDW"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8037
8037
|
ic.bConsiderNeighbors = false;
|
|
8038
8038
|
ic.setOptionCls.setOption('surface', 'Van der Waals surface');
|
|
8039
8039
|
thisClass.setLogCmd('set surface Van der Waals surface', true);
|
|
8040
8040
|
});
|
|
8041
8041
|
|
|
8042
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSAS", "click", function(e) { let ic = me.icn3d;
|
|
8042
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSAS", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8043
8043
|
ic.bConsiderNeighbors = false;
|
|
8044
8044
|
ic.setOptionCls.setOption('surface', 'solvent accessible surface');
|
|
8045
8045
|
thisClass.setLogCmd('set surface solvent accessible surface', true);
|
|
8046
8046
|
});
|
|
8047
8047
|
|
|
8048
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecular", "click", function(e) { let ic = me.icn3d;
|
|
8048
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecular", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8049
8049
|
ic.bConsiderNeighbors = false;
|
|
8050
8050
|
ic.setOptionCls.setOption('surface', 'molecular surface');
|
|
8051
8051
|
thisClass.setLogCmd('set surface molecular surface', true);
|
|
8052
8052
|
});
|
|
8053
8053
|
|
|
8054
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceVDWContext", "click", function(e) { let ic = me.icn3d;
|
|
8054
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceVDWContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8055
8055
|
ic.bConsiderNeighbors = true;
|
|
8056
8056
|
ic.setOptionCls.setOption('surface', 'Van der Waals surface with context');
|
|
8057
8057
|
thisClass.setLogCmd('set surface Van der Waals surface with context', true);
|
|
8058
8058
|
});
|
|
8059
8059
|
|
|
8060
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSASContext", "click", function(e) { let ic = me.icn3d;
|
|
8060
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSASContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8061
8061
|
ic.bConsiderNeighbors = true;
|
|
8062
8062
|
ic.setOptionCls.setOption('surface', 'solvent accessible surface with context');
|
|
8063
8063
|
thisClass.setLogCmd('set surface solvent accessible surface with context', true);
|
|
8064
8064
|
});
|
|
8065
8065
|
|
|
8066
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecularContext", "click", function(e) { let ic = me.icn3d;
|
|
8066
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecularContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8067
8067
|
ic.bConsiderNeighbors = true;
|
|
8068
8068
|
ic.setOptionCls.setOption('surface', 'molecular surface with context');
|
|
8069
8069
|
thisClass.setLogCmd('set surface molecular surface with context', true);
|
|
8070
8070
|
});
|
|
8071
8071
|
|
|
8072
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceNo", "click", function(e) { let ic = me.icn3d;
|
|
8072
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8073
8073
|
ic.setOptionCls.setOption('surface', 'nothing');
|
|
8074
8074
|
thisClass.setLogCmd('set surface nothing', true);
|
|
8075
8075
|
});
|
|
8076
8076
|
|
|
8077
|
-
$(document).on("click", "." + me.pre + "mn5_opacity", function(e) { let ic = me.icn3d;
|
|
8077
|
+
$(document).on("click", "." + me.pre + "mn5_opacity", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8078
8078
|
ic.transparentRenderOrder = false;
|
|
8079
8079
|
|
|
8080
8080
|
let value = $(this).attr('v');
|
|
@@ -8082,7 +8082,7 @@ class ClickMenu {
|
|
|
8082
8082
|
thisClass.setLogCmd('set surface opacity ' + value, true);
|
|
8083
8083
|
});
|
|
8084
8084
|
|
|
8085
|
-
$(document).on("click", "." + me.pre + "mn5_opacityslow", function(e) { let ic = me.icn3d;
|
|
8085
|
+
$(document).on("click", "." + me.pre + "mn5_opacityslow", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8086
8086
|
ic.transparentRenderOrder = true;
|
|
8087
8087
|
|
|
8088
8088
|
let value = $(this).attr('v');
|
|
@@ -8090,42 +8090,42 @@ class ClickMenu {
|
|
|
8090
8090
|
thisClass.setLogCmd('set surface2 opacity ' + value, true);
|
|
8091
8091
|
});
|
|
8092
8092
|
|
|
8093
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_wireframeYes", "click", function(e) { let ic = me.icn3d;
|
|
8093
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_wireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8094
8094
|
ic.setOptionCls.setOption('wireframe', 'yes');
|
|
8095
8095
|
thisClass.setLogCmd('set surface wireframe on', true);
|
|
8096
8096
|
});
|
|
8097
8097
|
|
|
8098
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_wireframeNo", "click", function(e) { let ic = me.icn3d;
|
|
8098
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_wireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8099
8099
|
ic.setOptionCls.setOption('wireframe', 'no');
|
|
8100
8100
|
thisClass.setLogCmd('set surface wireframe off', true);
|
|
8101
8101
|
});
|
|
8102
8102
|
|
|
8103
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_elecmap2fofc", "click", function(e) { me.icn3d;
|
|
8103
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_elecmap2fofc", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8104
8104
|
me.htmlCls.dialogCls.openDlg('dl_elecmap2fofc', '2Fo-Fc Electron Density Map');
|
|
8105
8105
|
});
|
|
8106
8106
|
|
|
8107
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_elecmapfofc", "click", function(e) { me.icn3d;
|
|
8107
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_elecmapfofc", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8108
8108
|
me.htmlCls.dialogCls.openDlg('dl_elecmapfofc', 'Fo-Fc Electron Density Map');
|
|
8109
8109
|
});
|
|
8110
8110
|
|
|
8111
|
-
me.myEventCls.onIds(["#" + me.pre + "mn5_elecmapNo", "#" + me.pre + "elecmapNo2", "#" + me.pre + "elecmapNo3", "#" + me.pre + "elecmapNo4", "#" + me.pre + "elecmapNo5"], "click", function(e) { let ic = me.icn3d;
|
|
8111
|
+
me.myEventCls.onIds(["#" + me.pre + "mn5_elecmapNo", "#" + me.pre + "elecmapNo2", "#" + me.pre + "elecmapNo3", "#" + me.pre + "elecmapNo4", "#" + me.pre + "elecmapNo5"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8112
8112
|
ic.setOptionCls.setOption('map', 'nothing');
|
|
8113
8113
|
thisClass.setLogCmd('setoption map nothing', true);
|
|
8114
8114
|
});
|
|
8115
8115
|
|
|
8116
|
-
me.myEventCls.onIds(["#" + me.pre + "delphimapNo", "#" + me.pre + "phimapNo", "#" + me.pre + "phiurlmapNo", "#" + me.pre + "mn1_phimapNo"], "click", function(e) { let ic = me.icn3d;
|
|
8116
|
+
me.myEventCls.onIds(["#" + me.pre + "delphimapNo", "#" + me.pre + "phimapNo", "#" + me.pre + "phiurlmapNo", "#" + me.pre + "mn1_phimapNo"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8117
8117
|
ic.setOptionCls.setOption('phimap', 'nothing');
|
|
8118
8118
|
thisClass.setLogCmd('setoption phimap nothing', true);
|
|
8119
8119
|
});
|
|
8120
8120
|
|
|
8121
|
-
me.myEventCls.onIds(["#" + me.pre + "delphimapNo2", "#" + me.pre + "phimapNo2", "#" + me.pre + "phiurlmapNo2"], "click", function(e) { let ic = me.icn3d;
|
|
8121
|
+
me.myEventCls.onIds(["#" + me.pre + "delphimapNo2", "#" + me.pre + "phimapNo2", "#" + me.pre + "phiurlmapNo2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8122
8122
|
//ic.setOptionCls.setOption('surface', 'nothing');
|
|
8123
8123
|
//thisClass.setLogCmd('set surface nothing', true);
|
|
8124
8124
|
ic.setOptionCls.setOption('phisurface', 'nothing');
|
|
8125
8125
|
thisClass.setLogCmd('setoption phisurface nothing', true);
|
|
8126
8126
|
});
|
|
8127
8127
|
|
|
8128
|
-
me.myEventCls.onIds("#" + me.pre + "applymap2fofc", "click", function(e) { let ic = me.icn3d;
|
|
8128
|
+
me.myEventCls.onIds("#" + me.pre + "applymap2fofc", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8129
8129
|
|
|
8130
8130
|
//if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
8131
8131
|
let sigma2fofc = parseFloat($("#" + me.pre + "sigma2fofc" ).val());
|
|
@@ -8135,7 +8135,7 @@ class ClickMenu {
|
|
|
8135
8135
|
thisClass.setLogCmd('set map 2fofc sigma ' + sigma2fofc, true);
|
|
8136
8136
|
});
|
|
8137
8137
|
|
|
8138
|
-
me.myEventCls.onIds("#" + me.pre + "applymapfofc", "click", function(e) { let ic = me.icn3d;
|
|
8138
|
+
me.myEventCls.onIds("#" + me.pre + "applymapfofc", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8139
8139
|
|
|
8140
8140
|
//if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
8141
8141
|
let sigmafofc = parseFloat($("#" + me.pre + "sigmafofc" ).val());
|
|
@@ -8145,27 +8145,27 @@ class ClickMenu {
|
|
|
8145
8145
|
thisClass.setLogCmd('set map fofc sigma ' + sigmafofc, true);
|
|
8146
8146
|
});
|
|
8147
8147
|
|
|
8148
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeYes", "click", function(e) { let ic = me.icn3d;
|
|
8148
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8149
8149
|
//ic.dsn6ParserCls.dsn6Parser(ic.inputid);
|
|
8150
8150
|
ic.setOptionCls.setOption('mapwireframe', 'yes');
|
|
8151
8151
|
thisClass.setLogCmd('set map wireframe on', true);
|
|
8152
8152
|
});
|
|
8153
8153
|
|
|
8154
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeNo", "click", function(e) { let ic = me.icn3d;
|
|
8154
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8155
8155
|
ic.setOptionCls.setOption('mapwireframe', 'no');
|
|
8156
8156
|
thisClass.setLogCmd('set map wireframe off', true);
|
|
8157
8157
|
});
|
|
8158
8158
|
|
|
8159
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_emmap", "click", function(e) { me.icn3d;
|
|
8159
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_emmap", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8160
8160
|
me.htmlCls.dialogCls.openDlg('dl_emmap', 'EM Density Map');
|
|
8161
8161
|
});
|
|
8162
8162
|
|
|
8163
|
-
me.myEventCls.onIds(["#" + me.pre + "mn5_emmapNo", "#" + me.pre + "emmapNo2"], "click", function(e) { let ic = me.icn3d;
|
|
8163
|
+
me.myEventCls.onIds(["#" + me.pre + "mn5_emmapNo", "#" + me.pre + "emmapNo2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8164
8164
|
ic.setOptionCls.setOption('emmap', 'nothing');
|
|
8165
8165
|
thisClass.setLogCmd('setoption emmap nothing', true);
|
|
8166
8166
|
});
|
|
8167
8167
|
|
|
8168
|
-
me.myEventCls.onIds("#" + me.pre + "applyemmap", "click", function(e) { let ic = me.icn3d;
|
|
8168
|
+
me.myEventCls.onIds("#" + me.pre + "applyemmap", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8169
8169
|
|
|
8170
8170
|
//if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
8171
8171
|
let empercentage = parseFloat($("#" + me.pre + "empercentage" ).val());
|
|
@@ -8176,13 +8176,13 @@ class ClickMenu {
|
|
|
8176
8176
|
thisClass.setLogCmd('set emmap percentage ' + empercentage, true);
|
|
8177
8177
|
});
|
|
8178
8178
|
|
|
8179
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeYes", "click", function(e) { let ic = me.icn3d;
|
|
8179
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8180
8180
|
//ic.dsn6ParserCls.dsn6Parser(ic.inputid);
|
|
8181
8181
|
ic.setOptionCls.setOption('emmapwireframe', 'yes');
|
|
8182
8182
|
thisClass.setLogCmd('set emmap wireframe on', true);
|
|
8183
8183
|
});
|
|
8184
8184
|
|
|
8185
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeNo", "click", function(e) { let ic = me.icn3d;
|
|
8185
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8186
8186
|
ic.setOptionCls.setOption('emmapwireframe', 'no');
|
|
8187
8187
|
thisClass.setLogCmd('set emmap wireframe off', true);
|
|
8188
8188
|
});
|
|
@@ -8194,19 +8194,19 @@ class ClickMenu {
|
|
|
8194
8194
|
|
|
8195
8195
|
let thisClass = this;
|
|
8196
8196
|
// mn 6
|
|
8197
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_assemblyYes", "click", function(e) { let ic = me.icn3d;
|
|
8197
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_assemblyYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8198
8198
|
ic.bAssembly = true;
|
|
8199
8199
|
thisClass.setLogCmd('set assembly on', true);
|
|
8200
8200
|
ic.drawCls.draw();
|
|
8201
8201
|
});
|
|
8202
8202
|
|
|
8203
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_assemblyNo", "click", function(e) { let ic = me.icn3d;
|
|
8203
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_assemblyNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8204
8204
|
ic.bAssembly = false;
|
|
8205
8205
|
thisClass.setLogCmd('set assembly off', true);
|
|
8206
8206
|
ic.drawCls.draw();
|
|
8207
8207
|
});
|
|
8208
8208
|
|
|
8209
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_igrefYes", "click", async function(e) { let ic = me.icn3d;
|
|
8209
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_igrefYes", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8210
8210
|
thisClass.setLogCmd('ig refnum on', true);
|
|
8211
8211
|
await ic.refnumCls.showIgRefNum();
|
|
8212
8212
|
|
|
@@ -8220,7 +8220,7 @@ class ClickMenu {
|
|
|
8220
8220
|
}
|
|
8221
8221
|
});
|
|
8222
8222
|
|
|
8223
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_igrefNo", "click", async function(e) { let ic = me.icn3d;
|
|
8223
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_igrefNo", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8224
8224
|
thisClass.setLogCmd('ig refnum off', true);
|
|
8225
8225
|
await ic.refnumCls.hideIgRefNum();
|
|
8226
8226
|
|
|
@@ -8233,14 +8233,14 @@ class ClickMenu {
|
|
|
8233
8233
|
});
|
|
8234
8234
|
|
|
8235
8235
|
|
|
8236
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelAtoms", "click", function(e) { let ic = me.icn3d;
|
|
8236
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelAtoms", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8237
8237
|
ic.residueLabelsCls.addAtomLabels(ic.hAtoms);
|
|
8238
8238
|
ic.selectionCls.saveSelectionIfSelected();
|
|
8239
8239
|
thisClass.setLogCmd('add atom labels', true);
|
|
8240
8240
|
ic.drawCls.draw();
|
|
8241
8241
|
});
|
|
8242
8242
|
|
|
8243
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelElements", "click", function(e) { let ic = me.icn3d;
|
|
8243
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelElements", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8244
8244
|
ic.residueLabelsCls.addAtomLabels(ic.hAtoms, true);
|
|
8245
8245
|
ic.selectionCls.saveSelectionIfSelected();
|
|
8246
8246
|
thisClass.setLogCmd('add element labels', true);
|
|
@@ -8248,35 +8248,42 @@ class ClickMenu {
|
|
|
8248
8248
|
});
|
|
8249
8249
|
|
|
8250
8250
|
|
|
8251
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResidues", "click", function(e) { let ic = me.icn3d;
|
|
8251
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResidues", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8252
8252
|
ic.residueLabelsCls.addResidueLabels(ic.hAtoms);
|
|
8253
8253
|
ic.selectionCls.saveSelectionIfSelected();
|
|
8254
8254
|
thisClass.setLogCmd('add residue labels', true);
|
|
8255
8255
|
ic.drawCls.draw();
|
|
8256
8256
|
});
|
|
8257
8257
|
|
|
8258
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResnum", "click", function(e) { let ic = me.icn3d;
|
|
8258
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResnum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8259
8259
|
ic.residueLabelsCls.addResidueLabels(ic.hAtoms, undefined, undefined, true);
|
|
8260
8260
|
ic.selectionCls.saveSelectionIfSelected();
|
|
8261
8261
|
thisClass.setLogCmd('add residue number labels', true);
|
|
8262
8262
|
ic.drawCls.draw();
|
|
8263
8263
|
});
|
|
8264
8264
|
|
|
8265
|
-
me.myEventCls.onIds("#" + me.pre + "
|
|
8265
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelRefnum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8266
|
+
ic.residueLabelsCls.addResidueLabels(ic.hAtoms, undefined, undefined, undefined, true);
|
|
8267
|
+
ic.selectionCls.saveSelectionIfSelected();
|
|
8268
|
+
thisClass.setLogCmd('add reference number labels', true);
|
|
8269
|
+
ic.drawCls.draw();
|
|
8270
|
+
});
|
|
8271
|
+
|
|
8272
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelChains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8266
8273
|
ic.analysisCls.addChainLabels(ic.hAtoms);
|
|
8267
8274
|
ic.selectionCls.saveSelectionIfSelected();
|
|
8268
8275
|
thisClass.setLogCmd('add chain labels', true);
|
|
8269
8276
|
ic.drawCls.draw();
|
|
8270
8277
|
});
|
|
8271
8278
|
|
|
8272
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelTermini", "click", function(e) { let ic = me.icn3d;
|
|
8279
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelTermini", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8273
8280
|
ic.analysisCls.addTerminiLabels(ic.hAtoms);
|
|
8274
8281
|
ic.selectionCls.saveSelectionIfSelected();
|
|
8275
8282
|
thisClass.setLogCmd('add terminal labels', true);
|
|
8276
8283
|
ic.drawCls.draw();
|
|
8277
8284
|
});
|
|
8278
8285
|
|
|
8279
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelYes", "click", function(e) { let ic = me.icn3d;
|
|
8286
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8280
8287
|
me.htmlCls.dialogCls.openDlg('dl_addlabel', 'Add custom labels by selection');
|
|
8281
8288
|
ic.pk = 1;
|
|
8282
8289
|
ic.opts['pk'] = 'atom';
|
|
@@ -8284,19 +8291,19 @@ class ClickMenu {
|
|
|
8284
8291
|
ic.pAtomNum = 0;
|
|
8285
8292
|
});
|
|
8286
8293
|
|
|
8287
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelSelection", "click", function(e) { me.icn3d;
|
|
8294
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelSelection", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8288
8295
|
me.htmlCls.dialogCls.openDlg('dl_addlabelselection', 'Add custom labels by the selected');
|
|
8289
8296
|
});
|
|
8290
8297
|
|
|
8291
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_labelColor", "click", function(e) { me.icn3d;
|
|
8298
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_labelColor", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8292
8299
|
me.htmlCls.dialogCls.openDlg('dl_labelColor', 'Change color for all labels');
|
|
8293
8300
|
});
|
|
8294
8301
|
|
|
8295
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_saveselection","#" + me.pre + "tool_saveselection"], "click", function(e) { me.icn3d;
|
|
8302
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_saveselection","#" + me.pre + "tool_saveselection"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
8296
8303
|
me.htmlCls.dialogCls.openDlg('dl_saveselection', 'Save the selected');
|
|
8297
8304
|
});
|
|
8298
8305
|
|
|
8299
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_addlabelNo", "#" + me.pre + "removeLabels"], "click", function(e) { let ic = me.icn3d;
|
|
8306
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_addlabelNo", "#" + me.pre + "removeLabels"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8300
8307
|
ic.labelcolor = undefined;
|
|
8301
8308
|
ic.pickpair = false;
|
|
8302
8309
|
//ic.labels['residue'] = [];
|
|
@@ -8311,14 +8318,14 @@ class ClickMenu {
|
|
|
8311
8318
|
ic.drawCls.draw();
|
|
8312
8319
|
});
|
|
8313
8320
|
|
|
8314
|
-
$(document).on("click", "." + me.pre + "mn6_labelscale", function(e) { let ic = me.icn3d;
|
|
8321
|
+
$(document).on("click", "." + me.pre + "mn6_labelscale", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8315
8322
|
let value = $(this).attr('v');
|
|
8316
8323
|
ic.labelScale = value;
|
|
8317
8324
|
ic.drawCls.draw();
|
|
8318
8325
|
thisClass.setLogCmd('set label scale ' + value, true);
|
|
8319
8326
|
});
|
|
8320
8327
|
|
|
8321
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_distanceYes", "click", function(e) { let ic = me.icn3d;
|
|
8328
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_distanceYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8322
8329
|
me.htmlCls.dialogCls.openDlg('dl_distance', 'Measure the distance of atoms');
|
|
8323
8330
|
ic.pk = 1;
|
|
8324
8331
|
ic.opts['pk'] = 'atom';
|
|
@@ -8328,7 +8335,7 @@ class ClickMenu {
|
|
|
8328
8335
|
});
|
|
8329
8336
|
|
|
8330
8337
|
|
|
8331
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_distTwoSets", "click", function(e) { let ic = me.icn3d;
|
|
8338
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_distTwoSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8332
8339
|
me.htmlCls.dialogCls.openDlg('dl_disttwosets', 'Measure the distance between two sets');
|
|
8333
8340
|
|
|
8334
8341
|
thisClass.setSetsMenus('atomsCustomDist');
|
|
@@ -8336,7 +8343,7 @@ class ClickMenu {
|
|
|
8336
8343
|
ic.bMeasureDistance = true;
|
|
8337
8344
|
});
|
|
8338
8345
|
|
|
8339
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_distManySets", "click", function(e) { let ic = me.icn3d;
|
|
8346
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_distManySets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8340
8347
|
me.htmlCls.dialogCls.openDlg('dl_distmanysets', 'Measure the pairwise distance among many sets');
|
|
8341
8348
|
|
|
8342
8349
|
thisClass.setSetsMenus('atomsCustomDistTable');
|
|
@@ -8344,7 +8351,7 @@ class ClickMenu {
|
|
|
8344
8351
|
ic.bMeasureDistance = true;
|
|
8345
8352
|
});
|
|
8346
8353
|
|
|
8347
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_distanceNo", "click", function(e) { let ic = me.icn3d;
|
|
8354
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_distanceNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8348
8355
|
ic.pickpair = false;
|
|
8349
8356
|
let select = "set lines off";
|
|
8350
8357
|
thisClass.setLogCmd(select, true);
|
|
@@ -8355,7 +8362,7 @@ class ClickMenu {
|
|
|
8355
8362
|
ic.drawCls.draw();
|
|
8356
8363
|
});
|
|
8357
8364
|
|
|
8358
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_cartoonshape", "click", function(e) { let ic = me.icn3d;
|
|
8365
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_cartoonshape", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8359
8366
|
me.htmlCls.dialogCls.openDlg('dl_cartoonshape', 'Draw cartoon for a set');
|
|
8360
8367
|
|
|
8361
8368
|
let bOneset = true;
|
|
@@ -8364,7 +8371,7 @@ class ClickMenu {
|
|
|
8364
8371
|
ic.bCartoonshape = true;
|
|
8365
8372
|
});
|
|
8366
8373
|
|
|
8367
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_linebtwsets", "click", function(e) { let ic = me.icn3d;
|
|
8374
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_linebtwsets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8368
8375
|
me.htmlCls.dialogCls.openDlg('dl_linebtwsets', 'Draw a line between two sets');
|
|
8369
8376
|
|
|
8370
8377
|
thisClass.setSetsMenus('linebtwsets');
|
|
@@ -8373,21 +8380,21 @@ class ClickMenu {
|
|
|
8373
8380
|
});
|
|
8374
8381
|
|
|
8375
8382
|
|
|
8376
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_selectedcenter", "#" + me.pre + "zoomin_selection", "#" + me.pre + "tool_selectedcenter"], "click", function(e) { let ic = me.icn3d;
|
|
8383
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_selectedcenter", "#" + me.pre + "zoomin_selection", "#" + me.pre + "tool_selectedcenter"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8377
8384
|
//thisClass.setLogCmd('zoom selection', true);
|
|
8378
8385
|
ic.transformCls.zoominSelection();
|
|
8379
8386
|
ic.drawCls.draw();
|
|
8380
8387
|
thisClass.setLogCmd('zoom selection', true);
|
|
8381
8388
|
});
|
|
8382
8389
|
|
|
8383
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_center", "click", function(e) { let ic = me.icn3d;
|
|
8390
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_center", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8384
8391
|
//thisClass.setLogCmd('center selection', true);
|
|
8385
8392
|
ic.applyCenterCls.centerSelection();
|
|
8386
8393
|
ic.drawCls.draw();
|
|
8387
8394
|
thisClass.setLogCmd('center selection', true);
|
|
8388
8395
|
});
|
|
8389
8396
|
|
|
8390
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_resetOrientation", "#" + me.pre + "resetOrientation", "#" + me.pre + "tool_resetOrientation"], "click", function(e) { let ic = me.icn3d;
|
|
8397
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_resetOrientation", "#" + me.pre + "resetOrientation", "#" + me.pre + "tool_resetOrientation"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8391
8398
|
//thisClass.setLogCmd('reset orientation', true);
|
|
8392
8399
|
ic.transformCls.resetOrientation();
|
|
8393
8400
|
//ic.setColorCls.applyOriginalColor();
|
|
@@ -8395,17 +8402,17 @@ class ClickMenu {
|
|
|
8395
8402
|
thisClass.setLogCmd('reset orientation', true);
|
|
8396
8403
|
});
|
|
8397
8404
|
|
|
8398
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindingshow", "#" + me.pre + "chemicalbindingshow"], "click", function(e) { let ic = me.icn3d;
|
|
8405
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindingshow", "#" + me.pre + "chemicalbindingshow"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8399
8406
|
ic.setOptionCls.setOption('chemicalbinding', 'show');
|
|
8400
8407
|
thisClass.setLogCmd('set chemicalbinding show', true);
|
|
8401
8408
|
});
|
|
8402
8409
|
|
|
8403
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindinghide", "#" + me.pre + "chemicalbindinghide"], "click", function(e) { let ic = me.icn3d;
|
|
8410
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindinghide", "#" + me.pre + "chemicalbindinghide"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8404
8411
|
ic.setOptionCls.setOption('chemicalbinding', 'hide');
|
|
8405
8412
|
thisClass.setLogCmd('set chemicalbinding hide', true);
|
|
8406
8413
|
});
|
|
8407
8414
|
|
|
8408
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_sidebyside", "click", function(e) { let ic = me.icn3d;
|
|
8415
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_sidebyside", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8409
8416
|
if(ic.bInputfile) {
|
|
8410
8417
|
alert("Side-by-Side does NOT work when the input is from a local file.");
|
|
8411
8418
|
return;
|
|
@@ -8424,7 +8431,7 @@ class ClickMenu {
|
|
|
8424
8431
|
});
|
|
8425
8432
|
|
|
8426
8433
|
|
|
8427
|
-
$(document).on("click", "." + me.pre + "mn6_rotate", function(e) { let ic = me.icn3d;
|
|
8434
|
+
$(document).on("click", "." + me.pre + "mn6_rotate", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8428
8435
|
let value = $(this).attr('v').toLowerCase();
|
|
8429
8436
|
let direction = value.split(' ')[1];
|
|
8430
8437
|
|
|
@@ -8436,7 +8443,7 @@ class ClickMenu {
|
|
|
8436
8443
|
ic.resizeCanvasCls.rotStruc(direction);
|
|
8437
8444
|
});
|
|
8438
8445
|
|
|
8439
|
-
$(document).on("click", "." + me.pre + "mn6_rotate90", function(e) { let ic = me.icn3d;
|
|
8446
|
+
$(document).on("click", "." + me.pre + "mn6_rotate90", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8440
8447
|
let value = $(this).attr('v').toLowerCase();
|
|
8441
8448
|
let direction = value.split('-')[0];
|
|
8442
8449
|
|
|
@@ -8455,21 +8462,21 @@ class ClickMenu {
|
|
|
8455
8462
|
ic.transformCls.setRotation(axis, angle);
|
|
8456
8463
|
});
|
|
8457
8464
|
|
|
8458
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_cameraPers", "click", function(e) { let ic = me.icn3d;
|
|
8465
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_cameraPers", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8459
8466
|
ic.setOptionCls.setOption('camera', 'perspective');
|
|
8460
8467
|
thisClass.setLogCmd('set camera perspective', true);
|
|
8461
8468
|
});
|
|
8462
8469
|
|
|
8463
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_cameraOrth", "click", function(e) { let ic = me.icn3d;
|
|
8470
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_cameraOrth", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8464
8471
|
ic.setOptionCls.setOption('camera', 'orthographic');
|
|
8465
8472
|
thisClass.setLogCmd('set camera orthographic', true);
|
|
8466
8473
|
});
|
|
8467
8474
|
|
|
8468
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdBlack", "click", function(e) { let ic = me.icn3d;
|
|
8475
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdBlack", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8469
8476
|
ic.setStyleCls.setBackground('black');
|
|
8470
8477
|
});
|
|
8471
8478
|
|
|
8472
|
-
me.myEventCls.onIds("#" + me.pre + "tool_bkgd", "click", function(e) { let ic = me.icn3d;
|
|
8479
|
+
me.myEventCls.onIds("#" + me.pre + "tool_bkgd", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8473
8480
|
if(ic.opts['background'] == 'black') {
|
|
8474
8481
|
ic.setStyleCls.setBackground('white');
|
|
8475
8482
|
}
|
|
@@ -8478,19 +8485,19 @@ class ClickMenu {
|
|
|
8478
8485
|
}
|
|
8479
8486
|
});
|
|
8480
8487
|
|
|
8481
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdGrey", "click", function(e) { let ic = me.icn3d;
|
|
8488
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdGrey", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8482
8489
|
ic.setStyleCls.setBackground('grey');
|
|
8483
8490
|
});
|
|
8484
8491
|
|
|
8485
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_bkgdWhite", "#" + me.pre + "tool_bkgdWhite"], "click", function(e) { let ic = me.icn3d;
|
|
8492
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_bkgdWhite", "#" + me.pre + "tool_bkgdWhite"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8486
8493
|
ic.setStyleCls.setBackground('white');
|
|
8487
8494
|
});
|
|
8488
8495
|
|
|
8489
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdTransparent", "click", function(e) { let ic = me.icn3d;
|
|
8496
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdTransparent", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8490
8497
|
ic.setStyleCls.setBackground('transparent');
|
|
8491
8498
|
});
|
|
8492
8499
|
|
|
8493
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showfogYes", "click", function(e) { let ic = me.icn3d;
|
|
8500
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showfogYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8494
8501
|
//ic.setOptionCls.setOption('fog', 'yes');
|
|
8495
8502
|
ic.opts['fog'] = 'yes';
|
|
8496
8503
|
ic.fogCls.setFog(true);
|
|
@@ -8498,7 +8505,7 @@ class ClickMenu {
|
|
|
8498
8505
|
thisClass.setLogCmd('set fog on', true);
|
|
8499
8506
|
});
|
|
8500
8507
|
|
|
8501
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showfogNo", "click", function(e) { let ic = me.icn3d;
|
|
8508
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showfogNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8502
8509
|
//ic.setOptionCls.setOption('fog', 'no');
|
|
8503
8510
|
ic.opts['fog'] = 'no';
|
|
8504
8511
|
ic.fogCls.setFog(true);
|
|
@@ -8506,22 +8513,22 @@ class ClickMenu {
|
|
|
8506
8513
|
thisClass.setLogCmd('set fog off', true);
|
|
8507
8514
|
});
|
|
8508
8515
|
|
|
8509
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showslabYes", "click", function(e) { let ic = me.icn3d;
|
|
8516
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showslabYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8510
8517
|
ic.setOptionCls.setOption('slab', 'yes');
|
|
8511
8518
|
thisClass.setLogCmd('set slab on', true);
|
|
8512
8519
|
});
|
|
8513
8520
|
|
|
8514
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showslabNo", "click", function(e) { let ic = me.icn3d;
|
|
8521
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showslabNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8515
8522
|
ic.setOptionCls.setOption('slab', 'no');
|
|
8516
8523
|
thisClass.setLogCmd('set slab off', true);
|
|
8517
8524
|
});
|
|
8518
8525
|
|
|
8519
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisYes", "click", function(e) { let ic = me.icn3d;
|
|
8526
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8520
8527
|
ic.setOptionCls.setOption('axis', 'yes');
|
|
8521
8528
|
thisClass.setLogCmd('set axis on', true);
|
|
8522
8529
|
});
|
|
8523
8530
|
|
|
8524
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisSel", "click", function(e) { let ic = me.icn3d;
|
|
8531
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisSel", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8525
8532
|
ic.pc1 = true;
|
|
8526
8533
|
|
|
8527
8534
|
ic.axesCls.setPc1Axes();
|
|
@@ -8529,7 +8536,7 @@ class ClickMenu {
|
|
|
8529
8536
|
});
|
|
8530
8537
|
|
|
8531
8538
|
|
|
8532
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisNo", "click", function(e) { let ic = me.icn3d;
|
|
8539
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8533
8540
|
ic.pc1 = false;
|
|
8534
8541
|
ic.axes = [];
|
|
8535
8542
|
|
|
@@ -8538,37 +8545,37 @@ class ClickMenu {
|
|
|
8538
8545
|
thisClass.setLogCmd('set axis off', true);
|
|
8539
8546
|
});
|
|
8540
8547
|
|
|
8541
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_symmetry", "click", async function(e) { let ic = me.icn3d;
|
|
8548
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_symmetry", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8542
8549
|
ic.bAxisOnly = false;
|
|
8543
8550
|
await ic.symdCls.retrieveSymmetry(Object.keys(ic.structures)[0]);
|
|
8544
8551
|
//me.htmlCls.dialogCls.openDlg('dl_symmetry', 'Symmetry');
|
|
8545
8552
|
});
|
|
8546
8553
|
|
|
8547
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_symd", "click", async function(e) { let ic = me.icn3d;
|
|
8554
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_symd", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8548
8555
|
ic.bAxisOnly = false;
|
|
8549
8556
|
await ic.symdCls.retrieveSymd();
|
|
8550
8557
|
ic.bSymd = true;
|
|
8551
8558
|
|
|
8552
8559
|
thisClass.setLogCmd('symd symmetry', true);
|
|
8553
8560
|
});
|
|
8554
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_clear_sym", "click", function(e) { let ic = me.icn3d;
|
|
8561
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_clear_sym", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8555
8562
|
ic.symdArray = [];
|
|
8556
8563
|
ic.drawCls.draw();
|
|
8557
8564
|
thisClass.setLogCmd('clear symd symmetry', true);
|
|
8558
8565
|
});
|
|
8559
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_axes_only", "click", function(e) { let ic = me.icn3d;
|
|
8566
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_axes_only", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8560
8567
|
ic.bAxisOnly = true;
|
|
8561
8568
|
ic.drawCls.draw();
|
|
8562
8569
|
thisClass.setLogCmd('show axis', true);
|
|
8563
8570
|
});
|
|
8564
8571
|
|
|
8565
8572
|
|
|
8566
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_area", "click", function(e) { let ic = me.icn3d;
|
|
8573
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_area", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8567
8574
|
ic.analysisCls.calculateArea();
|
|
8568
8575
|
thisClass.setLogCmd('area', true);
|
|
8569
8576
|
});
|
|
8570
8577
|
|
|
8571
|
-
me.myEventCls.onIds("#" + me.pre + "applysymmetry", "click", function(e) { let ic = me.icn3d;
|
|
8578
|
+
me.myEventCls.onIds("#" + me.pre + "applysymmetry", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8572
8579
|
ic.bAxisOnly = false;
|
|
8573
8580
|
|
|
8574
8581
|
let title = $("#" + me.pre + "selectSymmetry" ).val();
|
|
@@ -8578,14 +8585,14 @@ class ClickMenu {
|
|
|
8578
8585
|
ic.drawCls.draw();
|
|
8579
8586
|
thisClass.setLogCmd('symmetry ' + title, true);
|
|
8580
8587
|
});
|
|
8581
|
-
me.myEventCls.onIds("#" + me.pre + "clearsymmetry", "click", function(e) { let ic = me.icn3d;
|
|
8588
|
+
me.myEventCls.onIds("#" + me.pre + "clearsymmetry", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8582
8589
|
let title = 'none';
|
|
8583
8590
|
ic.symmetrytitle = undefined;
|
|
8584
8591
|
ic.drawCls.draw();
|
|
8585
8592
|
thisClass.setLogCmd('symmetry ' + title, true);
|
|
8586
8593
|
});
|
|
8587
8594
|
|
|
8588
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_hbondsYes", "#" + me.pre + "hbondsYes"], "click", function(e) { let ic = me.icn3d;
|
|
8595
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_hbondsYes", "#" + me.pre + "hbondsYes"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8589
8596
|
thisClass.SetChainsAdvancedMenu();
|
|
8590
8597
|
|
|
8591
8598
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
@@ -8602,17 +8609,17 @@ class ClickMenu {
|
|
|
8602
8609
|
$("#" + me.pre + "atomsCustomHbond2").resizable();
|
|
8603
8610
|
});
|
|
8604
8611
|
|
|
8605
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_contactmap"], "click", function(e) { me.icn3d;
|
|
8612
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_contactmap"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
8606
8613
|
me.htmlCls.dialogCls.openDlg('dl_contact', 'Set contact map');
|
|
8607
8614
|
});
|
|
8608
8615
|
|
|
8609
8616
|
|
|
8610
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_hbondsNo", "click", function(e) { let ic = me.icn3d;
|
|
8617
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_hbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8611
8618
|
ic.showInterCls.hideHbondsContacts();
|
|
8612
8619
|
ic.drawCls.draw();
|
|
8613
8620
|
});
|
|
8614
8621
|
|
|
8615
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerYes", "click", function(e) { let ic = me.icn3d;
|
|
8622
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8616
8623
|
let select = "stabilizer";
|
|
8617
8624
|
ic.threeDPrintCls.addStabilizer();
|
|
8618
8625
|
ic.threeDPrintCls.prepareFor3Dprint();
|
|
@@ -8620,14 +8627,14 @@ class ClickMenu {
|
|
|
8620
8627
|
thisClass.setLogCmd(select, true);
|
|
8621
8628
|
});
|
|
8622
8629
|
|
|
8623
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerNo", "click", function(e) { let ic = me.icn3d;
|
|
8630
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8624
8631
|
let select = "set stabilizer off";
|
|
8625
8632
|
thisClass.setLogCmd(select, true);
|
|
8626
8633
|
ic.threeDPrintCls.hideStabilizer();
|
|
8627
8634
|
ic.drawCls.draw();
|
|
8628
8635
|
});
|
|
8629
8636
|
|
|
8630
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerOne", "click", function(e) { let ic = me.icn3d;
|
|
8637
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerOne", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8631
8638
|
me.htmlCls.dialogCls.openDlg('dl_stabilizer', 'Add One Stabilizer');
|
|
8632
8639
|
ic.pk = 1;
|
|
8633
8640
|
ic.opts['pk'] = 'atom';
|
|
@@ -8635,7 +8642,7 @@ class ClickMenu {
|
|
|
8635
8642
|
ic.pAtomNum = 0;
|
|
8636
8643
|
});
|
|
8637
8644
|
|
|
8638
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerRmOne", "click", function(e) { let ic = me.icn3d;
|
|
8645
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerRmOne", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8639
8646
|
me.htmlCls.dialogCls.openDlg('dl_stabilizer_rm', 'Remove One Stabilizer');
|
|
8640
8647
|
ic.pk = 1;
|
|
8641
8648
|
ic.opts['pk'] = 'atom';
|
|
@@ -8643,27 +8650,27 @@ class ClickMenu {
|
|
|
8643
8650
|
ic.pAtomNum = 0;
|
|
8644
8651
|
});
|
|
8645
8652
|
|
|
8646
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_thicknessSet", "click", function(e) { me.icn3d;
|
|
8653
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_thicknessSet", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8647
8654
|
me.htmlCls.dialogCls.openDlg('dl_thickness', 'Set Thickness for 3D Printing');
|
|
8648
8655
|
});
|
|
8649
8656
|
|
|
8650
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_setThickness", "click", function(e) { me.icn3d;
|
|
8657
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_setThickness", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8651
8658
|
me.htmlCls.dialogCls.openDlg('dl_thickness2', 'Style Preferences');
|
|
8652
8659
|
});
|
|
8653
8660
|
|
|
8654
8661
|
|
|
8655
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsYes", "click", function(e) { let ic = me.icn3d;
|
|
8662
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8656
8663
|
let select = "disulfide bonds";
|
|
8657
8664
|
thisClass.setLogCmd(select, true);
|
|
8658
8665
|
ic.showInterCls.showSsbonds();
|
|
8659
8666
|
});
|
|
8660
8667
|
|
|
8661
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsExport", "click", function(e) { let ic = me.icn3d;
|
|
8668
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsExport", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8662
8669
|
ic.viewInterPairsCls.exportSsbondPairs();
|
|
8663
8670
|
thisClass.setLogCmd("export disulfide bond pairs", false);
|
|
8664
8671
|
});
|
|
8665
8672
|
|
|
8666
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsNo", "click", function(e) { let ic = me.icn3d;
|
|
8673
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8667
8674
|
ic.opts["ssbonds"] = "no";
|
|
8668
8675
|
let select = "set disulfide bonds off";
|
|
8669
8676
|
thisClass.setLogCmd(select, true);
|
|
@@ -8671,7 +8678,7 @@ class ClickMenu {
|
|
|
8671
8678
|
ic.setOptionCls.setStyle('sidec', 'nothing');
|
|
8672
8679
|
});
|
|
8673
8680
|
|
|
8674
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsYes", "click", function(e) { let ic = me.icn3d;
|
|
8681
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8675
8682
|
let select = "cross linkage";
|
|
8676
8683
|
thisClass.setLogCmd(select, true);
|
|
8677
8684
|
//ic.bShowCrossResidueBond = true;
|
|
@@ -8679,12 +8686,12 @@ class ClickMenu {
|
|
|
8679
8686
|
ic.showInterCls.showClbonds();
|
|
8680
8687
|
});
|
|
8681
8688
|
|
|
8682
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsExport", "click", function(e) { let ic = me.icn3d;
|
|
8689
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsExport", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8683
8690
|
ic.viewInterPairsCls.exportClbondPairs();
|
|
8684
8691
|
thisClass.setLogCmd("export cross linkage pairs", false);
|
|
8685
8692
|
});
|
|
8686
8693
|
|
|
8687
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsNo", "click", function(e) { let ic = me.icn3d;
|
|
8694
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
8688
8695
|
ic.opts["clbonds"] = "no";
|
|
8689
8696
|
let select = "set cross linkage off";
|
|
8690
8697
|
thisClass.setLogCmd(select, true);
|
|
@@ -8731,6 +8738,11 @@ class ClickMenu {
|
|
|
8731
8738
|
}
|
|
8732
8739
|
});
|
|
8733
8740
|
});
|
|
8741
|
+
|
|
8742
|
+
me.myEventCls.onIds("#" + me.pre + "jn_copy", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8743
|
+
let text = $("#" + me.pre + "jn_commands").val();
|
|
8744
|
+
navigator.clipboard.writeText(text);
|
|
8745
|
+
});
|
|
8734
8746
|
}
|
|
8735
8747
|
|
|
8736
8748
|
//Show the input command in log. If "bSetCommand" is true, the command will be saved in the state file as well.
|
|
@@ -10285,8 +10297,8 @@ class SetMenu {
|
|
|
10285
10297
|
//}
|
|
10286
10298
|
|
|
10287
10299
|
//!!!
|
|
10288
|
-
|
|
10289
|
-
|
|
10300
|
+
html += this.getRadio('mn4_clr', 'mn4_clrIgstrand', 'Ig Strand', undefined, undefined, 2);
|
|
10301
|
+
html += this.getRadio('mn4_clr', 'mn4_clrIgproto', 'Ig Protodomain', undefined, undefined, 2);
|
|
10290
10302
|
}
|
|
10291
10303
|
else {
|
|
10292
10304
|
//if(!me.cfg.hidelicense) html += this.getRadio('mn4_clr', 'mn1_delphi2', 'DelPhi<br><span style="padding-left:1.5em;">Potential ' + me.htmlCls.licenseStr + '</span>');
|
|
@@ -10416,6 +10428,8 @@ class SetMenu {
|
|
|
10416
10428
|
if(me.cfg.cid === undefined) {
|
|
10417
10429
|
html += this.getRadio('mn6_addlabel', 'mn6_addlabelResidues', 'per Residue', undefined, 1, 2);
|
|
10418
10430
|
html += this.getRadio('mn6_addlabel', 'mn6_addlabelResnum', 'per Residue & Number', undefined, 1, 2);
|
|
10431
|
+
//!!!
|
|
10432
|
+
html += this.getRadio('mn6_addlabel', 'mn6_addlabelRefnum', 'per Reference Number', undefined, 1, 2);
|
|
10419
10433
|
html += this.getRadio('mn6_addlabel', 'mn6_addlabelChains', 'per Chain', undefined, undefined, 2);
|
|
10420
10434
|
html += this.getRadio('mn6_addlabel', 'mn6_addlabelTermini', 'N- & C-Termini', undefined, 1, 2);
|
|
10421
10435
|
}
|
|
@@ -10507,12 +10521,11 @@ class SetMenu {
|
|
|
10507
10521
|
|
|
10508
10522
|
html += "<ul>";
|
|
10509
10523
|
//!!!
|
|
10510
|
-
/*
|
|
10511
10524
|
html += this.getLink('mn6_igrefYes', 'Show Ig Ref. Number', undefined, 2);
|
|
10512
10525
|
html += this.getLink('mn6_igrefNo', 'Hide Ig Ref. Number', undefined, 2);
|
|
10513
10526
|
|
|
10514
10527
|
html += this.getMenuSep();
|
|
10515
|
-
|
|
10528
|
+
|
|
10516
10529
|
html += this.getLink('mn6_customref', 'Custom Ref. Number', undefined, 2);
|
|
10517
10530
|
html += "</ul>";
|
|
10518
10531
|
html += "</li>";
|
|
@@ -11190,6 +11203,7 @@ class Dialog {
|
|
|
11190
11203
|
if(id === me.pre + 'dl_selectannotations' || id === me.pre + 'dl_graph' || id === me.pre + 'dl_linegraph' || id === me.pre + 'dl_scatterplot' || id === me.pre + 'dl_contactmap' || id === me.pre + 'dl_alignerrormap' || id === me.pre + 'dl_interactionsorted' || id === me.pre + 'dl_alignment') {
|
|
11191
11204
|
$( "#" + id ).show();
|
|
11192
11205
|
$( "#" + id + "_nb").show();
|
|
11206
|
+
$( "#" + id + "_title").html(title);
|
|
11193
11207
|
|
|
11194
11208
|
height =(me.htmlCls.HEIGHT) * 0.5;
|
|
11195
11209
|
|
|
@@ -11237,6 +11251,7 @@ class Dialog {
|
|
|
11237
11251
|
if(ic.bRender) {
|
|
11238
11252
|
$( "#" + id ).show();
|
|
11239
11253
|
$( "#" + id + "_nb").show();
|
|
11254
|
+
$( "#" + id + "_title").html(title);
|
|
11240
11255
|
}
|
|
11241
11256
|
|
|
11242
11257
|
height = 'auto';
|
|
@@ -11290,7 +11305,7 @@ class SetDialog {
|
|
|
11290
11305
|
addNotebookTitle(id, title, bAddExtraDiv) { let me = this.icn3dui; me.icn3d;
|
|
11291
11306
|
//return '<div id="' + me.pre + id + '_nb" style="display:none; background-color:#1c94c4; width:100%"><span style="color:white; font-weight:bold">' + title + '</span> <span onclick="$(\'#' + me.pre + id + '\').hide(); return false;" class="icn3d-nbclose" title="Close">x</span></div>';
|
|
11292
11307
|
|
|
11293
|
-
let html = '<div id="' + me.pre + id + '_nb" style="display:none; background-color:#5C9CCC; width:100%"><span style="color:white; font-weight:bold">' + title + '</span> <div onclick="$(\'#' + me.pre + id + '\').hide(); return false;" class="icn3d-nbclose ui-icon ui-icon-close" title="Close"></div></div>';
|
|
11308
|
+
let html = '<div id="' + me.pre + id + '_nb" style="display:none; background-color:#5C9CCC; width:100%"><span id="' + me.pre + id + '_title" style="color:white; font-weight:bold">' + title + '</span> <div onclick="$(\'#' + me.pre + id + '\').hide(); return false;" class="icn3d-nbclose ui-icon ui-icon-close" title="Close"></div></div>';
|
|
11294
11309
|
|
|
11295
11310
|
if(bAddExtraDiv) {
|
|
11296
11311
|
html += '<div id="' + me.pre + id + '_html"></div>';
|
|
@@ -12428,10 +12443,23 @@ class SetDialog {
|
|
|
12428
12443
|
|
|
12429
12444
|
html += me.htmlCls.divStr + "dl_copyurl' style='width:520px;' class='" + dialogClass + "'>";
|
|
12430
12445
|
html += this.addNotebookTitle('dl_copyurl', 'Share Link');
|
|
12446
|
+
html += "<br>";
|
|
12447
|
+
html += "1. <b>URLs Used in Browsers</b><br><br>";
|
|
12448
|
+
|
|
12431
12449
|
html += "Please copy one of the URLs below. They show the same result.<br>(To add a title to share link, click \"Windows > Your Note\" and click \"File > Share Link\" again.)<br><br>";
|
|
12432
12450
|
html += "Original URL with commands: <br><textarea id='" + me.pre + "ori_url' rows='4' style='width:100%'></textarea><br><br>";
|
|
12433
|
-
|
|
12434
|
-
|
|
12451
|
+
if(!me.cfg.notebook) {
|
|
12452
|
+
html += "Lifelong Short URL:(To replace this URL, send a pull request to update share.html at <a href='https://github.com/ncbi/icn3d' target='_blank'>iCn3D GitHub</a>)<br>" + me.htmlCls.inputTextStr + "id='" + me.pre + "short_url' value='' style='width:100%'><br><br>";
|
|
12453
|
+
html += "Lifelong Short URL + Window Title:(To update the window title, click \"Analysis > Your Note/Window Title\".)<br>" + me.htmlCls.inputTextStr + "id='" + me.pre + "short_url_title' value='' style='width:100%'><br><br>";
|
|
12454
|
+
}
|
|
12455
|
+
|
|
12456
|
+
html += "2. <b>Commands Used in Jupyter Noteboook</b><br><br>";
|
|
12457
|
+
html += "Please copy the following commands into a cell in Jupyter Notebook to show the same result.<br><br>";
|
|
12458
|
+
|
|
12459
|
+
html += '<textarea id="' + me.pre + 'jn_commands" rows="4" style="width:100%"></textarea><br>';
|
|
12460
|
+
|
|
12461
|
+
html += buttonStrTmp + me.pre + 'jn_copy">Copy Commands</button><br>';
|
|
12462
|
+
|
|
12435
12463
|
html += "</div>";
|
|
12436
12464
|
|
|
12437
12465
|
html += me.htmlCls.divStr + "dl_selectannotations' class='" + dialogClass + " icn3d-annotation' style='background-color:white;'>";
|
|
@@ -31619,7 +31647,7 @@ class ResidueLabels {
|
|
|
31619
31647
|
|
|
31620
31648
|
//Add labels for all residues containing the input "atoms". The labels are one-letter residue abbreviations.
|
|
31621
31649
|
//If "bSchematic" is true, the labels are in circles. Otherwise, they are in round-corner rectangles.
|
|
31622
|
-
addResidueLabels(atoms, bSchematic, alpha, bNumber) { let ic = this.icn3d, me = ic.icn3dui;
|
|
31650
|
+
addResidueLabels(atoms, bSchematic, alpha, bNumber, bRefnum) { let ic = this.icn3d, me = ic.icn3dui;
|
|
31623
31651
|
if(me.bNode) return;
|
|
31624
31652
|
|
|
31625
31653
|
let size = 18;
|
|
@@ -31659,6 +31687,15 @@ class ResidueLabels {
|
|
|
31659
31687
|
label.text += atom.resi;
|
|
31660
31688
|
//label.factor = 0.3;
|
|
31661
31689
|
}
|
|
31690
|
+
else if(bRefnum) {
|
|
31691
|
+
let resid = atom.structure + '_' + atom.chain + '_' + atom.resi;
|
|
31692
|
+
let refnum = '';
|
|
31693
|
+
if(ic.resid2refnum[resid]) {
|
|
31694
|
+
refnum = (ic.resid2refnum[resid].substr(0, 1) == ' ') ? '' : ic.resid2refnum[resid];
|
|
31695
|
+
}
|
|
31696
|
+
|
|
31697
|
+
label.text = refnum;
|
|
31698
|
+
}
|
|
31662
31699
|
label.size = size;
|
|
31663
31700
|
label.factor = 0.3;
|
|
31664
31701
|
|
|
@@ -31669,6 +31706,9 @@ class ResidueLabels {
|
|
|
31669
31706
|
if(bNumber) {
|
|
31670
31707
|
label.color = (ic.opts.background != 'black') ? ic.colorWhitebkgd : ic.colorBlackbkgd;
|
|
31671
31708
|
}
|
|
31709
|
+
else if(bRefnum) {
|
|
31710
|
+
label.color = '#00FFFF';
|
|
31711
|
+
}
|
|
31672
31712
|
else {
|
|
31673
31713
|
label.color = (atomColorStr === "CCCCCC" || atomColorStr === "C8C8C8") ? "#888888" : "#" + atomColorStr;
|
|
31674
31714
|
}
|
|
@@ -31874,6 +31914,7 @@ class Impostor {
|
|
|
31874
31914
|
|
|
31875
31915
|
setParametersForShader (opacity) { let ic = this.icn3d, me = ic.icn3dui;
|
|
31876
31916
|
let background = me.parasCls.backgroundColors[ic.opts.background.toLowerCase()];
|
|
31917
|
+
//if(!background) background = me.parasCls.thr(0x000000);
|
|
31877
31918
|
|
|
31878
31919
|
let near = 2.5*ic.maxD;
|
|
31879
31920
|
let far = 4*ic.maxD;
|
|
@@ -32878,6 +32919,8 @@ class Alternate {
|
|
|
32878
32919
|
// change the display atom when alternating
|
|
32879
32920
|
//Show structures one by one.
|
|
32880
32921
|
alternateStructures() { let ic = this.icn3d, me = ic.icn3dui;
|
|
32922
|
+
//ic.transformCls.zoominSelection();
|
|
32923
|
+
|
|
32881
32924
|
// default ic.ALTERNATE_STRUCTURE = -1
|
|
32882
32925
|
if(ic.ALTERNATE_STRUCTURE == -1) {
|
|
32883
32926
|
ic.viewSelectionAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
|
|
@@ -33060,7 +33103,7 @@ class Alternate {
|
|
|
33060
33103
|
|
|
33061
33104
|
// show membranes
|
|
33062
33105
|
if(ic.bOpm) {
|
|
33063
|
-
//if(window.dialog) window.dialog.dialog( "close" );
|
|
33106
|
+
//if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
|
|
33064
33107
|
|
|
33065
33108
|
let html = me.utilsCls.getMemDesc();
|
|
33066
33109
|
$("#" + ic.pre + "dl_rmsd_html").html(html);
|
|
@@ -36278,11 +36321,13 @@ class SetOption {
|
|
|
36278
36321
|
bClose = true;
|
|
36279
36322
|
}
|
|
36280
36323
|
|
|
36281
|
-
|
|
36282
|
-
|
|
36324
|
+
if(html) {
|
|
36325
|
+
$("#" + me.pre + "dl_legend_html").html(html);
|
|
36326
|
+
me.htmlCls.dialogCls.openDlg('dl_legend', 'Color Legend');
|
|
36327
|
+
}
|
|
36283
36328
|
|
|
36284
36329
|
if(bClose) {
|
|
36285
|
-
if(window.dialog) window.dialog.dialog( "close" );
|
|
36330
|
+
if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
|
|
36286
36331
|
}
|
|
36287
36332
|
}
|
|
36288
36333
|
|
|
@@ -36469,23 +36514,27 @@ class SetOption {
|
|
|
36469
36514
|
let html = '';
|
|
36470
36515
|
|
|
36471
36516
|
const name2color = {
|
|
36517
|
+
"<b>Protodomain 1</b>": "",
|
|
36472
36518
|
"A Strand": "0000FF",
|
|
36473
36519
|
"B Strand": "006400",
|
|
36474
36520
|
"C Strand": "FFFF00", //"F0E68C",
|
|
36475
36521
|
"C' Strand": "FFA500",
|
|
36522
|
+
"<br><b>Linker</b>": "",
|
|
36476
36523
|
"C'' Strand": "FF0000",
|
|
36524
|
+
"<br><b>Protodomain 2</b>": "",
|
|
36477
36525
|
"D Strand": "0000FF",
|
|
36478
36526
|
"E Strand": "006400",
|
|
36479
36527
|
"F Strand": "FFFF00", //"F0E68C",
|
|
36480
36528
|
"G Strand": "FFA500",
|
|
36529
|
+
"": "",
|
|
36481
36530
|
"Loop": "CCCCCC"
|
|
36482
36531
|
};
|
|
36483
36532
|
|
|
36484
|
-
html += "<div>";
|
|
36533
|
+
html += "<div>A protodomain is a supersecondary structure <br>that by its duplication, symmetry operations <br>can generate a structural domain.<br><br>";
|
|
36485
36534
|
for (let name in name2color) {
|
|
36486
36535
|
let color = name2color[name];
|
|
36487
36536
|
html += "<span>";
|
|
36488
|
-
html += "<div style='width: 10px; height: 10px; background-color:#" + color + "; border: 0px;display:inline-block;' ></div> ";
|
|
36537
|
+
if(color) html += "<div style='width: 10px; height: 10px; background-color:#" + color + "; border: 0px;display:inline-block;' ></div> ";
|
|
36489
36538
|
html += name;
|
|
36490
36539
|
html += "</span><br>";
|
|
36491
36540
|
}
|
|
@@ -38733,7 +38782,7 @@ class Domain3d {
|
|
|
38733
38782
|
this.nc_fact = 0.0; // size factor for internal contacts
|
|
38734
38783
|
|
|
38735
38784
|
// added by Jiyao
|
|
38736
|
-
this.min_contacts =
|
|
38785
|
+
this.min_contacts = 3; // minimum number of contacts to be considered as neighbors
|
|
38737
38786
|
|
|
38738
38787
|
//let this.elements[2*this.MAX_SSE]; // sets of this.elements to be split
|
|
38739
38788
|
this.elements = [];
|
|
@@ -39788,7 +39837,7 @@ class Domain3d {
|
|
|
39788
39837
|
}
|
|
39789
39838
|
}
|
|
39790
39839
|
}
|
|
39791
|
-
|
|
39840
|
+
|
|
39792
39841
|
return {subdomains: subdomains, substruct: substruct, pos2resi:pos2resi };
|
|
39793
39842
|
} // end c2b_NewSplitChain
|
|
39794
39843
|
|
|
@@ -42688,7 +42737,7 @@ class ShowSeq {
|
|
|
42688
42737
|
let strand2len_start_stop = {};
|
|
42689
42738
|
let prevRefnumStr, prevPostfix, prevRefnum;
|
|
42690
42739
|
|
|
42691
|
-
// sometimes one chain may have several Ig domains,set
|
|
42740
|
+
// sometimes one chain may have several Ig domains,set an index for each IgDomain
|
|
42692
42741
|
let index = 1, prevStrandPostfix = '', bStart = false;
|
|
42693
42742
|
for(let i = 0, il = giSeq.length; i < il; ++i) {
|
|
42694
42743
|
let currResi = ic.ParserUtilsCls.getResi(chnid, i);
|
|
@@ -52602,7 +52651,7 @@ class ParserUtils {
|
|
|
52602
52651
|
me.htmlCls.clickMenuCls.setLogCmd("realignment RMSD: " + rmsd.toPrecision(4), false);
|
|
52603
52652
|
let html = "<br><b>Realignment RMSD</b>: " + rmsd.toPrecision(4) + " Å<br><br>";
|
|
52604
52653
|
if(ic.bAfMem) {
|
|
52605
|
-
//if(window.dialog) window.dialog.dialog( "close" );
|
|
52654
|
+
//if(window.dialog && window.dialog.hasClass('ui-dialog-content')) window.dialog.dialog( "close" );
|
|
52606
52655
|
html += me.utilsCls.getMemDesc();
|
|
52607
52656
|
}
|
|
52608
52657
|
$("#" + ic.pre + "dl_rmsd_html").html(html);
|
|
@@ -57416,6 +57465,11 @@ class ApplyCommand {
|
|
|
57416
57465
|
|
|
57417
57466
|
ic.drawCls.draw();
|
|
57418
57467
|
}
|
|
57468
|
+
else if(command == 'add reference number labels') {
|
|
57469
|
+
ic.residueLabelsCls.addResidueLabels(ic.hAtoms, undefined, undefined, undefined, true);
|
|
57470
|
+
|
|
57471
|
+
ic.drawCls.draw();
|
|
57472
|
+
}
|
|
57419
57473
|
else if(command == 'add atom labels') {
|
|
57420
57474
|
ic.residueLabelsCls.addAtomLabels(ic.hAtoms);
|
|
57421
57475
|
|
|
@@ -62862,7 +62916,8 @@ class Dssp {
|
|
|
62862
62916
|
let startResi = segArray[m];
|
|
62863
62917
|
let endResi = segArray[m+1];
|
|
62864
62918
|
for(let n = parseInt(startResi); n <= parseInt(endResi); ++n) {
|
|
62865
|
-
let
|
|
62919
|
+
let residNCBI = chainid + '_' + n;
|
|
62920
|
+
let resid = ic.ncbi2resid[residNCBI];
|
|
62866
62921
|
domainAtoms = me.hashUtilsCls.unionHash(domainAtoms, ic.residues[resid]);
|
|
62867
62922
|
ic.resid2domainid[resid] = chainid + '-' + k;
|
|
62868
62923
|
}
|
|
@@ -65366,14 +65421,17 @@ class Diagram2d {
|
|
|
65366
65421
|
|
|
65367
65422
|
ic.hlUpdateCls.updateHlAll();
|
|
65368
65423
|
|
|
65424
|
+
ic.transformCls.zoominSelection();
|
|
65425
|
+
|
|
65369
65426
|
me.htmlCls.clickMenuCls.setLogCmd(select, true);
|
|
65370
65427
|
});
|
|
65371
65428
|
|
|
65372
65429
|
//$("#" + ic.pre + "dl_scatterplot .icn3d-interaction", "click", function(e) { let ic = this.icn3d, me = ic.icn3dui;
|
|
65373
|
-
$(document).on("click", "#" + ic.pre + "dl_scatterplot .icn3d-interaction", function(e) { thisClass.icn3d;
|
|
65430
|
+
$(document).on("click", "#" + ic.pre + "dl_scatterplot .icn3d-interaction", function(e) { let ic = thisClass.icn3d;
|
|
65374
65431
|
e.stopImmediatePropagation();
|
|
65375
65432
|
|
|
65376
65433
|
thisClass.clickInteraction(this);
|
|
65434
|
+
ic.transformCls.zoominSelection();
|
|
65377
65435
|
});
|
|
65378
65436
|
|
|
65379
65437
|
$(document).on("click", "#" + ic.pre + "dl_contactmap .icn3d-interaction", function(e) { thisClass.icn3d;
|
|
@@ -67412,7 +67470,6 @@ class SaveFile {
|
|
|
67412
67470
|
let bMulStruc =(struArray.length > 1) ? true : false;
|
|
67413
67471
|
|
|
67414
67472
|
let molNum = 1, prevStru = '', prevChain = '';
|
|
67415
|
-
//pdbStr += '\n';
|
|
67416
67473
|
|
|
67417
67474
|
let addedChainResiHash = {};
|
|
67418
67475
|
for(let i in atomHash) {
|
|
@@ -67432,20 +67489,24 @@ class SaveFile {
|
|
|
67432
67489
|
|
|
67433
67490
|
// add header
|
|
67434
67491
|
let mutantInfo = (chainResi2pdb) ? "Mutated chain_residue " + Object.keys(chainResi2pdb) + '; ' : '';
|
|
67435
|
-
if(!bNoHeader)
|
|
67492
|
+
if(!bNoHeader) {
|
|
67493
|
+
pdbStr += this.getPDBHeader(molNum - 1, stru2header, mutantInfo, pdbid);
|
|
67494
|
+
//pdbStr += '\n'; // separate from incomplete secondary structures
|
|
67495
|
+
}
|
|
67436
67496
|
|
|
67437
|
-
prevStru = atom.structure;
|
|
67497
|
+
//prevStru = atom.structure;
|
|
67438
67498
|
++molNum;
|
|
67439
67499
|
}
|
|
67440
|
-
else {
|
|
67441
|
-
if(atom.chain != prevChain) {
|
|
67500
|
+
//else {
|
|
67501
|
+
//if(atom.chain != prevChain) {
|
|
67502
|
+
if(atom.chain != prevChain && atom.structure == prevStru) {
|
|
67442
67503
|
// add a line "TER" to work with scap/profix to add missing atoms
|
|
67443
67504
|
if(prevChain) {
|
|
67444
67505
|
pdbStr += 'TER\n';
|
|
67445
67506
|
}
|
|
67446
|
-
prevChain = atom.chain;
|
|
67507
|
+
//prevChain = atom.chain;
|
|
67447
67508
|
}
|
|
67448
|
-
}
|
|
67509
|
+
//}
|
|
67449
67510
|
|
|
67450
67511
|
let chainResi = atom.chain + '_' + atom.resi;
|
|
67451
67512
|
if(chainResi2pdb && chainResi2pdb.hasOwnProperty(chainResi)) {
|
|
@@ -67610,6 +67671,9 @@ class SaveFile {
|
|
|
67610
67671
|
}
|
|
67611
67672
|
|
|
67612
67673
|
pdbStr += line + '\n';
|
|
67674
|
+
|
|
67675
|
+
prevStru = atom.structure;
|
|
67676
|
+
prevChain = atom.chain;
|
|
67613
67677
|
}
|
|
67614
67678
|
|
|
67615
67679
|
pdbStr += connStr;
|
|
@@ -67873,6 +67937,7 @@ class ShareLink {
|
|
|
67873
67937
|
//file (the comand history) is concatenated in the URL to show the current state.
|
|
67874
67938
|
async shareLink(bPngHtml, bPngOnly) { let ic = this.icn3d, me = ic.icn3dui;
|
|
67875
67939
|
let url = this.shareLinkUrl();
|
|
67940
|
+
|
|
67876
67941
|
let bTooLong =(url.length > 4000 || url.indexOf('http') !== 0) ? true : false;
|
|
67877
67942
|
if(bPngHtml) url += "&random=" + parseInt(Math.random() * 1000); // generate a new shorten URL and thus image name everytime
|
|
67878
67943
|
//var inputid =(ic.inputid) ? ic.inputid : "custom";
|
|
@@ -67904,40 +67969,53 @@ class ShareLink {
|
|
|
67904
67969
|
}
|
|
67905
67970
|
}
|
|
67906
67971
|
|
|
67907
|
-
let data = await this.getShareLinkPrms(url, bPngHtml);
|
|
67908
|
-
|
|
67909
67972
|
let shorturl = 'Problem in getting shortened URL';
|
|
67910
|
-
|
|
67911
|
-
|
|
67912
|
-
|
|
67913
|
-
|
|
67914
|
-
|
|
67915
|
-
|
|
67916
|
-
|
|
67917
|
-
|
|
67918
|
-
|
|
67919
|
-
|
|
67920
|
-
|
|
67921
|
-
|
|
67922
|
-
|
|
67923
|
-
|
|
67924
|
-
|
|
67925
|
-
|
|
67926
|
-
|
|
67927
|
-
|
|
67928
|
-
|
|
67929
|
-
|
|
67930
|
-
|
|
67931
|
-
|
|
67932
|
-
|
|
67933
|
-
|
|
67934
|
-
|
|
67935
|
-
|
|
67936
|
-
|
|
67973
|
+
|
|
67974
|
+
if(!me.cfg.notebook) {
|
|
67975
|
+
let data = await this.getShareLinkPrms(url, bPngHtml);
|
|
67976
|
+
|
|
67977
|
+
if(data.shortLink !== undefined) {
|
|
67978
|
+
shorturl = data.shortLink;
|
|
67979
|
+
if(bPngHtml) { // save png and corresponding html
|
|
67980
|
+
let strArray = shorturl.split("/");
|
|
67981
|
+
let shortName = strArray[strArray.length - 1];
|
|
67982
|
+
ic.saveFileCls.saveFile(inputid + '-' + shortName + '.png', 'png');
|
|
67983
|
+
let text = '<div style="float:left; border: solid 1px #0000ff; padding: 5px; margin: 10px; text-align:center;">';
|
|
67984
|
+
text += '<a href="https://structure.ncbi.nlm.nih.gov/icn3d/share.html?' + shortName + '" target="_blank">';
|
|
67985
|
+
text += '<img style="height:300px" src ="' + inputid + '-' + shortName + '.png"><br>\n';
|
|
67986
|
+
text += '<!--Start of your comments==================-->\n';
|
|
67987
|
+
let yournote =(ic.yournote) ? ': ' + ic.yournote.replace(/\n/g, "<br>").replace(/; /g, ", ") : '';
|
|
67988
|
+
text += 'PDB ' + inputid.toUpperCase() + yournote + '\n';
|
|
67989
|
+
text += '<!--End of your comments====================-->\n';
|
|
67990
|
+
text += '</a>';
|
|
67991
|
+
text += '</div>\n\n';
|
|
67992
|
+
ic.saveFileCls.saveFile(inputid + '-' + shortName + '.html', 'html', text);
|
|
67993
|
+
}
|
|
67994
|
+
}
|
|
67995
|
+
|
|
67996
|
+
if(bPngHtml && data.shortLink === undefined) {
|
|
67997
|
+
ic.saveFileCls.saveFile(inputid + '_icn3d_loadable.png', 'png');
|
|
67998
|
+
}
|
|
67999
|
+
|
|
68000
|
+
//shorturl: https://icn3d.page.link/NvbAh1Vmiwc4bgX87
|
|
68001
|
+
let urlArray = shorturl.split('page.link/');
|
|
68002
|
+
//if(urlArray.length == 2) shorturl = me.htmlCls.baseUrl + 'icn3d/share.html?' + urlArray[1];
|
|
68003
|
+
// When the baseURL is structure.ncbi.nlm.nih.gov, mmcifparser.cgi has a problem to past posted data in Mac/iphone
|
|
68004
|
+
// So the base URL is still www.ncbi.nlm.nih.gov/Structure,just use short URL here
|
|
68005
|
+
if(urlArray.length == 2) shorturl = 'https://structure.ncbi.nlm.nih.gov/icn3d/share.html?' + urlArray[1];
|
|
68006
|
+
|
|
68007
|
+
$("#" + ic.pre + "short_url").val(shorturl);
|
|
68008
|
+
$("#" + ic.pre + "short_url_title").val(shorturl + '&t=' + ic.yournote);
|
|
68009
|
+
}
|
|
68010
|
+
|
|
68011
|
+
let outputCmd = this.shareLinkUrl(undefined, true);
|
|
68012
|
+
let idStr = (me.cfg.url) ? "url=" + me.cfg.url : "mmdbafid=" + ic.inputid;
|
|
68013
|
+
let jnCmd = "view = icn3dpy.view(q='" + idStr + "',command='" + outputCmd + "')\nview";
|
|
68014
|
+
$("#" + ic.pre + "jn_commands").val(jnCmd);
|
|
68015
|
+
|
|
67937
68016
|
$("#" + ic.pre + "ori_url").val(url);
|
|
67938
|
-
|
|
67939
|
-
|
|
67940
|
-
if(!bPngHtml) me.htmlCls.dialogCls.openDlg('dl_copyurl', 'Copy a Share Link URL');
|
|
68017
|
+
|
|
68018
|
+
if(!bPngHtml) me.htmlCls.dialogCls.openDlg('dl_copyurl', 'Copy a Share Link URL or Jupyter Notebook Commands');
|
|
67941
68019
|
}
|
|
67942
68020
|
|
|
67943
68021
|
getShareLinkPrms(url, bPngHtml) { let ic = this.icn3d, me = ic.icn3dui;
|
|
@@ -67966,8 +68044,9 @@ class ShareLink {
|
|
|
67966
68044
|
});
|
|
67967
68045
|
}
|
|
67968
68046
|
|
|
67969
|
-
shareLinkUrl(bAllCommands) { let ic = this.icn3d, me = ic.icn3dui;
|
|
68047
|
+
shareLinkUrl(bAllCommands, bOutputCmd) { let ic = this.icn3d, me = ic.icn3dui;
|
|
67970
68048
|
let url = me.htmlCls.baseUrl + "icn3d/full.html?";
|
|
68049
|
+
let outputCmd = '';
|
|
67971
68050
|
if(me.cfg.bSidebyside) url = me.htmlCls.baseUrl + "icn3d/full2.html?";
|
|
67972
68051
|
|
|
67973
68052
|
if(ic.bInputUrlfile) {
|
|
@@ -68070,8 +68149,13 @@ class ShareLink {
|
|
|
68070
68149
|
|
|
68071
68150
|
url += 'command=';
|
|
68072
68151
|
|
|
68073
|
-
|
|
68074
|
-
|
|
68152
|
+
let start;
|
|
68153
|
+
if(me.cfg.notebook) {
|
|
68154
|
+
start =(inparaWithoutCommand !== undefined) ? 1 : 0;
|
|
68155
|
+
}
|
|
68156
|
+
else {
|
|
68157
|
+
start = 0;
|
|
68158
|
+
}
|
|
68075
68159
|
|
|
68076
68160
|
if(bAllCommands || ic.bInputUrlfile) start = 0;
|
|
68077
68161
|
|
|
@@ -68137,17 +68221,18 @@ class ShareLink {
|
|
|
68137
68221
|
prevCommandStr = commandStr;
|
|
68138
68222
|
}
|
|
68139
68223
|
|
|
68140
|
-
url += tmpUrl;
|
|
68141
|
-
|
|
68142
68224
|
// last command
|
|
68143
68225
|
if(prevCommandStr) {
|
|
68144
|
-
if(tmpUrl)
|
|
68145
|
-
if(cntToggle > 0 && cntToggle %2 == 0 && prevCommandStr !== toggleStr)
|
|
68226
|
+
if(tmpUrl) tmpUrl += '; ';
|
|
68227
|
+
if(cntToggle > 0 && cntToggle %2 == 0 && prevCommandStr !== toggleStr) tmpUrl += toggleStr + '; ';
|
|
68146
68228
|
|
|
68147
|
-
|
|
68229
|
+
tmpUrl += prevCommandStr + '|||' + ic.transformCls.getTransformationStr(transformation);
|
|
68148
68230
|
statefile += prevCommandStr + '|||' + ic.transformCls.getTransformationStr(transformation) + '\n';
|
|
68149
68231
|
}
|
|
68150
68232
|
|
|
68233
|
+
url += tmpUrl;
|
|
68234
|
+
outputCmd = tmpUrl;
|
|
68235
|
+
|
|
68151
68236
|
statefile = statefile.replace(/!/g, Object.keys(ic.structures)[0] + '_');
|
|
68152
68237
|
if((ic.bInputfile && !ic.bInputUrlfile) || (ic.bInputUrlfile && ic.bAppend) || url.length > 4000) url = statefile;
|
|
68153
68238
|
let id;
|
|
@@ -68160,7 +68245,7 @@ class ShareLink {
|
|
|
68160
68245
|
url = url.replace(new RegExp('blast_rep_id=!','g'), 'blast_rep_id=' + id + '_');
|
|
68161
68246
|
}
|
|
68162
68247
|
|
|
68163
|
-
return url;
|
|
68248
|
+
return (bOutputCmd) ? outputCmd : url;
|
|
68164
68249
|
}
|
|
68165
68250
|
|
|
68166
68251
|
getPngText() { let ic = this.icn3d; ic.icn3dui;
|
|
@@ -71404,7 +71489,7 @@ iCn3DUI.prototype.show3DStructure = async function(pdbStr) { let me = this;
|
|
|
71404
71489
|
|
|
71405
71490
|
ic.loadCmd = 'load alignment ' + me.cfg.align + ' | parameters ' + me.cfg.inpara;
|
|
71406
71491
|
me.htmlCls.clickMenuCls.setLogCmd(ic.loadCmd, true);
|
|
71407
|
-
if(me.cfg.inpara.indexOf('atype=2') == -1) {
|
|
71492
|
+
if(me.cfg.inpara && me.cfg.inpara.indexOf('atype=2') == -1) {
|
|
71408
71493
|
await ic.alignParserCls.downloadAlignment(me.cfg.align);
|
|
71409
71494
|
}
|
|
71410
71495
|
else {
|