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
434 stars 68 forks source link

O- charge not displayed #111

Closed smoretti closed 4 years ago

smoretti commented 4 years ago

With terminalCarbons:true, compactDrawing:false, explicitHydrogens:true the charge of O- is not displayed.

e.g. CCC(=O)C([O-])=O

smoretti commented 4 years ago

For some other SMILES it works e.g. C[S@@+](CC[C@H]([NH3+])C([O-])=O)C[C@H]1O[C@H]([C@H](O)[C@@H]1O)n1cnc2c(N)ncnc12

smoretti commented 4 years ago

Damn, in fact the - sign is displayed properly but superposed with the bond line.