Zoom All on Load

User 249192efae

17-06-2014 14:55:23

Hello,


In ChemIDplus, we open a Marvin4js page as an "Enlarge Structure" feature. We would like to have the editor load with the structure at largest size, as if "Zoom All" had been clicked. An initialization parameter to do that would be great! Alternatively, we could just run an onclick function on load, but click events don't seem to be available in the current code.


To see an example of the Marvin4js page I'm referring to, you could go to http://chem.sis.nlm.nih.gov/chemidplus/structure/viewer/93-14-1


A regular user would first go to http://chem.sis.nlm.nih.gov/chemidplus/rn/93-14-1 and then click the magnifying glass "Enlarge the structure" button to open the Marvin4js viewer above.


We are currently running Marvin4js 6.1.3.


Thanks!


(Note that as the intention of this page is to be a read only display, I have hidden some of the toolbar buttons. Our main search page includes the regular editor with all of the buttons.)


-Michael

ChemAxon f052bdfe3c

23-06-2014 14:59:09

Hi Michael,


Sorry for the late reply. I like your webpage, it looks really good.  I have to ask back  that "Zoom All" API option would be enough? Or would be better to have an option from API where you can set the exact zoom ratio?


Best regards,


Efi

User 249192efae

23-06-2014 15:06:41

Thanks Efi!


For us, just a "Zoom All" API option would be great, so that we could load it to the full size of the user's browser. In our app, users aren't as likely to be coming here on smaller molecules as the 200x200 default they already saw would likely have been sufficient so they wouldn't have clicked "Enlarge".

User 44bb556150

07-10-2014 17:45:22

Did this ever get resolved?  It seems like a recurring issue that I also need.  


The "zoomMode": "fit" option for the sketcher display settings as in the documentation below seems like it would be the appropriate attribute to set, but does not yield any effect when tested on marvinjs-14.9.29


https://marvinjs-demo.chemaxon.com/latest/jsdoc.html#marvin.Sketch


Will this be implemented or an API call or other means to simulate clicking on the Zoom All button?

ChemAxon f052bdfe3c

14-10-2014 14:48:15

This feature is on our ToDo list, however unfortunately we could not find the time to implement it yet.


Best regards,


Efi