Class StructureEditor

Constructors

Methods

  • Returns the current molecule as a string that contains its ID Code and coordinates separated by a space.

    Returns string

  • Returns the current molecule as a MDL Molfile V2000.

    Returns string

  • Returns the current molecule as a MDL Molfile V3000.

    Returns string

  • Returns the current molecule as a SMILES string.

    Returns string

  • Returns whether the current molecule is a fragment.

    Returns boolean

  • Sets a callback function which is called whenever an atom is hovered/unhovered by the mouse.

    Parameters

    Returns void

  • Sets a callback function which is called whenever a bond is hovered/unhovered by the mouse.

    Parameters

    Returns void

  • Sets a callback function which is called whenever the structure in the editor is changed.

    Parameters

    Returns void

  • Switches the current molecule in the editor in fragment mode or not.

    Parameters

    • isFragment: boolean

    Returns void

  • Sets the current molecule to the provided ID code. The string can optionally contain coordinates separated by a space.

    Parameters

    • idCode: string

    Returns void

  • Sets the editor content to the molecule represented by this Molfile (V2000 or V3000)

    Parameters

    • molfile: string

    Returns void

  • Sets the editor content to the molecule represented by this SMILES.

    Parameters

    • smiles: string

    Returns void