Var tutorial3_testmol = new ChemDoodle.ViewerCanvas('tutorial3_testmol', 300, 300) Here is the canvas, and below is the annotated code. Also, the first four lines and the last line in the drawChildExtras function are required to make this work (thanks to Kevin Theisen for helping me with those). The trick is to minimize the mouseover and mouseout functions, and use the drawChildExtras function to do all the drawings. Here I show how you can use mouseover, and mouseout functions to redraw the canvas over and over again, and infinite number of times. Another step on the way to integrating ChemDoodle web components into SMARTCyp.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |