Toolbars

The toolbars provide buttons for accessing the majority of the features offered by Marvin for JavaScript. Hover a cursor over  a button to see a tooltip describing the functionality of the button. The button of the currently selected tool has feedback on it to indicate its active status. Buttons for momentarily unavailable features are grayed out, and the Clean button does not appear unless server connection is available.

General Toolbar

The General toolbar contains buttons for file management (Import, Export) and for general editing/viewing of the canvas content (Clear, Undo/Redo, Cut/Copy/Paste, Zoom, Clean, Navigate and View Settings).

Clear

Clear

Clear the whole canvas without saving its content.

Open

Import

Load an already existing file into Marvin for JavaScript. The supported file types

are MDL Molfiles V2000 (.mol) and ChemAxon Marvin Documents

(.mrv).

Save

Export

Save your structures in one of the following file formats: MDL Molfiles V2000

(.mol) or ChemAxon Marvin Documents

(.mrv).

Undo

Undo

Revert the last commands you applied.

Redo

Redo

Revert the effect of the last "Undo" command.

Cut

Cut

Place the selection on the clipboard, while removing the original structure from the canvas.

Copy

Copy

Place the selection on the clipboard, while leaving the original structure unchanged.

Paste

Paste

Insert the content of the clipboard onto the canvas.

Zoom in

Zoom in

Increase the zoom ratio.

Zoom out

Zoom out

Decrease the zoom ratio.

Zoom All

Zoom All

Change the zoom ratio to the optimal value to view everything on the canvas.

Zoom_Selection

Zoom to Selection

The selected object will be the center of zooming.

Clean 2D

Clean

Clean the structure(s) on the canvas in 2D by recalculating the atomic coordinates.

Navigate

Navigate

Move the canvas by dragging.

View Settings

View Settings

Set display properties in the View Settings dialog box.

Help

About Marvin JS

Displays information about the application (name, version) and a link to the User's Guide.

Tools Toolbar

The Tools toolbar offers several options for drawing or editing structures.

There are "combo" buttons on the Tools toolbar, which have a triangle in their lower right corner. When you click there, you can select a function from a list of options. Once an option is selected, the main "combo" button retains the selection.

Rectangle selection

Selection

Select whole structures or molecule fragments.

delete

Delete

Erase one or more structures or molecule fragments.

single_bond

Bonds

Open the complete list of chemical bonds including several query bond types.

chain

Chain

Draw an alkyl chain of arbitrary length.

AbbrevGroup_1

Abbreviated Groups

Insert abbreviated groups.

Increase charge

Increase Charge

Increase the charge of an atom with one unit (i.e. adds a positive charge to the atom).

Decrease charge

Decrease Charge

Decrease the charge of an atom with one unit (i.e. adds a negative charge to the atom).

Bonds

You can choose any type of bond by clicking on the lower right corner of the Bonds "combo" button in the toolbar. Among these bonds you can find several query types, too. You can also use keyboard shortcuts to choose a bond type to connect two atoms or alter an already existing bond. See the complete list of chemical bonds available in Marvin for JavaScript and their respective keyboard shortcuts in the table below.

Bond symbol

Bond type

Shortcut

single_bond

"Single" bond

1

double_bond

"Double" bond

2

triple_bond

"Triple" bond

3

aromatic_bond

"Aromatic" bond

4

coordinate_bond

"Coordinate" bond

-

single_up_bond

"Single Up" wedge bond

5

single_down_bond

"Single Down" wedge bond

6

single_up_down_bond

"Single Up or Down" query bond

7

double_cis_trans_bond

"Double Cis or Trans" query bond

-

unspecified_bond

"Double C/T or Unspecified" query bond

-

single_double_bond

"Single or Double" query bond

12

single_aromatic_bond

"Single or Aromatic" query bond

14

double_aromatic_bond

"Double or Aromatic" query bond

24

any_bond

"Any" query bond

0

Atoms Toolbar

The elements of the Atoms toolbar provide tools for drawing and modifying atoms, including query atom types, too. The chosen atomic symbol appears on the tip of the cursor. After a left-click, this atom is put on the canvas. Note that you can also use shortcuts (atomic symbols) to choose any atom from the Periodic Table.

Periodic Table

Periodic Table

A pop-up window to select an atom from the Periodic Table

hydrogen2;carbon2;nitrogen2;oxygen2;sulfur2;fluorine2;phosphorus2; chlorine2; bromine2;iodine2

Frequently used atoms

The most frequently used atoms can be reached directly from the toolbar

any

Query atoms

"Combo" button to select a query atom type

R_group

R-groups

"Combo" button to insert an R-group

Periodic Table

This button opens the Periodic Table in a pop-up window. You can choose any atom from the Periodic Table to put it on the canvas with a left-click. You can also define Atom Lists and NOT Lists for query structures. The selected atom or list appears on the tip of the cursor, and you can place it on the canvas one or more times.

periodic_table

Query atoms

Marvin for JavaScript offers several query atom types, which can be reached by left-clicking on the lower right corner of the Query Atoms "combo" button. See the complete list in the table below.

any

Any of the elements except hydrogen

hetero

Hetero atom (any atom except carbon and hydrogen)

metal

Metal atom

halogen

Halogen atom

any_or_H

Any of the elements including hydrogen

any_except_C

Any of the elements except carbon

metal_or_H

Metal atom or hydrogen

halogen_or_H

Halogen atom or hydrogen

Templates Toolbar

Six generic templates are available from the Templates toolbar. After selecting one of these templates you can place it on the canvas with a left mouse-click. When placing it on the canvas, you can rotate the template around its center by dragging the cursor. Templates can also be connected to already existing structures by sprout drawing.

cyclohexane

Cyclohexane

cyclopentane

Cyclopentane

pyrrole

Pyrrole

cyclopentane_house

Cyclopentane (house)

benzene

Benzene

naphthalene

Naphthalene