FitOptionsModel

23 Sep 20251 minute to read

Interface for a class FitOptions

Properties

canFit boolean

Enables/Disables fit while render

canZoomIn boolean

Enables/Disables zooming to fit the smaller content into larger viewport

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