Editor settings.

interface EditorSettings {
    autoSaveFrequency?: number;
    confirmSwitchToMoleculeStereo?: boolean;
    copyFileTypes?: (DocumentType | ImageType)[];
    customAbbreviatedGroups?: string[];
    customColors?: string[];
    exportFileTypes?: (DocumentType | ImageType)[];
    includeFontFacesInSVG?: IncludeFontFaces;
    variableAttachmentHighlightExported?: boolean;
}

Properties

autoSaveFrequency?: number

Auto-save frequency in seconds.

confirmSwitchToMoleculeStereo?: boolean

Controls whether to show a confirmation dialog before switching from atom-level Enhanced Stereo to molecule-level stereo.

copyFileTypes?: (DocumentType | ImageType)[]

Allowed file types for copy.

customAbbreviatedGroups?: string[]

List of the user-defined abbreviated groups in CXON format.
From the CXON source, the first group of property of the first molecule object will be extracted, with the specified name and attachment points. For the correct representation of an abbreviated group in CXON format, consult with the CXON Schema.
Upon import, duplicate abbreviated groups (i.e. groups with identical name property) will be ignored, and the previously imported/defined group will be kept.

customColors?: string[]

Custom colors

exportFileTypes?: (DocumentType | ImageType)[]

Allowed file types for export.

includeFontFacesInSVG?: IncludeFontFaces

Applied only in SVG export. Sets whether the font face information should also be rendered or not. Default: "NONE"

variableAttachmentHighlightExported?: boolean

State of the variable attachment highlight export checkbox on the UI. Defaults to true.