partridgejiang / Kekule.js

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

Allow a user to draw an atom before a bond #317

Open Benjaki2 opened 4 months ago

Benjaki2 commented 4 months ago

Using the composer, It is necessary to draw a bond before you can draw atom? Would it be hard to enable users to draw an atom first? This appears to be confusing functionality for first time users.

partridgejiang commented 4 months ago

It is possible to draw a single C atom by the Atom and formula - Methane tool. After the first atom being inserted, new bonds can be grown from it. However, since the skeletal structure is mainly based on bond, it should be natural for the chemists to draw bond chains directly in editor, :).