ChemPal Documentation - v1.12.0
    Preparing search index...

    Interface Molecule

    A parsed molecular structure.

    export interface Molecule {
    /** Every atom in the record, in file order. */
    atoms: MoleculeAtom[];
    /** Every bond in the record. */
    bonds: MoleculeBond[];
    /**
    * True when every atom shares the same z coordinate, so the structure has no depth.
    * Always true for a `record_type=2d` response, but also true for genuinely flat 3D
    * records such as benzene — which is why it is measured from the coordinates rather
    * than taken from the record type that was requested.
    */
    isPlanar: boolean;
    }
    interface Molecule {
        atoms: MoleculeAtom[];
        bonds: MoleculeBond[];
        isPlanar: boolean;
    }
    Index

    Properties

    Properties

    atoms: MoleculeAtom[]

    Every atom in the record, in file order.

    bonds: MoleculeBond[]

    Every bond in the record.

    isPlanar: boolean

    True when every atom shares the same z coordinate, so the structure has no depth. Always true for a record_type=2d response, but also true for genuinely flat 3D records such as benzene — which is why it is measured from the coordinates rather than taken from the record type that was requested.