MarvinView for Javascript?

User 870ab5b546

29-08-2013 19:45:06

Is there an analog of MarvinView in Javascript?  If we are going to stop using Java applets, we would need a replacement for MarvinView as well as MarvinSketch.  

ChemAxon f052bdfe3c

31-08-2013 06:48:17

Hi Bob,


Currently, we are focusing on the Sketcher component; however, you can generate static images from the API and with the help of this function you can achive a  functionality similar to  MView applet.


Please take check this example:


https://marvin4js.chemaxon.com/marvin4js-latest/examples/example-edit-images.html


Could something similar work for you?


Best Regards,


Efi

User 870ab5b546

03-09-2013 15:07:05

Hm, interesting.  We use MarvinView to allow a student to copy or rotate in 3D but not edit a MarvinView structure.  What you show is a way of launching M4JS from an image.  We could disable all the editing functions in the M4JS that pops up when the image is clicked, but copying would still require several more keystrokes.  Can you add a Copy function to the contextual menu of M4JS?  Currently it shows only Paste, Clear, Zoom, and Absolute stereo (chiral).  It would also be nice to have a Close option, and also Copy and Close, in the contextual menu  -- I had trouble finding the Done button.  

ChemAxon f052bdfe3c

06-09-2013 13:20:39

I think after when we implement the customization you will be able to open a M4JS sketcher in which the allowed functions will be available. "Done" button: we just gave an example how you can build your own webpage using the editor component. I do not want to add "Done" button into the component itself, because not all the users wants to use it, but you can add this functionality as custom button currently into your application: https://marvin4js.chemaxon.com/marvin4js-latest/examples/example-addbutton.html .


Or we can create another example when the "Done" button is outside, but much closer to the application.