cheminfo / openchemlib-js

JavaScript port of OpenChemLib
https://cheminfo.github.io/openchemlib-js/index.html
BSD 3-Clause "New" or "Revised" License
71 stars 20 forks source link

feat: when generating SVG check that coordinates are not all 0 #174

Closed lpatiny closed 9 months ago

lpatiny commented 9 months ago

When we generate a SVG we really would like to see a molecule. So if coordinates are missing we do a copy and we generate the coordinates on the copy (don't want to mess us coordinates of the original molecule but maybe this is a mistake).

@targos if you agree with this approach you can merge this PR.