rdkit-js
rdkit-js copied to clipboard
Uncaught error for qmol get_svg()
Describe the bug
Hi, I have an Uncaught error when using get_svg or draw_to_canvas for this smarts [nH1] with qmol.
[n&H1] is the same smarts but for this one drawing works.
To Reproduce
- Go to https://www.rdkitjs.com/
var smarts = "[nH1]";
var qmol = RDKitModule.get_qmol(smarts);
var canvas = document.getElementById("canvas-2");
qmol.draw_to_canvas(canvas, -1, -1);
- See error in console
Expected behavior Drawing should be working for the 2 smarts (should be the same smarts https://www.daylight.com/dayhtml/doc/theory/theory.smarts.html). I don't have the same issue with rdkit python.