Search results

FitOptions API in React Diagram API component

Properties

canFit

boolean

Enables/Disables fit while render

Defaults to false

canZoomIn

boolean

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

Defaults to false

customBounds

Rect

Defines the custom region that has to be fit into the viewport

Defaults to undefined

margin

MarginModel

Defines the space to be left between the viewport and the content @default { left: 25, right: 25, top: 25, bottom: 25 }

mode

FitModes

Defines whether the diagram has to be horizontally/vertically fit into the viewport

Defaults to ‘Page’

region

DiagramRegions

Defines the region that has to be fit into the viewport

Defaults to ‘PageSettings’