Page settings enable to customize the appearance, width, and height of the diagram page.
width
and height
properties of page settings define the size of the page and based on the size, the orientation
will be set for the page. In addition to that, the appearance of the page can be customized with source
and set of appearance specific properties.color
property is used to customize the background color and border color of the page.margin
property is used to define the page margin.Page Settings
.Stretch and align the background image anywhere over the diagram area.
The source
property of background
allows you to set the path of the image.
The scale
and the align
properties help to stretch/align the background images.
The following code illustrates how to stretch and align the background image.
When multiple page is enabled, the size of the page dynamically increases or decreases in multiples of page width and height and completely fits diagram within the page boundaries. Page breaks is used as a visual guide to see how pages are split into multiple pages.
The multiplePage
and showPageBreak
properties of page settings allow you to enable/disable multiple pages and page breaks respectively.
The following code illustrates how to enable multiple page and page break lines.
The diagram provides support to restrict/customize the interactive region, out of which the elements cannot be dragged, resized, or rotated. The boundaryConstraints
property of page settings allows you to customize the interactive region.
To explore the boundary constraints, refer to Boundary Constraints
.
The following code example illustrates how to define boundary constraints with respect to the page.