reymond-group / smilesDrawer

A small, highly performant JavaScript component for parsing and drawing SMILES strings. Released under the MIT license.
https://smilesdrawer.rocks
MIT License
416 stars 66 forks source link

How to fix overlapping bonds in rendered image? #169

Open mgreiner79 opened 1 year ago

mgreiner79 commented 1 year ago

Any idea what options I can change to get this to render properly? Here is the Smiles code C(=O)(C(=O)[O-])[O-].C(=O)(C(=O)[O-])[O-].C(=O)(C(=O)[O-])[O-].C(=O)(C(=O)[O-])[O-].O.O.[K+].[K+].[K+].[K+].[K+].[K+].[K+].[K+]

And here is the resulting render: image

I have tried playing around with options 'overlapSensitivity' and 'overlapResolutionIterations' to fix it, but to no avail. Any ideas?

Here is where the smiles code is from https://pubchem.ncbi.nlm.nih.gov/compound/53249650 And here is the rendering that is shown on that page. image