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

Changing the bondLength value renders the formula incorrectly. #113

Open OlgaRedozubova opened 3 years ago

OlgaRedozubova commented 3 years ago

For the formula CCCCCOC(=O)C1C2OC3(CN(C(=O)C13)c1ccc(OC)cc1)C=C2, changing bondLength leads to different results:

bondLength=15

Снимок экрана 2020-10-19 в 14 29 45

bondLength=30

Снимок экрана 2020-10-19 в 14 30 57

https://doc.gdb.tools/smilesDrawer/sd/example/index_light.html ezgif com-gif-maker (3)

I need to display formulas with different bondLength values, but it turns out that the same formula is displayed differently. Is there a way to solve this problem?