Graphical Objects in Marvin JS

    Drawing Graphical Boxes

    To draw a shape, choose the Rectangle or Ellipse tool, then drag the mouse cursor until the shape reaches the desired size. Gray feedback shows what the box will look like.

    Feedback of a rectangle graphical object

    Changing the Properties of Graphical Boxes

    Color

    The color of the background and the line can be changed by opening the Set box color dialog through the context menu. Choose the appropriate colors from the lists.

    Changing the background color of a rectangle graphical object

    Size

    You can easily resize your structure. Left-click on one of the control points of the rectangle/ellipse and, without releasing the mouse button, drag the line to the right place.

    Changing the size of a rectangle graphical object

    Copying Graphical Boxes

    You can copy graphical boxes by selecting the object, then press Ctrl and drag it to the right place.

    Copying a rectangle graphical object

    Deleting Graphical Boxes

    Graphical boxes can be deleted as other objects on the canvas by the Delete tool or by selecting the box and pushing Delete tool button or pressing the Delete key.

    Deleting an ellipse graphical object

    Drawing Graphical Arrows

    You can draw graphical arrows with the Arrow/Reaction tools. When there are more than one arrows on the canvas or the reaction converter web service is not available, the arrow will be exported as a graphical object. Feedback of a reaction arrow

    Changing the Properties of an Arrow

    Length

    To change the length of the arrow, press the left mouse button on one end of it, then drag it until the arrow reaches the proper size. The old arrow is highlighted by grey and, after releasing the mouse button, the original arrow disappears.

    Changing the length of a reaction arrow

    Direction

    To change the direction of the arrow, hold the left mouse button on one end of the arrow, then drag it until the arrow gets into the required position. The old arrow is highlighted by grey and, after releasing the mouse button, the original arrow disappears.

    Changing the direction of a reaction arrow

    Deleting an Arrow

    You can erase an arrow with the Delete tool, or by selecting it and pushing the Delete key. Alternatively, when the arrow tool is active, hovering over the arrow, a red circle appears at the middle of the arrow. Clicking on the circle removes the arrow from the canvas.

    Deleting a reaction arrow