OpenChemLib JS
    Preparing search index...

    Interface MoleculeToSVGOptions

    All depictor options default to false.

    interface MoleculeToSVGOptions {
        autoCrop?: boolean;
        autoCropMargin?: number;
        chiralTextAboveMolecule?: boolean;
        chiralTextBelowMolecule?: boolean;
        chiralTextOnFrameBottom?: boolean;
        chiralTextOnFrameTop?: boolean;
        drawBondsInGray?: boolean;
        factorTextSize?: number;
        fontWeight?: string | number;
        highlightQueryFeatures?: boolean;
        inflateToHighResAVBL?: boolean;
        inflateToMaxAVBL?: boolean;
        noColorOnESRAndCIP?: boolean;
        noImplicitAtomLabelColors?: boolean;
        noImplicitHydrogen?: boolean;
        noStereoProblem?: boolean;
        noTabus?: boolean;
        showAtomNumber?: boolean;
        showBondNumber?: boolean;
        showMapping?: boolean;
        showSymmetryAny?: boolean;
        showSymmetrySimple?: boolean;
        showSymmetryStereoHeterotopicity?: boolean;
        strokeWidth?: string | number;
        suppressChiralText?: boolean;
        suppressCIPParity?: boolean;
        suppressESR?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    autoCrop?: boolean

    Automatically crop the SVG to fit around the molecule. This changes the size of the SVG. Default: false.

    autoCropMargin?: number

    Margin (in px) to keep around the molecule when autoCrop is true. Default: 5.

    chiralTextAboveMolecule?: boolean
    chiralTextBelowMolecule?: boolean
    chiralTextOnFrameBottom?: boolean
    chiralTextOnFrameTop?: boolean
    drawBondsInGray?: boolean
    factorTextSize?: number

    Factor used to compute the size of text nodes. Default: 1.

    fontWeight?: string | number

    font-weight attribute of atom labels.

    highlightQueryFeatures?: boolean
    inflateToHighResAVBL?: boolean
    inflateToMaxAVBL?: boolean
    noColorOnESRAndCIP?: boolean
    noImplicitAtomLabelColors?: boolean
    noImplicitHydrogen?: boolean
    noStereoProblem?: boolean
    noTabus?: boolean
    showAtomNumber?: boolean
    showBondNumber?: boolean
    showMapping?: boolean
    showSymmetryAny?: boolean
    showSymmetrySimple?: boolean
    showSymmetryStereoHeterotopicity?: boolean
    strokeWidth?: string | number

    stroke-width styling property of bonds.

    suppressChiralText?: boolean
    suppressCIPParity?: boolean
    suppressESR?: boolean