MolView API
    Preparing search index...

    Interface Toolset

    interface Toolset {
        general: {
            zoom: boolean;
            undo: boolean;
            create: boolean;
            select: boolean;
        };
        atom: {
            label: {
                element: boolean;
                r_group: boolean;
                formula: boolean;
                menu: { periodic_table: boolean; quick: string[][] };
            };
            formal_charge: boolean;
            lone_pairs: boolean;
            unpaired_electrons: boolean;
            mark: boolean;
        };
        bond: { type: sketcher.Bond_Type[]; mark: boolean };
        arrow: { type: Arrow_Type[] };
        template: { chain: boolean; ring: boolean };
    }
    Index
    general: { zoom: boolean; undo: boolean; create: boolean; select: boolean }

    These tools involve the whole diagram or have a common meaning for all objects.

    Type Declaration

    • zoom: boolean

      Zoom in and out

    • undo: boolean

      Undo and redo

    • create: boolean

      Can new objects be created or can only existing objects be edited?

      • If create is enabled you can also delete objects.
    • select: boolean

      Select atoms (lasso or rectangle) and transform them.

      • If create is enabled the selection can also be copied/deleted.
    atom: {
        label: {
            element: boolean;
            r_group: boolean;
            formula: boolean;
            menu: { periodic_table: boolean; quick: string[][] };
        };
        formal_charge: boolean;
        lone_pairs: boolean;
        unpaired_electrons: boolean;
        mark: boolean;
    }
    • To create atoms, atom element labels must be enabled.
    • To move atoms, it must be possible to create atoms.

    Type Declaration

    • label: {
          element: boolean;
          r_group: boolean;
          formula: boolean;
          menu: { periodic_table: boolean; quick: string[][] };
      }

      Atom label

      • element: boolean

        Create and edit chemical elements.

      • r_group: boolean

        Create and edit R-groups.

      • formula: boolean

        Set custom formulas and abbreviations as atom label.

      • menu: { periodic_table: boolean; quick: string[][] }

        These options are presented in a toolbar or context menu. For some use cases it can be desirable to only present a limited range. Keyboard shortcuts are always enabled.

        • periodic_table: boolean

          Pick elements from the periodic table.

        • quick: string[][]

          Which labels can be picked directly from the menu?

          • Can be grouped into multiple sets to make selection easier.
    • formal_charge: boolean

      Formal charge

    • lone_pairs: boolean

      Lone pairs

    • unpaired_electrons: boolean

      Unpaired electrons

    • mark: boolean

      Marking

    bond: { type: sketcher.Bond_Type[]; mark: boolean }
    • To create bonds, the allowed types must be non-empty.

    Type Declaration

    arrow: { type: Arrow_Type[] }

    Type Declaration

    template: { chain: boolean; ring: boolean }

    Templates enable creating larger structures quickly. For some templates (chains) there is a specialized tool.

    Type Declaration

    • chain: boolean

      Chain of carbon atoms

    • ring: boolean

      Ring of carbon atoms

      • Current ring templates:
        • Phenyl
        • Cyclohexane
        • Cyclopentane
        • Cyclopropane