Class ExportControlsComponent

A component that provides buttons for exporting a canvas rendered with a shape library to SVG, PNG or JPG.

Implements

  • OnInit

Methods

  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

    Returns void

Properties

allowJpgExport?: boolean = true

Defaults to true.

allowPngExport?: boolean = true

Defaults to true.

allowSvgExport?: boolean = true

Defaults to true.

imageOptions?: ImageExportUIOptions

Options for image exports.

label: string = "Export:"

What to show in the label, if visible. Defaults to "Export:".

margins?: PointXY

Optional margins to apply to both SVG and image exports. Will not override any margins specified in svgOptions or imageOptions.

showLabel: boolean = true

Whether or not to show a label in front of the buttons. Defaults to true.

svgOptions?: SvgExportUIOptions

Options for SVG exports.

Version :