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 67 forks source link

Fix svg drawer #189

Open lofcz opened 1 month ago

lofcz commented 1 month ago

When using SVG drawer, weights can be false, in which case running .every on them is invalid. This adds a guard. Note this incorporates changes from #175 too, as these two changes are the bare minimum for SVG rendering to work.

netlify[bot] commented 1 month ago

Deploy Preview for smilesdrawer-doc canceled.

Name Link
Latest commit 3620fec1010f4836b61b226f0802eee9e1c6f452
Latest deploy log https://app.netlify.com/sites/smilesdrawer-doc/deploys/66a8281e67ae590008957d62