Configuring the Diagram viewport

The viewport navigation can be configured through the following markup attributes of the Diagram widget:
Attribute Description
viewportAirFactor
Extra margin considered part of the Diagram content with respect to navigation. This margin is included in fit-to-content operations, and is scrollable.
viewportMinZoom
Defines the largest factor by which the view rectangle can zoom out
viewportMaxZoom
Defines the largest factor by which the view rectangle can zoom in. Unlimited if 0.
showZoomFactor
Shows a zoom level indicator at the upper right corner.
viewportAnimated
Defines whether most viewport operations are animated by default. These operations include: zooming on the viewport, zooming on the Overview, performing programmatic centerOnNode or visualizeBounds, and so on. They exclude special internal operations marked as instant like the operations for panning interactions on the diagram or the Overview.