Defines the possible image export options.

interface ExportOptions {
    height?: number;
    margin?: number;
    scalePercent?: number;
    selectedAreaOnly?: boolean;
    visualizationSettings?: VisualizationSettings;
    width?: number;
}

Properties

height?: number

The height of the image in pixels.

margin?: number

The margin of the image in pixels.

scalePercent?: number

The percentage scale to apply to the content within the SVG. For example, 100 means no scaling, 50 scales content to half size.

selectedAreaOnly?: boolean

Whether to export the whole canvas or only the selected area. Default value is false. If true, the selected area will be exported. If false, the whole canvas will be exported.

visualizationSettings?: VisualizationSettings

Visualization. For image export, only variableAttachmentHighlight, rgroupAttachmentOrderVisible and structureHighlightVisible settings are supported.

width?: number

The width of the image in pixels.