Zooming

Zooming allows you to change the size of the content so that it is visible in the viewport. You can zoom in or out by using the mouse wheel while pressing the Ctrl key. The zoom is done so that the position at which the user applies the operation is kept fixed.
To zoom in:
  • Use the combination Ctrl + wheel up. By default, it zooms in by a factor of 1.5.
To zoom out:
  • Use the combination Ctrl + wheel down. By default, it zooms out by a factor of 1.5.
To set the modifiers needed to zoom:
  • Use the following method of the Diagram object:
    dijit.byId("myDiagram").assignInteractorInputs("zoom",{wheelZoom:{}});
    It configures the zoom interaction to require no modifiers while using the wheel.
To disable the zooming function:
  • Set the zoom attribute to false or use the setZoomEnabled method.