rdkit-js icon indicating copy to clipboard operation
rdkit-js copied to clipboard

Uncaught error for qmol get_svg()

Open atfera opened this issue 1 year ago • 0 comments

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

  1. 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);
  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.

atfera avatar Mar 14 '24 09:03 atfera