Skip to main content

Home > @jsplumbtoolkit/browser-ui > ImageExportOptions

ImageExportOptions interface

Options for an image export.

Signature:

export interface ImageExportOptions extends SvgExportOptions 

Extends: SvgExportOptions

Properties

PropertyModifiersTypeDescription
height?number(Optional) Optional height for the export. The exported image's aspect ratio will always be honoured so if you provide both this and width, this will be ignored. If you don't provide this the natural height of the underlying SVG will be used.
quality?number(Optional) Optional quality of the resulting image - only used for jpeg. Defaults to 1.0.
type?string(Optional) Content type for the export. Defaults to image/png. Most modern browsers also support image/jpeg.
width?number(Optional) Optional width for the export. The exported image's aspect ratio will always be honoured so if you provide both this and height, height will be ignored. If you don't provide this the natural width of the underlying SVG will be used.