FitModes API in JavaScript (ES5) Diagram API control
Defines how the diagram has to fit into view
Page - Fits the diagram content within the viewport
Width - Fits the width of the diagram content within the viewport
Height - Fits the height of the diagram content within the viewport