Scaling Markush structure in Marvin Applet

User 34df8f131d

15-10-2013 14:10:05

Hello,


I'm trying to scale a markush structure in a Marvin Applet and it seems that it zooms automatically on the scaffold ignoring the r-groups. So we need to unzoom to see the complete markush structure. We try to use the scale, autoscale, maxscale parameters without any success. Do you have somme suggestions ? Are we doing something wrong ?


Here is the javascript code :


<script type="text/javascript">
msketch_name="MolEditor";
msketch_begin(&JCHEM_PATH., 500, 500);
msketch_param("licenseFile",&JCHEM_LICENCE.);
msketch_param("queryAtoms","any,hetero,list,notlist,Rgroup");
msketch_param("codebase_lookup","false");
msketch_param("scale",18);
msketch_param("splashScreenImage", &JCHEM_SPLASH. );
msketch_end();
</script>


<script type="text/javascript">
var vMolfile = $v('P2048_SMILES'); // The variable containing the structure
document.MolEditor.setMol(vMolfile);
</script>


Here is the structure to wholy display :


ChemAxon 4fa3cf533c

16-10-2013 14:02:33

Hello,


 


In the javascript code use the following after getting the variable containing the structure:


document.getElementById("MolEditor").setMol(vMolfile);


document.getElementById("MolEditor").setAutoScale(true);


 


This way, the molecule will be properly scaled.


Hope this helps,


Tamás Fazekas-Vígh