IFitOptions
23 Sep 20251 minute to read
Defines how the diagram has to be fit into the viewport
Properties
canZoomIn boolean
Enables/Disables zooming to fit the smaller content into larger viewport
canZoomOut boolean
Enables/Disables zooming to fit the larger content into current viewport regardless of scrollSettings.minZoom property value.
customBounds Rect
Defines the custom region that has to be fit into the viewport
margin MarginModel
Defines the space to be left between the viewport and the content
mode FitModes
Defines whether the diagram has to be horizontally/vertically fit into the viewport
region DiagramRegions
Defines the region that has to be fit into the viewport