However, when I tried to draw it, I obtain a result with some hydrogens missing :
The "N" should have two hydrogens. And the Cl one.
In the file Edge.js, we have theses following bounds :
I found that the "." is missing and during the "setBondType" the return weight will be "undefined". One "edge" in _init of Graph.js will have a weight undefined and during the "addEdge", we will have a result of number += undefined. The result will be "NaN" and the added hyrdogens by comparing the weights will not be added.
Do you have a solution to draw molecule that has ionic bound please ?
Hello, I would like to draw the 2,2,2-Trifluoroethylamine hydrochloride chemical with the following SMILE : "C(C(F)(F)F)N.Cl" that has a ionic bond.
https://pubchem.ncbi.nlm.nih.gov/compound/9772#section=IUPAC-Name
However, when I tried to draw it, I obtain a result with some hydrogens missing :
The "N" should have two hydrogens. And the Cl one.
In the file Edge.js, we have theses following bounds :![image](https://github.com/reymond-group/smilesDrawer/assets/110245143/c518086d-7d63-4e0c-b956-772ffd778321)
I found that the "." is missing and during the "setBondType" the return weight will be "undefined". One "edge" in _init of Graph.js will have a weight undefined and during the "addEdge", we will have a result of number += undefined. The result will be "NaN" and the added hyrdogens by comparing the weights will not be added.
Do you have a solution to draw molecule that has ionic bound please ?
Thanks