Skip to content

Can not fetch svg format  #7

@DevanshiShah29

Description

@DevanshiShah29

Hi, I’m using jsme-react library in one of my projects.
In the project, the aim is to display smiles along with the svg format which I am unable to achieve with library.


I am able to achieve the desired result by adding the “getMolecularAreaGraphicsString()” method in onChange event as shown in below code snippet:

_defineProperty(_assertThisInitialized(_this), "handleChange", function (jsmeEvent) {
  if (_this.props.onChange) {
    _this.props.onChange(jsmeEvent.src.smiles(),
    _this.jsmeApplet.getMolecularAreaGraphicsString()
    );
  }
});

Are there any other options by which the desired output can be achieved? Any kind of help/suggestions would be appreciated

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions