partridgejiang / Kekule.js

A Javascript cheminformatics toolkit.
http://partridgejiang.github.io/Kekule.js
MIT License
250 stars 61 forks source link

Feature Request: Drawing single atoms? #133

Open cleblond opened 5 years ago

cleblond commented 5 years ago

Unless I'm missing something there doesn't seem to be a way to draw a single atom in the composer? For example how can I draw a bromide anion or a proton?

partridgejiang commented 5 years ago

Actually, there does exist a tool button to draw methane directly in the composer (and then you can change it into other types of atoms), but by default it is hidden. Now I have exposed it in the atom and formula tool button group, please check the latest dist files. There also exists another work-around. Just draw a single bond (ethane), select one end atom of it, then copy and paste. Afterwards, a standalone methane molecule will be created.