Configures export settings.



These settings are used when a diagram is exported via a UI.

The Export button invokes a drop-down menu that lists export commands. The following formats are supported: PNG, JPEG, and SVG.


Specifies the name of the file to which the diagram is exported.



Default Value: 'Diagram'

proxyUrl Deprecated

Since v10, Safari browser supports API for saving files, and this option is no longer required.

Specifies the URL of the server-side proxy that streams the resulting file and enables export in Safari.



Default Value: undefined

Safari does not implement an API for saving files. In this case, the Diagram widget can POST the content to a server-side proxy which streams the file back to the user. To enable this functionality, set the export.proxyUrl option to the proxy.

  • Your proxy receives a POST request with the following parameters in the request body: fileName, contentType (the MIME type of the file) and base64 (the base-64 encoded file content).
  • The proxy should return the decoded file with the "Content-Disposition" header set to attachment; filename="".

The sample proxy implementation for ASPx-based and PHP-based web servers is presented in the Set up a Server-Side Proxy article.