DiagramRegions API in JavaScript (ES5) Diagram API control
Defines the region that has to be drawn as an image
PageSettings - With the given page settings image has to be exported.
Content - The diagram content is export
CustomBounds - Exported with given bounds.