rdkit-js
rdkit-js copied to clipboard
Attach click event handler to hidden carbones
Is your feature request related to a problem? Please describe.
Hello, I want select atoms by clicking on them. I listen to the click events on atoms. With the css class, I could identify atom but hidden carbones aren't displayed. So I can't attach a click event handler.
Describe the solution you'd like
You could display hidden carbones with a transparent
if atom-0 is a hidden carbon I expected a svg like this:
<ellipse class="atom-0 hidden" />
<path class="bond-0 atom-0 atom-1" />
<ellipse class="atom-1" />
instead of:
<path class="bond-0 atom-0 atom-1" />
<ellipse class="atom-1" />
Describe alternatives you've considered
I need to attach the click event to the bond (svg
Thanks
cc @ptosco , any suggestions here?
Hi everyone, I think it's a hidden hydrogen instead of a hidden carbon.
I think it's a carbon actually, hidden hydrogens are not plotted at all (not even as unmarked ends of bonds).
The requested feature is actually quite useful. Is there any plan to include it in a future release?