Defines the size and appearance of diagram page
<div id='diagram'></div>
let diagram: Diagram = new Diagram({
...
pageSettings: { width: 800, height: 600, orientation: 'Landscape',
background: { color: 'blue' }, boundaryConstraints: 'Infinity',
multiplePage: true, showPageBreaks: true, },
...
});
diagram.appendTo('#diagram');
Defines the background color and image of diagram
Defaults to ‘transparent’
string
Defines the editable region of the diagram
Defaults to ‘Infinity’
set the fit options
Defaults to new FitOptions()
number
Sets the height of a diagram Page
Defaults to null
Sets the margin of a diagram page
Defaults to new Margin(0,0,0,0)
boolean
Sets whether multiple pages can be created to fit all nodes and connectors
Defaults to false
string
Sets the orientation of the pages in a diagram
Defaults to ‘Landscape’
boolean
Enables or disables the page break lines
Defaults to false
number
Sets the width of a diagram Page
Defaults to null