icn3d 3.35.1 → 3.36.1
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 -352
- package/icn3d.min.js +4 -4
- package/icn3d.module.js +453 -352
- package/package.json +1 -1
package/icn3d.js
CHANGED
|
@@ -8923,96 +8923,96 @@ class ClickMenu {
|
|
|
8923
8923
|
let thisClass = this;
|
|
8924
8924
|
//mn 1
|
|
8925
8925
|
// clkMn1_mmtfid: function() {
|
|
8926
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_vastplus", "click", function(e) { me.icn3d;
|
|
8926
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_vastplus", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8927
8927
|
me.htmlCls.dialogCls.openDlg('dl_vastplus', 'Please input PDB ID for VAST+');
|
|
8928
8928
|
});
|
|
8929
8929
|
|
|
8930
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_vast", "click", function(e) { me.icn3d;
|
|
8930
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_vast", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8931
8931
|
me.htmlCls.dialogCls.openDlg('dl_vast', 'Please input chain or PDB file for VAST');
|
|
8932
8932
|
});
|
|
8933
8933
|
|
|
8934
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_foldseek", "click", function(e) { me.icn3d;
|
|
8934
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_foldseek", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8935
8935
|
me.htmlCls.dialogCls.openDlg('dl_foldseek', 'Submit your selection to Foldseek');
|
|
8936
8936
|
});
|
|
8937
8937
|
|
|
8938
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mmtfid", "click", function(e) { me.icn3d;
|
|
8938
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mmtfid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8939
8939
|
me.htmlCls.dialogCls.openDlg('dl_mmtfid', 'Please input BCIF/MMTF ID');
|
|
8940
8940
|
});
|
|
8941
8941
|
|
|
8942
8942
|
// clkMn1_pdbid: function() {
|
|
8943
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_pdbid", "click", function(e) { me.icn3d;
|
|
8943
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_pdbid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8944
8944
|
me.htmlCls.dialogCls.openDlg('dl_pdbid', 'Please input PDB ID');
|
|
8945
8945
|
});
|
|
8946
8946
|
|
|
8947
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_afid", "click", function(e) { me.icn3d;
|
|
8947
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_afid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8948
8948
|
me.htmlCls.dialogCls.openDlg('dl_afid', 'Please input AlphaFold UniProt ID');
|
|
8949
8949
|
});
|
|
8950
8950
|
|
|
8951
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_refseqid", "click", function(e) { me.icn3d;
|
|
8951
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_refseqid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8952
8952
|
me.htmlCls.dialogCls.openDlg('dl_refseqid', 'Please input NCBI Protein Accession');
|
|
8953
8953
|
});
|
|
8954
8954
|
|
|
8955
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_opmid", "click", function(e) { me.icn3d;
|
|
8955
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_opmid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8956
8956
|
me.htmlCls.dialogCls.openDlg('dl_opmid', 'Please input OPM PDB ID');
|
|
8957
8957
|
});
|
|
8958
8958
|
|
|
8959
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_align", "click", function(e) { me.icn3d;
|
|
8959
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_align", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8960
8960
|
me.htmlCls.dialogCls.openDlg('dl_align', 'Align two PDB structures');
|
|
8961
8961
|
});
|
|
8962
8962
|
|
|
8963
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_alignaf", "click", function(e) { me.icn3d;
|
|
8963
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_alignaf", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8964
8964
|
me.htmlCls.dialogCls.openDlg('dl_alignaf', 'Align two AlphaFold structures');
|
|
8965
8965
|
});
|
|
8966
8966
|
|
|
8967
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign", "click", function(e) { me.icn3d;
|
|
8967
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8968
8968
|
me.htmlCls.dialogCls.openDlg('dl_chainalign', 'Align multiple chains by structure alignment');
|
|
8969
8969
|
});
|
|
8970
8970
|
|
|
8971
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign2", "click", function(e) { me.icn3d;
|
|
8971
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign2", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8972
8972
|
me.htmlCls.dialogCls.openDlg('dl_chainalign2', 'Align multiple chains by sequence alignment');
|
|
8973
8973
|
});
|
|
8974
8974
|
|
|
8975
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign3", "click", function(e) { me.icn3d;
|
|
8975
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_chainalign3", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8976
8976
|
me.htmlCls.dialogCls.openDlg('dl_chainalign3', 'Align multiple chains residue by residue');
|
|
8977
8977
|
});
|
|
8978
8978
|
|
|
8979
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mutation", "click", function(e) { me.icn3d;
|
|
8979
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mutation", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8980
8980
|
me.htmlCls.dialogCls.openDlg('dl_mutation', 'Show the mutations in 3D');
|
|
8981
8981
|
});
|
|
8982
8982
|
|
|
8983
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_pdbfile", "click", function(e) { me.icn3d;
|
|
8983
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_pdbfile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8984
8984
|
//me = me.setIcn3dui($(this).attr('id'));
|
|
8985
8985
|
me.htmlCls.dialogCls.openDlg('dl_pdbfile', 'Please input PDB File');
|
|
8986
8986
|
});
|
|
8987
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_pdbfile_app", "#" + me.pre + "tool_pdbfile"], "click", function(e) { me.icn3d;
|
|
8987
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_pdbfile_app", "#" + me.pre + "tool_pdbfile"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
8988
8988
|
//me = me.setIcn3dui($(this).attr('id'));
|
|
8989
8989
|
me.htmlCls.dialogCls.openDlg('dl_pdbfile_app', 'Please append PDB Files');
|
|
8990
8990
|
});
|
|
8991
8991
|
|
|
8992
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mol2file", "click", function(e) { me.icn3d;
|
|
8992
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mol2file", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8993
8993
|
me.htmlCls.dialogCls.openDlg('dl_mol2file', 'Please input Mol2 File');
|
|
8994
8994
|
});
|
|
8995
8995
|
|
|
8996
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_sdffile", "click", function(e) { me.icn3d;
|
|
8996
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_sdffile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
8997
8997
|
me.htmlCls.dialogCls.openDlg('dl_sdffile', 'Please input SDF File');
|
|
8998
8998
|
});
|
|
8999
8999
|
|
|
9000
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_xyzfile", "click", function(e) { me.icn3d;
|
|
9000
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_xyzfile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9001
9001
|
me.htmlCls.dialogCls.openDlg('dl_xyzfile', 'Please input XYZ File');
|
|
9002
9002
|
});
|
|
9003
9003
|
|
|
9004
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_afmapfile", "click", function(e) { me.icn3d;
|
|
9004
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_afmapfile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9005
9005
|
me.htmlCls.dialogCls.openDlg('dl_afmapfile', 'Please input AlphaFold PAE File');
|
|
9006
9006
|
});
|
|
9007
9007
|
|
|
9008
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_urlfile", "click", function(e) { me.icn3d;
|
|
9008
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_urlfile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9009
9009
|
me.htmlCls.dialogCls.openDlg('dl_urlfile', 'Load data by URL');
|
|
9010
9010
|
});
|
|
9011
9011
|
|
|
9012
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_fixedversion", "click", function(e) { me.icn3d;
|
|
9012
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_fixedversion", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9013
9013
|
me.htmlCls.dialogCls.openDlg('dl_fixedversion', 'Open Share Link URL in the archived version of iCn3D');
|
|
9014
9014
|
});
|
|
9015
|
-
me.myEventCls.onIds("#" + me.pre + "reload_fixedversion", "click", function(e) { let ic = me.icn3d;
|
|
9015
|
+
me.myEventCls.onIds("#" + me.pre + "reload_fixedversion", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9016
9016
|
let url = $("#" + me.pre + "sharelinkurl").val();
|
|
9017
9017
|
thisClass.setLogCmd("open " + url, false);
|
|
9018
9018
|
localStorage.setItem('fixedversion', '1');
|
|
@@ -9020,73 +9020,73 @@ class ClickMenu {
|
|
|
9020
9020
|
window.open(url, urlTarget);
|
|
9021
9021
|
});
|
|
9022
9022
|
|
|
9023
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mmciffile", "click", function(e) { me.icn3d;
|
|
9023
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mmciffile", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9024
9024
|
me.htmlCls.dialogCls.openDlg('dl_mmciffile', 'Please append mmCIF File');
|
|
9025
9025
|
});
|
|
9026
9026
|
|
|
9027
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mmcifid", "click", function(e) { me.icn3d;
|
|
9027
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mmcifid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9028
9028
|
me.htmlCls.dialogCls.openDlg('dl_mmcifid', 'Please input mmCIF ID');
|
|
9029
9029
|
});
|
|
9030
9030
|
|
|
9031
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_mmdbid", "click", function(e) { me.icn3d;
|
|
9031
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_mmdbid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9032
9032
|
me.htmlCls.dialogCls.openDlg('dl_mmdbid', 'Please input MMDB or PDB ID');
|
|
9033
9033
|
});
|
|
9034
9034
|
|
|
9035
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_mmdbafid", , "#" + me.pre + "tool_mmdbafid"], "click", function(e) { me.icn3d;
|
|
9035
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_mmdbafid", , "#" + me.pre + "tool_mmdbafid"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
9036
9036
|
me.htmlCls.dialogCls.openDlg('dl_mmdbafid', 'Please input PDB/MMDB/AlphaFold UniProt IDs');
|
|
9037
9037
|
});
|
|
9038
9038
|
|
|
9039
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_blast_rep_id", "click", function(e) { me.icn3d;
|
|
9039
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_blast_rep_id", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9040
9040
|
me.htmlCls.dialogCls.openDlg('dl_blast_rep_id', 'Align sequence to structure');
|
|
9041
9041
|
});
|
|
9042
9042
|
|
|
9043
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_esmfold", "click", function(e) { me.icn3d;
|
|
9043
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_esmfold", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9044
9044
|
me.htmlCls.dialogCls.openDlg('dl_esmfold', 'Sequence to structure prediction with ESMFold');
|
|
9045
9045
|
});
|
|
9046
9046
|
|
|
9047
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_proteinname", "click", function(e) { me.icn3d;
|
|
9047
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_proteinname", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9048
9048
|
me.htmlCls.dialogCls.openDlg('dl_proteinname', 'Please input protein or gene name');
|
|
9049
9049
|
});
|
|
9050
9050
|
|
|
9051
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_cid", "click", function(e) { me.icn3d;
|
|
9051
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_cid", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9052
9052
|
me.htmlCls.dialogCls.openDlg('dl_cid', 'Please input PubChem Compound');
|
|
9053
9053
|
});
|
|
9054
9054
|
|
|
9055
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_pngimage", "click", function(e) { me.icn3d;
|
|
9056
|
-
me.htmlCls.dialogCls.openDlg('dl_pngimage', 'Please
|
|
9055
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_pngimage", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9056
|
+
me.htmlCls.dialogCls.openDlg('dl_pngimage', 'Please append PNG images');
|
|
9057
9057
|
});
|
|
9058
9058
|
|
|
9059
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_state", "click", function(e) { me.icn3d;
|
|
9059
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_state", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9060
9060
|
me.htmlCls.dialogCls.openDlg('dl_state', 'Please input the state file');
|
|
9061
9061
|
});
|
|
9062
9062
|
|
|
9063
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_selection", "click", function(e) { me.icn3d;
|
|
9063
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_selection", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9064
9064
|
me.htmlCls.dialogCls.openDlg('dl_selection', 'Please input the selection file');
|
|
9065
9065
|
});
|
|
9066
9066
|
|
|
9067
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_collection", "click", function (e) { me.icn3d;
|
|
9067
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_collection", "click", function (e) { me.icn3d; e.preventDefault();
|
|
9068
9068
|
me.htmlCls.dialogCls.openDlg("dl_selectCollections", "Select Collections");
|
|
9069
9069
|
});
|
|
9070
9070
|
|
|
9071
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_dsn6", "click", function(e) { me.icn3d;
|
|
9071
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_dsn6", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9072
9072
|
me.htmlCls.dialogCls.openDlg('dl_dsn6', 'Please input the map file to display electron density map');
|
|
9073
9073
|
});
|
|
9074
9074
|
|
|
9075
9075
|
|
|
9076
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_delphi", "#" + me.pre + "mn1_delphi2", "#" + me.pre + "tool_delphi"], "click", function(e) { let ic = me.icn3d;
|
|
9076
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_delphi", "#" + me.pre + "mn1_delphi2", "#" + me.pre + "tool_delphi"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9077
9077
|
ic.loadPhiFrom = 'delphi';
|
|
9078
9078
|
$("#" + me.pre + "dl_delphi_tabs").tabs();
|
|
9079
9079
|
me.htmlCls.dialogCls.openDlg('dl_delphi', 'Please set parameters to display DelPhi potential map');
|
|
9080
9080
|
});
|
|
9081
9081
|
|
|
9082
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_phi", "click", function(e) { let ic = me.icn3d;
|
|
9082
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_phi", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9083
9083
|
ic.loadPhiFrom = 'phi';
|
|
9084
9084
|
$("#" + me.pre + "dl_phi_tabs").tabs();
|
|
9085
9085
|
$("#" + me.pre + "phitab1_tabs").tabs();
|
|
9086
9086
|
$("#" + me.pre + "phitab2_tabs").tabs();
|
|
9087
9087
|
me.htmlCls.dialogCls.openDlg('dl_phi', 'Please input local phi or cube file to display DelPhi potential map');
|
|
9088
9088
|
});
|
|
9089
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_phiurl", "click", function(e) { let ic = me.icn3d;
|
|
9089
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_phiurl", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9090
9090
|
ic.loadPhiFrom = 'phiurl';
|
|
9091
9091
|
$("#" + me.pre + "dl_phiurl_tabs").tabs();
|
|
9092
9092
|
$("#" + me.pre + "phiurltab1_tabs").tabs();
|
|
@@ -9095,11 +9095,11 @@ class ClickMenu {
|
|
|
9095
9095
|
});
|
|
9096
9096
|
|
|
9097
9097
|
|
|
9098
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_dsn6url", "click", function(e) { me.icn3d;
|
|
9098
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_dsn6url", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9099
9099
|
me.htmlCls.dialogCls.openDlg('dl_dsn6url', 'Please input the map file to display electron density map');
|
|
9100
9100
|
});
|
|
9101
9101
|
|
|
9102
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportState", "click", function(e) { let ic = me.icn3d;
|
|
9102
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportState", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9103
9103
|
thisClass.setLogCmd("export state file", false);
|
|
9104
9104
|
let file_pref = Object.keys(ic.structures).join(',');
|
|
9105
9105
|
|
|
@@ -9107,19 +9107,19 @@ class ClickMenu {
|
|
|
9107
9107
|
});
|
|
9108
9108
|
|
|
9109
9109
|
|
|
9110
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportPdbRes", "click", function(e) { me.icn3d;
|
|
9110
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportPdbRes", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9111
9111
|
me.htmlCls.setHtmlCls.exportPdb();
|
|
9112
9112
|
|
|
9113
9113
|
thisClass.setLogCmd("export pdb", true);
|
|
9114
9114
|
});
|
|
9115
9115
|
|
|
9116
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportSecondary", "click", function(e) { me.icn3d;
|
|
9116
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportSecondary", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9117
9117
|
me.htmlCls.setHtmlCls.exportSecondary();
|
|
9118
9118
|
|
|
9119
9119
|
thisClass.setLogCmd("export secondary structure", true);
|
|
9120
9120
|
});
|
|
9121
9121
|
|
|
9122
|
-
me.myEventCls.onIds(["#" + me.pre + "delphipdb", "#" + me.pre + "phipdb"], "click", function(e) { let ic = me.icn3d;
|
|
9122
|
+
me.myEventCls.onIds(["#" + me.pre + "delphipdb", "#" + me.pre + "phipdb"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9123
9123
|
let pdbStr = ic.saveFileCls.getSelectedResiduePDB();
|
|
9124
9124
|
|
|
9125
9125
|
thisClass.setLogCmd("export PDB of selected residues", false);
|
|
@@ -9128,57 +9128,57 @@ class ClickMenu {
|
|
|
9128
9128
|
ic.saveFileCls.saveFile(file_pref + '_icn3d_residues.pdb', 'text', [pdbStr]);
|
|
9129
9129
|
});
|
|
9130
9130
|
|
|
9131
|
-
me.myEventCls.onIds(["#" + me.pre + "delphipqr", "#" + me.pre + "phipqr", "#" + me.pre + "phiurlpqr"], "click", async function(e) { me.icn3d;
|
|
9131
|
+
me.myEventCls.onIds(["#" + me.pre + "delphipqr", "#" + me.pre + "phipqr", "#" + me.pre + "phiurlpqr"], "click", async function(e) { me.icn3d; e.preventDefault();
|
|
9132
9132
|
await me.htmlCls.setHtmlCls.exportPqr();
|
|
9133
9133
|
thisClass.setLogCmd("export pqr", true);
|
|
9134
9134
|
});
|
|
9135
9135
|
|
|
9136
|
-
// me.myEventCls.onIds("#" + me.pre + "delphipqbh", "click", async function(e) { let ic = me.icn3d;
|
|
9136
|
+
// me.myEventCls.onIds("#" + me.pre + "delphipqbh", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9137
9137
|
// let bPdb = true;
|
|
9138
9138
|
// await me.htmlCls.setHtmlCls.exportPqr(bPdb);
|
|
9139
9139
|
// thisClass.setLogCmd("export pdbh", false);
|
|
9140
9140
|
// });
|
|
9141
9141
|
|
|
9142
|
-
me.myEventCls.onIds("#" + me.pre + "profixpdb", "click", async function(e) { let ic = me.icn3d;
|
|
9142
|
+
me.myEventCls.onIds("#" + me.pre + "profixpdb", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9143
9143
|
let bHydrogen = false;
|
|
9144
9144
|
await ic.scapCls.exportPdbProfix(bHydrogen);
|
|
9145
9145
|
thisClass.setLogCmd("export pdb missing atoms", true);
|
|
9146
9146
|
});
|
|
9147
9147
|
|
|
9148
|
-
me.myEventCls.onIds("#" + me.pre + "profixpdbh", "click", async function(e) { let ic = me.icn3d;
|
|
9148
|
+
me.myEventCls.onIds("#" + me.pre + "profixpdbh", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9149
9149
|
let bHydrogen = true;
|
|
9150
9150
|
await ic.scapCls.exportPdbProfix(bHydrogen);
|
|
9151
9151
|
thisClass.setLogCmd("export pdb hydrogen", true);
|
|
9152
9152
|
});
|
|
9153
9153
|
|
|
9154
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportIgstrand", "click", async function(e) { let ic = me.icn3d;
|
|
9154
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportIgstrand", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9155
9155
|
ic.refnumCls.exportRefnum('igstrand');
|
|
9156
9156
|
thisClass.setLogCmd("export refnum igstrand", true);
|
|
9157
9157
|
});
|
|
9158
9158
|
|
|
9159
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportKabat", "click", async function(e) { let ic = me.icn3d;
|
|
9159
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportKabat", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9160
9160
|
ic.refnumCls.exportRefnum('kabat');
|
|
9161
9161
|
thisClass.setLogCmd("export refnum kabat", true);
|
|
9162
9162
|
});
|
|
9163
9163
|
|
|
9164
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportImgt", "click", async function(e) { let ic = me.icn3d;
|
|
9164
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportImgt", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9165
9165
|
ic.refnumCls.exportRefnum('imgt');
|
|
9166
9166
|
thisClass.setLogCmd("export refnum imgt", true);
|
|
9167
9167
|
});
|
|
9168
9168
|
|
|
9169
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportStl", "click", function(e) { let ic = me.icn3d;
|
|
9169
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportStl", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9170
9170
|
thisClass.setLogCmd("export stl file", false);
|
|
9171
9171
|
//ic.threeDPrintCls.hideStabilizer();
|
|
9172
9172
|
ic.export3DCls.exportStlFile('');
|
|
9173
9173
|
});
|
|
9174
9174
|
|
|
9175
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportVrml", "click", function(e) { let ic = me.icn3d;
|
|
9175
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportVrml", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9176
9176
|
thisClass.setLogCmd("export vrml file", false);
|
|
9177
9177
|
//ic.threeDPrintCls.hideStabilizer();
|
|
9178
9178
|
ic.export3DCls.exportVrmlFile('');
|
|
9179
9179
|
});
|
|
9180
9180
|
|
|
9181
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportStlStab", "click", function(e) { let ic = me.icn3d;
|
|
9181
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportStlStab", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9182
9182
|
thisClass.setLogCmd("export stl stabilizer file", false);
|
|
9183
9183
|
//ic.bRender = false;
|
|
9184
9184
|
ic.threeDPrintCls.hideStabilizer();
|
|
@@ -9187,7 +9187,7 @@ class ClickMenu {
|
|
|
9187
9187
|
ic.export3DCls.exportStlFile('_stab');
|
|
9188
9188
|
});
|
|
9189
9189
|
|
|
9190
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportVrmlStab", "click", function(e) { let ic = me.icn3d;
|
|
9190
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportVrmlStab", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9191
9191
|
thisClass.setLogCmd("export vrml stabilizer file", false);
|
|
9192
9192
|
//ic.bRender = false;
|
|
9193
9193
|
ic.threeDPrintCls.hideStabilizer();
|
|
@@ -9196,13 +9196,13 @@ class ClickMenu {
|
|
|
9196
9196
|
ic.export3DCls.exportVrmlFile('_stab');
|
|
9197
9197
|
});
|
|
9198
9198
|
|
|
9199
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_exportInteraction", "click", async function(e) { let ic = me.icn3d;
|
|
9199
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_exportInteraction", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9200
9200
|
thisClass.setLogCmd("export interactions", false);
|
|
9201
9201
|
if(me.cfg.mmdbid !== undefined) await ic.viewInterPairsCls.retrieveInteractionData();
|
|
9202
9202
|
ic.viewInterPairsCls.exportInteractions();
|
|
9203
9203
|
});
|
|
9204
9204
|
|
|
9205
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_exportCanvas", "#" + me.pre + "saveimage"], "click", async function(e) { let ic = me.icn3d;
|
|
9205
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_exportCanvas", "#" + me.pre + "saveimage"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9206
9206
|
// do not record the export command
|
|
9207
9207
|
//thisClass.setLogCmd("export canvas", true);
|
|
9208
9208
|
thisClass.setLogCmd("export canvas", false);
|
|
@@ -9211,28 +9211,28 @@ class ClickMenu {
|
|
|
9211
9211
|
let bPngHtml = true;
|
|
9212
9212
|
await ic.shareLinkCls.shareLink(bPngHtml);
|
|
9213
9213
|
});
|
|
9214
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas1", "click", async function(e) { let ic = me.icn3d;
|
|
9214
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas1", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9215
9215
|
thisClass.setLogCmd("export canvas 1", true);
|
|
9216
9216
|
ic.scaleFactor = 1;
|
|
9217
9217
|
await ic.shareLinkCls.shareLink(true, true);
|
|
9218
9218
|
});
|
|
9219
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas2", "click", async function(e) { let ic = me.icn3d;
|
|
9219
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas2", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9220
9220
|
thisClass.setLogCmd("export canvas 2", true);
|
|
9221
9221
|
ic.scaleFactor = 2;
|
|
9222
9222
|
await ic.shareLinkCls.shareLink(true, true);
|
|
9223
9223
|
});
|
|
9224
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas4", "click", async function(e) { let ic = me.icn3d;
|
|
9224
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas4", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9225
9225
|
thisClass.setLogCmd("export canvas 4", true);
|
|
9226
9226
|
ic.scaleFactor = 4;
|
|
9227
9227
|
await ic.shareLinkCls.shareLink(true, true);
|
|
9228
9228
|
});
|
|
9229
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas8", "click", async function(e) { let ic = me.icn3d;
|
|
9229
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCanvas8", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9230
9230
|
thisClass.setLogCmd("export canvas 8", true);
|
|
9231
9231
|
ic.scaleFactor = 8;
|
|
9232
9232
|
await ic.shareLinkCls.shareLink(true, true);
|
|
9233
9233
|
});
|
|
9234
9234
|
|
|
9235
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportCounts", "click", function(e) { let ic = me.icn3d;
|
|
9235
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportCounts", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9236
9236
|
thisClass.setLogCmd("export counts", false);
|
|
9237
9237
|
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>';
|
|
9238
9238
|
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>';
|
|
@@ -9259,7 +9259,7 @@ class ClickMenu {
|
|
|
9259
9259
|
ic.saveFileCls.saveFile(file_pref + '_counts.html', 'html', text);
|
|
9260
9260
|
});
|
|
9261
9261
|
|
|
9262
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportSelections", "click", function(e) { let ic = me.icn3d;
|
|
9262
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportSelections", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9263
9263
|
thisClass.setLogCmd("export all selections", false);
|
|
9264
9264
|
|
|
9265
9265
|
thisClass.SetChainsAdvancedMenu();
|
|
@@ -9269,7 +9269,7 @@ class ClickMenu {
|
|
|
9269
9269
|
ic.saveFileCls.saveFile(file_pref + '_selections.txt', 'text', [text]);
|
|
9270
9270
|
});
|
|
9271
9271
|
|
|
9272
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_exportSelDetails", "click", function(e) { let ic = me.icn3d;
|
|
9272
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_exportSelDetails", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9273
9273
|
thisClass.setLogCmd("export all selections with details", false);
|
|
9274
9274
|
|
|
9275
9275
|
thisClass.SetChainsAdvancedMenu();
|
|
@@ -9280,32 +9280,32 @@ class ClickMenu {
|
|
|
9280
9280
|
ic.saveFileCls.saveFile(file_pref + '_sel_details.txt', 'text', [text]);
|
|
9281
9281
|
});
|
|
9282
9282
|
|
|
9283
|
-
me.myEventCls.onIds(["#" + me.pre + "mn1_sharelink", "#" + me.pre + "tool_sharelink"], "click", async function(e) { let ic = me.icn3d;
|
|
9283
|
+
me.myEventCls.onIds(["#" + me.pre + "mn1_sharelink", "#" + me.pre + "tool_sharelink"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9284
9284
|
await ic.shareLinkCls.shareLink();
|
|
9285
9285
|
});
|
|
9286
9286
|
|
|
9287
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_replayon", "click", async function(e) { let ic = me.icn3d;
|
|
9287
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_replayon", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9288
9288
|
await ic.resizeCanvasCls.replayon();
|
|
9289
9289
|
thisClass.setLogCmd("replay on", true);
|
|
9290
9290
|
});
|
|
9291
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_replayoff", "click", async function(e) { let ic = me.icn3d;
|
|
9291
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_replayoff", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9292
9292
|
await ic.resizeCanvasCls.replayoff();
|
|
9293
9293
|
thisClass.setLogCmd("replay off", true);
|
|
9294
9294
|
});
|
|
9295
9295
|
|
|
9296
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_menuall", "click", function(e) { me.icn3d;
|
|
9296
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_menuall", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9297
9297
|
me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.allMenus);
|
|
9298
9298
|
|
|
9299
9299
|
thisClass.applyShownMenus();
|
|
9300
9300
|
});
|
|
9301
9301
|
|
|
9302
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_menusimple", "click", function(e) { me.icn3d;
|
|
9302
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_menusimple", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9303
9303
|
me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.simpleMenus);
|
|
9304
9304
|
|
|
9305
9305
|
thisClass.applyShownMenus();
|
|
9306
9306
|
});
|
|
9307
9307
|
|
|
9308
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_menupref", "click", function(e) { me.icn3d;
|
|
9308
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_menupref", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9309
9309
|
me.htmlCls.dialogCls.openDlg('dl_menupref', 'Select Menus');
|
|
9310
9310
|
|
|
9311
9311
|
thisClass.getHiddenMenusFromCache();
|
|
@@ -9313,7 +9313,7 @@ class ClickMenu {
|
|
|
9313
9313
|
thisClass.displayShownMenus();
|
|
9314
9314
|
});
|
|
9315
9315
|
|
|
9316
|
-
me.myEventCls.onIds(["#" + me.pre + "apply_menupref", "#" + me.pre + "apply_menupref2"], "click", function(e) { me.icn3d;
|
|
9316
|
+
me.myEventCls.onIds(["#" + me.pre + "apply_menupref", "#" + me.pre + "apply_menupref2"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
9317
9317
|
var checkboxes = document.querySelectorAll('form[name="' + me.pre + 'selmenu"] input:checked');
|
|
9318
9318
|
me.htmlCls.shownMenus = {};
|
|
9319
9319
|
for (var checkbox of checkboxes) {
|
|
@@ -9323,21 +9323,21 @@ class ClickMenu {
|
|
|
9323
9323
|
thisClass.applyShownMenus();
|
|
9324
9324
|
});
|
|
9325
9325
|
|
|
9326
|
-
me.myEventCls.onIds(["#" + me.pre + "reset_menupref", "#" + me.pre + "reset_menupref2"], "click", function(e) { me.icn3d;
|
|
9326
|
+
me.myEventCls.onIds(["#" + me.pre + "reset_menupref", "#" + me.pre + "reset_menupref2"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
9327
9327
|
me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.simpleMenus);
|
|
9328
9328
|
|
|
9329
9329
|
thisClass.applyShownMenus();
|
|
9330
9330
|
thisClass.displayShownMenus();
|
|
9331
9331
|
});
|
|
9332
9332
|
|
|
9333
|
-
me.myEventCls.onIds(["#" + me.pre + "reset_menupref_all", "#" + me.pre + "reset_menupref_all2"], "click", function(e) { me.icn3d;
|
|
9333
|
+
me.myEventCls.onIds(["#" + me.pre + "reset_menupref_all", "#" + me.pre + "reset_menupref_all2"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
9334
9334
|
me.htmlCls.shownMenus = me.hashUtilsCls.cloneHash(me.htmlCls.allMenus);
|
|
9335
9335
|
|
|
9336
9336
|
thisClass.applyShownMenus();
|
|
9337
9337
|
thisClass.displayShownMenus();
|
|
9338
9338
|
});
|
|
9339
9339
|
|
|
9340
|
-
me.myEventCls.onIds(["#" + me.pre + "savepref", "#" + me.pre + "savepref2"], "click", function(e) { let ic = me.icn3d;
|
|
9340
|
+
me.myEventCls.onIds(["#" + me.pre + "savepref", "#" + me.pre + "savepref2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9341
9341
|
let menuStr = '[';
|
|
9342
9342
|
|
|
9343
9343
|
//var checkboxes = document.querySelectorAll('form[name="' + me.pre + 'selmenu"] input:checked');
|
|
@@ -9386,30 +9386,30 @@ class ClickMenu {
|
|
|
9386
9386
|
}
|
|
9387
9387
|
});
|
|
9388
9388
|
|
|
9389
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_menuloadpref", "click", function(e) { me.icn3d;
|
|
9389
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_menuloadpref", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9390
9390
|
me.htmlCls.dialogCls.openDlg('dl_menuloadpref', 'Please input the menu preference file');
|
|
9391
9391
|
});
|
|
9392
9392
|
|
|
9393
9393
|
|
|
9394
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_structure", "click", function(e) { let ic = me.icn3d;
|
|
9394
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_structure", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9395
9395
|
let url = ic.saveFileCls.getLinkToStructureSummary(true);
|
|
9396
9396
|
let urlTarget = (ic.structures && Object.keys(ic.structures).length > 0) ? '_blank' : '_self';
|
|
9397
9397
|
window.open(url, urlTarget);
|
|
9398
9398
|
});
|
|
9399
9399
|
|
|
9400
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_alphafold", "click", function(e) { me.icn3d;
|
|
9400
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_alphafold", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9401
9401
|
let url = 'https://github.com/sokrypton/ColabFold';
|
|
9402
9402
|
window.open(url, '_blank');
|
|
9403
9403
|
});
|
|
9404
9404
|
|
|
9405
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_bind", "click", function(e) { let ic = me.icn3d;
|
|
9405
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_bind", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9406
9406
|
let url = "https://www.ncbi.nlm.nih.gov/pccompound?LinkName=pccompound_structure&from_uid=" + ic.inputid;
|
|
9407
9407
|
thisClass.setLogCmd("link to 3D protein structures bound to CID " + ic.inputid + ": " + url, false);
|
|
9408
9408
|
let urlTarget = (ic.structures && Object.keys(ic.structures).length > 0) ? '_blank' : '_self';
|
|
9409
9409
|
window.open(url, urlTarget);
|
|
9410
9410
|
});
|
|
9411
9411
|
|
|
9412
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_vast", "click", function(e) { let ic = me.icn3d;
|
|
9412
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_vast", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9413
9413
|
let url;
|
|
9414
9414
|
if(ic.inputid === undefined) {
|
|
9415
9415
|
url = "https://www.ncbi.nlm.nih.gov/pccompound?term=" + ic.molTitle;
|
|
@@ -9438,7 +9438,7 @@ class ClickMenu {
|
|
|
9438
9438
|
window.open(url, urlTarget);
|
|
9439
9439
|
});
|
|
9440
9440
|
|
|
9441
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_pubmed", "click", function(e) { let ic = me.icn3d;
|
|
9441
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_pubmed", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9442
9442
|
let url;
|
|
9443
9443
|
if(ic.inputid === undefined) {
|
|
9444
9444
|
url = "https://www.ncbi.nlm.nih.gov/pubmed/?term=" + ic.molTitle;
|
|
@@ -9482,7 +9482,7 @@ class ClickMenu {
|
|
|
9482
9482
|
}
|
|
9483
9483
|
});
|
|
9484
9484
|
|
|
9485
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_link_protein", "click", function(e) { let ic = me.icn3d;
|
|
9485
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_link_protein", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9486
9486
|
//ic.saveFileCls.setEntrezLinks('protein');
|
|
9487
9487
|
let structArray = Object.keys(ic.structures);
|
|
9488
9488
|
let chainArray = Object.keys(ic.chains);
|
|
@@ -9507,19 +9507,19 @@ class ClickMenu {
|
|
|
9507
9507
|
|
|
9508
9508
|
let thisClass = this;
|
|
9509
9509
|
|
|
9510
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_selectannotations", "#" + me.pre + "tool_selectannotations"], "click", async function(e) { let ic = me.icn3d;
|
|
9510
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_selectannotations", "#" + me.pre + "tool_selectannotations"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9511
9511
|
await ic.showAnnoCls.showAnnotations();
|
|
9512
9512
|
thisClass.setLogCmd("view annotations", true);
|
|
9513
9513
|
//thisClass.setLogCmd("window annotations", true);
|
|
9514
9514
|
});
|
|
9515
9515
|
|
|
9516
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectall", "click", function(e) { let ic = me.icn3d;
|
|
9516
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectall", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9517
9517
|
thisClass.setLogCmd("select all", true);
|
|
9518
9518
|
ic.selectionCls.selectAll();
|
|
9519
9519
|
ic.hlUpdateCls.removeHlAll();
|
|
9520
9520
|
ic.drawCls.draw();
|
|
9521
9521
|
});
|
|
9522
|
-
me.myEventCls.onIds("#" + me.pre + "clearall", "click", function(e) { let ic = me.icn3d;
|
|
9522
|
+
me.myEventCls.onIds("#" + me.pre + "clearall", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9523
9523
|
thisClass.setLogCmd("clear all", true);
|
|
9524
9524
|
ic.bSelectResidue = false;
|
|
9525
9525
|
ic.selectionCls.selectAll();
|
|
@@ -9527,7 +9527,7 @@ class ClickMenu {
|
|
|
9527
9527
|
ic.drawCls.draw();
|
|
9528
9528
|
});
|
|
9529
9529
|
|
|
9530
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectdisplayed", "click", function(e) { let ic = me.icn3d;
|
|
9530
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectdisplayed", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9531
9531
|
thisClass.setLogCmd("select displayed set", true);
|
|
9532
9532
|
//ic.hAtoms = me.hashUtilsCls.cloneHash(ic.dAtoms);
|
|
9533
9533
|
ic.hAtoms = me.hashUtilsCls.cloneHash(ic.viewSelectionAtoms);
|
|
@@ -9535,106 +9535,106 @@ class ClickMenu {
|
|
|
9535
9535
|
//ic.drawCls.draw();
|
|
9536
9536
|
});
|
|
9537
9537
|
|
|
9538
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_fullstru", "click", function(e) { let ic = me.icn3d;
|
|
9538
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_fullstru", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9539
9539
|
thisClass.setLogCmd("show all", true);
|
|
9540
9540
|
ic.selectionCls.showAll();
|
|
9541
9541
|
});
|
|
9542
9542
|
|
|
9543
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectcomplement", "click", function(e) { let ic = me.icn3d;
|
|
9543
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectcomplement", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9544
9544
|
if(Object.keys(ic.hAtoms).length < Object.keys(ic.atoms).length) {
|
|
9545
9545
|
thisClass.setLogCmd("select complement", true);
|
|
9546
9546
|
ic.resid2specCls.selectComplement();
|
|
9547
9547
|
}
|
|
9548
9548
|
});
|
|
9549
9549
|
|
|
9550
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectmainchains", "click", function(e) { let ic = me.icn3d;
|
|
9550
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectmainchains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9551
9551
|
thisClass.setLogCmd("select main chains", true);
|
|
9552
9552
|
ic.selectionCls.selectMainChains();
|
|
9553
9553
|
});
|
|
9554
9554
|
|
|
9555
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectsidechains", "click", function(e) { let ic = me.icn3d;
|
|
9555
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectsidechains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9556
9556
|
thisClass.setLogCmd("select side chains", true);
|
|
9557
9557
|
ic.selectionCls.selectSideChains();
|
|
9558
9558
|
});
|
|
9559
9559
|
|
|
9560
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_selectmainsidechains", "click", function(e) { let ic = me.icn3d;
|
|
9560
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_selectmainsidechains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9561
9561
|
thisClass.setLogCmd("select main side chains", true);
|
|
9562
9562
|
ic.selectionCls.selectMainSideChains();
|
|
9563
9563
|
});
|
|
9564
9564
|
|
|
9565
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propPos", "click", function(e) { let ic = me.icn3d;
|
|
9565
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propPos", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9566
9566
|
thisClass.setLogCmd("select prop positive", true);
|
|
9567
9567
|
ic.resid2specCls.selectProperty('positive');
|
|
9568
9568
|
});
|
|
9569
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propNeg", "click", function(e) { let ic = me.icn3d;
|
|
9569
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propNeg", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9570
9570
|
thisClass.setLogCmd("select prop negative", true);
|
|
9571
9571
|
ic.resid2specCls.selectProperty('negative');
|
|
9572
9572
|
});
|
|
9573
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propHydro", "click", function(e) { let ic = me.icn3d;
|
|
9573
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propHydro", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9574
9574
|
thisClass.setLogCmd("select prop hydrophobic", true);
|
|
9575
9575
|
ic.resid2specCls.selectProperty('hydrophobic');
|
|
9576
9576
|
});
|
|
9577
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propPolar", "click", function(e) { let ic = me.icn3d;
|
|
9577
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propPolar", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9578
9578
|
thisClass.setLogCmd("select prop polar", true);
|
|
9579
9579
|
ic.resid2specCls.selectProperty('polar');
|
|
9580
9580
|
});
|
|
9581
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propBfactor", "click", function(e) { me.icn3d;
|
|
9581
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propBfactor", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9582
9582
|
me.htmlCls.dialogCls.openDlg('dl_propbybfactor', 'Select residue based on B-factor/pLDDT');
|
|
9583
9583
|
});
|
|
9584
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_propSolAcc", "click", function(e) { me.icn3d;
|
|
9584
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_propSolAcc", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9585
9585
|
me.htmlCls.dialogCls.openDlg('dl_propbypercentout', 'Select residue based on the percentage of solvent accessilbe surface area');
|
|
9586
9586
|
});
|
|
9587
|
-
me.myEventCls.onIds("#" + me.pre + "applypropbybfactor", "click", function(e) { let ic = me.icn3d;
|
|
9587
|
+
me.myEventCls.onIds("#" + me.pre + "applypropbybfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9588
9588
|
let from = $("#" + me.pre + "minbfactor").val();
|
|
9589
9589
|
let to = $("#" + me.pre + "maxbfactor").val();
|
|
9590
9590
|
thisClass.setLogCmd("select prop b factor | " + from + '_' + to, true);
|
|
9591
9591
|
ic.resid2specCls.selectProperty('b factor', from, to);
|
|
9592
9592
|
});
|
|
9593
|
-
me.myEventCls.onIds("#" + me.pre + "applypropbypercentout", "click", function(e) { let ic = me.icn3d;
|
|
9593
|
+
me.myEventCls.onIds("#" + me.pre + "applypropbypercentout", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9594
9594
|
let from = $("#" + me.pre + "minpercentout").val();
|
|
9595
9595
|
let to = $("#" + me.pre + "maxpercentout").val();
|
|
9596
9596
|
thisClass.setLogCmd("select prop percent out | " + from + '_' + to, true);
|
|
9597
9597
|
ic.resid2specCls.selectProperty('percent out', from, to);
|
|
9598
9598
|
});
|
|
9599
9599
|
|
|
9600
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_alignment", "click", function(e) { me.icn3d;
|
|
9600
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_alignment", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9601
9601
|
me.htmlCls.dialogCls.openDlg('dl_alignment', 'Select residues in aligned sequences');
|
|
9602
9602
|
thisClass.setLogCmd("window aligned sequences", true);
|
|
9603
9603
|
});
|
|
9604
9604
|
|
|
9605
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_window_table", "click", function(e) { me.icn3d;
|
|
9605
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_window_table", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9606
9606
|
me.htmlCls.dialogCls.openDlg('dl_allinteraction', 'Show interactions');
|
|
9607
9607
|
thisClass.setLogCmd("window interaction table", true);
|
|
9608
9608
|
});
|
|
9609
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_window_linegraph", "click", function(e) { me.icn3d;
|
|
9609
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_window_linegraph", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9610
9610
|
me.htmlCls.dialogCls.openDlg('dl_linegraph', 'Show interactions between two lines of residue nodes');
|
|
9611
9611
|
thisClass.setLogCmd("window interaction graph", true);
|
|
9612
9612
|
});
|
|
9613
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_window_scatterplot", "click", function(e) { me.icn3d;
|
|
9613
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_window_scatterplot", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9614
9614
|
me.htmlCls.dialogCls.openDlg('dl_scatterplot', 'Show interactions as map');
|
|
9615
9615
|
thisClass.setLogCmd("window interaction scatterplot", true);
|
|
9616
9616
|
});
|
|
9617
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_window_graph", "click", function(e) { me.icn3d;
|
|
9617
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_window_graph", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9618
9618
|
me.htmlCls.dialogCls.openDlg('dl_graph', 'Force-directed graph');
|
|
9619
9619
|
thisClass.setLogCmd("window force-directed graph", true);
|
|
9620
9620
|
});
|
|
9621
9621
|
|
|
9622
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_yournote", "click", function(e) { me.icn3d;
|
|
9622
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_yournote", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9623
9623
|
me.htmlCls.dialogCls.openDlg('dl_yournote', 'Your note about the current display');
|
|
9624
9624
|
});
|
|
9625
9625
|
|
|
9626
|
-
me.myEventCls.onIds("#" + me.pre + "applyyournote", "click", function(e) { let ic = me.icn3d;
|
|
9626
|
+
me.myEventCls.onIds("#" + me.pre + "applyyournote", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9627
9627
|
ic.yournote = $("#" + me.pre + "yournote").val();
|
|
9628
9628
|
if(me.cfg.shownote) document.title = ic.yournote;
|
|
9629
9629
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
9630
9630
|
thisClass.setLogCmd('your note | ' + ic.yournote, true);
|
|
9631
9631
|
});
|
|
9632
9632
|
|
|
9633
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_command", "click", function(e) { me.icn3d;
|
|
9633
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_command", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9634
9634
|
me.htmlCls.dialogCls.openDlg('dl_advanced2', 'Select by specification');
|
|
9635
9635
|
});
|
|
9636
9636
|
|
|
9637
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_definedsets", "#" + me.pre + "definedsets", "#" + me.pre + "definedsets2", "#" + me.pre + "tool_definedsets"], "click", function(e) { let ic = me.icn3d;
|
|
9637
|
+
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();
|
|
9638
9638
|
ic.definedSetsCls.showSets();
|
|
9639
9639
|
thisClass.setLogCmd('defined sets', true);
|
|
9640
9640
|
//thisClass.setLogCmd('window defined sets', true);
|
|
@@ -9653,7 +9653,7 @@ class ClickMenu {
|
|
|
9653
9653
|
});
|
|
9654
9654
|
|
|
9655
9655
|
|
|
9656
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkNo", "click", function(e) { let ic = me.icn3d;
|
|
9656
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9657
9657
|
ic.pk = 0;
|
|
9658
9658
|
ic.opts['pk'] = 'no';
|
|
9659
9659
|
thisClass.setLogCmd('set pk off', true);
|
|
@@ -9661,50 +9661,50 @@ class ClickMenu {
|
|
|
9661
9661
|
ic.hlObjectsCls.removeHlObjects();
|
|
9662
9662
|
});
|
|
9663
9663
|
|
|
9664
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkYes", "click", function(e) { let ic = me.icn3d;
|
|
9664
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9665
9665
|
ic.pk = 1;
|
|
9666
9666
|
ic.opts['pk'] = 'atom';
|
|
9667
9667
|
thisClass.setLogCmd('set pk atom', true);
|
|
9668
9668
|
});
|
|
9669
9669
|
|
|
9670
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkResidue", "click", function(e) { let ic = me.icn3d;
|
|
9670
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkResidue", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9671
9671
|
ic.pk = 2;
|
|
9672
9672
|
ic.opts['pk'] = 'residue';
|
|
9673
9673
|
thisClass.setLogCmd('set pk residue', true);
|
|
9674
9674
|
});
|
|
9675
9675
|
|
|
9676
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkStrand", "click", function(e) { let ic = me.icn3d;
|
|
9676
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkStrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9677
9677
|
ic.pk = 3;
|
|
9678
9678
|
ic.opts['pk'] = 'strand';
|
|
9679
9679
|
thisClass.setLogCmd('set pk strand', true);
|
|
9680
9680
|
});
|
|
9681
9681
|
|
|
9682
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkDomain", "click", function(e) { let ic = me.icn3d;
|
|
9682
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkDomain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9683
9683
|
ic.pk = 4;
|
|
9684
9684
|
ic.opts['pk'] = 'domain';
|
|
9685
9685
|
thisClass.setLogCmd('set pk domain', true);
|
|
9686
9686
|
});
|
|
9687
9687
|
|
|
9688
|
-
me.myEventCls.onIds("#" + me.pre + "mn2_pkChain", "click", function(e) { let ic = me.icn3d;
|
|
9688
|
+
me.myEventCls.onIds("#" + me.pre + "mn2_pkChain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9689
9689
|
ic.pk = 5;
|
|
9690
9690
|
ic.opts['pk'] = 'chain';
|
|
9691
9691
|
thisClass.setLogCmd('set pk chain', true);
|
|
9692
9692
|
});
|
|
9693
9693
|
|
|
9694
|
-
me.myEventCls.onIds("#" + me.pre + "adjustmem", "click", function(e) { me.icn3d;
|
|
9694
|
+
me.myEventCls.onIds("#" + me.pre + "adjustmem", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9695
9695
|
me.htmlCls.dialogCls.openDlg('dl_adjustmem', 'Adjust the Z-axis positions of the membrane');
|
|
9696
9696
|
});
|
|
9697
9697
|
|
|
9698
|
-
me.myEventCls.onIds("#" + me.pre + "togglemem", "click", function(e) { let ic = me.icn3d;
|
|
9698
|
+
me.myEventCls.onIds("#" + me.pre + "togglemem", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9699
9699
|
ic.selectionCls.toggleMembrane();
|
|
9700
9700
|
thisClass.setLogCmd('toggle membrane', true);
|
|
9701
9701
|
});
|
|
9702
9702
|
|
|
9703
|
-
me.myEventCls.onIds("#" + me.pre + "selectplane", "click", function(e) { me.icn3d;
|
|
9703
|
+
me.myEventCls.onIds("#" + me.pre + "selectplane", "click", function(e) { me.icn3d; e.preventDefault();
|
|
9704
9704
|
me.htmlCls.dialogCls.openDlg('dl_selectplane', 'Select a region between two planes');
|
|
9705
9705
|
});
|
|
9706
9706
|
|
|
9707
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_aroundsphere", "#" + me.pre + "tool_aroundsphere"], "click", function(e) { let ic = me.icn3d;
|
|
9707
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_aroundsphere", "#" + me.pre + "tool_aroundsphere"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9708
9708
|
thisClass.SetChainsAdvancedMenu();
|
|
9709
9709
|
|
|
9710
9710
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
@@ -9721,7 +9721,7 @@ class ClickMenu {
|
|
|
9721
9721
|
$("#" + me.pre + "atomsCustomSphere2").resizable();
|
|
9722
9722
|
});
|
|
9723
9723
|
|
|
9724
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_select_chain", "#" + me.pre + "definedSets"], "click", function(e) { me.icn3d;
|
|
9724
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_select_chain", "#" + me.pre + "definedSets"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
9725
9725
|
me.htmlCls.dialogCls.openDlg('dl_select_chain', 'Select Structure/Chain/Custom Selection');
|
|
9726
9726
|
});
|
|
9727
9727
|
|
|
@@ -9732,242 +9732,242 @@ class ClickMenu {
|
|
|
9732
9732
|
|
|
9733
9733
|
let thisClass = this;
|
|
9734
9734
|
// mn 3
|
|
9735
|
-
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsRibbon","#" + me.pre + "tool_proteinsRibbon"], "click", function(e) { let ic = me.icn3d;
|
|
9735
|
+
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsRibbon","#" + me.pre + "tool_proteinsRibbon"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9736
9736
|
ic.setOptionCls.setStyle('proteins', 'ribbon');
|
|
9737
9737
|
thisClass.setLogCmd('style proteins ribbon', true);
|
|
9738
9738
|
});
|
|
9739
9739
|
|
|
9740
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStrand", "click", function(e) { let ic = me.icn3d;
|
|
9740
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9741
9741
|
ic.setOptionCls.setStyle('proteins', 'strand');
|
|
9742
9742
|
thisClass.setLogCmd('style proteins strand', true);
|
|
9743
9743
|
});
|
|
9744
9744
|
|
|
9745
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCylinder", "click", function(e) { let ic = me.icn3d;
|
|
9745
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCylinder", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9746
9746
|
ic.setOptionCls.setStyle('proteins', 'cylinder and plate');
|
|
9747
9747
|
thisClass.setLogCmd('style proteins cylinder and plate', true);
|
|
9748
9748
|
});
|
|
9749
9749
|
|
|
9750
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsSchematic", "click", function(e) { let ic = me.icn3d;
|
|
9750
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9751
9751
|
ic.setOptionCls.setStyle('proteins', 'schematic');
|
|
9752
9752
|
thisClass.setLogCmd('style proteins schematic', true);
|
|
9753
9753
|
});
|
|
9754
9754
|
|
|
9755
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCalpha", "click", function(e) { let ic = me.icn3d;
|
|
9755
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsCalpha", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9756
9756
|
ic.setOptionCls.setStyle('proteins', 'c alpha trace');
|
|
9757
9757
|
thisClass.setLogCmd('style proteins c alpha trace', true);
|
|
9758
9758
|
});
|
|
9759
9759
|
|
|
9760
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBackbone", "click", function(e) { let ic = me.icn3d;
|
|
9760
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBackbone", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9761
9761
|
ic.setOptionCls.setStyle('proteins', 'backbone');
|
|
9762
9762
|
thisClass.setLogCmd('style proteins backbone', true);
|
|
9763
9763
|
});
|
|
9764
9764
|
|
|
9765
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBfactor", "click", function(e) { let ic = me.icn3d;
|
|
9765
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsBfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9766
9766
|
ic.setOptionCls.setStyle('proteins', 'b factor tube');
|
|
9767
9767
|
thisClass.setLogCmd('style proteins b factor tube', true);
|
|
9768
9768
|
});
|
|
9769
9769
|
|
|
9770
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsLines", "click", function(e) { let ic = me.icn3d;
|
|
9770
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9771
9771
|
ic.setOptionCls.setStyle('proteins', 'lines');
|
|
9772
9772
|
thisClass.setLogCmd('style proteins lines', true);
|
|
9773
9773
|
});
|
|
9774
9774
|
|
|
9775
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStick", "click", function(e) { let ic = me.icn3d;
|
|
9775
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9776
9776
|
ic.setOptionCls.setStyle('proteins', 'stick');
|
|
9777
9777
|
thisClass.setLogCmd('style proteins stick', true);
|
|
9778
9778
|
});
|
|
9779
9779
|
|
|
9780
|
-
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsBallstick", "#" + me.pre + "tool_proteinsBallstick"], "click", function(e) { let ic = me.icn3d;
|
|
9780
|
+
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsBallstick", "#" + me.pre + "tool_proteinsBallstick"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9781
9781
|
ic.setOptionCls.setStyle('proteins', 'ball and stick');
|
|
9782
9782
|
thisClass.setLogCmd('style proteins ball and stick', true);
|
|
9783
9783
|
});
|
|
9784
9784
|
|
|
9785
|
-
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsSphere", "#" + me.pre + "tool_proteinsSphere"], "click", function(e) { let ic = me.icn3d;
|
|
9785
|
+
me.myEventCls.onIds(["#" + me.pre + "mn3_proteinsSphere", "#" + me.pre + "tool_proteinsSphere"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9786
9786
|
ic.setOptionCls.setStyle('proteins', 'sphere');
|
|
9787
9787
|
thisClass.setLogCmd('style proteins sphere', true);
|
|
9788
9788
|
});
|
|
9789
9789
|
|
|
9790
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsNo", "click", function(e) { let ic = me.icn3d;
|
|
9790
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_proteinsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9791
9791
|
ic.setOptionCls.setStyle('proteins', 'nothing');
|
|
9792
9792
|
thisClass.setLogCmd('style proteins nothing', true);
|
|
9793
9793
|
});
|
|
9794
9794
|
|
|
9795
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecLines", "click", function(e) { let ic = me.icn3d;
|
|
9795
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9796
9796
|
ic.setOptionCls.setStyle('sidec', 'lines2');
|
|
9797
9797
|
thisClass.setLogCmd('style sidec lines2', true);
|
|
9798
9798
|
});
|
|
9799
9799
|
|
|
9800
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecStick", "click", function(e) { let ic = me.icn3d;
|
|
9800
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9801
9801
|
ic.setOptionCls.setStyle('sidec', 'stick2');
|
|
9802
9802
|
thisClass.setLogCmd('style sidec stick2', true);
|
|
9803
9803
|
});
|
|
9804
9804
|
|
|
9805
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecBallstick", "click", function(e) { let ic = me.icn3d;
|
|
9805
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9806
9806
|
ic.setOptionCls.setStyle('sidec', 'ball and stick2');
|
|
9807
9807
|
thisClass.setLogCmd('style sidec ball and stick2', true);
|
|
9808
9808
|
});
|
|
9809
9809
|
|
|
9810
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecSphere", "click", function(e) { let ic = me.icn3d;
|
|
9810
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9811
9811
|
ic.setOptionCls.setStyle('sidec', 'sphere2');
|
|
9812
9812
|
thisClass.setLogCmd('style sidec sphere2', true);
|
|
9813
9813
|
});
|
|
9814
9814
|
|
|
9815
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_sidecNo", "click", function(e) { let ic = me.icn3d;
|
|
9815
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_sidecNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9816
9816
|
ic.setOptionCls.setStyle('sidec', 'nothing');
|
|
9817
9817
|
thisClass.setLogCmd('style sidec nothing', true);
|
|
9818
9818
|
});
|
|
9819
9819
|
|
|
9820
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseLines", "click", function(e) { let ic = me.icn3d;
|
|
9820
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9821
9821
|
ic.setOptionCls.setStyle('ntbase', 'lines2');
|
|
9822
9822
|
thisClass.setLogCmd('style ntbase lines2', true);
|
|
9823
9823
|
});
|
|
9824
9824
|
|
|
9825
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseStick", "click", function(e) { let ic = me.icn3d;
|
|
9825
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9826
9826
|
ic.setOptionCls.setStyle('ntbase', 'stick2');
|
|
9827
9827
|
thisClass.setLogCmd('style ntbase stick2', true);
|
|
9828
9828
|
});
|
|
9829
9829
|
|
|
9830
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseBallstick", "click", function(e) { let ic = me.icn3d;
|
|
9830
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9831
9831
|
ic.setOptionCls.setStyle('ntbase', 'ball and stick2');
|
|
9832
9832
|
thisClass.setLogCmd('style ntbase ball and stick2', true);
|
|
9833
9833
|
});
|
|
9834
9834
|
|
|
9835
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseSphere", "click", function(e) { let ic = me.icn3d;
|
|
9835
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9836
9836
|
ic.setOptionCls.setStyle('ntbase', 'sphere2');
|
|
9837
9837
|
thisClass.setLogCmd('style ntbase sphere2', true);
|
|
9838
9838
|
});
|
|
9839
9839
|
|
|
9840
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseNo", "click", function(e) { let ic = me.icn3d;
|
|
9840
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ntbaseNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9841
9841
|
ic.setOptionCls.setStyle('ntbase', 'nothing');
|
|
9842
9842
|
thisClass.setLogCmd('style ntbase nothing', true);
|
|
9843
9843
|
});
|
|
9844
9844
|
|
|
9845
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclCartoon", "click", function(e) { let ic = me.icn3d;
|
|
9845
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclCartoon", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9846
9846
|
ic.setOptionCls.setStyle('nucleotides', 'nucleotide cartoon');
|
|
9847
9847
|
thisClass.setLogCmd('style nucleotides nucleotide cartoon', true);
|
|
9848
9848
|
});
|
|
9849
9849
|
|
|
9850
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclBackbone", "click", function(e) { let ic = me.icn3d;
|
|
9850
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclBackbone", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9851
9851
|
ic.setOptionCls.setStyle('nucleotides', 'backbone');
|
|
9852
9852
|
thisClass.setLogCmd('style nucleotides backbone', true);
|
|
9853
9853
|
});
|
|
9854
9854
|
|
|
9855
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclSchematic", "click", function(e) { let ic = me.icn3d;
|
|
9855
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9856
9856
|
ic.setOptionCls.setStyle('nucleotides', 'schematic');
|
|
9857
9857
|
thisClass.setLogCmd('style nucleotides schematic', true);
|
|
9858
9858
|
});
|
|
9859
9859
|
|
|
9860
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclPhos", "click", function(e) { let ic = me.icn3d;
|
|
9860
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclPhos", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9861
9861
|
ic.setOptionCls.setStyle('nucleotides', 'o3 trace');
|
|
9862
9862
|
thisClass.setLogCmd('style nucleotides o3 trace', true);
|
|
9863
9863
|
});
|
|
9864
9864
|
|
|
9865
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclLines", "click", function(e) { let ic = me.icn3d;
|
|
9865
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9866
9866
|
ic.setOptionCls.setStyle('nucleotides', 'lines');
|
|
9867
9867
|
thisClass.setLogCmd('style nucleotides lines', true);
|
|
9868
9868
|
});
|
|
9869
9869
|
|
|
9870
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclStick", "click", function(e) { let ic = me.icn3d;
|
|
9870
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9871
9871
|
ic.setOptionCls.setStyle('nucleotides', 'stick');
|
|
9872
9872
|
thisClass.setLogCmd('style nucleotides stick', true);
|
|
9873
9873
|
});
|
|
9874
9874
|
|
|
9875
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclBallstick", "click", function(e) { let ic = me.icn3d;
|
|
9875
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9876
9876
|
ic.setOptionCls.setStyle('nucleotides', 'ball and stick');
|
|
9877
9877
|
thisClass.setLogCmd('style nucleotides ball and stick', true);
|
|
9878
9878
|
});
|
|
9879
9879
|
|
|
9880
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclSphere", "click", function(e) { let ic = me.icn3d;
|
|
9880
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9881
9881
|
ic.setOptionCls.setStyle('nucleotides', 'sphere');
|
|
9882
9882
|
thisClass.setLogCmd('style nucleotides sphere', true);
|
|
9883
9883
|
});
|
|
9884
9884
|
|
|
9885
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_nuclNo", "click", function(e) { let ic = me.icn3d;
|
|
9885
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_nuclNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9886
9886
|
ic.setOptionCls.setStyle('nucleotides', 'nothing');
|
|
9887
9887
|
thisClass.setLogCmd('style nucleotides nothing', true);
|
|
9888
9888
|
});
|
|
9889
9889
|
|
|
9890
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligLines", "click", function(e) { let ic = me.icn3d;
|
|
9890
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligLines", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9891
9891
|
ic.setOptionCls.setStyle('chemicals', 'lines');
|
|
9892
9892
|
thisClass.setLogCmd('style chemicals lines', true);
|
|
9893
9893
|
});
|
|
9894
9894
|
|
|
9895
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligStick", "click", function(e) { let ic = me.icn3d;
|
|
9895
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligStick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9896
9896
|
ic.setOptionCls.setStyle('chemicals', 'stick');
|
|
9897
9897
|
thisClass.setLogCmd('style chemicals stick', true);
|
|
9898
9898
|
});
|
|
9899
9899
|
|
|
9900
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligBallstick", "click", function(e) { let ic = me.icn3d;
|
|
9900
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligBallstick", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9901
9901
|
ic.setOptionCls.setStyle('chemicals', 'ball and stick');
|
|
9902
9902
|
thisClass.setLogCmd('style chemicals ball and stick', true);
|
|
9903
9903
|
});
|
|
9904
9904
|
|
|
9905
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligSchematic", "click", function(e) { let ic = me.icn3d;
|
|
9905
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligSchematic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9906
9906
|
ic.setOptionCls.setStyle('chemicals', 'schematic');
|
|
9907
9907
|
thisClass.setLogCmd('style chemicals schematic', true);
|
|
9908
9908
|
});
|
|
9909
9909
|
|
|
9910
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligSphere", "click", function(e) { let ic = me.icn3d;
|
|
9910
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9911
9911
|
ic.setOptionCls.setStyle('chemicals', 'sphere');
|
|
9912
9912
|
thisClass.setLogCmd('style chemicals sphere', true);
|
|
9913
9913
|
});
|
|
9914
9914
|
|
|
9915
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ligNo", "click", function(e) { let ic = me.icn3d;
|
|
9915
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ligNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9916
9916
|
ic.setOptionCls.setStyle('chemicals', 'nothing');
|
|
9917
9917
|
thisClass.setLogCmd('style chemicals nothing', true);
|
|
9918
9918
|
});
|
|
9919
9919
|
|
|
9920
9920
|
|
|
9921
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartYes", "click", function(e) { let ic = me.icn3d;
|
|
9921
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9922
9922
|
ic.bGlycansCartoon = true;
|
|
9923
9923
|
ic.drawCls.draw();
|
|
9924
9924
|
thisClass.setLogCmd('glycans cartoon yes', true);
|
|
9925
9925
|
});
|
|
9926
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartNo", "click", function(e) { let ic = me.icn3d;
|
|
9926
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_glycansCartNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9927
9927
|
ic.bGlycansCartoon = false;
|
|
9928
9928
|
ic.drawCls.draw();
|
|
9929
9929
|
thisClass.setLogCmd('glycans cartoon no', true);
|
|
9930
9930
|
});
|
|
9931
9931
|
|
|
9932
9932
|
|
|
9933
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensYes", "click", function(e) { let ic = me.icn3d;
|
|
9933
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9934
9934
|
ic.showInterCls.showHydrogens();
|
|
9935
9935
|
ic.drawCls.draw();
|
|
9936
9936
|
thisClass.setLogCmd('hydrogens', true);
|
|
9937
9937
|
});
|
|
9938
9938
|
|
|
9939
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensNo", "click", function(e) { let ic = me.icn3d;
|
|
9939
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_hydrogensNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9940
9940
|
ic.showInterCls.hideHydrogens();
|
|
9941
9941
|
ic.drawCls.draw();
|
|
9942
9942
|
thisClass.setLogCmd('set hydrogens off', true);
|
|
9943
9943
|
});
|
|
9944
9944
|
|
|
9945
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ionsSphere", "click", function(e) { let ic = me.icn3d;
|
|
9945
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ionsSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9946
9946
|
ic.setOptionCls.setStyle('ions', 'sphere');
|
|
9947
9947
|
thisClass.setLogCmd('style ions sphere', true);
|
|
9948
9948
|
});
|
|
9949
9949
|
|
|
9950
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ionsDot", "click", function(e) { let ic = me.icn3d;
|
|
9950
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ionsDot", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9951
9951
|
ic.setOptionCls.setStyle('ions', 'dot');
|
|
9952
9952
|
thisClass.setLogCmd('style ions dot', true);
|
|
9953
9953
|
});
|
|
9954
9954
|
|
|
9955
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_ionsNo", "click", function(e) { let ic = me.icn3d;
|
|
9955
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_ionsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9956
9956
|
ic.setOptionCls.setStyle('ions', 'nothing');
|
|
9957
9957
|
thisClass.setLogCmd('style ions nothing', true);
|
|
9958
9958
|
});
|
|
9959
9959
|
|
|
9960
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_waterSphere", "click", function(e) { let ic = me.icn3d;
|
|
9960
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_waterSphere", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9961
9961
|
ic.setOptionCls.setStyle('water', 'sphere');
|
|
9962
9962
|
thisClass.setLogCmd('style water sphere', true);
|
|
9963
9963
|
});
|
|
9964
9964
|
|
|
9965
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_waterDot", "click", function(e) { let ic = me.icn3d;
|
|
9965
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_waterDot", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9966
9966
|
ic.setOptionCls.setStyle('water', 'dot');
|
|
9967
9967
|
thisClass.setLogCmd('style water dot', true);
|
|
9968
9968
|
});
|
|
9969
9969
|
|
|
9970
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_waterNo", "click", function(e) { let ic = me.icn3d;
|
|
9970
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_waterNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9971
9971
|
ic.setOptionCls.setStyle('water', 'nothing');
|
|
9972
9972
|
thisClass.setLogCmd('style water nothing', true);
|
|
9973
9973
|
});
|
|
@@ -9979,16 +9979,16 @@ class ClickMenu {
|
|
|
9979
9979
|
|
|
9980
9980
|
let thisClass = this;
|
|
9981
9981
|
// mn 4
|
|
9982
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrum", "click", function(e) { let ic = me.icn3d;
|
|
9982
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9983
9983
|
ic.setOptionCls.setOption('color', 'spectrum');
|
|
9984
9984
|
thisClass.setLogCmd('color spectrum', true);
|
|
9985
9985
|
});
|
|
9986
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumChain", "click", function(e) { let ic = me.icn3d;
|
|
9986
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumChain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9987
9987
|
ic.setOptionCls.setOption('color', 'spectrum for chains');
|
|
9988
9988
|
thisClass.setLogCmd('color spectrum for chains', true);
|
|
9989
9989
|
});
|
|
9990
9990
|
|
|
9991
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumAcrossSets", "click", function(e) { let ic = me.icn3d;
|
|
9991
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumAcrossSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
9992
9992
|
thisClass.SetChainsAdvancedMenu();
|
|
9993
9993
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
9994
9994
|
if($("#" + me.pre + "atomsCustomColorSpectrumAcross").length) {
|
|
@@ -9999,7 +9999,7 @@ class ClickMenu {
|
|
|
9999
9999
|
$("#" + me.pre + "atomsCustomColorSpectrumAcross").resizable();
|
|
10000
10000
|
});
|
|
10001
10001
|
|
|
10002
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumSets", "click", function(e) { let ic = me.icn3d;
|
|
10002
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSpectrumSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10003
10003
|
thisClass.SetChainsAdvancedMenu();
|
|
10004
10004
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
10005
10005
|
if($("#" + me.pre + "atomsCustomColorSpectrum").length) {
|
|
@@ -10010,7 +10010,7 @@ class ClickMenu {
|
|
|
10010
10010
|
$("#" + me.pre + "atomsCustomColorSpectrum").resizable();
|
|
10011
10011
|
});
|
|
10012
10012
|
|
|
10013
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowAcrossSets", "click", function(e) { let ic = me.icn3d;
|
|
10013
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowAcrossSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10014
10014
|
thisClass.SetChainsAdvancedMenu();
|
|
10015
10015
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
10016
10016
|
if($("#" + me.pre + "atomsCustomColorRainbowAcross").length) {
|
|
@@ -10021,7 +10021,7 @@ class ClickMenu {
|
|
|
10021
10021
|
$("#" + me.pre + "atomsCustomColorRainbowAcross").resizable();
|
|
10022
10022
|
});
|
|
10023
10023
|
|
|
10024
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowSets", "click", function(e) { let ic = me.icn3d;
|
|
10024
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbowSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10025
10025
|
thisClass.SetChainsAdvancedMenu();
|
|
10026
10026
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
10027
10027
|
if($("#" + me.pre + "atomsCustomColorRainbow").length) {
|
|
@@ -10032,59 +10032,60 @@ class ClickMenu {
|
|
|
10032
10032
|
$("#" + me.pre + "atomsCustomColorRainbow").resizable();
|
|
10033
10033
|
});
|
|
10034
10034
|
|
|
10035
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbow", "click", function(e) { let ic = me.icn3d;
|
|
10035
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrRainbow", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10036
10036
|
ic.setOptionCls.setOption('color', 'rainbow');
|
|
10037
|
+
|
|
10037
10038
|
thisClass.setLogCmd('color rainbow', true);
|
|
10038
10039
|
});
|
|
10039
|
-
me.myEventCls.onIds(["#" + me.pre + "mn4_clrRainbowChain", "#" + me.pre + "tool_clrRainbowChain"], "click", function(e) { let ic = me.icn3d;
|
|
10040
|
+
me.myEventCls.onIds(["#" + me.pre + "mn4_clrRainbowChain", "#" + me.pre + "tool_clrRainbowChain"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10040
10041
|
ic.setOptionCls.setOption('color', 'rainbow for chains');
|
|
10041
10042
|
thisClass.setLogCmd('color rainbow for chains', true);
|
|
10042
10043
|
});
|
|
10043
10044
|
|
|
10044
|
-
me.myEventCls.onIds(["#" + me.pre + "mn4_clrChain", "#" + me.pre + "tool_clrChain"], "click", function(e) { let ic = me.icn3d;
|
|
10045
|
+
me.myEventCls.onIds(["#" + me.pre + "mn4_clrChain", "#" + me.pre + "tool_clrChain"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10045
10046
|
ic.setOptionCls.setOption('color', 'chain');
|
|
10046
10047
|
thisClass.setLogCmd('color chain', true);
|
|
10047
10048
|
});
|
|
10048
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrStructure", "click", function(e) { let ic = me.icn3d;
|
|
10049
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrStructure", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10049
10050
|
ic.setOptionCls.setOption('color', 'structure');
|
|
10050
10051
|
thisClass.setLogCmd('color structure', true);
|
|
10051
10052
|
});
|
|
10052
10053
|
|
|
10053
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrdomain", "click", function(e) { let ic = me.icn3d;
|
|
10054
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrdomain", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10054
10055
|
ic.setOptionCls.setOption('color', 'domain');
|
|
10055
10056
|
thisClass.setLogCmd('color domain', true);
|
|
10056
10057
|
});
|
|
10057
10058
|
|
|
10058
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrsets", "click", function(e) { let ic = me.icn3d;
|
|
10059
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrsets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10059
10060
|
ic.setOptionCls.setOption('color', 'defined sets');
|
|
10060
10061
|
thisClass.setLogCmd('color defined sets', true);
|
|
10061
10062
|
});
|
|
10062
10063
|
|
|
10063
10064
|
|
|
10064
|
-
me.myEventCls.onIds(["#" + me.pre + "mn4_clrSSGreen", "#" + me.pre + "tool_clrSSGreen"], "click", function(e) { let ic = me.icn3d;
|
|
10065
|
+
me.myEventCls.onIds(["#" + me.pre + "mn4_clrSSGreen", "#" + me.pre + "tool_clrSSGreen"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10065
10066
|
ic.sheetcolor = 'green';
|
|
10066
10067
|
ic.setOptionCls.setOption('color', 'secondary structure green');
|
|
10067
10068
|
thisClass.setLogCmd('color secondary structure green', true);
|
|
10068
10069
|
});
|
|
10069
10070
|
|
|
10070
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSSYellow", "click", function(e) { let ic = me.icn3d;
|
|
10071
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSSYellow", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10071
10072
|
ic.sheetcolor = 'yellow';
|
|
10072
10073
|
ic.setOptionCls.setOption('color', 'secondary structure yellow');
|
|
10073
10074
|
thisClass.setLogCmd('color secondary structure yellow', true);
|
|
10074
10075
|
});
|
|
10075
10076
|
|
|
10076
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSSSpectrum", "click", function(e) { let ic = me.icn3d;
|
|
10077
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSSSpectrum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10077
10078
|
ic.setOptionCls.setOption('color', 'secondary structure spectrum');
|
|
10078
10079
|
thisClass.setLogCmd('color secondary structure spectrum', true);
|
|
10079
10080
|
});
|
|
10080
10081
|
|
|
10081
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrResidue", "click", function(e) { let ic = me.icn3d;
|
|
10082
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrResidue", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10082
10083
|
//ic.legendClick = 2;
|
|
10083
10084
|
ic.setOptionCls.setOption('color', 'residue');
|
|
10084
10085
|
thisClass.setLogCmd('color residue', true);
|
|
10085
10086
|
});
|
|
10086
10087
|
|
|
10087
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrResidueCustom", "click", function(e) { me.icn3d;
|
|
10088
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrResidueCustom", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10088
10089
|
//ic.legendClick = 2;
|
|
10089
10090
|
me.htmlCls.dialogCls.openDlg('dl_rescolorfile', 'Please input the file on residue colors');
|
|
10090
10091
|
});
|
|
@@ -10130,12 +10131,12 @@ class ClickMenu {
|
|
|
10130
10131
|
ic.addTrackCls.setCustomFile('color', ic.startColor, ic.midColor, ic.endColor);
|
|
10131
10132
|
});
|
|
10132
10133
|
|
|
10133
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_customref", "click", function(e) { me.icn3d;
|
|
10134
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_customref", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10134
10135
|
|
|
10135
10136
|
me.htmlCls.dialogCls.openDlg('dl_customref', 'Set custom reference numbers');
|
|
10136
10137
|
});
|
|
10137
10138
|
|
|
10138
|
-
me.myEventCls.onIds("#" + me.pre + "reload_customreffile", "click", function(e) { let ic = me.icn3d;
|
|
10139
|
+
me.myEventCls.onIds("#" + me.pre + "reload_customreffile", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10139
10140
|
|
|
10140
10141
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
10141
10142
|
|
|
@@ -10172,82 +10173,82 @@ class ClickMenu {
|
|
|
10172
10173
|
ic.addTrackCls.setCustomFile('tube');
|
|
10173
10174
|
});
|
|
10174
10175
|
|
|
10175
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrCharge", "click", function(e) { let ic = me.icn3d;
|
|
10176
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrCharge", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10176
10177
|
//ic.legendClick = 3;
|
|
10177
10178
|
ic.setOptionCls.setOption('color', 'charge');
|
|
10178
10179
|
thisClass.setLogCmd('color charge', true);
|
|
10179
10180
|
});
|
|
10180
10181
|
|
|
10181
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrHydrophobic", "click", function(e) { let ic = me.icn3d;
|
|
10182
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrHydrophobic", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10182
10183
|
//ic.legendClick = 4;
|
|
10183
10184
|
ic.setOptionCls.setOption('color', 'hydrophobic');
|
|
10184
10185
|
thisClass.setLogCmd('color hydrophobic', true);
|
|
10185
10186
|
});
|
|
10186
10187
|
|
|
10187
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrNormalizedHP", "click", function(e) { let ic = me.icn3d;
|
|
10188
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrNormalizedHP", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10188
10189
|
//ic.legendClick = 4;
|
|
10189
10190
|
ic.setOptionCls.setOption('color', 'normalized hydrophobic');
|
|
10190
10191
|
thisClass.setLogCmd('color normalized hydrophobic', true);
|
|
10191
10192
|
});
|
|
10192
10193
|
|
|
10193
10194
|
|
|
10194
|
-
me.myEventCls.onIds(["#" + me.pre + "mn4_clrAtom", "#" + me.pre + "tool_clrAtom"], "click", function(e) { let ic = me.icn3d;
|
|
10195
|
+
me.myEventCls.onIds(["#" + me.pre + "mn4_clrAtom", "#" + me.pre + "tool_clrAtom"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10195
10196
|
//ic.legendClick = 1;
|
|
10196
10197
|
ic.setOptionCls.setOption('color', 'atom');
|
|
10197
10198
|
thisClass.setLogCmd('color atom', true);
|
|
10198
10199
|
});
|
|
10199
10200
|
|
|
10200
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactor", "click", function(e) { let ic = me.icn3d;
|
|
10201
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactor", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10201
10202
|
//ic.legendClick = 5;
|
|
10202
10203
|
ic.setOptionCls.setOption('color', 'b factor');
|
|
10203
10204
|
thisClass.setLogCmd('color b factor', true);
|
|
10204
10205
|
});
|
|
10205
10206
|
|
|
10206
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrConfidence", "click", function(e) { let ic = me.icn3d;
|
|
10207
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrConfidence", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10207
10208
|
//ic.legendClick = 6;
|
|
10208
10209
|
ic.setOptionCls.setOption('color', 'confidence');
|
|
10209
10210
|
thisClass.setLogCmd('color confidence', true);
|
|
10210
10211
|
});
|
|
10211
10212
|
|
|
10212
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrIgstrand", "click", function(e) { let ic = me.icn3d;
|
|
10213
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrIgstrand", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10213
10214
|
//ic.legendClick = 6;
|
|
10214
10215
|
ic.setOptionCls.setOption('color', 'ig strand');
|
|
10215
10216
|
thisClass.setLogCmd('color ig strand', true);
|
|
10216
10217
|
});
|
|
10217
10218
|
|
|
10218
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrIgproto", "click", function(e) { let ic = me.icn3d;
|
|
10219
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrIgproto", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10219
10220
|
//ic.legendClick = 6;
|
|
10220
10221
|
ic.setOptionCls.setOption('color', 'ig protodomain');
|
|
10221
10222
|
thisClass.setLogCmd('color ig protodomain', true);
|
|
10222
10223
|
});
|
|
10223
10224
|
|
|
10224
10225
|
|
|
10225
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrArea", "click", function(e) { me.icn3d;
|
|
10226
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrArea", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10226
10227
|
me.htmlCls.dialogCls.openDlg('dl_colorbyarea', "Color based on residue's solvent accessibility");
|
|
10227
10228
|
});
|
|
10228
|
-
me.myEventCls.onIds("#" + me.pre + "applycolorbyarea", "click", function(e) { let ic = me.icn3d;
|
|
10229
|
+
me.myEventCls.onIds("#" + me.pre + "applycolorbyarea", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10229
10230
|
ic.midpercent = $("#" + me.pre + 'midpercent').val();
|
|
10230
10231
|
ic.setOptionCls.setOption('color', 'area');
|
|
10231
10232
|
thisClass.setLogCmd('color area | ' + ic.midpercent, true);
|
|
10232
10233
|
|
|
10233
10234
|
});
|
|
10234
10235
|
|
|
10235
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactorNorm", "click", function(e) { let ic = me.icn3d;
|
|
10236
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrBfactorNorm", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10236
10237
|
ic.setOptionCls.setOption('color', 'b factor percentile');
|
|
10237
10238
|
thisClass.setLogCmd('color b factor percentile', true);
|
|
10238
10239
|
});
|
|
10239
10240
|
|
|
10240
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrIdentity", "click", function(e) { let ic = me.icn3d;
|
|
10241
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrIdentity", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10241
10242
|
ic.setOptionCls.setOption('color', 'identity');
|
|
10242
10243
|
thisClass.setLogCmd('color identity', true);
|
|
10243
10244
|
});
|
|
10244
10245
|
|
|
10245
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrConserved", "click", function(e) { let ic = me.icn3d;
|
|
10246
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrConserved", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10246
10247
|
ic.setOptionCls.setOption('color', 'conservation');
|
|
10247
10248
|
thisClass.setLogCmd('color conservation', true);
|
|
10248
10249
|
});
|
|
10249
10250
|
|
|
10250
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrCustom", "click", function(e) { me.icn3d;
|
|
10251
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrCustom", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10251
10252
|
me.htmlCls.dialogCls.openDlg('dl_clr', 'Color picker');
|
|
10252
10253
|
});
|
|
10253
10254
|
|
|
@@ -10256,25 +10257,26 @@ class ClickMenu {
|
|
|
10256
10257
|
//e.preventDefault();
|
|
10257
10258
|
let color = $(this).attr('color');
|
|
10258
10259
|
ic.setOptionCls.setOption("color", color);
|
|
10260
|
+
|
|
10259
10261
|
thisClass.setLogCmd("color " + color, true);
|
|
10260
10262
|
});
|
|
10261
10263
|
|
|
10262
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrSave", "click", function(e) { let ic = me.icn3d;
|
|
10264
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrSave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10263
10265
|
ic.setOptionCls.saveColor();
|
|
10264
10266
|
thisClass.setLogCmd('save color', true);
|
|
10265
10267
|
});
|
|
10266
10268
|
|
|
10267
|
-
me.myEventCls.onIds("#" + me.pre + "mn4_clrApplySave", "click", function(e) { let ic = me.icn3d;
|
|
10269
|
+
me.myEventCls.onIds("#" + me.pre + "mn4_clrApplySave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10268
10270
|
ic.setOptionCls.applySavedColor();
|
|
10269
10271
|
thisClass.setLogCmd('apply saved color', true);
|
|
10270
10272
|
});
|
|
10271
10273
|
|
|
10272
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_styleSave", "click", function(e) { let ic = me.icn3d;
|
|
10274
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_styleSave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10273
10275
|
ic.setOptionCls.saveStyle();
|
|
10274
10276
|
thisClass.setLogCmd('save style', true);
|
|
10275
10277
|
});
|
|
10276
10278
|
|
|
10277
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_styleApplySave", "click", function(e) { let ic = me.icn3d;
|
|
10279
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_styleApplySave", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10278
10280
|
ic.setOptionCls.applySavedStyle();
|
|
10279
10281
|
thisClass.setLogCmd('apply saved style', true);
|
|
10280
10282
|
});
|
|
@@ -10286,7 +10288,7 @@ class ClickMenu {
|
|
|
10286
10288
|
|
|
10287
10289
|
let thisClass = this;
|
|
10288
10290
|
// mn 5
|
|
10289
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_neighborsYes", "click", function(e) { let ic = me.icn3d;
|
|
10291
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_neighborsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10290
10292
|
ic.bConsiderNeighbors = true;
|
|
10291
10293
|
ic.applyMapCls.removeLastSurface();
|
|
10292
10294
|
ic.applyMapCls.applySurfaceOptions();
|
|
@@ -10294,7 +10296,7 @@ class ClickMenu {
|
|
|
10294
10296
|
thisClass.setLogCmd('set surface neighbors on', true);
|
|
10295
10297
|
});
|
|
10296
10298
|
|
|
10297
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_neighborsNo", "click", function(e) { let ic = me.icn3d;
|
|
10299
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_neighborsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10298
10300
|
ic.bConsiderNeighbors = false;
|
|
10299
10301
|
ic.applyMapCls.removeLastSurface();
|
|
10300
10302
|
ic.applyMapCls.applySurfaceOptions();
|
|
@@ -10302,48 +10304,48 @@ class ClickMenu {
|
|
|
10302
10304
|
thisClass.setLogCmd('set surface neighbors off', true);
|
|
10303
10305
|
});
|
|
10304
10306
|
|
|
10305
|
-
me.myEventCls.onIds(["#" + me.pre + "mn5_surfaceVDW", "#" + me.pre + "tool_surfaceVDW"], "click", function(e) { let ic = me.icn3d;
|
|
10307
|
+
me.myEventCls.onIds(["#" + me.pre + "mn5_surfaceVDW", "#" + me.pre + "tool_surfaceVDW"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10306
10308
|
ic.bConsiderNeighbors = false;
|
|
10307
10309
|
ic.setOptionCls.setOption('surface', 'Van der Waals surface');
|
|
10308
10310
|
thisClass.setLogCmd('set surface Van der Waals surface', true);
|
|
10309
10311
|
});
|
|
10310
10312
|
|
|
10311
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSAS", "click", function(e) { let ic = me.icn3d;
|
|
10313
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSAS", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10312
10314
|
ic.bConsiderNeighbors = false;
|
|
10313
10315
|
ic.setOptionCls.setOption('surface', 'solvent accessible surface');
|
|
10314
10316
|
thisClass.setLogCmd('set surface solvent accessible surface', true);
|
|
10315
10317
|
});
|
|
10316
10318
|
|
|
10317
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecular", "click", function(e) { let ic = me.icn3d;
|
|
10319
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecular", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10318
10320
|
ic.bConsiderNeighbors = false;
|
|
10319
10321
|
ic.setOptionCls.setOption('surface', 'molecular surface');
|
|
10320
10322
|
thisClass.setLogCmd('set surface molecular surface', true);
|
|
10321
10323
|
});
|
|
10322
10324
|
|
|
10323
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceVDWContext", "click", function(e) { let ic = me.icn3d;
|
|
10325
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceVDWContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10324
10326
|
ic.bConsiderNeighbors = true;
|
|
10325
10327
|
ic.setOptionCls.setOption('surface', 'Van der Waals surface with context');
|
|
10326
10328
|
thisClass.setLogCmd('set surface Van der Waals surface with context', true);
|
|
10327
10329
|
});
|
|
10328
10330
|
|
|
10329
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSASContext", "click", function(e) { let ic = me.icn3d;
|
|
10331
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceSASContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10330
10332
|
ic.bConsiderNeighbors = true;
|
|
10331
10333
|
ic.setOptionCls.setOption('surface', 'solvent accessible surface with context');
|
|
10332
10334
|
thisClass.setLogCmd('set surface solvent accessible surface with context', true);
|
|
10333
10335
|
});
|
|
10334
10336
|
|
|
10335
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecularContext", "click", function(e) { let ic = me.icn3d;
|
|
10337
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceMolecularContext", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10336
10338
|
ic.bConsiderNeighbors = true;
|
|
10337
10339
|
ic.setOptionCls.setOption('surface', 'molecular surface with context');
|
|
10338
10340
|
thisClass.setLogCmd('set surface molecular surface with context', true);
|
|
10339
10341
|
});
|
|
10340
10342
|
|
|
10341
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceNo", "click", function(e) { let ic = me.icn3d;
|
|
10343
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_surfaceNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10342
10344
|
ic.setOptionCls.setOption('surface', 'nothing');
|
|
10343
10345
|
thisClass.setLogCmd('set surface nothing', true);
|
|
10344
10346
|
});
|
|
10345
10347
|
|
|
10346
|
-
$(document).on("click", "." + me.pre + "mn5_opacity", function(e) { let ic = me.icn3d;
|
|
10348
|
+
$(document).on("click", "." + me.pre + "mn5_opacity", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10347
10349
|
ic.transparentRenderOrder = false;
|
|
10348
10350
|
|
|
10349
10351
|
let value = $(this).attr('v');
|
|
@@ -10351,7 +10353,7 @@ class ClickMenu {
|
|
|
10351
10353
|
thisClass.setLogCmd('set surface opacity ' + value, true);
|
|
10352
10354
|
});
|
|
10353
10355
|
|
|
10354
|
-
$(document).on("click", "." + me.pre + "mn5_opacityslow", function(e) { let ic = me.icn3d;
|
|
10356
|
+
$(document).on("click", "." + me.pre + "mn5_opacityslow", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10355
10357
|
ic.transparentRenderOrder = true;
|
|
10356
10358
|
|
|
10357
10359
|
let value = $(this).attr('v');
|
|
@@ -10359,35 +10361,35 @@ class ClickMenu {
|
|
|
10359
10361
|
thisClass.setLogCmd('set surface2 opacity ' + value, true);
|
|
10360
10362
|
});
|
|
10361
10363
|
|
|
10362
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_wireframeYes", "click", function(e) { let ic = me.icn3d;
|
|
10364
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_wireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10363
10365
|
ic.setOptionCls.setOption('wireframe', 'yes');
|
|
10364
10366
|
thisClass.setLogCmd('set surface wireframe on', true);
|
|
10365
10367
|
});
|
|
10366
10368
|
|
|
10367
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_wireframeNo", "click", function(e) { let ic = me.icn3d;
|
|
10369
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_wireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10368
10370
|
ic.setOptionCls.setOption('wireframe', 'no');
|
|
10369
10371
|
thisClass.setLogCmd('set surface wireframe off', true);
|
|
10370
10372
|
});
|
|
10371
10373
|
|
|
10372
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_elecmap2fofc", "click", function(e) { me.icn3d;
|
|
10374
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_elecmap2fofc", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10373
10375
|
me.htmlCls.dialogCls.openDlg('dl_elecmap2fofc', '2Fo-Fc Electron Density Map');
|
|
10374
10376
|
});
|
|
10375
10377
|
|
|
10376
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_elecmapfofc", "click", function(e) { me.icn3d;
|
|
10378
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_elecmapfofc", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10377
10379
|
me.htmlCls.dialogCls.openDlg('dl_elecmapfofc', 'Fo-Fc Electron Density Map');
|
|
10378
10380
|
});
|
|
10379
10381
|
|
|
10380
|
-
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;
|
|
10382
|
+
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();
|
|
10381
10383
|
ic.setOptionCls.setOption('map', 'nothing');
|
|
10382
10384
|
thisClass.setLogCmd('setoption map nothing', true);
|
|
10383
10385
|
});
|
|
10384
10386
|
|
|
10385
|
-
me.myEventCls.onIds(["#" + me.pre + "delphimapNo", "#" + me.pre + "phimapNo", "#" + me.pre + "phiurlmapNo", "#" + me.pre + "mn1_phimapNo"], "click", function(e) { let ic = me.icn3d;
|
|
10387
|
+
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();
|
|
10386
10388
|
ic.setOptionCls.setOption('phimap', 'nothing');
|
|
10387
10389
|
thisClass.setLogCmd('setoption phimap nothing', true);
|
|
10388
10390
|
});
|
|
10389
10391
|
|
|
10390
|
-
me.myEventCls.onIds(["#" + me.pre + "delphimapNo2", "#" + me.pre + "phimapNo2", "#" + me.pre + "phiurlmapNo2"], "click", function(e) { let ic = me.icn3d;
|
|
10392
|
+
me.myEventCls.onIds(["#" + me.pre + "delphimapNo2", "#" + me.pre + "phimapNo2", "#" + me.pre + "phiurlmapNo2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10391
10393
|
//ic.setOptionCls.setOption('surface', 'nothing');
|
|
10392
10394
|
//thisClass.setLogCmd('set surface nothing', true);
|
|
10393
10395
|
ic.setOptionCls.setOption('phisurface', 'nothing');
|
|
@@ -10419,22 +10421,22 @@ class ClickMenu {
|
|
|
10419
10421
|
thisClass.setLogCmd('set map fofc sigma ' + sigmafofc, true);
|
|
10420
10422
|
});
|
|
10421
10423
|
|
|
10422
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeYes", "click", function(e) { let ic = me.icn3d;
|
|
10424
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10423
10425
|
//ic.dsn6ParserCls.dsn6Parser(ic.inputid);
|
|
10424
10426
|
ic.setOptionCls.setOption('mapwireframe', 'yes');
|
|
10425
10427
|
thisClass.setLogCmd('set map wireframe on', true);
|
|
10426
10428
|
});
|
|
10427
10429
|
|
|
10428
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeNo", "click", function(e) { let ic = me.icn3d;
|
|
10430
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_mapwireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10429
10431
|
ic.setOptionCls.setOption('mapwireframe', 'no');
|
|
10430
10432
|
thisClass.setLogCmd('set map wireframe off', true);
|
|
10431
10433
|
});
|
|
10432
10434
|
|
|
10433
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_emmap", "click", function(e) { me.icn3d;
|
|
10435
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_emmap", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10434
10436
|
me.htmlCls.dialogCls.openDlg('dl_emmap', 'EM Density Map');
|
|
10435
10437
|
});
|
|
10436
10438
|
|
|
10437
|
-
me.myEventCls.onIds(["#" + me.pre + "mn5_emmapNo", "#" + me.pre + "emmapNo2"], "click", function(e) { let ic = me.icn3d;
|
|
10439
|
+
me.myEventCls.onIds(["#" + me.pre + "mn5_emmapNo", "#" + me.pre + "emmapNo2"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10438
10440
|
ic.setOptionCls.setOption('emmap', 'nothing');
|
|
10439
10441
|
thisClass.setLogCmd('setoption emmap nothing', true);
|
|
10440
10442
|
});
|
|
@@ -10451,13 +10453,13 @@ class ClickMenu {
|
|
|
10451
10453
|
thisClass.setLogCmd('set emmap percentage ' + empercentage, true);
|
|
10452
10454
|
});
|
|
10453
10455
|
|
|
10454
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeYes", "click", function(e) { let ic = me.icn3d;
|
|
10456
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10455
10457
|
//ic.dsn6ParserCls.dsn6Parser(ic.inputid);
|
|
10456
10458
|
ic.setOptionCls.setOption('emmapwireframe', 'yes');
|
|
10457
10459
|
thisClass.setLogCmd('set emmap wireframe on', true);
|
|
10458
10460
|
});
|
|
10459
10461
|
|
|
10460
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeNo", "click", function(e) { let ic = me.icn3d;
|
|
10462
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_emmapwireframeNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10461
10463
|
ic.setOptionCls.setOption('emmapwireframe', 'no');
|
|
10462
10464
|
thisClass.setLogCmd('set emmap wireframe off', true);
|
|
10463
10465
|
});
|
|
@@ -10469,19 +10471,19 @@ class ClickMenu {
|
|
|
10469
10471
|
|
|
10470
10472
|
let thisClass = this;
|
|
10471
10473
|
// mn 6
|
|
10472
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_assemblyYes", "click", function(e) { let ic = me.icn3d;
|
|
10474
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_assemblyYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10473
10475
|
ic.bAssembly = true;
|
|
10474
10476
|
thisClass.setLogCmd('set assembly on', true);
|
|
10475
10477
|
ic.drawCls.draw();
|
|
10476
10478
|
});
|
|
10477
10479
|
|
|
10478
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_assemblyNo", "click", function(e) { let ic = me.icn3d;
|
|
10480
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_assemblyNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10479
10481
|
ic.bAssembly = false;
|
|
10480
10482
|
thisClass.setLogCmd('set assembly off', true);
|
|
10481
10483
|
ic.drawCls.draw();
|
|
10482
10484
|
});
|
|
10483
10485
|
|
|
10484
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_igrefYes", "click", async function(e) { let ic = me.icn3d;
|
|
10486
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_igrefYes", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10485
10487
|
ic.bRunRefnumAgain = true;
|
|
10486
10488
|
|
|
10487
10489
|
thisClass.setLogCmd('ig refnum on', true);
|
|
@@ -10504,11 +10506,11 @@ class ClickMenu {
|
|
|
10504
10506
|
ic.bRunRefnumAgain = false;
|
|
10505
10507
|
});
|
|
10506
10508
|
|
|
10507
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_igrefTpl", "click", async function(e) { me.icn3d;
|
|
10509
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_igrefTpl", "click", async function(e) { me.icn3d; e.preventDefault();
|
|
10508
10510
|
me.htmlCls.dialogCls.openDlg('dl_igrefTpl', 'Choose an Ig template');
|
|
10509
10511
|
});
|
|
10510
10512
|
|
|
10511
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_igrefTpl_apply", "click", async function(e) { me.icn3d;
|
|
10513
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_igrefTpl_apply", "click", async function(e) { me.icn3d; e.preventDefault();
|
|
10512
10514
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
10513
10515
|
|
|
10514
10516
|
let template = $("#" + me.pre + "refTpl").val();
|
|
@@ -10518,11 +10520,11 @@ class ClickMenu {
|
|
|
10518
10520
|
thisClass.setLogCmd('ig template ' + template, true);
|
|
10519
10521
|
});
|
|
10520
10522
|
|
|
10521
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_alignrefTpl", "click", async function(e) { me.icn3d;
|
|
10523
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_alignrefTpl", "click", async function(e) { me.icn3d; e.preventDefault();
|
|
10522
10524
|
me.htmlCls.dialogCls.openDlg('dl_alignrefTpl', 'Align with an Ig template');
|
|
10523
10525
|
});
|
|
10524
10526
|
|
|
10525
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_alignrefTpl_apply", "click", async function(e) { let ic = me.icn3d;
|
|
10527
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_alignrefTpl_apply", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10526
10528
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
10527
10529
|
|
|
10528
10530
|
let template = $("#" + me.pre + "refTpl2").val();
|
|
@@ -10546,7 +10548,7 @@ class ClickMenu {
|
|
|
10546
10548
|
thisClass.setLogCmd('realign on tmalign', true);
|
|
10547
10549
|
});
|
|
10548
10550
|
|
|
10549
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_igrefNo", "click", async function(e) { let ic = me.icn3d;
|
|
10551
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_igrefNo", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10550
10552
|
thisClass.setLogCmd('ig refnum off', true);
|
|
10551
10553
|
await ic.refnumCls.hideIgRefNum();
|
|
10552
10554
|
|
|
@@ -10556,14 +10558,14 @@ class ClickMenu {
|
|
|
10556
10558
|
// ic.drawCls.draw();
|
|
10557
10559
|
});
|
|
10558
10560
|
|
|
10559
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelAtoms", "click", function(e) { let ic = me.icn3d;
|
|
10561
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelAtoms", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10560
10562
|
ic.residueLabelsCls.addAtomLabels(ic.hAtoms);
|
|
10561
10563
|
ic.selectionCls.saveSelectionIfSelected();
|
|
10562
10564
|
thisClass.setLogCmd('add atom labels', true);
|
|
10563
10565
|
ic.drawCls.draw();
|
|
10564
10566
|
});
|
|
10565
10567
|
|
|
10566
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelElements", "click", function(e) { let ic = me.icn3d;
|
|
10568
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelElements", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10567
10569
|
ic.residueLabelsCls.addAtomLabels(ic.hAtoms, true);
|
|
10568
10570
|
ic.selectionCls.saveSelectionIfSelected();
|
|
10569
10571
|
thisClass.setLogCmd('add element labels', true);
|
|
@@ -10571,49 +10573,49 @@ class ClickMenu {
|
|
|
10571
10573
|
});
|
|
10572
10574
|
|
|
10573
10575
|
|
|
10574
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResidues", "click", function(e) { let ic = me.icn3d;
|
|
10576
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResidues", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10575
10577
|
ic.residueLabelsCls.addResidueLabels(ic.hAtoms);
|
|
10576
10578
|
ic.selectionCls.saveSelectionIfSelected();
|
|
10577
10579
|
thisClass.setLogCmd('add residue labels', true);
|
|
10578
10580
|
ic.drawCls.draw();
|
|
10579
10581
|
});
|
|
10580
10582
|
|
|
10581
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResnum", "click", function(e) { let ic = me.icn3d;
|
|
10583
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelResnum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10582
10584
|
ic.residueLabelsCls.addResidueLabels(ic.hAtoms, undefined, undefined, true);
|
|
10583
10585
|
ic.selectionCls.saveSelectionIfSelected();
|
|
10584
10586
|
thisClass.setLogCmd('add residue number labels', true);
|
|
10585
10587
|
ic.drawCls.draw();
|
|
10586
10588
|
});
|
|
10587
10589
|
|
|
10588
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelRefnum", "click", function(e) { let ic = me.icn3d;
|
|
10590
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelRefnum", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10589
10591
|
ic.residueLabelsCls.addResidueLabels(ic.hAtoms, undefined, undefined, undefined, true);
|
|
10590
10592
|
ic.selectionCls.saveSelectionIfSelected();
|
|
10591
10593
|
thisClass.setLogCmd('add reference number labels', true);
|
|
10592
10594
|
ic.drawCls.draw();
|
|
10593
10595
|
});
|
|
10594
10596
|
|
|
10595
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelIg", "click", function(e) { let ic = me.icn3d;
|
|
10597
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelIg", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10596
10598
|
ic.residueLabelsCls.addIgLabels(ic.hAtoms);
|
|
10597
10599
|
ic.selectionCls.saveSelectionIfSelected();
|
|
10598
10600
|
thisClass.setLogCmd('add ig labels', true);
|
|
10599
10601
|
ic.drawCls.draw();
|
|
10600
10602
|
});
|
|
10601
10603
|
|
|
10602
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelChains", "click", function(e) { let ic = me.icn3d;
|
|
10604
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelChains", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10603
10605
|
ic.analysisCls.addChainLabels(ic.hAtoms);
|
|
10604
10606
|
ic.selectionCls.saveSelectionIfSelected();
|
|
10605
10607
|
thisClass.setLogCmd('add chain labels', true);
|
|
10606
10608
|
ic.drawCls.draw();
|
|
10607
10609
|
});
|
|
10608
10610
|
|
|
10609
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelTermini", "click", function(e) { let ic = me.icn3d;
|
|
10611
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelTermini", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10610
10612
|
ic.analysisCls.addTerminiLabels(ic.hAtoms);
|
|
10611
10613
|
ic.selectionCls.saveSelectionIfSelected();
|
|
10612
10614
|
thisClass.setLogCmd('add terminal labels', true);
|
|
10613
10615
|
ic.drawCls.draw();
|
|
10614
10616
|
});
|
|
10615
10617
|
|
|
10616
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelYes", "click", function(e) { let ic = me.icn3d;
|
|
10618
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10617
10619
|
me.htmlCls.dialogCls.openDlg('dl_addlabel', 'Add custom labels by selection');
|
|
10618
10620
|
ic.pk = 1;
|
|
10619
10621
|
ic.opts['pk'] = 'atom';
|
|
@@ -10621,19 +10623,19 @@ class ClickMenu {
|
|
|
10621
10623
|
ic.pAtomNum = 0;
|
|
10622
10624
|
});
|
|
10623
10625
|
|
|
10624
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelSelection", "click", function(e) { me.icn3d;
|
|
10626
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_addlabelSelection", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10625
10627
|
me.htmlCls.dialogCls.openDlg('dl_addlabelselection', 'Add custom labels by the selected');
|
|
10626
10628
|
});
|
|
10627
10629
|
|
|
10628
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_labelColor", "click", function(e) { me.icn3d;
|
|
10630
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_labelColor", "click", function(e) { me.icn3d; e.preventDefault();
|
|
10629
10631
|
me.htmlCls.dialogCls.openDlg('dl_labelColor', 'Change color for all labels');
|
|
10630
10632
|
});
|
|
10631
10633
|
|
|
10632
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_saveselection","#" + me.pre + "tool_saveselection"], "click", function(e) { me.icn3d;
|
|
10634
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_saveselection","#" + me.pre + "tool_saveselection"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
10633
10635
|
me.htmlCls.dialogCls.openDlg('dl_saveselection', 'Save the selected');
|
|
10634
10636
|
});
|
|
10635
10637
|
|
|
10636
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_addlabelNo", "#" + me.pre + "removeLabels"], "click", function(e) { let ic = me.icn3d;
|
|
10638
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_addlabelNo", "#" + me.pre + "removeLabels"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10637
10639
|
ic.labelcolor = undefined;
|
|
10638
10640
|
ic.pickpair = false;
|
|
10639
10641
|
//ic.labels['residue'] = [];
|
|
@@ -10648,14 +10650,14 @@ class ClickMenu {
|
|
|
10648
10650
|
ic.drawCls.draw();
|
|
10649
10651
|
});
|
|
10650
10652
|
|
|
10651
|
-
$(document).on("click", "." + me.pre + "mn6_labelscale", function(e) { let ic = me.icn3d;
|
|
10653
|
+
$(document).on("click", "." + me.pre + "mn6_labelscale", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10652
10654
|
let value = $(this).attr('v');
|
|
10653
10655
|
ic.labelScale = value;
|
|
10654
10656
|
ic.drawCls.draw();
|
|
10655
10657
|
thisClass.setLogCmd('set label scale ' + value, true);
|
|
10656
10658
|
});
|
|
10657
10659
|
|
|
10658
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_distanceYes", "click", function(e) { let ic = me.icn3d;
|
|
10660
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_distanceYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10659
10661
|
me.htmlCls.dialogCls.openDlg('dl_distance', 'Measure the distance of atoms');
|
|
10660
10662
|
ic.pk = 1;
|
|
10661
10663
|
ic.opts['pk'] = 'atom';
|
|
@@ -10665,7 +10667,7 @@ class ClickMenu {
|
|
|
10665
10667
|
});
|
|
10666
10668
|
|
|
10667
10669
|
|
|
10668
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_distTwoSets", "click", function(e) { let ic = me.icn3d;
|
|
10670
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_distTwoSets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10669
10671
|
me.htmlCls.dialogCls.openDlg('dl_disttwosets', 'Measure the distance between two sets');
|
|
10670
10672
|
|
|
10671
10673
|
thisClass.setSetsMenus('atomsCustomDist');
|
|
@@ -10673,7 +10675,7 @@ class ClickMenu {
|
|
|
10673
10675
|
ic.bMeasureDistance = true;
|
|
10674
10676
|
});
|
|
10675
10677
|
|
|
10676
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_distManySets", "click", function(e) { let ic = me.icn3d;
|
|
10678
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_distManySets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10677
10679
|
me.htmlCls.dialogCls.openDlg('dl_distmanysets', 'Measure the pairwise distances among many sets');
|
|
10678
10680
|
|
|
10679
10681
|
thisClass.setSetsMenus('atomsCustomDistTable');
|
|
@@ -10681,7 +10683,7 @@ class ClickMenu {
|
|
|
10681
10683
|
ic.bMeasureDistance = true;
|
|
10682
10684
|
});
|
|
10683
10685
|
|
|
10684
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_angleManySets", "click", function(e) { let ic = me.icn3d;
|
|
10686
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_angleManySets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10685
10687
|
me.htmlCls.dialogCls.openDlg('dl_anglemanysets', 'Measure the pairwise angles among many sets');
|
|
10686
10688
|
|
|
10687
10689
|
thisClass.setSetsMenus('atomsCustomAngleTable');
|
|
@@ -10689,7 +10691,7 @@ class ClickMenu {
|
|
|
10689
10691
|
ic.bMeasureAngle = true;
|
|
10690
10692
|
});
|
|
10691
10693
|
|
|
10692
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_distanceNo", "click", function(e) { let ic = me.icn3d;
|
|
10694
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_distanceNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10693
10695
|
ic.pickpair = false;
|
|
10694
10696
|
let select = "set lines off";
|
|
10695
10697
|
thisClass.setLogCmd(select, true);
|
|
@@ -10700,7 +10702,7 @@ class ClickMenu {
|
|
|
10700
10702
|
ic.drawCls.draw();
|
|
10701
10703
|
});
|
|
10702
10704
|
|
|
10703
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_cartoonshape", "click", function(e) { let ic = me.icn3d;
|
|
10705
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_cartoonshape", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10704
10706
|
me.htmlCls.dialogCls.openDlg('dl_cartoonshape', 'Draw cartoon for a set');
|
|
10705
10707
|
|
|
10706
10708
|
let bOneset = true;
|
|
@@ -10709,7 +10711,7 @@ class ClickMenu {
|
|
|
10709
10711
|
ic.bCartoonshape = true;
|
|
10710
10712
|
});
|
|
10711
10713
|
|
|
10712
|
-
me.myEventCls.onIds("#" + me.pre + "mn5_linebtwsets", "click", function(e) { let ic = me.icn3d;
|
|
10714
|
+
me.myEventCls.onIds("#" + me.pre + "mn5_linebtwsets", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10713
10715
|
me.htmlCls.dialogCls.openDlg('dl_linebtwsets', 'Draw a line between two sets');
|
|
10714
10716
|
|
|
10715
10717
|
thisClass.setSetsMenus('linebtwsets');
|
|
@@ -10718,21 +10720,21 @@ class ClickMenu {
|
|
|
10718
10720
|
});
|
|
10719
10721
|
|
|
10720
10722
|
|
|
10721
|
-
me.myEventCls.onIds(["#" + me.pre + "mn2_selectedcenter", "#" + me.pre + "zoomin_selection", "#" + me.pre + "tool_selectedcenter"], "click", function(e) { let ic = me.icn3d;
|
|
10723
|
+
me.myEventCls.onIds(["#" + me.pre + "mn2_selectedcenter", "#" + me.pre + "zoomin_selection", "#" + me.pre + "tool_selectedcenter"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10722
10724
|
//thisClass.setLogCmd('zoom selection', true);
|
|
10723
10725
|
ic.transformCls.zoominSelection();
|
|
10724
10726
|
ic.drawCls.draw();
|
|
10725
10727
|
thisClass.setLogCmd('zoom selection', true);
|
|
10726
10728
|
});
|
|
10727
10729
|
|
|
10728
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_center", "click", function(e) { let ic = me.icn3d;
|
|
10730
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_center", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10729
10731
|
//thisClass.setLogCmd('center selection', true);
|
|
10730
10732
|
ic.applyCenterCls.centerSelection();
|
|
10731
10733
|
ic.drawCls.draw();
|
|
10732
10734
|
thisClass.setLogCmd('center selection', true);
|
|
10733
10735
|
});
|
|
10734
10736
|
|
|
10735
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_resetOrientation", "#" + me.pre + "resetOrientation", "#" + me.pre + "tool_resetOrientation"], "click", function(e) { let ic = me.icn3d;
|
|
10737
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_resetOrientation", "#" + me.pre + "resetOrientation", "#" + me.pre + "tool_resetOrientation"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10736
10738
|
//thisClass.setLogCmd('reset orientation', true);
|
|
10737
10739
|
ic.transformCls.resetOrientation();
|
|
10738
10740
|
//ic.setColorCls.applyOriginalColor();
|
|
@@ -10740,17 +10742,17 @@ class ClickMenu {
|
|
|
10740
10742
|
thisClass.setLogCmd('reset orientation', true);
|
|
10741
10743
|
});
|
|
10742
10744
|
|
|
10743
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindingshow", "#" + me.pre + "chemicalbindingshow"], "click", function(e) { let ic = me.icn3d;
|
|
10745
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindingshow", "#" + me.pre + "chemicalbindingshow"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10744
10746
|
ic.setOptionCls.setOption('chemicalbinding', 'show');
|
|
10745
10747
|
thisClass.setLogCmd('set chemicalbinding show', true);
|
|
10746
10748
|
});
|
|
10747
10749
|
|
|
10748
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindinghide", "#" + me.pre + "chemicalbindinghide"], "click", function(e) { let ic = me.icn3d;
|
|
10750
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_chemicalbindinghide", "#" + me.pre + "chemicalbindinghide"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10749
10751
|
ic.setOptionCls.setOption('chemicalbinding', 'hide');
|
|
10750
10752
|
thisClass.setLogCmd('set chemicalbinding hide', true);
|
|
10751
10753
|
});
|
|
10752
10754
|
|
|
10753
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_sidebyside", "click", function(e) { let ic = me.icn3d;
|
|
10755
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_sidebyside", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10754
10756
|
if(ic.bInputfile) {
|
|
10755
10757
|
var aaa = 1; //alert("Side-by-Side does NOT work when the input is from a local file.");
|
|
10756
10758
|
return;
|
|
@@ -10769,19 +10771,19 @@ class ClickMenu {
|
|
|
10769
10771
|
//}
|
|
10770
10772
|
});
|
|
10771
10773
|
|
|
10772
|
-
$(document).on("click", "#" + me.pre + "mn2_translate", function(e) { me.icn3d;
|
|
10774
|
+
$(document).on("click", "#" + me.pre + "mn2_translate", function(e) { me.icn3d; e.preventDefault();
|
|
10773
10775
|
me.htmlCls.dialogCls.openDlg('dl_translate', 'Translate the X,Y,Z coordinates of the structure');
|
|
10774
10776
|
});
|
|
10775
10777
|
|
|
10776
|
-
$(document).on("click", "#" + me.pre + "mn6_angleTwoSets", function(e) { me.icn3d;
|
|
10778
|
+
$(document).on("click", "#" + me.pre + "mn6_angleTwoSets", function(e) { me.icn3d; e.preventDefault();
|
|
10777
10779
|
me.htmlCls.dialogCls.openDlg('dl_angle', 'Measure the angle between two vectors');
|
|
10778
10780
|
});
|
|
10779
10781
|
|
|
10780
|
-
$(document).on("click", "#" + me.pre + "mn2_matrix", function(e) { me.icn3d;
|
|
10782
|
+
$(document).on("click", "#" + me.pre + "mn2_matrix", function(e) { me.icn3d; e.preventDefault();
|
|
10781
10783
|
me.htmlCls.dialogCls.openDlg('dl_matrix', 'Apply matrix to the X,Y,Z coordinates of the structure');
|
|
10782
10784
|
});
|
|
10783
10785
|
|
|
10784
|
-
$(document).on("click", "." + me.pre + "mn6_rotate", function(e) { let ic = me.icn3d;
|
|
10786
|
+
$(document).on("click", "." + me.pre + "mn6_rotate", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10785
10787
|
let value = $(this).attr('v').toLowerCase();
|
|
10786
10788
|
let direction = value.split(' ')[1];
|
|
10787
10789
|
|
|
@@ -10793,7 +10795,7 @@ class ClickMenu {
|
|
|
10793
10795
|
ic.resizeCanvasCls.rotStruc(direction);
|
|
10794
10796
|
});
|
|
10795
10797
|
|
|
10796
|
-
$(document).on("click", "." + me.pre + "mn6_rotate90", function(e) { let ic = me.icn3d;
|
|
10798
|
+
$(document).on("click", "." + me.pre + "mn6_rotate90", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10797
10799
|
let value = $(this).attr('v').toLowerCase();
|
|
10798
10800
|
let direction = value.split(' ')[1];
|
|
10799
10801
|
|
|
@@ -10812,21 +10814,21 @@ class ClickMenu {
|
|
|
10812
10814
|
ic.transformCls.setRotation(axis, angle);
|
|
10813
10815
|
});
|
|
10814
10816
|
|
|
10815
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_cameraPers", "click", function(e) { let ic = me.icn3d;
|
|
10817
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_cameraPers", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10816
10818
|
ic.setOptionCls.setOption('camera', 'perspective');
|
|
10817
10819
|
thisClass.setLogCmd('set camera perspective', true);
|
|
10818
10820
|
});
|
|
10819
10821
|
|
|
10820
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_cameraOrth", "click", function(e) { let ic = me.icn3d;
|
|
10822
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_cameraOrth", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10821
10823
|
ic.setOptionCls.setOption('camera', 'orthographic');
|
|
10822
10824
|
thisClass.setLogCmd('set camera orthographic', true);
|
|
10823
10825
|
});
|
|
10824
10826
|
|
|
10825
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdBlack", "click", function(e) { let ic = me.icn3d;
|
|
10827
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdBlack", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10826
10828
|
ic.setStyleCls.setBackground('black');
|
|
10827
10829
|
});
|
|
10828
10830
|
|
|
10829
|
-
me.myEventCls.onIds("#" + me.pre + "tool_bkgd", "click", function(e) { let ic = me.icn3d;
|
|
10831
|
+
me.myEventCls.onIds("#" + me.pre + "tool_bkgd", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10830
10832
|
if(ic.opts['background'] == 'black') {
|
|
10831
10833
|
ic.setStyleCls.setBackground('white');
|
|
10832
10834
|
}
|
|
@@ -10835,19 +10837,19 @@ class ClickMenu {
|
|
|
10835
10837
|
}
|
|
10836
10838
|
});
|
|
10837
10839
|
|
|
10838
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdGrey", "click", function(e) { let ic = me.icn3d;
|
|
10840
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdGrey", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10839
10841
|
ic.setStyleCls.setBackground('grey');
|
|
10840
10842
|
});
|
|
10841
10843
|
|
|
10842
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_bkgdWhite", "#" + me.pre + "tool_bkgdWhite"], "click", function(e) { let ic = me.icn3d;
|
|
10844
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_bkgdWhite", "#" + me.pre + "tool_bkgdWhite"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10843
10845
|
ic.setStyleCls.setBackground('white');
|
|
10844
10846
|
});
|
|
10845
10847
|
|
|
10846
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdTransparent", "click", function(e) { let ic = me.icn3d;
|
|
10848
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_bkgdTransparent", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10847
10849
|
ic.setStyleCls.setBackground('transparent');
|
|
10848
10850
|
});
|
|
10849
10851
|
|
|
10850
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showfogYes", "click", function(e) { let ic = me.icn3d;
|
|
10852
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showfogYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10851
10853
|
//ic.setOptionCls.setOption('fog', 'yes');
|
|
10852
10854
|
ic.opts['fog'] = 'yes';
|
|
10853
10855
|
ic.fogCls.setFog(true);
|
|
@@ -10855,7 +10857,7 @@ class ClickMenu {
|
|
|
10855
10857
|
thisClass.setLogCmd('set fog on', true);
|
|
10856
10858
|
});
|
|
10857
10859
|
|
|
10858
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showfogNo", "click", function(e) { let ic = me.icn3d;
|
|
10860
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showfogNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10859
10861
|
//ic.setOptionCls.setOption('fog', 'no');
|
|
10860
10862
|
ic.opts['fog'] = 'no';
|
|
10861
10863
|
ic.fogCls.setFog(true);
|
|
@@ -10863,22 +10865,22 @@ class ClickMenu {
|
|
|
10863
10865
|
thisClass.setLogCmd('set fog off', true);
|
|
10864
10866
|
});
|
|
10865
10867
|
|
|
10866
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showslabYes", "click", function(e) { let ic = me.icn3d;
|
|
10868
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showslabYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10867
10869
|
ic.setOptionCls.setOption('slab', 'yes');
|
|
10868
10870
|
thisClass.setLogCmd('set slab on', true);
|
|
10869
10871
|
});
|
|
10870
10872
|
|
|
10871
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showslabNo", "click", function(e) { let ic = me.icn3d;
|
|
10873
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showslabNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10872
10874
|
ic.setOptionCls.setOption('slab', 'no');
|
|
10873
10875
|
thisClass.setLogCmd('set slab off', true);
|
|
10874
10876
|
});
|
|
10875
10877
|
|
|
10876
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisYes", "click", function(e) { let ic = me.icn3d;
|
|
10878
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10877
10879
|
ic.setOptionCls.setOption('axis', 'yes');
|
|
10878
10880
|
thisClass.setLogCmd('set axis on', true);
|
|
10879
10881
|
});
|
|
10880
10882
|
|
|
10881
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisSel", "click", function(e) { let ic = me.icn3d;
|
|
10883
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisSel", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10882
10884
|
ic.pc1 = true;
|
|
10883
10885
|
|
|
10884
10886
|
ic.axesCls.setPc1Axes();
|
|
@@ -10886,7 +10888,7 @@ class ClickMenu {
|
|
|
10886
10888
|
});
|
|
10887
10889
|
|
|
10888
10890
|
|
|
10889
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisNo", "click", function(e) { let ic = me.icn3d;
|
|
10891
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_showaxisNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10890
10892
|
ic.pc1 = false;
|
|
10891
10893
|
ic.axes = [];
|
|
10892
10894
|
|
|
@@ -10895,37 +10897,37 @@ class ClickMenu {
|
|
|
10895
10897
|
thisClass.setLogCmd('set axis off', true);
|
|
10896
10898
|
});
|
|
10897
10899
|
|
|
10898
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_symmetry", "click", async function(e) { let ic = me.icn3d;
|
|
10900
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_symmetry", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10899
10901
|
ic.bAxisOnly = false;
|
|
10900
10902
|
await ic.symdCls.retrieveSymmetry(Object.keys(ic.structures)[0]);
|
|
10901
10903
|
//me.htmlCls.dialogCls.openDlg('dl_symmetry', 'Symmetry');
|
|
10902
10904
|
});
|
|
10903
10905
|
|
|
10904
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_symd", "click", async function(e) { let ic = me.icn3d;
|
|
10906
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_symd", "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10905
10907
|
ic.bAxisOnly = false;
|
|
10906
10908
|
await ic.symdCls.retrieveSymd();
|
|
10907
10909
|
ic.bSymd = true;
|
|
10908
10910
|
|
|
10909
10911
|
thisClass.setLogCmd('symd symmetry', true);
|
|
10910
10912
|
});
|
|
10911
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_clear_sym", "click", function(e) { let ic = me.icn3d;
|
|
10913
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_clear_sym", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10912
10914
|
ic.symdArray = [];
|
|
10913
10915
|
ic.drawCls.draw();
|
|
10914
10916
|
thisClass.setLogCmd('clear symd symmetry', true);
|
|
10915
10917
|
});
|
|
10916
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_axes_only", "click", function(e) { let ic = me.icn3d;
|
|
10918
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_axes_only", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10917
10919
|
ic.bAxisOnly = true;
|
|
10918
10920
|
ic.drawCls.draw();
|
|
10919
10921
|
thisClass.setLogCmd('show axis', true);
|
|
10920
10922
|
});
|
|
10921
10923
|
|
|
10922
10924
|
|
|
10923
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_area", "click", function(e) { let ic = me.icn3d;
|
|
10925
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_area", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10924
10926
|
ic.analysisCls.calculateArea();
|
|
10925
10927
|
thisClass.setLogCmd('area', true);
|
|
10926
10928
|
});
|
|
10927
10929
|
|
|
10928
|
-
me.myEventCls.onIds("#" + me.pre + "applysymmetry", "click", function(e) { let ic = me.icn3d;
|
|
10930
|
+
me.myEventCls.onIds("#" + me.pre + "applysymmetry", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10929
10931
|
ic.bAxisOnly = false;
|
|
10930
10932
|
|
|
10931
10933
|
let title = $("#" + me.pre + "selectSymmetry" ).val();
|
|
@@ -10935,14 +10937,14 @@ class ClickMenu {
|
|
|
10935
10937
|
ic.drawCls.draw();
|
|
10936
10938
|
thisClass.setLogCmd('symmetry ' + title, true);
|
|
10937
10939
|
});
|
|
10938
|
-
me.myEventCls.onIds("#" + me.pre + "clearsymmetry", "click", function(e) { let ic = me.icn3d;
|
|
10940
|
+
me.myEventCls.onIds("#" + me.pre + "clearsymmetry", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10939
10941
|
let title = 'none';
|
|
10940
10942
|
ic.symmetrytitle = undefined;
|
|
10941
10943
|
ic.drawCls.draw();
|
|
10942
10944
|
thisClass.setLogCmd('symmetry ' + title, true);
|
|
10943
10945
|
});
|
|
10944
10946
|
|
|
10945
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_hbondsYes", "#" + me.pre + "hbondsYes"], "click", function(e) { let ic = me.icn3d;
|
|
10947
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_hbondsYes", "#" + me.pre + "hbondsYes"], "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10946
10948
|
thisClass.SetChainsAdvancedMenu();
|
|
10947
10949
|
|
|
10948
10950
|
let definedAtomsHtml = ic.definedSetsCls.setAtomMenu(['protein']);
|
|
@@ -10959,11 +10961,11 @@ class ClickMenu {
|
|
|
10959
10961
|
$("#" + me.pre + "atomsCustomHbond2").resizable();
|
|
10960
10962
|
});
|
|
10961
10963
|
|
|
10962
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_contactmap"], "click", function(e) { me.icn3d;
|
|
10964
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_contactmap"], "click", function(e) { me.icn3d; e.preventDefault();
|
|
10963
10965
|
me.htmlCls.dialogCls.openDlg('dl_contact', 'Set contact map');
|
|
10964
10966
|
});
|
|
10965
10967
|
|
|
10966
|
-
me.myEventCls.onIds(["#" + me.pre + "mn6_DSSP"], "click", async function(e) { let ic = me.icn3d;
|
|
10968
|
+
me.myEventCls.onIds(["#" + me.pre + "mn6_DSSP"], "click", async function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10967
10969
|
thisClass.setLogCmd('set dssp sse', true);
|
|
10968
10970
|
await ic.pdbParserCls.applyCommandDssp();
|
|
10969
10971
|
ic.bResetAnno = true;
|
|
@@ -10976,12 +10978,12 @@ class ClickMenu {
|
|
|
10976
10978
|
});
|
|
10977
10979
|
|
|
10978
10980
|
|
|
10979
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_hbondsNo", "click", function(e) { let ic = me.icn3d;
|
|
10981
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_hbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10980
10982
|
ic.showInterCls.hideHbondsContacts();
|
|
10981
10983
|
ic.drawCls.draw();
|
|
10982
10984
|
});
|
|
10983
10985
|
|
|
10984
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerYes", "click", function(e) { let ic = me.icn3d;
|
|
10986
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10985
10987
|
let select = "stabilizer";
|
|
10986
10988
|
ic.threeDPrintCls.addStabilizer();
|
|
10987
10989
|
ic.threeDPrintCls.prepareFor3Dprint();
|
|
@@ -10989,14 +10991,14 @@ class ClickMenu {
|
|
|
10989
10991
|
thisClass.setLogCmd(select, true);
|
|
10990
10992
|
});
|
|
10991
10993
|
|
|
10992
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerNo", "click", function(e) { let ic = me.icn3d;
|
|
10994
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
10993
10995
|
let select = "set stabilizer off";
|
|
10994
10996
|
thisClass.setLogCmd(select, true);
|
|
10995
10997
|
ic.threeDPrintCls.hideStabilizer();
|
|
10996
10998
|
ic.drawCls.draw();
|
|
10997
10999
|
});
|
|
10998
11000
|
|
|
10999
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerOne", "click", function(e) { let ic = me.icn3d;
|
|
11001
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerOne", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
11000
11002
|
me.htmlCls.dialogCls.openDlg('dl_stabilizer', 'Add One Stabilizer');
|
|
11001
11003
|
ic.pk = 1;
|
|
11002
11004
|
ic.opts['pk'] = 'atom';
|
|
@@ -11004,7 +11006,7 @@ class ClickMenu {
|
|
|
11004
11006
|
ic.pAtomNum = 0;
|
|
11005
11007
|
});
|
|
11006
11008
|
|
|
11007
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerRmOne", "click", function(e) { let ic = me.icn3d;
|
|
11009
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_stabilizerRmOne", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
11008
11010
|
me.htmlCls.dialogCls.openDlg('dl_stabilizer_rm', 'Remove One Stabilizer');
|
|
11009
11011
|
ic.pk = 1;
|
|
11010
11012
|
ic.opts['pk'] = 'atom';
|
|
@@ -11012,27 +11014,27 @@ class ClickMenu {
|
|
|
11012
11014
|
ic.pAtomNum = 0;
|
|
11013
11015
|
});
|
|
11014
11016
|
|
|
11015
|
-
me.myEventCls.onIds("#" + me.pre + "mn1_thicknessSet", "click", function(e) { me.icn3d;
|
|
11017
|
+
me.myEventCls.onIds("#" + me.pre + "mn1_thicknessSet", "click", function(e) { me.icn3d; e.preventDefault();
|
|
11016
11018
|
me.htmlCls.dialogCls.openDlg('dl_thickness', 'Set Thickness for 3D Printing');
|
|
11017
11019
|
});
|
|
11018
11020
|
|
|
11019
|
-
me.myEventCls.onIds("#" + me.pre + "mn3_setThickness", "click", function(e) { me.icn3d;
|
|
11021
|
+
me.myEventCls.onIds("#" + me.pre + "mn3_setThickness", "click", function(e) { me.icn3d; e.preventDefault();
|
|
11020
11022
|
me.htmlCls.dialogCls.openDlg('dl_thickness2', 'Style Preferences');
|
|
11021
11023
|
});
|
|
11022
11024
|
|
|
11023
11025
|
|
|
11024
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsYes", "click", function(e) { let ic = me.icn3d;
|
|
11026
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
11025
11027
|
let select = "disulfide bonds";
|
|
11026
11028
|
thisClass.setLogCmd(select, true);
|
|
11027
11029
|
ic.showInterCls.showSsbonds();
|
|
11028
11030
|
});
|
|
11029
11031
|
|
|
11030
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsExport", "click", function(e) { let ic = me.icn3d;
|
|
11032
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsExport", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
11031
11033
|
ic.viewInterPairsCls.exportSsbondPairs();
|
|
11032
11034
|
thisClass.setLogCmd("export disulfide bond pairs", false);
|
|
11033
11035
|
});
|
|
11034
11036
|
|
|
11035
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsNo", "click", function(e) { let ic = me.icn3d;
|
|
11037
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_ssbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
11036
11038
|
ic.opts["ssbonds"] = "no";
|
|
11037
11039
|
let select = "set disulfide bonds off";
|
|
11038
11040
|
thisClass.setLogCmd(select, true);
|
|
@@ -11040,7 +11042,7 @@ class ClickMenu {
|
|
|
11040
11042
|
ic.setOptionCls.setStyle('sidec', 'nothing');
|
|
11041
11043
|
});
|
|
11042
11044
|
|
|
11043
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsYes", "click", function(e) { let ic = me.icn3d;
|
|
11045
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsYes", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
11044
11046
|
let select = "cross linkage";
|
|
11045
11047
|
thisClass.setLogCmd(select, true);
|
|
11046
11048
|
//ic.bShowCrossResidueBond = true;
|
|
@@ -11048,12 +11050,12 @@ class ClickMenu {
|
|
|
11048
11050
|
ic.showInterCls.showClbonds();
|
|
11049
11051
|
});
|
|
11050
11052
|
|
|
11051
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsExport", "click", function(e) { let ic = me.icn3d;
|
|
11053
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsExport", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
11052
11054
|
ic.viewInterPairsCls.exportClbondPairs();
|
|
11053
11055
|
thisClass.setLogCmd("export cross linkage pairs", false);
|
|
11054
11056
|
});
|
|
11055
11057
|
|
|
11056
|
-
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsNo", "click", function(e) { let ic = me.icn3d;
|
|
11058
|
+
me.myEventCls.onIds("#" + me.pre + "mn6_clbondsNo", "click", function(e) { let ic = me.icn3d; e.preventDefault();
|
|
11057
11059
|
ic.opts["clbonds"] = "no";
|
|
11058
11060
|
let select = "set cross linkage off";
|
|
11059
11061
|
thisClass.setLogCmd(select, true);
|
|
@@ -11101,7 +11103,7 @@ class ClickMenu {
|
|
|
11101
11103
|
});
|
|
11102
11104
|
});
|
|
11103
11105
|
|
|
11104
|
-
me.myEventCls.onIds("#" + me.pre + "jn_copy", "click", function(e) { me.icn3d;
|
|
11106
|
+
me.myEventCls.onIds("#" + me.pre + "jn_copy", "click", function(e) { me.icn3d; e.preventDefault();
|
|
11105
11107
|
let text = $("#" + me.pre + "jn_commands").val();
|
|
11106
11108
|
navigator.clipboard.writeText(text);
|
|
11107
11109
|
});
|
|
@@ -11727,7 +11729,7 @@ class SetMenu {
|
|
|
11727
11729
|
|
|
11728
11730
|
html += this.getLink('mn1_urlfile', 'URL(CORS) ' + me.htmlCls.wifiStr, undefined, 2);
|
|
11729
11731
|
html += this.getMenuSep();
|
|
11730
|
-
html += this.getLink('mn1_pngimage', 'iCn3D PNG
|
|
11732
|
+
html += this.getLink('mn1_pngimage', 'iCn3D PNG (appendable)', 1, 2);
|
|
11731
11733
|
html += this.getLink('mn1_state', 'State/Script File', undefined, 2);
|
|
11732
11734
|
html += this.getLink('mn1_fixedversion', 'Share Link in Archived Ver. ' + me.htmlCls.wifiStr, undefined, 2);
|
|
11733
11735
|
html += this.getLink('mn1_selection', 'Selection File', undefined, 2);
|
|
@@ -14166,9 +14168,9 @@ class SetDialog {
|
|
|
14166
14168
|
html += "</div>";
|
|
14167
14169
|
|
|
14168
14170
|
html += me.htmlCls.divStr + "dl_pngimage' class='" + dialogClass + "'>";
|
|
14169
|
-
html += this.addNotebookTitle('dl_pngimage', 'Please
|
|
14170
|
-
html += "iCn3D PNG
|
|
14171
|
-
html += me.htmlCls.buttonStr + "reload_pngimage' style='margin-top: 6px;'>
|
|
14171
|
+
html += this.addNotebookTitle('dl_pngimage', 'Please append iCn3D PNG Image files');
|
|
14172
|
+
html += "Multiple iCn3D PNG images: " + me.htmlCls.inputFileStr + " multiple id='" + me.pre + "pngimage' size=8><br/>";
|
|
14173
|
+
html += me.htmlCls.buttonStr + "reload_pngimage' style='margin-top: 6px;'>Append</button>";
|
|
14172
14174
|
html += "</div>";
|
|
14173
14175
|
|
|
14174
14176
|
html += me.htmlCls.divStr + "dl_state' class='" + dialogClass + "'>";
|
|
@@ -15424,11 +15426,18 @@ class Events {
|
|
|
15424
15426
|
}
|
|
15425
15427
|
}
|
|
15426
15428
|
|
|
15427
|
-
async readFile(bAppend, files, index, dataStrAll, bmmCIF) { let me = this.icn3dui, ic = me.icn3d, thisClass = this;
|
|
15429
|
+
async readFile(bAppend, files, index, dataStrAll, bmmCIF, bPng) { let me = this.icn3dui, ic = me.icn3d, thisClass = this;
|
|
15428
15430
|
let file = files[index];
|
|
15429
15431
|
let commandName = (bAppend) ? 'append': 'load';
|
|
15430
|
-
commandName += (bmmCIF) ? ' mmcif file ': ' pdb file ';
|
|
15432
|
+
commandName += (bmmCIF) ? ' mmcif file ' : (bPng) ? ' png file ' : ' pdb file ';
|
|
15431
15433
|
|
|
15434
|
+
/*
|
|
15435
|
+
reader.onload = async function(e) {
|
|
15436
|
+
let imageStr = e.target.result; // or = reader.result;
|
|
15437
|
+
await thisClass.loadPng(dataStr);
|
|
15438
|
+
}
|
|
15439
|
+
*/
|
|
15440
|
+
|
|
15432
15441
|
let reader = new FileReader();
|
|
15433
15442
|
reader.onload = async function(e) {
|
|
15434
15443
|
let dataStr = e.target.result; // or = reader.result;
|
|
@@ -15446,7 +15455,17 @@ class Events {
|
|
|
15446
15455
|
}
|
|
15447
15456
|
|
|
15448
15457
|
ic.bInputfile = true;
|
|
15449
|
-
ic.InputfileType = (bmmCIF) ? 'mmcif' : 'pdb';
|
|
15458
|
+
ic.InputfileType = (bmmCIF) ? 'mmcif' : (bPng) ? 'png' : 'pdb';
|
|
15459
|
+
if(bPng) {
|
|
15460
|
+
let result = await me.htmlCls.setHtmlCls.loadPng(dataStr);
|
|
15461
|
+
dataStr = result.pdb;
|
|
15462
|
+
|
|
15463
|
+
if(!dataStr) return; // old iCn3D PNG with sharable link
|
|
15464
|
+
|
|
15465
|
+
if(!ic.statefileArray) ic.statefileArray = [];
|
|
15466
|
+
ic.statefileArray.push(result.statefile);
|
|
15467
|
+
}
|
|
15468
|
+
|
|
15450
15469
|
ic.InputfileData = (ic.InputfileData) ? ic.InputfileData + '\nENDMDL\n' + dataStr : dataStr;
|
|
15451
15470
|
|
|
15452
15471
|
dataStrAll = (index > 0) ? dataStrAll + '\nENDMDL\n' + dataStr : dataStr;
|
|
@@ -15466,7 +15485,7 @@ class Events {
|
|
|
15466
15485
|
//ic.InputfileType = undefined; // reset
|
|
15467
15486
|
}
|
|
15468
15487
|
else {
|
|
15469
|
-
await thisClass.readFile(bAppend, files, index + 1, dataStrAll, bmmCIF);
|
|
15488
|
+
await thisClass.readFile(bAppend, files, index + 1, dataStrAll, bmmCIF, bPng);
|
|
15470
15489
|
}
|
|
15471
15490
|
|
|
15472
15491
|
if(bAppend) {
|
|
@@ -19179,7 +19198,7 @@ class SetHtml {
|
|
|
19179
19198
|
if(me.bNode) return;
|
|
19180
19199
|
|
|
19181
19200
|
let thisClass = this;
|
|
19182
|
-
me.myEventCls.onIds("#" + me.pre + "reload_pngimage", "click", function(e) { let ic = me.icn3d;
|
|
19201
|
+
me.myEventCls.onIds("#" + me.pre + "reload_pngimage", "click", async function(e) { let ic = me.icn3d;
|
|
19183
19202
|
e.preventDefault();
|
|
19184
19203
|
if(!me.cfg.notebook) dialog.dialog( "close" );
|
|
19185
19204
|
//close all dialog
|
|
@@ -19189,30 +19208,32 @@ class SetHtml {
|
|
|
19189
19208
|
else {
|
|
19190
19209
|
ic.resizeCanvasCls.closeDialogs();
|
|
19191
19210
|
}
|
|
19192
|
-
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
|
|
19196
|
-
if(!file) {
|
|
19211
|
+
|
|
19212
|
+
// ic.init();
|
|
19213
|
+
let files = $("#" + me.pre + "pngimage")[0].files;
|
|
19214
|
+
if(!files[0]) {
|
|
19197
19215
|
var aaa = 1; //alert("Please select a file before clicking 'Load'");
|
|
19198
19216
|
}
|
|
19199
19217
|
else {
|
|
19200
19218
|
thisClass.fileSupport();
|
|
19201
|
-
|
|
19202
|
-
|
|
19203
|
-
|
|
19204
|
-
|
|
19205
|
-
|
|
19206
|
-
reader.readAsText(file);
|
|
19219
|
+
|
|
19220
|
+
let bAppend = true;
|
|
19221
|
+
let bmmCIF = false;
|
|
19222
|
+
let bPng = true;
|
|
19223
|
+
await me.htmlCls.eventsCls.readFile(bAppend, files, 0, '', bmmCIF, bPng);
|
|
19207
19224
|
}
|
|
19208
19225
|
});
|
|
19209
19226
|
}
|
|
19210
19227
|
|
|
19211
|
-
async loadPng(imageStr, command) { let me = this.icn3dui, ic = me.icn3d;
|
|
19228
|
+
// async loadPng(imageStr, command) { let me = this.icn3dui, ic = me.icn3d;
|
|
19229
|
+
async loadPng(imageStr) { let me = this.icn3dui, ic = me.icn3d;
|
|
19212
19230
|
let matchedStr = 'Share Link: ';
|
|
19213
19231
|
let pos = imageStr.indexOf(matchedStr);
|
|
19214
19232
|
let matchedStrState = "Start of state file======\n";
|
|
19215
19233
|
let posState = imageStr.indexOf(matchedStrState);
|
|
19234
|
+
|
|
19235
|
+
let data = '', statefile = '';
|
|
19236
|
+
|
|
19216
19237
|
if(pos == -1 && posState == -1) {
|
|
19217
19238
|
var aaa = 1; //alert('Please load a PNG image saved by clicking the menu "File > Save File > iCn3D PNG Image"...');
|
|
19218
19239
|
}
|
|
@@ -19226,13 +19247,14 @@ class SetHtml {
|
|
|
19226
19247
|
let posData = imageStr.indexOf(matchedStrData);
|
|
19227
19248
|
ic.bInputfile =(posData == -1) ? false : true;
|
|
19228
19249
|
ic.bInputPNGWithData = ic.bInputfile;
|
|
19229
|
-
|
|
19250
|
+
// let commandStr = (command) ? command.replace(/;/g, "\n") : '';
|
|
19251
|
+
let commandStr = '';
|
|
19230
19252
|
|
|
19231
|
-
|
|
19232
|
-
|
|
19253
|
+
// let statefile;
|
|
19254
|
+
// if(ic.bInputfile) {
|
|
19233
19255
|
let posDataEnd = imageStr.indexOf("End of data file======\n");
|
|
19234
|
-
|
|
19235
|
-
|
|
19256
|
+
data = imageStr.substr(posData + matchedStrData.length, posDataEnd - posData - matchedStrData.length);
|
|
19257
|
+
// ic.InputfileData = (ic.InputfileData) ? ic.InputfileData + '\nENDMDL\n' + data : data;
|
|
19236
19258
|
|
|
19237
19259
|
let matchedStrType = "Start of type file======\n";
|
|
19238
19260
|
let posType = imageStr.indexOf(matchedStrType);
|
|
@@ -19246,7 +19268,8 @@ class SetHtml {
|
|
|
19246
19268
|
statefile = imageStr.substr(posState + matchedStrState.length, posStateEnd - posState- matchedStrState.length);
|
|
19247
19269
|
//statefile = decodeURIComponent(statefile);
|
|
19248
19270
|
statefile = decodeURIComponent(statefile + "\n" + commandStr);
|
|
19249
|
-
|
|
19271
|
+
|
|
19272
|
+
/*
|
|
19250
19273
|
if(type === 'pdb') {
|
|
19251
19274
|
await ic.pdbParserCls.loadPdbData(data);
|
|
19252
19275
|
|
|
@@ -19285,10 +19308,13 @@ class SetHtml {
|
|
|
19285
19308
|
//await ic.loadScriptCls.loadScript(statefile, true);
|
|
19286
19309
|
}
|
|
19287
19310
|
|
|
19288
|
-
|
|
19311
|
+
await ic.loadScriptCls.loadScript(statefile, true);
|
|
19289
19312
|
|
|
19290
19313
|
me.htmlCls.clickMenuCls.setLogCmd('load iCn3D PNG image ' + $("#" + me.pre + "pngimage").val(), false);
|
|
19314
|
+
*/
|
|
19291
19315
|
}
|
|
19316
|
+
|
|
19317
|
+
return {'pdb': data, 'statefile': statefile};
|
|
19292
19318
|
}
|
|
19293
19319
|
|
|
19294
19320
|
fileSupport() {
|
|
@@ -36874,7 +36900,7 @@ class Contact {
|
|
|
36874
36900
|
for (let j in neighbors) {
|
|
36875
36901
|
let atom = neighbors[j];
|
|
36876
36902
|
|
|
36877
|
-
if(!ic.crossstrucinter && oriAtom.structure != atom.structure) continue;
|
|
36903
|
+
if(bInteraction && !ic.crossstrucinter && oriAtom.structure != atom.structure) continue;
|
|
36878
36904
|
|
|
36879
36905
|
// exclude the target atoms
|
|
36880
36906
|
if(!bIncludeTarget && atom.serial in atomlistTarget) continue;
|
|
@@ -46816,12 +46842,14 @@ class Annotation {
|
|
|
46816
46842
|
chainHash[chainid] = 1;
|
|
46817
46843
|
}
|
|
46818
46844
|
$("#" + ic.pre + "dl_annotations > .icn3d-annotation").hide();
|
|
46845
|
+
|
|
46819
46846
|
for(let chainid in chainHash) {
|
|
46820
46847
|
if($("#" + ic.pre + "anno_" + chainid).length) {
|
|
46821
46848
|
$("#" + ic.pre + "anno_" + chainid).show();
|
|
46822
46849
|
}
|
|
46850
|
+
|
|
46823
46851
|
let atom = ic.firstAtomObjCls.getFirstCalphaAtomObj(ic.chains[chainid]);
|
|
46824
|
-
if(atom.resn !== undefined) {
|
|
46852
|
+
if(atom && atom.resn !== undefined) {
|
|
46825
46853
|
let oneLetterRes = me.utilsCls.residueName2Abbr(atom.resn.substr(0, 3));
|
|
46826
46854
|
$("#" + ic.pre + "anno_" + oneLetterRes).show();
|
|
46827
46855
|
}
|
|
@@ -49134,6 +49162,7 @@ class HlUpdate {
|
|
|
49134
49162
|
if(chainArray2d !== undefined) {
|
|
49135
49163
|
for(let i = 0, il = chainArray2d.length; i < il; ++i) {
|
|
49136
49164
|
let hlatoms = me.hashUtilsCls.intHash(ic.chains[chainArray2d[i]], ic.hAtoms);
|
|
49165
|
+
if(!ic.chains[chainArray2d[i]]) continue;
|
|
49137
49166
|
let ratio = 1.0 * Object.keys(hlatoms).length / Object.keys(ic.chains[chainArray2d[i]]).length;
|
|
49138
49167
|
|
|
49139
49168
|
let firstAtom = ic.firstAtomObjCls.getFirstCalphaAtomObj(hlatoms);
|
|
@@ -50362,6 +50391,7 @@ class GetGraph {
|
|
|
50362
50391
|
let residLabel = '1_1_' + resid;
|
|
50363
50392
|
//if(cnt > 0) nodeStr += ', ';
|
|
50364
50393
|
let colorStr = (atom.color) ? atom.color.getHexString().toUpperCase() : '000';
|
|
50394
|
+
|
|
50365
50395
|
nodeArray.push('{"id": "' + resName + '", "r": "' + residLabel + '", "s": "' + setName + '", "x": ' + atom.coord.x.toFixed(0)
|
|
50366
50396
|
+ ', "y": ' + atom.coord.y.toFixed(0) + ', "c": "' + colorStr + '"}');
|
|
50367
50397
|
if(cnt > 0 && prevChain == atom.chain &&(ic.resid2ncbi[atom.resi] == ic.resid2ncbi[prevResi] + 1 || ic.resid2ncbi[atom.resi] == ic.resid2ncbi[prevResi]) ) {
|
|
@@ -57392,7 +57422,8 @@ class PdbParser {
|
|
|
57392
57422
|
await ic.mmcifParserCls.loadMmcifData(data);
|
|
57393
57423
|
}
|
|
57394
57424
|
else if(type === 'icn3dpng') {
|
|
57395
|
-
await me.htmlCls.setHtmlCls.loadPng(data, command);
|
|
57425
|
+
// await me.htmlCls.setHtmlCls.loadPng(data, command);
|
|
57426
|
+
await me.htmlCls.setHtmlCls.loadPng(data);
|
|
57396
57427
|
}
|
|
57397
57428
|
else if(type === 'pae') {
|
|
57398
57429
|
me.htmlCls.dialogCls.openDlg('dl_alignerrormap', 'Show Predicted Aligned Error (PAE) map');
|
|
@@ -57421,7 +57452,7 @@ class PdbParser {
|
|
|
57421
57452
|
if(!ic.bStatefile) ic.init(bKeepCmd);
|
|
57422
57453
|
}
|
|
57423
57454
|
|
|
57424
|
-
let hAtoms = ic.loadPDBCls.loadPDB(data, pdbid, bOpm, undefined, undefined, bAppend, type, bEsmfold); // defined in the core library
|
|
57455
|
+
let hAtoms = await ic.loadPDBCls.loadPDB(data, pdbid, bOpm, undefined, undefined, bAppend, type, bEsmfold); // defined in the core library
|
|
57425
57456
|
|
|
57426
57457
|
if(me.cfg.opmid === undefined) ic.ParserUtilsCls.transformToOpmOri(pdbid);
|
|
57427
57458
|
|
|
@@ -57466,9 +57497,7 @@ class PdbParser {
|
|
|
57466
57497
|
await this.applyCommandDssp(bAppend);
|
|
57467
57498
|
}
|
|
57468
57499
|
else {
|
|
57469
|
-
// could this line be removed?
|
|
57470
57500
|
await this.loadPdbDataRender(bAppend);
|
|
57471
|
-
|
|
57472
57501
|
if(!me.bNode) await ic.ParserUtilsCls.checkMemProteinAndRotate();
|
|
57473
57502
|
|
|
57474
57503
|
/// if(ic.deferredOpm !== undefined) ic.deferredOpm.resolve();
|
|
@@ -57514,8 +57543,37 @@ class PdbParser {
|
|
|
57514
57543
|
ic.definedSetsCls.setModeAndDisplay('all');
|
|
57515
57544
|
}
|
|
57516
57545
|
|
|
57546
|
+
if(ic.struct_statefile) {
|
|
57547
|
+
for(let i = 0, il = ic.struct_statefile.length; i < il; ++i) {
|
|
57548
|
+
await this.execStatefile(ic.struct_statefile[i].structure, ic.struct_statefile[i].statefile);
|
|
57549
|
+
}
|
|
57550
|
+
}
|
|
57551
|
+
|
|
57517
57552
|
// if(me.deferred !== undefined) me.deferred.resolve(); /// if(ic.deferred2 !== undefined) ic.deferred2.resolve();
|
|
57518
57553
|
}
|
|
57554
|
+
|
|
57555
|
+
async execStatefile(structure, statefile) {let ic = this.icn3d, me = ic.icn3dui;
|
|
57556
|
+
// if(!statefile) return;
|
|
57557
|
+
|
|
57558
|
+
let commandArray = statefile.trim().split('\n');
|
|
57559
|
+
commandArray = ['select $' + structure].concat(commandArray);
|
|
57560
|
+
ic.STATENUMBER = commandArray.length;
|
|
57561
|
+
ic.CURRENTNUMBER = 0;
|
|
57562
|
+
let bStrict = true;
|
|
57563
|
+
|
|
57564
|
+
let hAtoms = me.hashUtilsCls.cloneHash(ic.hAtoms);
|
|
57565
|
+
let commands = ic.commands;
|
|
57566
|
+
|
|
57567
|
+
// reset ic.hAtoms
|
|
57568
|
+
ic.hAtoms = {};
|
|
57569
|
+
ic.commands = commandArray;
|
|
57570
|
+
|
|
57571
|
+
await ic.loadScriptCls.execCommands(ic.CURRENTNUMBER, ic.STATENUMBER-1, ic.STATENUMBER, bStrict);
|
|
57572
|
+
|
|
57573
|
+
// revert back to the original set
|
|
57574
|
+
ic.hAtoms = me.hashUtilsCls.cloneHash(hAtoms);
|
|
57575
|
+
ic.commands = commands.concat(ic.commands);
|
|
57576
|
+
}
|
|
57519
57577
|
}
|
|
57520
57578
|
|
|
57521
57579
|
/**
|
|
@@ -62863,7 +62921,7 @@ class LoadPDB {
|
|
|
62863
62921
|
|
|
62864
62922
|
// modified from iview (http://istar.cse.cuhk.edu.hk/iview/)
|
|
62865
62923
|
//This PDB parser feeds the viewer with the content of a PDB file, pdbData.
|
|
62866
|
-
loadPDB(src, pdbid, bOpm, bVector, bMutation, bAppend, type, bEsmfold) { let ic = this.icn3d, me = ic.icn3dui;
|
|
62924
|
+
async loadPDB(src, pdbid, bOpm, bVector, bMutation, bAppend, type, bEsmfold) { let ic = this.icn3d, me = ic.icn3dui;
|
|
62867
62925
|
let hAtoms = {};
|
|
62868
62926
|
|
|
62869
62927
|
let bNMR = false;
|
|
@@ -62874,6 +62932,8 @@ class LoadPDB {
|
|
|
62874
62932
|
|
|
62875
62933
|
if(!ic.atoms) bAppend = false;
|
|
62876
62934
|
|
|
62935
|
+
if(ic.statefileArray) ic.struct_statefile = [];
|
|
62936
|
+
|
|
62877
62937
|
let serial, moleculeNum;
|
|
62878
62938
|
if(!bMutation && !bAppend) {
|
|
62879
62939
|
ic.init();
|
|
@@ -63063,11 +63123,14 @@ class LoadPDB {
|
|
|
63063
63123
|
|
|
63064
63124
|
ic.organism = ic.organism.substr(0, ic.organism.length - 1);
|
|
63065
63125
|
} else if (record === 'ENDMDL') {
|
|
63126
|
+
if(ic.statefileArray) {
|
|
63127
|
+
ic.struct_statefile.push({'structure': structure, 'statefile': ic.statefileArray[moleculeNum - 1]});
|
|
63128
|
+
}
|
|
63129
|
+
|
|
63066
63130
|
++moleculeNum;
|
|
63067
63131
|
id = ic.defaultPdbId;
|
|
63068
63132
|
|
|
63069
63133
|
structure = this.getStructureId(id, moleculeNum, bMutation);
|
|
63070
|
-
|
|
63071
63134
|
//helices = [];
|
|
63072
63135
|
//sheets = [];
|
|
63073
63136
|
if(!bNMR) {
|
|
@@ -63330,6 +63393,10 @@ class LoadPDB {
|
|
|
63330
63393
|
if(ic.chains[chainNum] === undefined) ic.chains[chainNum] = {};
|
|
63331
63394
|
ic.chains[chainNum] = me.hashUtilsCls.unionHash2Atoms(ic.chains[chainNum], chainsTmp, ic.atoms);
|
|
63332
63395
|
|
|
63396
|
+
if(ic.statefileArray) {
|
|
63397
|
+
ic.struct_statefile.push({'structure': structure, 'statefile': ic.statefileArray[moleculeNum - 1]});
|
|
63398
|
+
}
|
|
63399
|
+
|
|
63333
63400
|
//if(!bMutation) this.adjustSeq(ic.chainMissingResidueArray);
|
|
63334
63401
|
this.adjustSeq(ic.chainMissingResidueArray);
|
|
63335
63402
|
|
|
@@ -68280,14 +68347,16 @@ class LoadScript {
|
|
|
68280
68347
|
for(i=start; i <= end; ++i) {
|
|
68281
68348
|
let bFinalStep =(i === steps - 1) ? true : false;
|
|
68282
68349
|
|
|
68283
|
-
if(!ic.commands[i].trim())
|
|
68350
|
+
if(!ic.commands[i] || !ic.commands[i].trim()) {
|
|
68351
|
+
continue;
|
|
68352
|
+
}
|
|
68353
|
+
|
|
68284
68354
|
let nAtoms = (ic.atoms) ? Object.keys(ic.atoms).length : 0;
|
|
68285
68355
|
|
|
68286
68356
|
if(nAtoms == 0 && ic.commands[i].indexOf('load') == -1) continue;
|
|
68287
68357
|
|
|
68288
68358
|
let strArray = ic.commands[i].split("|||");
|
|
68289
68359
|
let command = strArray[0].trim();
|
|
68290
|
-
|
|
68291
68360
|
// sometimes URL has an ID input, then load a structure in commands
|
|
68292
68361
|
//if(ic.inputid) ic.bNotLoadStructure = true;
|
|
68293
68362
|
|
|
@@ -69642,9 +69711,11 @@ class Selection {
|
|
|
69642
69711
|
ic.hAtoms = {};
|
|
69643
69712
|
ic.dAtoms = {};
|
|
69644
69713
|
|
|
69645
|
-
for(let
|
|
69646
|
-
|
|
69647
|
-
|
|
69714
|
+
for(let structure in ic.structures) {
|
|
69715
|
+
let chainidArray = ic.structures[structure];
|
|
69716
|
+
for(let i = 0, il = chainidArray.length; i < il; ++i) {
|
|
69717
|
+
ic.hAtoms = me.hashUtilsCls.unionHash(ic.hAtoms, ic.chains[chainidArray[i]]);
|
|
69718
|
+
}
|
|
69648
69719
|
}
|
|
69649
69720
|
|
|
69650
69721
|
ic.dAtoms = me.hashUtilsCls.cloneHash(ic.hAtoms);
|
|
@@ -79019,7 +79090,7 @@ class ShareLink {
|
|
|
79019
79090
|
});
|
|
79020
79091
|
}
|
|
79021
79092
|
|
|
79022
|
-
shareLinkUrl(bAllCommands, bOutputCmd) { let ic = this.icn3d, me = ic.icn3dui;
|
|
79093
|
+
shareLinkUrl(bAllCommands, bOutputCmd, bStatefile) { let ic = this.icn3d, me = ic.icn3dui;
|
|
79023
79094
|
let url = me.htmlCls.baseUrl + "icn3d/?";
|
|
79024
79095
|
let outputCmd = '';
|
|
79025
79096
|
if(me.cfg.bSidebyside) url = me.htmlCls.baseUrl + "icn3d/full2.html?";
|
|
@@ -79188,7 +79259,7 @@ class ShareLink {
|
|
|
79188
79259
|
}
|
|
79189
79260
|
|
|
79190
79261
|
// keep all commands in statefile
|
|
79191
|
-
statefile += prevCommandStr + "\n";
|
|
79262
|
+
if(prevCommandStr.indexOf('load ') == -1) statefile += prevCommandStr + "\n";
|
|
79192
79263
|
|
|
79193
79264
|
prevCommandStr = commandStr;
|
|
79194
79265
|
}
|
|
@@ -79218,14 +79289,14 @@ class ShareLink {
|
|
|
79218
79289
|
url = url.replace(new RegExp('blast_rep_id=!','g'), 'blast_rep_id=' + id + '_');
|
|
79219
79290
|
}
|
|
79220
79291
|
|
|
79221
|
-
return (bOutputCmd) ? outputCmd : url;
|
|
79292
|
+
return (bStatefile) ? statefile : (bOutputCmd) ? outputCmd : url;
|
|
79222
79293
|
}
|
|
79223
79294
|
|
|
79224
79295
|
getPngText() { let ic = this.icn3d; ic.icn3dui;
|
|
79225
|
-
let url; // output state file if ic.bInputfile is true or the URL is more than 4000 chars
|
|
79226
79296
|
let bAllCommands = true;
|
|
79227
79297
|
|
|
79228
79298
|
let text = "";
|
|
79299
|
+
/*
|
|
79229
79300
|
if(ic.bInputfile) {
|
|
79230
79301
|
url = this.shareLinkUrl(bAllCommands); // output state file if ic.bInputfile is true or the URL is more than 4000 chars
|
|
79231
79302
|
|
|
@@ -79240,7 +79311,6 @@ class ShareLink {
|
|
|
79240
79311
|
|
|
79241
79312
|
text += "Start of data file======\n";
|
|
79242
79313
|
//text += ic.InputfileData;
|
|
79243
|
-
/// text += ic.saveFileCls.getPDBHeader();
|
|
79244
79314
|
text += ic.saveFileCls.getAtomPDB(ic.atoms);
|
|
79245
79315
|
|
|
79246
79316
|
text += "End of data file======\n";
|
|
@@ -79265,7 +79335,38 @@ class ShareLink {
|
|
|
79265
79335
|
text += "\nShare Link: " + url;
|
|
79266
79336
|
}
|
|
79267
79337
|
}
|
|
79338
|
+
*/
|
|
79339
|
+
|
|
79340
|
+
// always output PDB and commands
|
|
79341
|
+
text += "\nStart of type file======\n";
|
|
79342
|
+
text += "pdb\n";
|
|
79343
|
+
text += "End of type file======\n";
|
|
79344
|
+
|
|
79345
|
+
text += "Start of data file======\n";
|
|
79346
|
+
text += ic.saveFileCls.getAtomPDB(ic.atoms);
|
|
79347
|
+
text += "End of data file======\n";
|
|
79348
|
+
|
|
79349
|
+
let bStatefile = true;
|
|
79350
|
+
let commands = this.shareLinkUrl(bAllCommands, undefined, bStatefile);
|
|
79351
|
+
text += "Start of state file======\n";
|
|
79352
|
+
text += commands + "\n";
|
|
79353
|
+
text += "End of state file======\n";
|
|
79354
|
+
/*
|
|
79355
|
+
if(ic.bInputfile) {
|
|
79356
|
+
url = this.shareLinkUrl(bAllCommands); // output state file if ic.bInputfile is true or the URL is more than 4000 chars
|
|
79268
79357
|
|
|
79358
|
+
if(url.substr(0,4) == 'http') {
|
|
79359
|
+
text += "\nShare Link: " + url;
|
|
79360
|
+
}
|
|
79361
|
+
}
|
|
79362
|
+
else {
|
|
79363
|
+
url = this.shareLinkUrl();
|
|
79364
|
+
let bTooLong =(url.length > 4000 || url.indexOf('http') !== 0) ? true : false;
|
|
79365
|
+
if(!bTooLong) {
|
|
79366
|
+
text += "\nShare Link: " + url;
|
|
79367
|
+
}
|
|
79368
|
+
}
|
|
79369
|
+
*/
|
|
79269
79370
|
text = text.replace(/!/g, Object.keys(ic.structures)[0] + '_');
|
|
79270
79371
|
|
|
79271
79372
|
return text;
|
|
@@ -82101,7 +82202,7 @@ class iCn3DUI {
|
|
|
82101
82202
|
//even when multiple iCn3D viewers are shown together.
|
|
82102
82203
|
this.pre = this.cfg.divid + "_";
|
|
82103
82204
|
|
|
82104
|
-
this.REVISION = '3.
|
|
82205
|
+
this.REVISION = '3.36.0';
|
|
82105
82206
|
|
|
82106
82207
|
// In nodejs, iCn3D defines "window = {navigator: {}}"
|
|
82107
82208
|
this.bNode = (Object.keys(window).length < 2) ? true : false;
|