Skip to content

Uncaught error for qmol get_svg() #451

@atfera

Description

@atfera

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions