You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We at Datagrok are using openchemlib for rendering molecules. It is a common task to render multiple molecules simultaneously, but currently it is necessary to use separate canvas element to be able to draw each molecule in a specific area of a larger canvas meaning excessive resources usage. It would be very useful to be able to draw a molecule in a specific canvas area when using drawMolecule by providing such parameters as xy coordinates of top left vertex of the area rectangle as well as its width and height.
The text was updated successfully, but these errors were encountered:
It looks like something that could be supported, but it needs some thinking about how to expose it in the API.
This is where the drawing actually happens:
It seems the best if drawMolecule function had additional properties of the options parameter that would represent x and y coordinates of top left area vertex, its height and width. Another parameter clear could also prove useful to clear the specified area before drawing.
We at Datagrok are using openchemlib for rendering molecules. It is a common task to render multiple molecules simultaneously, but currently it is necessary to use separate canvas element to be able to draw each molecule in a specific area of a larger canvas meaning excessive resources usage. It would be very useful to be able to draw a molecule in a specific canvas area when using
drawMolecule
by providing such parameters as xy coordinates of top left vertex of the area rectangle as well as its width and height.The text was updated successfully, but these errors were encountered: