Interface IMoleculeToSVGOptions

All depictor options default to false.

interface IMoleculeToSVGOptions {
    autoCrop?: boolean;
    autoCropMargin?: number;
    chiralTextAboveMolecule?: boolean;
    chiralTextBelowMolecule?: boolean;
    chiralTextOnFrameBottom?: boolean;
    chiralTextOnFrameTop?: boolean;
    drawBondsInGray?: boolean;
    factorTextSize?: number;
    fontWeight?: string;
    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;
    suppressCIPParity?: boolean;
    suppressChiralText?: boolean;
    suppressESR?: boolean;
}

Hierarchy

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

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

stroke-width styling property of bonds.

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